Commit f4828336 authored by Jonas Aaberg's avatar Jonas Aaberg Committed by Linus Walleij

ARM: ux500: add PRCM register base for pinctrl

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: default avatarJonas Aaberg <jonas.aberg@stericsson.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 8c995d6d
...@@ -158,7 +158,7 @@ static void __init db8500_add_gpios(struct device *parent) ...@@ -158,7 +158,7 @@ static void __init db8500_add_gpios(struct device *parent)
dbx500_add_gpios(parent, ARRAY_AND_SIZE(db8500_gpio_base), dbx500_add_gpios(parent, ARRAY_AND_SIZE(db8500_gpio_base),
IRQ_DB8500_GPIO0, &pdata); 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[] = { static int usb_db8500_rx_dma_cfg[] = {
......
...@@ -129,12 +129,18 @@ void dbx500_add_gpios(struct device *parent, resource_size_t *base, int num, ...@@ -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); int irq, struct nmk_gpio_platform_data *pdata);
static inline void 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 = { struct platform_device_info pdevinfo = {
.parent = parent, .parent = parent,
.name = name, .name = name,
.id = -1, .id = -1,
.res = res,
.num_res = ARRAY_SIZE(res),
}; };
platform_device_register_full(&pdevinfo); platform_device_register_full(&pdevinfo);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment