[PATCH 1/2] ARM: EXYNOS: add support GPIO for EXYNOS5250
Kukjin Kim
kgene.kim at samsung.com
Thu Feb 9 06:48:02 EST 2012
Kyungmin Park wrote:
>
> On 2/1/12, Russell King - ARM Linux <linux at arm.linux.org.uk> wrote:
> > On Wed, Feb 01, 2012 at 12:50:39AM +0900, Kukjin Kim wrote:
> >> From: Sangsu Park <sangsu4u.park at samsung.com>
> >>
> >> This patch adds follwing.
> >> - IO-map for EXYNOS5250 GPIO support
> >> - EXYNOS5250 GPIO bank size/number definitions
> >> - memory map definition for S5P GPIO4
> >>
> >> Signed-off-by: Sangsu Park <sangsu4u.park at samsung.com>
> >> Signed-off-by: Kukjin Kim <kgene.kim at samsung.com>
> >
> > Do you actually need these static mapping definitions? The samsung
> > gpiolib initialization is called from a core_initcall(), and at this
> > time ioremap() is fully capable of working.
>
> If it assumes it has 8 gpios, you can make it simple calculate it like
> this.
>
But unfortunately, it has not 8 gpios in each gpio bank.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <kgene.kim at samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
> enum exynos5_gpios {
> EXYNOS5_GPIO_A,
> ...
> };
>
> EXYNOS5_GPIO_A_START(n) (EXYNOS5_GPIO_A * 8)
>
> with this one, it can make a simple gpio driver when using irq domain for
> GPIO.
>
More information about the linux-arm-kernel
mailing list