diff options
| author | Shawn Guo <shawn.guo@linaro.org> | 2012-05-12 01:32:09 -0400 |
|---|---|---|
| committer | Shawn Guo <shawn.guo@linaro.org> | 2012-05-12 01:32:09 -0400 |
| commit | 844d0b5a0b42d6c73114a1dc229db751120d226f (patch) | |
| tree | faf9f83e78ae24f6730d64999a89c35144da3b8a | |
| parent | 50260924afd4b745bfb6e5f1caee381a1875fc31 (diff) | |
| parent | a0f5e3631b07cabf624e7d818df76d47d9d21017 (diff) | |
Merge branches 'clk/mxs' and 'imx/pinctrl/for-3.5' into mxs/dt/for-3.5
33 files changed, 159 insertions, 0 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 2095a513a7c0..ae5c251cd251 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
| @@ -470,6 +470,7 @@ config ARCH_MXS | |||
| 470 | select CLKSRC_MMIO | 470 | select CLKSRC_MMIO |
| 471 | select COMMON_CLK | 471 | select COMMON_CLK |
| 472 | select HAVE_CLK_PREPARE | 472 | select HAVE_CLK_PREPARE |
| 473 | select PINCTRL | ||
| 473 | help | 474 | help |
| 474 | Support for Freescale MXS-based family of processors | 475 | Support for Freescale MXS-based family of processors |
| 475 | 476 | ||
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 7561eca131b0..e0fc67cf659b 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig | |||
| @@ -842,6 +842,8 @@ config SOC_IMX6Q | |||
| 842 | select HAVE_IMX_MMDC | 842 | select HAVE_IMX_MMDC |
| 843 | select HAVE_IMX_SRC | 843 | select HAVE_IMX_SRC |
| 844 | select HAVE_SMP | 844 | select HAVE_SMP |
| 845 | select PINCTRL | ||
| 846 | select PINCTRL_IMX6Q | ||
| 845 | select USE_OF | 847 | select USE_OF |
| 846 | 848 | ||
| 847 | help | 849 | help |
diff --git a/arch/arm/mach-imx/imx51-dt.c b/arch/arm/mach-imx/imx51-dt.c index 5cca573964f0..5f577fbda2c8 100644 --- a/arch/arm/mach-imx/imx51-dt.c +++ b/arch/arm/mach-imx/imx51-dt.c | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | #include <linux/irqdomain.h> | 14 | #include <linux/irqdomain.h> |
| 15 | #include <linux/of_irq.h> | 15 | #include <linux/of_irq.h> |
| 16 | #include <linux/of_platform.h> | 16 | #include <linux/of_platform.h> |
| 17 | #include <linux/pinctrl/machine.h> | ||
| 17 | #include <asm/mach/arch.h> | 18 | #include <asm/mach/arch.h> |
| 18 | #include <asm/mach/time.h> | 19 | #include <asm/mach/time.h> |
| 19 | #include <mach/common.h> | 20 | #include <mach/common.h> |
| @@ -81,6 +82,8 @@ static void __init imx51_dt_init(void) | |||
| 81 | 82 | ||
| 82 | of_irq_init(imx51_irq_match); | 83 | of_irq_init(imx51_irq_match); |
| 83 | 84 | ||
| 85 | pinctrl_provide_dummies(); | ||
| 86 | |||
| 84 | node = of_find_matching_node(NULL, imx51_iomuxc_of_match); | 87 | node = of_find_matching_node(NULL, imx51_iomuxc_of_match); |
| 85 | if (node) { | 88 | if (node) { |
| 86 | of_id = of_match_node(imx51_iomuxc_of_match, node); | 89 | of_id = of_match_node(imx51_iomuxc_of_match, node); |
diff --git a/arch/arm/mach-imx/imx53-dt.c b/arch/arm/mach-imx/imx53-dt.c index 4172279b3900..574eca4b89a5 100644 --- a/arch/arm/mach-imx/imx53-dt.c +++ b/arch/arm/mach-imx/imx53-dt.c | |||
| @@ -15,6 +15,7 @@ | |||
| 15 | #include <linux/irqdomain.h> | 15 | #include <linux/irqdomain.h> |
| 16 | #include <linux/of_irq.h> | 16 | #include <linux/of_irq.h> |
| 17 | #include <linux/of_platform.h> | 17 | #include <linux/of_platform.h> |
| 18 | #include <linux/pinctrl/machine.h> | ||
| 18 | #include <asm/mach/arch.h> | 19 | #include <asm/mach/arch.h> |
| 19 | #include <asm/mach/time.h> | 20 | #include <asm/mach/time.h> |
| 20 | #include <mach/common.h> | 21 | #include <mach/common.h> |
| @@ -88,6 +89,8 @@ static void __init imx53_dt_init(void) | |||
| 88 | 89 | ||
| 89 | of_irq_init(imx53_irq_match); | 90 | of_irq_init(imx53_irq_match); |
| 90 | 91 | ||
| 92 | pinctrl_provide_dummies(); | ||
| 93 | |||
| 91 | node = of_find_matching_node(NULL, imx53_iomuxc_of_match); | 94 | node = of_find_matching_node(NULL, imx53_iomuxc_of_match); |
| 92 | if (node) { | 95 | if (node) { |
| 93 | of_id = of_match_node(imx53_iomuxc_of_match, node); | 96 | of_id = of_match_node(imx53_iomuxc_of_match, node); |
diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c index da6c1d9af768..3df360a52c17 100644 --- a/arch/arm/mach-imx/mach-imx6q.c +++ b/arch/arm/mach-imx/mach-imx6q.c | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | #include <linux/of_address.h> | 19 | #include <linux/of_address.h> |
| 20 | #include <linux/of_irq.h> | 20 | #include <linux/of_irq.h> |
| 21 | #include <linux/of_platform.h> | 21 | #include <linux/of_platform.h> |
| 22 | #include <linux/pinctrl/machine.h> | ||
| 22 | #include <linux/phy.h> | 23 | #include <linux/phy.h> |
| 23 | #include <linux/micrel_phy.h> | 24 | #include <linux/micrel_phy.h> |
| 24 | #include <asm/smp_twd.h> | 25 | #include <asm/smp_twd.h> |
| @@ -77,6 +78,12 @@ static int ksz9021rn_phy_fixup(struct phy_device *phydev) | |||
| 77 | 78 | ||
| 78 | static void __init imx6q_init_machine(void) | 79 | static void __init imx6q_init_machine(void) |
| 79 | { | 80 | { |
| 81 | /* | ||
| 82 | * This should be removed when all imx6q boards have pinctrl | ||
| 83 | * states for devices defined in device tree. | ||
| 84 | */ | ||
| 85 | pinctrl_provide_dummies(); | ||
| 86 | |||
| 80 | if (of_machine_is_compatible("fsl,imx6q-sabrelite")) | 87 | if (of_machine_is_compatible("fsl,imx6q-sabrelite")) |
| 81 | phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK, | 88 | phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK, |
| 82 | ksz9021rn_phy_fixup); | 89 | ksz9021rn_phy_fixup); |
diff --git a/arch/arm/mach-imx/mm-imx1.c b/arch/arm/mach-imx/mm-imx1.c index 2bded591d5c2..fcafd3dafb8c 100644 --- a/arch/arm/mach-imx/mm-imx1.c +++ b/arch/arm/mach-imx/mm-imx1.c | |||
| @@ -18,6 +18,7 @@ | |||
| 18 | #include <linux/kernel.h> | 18 | #include <linux/kernel.h> |
| 19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
| 20 | #include <linux/io.h> | 20 | #include <linux/io.h> |
| 21 | #include <linux/pinctrl/machine.h> | ||
| 21 | 22 | ||
| 22 | #include <asm/mach/map.h> | 23 | #include <asm/mach/map.h> |
| 23 | 24 | ||
| @@ -58,4 +59,5 @@ void __init imx1_soc_init(void) | |||
| 58 | MX1_GPIO_INT_PORTC, 0); | 59 | MX1_GPIO_INT_PORTC, 0); |
| 59 | mxc_register_gpio("imx1-gpio", 3, MX1_GPIO4_BASE_ADDR, SZ_256, | 60 | mxc_register_gpio("imx1-gpio", 3, MX1_GPIO4_BASE_ADDR, SZ_256, |
| 60 | MX1_GPIO_INT_PORTD, 0); | 61 | MX1_GPIO_INT_PORTD, 0); |
| 62 | pinctrl_provide_dummies(); | ||
| 61 | } | 63 | } |
diff --git a/arch/arm/mach-imx/mm-imx21.c b/arch/arm/mach-imx/mm-imx21.c index 14d540edfd1e..5f43905e5290 100644 --- a/arch/arm/mach-imx/mm-imx21.c +++ b/arch/arm/mach-imx/mm-imx21.c | |||
| @@ -20,6 +20,7 @@ | |||
| 20 | 20 | ||
| 21 | #include <linux/mm.h> | 21 | #include <linux/mm.h> |
| 22 | #include <linux/init.h> | 22 | #include <linux/init.h> |
| 23 | #include <linux/pinctrl/machine.h> | ||
| 23 | #include <mach/hardware.h> | 24 | #include <mach/hardware.h> |
| 24 | #include <mach/common.h> | 25 | #include <mach/common.h> |
| 25 | #include <mach/devices-common.h> | 26 | #include <mach/devices-common.h> |
| @@ -88,6 +89,7 @@ void __init imx21_soc_init(void) | |||
| 88 | mxc_register_gpio("imx21-gpio", 4, MX21_GPIO5_BASE_ADDR, SZ_256, MX21_INT_GPIO, 0); | 89 | mxc_register_gpio("imx21-gpio", 4, MX21_GPIO5_BASE_ADDR, SZ_256, MX21_INT_GPIO, 0); |
| 89 | mxc_register_gpio("imx21-gpio", 5, MX21_GPIO6_BASE_ADDR, SZ_256, MX21_INT_GPIO, 0); | 90 | mxc_register_gpio("imx21-gpio", 5, MX21_GPIO6_BASE_ADDR, SZ_256, MX21_INT_GPIO, 0); |
| 90 | 91 | ||
| 92 | pinctrl_provide_dummies(); | ||
| 91 | imx_add_imx_dma(); | 93 | imx_add_imx_dma(); |
| 92 | platform_device_register_simple("imx21-audmux", 0, imx21_audmux_res, | ||
