diff options
author | Linus Walleij <linus.walleij@stericsson.com> | 2009-08-10 07:52:40 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-08-15 10:36:28 -0400 |
commit | df1e0520f9434b5b771c854a13dd928727d8673a (patch) | |
tree | 5d48442a1c8e43122511fd0c73596ac3917f8483 /arch/arm/mach-u300/gpio.c | |
parent | 5ad73d07173e7b76c16bcb8b6cf64d8386019689 (diff) |
ARM: 5666/1: Revamped U300 padmux API
This abstracts the hackish padmux API on the U300 platform into
something more manageable. It provides a way for drivers to
activate/deactivate a certain padmux setting. It will also switch
the users of the old API over to using the new style, pushing
muxing into the apropriate setup files.
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-u300/gpio.c')
-rw-r--r-- | arch/arm/mach-u300/gpio.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/arm/mach-u300/gpio.c b/arch/arm/mach-u300/gpio.c index 308cdb197a92..63c8f27fb15a 100644 --- a/arch/arm/mach-u300/gpio.c +++ b/arch/arm/mach-u300/gpio.c | |||
@@ -25,11 +25,6 @@ | |||
25 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
26 | #include <linux/gpio.h> | 26 | #include <linux/gpio.h> |
27 | 27 | ||
28 | /* Need access to SYSCON registers for PADmuxing */ | ||
29 | #include <mach/syscon.h> | ||
30 | |||
31 | #include "padmux.h" | ||
32 | |||
33 | /* Reference to GPIO block clock */ | 28 | /* Reference to GPIO block clock */ |
34 | static struct clk *clk; | 29 | static struct clk *clk; |
35 | 30 | ||
@@ -606,14 +601,6 @@ static int __init gpio_probe(struct platform_device *pdev) | |||
606 | writel(U300_GPIO_CR_BLOCK_CLKRQ_ENABLE, virtbase + U300_GPIO_CR); | 601 | writel(U300_GPIO_CR_BLOCK_CLKRQ_ENABLE, virtbase + U300_GPIO_CR); |
607 | #endif | 602 | #endif |
608 | 603 | ||
609 | /* Set up some padmuxing here */ | ||
610 | #ifdef CONFIG_MMC | ||
611 | pmx_set_mission_mode_mmc(); | ||
612 | #endif | ||
613 | #ifdef CONFIG_SPI_PL022 | ||
614 | pmx_set_mission_mode_spi(); | ||
615 | #endif | ||
616 | |||
617 | gpio_set_initial_values(); | 604 | gpio_set_initial_values(); |
618 | 605 | ||
619 | for (num_irqs = 0 ; num_irqs < U300_GPIO_NUM_PORTS; num_irqs++) { | 606 | for (num_irqs = 0 ; num_irqs < U300_GPIO_NUM_PORTS; num_irqs++) { |