ARM: ux500: add PRCM register base for pinctrl
authorJonas Aaberg <jonas.aberg@stericsson.com>
Thu, 25 Oct 2012 06:46:53 +0000 (08:46 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 8 Nov 2012 12:44:41 +0000 (13:44 +0100)
This adds the PRCM register range base as a resource to
the pinctrl driver do we can break the dependency to the
PRCMU driver and handle these registers in the driver
alone.

Cc: arm@kernel.org
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-ux500/cpu-db8500.c
arch/arm/mach-ux500/devices-common.h

index 87a8f9fbb100b05b1c2eac4f9bbb9ed4da0f767b..113d9c47a8428ffebf8d40e6e2e762de61f80640 100644 (file)
@@ -158,7 +158,7 @@ static void __init db8500_add_gpios(struct device *parent)
 
        dbx500_add_gpios(parent, ARRAY_AND_SIZE(db8500_gpio_base),
                         IRQ_DB8500_GPIO0, &pdata);
-       dbx500_add_pinctrl(parent, "pinctrl-db8500");
+       dbx500_add_pinctrl(parent, "pinctrl-db8500", U8500_PRCMU_BASE);
 }
 
 static int usb_db8500_rx_dma_cfg[] = {
index 7fbf0ba336e1bba5e5f92cd2a0945ec411e5c5e6..96fa4ac89e2ecbee38e672dd8858679c7e09134c 100644 (file)
@@ -129,12 +129,18 @@ void dbx500_add_gpios(struct device *parent, resource_size_t *base, int num,
                      int irq, struct nmk_gpio_platform_data *pdata);
 
 static inline void
-dbx500_add_pinctrl(struct device *parent, const char *name)
+dbx500_add_pinctrl(struct device *parent, const char *name,
+                  resource_size_t base)
 {
+       struct resource res[] = {
+               DEFINE_RES_MEM(base, SZ_8K),
+       };
        struct platform_device_info pdevinfo = {
                .parent = parent,
                .name = name,
                .id = -1,
+               .res = res,
+               .num_res = ARRAY_SIZE(res),
        };
 
        platform_device_register_full(&pdevinfo);
This page took 0.025786 seconds and 5 git commands to generate.