diff options
Diffstat (limited to 'arch/arm')
320 files changed, 30411 insertions, 4875 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 9adc7e5158c..14b03684ba8 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -310,10 +310,9 @@ config ARCH_MXC | |||
310 | bool "Freescale MXC/iMX-based" | 310 | bool "Freescale MXC/iMX-based" |
311 | select GENERIC_TIME | 311 | select GENERIC_TIME |
312 | select GENERIC_CLOCKEVENTS | 312 | select GENERIC_CLOCKEVENTS |
313 | select ARCH_MTD_XIP | ||
314 | select GENERIC_GPIO | ||
315 | select ARCH_REQUIRE_GPIOLIB | 313 | select ARCH_REQUIRE_GPIOLIB |
316 | select HAVE_CLK | 314 | select HAVE_CLK |
315 | select COMMON_CLKDEV | ||
317 | help | 316 | help |
318 | Support for Freescale MXC/iMX-based family of processors | 317 | Support for Freescale MXC/iMX-based family of processors |
319 | 318 | ||
@@ -497,7 +496,7 @@ config ARCH_ORION5X | |||
497 | Orion-2 (5281), Orion-1-90 (6183). | 496 | Orion-2 (5281), Orion-1-90 (6183). |
498 | 497 | ||
499 | config ARCH_MMP | 498 | config ARCH_MMP |
500 | bool "Marvell PXA168/910" | 499 | bool "Marvell PXA168/910/MMP2" |
501 | depends on MMU | 500 | depends on MMU |
502 | select GENERIC_GPIO | 501 | select GENERIC_GPIO |
503 | select ARCH_REQUIRE_GPIOLIB | 502 | select ARCH_REQUIRE_GPIOLIB |
@@ -508,7 +507,7 @@ config ARCH_MMP | |||
508 | select TICK_ONESHOT | 507 | select TICK_ONESHOT |
509 | select PLAT_PXA | 508 | select PLAT_PXA |
510 | help | 509 | help |
511 | Support for Marvell's PXA168/910 processor line. | 510 | Support for Marvell's PXA168/PXA910(MMP) and MMP2 processor line. |
512 | 511 | ||
513 | config ARCH_KS8695 | 512 | config ARCH_KS8695 |
514 | bool "Micrel/Kendin KS8695" | 513 | bool "Micrel/Kendin KS8695" |
@@ -584,6 +583,11 @@ config ARCH_MSM | |||
584 | interface to the ARM9 modem processor which runs the baseband stack | 583 | interface to the ARM9 modem processor which runs the baseband stack |
585 | and controls some vital subsystems (clock and power control, etc). | 584 | and controls some vital subsystems (clock and power control, etc). |
586 | 585 | ||
586 | config ARCH_SHMOBILE | ||
587 | bool "Renesas SH-Mobile" | ||
588 | help | ||
589 | Support for Renesas's SH-Mobile ARM platforms | ||
590 | |||
587 | config ARCH_RPC | 591 | config ARCH_RPC |
588 | bool "RiscPC" | 592 | bool "RiscPC" |
589 | select ARCH_ACORN | 593 | select ARCH_ACORN |
@@ -742,6 +746,7 @@ config ARCH_OMAP | |||
742 | select ARCH_HAS_CPUFREQ | 746 | select ARCH_HAS_CPUFREQ |
743 | select GENERIC_TIME | 747 | select GENERIC_TIME |
744 | select GENERIC_CLOCKEVENTS | 748 | select GENERIC_CLOCKEVENTS |
749 | select ARCH_HAS_HOLES_MEMORYMODEL | ||
745 | help | 750 | help |
746 | Support for TI's OMAP platform (OMAP1 and OMAP2). | 751 | Support for TI's OMAP platform (OMAP1 and OMAP2). |
747 | 752 | ||
@@ -769,14 +774,26 @@ config ARCH_U8500 | |||
769 | 774 | ||
770 | endchoice | 775 | endchoice |
771 | 776 | ||
777 | source "arch/arm/mach-aaec2000/Kconfig" | ||
778 | |||
779 | source "arch/arm/mach-at91/Kconfig" | ||
780 | |||
781 | source "arch/arm/mach-bcmring/Kconfig" | ||
782 | |||
772 | source "arch/arm/mach-clps711x/Kconfig" | 783 | source "arch/arm/mach-clps711x/Kconfig" |
773 | 784 | ||
785 | source "arch/arm/mach-davinci/Kconfig" | ||
786 | |||
787 | source "arch/arm/mach-dove/Kconfig" | ||
788 | |||
774 | source "arch/arm/mach-ep93xx/Kconfig" | 789 | source "arch/arm/mach-ep93xx/Kconfig" |
775 | 790 | ||
776 | source "arch/arm/mach-footbridge/Kconfig" | 791 | source "arch/arm/mach-footbridge/Kconfig" |
777 | 792 | ||
778 | source "arch/arm/mach-gemini/Kconfig" | 793 | source "arch/arm/mach-gemini/Kconfig" |
779 | 794 | ||
795 | source "arch/arm/mach-h720x/Kconfig" | ||
796 | |||
780 | source "arch/arm/mach-integrator/Kconfig" | 797 | source "arch/arm/mach-integrator/Kconfig" |
781 | 798 | ||
782 | source "arch/arm/mach-iop32x/Kconfig" | 799 | source "arch/arm/mach-iop32x/Kconfig" |
@@ -791,16 +808,26 @@ source "arch/arm/mach-ixp2000/Kconfig" | |||
791 | 808 | ||
792 | source "arch/arm/mach-ixp23xx/Kconfig" | 809 | source "arch/arm/mach-ixp23xx/Kconfig" |
793 | 810 | ||
811 | source "arch/arm/mach-kirkwood/Kconfig" | ||
812 | |||
813 | source "arch/arm/mach-ks8695/Kconfig" | ||
814 | |||
815 | source "arch/arm/mach-lh7a40x/Kconfig" | ||
816 | |||
794 | source "arch/arm/mach-loki/Kconfig" | 817 | source "arch/arm/mach-loki/Kconfig" |
795 | 818 | ||
819 | source "arch/arm/mach-msm/Kconfig" | ||
820 | |||
796 | source "arch/arm/mach-mv78xx0/Kconfig" | 821 | source "arch/arm/mach-mv78xx0/Kconfig" |
797 | 822 | ||
798 | source "arch/arm/mach-pxa/Kconfig" | 823 | source "arch/arm/plat-mxc/Kconfig" |
799 | source "arch/arm/plat-pxa/Kconfig" | ||
800 | 824 | ||
801 | source "arch/arm/mach-mmp/Kconfig" | 825 | source "arch/arm/mach-netx/Kconfig" |
802 | 826 | ||
803 | source "arch/arm/mach-sa1100/Kconfig" | 827 | source "arch/arm/mach-nomadik/Kconfig" |
828 | source "arch/arm/plat-nomadik/Kconfig" | ||
829 | |||
830 | source "arch/arm/mach-ns9xxx/Kconfig" | ||
804 | 831 | ||
805 | source "arch/arm/plat-omap/Kconfig" | 832 | source "arch/arm/plat-omap/Kconfig" |
806 | 833 | ||
@@ -810,9 +837,14 @@ source "arch/arm/mach-omap2/Kconfig" | |||
810 | 837 | ||
811 | source "arch/arm/mach-orion5x/Kconfig" | 838 | source "arch/arm/mach-orion5x/Kconfig" |
812 | 839 | ||
813 | source "arch/arm/mach-kirkwood/Kconfig" | 840 | source "arch/arm/mach-pxa/Kconfig" |
841 | source "arch/arm/plat-pxa/Kconfig" | ||
814 | 842 | ||
815 | source "arch/arm/mach-dove/Kconfig" | 843 | source "arch/arm/mach-mmp/Kconfig" |
844 | |||
845 | source "arch/arm/mach-realview/Kconfig" | ||
846 | |||
847 | source "arch/arm/mach-sa1100/Kconfig" | ||
816 | 848 | ||
817 | source "arch/arm/plat-samsung/Kconfig" | 849 | source "arch/arm/plat-samsung/Kconfig" |
818 | source "arch/arm/plat-s3c24xx/Kconfig" | 850 | source "arch/arm/plat-s3c24xx/Kconfig" |
@@ -835,48 +867,23 @@ source "arch/arm/mach-s5p6440/Kconfig" | |||
835 | 867 | ||
836 | source "arch/arm/mach-s5p6442/Kconfig" | 868 | source "arch/arm/mach-s5p6442/Kconfig" |
837 | 869 | ||
838 | source "arch/arm/plat-stmp3xxx/Kconfig" | ||
839 | |||
840 | if ARCH_S5PC1XX | 870 | if ARCH_S5PC1XX |
841 | source "arch/arm/mach-s5pc100/Kconfig" | 871 | source "arch/arm/mach-s5pc100/Kconfig" |
842 | endif | 872 | endif |
843 | 873 | ||
844 | source "arch/arm/mach-s5pv210/Kconfig" | 874 | source "arch/arm/mach-s5pv210/Kconfig" |
845 | 875 | ||
846 | source "arch/arm/mach-lh7a40x/Kconfig" | 876 | source "arch/arm/mach-shmobile/Kconfig" |
847 | |||
848 | source "arch/arm/mach-h720x/Kconfig" | ||
849 | |||
850 | source "arch/arm/mach-versatile/Kconfig" | ||
851 | |||
852 | source "arch/arm/mach-aaec2000/Kconfig" | ||
853 | |||
854 | source "arch/arm/mach-realview/Kconfig" | ||
855 | |||
856 | source "arch/arm/mach-at91/Kconfig" | ||
857 | |||
858 | source "arch/arm/plat-mxc/Kconfig" | ||
859 | 877 | ||
860 | source "arch/arm/mach-nomadik/Kconfig" | 878 | source "arch/arm/plat-stmp3xxx/Kconfig" |
861 | source "arch/arm/plat-nomadik/Kconfig" | ||
862 | |||
863 | source "arch/arm/mach-netx/Kconfig" | ||
864 | |||
865 | source "arch/arm/mach-ns9xxx/Kconfig" | ||
866 | |||
867 | source "arch/arm/mach-davinci/Kconfig" | ||
868 | |||
869 | source "arch/arm/mach-ks8695/Kconfig" | ||
870 | |||
871 | source "arch/arm/mach-msm/Kconfig" | ||
872 | 879 | ||
873 | source "arch/arm/mach-u300/Kconfig" | 880 | source "arch/arm/mach-u300/Kconfig" |
874 | 881 | ||
875 | source "arch/arm/mach-w90x900/Kconfig" | 882 | source "arch/arm/mach-ux500/Kconfig" |
876 | 883 | ||
877 | source "arch/arm/mach-bcmring/Kconfig" | 884 | source "arch/arm/mach-versatile/Kconfig" |
878 | 885 | ||
879 | source "arch/arm/mach-ux500/Kconfig" | 886 | source "arch/arm/mach-w90x900/Kconfig" |
880 | 887 | ||
881 | # Definitions to make life easier | 888 | # Definitions to make life easier |
882 | config ARCH_ACORN | 889 | config ARCH_ACORN |
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 27032222b86..2dca13f6016 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -94,7 +94,7 @@ CFLAGS_ABI +=-funwind-tables | |||
94 | endif | 94 | endif |
95 | 95 | ||
96 | ifeq ($(CONFIG_THUMB2_KERNEL),y) | 96 | ifeq ($(CONFIG_THUMB2_KERNEL),y) |
97 | AFLAGS_AUTOIT :=$(call as-option,-Wa$(comma)-mimplicit-it=thumb,-Wa$(comma)-mauto-it) | 97 | AFLAGS_AUTOIT :=$(call as-option,-Wa$(comma)-mimplicit-it=always,-Wa$(comma)-mauto-it) |
98 | AFLAGS_NOWARN :=$(call as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W) | 98 | AFLAGS_NOWARN :=$(call as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W) |
99 | CFLAGS_THUMB2 :=-mthumb $(AFLAGS_AUTOIT) $(AFLAGS_NOWARN) | 99 | CFLAGS_THUMB2 :=-mthumb $(AFLAGS_AUTOIT) $(AFLAGS_NOWARN) |
100 | AFLAGS_THUMB2 :=$(CFLAGS_THUMB2) -Wa$(comma)-mthumb | 100 | AFLAGS_THUMB2 :=$(CFLAGS_THUMB2) -Wa$(comma)-mthumb |
@@ -146,6 +146,8 @@ machine-$(CONFIG_ARCH_MX1) := mx1 | |||
146 | machine-$(CONFIG_ARCH_MX2) := mx2 | 146 | machine-$(CONFIG_ARCH_MX2) := mx2 |
147 | machine-$(CONFIG_ARCH_MX25) := mx25 | 147 | machine-$(CONFIG_ARCH_MX25) := mx25 |
148 | machine-$(CONFIG_ARCH_MX3) := mx3 | 148 | machine-$(CONFIG_ARCH_MX3) := mx3 |
149 | machine-$(CONFIG_ARCH_MX5) := mx5 | ||
150 | machine-$(CONFIG_ARCH_MXC91231) := mxc91231 | ||
149 | machine-$(CONFIG_ARCH_NETX) := netx | 151 | machine-$(CONFIG_ARCH_NETX) := netx |
150 | machine-$(CONFIG_ARCH_NOMADIK) := nomadik | 152 | machine-$(CONFIG_ARCH_NOMADIK) := nomadik |
151 | machine-$(CONFIG_ARCH_NS9XXX) := ns9xxx | 153 | machine-$(CONFIG_ARCH_NS9XXX) := ns9xxx |
@@ -167,6 +169,7 @@ machine-$(CONFIG_ARCH_S5PC1XX) := s5pc100 | |||
167 | machine-$(CONFIG_ARCH_S5PV210) := s5pv210 | 169 | machine-$(CONFIG_ARCH_S5PV210) := s5pv210 |
168 | machine-$(CONFIG_ARCH_SA1100) := sa1100 | 170 | machine-$(CONFIG_ARCH_SA1100) := sa1100 |
169 | machine-$(CONFIG_ARCH_SHARK) := shark | 171 | machine-$(CONFIG_ARCH_SHARK) := shark |
172 | machine-$(CONFIG_ARCH_SHMOBILE) := shmobile | ||
170 | machine-$(CONFIG_ARCH_STMP378X) := stmp378x | 173 | machine-$(CONFIG_ARCH_STMP378X) := stmp378x |
171 | machine-$(CONFIG_ARCH_STMP37XX) := stmp37xx | 174 | machine-$(CONFIG_ARCH_STMP37XX) := stmp37xx |
172 | machine-$(CONFIG_ARCH_U300) := u300 | 175 | machine-$(CONFIG_ARCH_U300) := u300 |
@@ -174,21 +177,20 @@ machine-$(CONFIG_ARCH_U8500) := ux500 | |||
174 | machine-$(CONFIG_ARCH_VERSATILE) := versatile | 177 | machine-$(CONFIG_ARCH_VERSATILE) := versatile |
175 | machine-$(CONFIG_ARCH_W90X900) := w90x900 | 178 | machine-$(CONFIG_ARCH_W90X900) := w90x900 |
176 | machine-$(CONFIG_FOOTBRIDGE) := footbridge | 179 | machine-$(CONFIG_FOOTBRIDGE) := footbridge |
177 | machine-$(CONFIG_ARCH_MXC91231) := mxc91231 | ||
178 | 180 | ||
179 | # Platform directory name. This list is sorted alphanumerically | 181 | # Platform directory name. This list is sorted alphanumerically |
180 | # by CONFIG_* macro name. | 182 | # by CONFIG_* macro name. |
181 | plat-$(CONFIG_ARCH_MXC) := mxc | 183 | plat-$(CONFIG_ARCH_MXC) := mxc |
182 | plat-$(CONFIG_ARCH_OMAP) := omap | 184 | plat-$(CONFIG_ARCH_OMAP) := omap |
185 | plat-$(CONFIG_ARCH_S3C64XX) := samsung | ||
186 | plat-$(CONFIG_ARCH_STMP3XXX) := stmp3xxx | ||
183 | plat-$(CONFIG_PLAT_IOP) := iop | 187 | plat-$(CONFIG_PLAT_IOP) := iop |
184 | plat-$(CONFIG_PLAT_NOMADIK) := nomadik | 188 | plat-$(CONFIG_PLAT_NOMADIK) := nomadik |
185 | plat-$(CONFIG_PLAT_ORION) := orion | 189 | plat-$(CONFIG_PLAT_ORION) := orion |
186 | plat-$(CONFIG_PLAT_PXA) := pxa | 190 | plat-$(CONFIG_PLAT_PXA) := pxa |
187 | plat-$(CONFIG_PLAT_S3C24XX) := s3c24xx samsung | 191 | plat-$(CONFIG_PLAT_S3C24XX) := s3c24xx samsung |
188 | plat-$(CONFIG_ARCH_S3C64XX) := samsung | ||
189 | plat-$(CONFIG_PLAT_S5PC1XX) := s5pc1xx samsung | 192 | plat-$(CONFIG_PLAT_S5PC1XX) := s5pc1xx samsung |
190 | plat-$(CONFIG_PLAT_S5P) := s5p samsung | 193 | plat-$(CONFIG_PLAT_S5P) := s5p samsung |
191 | plat-$(CONFIG_ARCH_STMP3XXX) := stmp3xxx | ||
192 | 194 | ||
193 | ifeq ($(CONFIG_ARCH_EBSA110),y) | 195 | ifeq ($(CONFIG_ARCH_EBSA110),y) |
194 | # This is what happens if you forget the IOCS16 line. | 196 | # This is what happens if you forget the IOCS16 line. |
diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S index d356af7cef8..4fddc509e78 100644 --- a/arch/arm/boot/compressed/head.S +++ b/arch/arm/boot/compressed/head.S | |||
@@ -27,6 +27,14 @@ | |||
27 | .macro writeb, ch, rb | 27 | .macro writeb, ch, rb |
28 | mcr p14, 0, \ch, c0, c5, 0 | 28 | mcr p14, 0, \ch, c0, c5, 0 |
29 | .endm | 29 | .endm |
30 | #elif defined(CONFIG_CPU_V7) | ||
31 | .macro loadsp, rb | ||
32 | .endm | ||
33 | .macro writeb, ch, rb | ||
34 | wait: mrc p14, 0, pc, c0, c1, 0 | ||
35 | bcs wait | ||
36 | mcr p14, 0, \ch, c0, c5, 0 | ||
37 | .endm | ||
30 | #elif defined(CONFIG_CPU_XSCALE) | 38 | #elif defined(CONFIG_CPU_XSCALE) |
31 | .macro loadsp, rb | 39 | .macro loadsp, rb |
32 | .endm | 40 | .endm |
diff --git a/arch/arm/boot/compressed/misc.c b/arch/arm/boot/compressed/misc.c index 7e0fe4d42c7..56a0d116d27 100644 --- a/arch/arm/boot/compressed/misc.c +++ b/arch/arm/boot/compressed/misc.c | |||
@@ -53,6 +53,18 @@ static void icedcc_putc(int ch) | |||
53 | 53 | ||
54 | asm("mcr p14, 0, %0, c0, c5, 0" : : "r" (ch)); | 54 | asm("mcr p14, 0, %0, c0, c5, 0" : : "r" (ch)); |
55 | } | 55 | } |
56 | |||
57 | #elif defined(CONFIG_CPU_V7) | ||
58 | |||
59 | static void icedcc_putc(int ch) | ||
60 | { | ||
61 | asm( | ||
62 | "wait: mrc p14, 0, pc, c0, c1, 0 \n\ | ||
63 | bcs wait \n\ | ||
64 | mcr p14, 0, %0, c0, c5, 0 " | ||
65 | : : "r" (ch)); | ||
66 | } | ||
67 | |||
56 | #elif defined(CONFIG_CPU_XSCALE) | 68 | #elif defined(CONFIG_CPU_XSCALE) |
57 | 69 | ||
58 | static void icedcc_putc(int ch) | 70 | static void icedcc_putc(int ch) |
@@ -88,7 +100,6 @@ static void icedcc_putc(int ch) | |||
88 | #endif | 100 | #endif |
89 | 101 | ||
90 | #define putc(ch) icedcc_putc(ch) | 102 | #define putc(ch) icedcc_putc(ch) |
91 | #define flush() do { } while (0) | ||
92 | #endif | 103 | #endif |
93 | 104 | ||
94 | static void putstr(const char *ptr) | 105 | static void putstr(const char *ptr) |
diff --git a/arch/arm/common/locomo.c b/arch/arm/common/locomo.c index bd36c778c81..90ae00b631c 100644 --- a/arch/arm/common/locomo.c +++ b/arch/arm/common/locomo.c | |||
@@ -32,6 +32,12 @@ | |||
32 | 32 | ||
33 | #include <asm/hardware/locomo.h> | 33 | #include <asm/hardware/locomo.h> |
34 | 34 | ||
35 | /* LoCoMo Interrupts */ | ||
36 | #define IRQ_LOCOMO_KEY (0) | ||
37 | #define IRQ_LOCOMO_GPIO (1) | ||
38 | #define IRQ_LOCOMO_LT (2) | ||
39 | #define IRQ_LOCOMO_SPI (3) | ||
40 | |||
35 | /* M62332 output channel selection */ | 41 | /* M62332 output channel selection */ |
36 | #define M62332_EVR_CH 1 /* M62332 volume channel number */ | 42 | #define M62332_EVR_CH 1 /* M62332 volume channel number */ |
37 | /* 0 : CH.1 , 1 : CH. 2 */ | 43 | /* 0 : CH.1 , 1 : CH. 2 */ |
@@ -58,6 +64,7 @@ struct locomo { | |||
58 | struct device *dev; | 64 | struct device *dev; |
59 | unsigned long phys; | 65 | unsigned long phys; |
60 | unsigned int irq; | 66 | unsigned int irq; |
67 | int irq_base; | ||
61 | spinlock_t lock; | 68 | spinlock_t lock; |
62 | void __iomem *base; | 69 | void __iomem *base; |
63 | #ifdef CONFIG_PM | 70 | #ifdef CONFIG_PM |
@@ -81,9 +88,7 @@ struct locomo_dev_info { | |||
81 | static struct locomo_dev_info locomo_devices[] = { | 88 | static struct locomo_dev_info locomo_devices[] = { |
82 | { | 89 | { |
83 | .devid = LOCOMO_DEVID_KEYBOARD, | 90 | .devid = LOCOMO_DEVID_KEYBOARD, |
84 | .irq = { | 91 | .irq = { IRQ_LOCOMO_KEY }, |
85 | IRQ_LOCOMO_KEY, | ||
86 | }, | ||
87 | .name = "locomo-keyboard", | 92 | .name = "locomo-keyboard", |
88 | .offset = LOCOMO_KEYBOARD, | 93 | .offset = LOCOMO_KEYBOARD, |
89 | .length = 16, | 94 | .length = 16, |
@@ -133,53 +138,20 @@ static struct locomo_dev_info locomo_devices[] = { | |||
133 | }, | 138 | }, |
134 | }; | 139 | }; |
135 | 140 | ||
136 | |||
137 | /** LoCoMo interrupt handling stuff. | ||
138 | * NOTE: LoCoMo has a 1 to many mapping on all of its IRQs. | ||
139 | * that is, there is only one real hardware interrupt | ||
140 | * we determine which interrupt it is by reading some IO memory. | ||
141 | * We have two levels of expansion, first in the handler for the | ||
142 | * hardware interrupt we generate an interrupt | ||
143 | * IRQ_LOCOMO_*_BASE and those handlers generate more interrupts | ||
144 | * | ||
145 | * hardware irq reads LOCOMO_ICR & 0x0f00 | ||
146 | * IRQ_LOCOMO_KEY_BASE | ||
147 | * IRQ_LOCOMO_GPIO_BASE | ||
148 | * IRQ_LOCOMO_LT_BASE | ||
149 | * IRQ_LOCOMO_SPI_BASE | ||
150 | * IRQ_LOCOMO_KEY_BASE reads LOCOMO_KIC & 0x0001 | ||
151 | * IRQ_LOCOMO_KEY | ||
152 | * IRQ_LOCOMO_GPIO_BASE reads LOCOMO_GIR & LOCOMO_GPD & 0xffff | ||
153 | * IRQ_LOCOMO_GPIO[0-15] | ||
154 | * IRQ_LOCOMO_LT_BASE reads LOCOMO_LTINT & 0x0001 | ||
155 | * IRQ_LOCOMO_LT | ||
156 | * IRQ_LOCOMO_SPI_BASE reads LOCOMO_SPIIR & 0x000F | ||
157 | * IRQ_LOCOMO_SPI_RFR | ||
158 | * IRQ_LOCOMO_SPI_RFW | ||
159 | * IRQ_LOCOMO_SPI_OVRN | ||
160 | * IRQ_LOCOMO_SPI_TEND | ||
161 | */ | ||
162 | |||
163 | #define LOCOMO_IRQ_START (IRQ_LOCOMO_KEY_BASE) | ||
164 | #define LOCOMO_IRQ_KEY_START (IRQ_LOCOMO_KEY) | ||
165 | #define LOCOMO_IRQ_GPIO_START (IRQ_LOCOMO_GPIO0) | ||
166 | #define LOCOMO_IRQ_LT_START (IRQ_LOCOMO_LT) | ||
167 | #define LOCOMO_IRQ_SPI_START (IRQ_LOCOMO_SPI_RFR) | ||
168 | |||
169 | static void locomo_handler(unsigned int irq, struct irq_desc *desc) | 141 | static void locomo_handler(unsigned int irq, struct irq_desc *desc) |
170 | { | 142 | { |
143 | struct locomo *lchip = get_irq_chip_data(irq); | ||
171 | int req, i; | 144 | int req, i; |
172 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
173 | 145 | ||
174 | /* Acknowledge the parent IRQ */ | 146 | /* Acknowledge the parent IRQ */ |
175 | desc->chip->ack(irq); | 147 | desc->chip->ack(irq); |
176 | 148 | ||
177 | /* check why this interrupt was generated */ | 149 | /* check why this interrupt was generated */ |
178 | req = locomo_readl(mapbase + LOCOMO_ICR) & 0x0f00; | 150 | req = locomo_readl(lchip->base + LOCOMO_ICR) & 0x0f00; |
179 | 151 | ||
180 | if (req) { | 152 | if (req) { |
181 | /* generate the next interrupt(s) */ | 153 | /* generate the next interrupt(s) */ |
182 | irq = LOCOMO_IRQ_START; | 154 | irq = lchip->irq_base; |
183 | for (i = 0; i <= 3; i++, irq++) { | 155 | for (i = 0; i <= 3; i++, irq++) { |
184 | if (req & (0x0100 << i)) { | 156 | if (req & (0x0100 << i)) { |
185 | generic_handle_irq(irq); | 157 | generic_handle_irq(irq); |
@@ -195,20 +167,20 @@ static void locomo_ack_irq(unsigned int irq) | |||
195 | 167 | ||
196 | static void locomo_mask_irq(unsigned int irq) | 168 | static void locomo_mask_irq(unsigned int irq) |
197 | { | 169 | { |
198 | void __iomem *mapbase = get_irq_chip_data(irq); | 170 | struct locomo *lchip = get_irq_chip_data(irq); |
199 | unsigned int r; | 171 | unsigned int r; |
200 | r = locomo_readl(mapbase + LOCOMO_ICR); | 172 | r = locomo_readl(lchip->base + LOCOMO_ICR); |
201 | r &= ~(0x0010 << (irq - LOCOMO_IRQ_START)); | 173 | r &= ~(0x0010 << (irq - lchip->irq_base)); |
202 | locomo_writel(r, mapbase + LOCOMO_ICR); | 174 | locomo_writel(r, lchip->base + LOCOMO_ICR); |
203 | } | 175 | } |
204 | 176 | ||
205 | static void locomo_unmask_irq(unsigned int irq) | 177 | static void locomo_unmask_irq(unsigned int irq) |
206 | { | 178 | { |
207 | void __iomem *mapbase = get_irq_chip_data(irq); | 179 | struct locomo *lchip = get_irq_chip_data(irq); |
208 | unsigned int r; | 180 | unsigned int r; |
209 | r = locomo_readl(mapbase + LOCOMO_ICR); | 181 | r = locomo_readl(lchip->base + LOCOMO_ICR); |
210 | r |= (0x0010 << (irq - LOCOMO_IRQ_START)); | 182 | r |= (0x0010 << (irq - lchip->irq_base)); |
211 | locomo_writel(r, mapbase + LOCOMO_ICR); | 183 | locomo_writel(r, lchip->base + LOCOMO_ICR); |
212 | } | 184 | } |
213 | 185 | ||
214 | static struct irq_chip locomo_chip = { | 186 | static struct irq_chip locomo_chip = { |
@@ -218,297 +190,22 @@ static struct irq_chip locomo_chip = { | |||
218 | .unmask = locomo_unmask_irq, | 190 | .unmask = locomo_unmask_irq, |
219 | }; | 191 | }; |
220 | 192 | ||
221 | static void locomo_key_handler(unsigned int irq, struct irq_desc *desc) | ||
222 | { | ||
223 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
224 | |||
225 | if (locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC) & 0x0001) { | ||
226 | generic_handle_irq(LOCOMO_IRQ_KEY_START); | ||
227 | } | ||
228 | } | ||
229 | |||
230 | static void locomo_key_ack_irq(unsigned int irq) | ||
231 | { | ||
232 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
233 | unsigned int r; | ||
234 | r = locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC); | ||
235 | r &= ~(0x0100 << (irq - LOCOMO_IRQ_KEY_START)); | ||
236 | locomo_writel(r, mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC); | ||
237 | } | ||
238 | |||
239 | static void locomo_key_mask_irq(unsigned int irq) | ||
240 | { | ||
241 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
242 | unsigned int r; | ||
243 | r = locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC); | ||
244 | r &= ~(0x0010 << (irq - LOCOMO_IRQ_KEY_START)); | ||
245 | locomo_writel(r, mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC); | ||
246 | } | ||
247 | |||
248 | static void locomo_key_unmask_irq(unsigned int irq) | ||
249 | { | ||
250 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
251 | unsigned int r; | ||
252 | r = locomo_readl(mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC); | ||
253 | r |= (0x0010 << (irq - LOCOMO_IRQ_KEY_START)); | ||
254 | locomo_writel(r, mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC); | ||
255 | } | ||
256 | |||
257 | static struct irq_chip locomo_key_chip = { | ||
258 | .name = "LOCOMO-key", | ||
259 | .ack = locomo_key_ack_irq, | ||
260 | .mask = locomo_key_mask_irq, | ||
261 | .unmask = locomo_key_unmask_irq, | ||
262 | }; | ||
263 | |||
264 | static void locomo_gpio_handler(unsigned int irq, struct irq_desc *desc) | ||
265 | { | ||
266 | int req, i; | ||
267 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
268 | |||
269 | req = locomo_readl(mapbase + LOCOMO_GIR) & | ||
270 | locomo_readl(mapbase + LOCOMO_GPD) & | ||
271 | 0xffff; | ||
272 | |||
273 | if (req) { | ||
274 | irq = LOCOMO_IRQ_GPIO_START; | ||
275 | for (i = 0; i <= 15; i++, irq++) { | ||
276 | if (req & (0x0001 << i)) { | ||
277 | generic_handle_irq(irq); | ||
278 | } | ||
279 | } | ||
280 | } | ||
281 | } | ||
282 | |||
283 | static void locomo_gpio_ack_irq(unsigned int irq) | ||
284 | { | ||
285 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
286 | unsigned int r; | ||
287 | r = locomo_readl(mapbase + LOCOMO_GWE); | ||
288 | r |= (0x0001 << (irq - LOCOMO_IRQ_GPIO_START)); | ||
289 | locomo_writel(r, mapbase + LOCOMO_GWE); | ||
290 | |||
291 | r = locomo_readl(mapbase + LOCOMO_GIS); | ||
292 | r &= ~(0x0001 << (irq - LOCOMO_IRQ_GPIO_START)); | ||
293 | locomo_writel(r, mapbase + LOCOMO_GIS); | ||
294 | |||
295 | r = locomo_readl(mapbase + LOCOMO_GWE); | ||
296 | r &= ~(0x0001 << (irq - LOCOMO_IRQ_GPIO_START)); | ||
297 | locomo_writel(r, mapbase + LOCOMO_GWE); | ||
298 | } | ||
299 | |||
300 | static void locomo_gpio_mask_irq(unsigned int irq) | ||
301 | { | ||
302 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
303 | unsigned int r; | ||
304 | r = locomo_readl(mapbase + LOCOMO_GIE); | ||
305 | r &= ~(0x0001 << (irq - LOCOMO_IRQ_GPIO_START)); | ||
306 | locomo_writel(r, mapbase + LOCOMO_GIE); | ||
307 | } | ||
308 | |||
309 | static void locomo_gpio_unmask_irq(unsigned int irq) | ||
310 | { | ||
311 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
312 | unsigned int r; | ||
313 | r = locomo_readl(mapbase + LOCOMO_GIE); | ||
314 | r |= (0x0001 << (irq - LOCOMO_IRQ_GPIO_START)); | ||
315 | locomo_writel(r, mapbase + LOCOMO_GIE); | ||
316 | } | ||
317 | |||
318 | static int GPIO_IRQ_rising_edge; | ||
319 | static int GPIO_IRQ_falling_edge; | ||
320 | |||
321 | static int locomo_gpio_type(unsigned int irq, unsigned int type) | ||
322 | { | ||
323 | unsigned int mask; | ||
324 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
325 | |||
326 | mask = 1 << (irq - LOCOMO_IRQ_GPIO_START); | ||
327 | |||
328 | if (type == IRQ_TYPE_PROBE) { | ||
329 | if ((GPIO_IRQ_rising_edge | GPIO_IRQ_falling_edge) & mask) | ||
330 | return 0; | ||
331 | type = IRQ_TYPE_EDGE_RISING | IRQ_TYPE_EDGE_FALLING; | ||
332 | } | ||
333 | |||
334 | if (type & IRQ_TYPE_EDGE_RISING) | ||
335 | GPIO_IRQ_rising_edge |= mask; | ||
336 | else | ||
337 | GPIO_IRQ_rising_edge &= ~mask; | ||
338 | if (type & IRQ_TYPE_EDGE_FALLING) | ||
339 | GPIO_IRQ_falling_edge |= mask; | ||
340 | else | ||
341 | GPIO_IRQ_falling_edge &= ~mask; | ||
342 | locomo_writel(GPIO_IRQ_rising_edge, mapbase + LOCOMO_GRIE); | ||
343 | locomo_writel(GPIO_IRQ_falling_edge, mapbase + LOCOMO_GFIE); | ||
344 | |||
345 | return 0; | ||
346 | } | ||
347 | |||
348 | static struct irq_chip locomo_gpio_chip = { | ||
349 | .name = "LOCOMO-gpio", | ||
350 | .ack = locomo_gpio_ack_irq, | ||
351 | .mask = locomo_gpio_mask_irq, | ||
352 | .unmask = locomo_gpio_unmask_irq, | ||
353 | .set_type = locomo_gpio_type, | ||
354 | }; | ||
355 | |||
356 | static void locomo_lt_handler(unsigned int irq, struct irq_desc *desc) | ||
357 | { | ||
358 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
359 | |||
360 | if (locomo_readl(mapbase + LOCOMO_LTINT) & 0x0001) { | ||
361 | generic_handle_irq(LOCOMO_IRQ_LT_START); | ||
362 | } | ||
363 | } | ||
364 | |||
365 | static void locomo_lt_ack_irq(unsigned int irq) | ||
366 | { | ||
367 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
368 | unsigned int r; | ||
369 | r = locomo_readl(mapbase + LOCOMO_LTINT); | ||
370 | r &= ~(0x0100 << (irq - LOCOMO_IRQ_LT_START)); | ||
371 | locomo_writel(r, mapbase + LOCOMO_LTINT); | ||
372 | } | ||
373 | |||
374 | static void locomo_lt_mask_irq(unsigned int irq) | ||
375 | { | ||
376 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
377 | unsigned int r; | ||
378 | r = locomo_readl(mapbase + LOCOMO_LTINT); | ||
379 | r &= ~(0x0010 << (irq - LOCOMO_IRQ_LT_START)); | ||
380 | locomo_writel(r, mapbase + LOCOMO_LTINT); | ||
381 | } | ||
382 | |||
383 | static void locomo_lt_unmask_irq(unsigned int irq) | ||
384 | { | ||
385 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
386 | unsigned int r; | ||
387 | r = locomo_readl(mapbase + LOCOMO_LTINT); | ||
388 | r |= (0x0010 << (irq - LOCOMO_IRQ_LT_START)); | ||
389 | locomo_writel(r, mapbase + LOCOMO_LTINT); | ||
390 | } | ||
391 | |||
392 | static struct irq_chip locomo_lt_chip = { | ||
393 | .name = "LOCOMO-lt", | ||
394 | .ack = locomo_lt_ack_irq, | ||
395 | .mask = locomo_lt_mask_irq, | ||
396 | .unmask = locomo_lt_unmask_irq, | ||
397 | }; | ||
398 | |||
399 | static void locomo_spi_handler(unsigned int irq, struct irq_desc *desc) | ||
400 | { | ||
401 | int req, i; | ||
402 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
403 | |||
404 | req = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIR) & 0x000F; | ||
405 | if (req) { | ||
406 | irq = LOCOMO_IRQ_SPI_START; | ||
407 | |||
408 | for (i = 0; i <= 3; i++, irq++) { | ||
409 | if (req & (0x0001 << i)) { | ||
410 | generic_handle_irq(irq); | ||
411 | } | ||
412 | } | ||
413 | } | ||
414 | } | ||
415 | |||
416 | static void locomo_spi_ack_irq(unsigned int irq) | ||
417 | { | ||
418 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
419 | unsigned int r; | ||
420 | r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIWE); | ||
421 | r |= (0x0001 << (irq - LOCOMO_IRQ_SPI_START)); | ||
422 | locomo_writel(r, mapbase + LOCOMO_SPI + LOCOMO_SPIWE); | ||
423 | |||
424 | r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIS); | ||
425 | r &= ~(0x0001 << (irq - LOCOMO_IRQ_SPI_START)); | ||
426 | locomo_writel(r, mapbase + LOCOMO_SPI + LOCOMO_SPIIS); | ||
427 | |||
428 | r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIWE); | ||
429 | r &= ~(0x0001 << (irq - LOCOMO_IRQ_SPI_START)); | ||
430 | locomo_writel(r, mapbase + LOCOMO_SPI + LOCOMO_SPIWE); | ||
431 | } | ||
432 | |||
433 | static void locomo_spi_mask_irq(unsigned int irq) | ||
434 | { | ||
435 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
436 | unsigned int r; | ||
437 | r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIE); | ||
438 | r &= ~(0x0001 << (irq - LOCOMO_IRQ_SPI_START)); | ||
439 | locomo_writel(r, mapbase + LOCOMO_SPI + LOCOMO_SPIIE); | ||
440 | } | ||
441 | |||
442 | static void locomo_spi_unmask_irq(unsigned int irq) | ||
443 | { | ||
444 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
445 | unsigned int r; | ||
446 | r = locomo_readl(mapbase + LOCOMO_SPI + LOCOMO_SPIIE); | ||
447 | r |= (0x0001 << (irq - LOCOMO_IRQ_SPI_START)); | ||
448 | locomo_writel(r, mapbase + LOCOMO_SPI + LOCOMO_SPIIE); | ||
449 | } | ||
450 | |||
451 | static struct irq_chip locomo_spi_chip = { | ||
452 | .name = "LOCOMO-spi", | ||
453 | .ack = locomo_spi_ack_irq, | ||
454 | .mask = locomo_spi_mask_irq, | ||
455 | .unmask = locomo_spi_unmask_irq, | ||
456 | }; | ||
457 | |||
458 | static void locomo_setup_irq(struct locomo *lchip) | 193 | static void locomo_setup_irq(struct locomo *lchip) |
459 | { | 194 | { |
460 | int irq; | 195 | int irq = lchip->irq_base; |
461 | void __iomem *irqbase = lchip->base; | ||
462 | 196 | ||
463 | /* | 197 | /* |
464 | * Install handler for IRQ_LOCOMO_HW. | 198 | * Install handler for IRQ_LOCOMO_HW. |
465 | */ | 199 | */ |
466 | set_irq_type(lchip->irq, IRQ_TYPE_EDGE_FALLING); | 200 | set_irq_type(lchip->irq, IRQ_TYPE_EDGE_FALLING); |
467 | set_irq_chip_data(lchip->irq, irqbase); | 201 | set_irq_chip_data(lchip->irq, lchip); |
468 | set_irq_chained_handler(lchip->irq, locomo_handler); | 202 | set_irq_chained_handler(lchip->irq, locomo_handler); |
469 | 203 | ||
470 | /* Install handlers for IRQ_LOCOMO_*_BASE */ | 204 | /* Install handlers for IRQ_LOCOMO_* */ |
471 | set_irq_chip(IRQ_LOCOMO_KEY_BASE, &locomo_chip); | 205 | for ( ; irq <= lchip->irq_base + 3; irq++) { |
472 | set_irq_chip_data(IRQ_LOCOMO_KEY_BASE, irqbase); | 206 | set_irq_chip(irq, &locomo_chip); |
473 | set_irq_chained_handler(IRQ_LOCOMO_KEY_BASE, locomo_key_handler); | 207 | set_irq_chip_data(irq, lchip); |
474 | 208 | set_irq_handler(irq, handle_level_irq); | |
475 | set_irq_chip(IRQ_LOCOMO_GPIO_BASE, &locomo_chip); | ||
476 | set_irq_chip_data(IRQ_LOCOMO_GPIO_BASE, irqbase); | ||
477 | set_irq_chained_handler(IRQ_LOCOMO_GPIO_BASE, locomo_gpio_handler); | ||
478 | |||
479 | set_irq_chip(IRQ_LOCOMO_LT_BASE, &locomo_chip); | ||
480 | set_irq_chip_data(IRQ_LOCOMO_LT_BASE, irqbase); | ||
481 | set_irq_chained_handler(IRQ_LOCOMO_LT_BASE, locomo_lt_handler); | ||
482 | |||
483 | set_irq_chip(IRQ_LOCOMO_SPI_BASE, &locomo_chip); | ||
484 | set_irq_chip_data(IRQ_LOCOMO_SPI_BASE, irqbase); | ||
485 | set_irq_chained_handler(IRQ_LOCOMO_SPI_BASE, locomo_spi_handler); | ||
486 | |||
487 | /* install handlers for IRQ_LOCOMO_KEY_BASE generated interrupts */ | ||
488 | set_irq_chip(LOCOMO_IRQ_KEY_START, &locomo_key_chip); | ||
489 | set_irq_chip_data(LOCOMO_IRQ_KEY_START, irqbase); | ||
490 | set_irq_handler(LOCOMO_IRQ_KEY_START, handle_edge_irq); | ||
491 | set_irq_flags(LOCOMO_IRQ_KEY_START, IRQF_VALID | IRQF_PROBE); | ||
492 | |||
493 | /* install handlers for IRQ_LOCOMO_GPIO_BASE generated interrupts */ | ||
494 | for (irq = LOCOMO_IRQ_GPIO_START; irq < LOCOMO_IRQ_GPIO_START + 16; irq++) { | ||
495 | set_irq_chip(irq, &locomo_gpio_chip); | ||
496 | set_irq_chip_data(irq, irqbase); | ||
497 | set_irq_handler(irq, handle_edge_irq); | ||
498 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | ||
499 | } | ||
500 | |||
501 | /* install handlers for IRQ_LOCOMO_LT_BASE generated interrupts */ | ||
502 | set_irq_chip(LOCOMO_IRQ_LT_START, &locomo_lt_chip); | ||
503 | set_irq_chip_data(LOCOMO_IRQ_LT_START, irqbase); | ||
504 | set_irq_handler(LOCOMO_IRQ_LT_START, handle_edge_irq); | ||
505 | set_irq_flags(LOCOMO_IRQ_LT_START, IRQF_VALID | IRQF_PROBE); | ||
506 | |||
507 | /* install handlers for IRQ_LOCOMO_SPI_BASE generated interrupts */ | ||
508 | for (irq = LOCOMO_IRQ_SPI_START; irq < LOCOMO_IRQ_SPI_START + 4; irq++) { | ||
509 | set_irq_chip(irq, &locomo_spi_chip); | ||
510 | set_irq_chip_data(irq, irqbase); | ||
511 | set_irq_handler(irq, handle_edge_irq); | ||
512 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 209 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
513 | } | 210 | } |
514 | } | 211 | } |
@@ -555,7 +252,8 @@ locomo_init_one_child(struct locomo *lchip, struct locomo_dev_info *info) | |||
555 | dev->mapbase = 0; | 252 | dev->mapbase = 0; |
556 | dev->length = info->length; | 253 | dev->length = info->length; |
557 | 254 | ||
558 | memmove(dev->irq, info->irq, sizeof(dev->irq)); | 255 | dev->irq[0] = (lchip->irq_base == NO_IRQ) ? |
256 | NO_IRQ : lchip->irq_base + info->irq[0]; | ||
559 | 257 | ||
560 | ret = device_register(&dev->dev); | 258 | ret = device_register(&dev->dev); |
561 | if (ret) { | 259 | if (ret) { |
@@ -672,6 +370,7 @@ static int locomo_resume(struct platform_device *dev) | |||
672 | static int | 370 | static int |
673 | __locomo_probe(struct device *me, struct resource *mem, int irq) | 371 | __locomo_probe(struct device *me, struct resource *mem, int irq) |
674 | { | 372 | { |
373 | struct locomo_platform_data *pdata = me->platform_data; | ||
675 | struct locomo *lchip; | 374 | struct locomo *lchip; |
676 | unsigned long r; | 375 | unsigned long r; |
677 | int i, ret = -ENODEV; | 376 | int i, ret = -ENODEV; |
@@ -687,6 +386,7 @@ __locomo_probe(struct device *me, struct resource *mem, int irq) | |||
687 | 386 | ||
688 | lchip->phys = mem->start; | 387 | lchip->phys = mem->start; |
689 | lchip->irq = irq; | 388 | lchip->irq = irq; |
389 | lchip->irq_base = (pdata) ? pdata->irq_base : NO_IRQ; | ||
690 | 390 | ||
691 | /* | 391 | /* |
692 | * Map the whole region. This also maps the | 392 | * Map the whole region. This also maps the |
@@ -753,7 +453,7 @@ __locomo_probe(struct device *me, struct resource *mem, int irq) | |||
753 | * The interrupt controller must be initialised before any | 453 | * The interrupt controller must be initialised before any |
754 | * other device to ensure that the interrupts are available. | 454 | * other device to ensure that the interrupts are available. |
755 | */ | 455 | */ |
756 | if (lchip->irq != NO_IRQ) | 456 | if (lchip->irq != NO_IRQ && lchip->irq_base != NO_IRQ) |
757 | locomo_setup_irq(lchip); | 457 | locomo_setup_irq(lchip); |
758 | 458 | ||
759 | for (i = 0; i < ARRAY_SIZE(locomo_devices); i++) | 459 | for (i = 0; i < ARRAY_SIZE(locomo_devices); i++) |
diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c index 8ba7044c554..a52a27c1d9b 100644 --- a/arch/arm/common/sa1111.c +++ b/arch/arm/common/sa1111.c | |||
@@ -35,6 +35,58 @@ | |||
35 | 35 | ||
36 | #include <asm/hardware/sa1111.h> | 36 | #include <asm/hardware/sa1111.h> |
37 | 37 | ||
38 | /* SA1111 IRQs */ | ||
39 | #define IRQ_GPAIN0 (0) | ||
40 | #define IRQ_GPAIN1 (1) | ||
41 | #define IRQ_GPAIN2 (2) | ||
42 | #define IRQ_GPAIN3 (3) | ||
43 | #define IRQ_GPBIN0 (4) | ||
44 | #define IRQ_GPBIN1 (5) | ||
45 | #define IRQ_GPBIN2 (6) | ||
46 | #define IRQ_GPBIN3 (7) | ||
47 | #define IRQ_GPBIN4 (8) | ||
48 | #define IRQ_GPBIN5 (9) | ||
49 | #define IRQ_GPCIN0 (10) | ||
50 | #define IRQ_GPCIN1 (11) | ||
51 | #define IRQ_GPCIN2 (12) | ||
52 | #define IRQ_GPCIN3 (13) | ||
53 | #define IRQ_GPCIN4 (14) | ||
54 | #define IRQ_GPCIN5 (15) | ||
55 | #define IRQ_GPCIN6 (16) | ||
56 | #define IRQ_GPCIN7 (17) | ||
57 | #define IRQ_MSTXINT (18) | ||
58 | #define IRQ_MSRXINT (19) | ||
59 | #define IRQ_MSSTOPERRINT (20) | ||
60 | #define IRQ_TPTXINT (21) | ||
61 | #define IRQ_TPRXINT (22) | ||
62 | #define IRQ_TPSTOPERRINT (23) | ||
63 | #define SSPXMTINT (24) | ||
64 | #define SSPRCVINT (25) | ||
65 | #define SSPROR (26) | ||
66 | #define AUDXMTDMADONEA (32) | ||
67 | #define AUDRCVDMADONEA (33) | ||
68 | #define AUDXMTDMADONEB (34) | ||
69 | #define AUDRCVDMADONEB (35) | ||
70 | #define AUDTFSR (36) | ||
71 | #define AUDRFSR (37) | ||
72 | #define AUDTUR (38) | ||
73 | #define AUDROR (39) | ||
74 | #define AUDDTS (40) | ||
75 | #define AUDRDD (41) | ||
76 | #define AUDSTO (42) | ||
77 | #define IRQ_USBPWR (43) | ||
78 | #define IRQ_HCIM (44) | ||
79 | #define IRQ_HCIBUFFACC (45) | ||
80 | #define IRQ_HCIRMTWKP (46) | ||
81 | #define IRQ_NHCIMFCIR (47) | ||
82 | #define IRQ_USB_PORT_RESUME (48) | ||
83 | #define IRQ_S0_READY_NINT (49) | ||
84 | #define IRQ_S1_READY_NINT (50) | ||
85 | #define IRQ_S0_CD_VALID (51) | ||
86 | #define IRQ_S1_CD_VALID (52) | ||
87 | #define IRQ_S0_BVD1_STSCHG (53) | ||
88 | #define IRQ_S1_BVD1_STSCHG (54) | ||
89 | |||
38 | extern void __init sa1110_mb_enable(void); | 90 | extern void __init sa1110_mb_enable(void); |
39 | 91 | ||
40 | /* | 92 | /* |
@@ -49,6 +101,7 @@ struct sa1111 { | |||
49 | struct clk *clk; | 101 | struct clk *clk; |
50 | unsigned long phys; | 102 | unsigned long phys; |
51 | int irq; | 103 | int irq; |
104 | int irq_base; /* base for cascaded on-chip IRQs */ | ||
52 | spinlock_t lock; | 105 | spinlock_t lock; |
53 | void __iomem *base; | 106 | void __iomem *base; |
54 | #ifdef CONFIG_PM | 107 | #ifdef CONFIG_PM |
@@ -152,36 +205,37 @@ static void | |||
152 | sa1111_irq_handler(unsigned int irq, struct irq_desc *desc) | 205 | sa1111_irq_handler(unsigned int irq, struct irq_desc *desc) |
153 | { | 206 | { |
154 | unsigned int stat0, stat1, i; | 207 | unsigned int stat0, stat1, i; |
155 | void __iomem *base = get_irq_data(irq); | 208 | struct sa1111 *sachip = get_irq_data(irq); |
209 | void __iomem *mapbase = sachip->base + SA1111_INTC; | ||
156 | 210 | ||
157 | stat0 = sa1111_readl(base + SA1111_INTSTATCLR0); | 211 | stat0 = sa1111_readl(mapbase + SA1111_INTSTATCLR0); |
158 | stat1 = sa1111_readl(base + SA1111_INTSTATCLR1); | 212 | stat1 = sa1111_readl(mapbase + SA1111_INTSTATCLR1); |
159 | 213 | ||
160 | sa1111_writel(stat0, base + SA1111_INTSTATCLR0); | 214 | sa1111_writel(stat0, mapbase + SA1111_INTSTATCLR0); |
161 | 215 | ||
162 | desc->chip->ack(irq); | 216 | desc->chip->ack(irq); |
163 | 217 | ||
164 | sa1111_writel(stat1, base + SA1111_INTSTATCLR1); | 218 | sa1111_writel(stat1, mapbase + SA1111_INTSTATCLR1); |
165 | 219 | ||
166 | if (stat0 == 0 && stat1 == 0) { | 220 | if (stat0 == 0 && stat1 == 0) { |
167 | do_bad_IRQ(irq, desc); | 221 | do_bad_IRQ(irq, desc); |
168 | return; | 222 | return; |
169 | } | 223 | } |
170 | 224 | ||
171 | for (i = IRQ_SA1111_START; stat0; i++, stat0 >>= 1) | 225 | for (i = 0; stat0; i++, stat0 >>= 1) |
172 | if (stat0 & 1) | 226 | if (stat0 & 1) |
173 | handle_edge_irq(i, irq_desc + i); | 227 | generic_handle_irq(i + sachip->irq_base); |
174 | 228 | ||
175 | for (i = IRQ_SA1111_START + 32; stat1; i++, stat1 >>= 1) | 229 | for (i = 32; stat1; i++, stat1 >>= 1) |
176 | if (stat1 & 1) | 230 | if (stat1 & 1) |
177 | handle_edge_irq(i, irq_desc + i); | 231 | generic_handle_irq(i + sachip->irq_base); |
178 | 232 | ||
179 | /* For level-based interrupts */ | 233 | /* For level-based interrupts */ |
180 | desc->chip->unmask(irq); | 234 | desc->chip->unmask(irq); |
181 | } | 235 | } |
182 | 236 | ||
183 | #define SA1111_IRQMASK_LO(x) (1 << (x - IRQ_SA1111_START)) | 237 | #define SA1111_IRQMASK_LO(x) (1 << (x - sachip->irq_base)) |
184 | #define SA1111_IRQMASK_HI(x) (1 << (x - IRQ_SA1111_START - 32)) | 238 | #define SA1111_IRQMASK_HI(x) (1 << (x - sachip->irq_base - 32)) |
185 | 239 | ||
186 | static void sa1111_ack_irq(unsigned int irq) | 240 | static void sa1111_ack_irq(unsigned int irq) |
187 | { | 241 | { |
@@ -189,7 +243,8 @@ static void sa1111_ack_irq(unsigned int irq) | |||
189 | 243 | ||
190 | static void sa1111_mask_lowirq(unsigned int irq) | 244 | static void sa1111_mask_lowirq(unsigned int irq) |
191 | { | 245 | { |
192 | void __iomem *mapbase = get_irq_chip_data(irq); | 246 | struct sa1111 *sachip = get_irq_chip_data(irq); |
247 | void __iomem *mapbase = sachip->base + SA1111_INTC; | ||
193 | unsigned long ie0; | 248 | unsigned long ie0; |
194 | 249 | ||
195 | ie0 = sa1111_readl(mapbase + SA1111_INTEN0); | 250 | ie0 = sa1111_readl(mapbase + SA1111_INTEN0); |
@@ -199,7 +254,8 @@ static void sa1111_mask_lowirq(unsigned int irq) | |||
199 | 254 | ||
200 | static void sa1111_unmask_lowirq(unsigned int irq) | 255 | static void sa1111_unmask_lowirq(unsigned int irq) |
201 | { | 256 | { |
202 | void __iomem *mapbase = get_irq_chip_data(irq); | 257 | struct sa1111 *sachip = get_irq_chip_data(irq); |
258 | void __iomem *mapbase = sachip->base + SA1111_INTC; | ||
203 | unsigned long ie0; | 259 | unsigned long ie0; |
204 | 260 | ||
205 | ie0 = sa1111_readl(mapbase + SA1111_INTEN0); | 261 | ie0 = sa1111_readl(mapbase + SA1111_INTEN0); |
@@ -216,8 +272,9 @@ static void sa1111_unmask_lowirq(unsigned int irq) | |||
216 | */ | 272 | */ |
217 | static int sa1111_retrigger_lowirq(unsigned int irq) | 273 | static int sa1111_retrigger_lowirq(unsigned int irq) |
218 | { | 274 | { |
275 | struct sa1111 *sachip = get_irq_chip_data(irq); | ||
276 | void __iomem *mapbase = sachip->base + SA1111_INTC; | ||
219 | unsigned int mask = SA1111_IRQMASK_LO(irq); | 277 | unsigned int mask = SA1111_IRQMASK_LO(irq); |
220 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
221 | unsigned long ip0; | 278 | unsigned long ip0; |
222 | int i; | 279 | int i; |
223 | 280 | ||
@@ -237,8 +294,9 @@ static int sa1111_retrigger_lowirq(unsigned int irq) | |||
237 | 294 | ||
238 | static int sa1111_type_lowirq(unsigned int irq, unsigned int flags) | 295 | static int sa1111_type_lowirq(unsigned int irq, unsigned int flags) |
239 | { | 296 | { |
297 | struct sa1111 *sachip = get_irq_chip_data(irq); | ||
298 | void __iomem *mapbase = sachip->base + SA1111_INTC; | ||
240 | unsigned int mask = SA1111_IRQMASK_LO(irq); | 299 | unsigned int mask = SA1111_IRQMASK_LO(irq); |
241 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
242 | unsigned long ip0; | 300 | unsigned long ip0; |
243 | 301 | ||
244 | if (flags == IRQ_TYPE_PROBE) | 302 | if (flags == IRQ_TYPE_PROBE) |
@@ -260,8 +318,9 @@ static int sa1111_type_lowirq(unsigned int irq, unsigned int flags) | |||
260 | 318 | ||
261 | static int sa1111_wake_lowirq(unsigned int irq, unsigned int on) | 319 | static int sa1111_wake_lowirq(unsigned int irq, unsigned int on) |
262 | { | 320 | { |
321 | struct sa1111 *sachip = get_irq_chip_data(irq); | ||
322 | void __iomem *mapbase = sachip->base + SA1111_INTC; | ||
263 | unsigned int mask = SA1111_IRQMASK_LO(irq); | 323 | unsigned int mask = SA1111_IRQMASK_LO(irq); |
264 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
265 | unsigned long we0; | 324 | unsigned long we0; |
266 | 325 | ||
267 | we0 = sa1111_readl(mapbase + SA1111_WAKEEN0); | 326 | we0 = sa1111_readl(mapbase + SA1111_WAKEEN0); |
@@ -286,7 +345,8 @@ static struct irq_chip sa1111_low_chip = { | |||
286 | 345 | ||
287 | static void sa1111_mask_highirq(unsigned int irq) | 346 | static void sa1111_mask_highirq(unsigned int irq) |
288 | { | 347 | { |
289 | void __iomem *mapbase = get_irq_chip_data(irq); | 348 | struct sa1111 *sachip = get_irq_chip_data(irq); |
349 | void __iomem *mapbase = sachip->base + SA1111_INTC; | ||
290 | unsigned long ie1; | 350 | unsigned long ie1; |
291 | 351 | ||
292 | ie1 = sa1111_readl(mapbase + SA1111_INTEN1); | 352 | ie1 = sa1111_readl(mapbase + SA1111_INTEN1); |
@@ -296,7 +356,8 @@ static void sa1111_mask_highirq(unsigned int irq) | |||
296 | 356 | ||
297 | static void sa1111_unmask_highirq(unsigned int irq) | 357 | static void sa1111_unmask_highirq(unsigned int irq) |
298 | { | 358 | { |
299 | void __iomem *mapbase = get_irq_chip_data(irq); | 359 | struct sa1111 *sachip = get_irq_chip_data(irq); |
360 | void __iomem *mapbase = sachip->base + SA1111_INTC; | ||
300 | unsigned long ie1; | 361 | unsigned long ie1; |
301 | 362 | ||
302 | ie1 = sa1111_readl(mapbase + SA1111_INTEN1); | 363 | ie1 = sa1111_readl(mapbase + SA1111_INTEN1); |
@@ -313,8 +374,9 @@ static void sa1111_unmask_highirq(unsigned int irq) | |||
313 | */ | 374 | */ |
314 | static int sa1111_retrigger_highirq(unsigned int irq) | 375 | static int sa1111_retrigger_highirq(unsigned int irq) |
315 | { | 376 | { |
377 | struct sa1111 *sachip = get_irq_chip_data(irq); | ||
378 | void __iomem *mapbase = sachip->base + SA1111_INTC; | ||
316 | unsigned int mask = SA1111_IRQMASK_HI(irq); | 379 | unsigned int mask = SA1111_IRQMASK_HI(irq); |
317 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
318 | unsigned long ip1; | 380 | unsigned long ip1; |
319 | int i; | 381 | int i; |
320 | 382 | ||
@@ -334,8 +396,9 @@ static int sa1111_retrigger_highirq(unsigned int irq) | |||
334 | 396 | ||
335 | static int sa1111_type_highirq(unsigned int irq, unsigned int flags) | 397 | static int sa1111_type_highirq(unsigned int irq, unsigned int flags) |
336 | { | 398 | { |
399 | struct sa1111 *sachip = get_irq_chip_data(irq); | ||
400 | void __iomem *mapbase = sachip->base + SA1111_INTC; | ||
337 | unsigned int mask = SA1111_IRQMASK_HI(irq); | 401 | unsigned int mask = SA1111_IRQMASK_HI(irq); |
338 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
339 | unsigned long ip1; | 402 | unsigned long ip1; |
340 | 403 | ||
341 | if (flags == IRQ_TYPE_PROBE) | 404 | if (flags == IRQ_TYPE_PROBE) |
@@ -357,8 +420,9 @@ static int sa1111_type_highirq(unsigned int irq, unsigned int flags) | |||
357 | 420 | ||
358 | static int sa1111_wake_highirq(unsigned int irq, unsigned int on) | 421 | static int sa1111_wake_highirq(unsigned int irq, unsigned int on) |
359 | { | 422 | { |
423 | struct sa1111 *sachip = get_irq_chip_data(irq); | ||
424 | void __iomem *mapbase = sachip->base + SA1111_INTC; | ||
360 | unsigned int mask = SA1111_IRQMASK_HI(irq); | 425 | unsigned int mask = SA1111_IRQMASK_HI(irq); |
361 | void __iomem *mapbase = get_irq_chip_data(irq); | ||
362 | unsigned long we1; | 426 | unsigned long we1; |
363 | 427 | ||
364 | we1 = sa1111_readl(mapbase + SA1111_WAKEEN1); | 428 | we1 = sa1111_readl(mapbase + SA1111_WAKEEN1); |
@@ -412,14 +476,14 @@ static void sa1111_setup_irq(struct sa1111 *sachip) | |||
412 | 476 | ||
413 | for (irq = IRQ_GPAIN0; irq <= SSPROR; irq++) { | 477 | for (irq = IRQ_GPAIN0; irq <= SSPROR; irq++) { |
414 | set_irq_chip(irq, &sa1111_low_chip); | 478 | set_irq_chip(irq, &sa1111_low_chip); |
415 | set_irq_chip_data(irq, irqbase); | 479 | set_irq_chip_data(irq, sachip); |
416 | set_irq_handler(irq, handle_edge_irq); | 480 | set_irq_handler(irq, handle_edge_irq); |
417 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 481 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
418 | } | 482 | } |
419 | 483 | ||
420 | for (irq = AUDXMTDMADONEA; irq <= IRQ_S1_BVD1_STSCHG; irq++) { | 484 | for (irq = AUDXMTDMADONEA; irq <= IRQ_S1_BVD1_STSCHG; irq++) { |
421 | set_irq_chip(irq, &sa1111_high_chip); | 485 | set_irq_chip(irq, &sa1111_high_chip); |
422 | set_irq_chip_data(irq, irqbase); | 486 | set_irq_chip_data(irq, sachip); |
423 | set_irq_handler(irq, handle_edge_irq); | 487 | set_irq_handler(irq, handle_edge_irq); |
424 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 488 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
425 | } | 489 | } |
@@ -428,7 +492,7 @@ static void sa1111_setup_irq(struct sa1111 *sachip) | |||
428 | * Register SA1111 interrupt | 492 | * Register SA1111 interrupt |
429 | */ | 493 | */ |
430 | set_irq_type(sachip->irq, IRQ_TYPE_EDGE_RISING); | 494 | set_irq_type(sachip->irq, IRQ_TYPE_EDGE_RISING); |
431 | set_irq_data(sachip->irq, irqbase); | 495 | set_irq_data(sachip->irq, sachip); |
432 | set_irq_chained_handler(sachip->irq, sa1111_irq_handler); | 496 | set_irq_chained_handler(sachip->irq, sa1111_irq_handler); |
433 | } | 497 | } |
434 | 498 | ||
diff --git a/arch/arm/common/scoop.c b/arch/arm/common/scoop.c index 37bda5f3dde..9012004321d 100644 --- a/arch/arm/common/scoop.c +++ b/arch/arm/common/scoop.c | |||
@@ -140,6 +140,7 @@ EXPORT_SYMBOL(reset_scoop); | |||
140 | EXPORT_SYMBOL(read_scoop_reg); | 140 | EXPORT_SYMBOL(read_scoop_reg); |
141 | EXPORT_SYMBOL(write_scoop_reg); | 141 | EXPORT_SYMBOL(write_scoop_reg); |
142 | 142 | ||
143 | #ifdef CONFIG_PM | ||
143 | static void check_scoop_reg(struct scoop_dev *sdev) | 144 | static void check_scoop_reg(struct scoop_dev *sdev) |
144 | { | 145 | { |
145 | unsigned short mcr; | 146 | unsigned short mcr; |
@@ -149,7 +150,6 @@ static void check_scoop_reg(struct scoop_dev *sdev) | |||
149 | iowrite16(0x0101, sdev->base + SCOOP_MCR); | 150 | iowrite16(0x0101, sdev->base + SCOOP_MCR); |
150 | } | 151 | } |
151 | 152 | ||
152 | #ifdef CONFIG_PM | ||
153 | static int scoop_suspend(struct platform_device *dev, pm_message_t state) | 153 | static int scoop_suspend(struct platform_device *dev, pm_message_t state) |
154 | { | 154 | { |
155 | struct scoop_dev *sdev = platform_get_drvdata(dev); | 155 | struct scoop_dev *sdev = platform_get_drvdata(dev); |
diff --git a/arch/arm/configs/ap4evb_defconfig b/arch/arm/configs/ap4evb_defconfig new file mode 100644 index 00000000000..e14229be767 --- /dev/null +++ b/arch/arm/configs/ap4evb_defconfig | |||
@@ -0,0 +1,779 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.33-rc7 | ||
4 | # Mon Feb 8 12:25:36 2010 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | ||
8 | CONFIG_GENERIC_TIME=y | ||
9 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
10 | CONFIG_GENERIC_HARDIRQS=y | ||
11 | CONFIG_STACKTRACE_SUPPORT=y | ||
12 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | ||
13 | CONFIG_LOCKDEP_SUPPORT=y | ||
14 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
15 | CONFIG_HARDIRQS_SW_RESEND=y | ||
16 | CONFIG_GENERIC_IRQ_PROBE=y | ||
17 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
18 | CONFIG_GENERIC_HWEIGHT=y | ||
19 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
20 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y | ||
21 | CONFIG_VECTORS_BASE=0xffff0000 | ||
22 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
23 | CONFIG_CONSTRUCTORS=y | ||
24 | |||
25 | # | ||
26 | # General setup | ||
27 | # | ||
28 | CONFIG_EXPERIMENTAL=y | ||
29 | CONFIG_BROKEN_ON_SMP=y | ||
30 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
31 | CONFIG_LOCALVERSION="" | ||
32 | CONFIG_LOCALVERSION_AUTO=y | ||
33 | CONFIG_HAVE_KERNEL_GZIP=y | ||
34 | CONFIG_HAVE_KERNEL_LZO=y | ||
35 | CONFIG_KERNEL_GZIP=y | ||
36 | # CONFIG_KERNEL_BZIP2 is not set | ||
37 | # CONFIG_KERNEL_LZMA is not set | ||
38 | # CONFIG_KERNEL_LZO is not set | ||
39 | CONFIG_SWAP=y | ||
40 | CONFIG_SYSVIPC=y | ||
41 | CONFIG_SYSVIPC_SYSCTL=y | ||
42 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
43 | |||
44 | # | ||
45 | # RCU Subsystem | ||
46 | # | ||
47 | CONFIG_TREE_RCU=y | ||
48 | # CONFIG_TREE_PREEMPT_RCU is not set | ||
49 | # CONFIG_TINY_RCU is not set | ||
50 | # CONFIG_RCU_TRACE is not set | ||
51 | CONFIG_RCU_FANOUT=32 | ||
52 | # CONFIG_RCU_FANOUT_EXACT is not set | ||
53 | # CONFIG_TREE_RCU_TRACE is not set | ||
54 | CONFIG_IKCONFIG=y | ||
55 | CONFIG_IKCONFIG_PROC=y | ||
56 | CONFIG_LOG_BUF_SHIFT=16 | ||
57 | CONFIG_GROUP_SCHED=y | ||
58 | CONFIG_FAIR_GROUP_SCHED=y | ||
59 | # CONFIG_RT_GROUP_SCHED is not set | ||
60 | CONFIG_USER_SCHED=y | ||
61 | # CONFIG_CGROUP_SCHED is not set | ||
62 | # CONFIG_CGROUPS is not set | ||
63 | # CONFIG_SYSFS_DEPRECATED_V2 is not set | ||
64 | # CONFIG_RELAY is not set | ||
65 | CONFIG_NAMESPACES=y | ||
66 | # CONFIG_UTS_NS is not set | ||
67 | # CONFIG_IPC_NS is not set | ||
68 | # CONFIG_USER_NS is not set | ||
69 | # CONFIG_PID_NS is not set | ||
70 | CONFIG_BLK_DEV_INITRD=y | ||
71 | CONFIG_INITRAMFS_SOURCE="" | ||
72 | CONFIG_RD_GZIP=y | ||
73 | CONFIG_RD_BZIP2=y | ||
74 | CONFIG_RD_LZMA=y | ||
75 | CONFIG_RD_LZO=y | ||
76 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
77 | CONFIG_SYSCTL=y | ||
78 | CONFIG_ANON_INODES=y | ||
79 | # CONFIG_EMBEDDED is not set | ||
80 | CONFIG_UID16=y | ||
81 | CONFIG_SYSCTL_SYSCALL=y | ||
82 | CONFIG_KALLSYMS=y | ||
83 | # CONFIG_KALLSYMS_ALL is not set | ||
84 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
85 | CONFIG_HOTPLUG=y | ||
86 | CONFIG_PRINTK=y | ||
87 | CONFIG_BUG=y | ||
88 | CONFIG_ELF_CORE=y | ||
89 | CONFIG_BASE_FULL=y | ||
90 | CONFIG_FUTEX=y | ||
91 | CONFIG_EPOLL=y | ||
92 | CONFIG_SIGNALFD=y | ||
93 | CONFIG_TIMERFD=y | ||
94 | CONFIG_EVENTFD=y | ||
95 | CONFIG_SHMEM=y | ||
96 | CONFIG_AIO=y | ||
97 | |||
98 | # | ||
99 | # Kernel Performance Events And Counters | ||
100 | # | ||
101 | CONFIG_VM_EVENT_COUNTERS=y | ||
102 | CONFIG_COMPAT_BRK=y | ||
103 | CONFIG_SLAB=y | ||
104 | # CONFIG_SLUB is not set | ||
105 | # CONFIG_SLOB is not set | ||
106 | # CONFIG_PROFILING is not set | ||
107 | CONFIG_HAVE_OPROFILE=y | ||
108 | CONFIG_HAVE_KPROBES=y | ||
109 | CONFIG_HAVE_KRETPROBES=y | ||
110 | CONFIG_HAVE_CLK=y | ||
111 | |||
112 | # | ||
113 | # GCOV-based kernel profiling | ||
114 | # | ||
115 | # CONFIG_SLOW_WORK is not set | ||
116 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | ||
117 | CONFIG_SLABINFO=y | ||
118 | CONFIG_RT_MUTEXES=y | ||
119 | CONFIG_BASE_SMALL=0 | ||
120 | # CONFIG_MODULES is not set | ||
121 | CONFIG_BLOCK=y | ||
122 | CONFIG_LBDAF=y | ||
123 | # CONFIG_BLK_DEV_BSG is not set | ||
124 | # CONFIG_BLK_DEV_INTEGRITY is not set | ||
125 | |||
126 | # | ||
127 | # IO Schedulers | ||
128 | # | ||
129 | CONFIG_IOSCHED_NOOP=y | ||
130 | # CONFIG_IOSCHED_DEADLINE is not set | ||
131 | # CONFIG_IOSCHED_CFQ is not set | ||
132 | # CONFIG_DEFAULT_DEADLINE is not set | ||
133 | # CONFIG_DEFAULT_CFQ is not set | ||
134 | CONFIG_DEFAULT_NOOP=y | ||
135 | CONFIG_DEFAULT_IOSCHED="noop" | ||
136 | # CONFIG_INLINE_SPIN_TRYLOCK is not set | ||
137 | # CONFIG_INLINE_SPIN_TRYLOCK_BH is not set | ||
138 | # CONFIG_INLINE_SPIN_LOCK is not set | ||
139 | # CONFIG_INLINE_SPIN_LOCK_BH is not set | ||
140 | # CONFIG_INLINE_SPIN_LOCK_IRQ is not set | ||
141 | # CONFIG_INLINE_SPIN_LOCK_IRQSAVE is not set | ||
142 | CONFIG_INLINE_SPIN_UNLOCK=y | ||
143 | # CONFIG_INLINE_SPIN_UNLOCK_BH is not set | ||
144 | CONFIG_INLINE_SPIN_UNLOCK_IRQ=y | ||
145 | # CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE is not set | ||
146 | # CONFIG_INLINE_READ_TRYLOCK is not set | ||
147 | # CONFIG_INLINE_READ_LOCK is not set | ||
148 | # CONFIG_INLINE_READ_LOCK_BH is not set | ||
149 | # CONFIG_INLINE_READ_LOCK_IRQ is not set | ||
150 | # CONFIG_INLINE_READ_LOCK_IRQSAVE is not set | ||
151 | CONFIG_INLINE_READ_UNLOCK=y | ||
152 | # CONFIG_INLINE_READ_UNLOCK_BH is not set | ||
153 | CONFIG_INLINE_READ_UNLOCK_IRQ=y | ||
154 | # CONFIG_INLINE_READ_UNLOCK_IRQRESTORE is not set | ||
155 | # CONFIG_INLINE_WRITE_TRYLOCK is not set | ||
156 | # CONFIG_INLINE_WRITE_LOCK is not set | ||
157 | # CONFIG_INLINE_WRITE_LOCK_BH is not set | ||
158 | # CONFIG_INLINE_WRITE_LOCK_IRQ is not set | ||
159 | # CONFIG_INLINE_WRITE_LOCK_IRQSAVE is not set | ||
160 | CONFIG_INLINE_WRITE_UNLOCK=y | ||
161 | # CONFIG_INLINE_WRITE_UNLOCK_BH is not set | ||
162 | CONFIG_INLINE_WRITE_UNLOCK_IRQ=y | ||
163 | # CONFIG_INLINE_WRITE_UNLOCK_IRQRESTORE is not set | ||
164 | # CONFIG_MUTEX_SPIN_ON_OWNER is not set | ||
165 | # CONFIG_FREEZER is not set | ||
166 | |||
167 | # | ||
168 | # System Type | ||
169 | # | ||
170 | CONFIG_MMU=y | ||
171 | # CONFIG_ARCH_AAEC2000 is not set | ||
172 | # CONFIG_ARCH_INTEGRATOR is not set | ||
173 | # CONFIG_ARCH_REALVIEW is not set | ||
174 | # CONFIG_ARCH_VERSATILE is not set | ||
175 | # CONFIG_ARCH_AT91 is not set | ||
176 | # CONFIG_ARCH_CLPS711X is not set | ||
177 | # CONFIG_ARCH_GEMINI is not set | ||
178 | # CONFIG_ARCH_EBSA110 is not set | ||
179 | # CONFIG_ARCH_EP93XX is not set | ||
180 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
181 | # CONFIG_ARCH_MXC is not set | ||
182 | # CONFIG_ARCH_STMP3XXX is not set | ||
183 | # CONFIG_ARCH_NETX is not set | ||
184 | # CONFIG_ARCH_H720X is not set | ||
185 | # CONFIG_ARCH_NOMADIK is not set | ||
186 | # CONFIG_ARCH_IOP13XX is not set | ||
187 | # CONFIG_ARCH_IOP32X is not set | ||
188 | # CONFIG_ARCH_IOP33X is not set | ||
189 | # CONFIG_ARCH_IXP23XX is not set | ||
190 | # CONFIG_ARCH_IXP2000 is not set | ||
191 | # CONFIG_ARCH_IXP4XX is not set | ||
192 | # CONFIG_ARCH_L7200 is not set | ||
193 | # CONFIG_ARCH_DOVE is not set | ||
194 | # CONFIG_ARCH_KIRKWOOD is not set | ||
195 | # CONFIG_ARCH_LOKI is not set | ||
196 | # CONFIG_ARCH_MV78XX0 is not set | ||
197 | # CONFIG_ARCH_ORION5X is not set | ||
198 | # CONFIG_ARCH_MMP is not set | ||
199 | # CONFIG_ARCH_KS8695 is not set | ||
200 | # CONFIG_ARCH_NS9XXX is not set | ||
201 | # CONFIG_ARCH_W90X900 is not set | ||
202 | # CONFIG_ARCH_PNX4008 is not set | ||
203 | # CONFIG_ARCH_PXA is not set | ||
204 | # CONFIG_ARCH_MSM is not set | ||
205 | CONFIG_ARCH_SHMOBILE=y | ||
206 | # CONFIG_ARCH_RPC is not set | ||
207 | # CONFIG_ARCH_SA1100 is not set | ||
208 | # CONFIG_ARCH_S3C2410 is not set | ||
209 | # CONFIG_ARCH_S3C64XX is not set | ||
210 | # CONFIG_ARCH_S5PC1XX is not set | ||
211 | # CONFIG_ARCH_SHARK is not set | ||
212 | # CONFIG_ARCH_LH7A40X is not set | ||
213 | # CONFIG_ARCH_U300 is not set | ||
214 | # CONFIG_ARCH_DAVINCI is not set | ||
215 | # CONFIG_ARCH_OMAP is not set | ||
216 | # CONFIG_ARCH_BCMRING is not set | ||
217 | # CONFIG_ARCH_U8500 is not set | ||
218 | |||
219 | # | ||
220 | # SH-Mobile System Type | ||
221 | # | ||
222 | # CONFIG_ARCH_SH7367 is not set | ||
223 | # CONFIG_ARCH_SH7377 is not set | ||
224 | CONFIG_ARCH_SH7372=y | ||
225 | |||
226 | # | ||
227 | # SH-Mobile Board Type | ||
228 | # | ||
229 | CONFIG_MACH_AP4EVB=y | ||
230 | |||
231 | # | ||
232 | # SH-Mobile System Configuration | ||
233 | # | ||
234 | |||
235 | # | ||
236 | # Memory configuration | ||
237 | # | ||
238 | CONFIG_MEMORY_START=0x40000000 | ||
239 | CONFIG_MEMORY_SIZE=0x10000000 | ||
240 | |||
241 | # | ||
242 | # Timer and clock configuration | ||
243 | # | ||
244 | CONFIG_SH_TIMER_CMT=y | ||
245 | |||
246 | # | ||
247 | # Processor Type | ||
248 | # | ||
249 | CONFIG_CPU_32v6K=y | ||
250 | CONFIG_CPU_V7=y | ||
251 | CONFIG_CPU_32v7=y | ||
252 | CONFIG_CPU_ABRT_EV7=y | ||
253 | CONFIG_CPU_PABRT_V7=y | ||
254 | CONFIG_CPU_CACHE_V7=y | ||
255 | CONFIG_CPU_CACHE_VIPT=y | ||
256 | CONFIG_CPU_COPY_V6=y | ||
257 | CONFIG_CPU_TLB_V7=y | ||
258 | CONFIG_CPU_HAS_ASID=y | ||
259 | CONFIG_CPU_CP15=y | ||
260 | CONFIG_CPU_CP15_MMU=y | ||
261 | |||
262 | # | ||
263 | # Processor Features | ||
264 | # | ||
265 | CONFIG_ARM_THUMB=y | ||
266 | # CONFIG_ARM_THUMBEE is not set | ||
267 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
268 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
269 | # CONFIG_CPU_BPREDICT_DISABLE is not set | ||
270 | CONFIG_HAS_TLS_REG=y | ||
271 | CONFIG_ARM_L1_CACHE_SHIFT=5 | ||
272 | # CONFIG_ARM_ERRATA_430973 is not set | ||
273 | # CONFIG_ARM_ERRATA_458693 is not set | ||
274 | # CONFIG_ARM_ERRATA_460075 is not set | ||
275 | CONFIG_COMMON_CLKDEV=y | ||
276 | |||
277 | # | ||
278 | # Bus support | ||
279 | # | ||
280 | # CONFIG_PCI_SYSCALL is not set | ||
281 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
282 | # CONFIG_PCCARD is not set | ||
283 | |||
284 | # | ||
285 | # Kernel Features | ||
286 | # | ||
287 | # CONFIG_NO_HZ is not set | ||
288 | # CONFIG_HIGH_RES_TIMERS is not set | ||
289 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
290 | CONFIG_VMSPLIT_3G=y | ||
291 | # CONFIG_VMSPLIT_2G is not set | ||
292 | # CONFIG_VMSPLIT_1G is not set | ||
293 | CONFIG_PAGE_OFFSET=0xC0000000 | ||
294 | CONFIG_PREEMPT_NONE=y | ||
295 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
296 | # CONFIG_PREEMPT is not set | ||
297 | CONFIG_HZ=100 | ||
298 | # CONFIG_THUMB2_KERNEL is not set | ||
299 | CONFIG_AEABI=y | ||
300 | # CONFIG_OABI_COMPAT is not set | ||
301 | # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set | ||
302 | # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set | ||
303 | # CONFIG_HIGHMEM is not set | ||
304 | CONFIG_SELECT_MEMORY_MODEL=y | ||
305 | CONFIG_FLATMEM_MANUAL=y | ||
306 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
307 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
308 | CONFIG_FLATMEM=y | ||
309 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
310 | CONFIG_PAGEFLAGS_EXTENDED=y | ||
311 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
312 | # CONFIG_PHYS_ADDR_T_64BIT is not set | ||
313 | CONFIG_ZONE_DMA_FLAG=0 | ||
314 | CONFIG_VIRT_TO_BUS=y | ||
315 | # CONFIG_KSM is not set | ||
316 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 | ||
317 | CONFIG_ALIGNMENT_TRAP=y | ||
318 | # CONFIG_UACCESS_WITH_MEMCPY is not set | ||
319 | |||
320 | # | ||
321 | # Boot options | ||
322 | # | ||
323 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
324 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
325 | CONFIG_CMDLINE="console=ttySC0,115200 earlyprintk=sh-sci.0,115200" | ||
326 | # CONFIG_XIP_KERNEL is not set | ||
327 | CONFIG_KEXEC=y | ||
328 | CONFIG_ATAGS_PROC=y | ||
329 | |||
330 | # | ||
331 | # CPU Power Management | ||
332 | # | ||
333 | # CONFIG_CPU_IDLE is not set | ||
334 | |||
335 | # | ||
336 | # Floating point emulation | ||
337 | # | ||
338 | |||
339 | # | ||
340 | # At least one emulation must be selected | ||
341 | # | ||
342 | # CONFIG_VFP is not set | ||
343 | |||
344 | # | ||
345 | # Userspace binary formats | ||
346 | # | ||
347 | CONFIG_BINFMT_ELF=y | ||
348 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set | ||
349 | CONFIG_HAVE_AOUT=y | ||
350 | # CONFIG_BINFMT_AOUT is not set | ||
351 | # CONFIG_BINFMT_MISC is not set | ||
352 | |||
353 | # | ||
354 | # Power management options | ||
355 | # | ||
356 | CONFIG_PM=y | ||
357 | # CONFIG_PM_DEBUG is not set | ||
358 | # CONFIG_SUSPEND is not set | ||
359 | # CONFIG_APM_EMULATION is not set | ||
360 | # CONFIG_PM_RUNTIME is not set | ||
361 | CONFIG_ARCH_SUSPEND_POSSIBLE=y | ||
362 | # CONFIG_NET is not set | ||
363 | |||
364 | # | ||
365 | # Device Drivers | ||
366 | # | ||
367 | |||
368 | # | ||
369 | # Generic Driver Options | ||
370 | # | ||
371 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
372 | # CONFIG_DEVTMPFS is not set | ||
373 | CONFIG_STANDALONE=y | ||
374 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
375 | CONFIG_FW_LOADER=y | ||
376 | # CONFIG_FIRMWARE_IN_KERNEL is not set | ||
377 | CONFIG_EXTRA_FIRMWARE="" | ||
378 | # CONFIG_DEBUG_DRIVER is not set | ||
379 | # CONFIG_DEBUG_DEVRES is not set | ||
380 | # CONFIG_SYS_HYPERVISOR is not set | ||
381 | CONFIG_MTD=y | ||
382 | # CONFIG_MTD_DEBUG is not set | ||
383 | CONFIG_MTD_CONCAT=y | ||
384 | CONFIG_MTD_PARTITIONS=y | ||
385 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
386 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
387 | # CONFIG_MTD_AFS_PARTS is not set | ||
388 | # CONFIG_MTD_AR7_PARTS is not set | ||
389 | |||
390 | # | ||
391 | # User Modules And Translation Layers | ||
392 | # | ||
393 | CONFIG_MTD_CHAR=y | ||
394 | CONFIG_MTD_BLKDEVS=y | ||
395 | CONFIG_MTD_BLOCK=y | ||
396 | # CONFIG_FTL is not set | ||
397 | # CONFIG_NFTL is not set | ||
398 | # CONFIG_INFTL is not set | ||
399 | # CONFIG_RFD_FTL is not set | ||
400 | # CONFIG_SSFDC is not set | ||
401 | # CONFIG_MTD_OOPS is not set | ||
402 | |||
403 | # | ||
404 | # RAM/ROM/Flash chip drivers | ||
405 | # | ||
406 | CONFIG_MTD_CFI=y | ||
407 | # CONFIG_MTD_JEDECPROBE is not set | ||
408 | CONFIG_MTD_GEN_PROBE=y | ||
409 | # CONFIG_MTD_CFI_ADV_OPTIONS is not set | ||
410 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
411 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
412 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
413 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
414 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
415 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
416 | CONFIG_MTD_CFI_I1=y | ||
417 | CONFIG_MTD_CFI_I2=y | ||
418 | # CONFIG_MTD_CFI_I4 is not set | ||
419 | # CONFIG_MTD_CFI_I8 is not set | ||
420 | CONFIG_MTD_CFI_INTELEXT=y | ||
421 | # CONFIG_MTD_CFI_AMDSTD is not set | ||
422 | # CONFIG_MTD_CFI_STAA is not set | ||
423 | CONFIG_MTD_CFI_UTIL=y | ||
424 | # CONFIG_MTD_RAM is not set | ||
425 | # CONFIG_MTD_ROM is not set | ||
426 | # CONFIG_MTD_ABSENT is not set | ||
427 | |||
428 | # | ||
429 | # Mapping drivers for chip access | ||
430 | # | ||
431 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
432 | CONFIG_MTD_PHYSMAP=y | ||
433 | # CONFIG_MTD_PHYSMAP_COMPAT is not set | ||
434 | # CONFIG_MTD_ARM_INTEGRATOR is not set | ||
435 | # CONFIG_MTD_PLATRAM is not set | ||
436 | |||
437 | # | ||
438 | # Self-contained MTD device drivers | ||
439 | # | ||
440 | # CONFIG_MTD_SLRAM is not set | ||
441 | # CONFIG_MTD_PHRAM is not set | ||
442 | # CONFIG_MTD_MTDRAM is not set | ||
443 | # CONFIG_MTD_BLOCK2MTD is not set | ||
444 | |||
445 | # | ||
446 | # Disk-On-Chip Device Drivers | ||
447 | # | ||
448 | # CONFIG_MTD_DOC2000 is not set | ||
449 | # CONFIG_MTD_DOC2001 is not set | ||
450 | # CONFIG_MTD_DOC2001PLUS is not set | ||
451 | CONFIG_MTD_NAND=y | ||
452 | # CONFIG_MTD_NAND_VERIFY_WRITE is not set | ||
453 | # CONFIG_MTD_NAND_ECC_SMC is not set | ||
454 | # CONFIG_MTD_NAND_MUSEUM_IDS is not set | ||
455 | CONFIG_MTD_NAND_IDS=y | ||
456 | # CONFIG_MTD_NAND_DISKONCHIP is not set | ||
457 | # CONFIG_MTD_NAND_NANDSIM is not set | ||
458 | # CONFIG_MTD_NAND_PLATFORM is not set | ||
459 | # CONFIG_MTD_ONENAND is not set | ||
460 | |||
461 | # | ||
462 | # LPDDR flash memory drivers | ||
463 | # | ||
464 | # CONFIG_MTD_LPDDR is not set | ||
465 | |||
466 | # | ||
467 | # UBI - Unsorted block images | ||
468 | # | ||
469 | # CONFIG_MTD_UBI is not set | ||
470 | # CONFIG_PARPORT is not set | ||
471 | # CONFIG_BLK_DEV is not set | ||
472 | # CONFIG_MISC_DEVICES is not set | ||
473 | CONFIG_HAVE_IDE=y | ||
474 | # CONFIG_IDE is not set | ||
475 | |||
476 | # | ||
477 | # SCSI device support | ||
478 | # | ||
479 | # CONFIG_RAID_ATTRS is not set | ||
480 | # CONFIG_SCSI is not set | ||
481 | # CONFIG_SCSI_DMA is not set | ||
482 | # CONFIG_SCSI_NETLINK is not set | ||
483 | # CONFIG_ATA is not set | ||
484 | # CONFIG_MD is not set | ||
485 | # CONFIG_PHONE is not set | ||
486 | |||
487 | # | ||
488 | # Input device support | ||
489 | # | ||
490 | CONFIG_INPUT=y | ||
491 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
492 | # CONFIG_INPUT_POLLDEV is not set | ||
493 | # CONFIG_INPUT_SPARSEKMAP is not set | ||
494 | |||
495 | # | ||
496 | # Userland interfaces | ||
497 | # | ||
498 | CONFIG_INPUT_MOUSEDEV=y | ||
499 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
500 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
501 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
502 | # CONFIG_INPUT_JOYDEV is not set | ||
503 | # CONFIG_INPUT_EVDEV is not set | ||
504 | # CONFIG_INPUT_EVBUG is not set | ||
505 | |||
506 | # | ||
507 | # Input Device Drivers | ||
508 | # | ||
509 | # CONFIG_INPUT_KEYBOARD is not set | ||
510 | # CONFIG_INPUT_MOUSE is not set | ||
511 | # CONFIG_INPUT_JOYSTICK is not set | ||
512 | # CONFIG_INPUT_TABLET is not set | ||
513 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
514 | # CONFIG_INPUT_MISC is not set | ||
515 | |||
516 | # | ||
517 | # Hardware I/O ports | ||
518 | # | ||
519 | # CONFIG_SERIO is not set | ||
520 | # CONFIG_GAMEPORT is not set | ||
521 | |||
522 | # | ||
523 | # Character devices | ||
524 | # | ||
525 | CONFIG_VT=y | ||
526 | CONFIG_CONSOLE_TRANSLATIONS=y | ||
527 | CONFIG_VT_CONSOLE=y | ||
528 | CONFIG_HW_CONSOLE=y | ||
529 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
530 | CONFIG_DEVKMEM=y | ||
531 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
532 | |||
533 | # | ||
534 | # Serial drivers | ||
535 | # | ||
536 | # CONFIG_SERIAL_8250 is not set | ||
537 | |||
538 | # | ||
539 | # Non-8250 serial port support | ||
540 | # | ||
541 | CONFIG_SERIAL_SH_SCI=y | ||
542 | CONFIG_SERIAL_SH_SCI_NR_UARTS=8 | ||
543 | CONFIG_SERIAL_SH_SCI_CONSOLE=y | ||
544 | CONFIG_SERIAL_CORE=y | ||
545 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
546 | CONFIG_UNIX98_PTYS=y | ||
547 | # CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set | ||
548 | # CONFIG_LEGACY_PTYS is not set | ||
549 | # CONFIG_IPMI_HANDLER is not set | ||
550 | # CONFIG_HW_RANDOM is not set | ||
551 | # CONFIG_R3964 is not set | ||
552 | # CONFIG_RAW_DRIVER is not set | ||
553 | # CONFIG_TCG_TPM is not set | ||
554 | # CONFIG_I2C is not set | ||
555 | # CONFIG_SPI is not set | ||
556 | |||
557 | # | ||
558 | # PPS support | ||
559 | # | ||
560 | # CONFIG_PPS is not set | ||
561 | # CONFIG_W1 is not set | ||
562 | # CONFIG_POWER_SUPPLY is not set | ||
563 | # CONFIG_HWMON is not set | ||
564 | # CONFIG_THERMAL is not set | ||
565 | # CONFIG_WATCHDOG is not set | ||
566 | CONFIG_SSB_POSSIBLE=y | ||
567 | |||
568 | # | ||
569 | # Sonics Silicon Backplane | ||
570 | # | ||
571 | # CONFIG_SSB is not set | ||
572 | |||
573 | # | ||
574 | # Multifunction device drivers | ||
575 | # | ||
576 | # CONFIG_MFD_CORE is not set | ||
577 | # CONFIG_MFD_SM501 is not set | ||
578 | # CONFIG_HTC_PASIC3 is not set | ||
579 | # CONFIG_MFD_TMIO is not set | ||
580 | # CONFIG_MFD_T7L66XB is not set | ||
581 | # CONFIG_MFD_TC6387XB is not set | ||
582 | # CONFIG_REGULATOR is not set | ||
583 | # CONFIG_MEDIA_SUPPORT is not set | ||
584 | |||
585 | # | ||
586 | # Graphics support | ||
587 | # | ||
588 | # CONFIG_VGASTATE is not set | ||
589 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
590 | # CONFIG_FB is not set | ||
591 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
592 | |||
593 | # | ||
594 | # Display device support | ||
595 | # | ||
596 | # CONFIG_DISPLAY_SUPPORT is not set | ||
597 | |||
598 | # | ||
599 | # Console display driver support | ||
600 | # | ||
601 | # CONFIG_VGA_CONSOLE is not set | ||
602 | CONFIG_DUMMY_CONSOLE=y | ||
603 | # CONFIG_SOUND is not set | ||
604 | # CONFIG_HID_SUPPORT is not set | ||
605 | # CONFIG_USB_SUPPORT is not set | ||
606 | # CONFIG_MMC is not set | ||
607 | # CONFIG_MEMSTICK is not set | ||
608 | # CONFIG_NEW_LEDS is not set | ||
609 | # CONFIG_ACCESSIBILITY is not set | ||
610 | CONFIG_RTC_LIB=y | ||
611 | # CONFIG_RTC_CLASS is not set | ||
612 | # CONFIG_DMADEVICES is not set | ||
613 | # CONFIG_AUXDISPLAY is not set | ||
614 | # CONFIG_UIO is not set | ||
615 | |||
616 | # | ||
617 | # TI VLYNQ | ||
618 | # | ||
619 | # CONFIG_STAGING is not set | ||
620 | |||
621 | # | ||
622 | # File systems | ||
623 | # | ||
624 | # CONFIG_EXT2_FS is not set | ||
625 | # CONFIG_EXT3_FS is not set | ||
626 | # CONFIG_EXT4_FS is not set | ||
627 | # CONFIG_REISERFS_FS is not set | ||
628 | # CONFIG_JFS_FS is not set | ||
629 | # CONFIG_FS_POSIX_ACL is not set | ||
630 | # CONFIG_XFS_FS is not set | ||
631 | # CONFIG_GFS2_FS is not set | ||
632 | # CONFIG_BTRFS_FS is not set | ||
633 | # CONFIG_NILFS2_FS is not set | ||
634 | CONFIG_FILE_LOCKING=y | ||
635 | # CONFIG_FSNOTIFY is not set | ||
636 | # CONFIG_DNOTIFY is not set | ||
637 | # CONFIG_INOTIFY is not set | ||
638 | # CONFIG_INOTIFY_USER is not set | ||
639 | # CONFIG_QUOTA is not set | ||
640 | # CONFIG_AUTOFS_FS is not set | ||
641 | # CONFIG_AUTOFS4_FS is not set | ||
642 | # CONFIG_FUSE_FS is not set | ||
643 | |||
644 | # | ||
645 | # Caches | ||
646 | # | ||
647 | # CONFIG_FSCACHE is not set | ||
648 | |||
649 | # | ||
650 | # CD-ROM/DVD Filesystems | ||
651 | # | ||
652 | # CONFIG_ISO9660_FS is not set | ||
653 | # CONFIG_UDF_FS is not set | ||
654 | |||
655 | # | ||
656 | # DOS/FAT/NT Filesystems | ||
657 | # | ||
658 | # CONFIG_MSDOS_FS is not set | ||
659 | # CONFIG_VFAT_FS is not set | ||
660 | # CONFIG_NTFS_FS is not set | ||
661 | |||
662 | # | ||
663 | # Pseudo filesystems | ||
664 | # | ||
665 | CONFIG_PROC_FS=y | ||
666 | CONFIG_PROC_SYSCTL=y | ||
667 | CONFIG_PROC_PAGE_MONITOR=y | ||
668 | CONFIG_SYSFS=y | ||
669 | CONFIG_TMPFS=y | ||
670 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
671 | # CONFIG_HUGETLB_PAGE is not set | ||
672 | # CONFIG_CONFIGFS_FS is not set | ||
673 | # CONFIG_MISC_FILESYSTEMS is not set | ||
674 | |||
675 | # | ||
676 | # Partition Types | ||
677 | # | ||
678 | # CONFIG_PARTITION_ADVANCED is not set | ||
679 | CONFIG_MSDOS_PARTITION=y | ||
680 | # CONFIG_NLS is not set | ||
681 | |||
682 | # | ||
683 | # Kernel hacking | ||
684 | # | ||
685 | # CONFIG_PRINTK_TIME is not set | ||
686 | CONFIG_ENABLE_WARN_DEPRECATED=y | ||
687 | CONFIG_ENABLE_MUST_CHECK=y | ||
688 | CONFIG_FRAME_WARN=1024 | ||
689 | CONFIG_MAGIC_SYSRQ=y | ||
690 | # CONFIG_STRIP_ASM_SYMS is not set | ||
691 | # CONFIG_UNUSED_SYMBOLS is not set | ||
692 | # CONFIG_DEBUG_FS is not set | ||
693 | # CONFIG_HEADERS_CHECK is not set | ||
694 | CONFIG_DEBUG_KERNEL=y | ||
695 | # CONFIG_DEBUG_SHIRQ is not set | ||
696 | # CONFIG_DETECT_SOFTLOCKUP is not set | ||
697 | # CONFIG_DETECT_HUNG_TASK is not set | ||
698 | CONFIG_SCHED_DEBUG=y | ||
699 | # CONFIG_SCHEDSTATS is not set | ||
700 | # CONFIG_TIMER_STATS is not set | ||
701 | # CONFIG_DEBUG_OBJECTS is not set | ||
702 | # CONFIG_DEBUG_SLAB is not set | ||
703 | # CONFIG_DEBUG_KMEMLEAK is not set | ||
704 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
705 | # CONFIG_RT_MUTEX_TESTER is not set | ||
706 | # CONFIG_DEBUG_SPINLOCK is not set | ||
707 | # CONFIG_DEBUG_MUTEXES is not set | ||
708 | # CONFIG_DEBUG_LOCK_ALLOC is not set | ||
709 | # CONFIG_PROVE_LOCKING is not set | ||
710 | # CONFIG_LOCK_STAT is not set | ||
711 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
712 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
713 | # CONFIG_DEBUG_KOBJECT is not set | ||
714 | CONFIG_DEBUG_BUGVERBOSE=y | ||
715 | # CONFIG_DEBUG_INFO is not set | ||
716 | # CONFIG_DEBUG_VM is not set | ||
717 | # CONFIG_DEBUG_WRITECOUNT is not set | ||
718 | CONFIG_DEBUG_MEMORY_INIT=y | ||
719 | # CONFIG_DEBUG_LIST is not set | ||
720 | # CONFIG_DEBUG_SG is not set | ||
721 | # CONFIG_DEBUG_NOTIFIERS is not set | ||
722 | # CONFIG_DEBUG_CREDENTIALS is not set | ||
723 | # CONFIG_BOOT_PRINTK_DELAY is not set | ||
724 | # CONFIG_RCU_TORTURE_TEST is not set | ||
725 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | ||
726 | # CONFIG_BACKTRACE_SELF_TEST is not set | ||
727 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set | ||
728 | # CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set | ||
729 | # CONFIG_FAULT_INJECTION is not set | ||
730 | # CONFIG_LATENCYTOP is not set | ||
731 | # CONFIG_SYSCTL_SYSCALL_CHECK is not set | ||
732 | # CONFIG_PAGE_POISONING is not set | ||
733 | CONFIG_HAVE_FUNCTION_TRACER=y | ||
734 | CONFIG_TRACING_SUPPORT=y | ||
735 | # CONFIG_FTRACE is not set | ||
736 | # CONFIG_SAMPLES is not set | ||
737 | CONFIG_HAVE_ARCH_KGDB=y | ||
738 | # CONFIG_KGDB is not set | ||
739 | CONFIG_ARM_UNWIND=y | ||
740 | # CONFIG_DEBUG_USER is not set | ||
741 | # CONFIG_DEBUG_ERRORS is not set | ||
742 | # CONFIG_DEBUG_STACK_USAGE is not set | ||
743 | # CONFIG_DEBUG_LL is not set | ||
744 | # CONFIG_OC_ETM is not set | ||
745 | |||
746 | # | ||
747 | # Security options | ||
748 | # | ||
749 | # CONFIG_KEYS is not set | ||
750 | # CONFIG_SECURITY is not set | ||
751 | # CONFIG_SECURITYFS is not set | ||
752 | # CONFIG_DEFAULT_SECURITY_SELINUX is not set | ||
753 | # CONFIG_DEFAULT_SECURITY_SMACK is not set | ||
754 | # CONFIG_DEFAULT_SECURITY_TOMOYO is not set | ||
755 | CONFIG_DEFAULT_SECURITY_DAC=y | ||
756 | CONFIG_DEFAULT_SECURITY="" | ||
757 | # CONFIG_CRYPTO is not set | ||
758 | # CONFIG_BINARY_PRINTF is not set | ||
759 | |||
760 | # | ||
761 | # Library routines | ||
762 | # | ||
763 | CONFIG_GENERIC_FIND_LAST_BIT=y | ||
764 | # CONFIG_CRC_CCITT is not set | ||
765 | # CONFIG_CRC16 is not set | ||
766 | # CONFIG_CRC_T10DIF is not set | ||
767 | # CONFIG_CRC_ITU_T is not set | ||
768 | # CONFIG_CRC32 is not set | ||
769 | # CONFIG_CRC7 is not set | ||
770 | # CONFIG_LIBCRC32C is not set | ||
771 | CONFIG_ZLIB_INFLATE=y | ||
772 | CONFIG_LZO_DECOMPRESS=y | ||
773 | CONFIG_DECOMPRESS_GZIP=y | ||
774 | CONFIG_DECOMPRESS_BZIP2=y | ||
775 | CONFIG_DECOMPRESS_LZMA=y | ||
776 | CONFIG_DECOMPRESS_LZO=y | ||
777 | CONFIG_HAS_IOMEM=y | ||
778 | CONFIG_HAS_IOPORT=y | ||
779 | CONFIG_HAS_DMA=y | ||
diff --git a/arch/arm/configs/g3evm_defconfig b/arch/arm/configs/g3evm_defconfig new file mode 100644 index 00000000000..3c19031961d --- /dev/null +++ b/arch/arm/configs/g3evm_defconfig | |||
@@ -0,0 +1,774 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.33-rc7 | ||
4 | # Mon Feb 8 12:20:01 2010 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | ||
8 | CONFIG_GENERIC_TIME=y | ||
9 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
10 | CONFIG_GENERIC_HARDIRQS=y | ||
11 | CONFIG_STACKTRACE_SUPPORT=y | ||
12 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | ||
13 | CONFIG_LOCKDEP_SUPPORT=y | ||
14 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
15 | CONFIG_HARDIRQS_SW_RESEND=y | ||
16 | CONFIG_GENERIC_IRQ_PROBE=y | ||
17 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
18 | CONFIG_GENERIC_HWEIGHT=y | ||
19 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
20 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y | ||
21 | CONFIG_VECTORS_BASE=0xffff0000 | ||
22 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
23 | CONFIG_CONSTRUCTORS=y | ||
24 | |||
25 | # | ||
26 | # General setup | ||
27 | # | ||
28 | CONFIG_EXPERIMENTAL=y | ||
29 | CONFIG_BROKEN_ON_SMP=y | ||
30 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
31 | CONFIG_LOCALVERSION="" | ||
32 | CONFIG_LOCALVERSION_AUTO=y | ||
33 | CONFIG_HAVE_KERNEL_GZIP=y | ||
34 | CONFIG_HAVE_KERNEL_LZO=y | ||
35 | CONFIG_KERNEL_GZIP=y | ||
36 | # CONFIG_KERNEL_BZIP2 is not set | ||
37 | # CONFIG_KERNEL_LZMA is not set | ||
38 | # CONFIG_KERNEL_LZO is not set | ||
39 | CONFIG_SWAP=y | ||
40 | CONFIG_SYSVIPC=y | ||
41 | CONFIG_SYSVIPC_SYSCTL=y | ||
42 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
43 | |||
44 | # | ||
45 | # RCU Subsystem | ||
46 | # | ||
47 | CONFIG_TREE_RCU=y | ||
48 | # CONFIG_TREE_PREEMPT_RCU is not set | ||
49 | # CONFIG_TINY_RCU is not set | ||
50 | # CONFIG_RCU_TRACE is not set | ||
51 | CONFIG_RCU_FANOUT=32 | ||
52 | # CONFIG_RCU_FANOUT_EXACT is not set | ||
53 | # CONFIG_TREE_RCU_TRACE is not set | ||
54 | CONFIG_IKCONFIG=y | ||
55 | CONFIG_IKCONFIG_PROC=y | ||
56 | CONFIG_LOG_BUF_SHIFT=16 | ||
57 | CONFIG_GROUP_SCHED=y | ||
58 | CONFIG_FAIR_GROUP_SCHED=y | ||
59 | # CONFIG_RT_GROUP_SCHED is not set | ||
60 | CONFIG_USER_SCHED=y | ||
61 | # CONFIG_CGROUP_SCHED is not set | ||
62 | # CONFIG_CGROUPS is not set | ||
63 | # CONFIG_SYSFS_DEPRECATED_V2 is not set | ||
64 | # CONFIG_RELAY is not set | ||
65 | CONFIG_NAMESPACES=y | ||
66 | # CONFIG_UTS_NS is not set | ||
67 | # CONFIG_IPC_NS is not set | ||
68 | # CONFIG_USER_NS is not set | ||
69 | # CONFIG_PID_NS is not set | ||
70 | CONFIG_BLK_DEV_INITRD=y | ||
71 | CONFIG_INITRAMFS_SOURCE="" | ||
72 | CONFIG_RD_GZIP=y | ||
73 | CONFIG_RD_BZIP2=y | ||
74 | CONFIG_RD_LZMA=y | ||
75 | CONFIG_RD_LZO=y | ||
76 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
77 | CONFIG_SYSCTL=y | ||
78 | CONFIG_ANON_INODES=y | ||
79 | # CONFIG_EMBEDDED is not set | ||
80 | CONFIG_UID16=y | ||
81 | CONFIG_SYSCTL_SYSCALL=y | ||
82 | CONFIG_KALLSYMS=y | ||
83 | # CONFIG_KALLSYMS_ALL is not set | ||
84 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
85 | CONFIG_HOTPLUG=y | ||
86 | CONFIG_PRINTK=y | ||
87 | CONFIG_BUG=y | ||
88 | CONFIG_ELF_CORE=y | ||
89 | CONFIG_BASE_FULL=y | ||
90 | CONFIG_FUTEX=y | ||
91 | CONFIG_EPOLL=y | ||
92 | CONFIG_SIGNALFD=y | ||
93 | CONFIG_TIMERFD=y | ||
94 | CONFIG_EVENTFD=y | ||
95 | CONFIG_SHMEM=y | ||
96 | CONFIG_AIO=y | ||
97 | |||
98 | # | ||
99 | # Kernel Performance Events And Counters | ||
100 | # | ||
101 | CONFIG_VM_EVENT_COUNTERS=y | ||
102 | CONFIG_COMPAT_BRK=y | ||
103 | CONFIG_SLAB=y | ||
104 | # CONFIG_SLUB is not set | ||
105 | # CONFIG_SLOB is not set | ||
106 | # CONFIG_PROFILING is not set | ||
107 | CONFIG_HAVE_OPROFILE=y | ||
108 | CONFIG_HAVE_KPROBES=y | ||
109 | CONFIG_HAVE_KRETPROBES=y | ||
110 | CONFIG_HAVE_CLK=y | ||
111 | |||
112 | # | ||
113 | # GCOV-based kernel profiling | ||
114 | # | ||
115 | # CONFIG_SLOW_WORK is not set | ||
116 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | ||
117 | CONFIG_SLABINFO=y | ||
118 | CONFIG_RT_MUTEXES=y | ||
119 | CONFIG_BASE_SMALL=0 | ||
120 | # CONFIG_MODULES is not set | ||
121 | CONFIG_BLOCK=y | ||
122 | CONFIG_LBDAF=y | ||
123 | # CONFIG_BLK_DEV_BSG is not set | ||
124 | # CONFIG_BLK_DEV_INTEGRITY is not set | ||
125 | |||
126 | # | ||
127 | # IO Schedulers | ||
128 | # | ||
129 | CONFIG_IOSCHED_NOOP=y | ||
130 | # CONFIG_IOSCHED_DEADLINE is not set | ||
131 | # CONFIG_IOSCHED_CFQ is not set | ||
132 | # CONFIG_DEFAULT_DEADLINE is not set | ||
133 | # CONFIG_DEFAULT_CFQ is not set | ||
134 | CONFIG_DEFAULT_NOOP=y | ||
135 | CONFIG_DEFAULT_IOSCHED="noop" | ||
136 | # CONFIG_INLINE_SPIN_TRYLOCK is not set | ||
137 | # CONFIG_INLINE_SPIN_TRYLOCK_BH is not set | ||
138 | # CONFIG_INLINE_SPIN_LOCK is not set | ||
139 | # CONFIG_INLINE_SPIN_LOCK_BH is not set | ||
140 | # CONFIG_INLINE_SPIN_LOCK_IRQ is not set | ||
141 | # CONFIG_INLINE_SPIN_LOCK_IRQSAVE is not set | ||
142 | CONFIG_INLINE_SPIN_UNLOCK=y | ||
143 | # CONFIG_INLINE_SPIN_UNLOCK_BH is not set | ||
144 | CONFIG_INLINE_SPIN_UNLOCK_IRQ=y | ||
145 | # CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE is not set | ||
146 | # CONFIG_INLINE_READ_TRYLOCK is not set | ||
147 | # CONFIG_INLINE_READ_LOCK is not set | ||
148 | # CONFIG_INLINE_READ_LOCK_BH is not set | ||
149 | # CONFIG_INLINE_READ_LOCK_IRQ is not set | ||
150 | # CONFIG_INLINE_READ_LOCK_IRQSAVE is not set | ||
151 | CONFIG_INLINE_READ_UNLOCK=y | ||
152 | # CONFIG_INLINE_READ_UNLOCK_BH is not set | ||
153 | CONFIG_INLINE_READ_UNLOCK_IRQ=y | ||
154 | # CONFIG_INLINE_READ_UNLOCK_IRQRESTORE is not set | ||
155 | # CONFIG_INLINE_WRITE_TRYLOCK is not set | ||
156 | # CONFIG_INLINE_WRITE_LOCK is not set | ||
157 | # CONFIG_INLINE_WRITE_LOCK_BH is not set | ||
158 | # CONFIG_INLINE_WRITE_LOCK_IRQ is not set | ||
159 | # CONFIG_INLINE_WRITE_LOCK_IRQSAVE is not set | ||
160 | CONFIG_INLINE_WRITE_UNLOCK=y | ||
161 | # CONFIG_INLINE_WRITE_UNLOCK_BH is not set | ||
162 | CONFIG_INLINE_WRITE_UNLOCK_IRQ=y | ||
163 | # CONFIG_INLINE_WRITE_UNLOCK_IRQRESTORE is not set | ||
164 | # CONFIG_MUTEX_SPIN_ON_OWNER is not set | ||
165 | # CONFIG_FREEZER is not set | ||
166 | |||
167 | # | ||
168 | # System Type | ||
169 | # | ||
170 | CONFIG_MMU=y | ||
171 | # CONFIG_ARCH_AAEC2000 is not set | ||
172 | # CONFIG_ARCH_INTEGRATOR is not set | ||
173 | # CONFIG_ARCH_REALVIEW is not set | ||
174 | # CONFIG_ARCH_VERSATILE is not set | ||
175 | # CONFIG_ARCH_AT91 is not set | ||
176 | # CONFIG_ARCH_CLPS711X is not set | ||
177 | # CONFIG_ARCH_GEMINI is not set | ||
178 | # CONFIG_ARCH_EBSA110 is not set | ||
179 | # CONFIG_ARCH_EP93XX is not set | ||
180 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
181 | # CONFIG_ARCH_MXC is not set | ||
182 | # CONFIG_ARCH_STMP3XXX is not set | ||
183 | # CONFIG_ARCH_NETX is not set | ||
184 | # CONFIG_ARCH_H720X is not set | ||
185 | # CONFIG_ARCH_NOMADIK is not set | ||
186 | # CONFIG_ARCH_IOP13XX is not set | ||
187 | # CONFIG_ARCH_IOP32X is not set | ||
188 | # CONFIG_ARCH_IOP33X is not set | ||
189 | # CONFIG_ARCH_IXP23XX is not set | ||
190 | # CONFIG_ARCH_IXP2000 is not set | ||
191 | # CONFIG_ARCH_IXP4XX is not set | ||
192 | # CONFIG_ARCH_L7200 is not set | ||
193 | # CONFIG_ARCH_DOVE is not set | ||
194 | # CONFIG_ARCH_KIRKWOOD is not set | ||
195 | # CONFIG_ARCH_LOKI is not set | ||
196 | # CONFIG_ARCH_MV78XX0 is not set | ||
197 | # CONFIG_ARCH_ORION5X is not set | ||
198 | # CONFIG_ARCH_MMP is not set | ||
199 | # CONFIG_ARCH_KS8695 is not set | ||
200 | # CONFIG_ARCH_NS9XXX is not set | ||
201 | # CONFIG_ARCH_W90X900 is not set | ||
202 | # CONFIG_ARCH_PNX4008 is not set | ||
203 | # CONFIG_ARCH_PXA is not set | ||
204 | # CONFIG_ARCH_MSM is not set | ||
205 | CONFIG_ARCH_SHMOBILE=y | ||
206 | # CONFIG_ARCH_RPC is not set | ||
207 | # CONFIG_ARCH_SA1100 is not set | ||
208 | # CONFIG_ARCH_S3C2410 is not set | ||
209 | # CONFIG_ARCH_S3C64XX is not set | ||
210 | # CONFIG_ARCH_S5PC1XX is not set | ||
211 | # CONFIG_ARCH_SHARK is not set | ||
212 | # CONFIG_ARCH_LH7A40X is not set | ||
213 | # CONFIG_ARCH_U300 is not set | ||
214 | # CONFIG_ARCH_DAVINCI is not set | ||
215 | # CONFIG_ARCH_OMAP is not set | ||
216 | # CONFIG_ARCH_BCMRING is not set | ||
217 | # CONFIG_ARCH_U8500 is not set | ||
218 | |||
219 | # | ||
220 | # SH-Mobile System Type | ||
221 | # | ||
222 | CONFIG_ARCH_SH7367=y | ||
223 | # CONFIG_ARCH_SH7377 is not set | ||
224 | # CONFIG_ARCH_SH7372 is not set | ||
225 | |||
226 | # | ||
227 | # SH-Mobile Board Type | ||
228 | # | ||
229 | CONFIG_MACH_G3EVM=y | ||
230 | |||
231 | # | ||
232 | # SH-Mobile System Configuration | ||
233 | # | ||
234 | |||
235 | # | ||
236 | # Memory configuration | ||
237 | # | ||
238 | CONFIG_MEMORY_START=0x50000000 | ||
239 | CONFIG_MEMORY_SIZE=0x08000000 | ||
240 | |||
241 | # | ||
242 | # Timer and clock configuration | ||
243 | # | ||
244 | CONFIG_SH_TIMER_CMT=y | ||
245 | |||
246 | # | ||
247 | # Processor Type | ||
248 | # | ||
249 | CONFIG_CPU_V6=y | ||
250 | # CONFIG_CPU_32v6K is not set | ||
251 | CONFIG_CPU_32v6=y | ||
252 | CONFIG_CPU_ABRT_EV6=y | ||
253 | CONFIG_CPU_PABRT_V6=y | ||
254 | CONFIG_CPU_CACHE_V6=y | ||
255 | CONFIG_CPU_CACHE_VIPT=y | ||
256 | CONFIG_CPU_COPY_V6=y | ||
257 | CONFIG_CPU_TLB_V6=y | ||
258 | CONFIG_CPU_HAS_ASID=y | ||
259 | CONFIG_CPU_CP15=y | ||
260 | CONFIG_CPU_CP15_MMU=y | ||
261 | |||
262 | # | ||
263 | # Processor Features | ||
264 | # | ||
265 | CONFIG_ARM_THUMB=y | ||
266 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
267 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
268 | # CONFIG_CPU_BPREDICT_DISABLE is not set | ||
269 | CONFIG_ARM_L1_CACHE_SHIFT=5 | ||
270 | # CONFIG_ARM_ERRATA_411920 is not set | ||
271 | CONFIG_COMMON_CLKDEV=y | ||
272 | |||
273 | # | ||
274 | # Bus support | ||
275 | # | ||
276 | # CONFIG_PCI_SYSCALL is not set | ||
277 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
278 | # CONFIG_PCCARD is not set | ||
279 | |||
280 | # | ||
281 | # Kernel Features | ||
282 | # | ||
283 | # CONFIG_NO_HZ is not set | ||
284 | # CONFIG_HIGH_RES_TIMERS is not set | ||
285 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
286 | CONFIG_VMSPLIT_3G=y | ||
287 | # CONFIG_VMSPLIT_2G is not set | ||
288 | # CONFIG_VMSPLIT_1G is not set | ||
289 | CONFIG_PAGE_OFFSET=0xC0000000 | ||
290 | CONFIG_PREEMPT_NONE=y | ||
291 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
292 | # CONFIG_PREEMPT is not set | ||
293 | CONFIG_HZ=100 | ||
294 | CONFIG_AEABI=y | ||
295 | # CONFIG_OABI_COMPAT is not set | ||
296 | # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set | ||
297 | # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set | ||
298 | # CONFIG_HIGHMEM is not set | ||
299 | CONFIG_SELECT_MEMORY_MODEL=y | ||
300 | CONFIG_FLATMEM_MANUAL=y | ||
301 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
302 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
303 | CONFIG_FLATMEM=y | ||
304 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
305 | CONFIG_PAGEFLAGS_EXTENDED=y | ||
306 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
307 | # CONFIG_PHYS_ADDR_T_64BIT is not set | ||
308 | CONFIG_ZONE_DMA_FLAG=0 | ||
309 | CONFIG_VIRT_TO_BUS=y | ||
310 | # CONFIG_KSM is not set | ||
311 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 | ||
312 | CONFIG_ALIGNMENT_TRAP=y | ||
313 | # CONFIG_UACCESS_WITH_MEMCPY is not set | ||
314 | |||
315 | # | ||
316 | # Boot options | ||
317 | # | ||
318 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
319 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
320 | CONFIG_CMDLINE="console=ttySC1,115200 earlyprintk=sh-sci.1,115200" | ||
321 | # CONFIG_XIP_KERNEL is not set | ||
322 | CONFIG_KEXEC=y | ||
323 | CONFIG_ATAGS_PROC=y | ||
324 | |||
325 | # | ||
326 | # CPU Power Management | ||
327 | # | ||
328 | # CONFIG_CPU_IDLE is not set | ||
329 | |||
330 | # | ||
331 | # Floating point emulation | ||
332 | # | ||
333 | |||
334 | # | ||
335 | # At least one emulation must be selected | ||
336 | # | ||
337 | # CONFIG_VFP is not set | ||
338 | |||
339 | # | ||
340 | # Userspace binary formats | ||
341 | # | ||
342 | CONFIG_BINFMT_ELF=y | ||
343 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set | ||
344 | CONFIG_HAVE_AOUT=y | ||
345 | # CONFIG_BINFMT_AOUT is not set | ||
346 | # CONFIG_BINFMT_MISC is not set | ||
347 | |||
348 | # | ||
349 | # Power management options | ||
350 | # | ||
351 | CONFIG_PM=y | ||
352 | # CONFIG_PM_DEBUG is not set | ||
353 | # CONFIG_SUSPEND is not set | ||
354 | # CONFIG_APM_EMULATION is not set | ||
355 | # CONFIG_PM_RUNTIME is not set | ||
356 | CONFIG_ARCH_SUSPEND_POSSIBLE=y | ||
357 | # CONFIG_NET is not set | ||
358 | |||
359 | # | ||
360 | # Device Drivers | ||
361 | # | ||
362 | |||
363 | # | ||
364 | # Generic Driver Options | ||
365 | # | ||
366 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
367 | # CONFIG_DEVTMPFS is not set | ||
368 | CONFIG_STANDALONE=y | ||
369 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
370 | CONFIG_FW_LOADER=y | ||
371 | # CONFIG_FIRMWARE_IN_KERNEL is not set | ||
372 | CONFIG_EXTRA_FIRMWARE="" | ||
373 | # CONFIG_DEBUG_DRIVER is not set | ||
374 | # CONFIG_DEBUG_DEVRES is not set | ||
375 | # CONFIG_SYS_HYPERVISOR is not set | ||
376 | CONFIG_MTD=y | ||
377 | # CONFIG_MTD_DEBUG is not set | ||
378 | CONFIG_MTD_CONCAT=y | ||
379 | CONFIG_MTD_PARTITIONS=y | ||
380 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
381 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
382 | # CONFIG_MTD_AFS_PARTS is not set | ||
383 | # CONFIG_MTD_AR7_PARTS is not set | ||
384 | |||
385 | # | ||
386 | # User Modules And Translation Layers | ||
387 | # | ||
388 | CONFIG_MTD_CHAR=y | ||
389 | CONFIG_MTD_BLKDEVS=y | ||
390 | CONFIG_MTD_BLOCK=y | ||
391 | # CONFIG_FTL is not set | ||
392 | # CONFIG_NFTL is not set | ||
393 | # CONFIG_INFTL is not set | ||
394 | # CONFIG_RFD_FTL is not set | ||
395 | # CONFIG_SSFDC is not set | ||
396 | # CONFIG_MTD_OOPS is not set | ||
397 | |||
398 | # | ||
399 | # RAM/ROM/Flash chip drivers | ||
400 | # | ||
401 | CONFIG_MTD_CFI=y | ||
402 | # CONFIG_MTD_JEDECPROBE is not set | ||
403 | CONFIG_MTD_GEN_PROBE=y | ||
404 | # CONFIG_MTD_CFI_ADV_OPTIONS is not set | ||
405 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
406 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
407 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
408 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
409 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
410 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
411 | CONFIG_MTD_CFI_I1=y | ||
412 | CONFIG_MTD_CFI_I2=y | ||
413 | # CONFIG_MTD_CFI_I4 is not set | ||
414 | # CONFIG_MTD_CFI_I8 is not set | ||
415 | CONFIG_MTD_CFI_INTELEXT=y | ||
416 | # CONFIG_MTD_CFI_AMDSTD is not set | ||
417 | # CONFIG_MTD_CFI_STAA is not set | ||
418 | CONFIG_MTD_CFI_UTIL=y | ||
419 | # CONFIG_MTD_RAM is not set | ||
420 | # CONFIG_MTD_ROM is not set | ||
421 | # CONFIG_MTD_ABSENT is not set | ||
422 | |||
423 | # | ||
424 | # Mapping drivers for chip access | ||
425 | # | ||
426 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
427 | CONFIG_MTD_PHYSMAP=y | ||
428 | # CONFIG_MTD_PHYSMAP_COMPAT is not set | ||
429 | # CONFIG_MTD_ARM_INTEGRATOR is not set | ||
430 | # CONFIG_MTD_PLATRAM is not set | ||
431 | |||
432 | # | ||
433 | # Self-contained MTD device drivers | ||
434 | # | ||
435 | # CONFIG_MTD_SLRAM is not set | ||
436 | # CONFIG_MTD_PHRAM is not set | ||
437 | # CONFIG_MTD_MTDRAM is not set | ||
438 | # CONFIG_MTD_BLOCK2MTD is not set | ||
439 | |||
440 | # | ||
441 | # Disk-On-Chip Device Drivers | ||
442 | # | ||
443 | # CONFIG_MTD_DOC2000 is not set | ||
444 | # CONFIG_MTD_DOC2001 is not set | ||
445 | # CONFIG_MTD_DOC2001PLUS is not set | ||
446 | CONFIG_MTD_NAND=y | ||
447 | # CONFIG_MTD_NAND_VERIFY_WRITE is not set | ||
448 | # CONFIG_MTD_NAND_ECC_SMC is not set | ||
449 | # CONFIG_MTD_NAND_MUSEUM_IDS is not set | ||
450 | CONFIG_MTD_NAND_IDS=y | ||
451 | # CONFIG_MTD_NAND_DISKONCHIP is not set | ||
452 | # CONFIG_MTD_NAND_NANDSIM is not set | ||
453 | # CONFIG_MTD_NAND_PLATFORM is not set | ||
454 | # CONFIG_MTD_ONENAND is not set | ||
455 | |||
456 | # | ||
457 | # LPDDR flash memory drivers | ||
458 | # | ||
459 | # CONFIG_MTD_LPDDR is not set | ||
460 | |||
461 | # | ||
462 | # UBI - Unsorted block images | ||
463 | # | ||
464 | # CONFIG_MTD_UBI is not set | ||
465 | # CONFIG_PARPORT is not set | ||
466 | # CONFIG_BLK_DEV is not set | ||
467 | # CONFIG_MISC_DEVICES is not set | ||
468 | CONFIG_HAVE_IDE=y | ||
469 | # CONFIG_IDE is not set | ||
470 | |||
471 | # | ||
472 | # SCSI device support | ||
473 | # | ||
474 | # CONFIG_RAID_ATTRS is not set | ||
475 | # CONFIG_SCSI is not set | ||
476 | # CONFIG_SCSI_DMA is not set | ||
477 | # CONFIG_SCSI_NETLINK is not set | ||
478 | # CONFIG_ATA is not set | ||
479 | # CONFIG_MD is not set | ||
480 | # CONFIG_PHONE is not set | ||
481 | |||
482 | # | ||
483 | # Input device support | ||
484 | # | ||
485 | CONFIG_INPUT=y | ||
486 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
487 | # CONFIG_INPUT_POLLDEV is not set | ||
488 | # CONFIG_INPUT_SPARSEKMAP is not set | ||
489 | |||
490 | # | ||
491 | # Userland interfaces | ||
492 | # | ||
493 | CONFIG_INPUT_MOUSEDEV=y | ||
494 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
495 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
496 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
497 | # CONFIG_INPUT_JOYDEV is not set | ||
498 | # CONFIG_INPUT_EVDEV is not set | ||
499 | # CONFIG_INPUT_EVBUG is not set | ||
500 | |||
501 | # | ||
502 | # Input Device Drivers | ||
503 | # | ||
504 | # CONFIG_INPUT_KEYBOARD is not set | ||
505 | # CONFIG_INPUT_MOUSE is not set | ||
506 | # CONFIG_INPUT_JOYSTICK is not set | ||
507 | # CONFIG_INPUT_TABLET is not set | ||
508 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
509 | # CONFIG_INPUT_MISC is not set | ||
510 | |||
511 | # | ||
512 | # Hardware I/O ports | ||
513 | # | ||
514 | # CONFIG_SERIO is not set | ||
515 | # CONFIG_GAMEPORT is not set | ||
516 | |||
517 | # | ||
518 | # Character devices | ||
519 | # | ||
520 | CONFIG_VT=y | ||
521 | CONFIG_CONSOLE_TRANSLATIONS=y | ||
522 | CONFIG_VT_CONSOLE=y | ||
523 | CONFIG_HW_CONSOLE=y | ||
524 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
525 | CONFIG_DEVKMEM=y | ||
526 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
527 | |||
528 | # | ||
529 | # Serial drivers | ||
530 | # | ||
531 | # CONFIG_SERIAL_8250 is not set | ||
532 | |||
533 | # | ||
534 | # Non-8250 serial port support | ||
535 | # | ||
536 | CONFIG_SERIAL_SH_SCI=y | ||
537 | CONFIG_SERIAL_SH_SCI_NR_UARTS=8 | ||
538 | CONFIG_SERIAL_SH_SCI_CONSOLE=y | ||
539 | CONFIG_SERIAL_CORE=y | ||
540 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
541 | CONFIG_UNIX98_PTYS=y | ||
542 | # CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set | ||
543 | # CONFIG_LEGACY_PTYS is not set | ||
544 | # CONFIG_IPMI_HANDLER is not set | ||
545 | # CONFIG_HW_RANDOM is not set | ||
546 | # CONFIG_R3964 is not set | ||
547 | # CONFIG_RAW_DRIVER is not set | ||
548 | # CONFIG_TCG_TPM is not set | ||
549 | # CONFIG_I2C is not set | ||
550 | # CONFIG_SPI is not set | ||
551 | |||
552 | # | ||
553 | # PPS support | ||
554 | # | ||
555 | # CONFIG_PPS is not set | ||
556 | # CONFIG_W1 is not set | ||
557 | # CONFIG_POWER_SUPPLY is not set | ||
558 | # CONFIG_HWMON is not set | ||
559 | # CONFIG_THERMAL is not set | ||
560 | # CONFIG_WATCHDOG is not set | ||
561 | CONFIG_SSB_POSSIBLE=y | ||
562 | |||
563 | # | ||
564 | # Sonics Silicon Backplane | ||
565 | # | ||
566 | # CONFIG_SSB is not set | ||
567 | |||
568 | # | ||
569 | # Multifunction device drivers | ||
570 | # | ||
571 | # CONFIG_MFD_CORE is not set | ||
572 | # CONFIG_MFD_SM501 is not set | ||
573 | # CONFIG_HTC_PASIC3 is not set | ||
574 | # CONFIG_MFD_TMIO is not set | ||
575 | # CONFIG_MFD_T7L66XB is not set | ||
576 | # CONFIG_MFD_TC6387XB is not set | ||
577 | # CONFIG_REGULATOR is not set | ||
578 | # CONFIG_MEDIA_SUPPORT is not set | ||
579 | |||
580 | # | ||
581 | # Graphics support | ||
582 | # | ||
583 | # CONFIG_VGASTATE is not set | ||
584 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
585 | # CONFIG_FB is not set | ||
586 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
587 | |||
588 | # | ||
589 | # Display device support | ||
590 | # | ||
591 | # CONFIG_DISPLAY_SUPPORT is not set | ||
592 | |||
593 | # | ||
594 | # Console display driver support | ||
595 | # | ||
596 | # CONFIG_VGA_CONSOLE is not set | ||
597 | CONFIG_DUMMY_CONSOLE=y | ||
598 | # CONFIG_SOUND is not set | ||
599 | # CONFIG_HID_SUPPORT is not set | ||
600 | # CONFIG_USB_SUPPORT is not set | ||
601 | # CONFIG_MMC is not set | ||
602 | # CONFIG_MEMSTICK is not set | ||
603 | # CONFIG_NEW_LEDS is not set | ||
604 | # CONFIG_ACCESSIBILITY is not set | ||
605 | CONFIG_RTC_LIB=y | ||
606 | # CONFIG_RTC_CLASS is not set | ||
607 | # CONFIG_DMADEVICES is not set | ||
608 | # CONFIG_AUXDISPLAY is not set | ||
609 | # CONFIG_UIO is not set | ||
610 | |||
611 | # | ||
612 | # TI VLYNQ | ||
613 | # | ||
614 | # CONFIG_STAGING is not set | ||
615 | |||
616 | # | ||
617 | # File systems | ||
618 | # | ||
619 | # CONFIG_EXT2_FS is not set | ||
620 | # CONFIG_EXT3_FS is not set | ||
621 | # CONFIG_EXT4_FS is not set | ||
622 | # CONFIG_REISERFS_FS is not set | ||
623 | # CONFIG_JFS_FS is not set | ||
624 | # CONFIG_FS_POSIX_ACL is not set | ||
625 | # CONFIG_XFS_FS is not set | ||
626 | # CONFIG_GFS2_FS is not set | ||
627 | # CONFIG_BTRFS_FS is not set | ||
628 | # CONFIG_NILFS2_FS is not set | ||
629 | CONFIG_FILE_LOCKING=y | ||
630 | # CONFIG_FSNOTIFY is not set | ||
631 | # CONFIG_DNOTIFY is not set | ||
632 | # CONFIG_INOTIFY is not set | ||
633 | # CONFIG_INOTIFY_USER is not set | ||
634 | # CONFIG_QUOTA is not set | ||
635 | # CONFIG_AUTOFS_FS is not set | ||
636 | # CONFIG_AUTOFS4_FS is not set | ||
637 | # CONFIG_FUSE_FS is not set | ||
638 | |||
639 | # | ||
640 | # Caches | ||
641 | # | ||
642 | # CONFIG_FSCACHE is not set | ||
643 | |||
644 | # | ||
645 | # CD-ROM/DVD Filesystems | ||
646 | # | ||
647 | # CONFIG_ISO9660_FS is not set | ||
648 | # CONFIG_UDF_FS is not set | ||
649 | |||
650 | # | ||
651 | # DOS/FAT/NT Filesystems | ||
652 | # | ||
653 | # CONFIG_MSDOS_FS is not set | ||
654 | # CONFIG_VFAT_FS is not set | ||
655 | # CONFIG_NTFS_FS is not set | ||
656 | |||
657 | # | ||
658 | # Pseudo filesystems | ||
659 | # | ||
660 | CONFIG_PROC_FS=y | ||
661 | CONFIG_PROC_SYSCTL=y | ||
662 | CONFIG_PROC_PAGE_MONITOR=y | ||
663 | CONFIG_SYSFS=y | ||
664 | CONFIG_TMPFS=y | ||
665 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
666 | # CONFIG_HUGETLB_PAGE is not set | ||
667 | # CONFIG_CONFIGFS_FS is not set | ||
668 | # CONFIG_MISC_FILESYSTEMS is not set | ||
669 | |||
670 | # | ||
671 | # Partition Types | ||
672 | # | ||
673 | # CONFIG_PARTITION_ADVANCED is not set | ||
674 | CONFIG_MSDOS_PARTITION=y | ||
675 | # CONFIG_NLS is not set | ||
676 | |||
677 | # | ||
678 | # Kernel hacking | ||
679 | # | ||
680 | # CONFIG_PRINTK_TIME is not set | ||
681 | CONFIG_ENABLE_WARN_DEPRECATED=y | ||
682 | CONFIG_ENABLE_MUST_CHECK=y | ||
683 | CONFIG_FRAME_WARN=1024 | ||
684 | CONFIG_MAGIC_SYSRQ=y | ||
685 | # CONFIG_STRIP_ASM_SYMS is not set | ||
686 | # CONFIG_UNUSED_SYMBOLS is not set | ||
687 | # CONFIG_DEBUG_FS is not set | ||
688 | # CONFIG_HEADERS_CHECK is not set | ||
689 | CONFIG_DEBUG_KERNEL=y | ||
690 | # CONFIG_DEBUG_SHIRQ is not set | ||
691 | # CONFIG_DETECT_SOFTLOCKUP is not set | ||
692 | # CONFIG_DETECT_HUNG_TASK is not set | ||
693 | CONFIG_SCHED_DEBUG=y | ||
694 | # CONFIG_SCHEDSTATS is not set | ||
695 | # CONFIG_TIMER_STATS is not set | ||
696 | # CONFIG_DEBUG_OBJECTS is not set | ||
697 | # CONFIG_DEBUG_SLAB is not set | ||
698 | # CONFIG_DEBUG_KMEMLEAK is not set | ||
699 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
700 | # CONFIG_RT_MUTEX_TESTER is not set | ||
701 | # CONFIG_DEBUG_SPINLOCK is not set | ||
702 | # CONFIG_DEBUG_MUTEXES is not set | ||
703 | # CONFIG_DEBUG_LOCK_ALLOC is not set | ||
704 | # CONFIG_PROVE_LOCKING is not set | ||
705 | # CONFIG_LOCK_STAT is not set | ||
706 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
707 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
708 | # CONFIG_DEBUG_KOBJECT is not set | ||
709 | CONFIG_DEBUG_BUGVERBOSE=y | ||
710 | # CONFIG_DEBUG_INFO is not set | ||
711 | # CONFIG_DEBUG_VM is not set | ||
712 | # CONFIG_DEBUG_WRITECOUNT is not set | ||
713 | CONFIG_DEBUG_MEMORY_INIT=y | ||
714 | # CONFIG_DEBUG_LIST is not set | ||
715 | # CONFIG_DEBUG_SG is not set | ||
716 | # CONFIG_DEBUG_NOTIFIERS is not set | ||
717 | # CONFIG_DEBUG_CREDENTIALS is not set | ||
718 | # CONFIG_BOOT_PRINTK_DELAY is not set | ||
719 | # CONFIG_RCU_TORTURE_TEST is not set | ||
720 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | ||
721 | # CONFIG_BACKTRACE_SELF_TEST is not set | ||
722 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set | ||
723 | # CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set | ||
724 | # CONFIG_FAULT_INJECTION is not set | ||
725 | # CONFIG_LATENCYTOP is not set | ||
726 | # CONFIG_SYSCTL_SYSCALL_CHECK is not set | ||
727 | # CONFIG_PAGE_POISONING is not set | ||
728 | CONFIG_HAVE_FUNCTION_TRACER=y | ||
729 | CONFIG_TRACING_SUPPORT=y | ||
730 | # CONFIG_FTRACE is not set | ||
731 | # CONFIG_SAMPLES is not set | ||
732 | CONFIG_HAVE_ARCH_KGDB=y | ||
733 | # CONFIG_KGDB is not set | ||
734 | CONFIG_ARM_UNWIND=y | ||
735 | # CONFIG_DEBUG_USER is not set | ||
736 | # CONFIG_DEBUG_ERRORS is not set | ||
737 | # CONFIG_DEBUG_STACK_USAGE is not set | ||
738 | # CONFIG_DEBUG_LL is not set | ||
739 | # CONFIG_OC_ETM is not set | ||
740 | |||
741 | # | ||
742 | # Security options | ||
743 | # | ||
744 | # CONFIG_KEYS is not set | ||
745 | # CONFIG_SECURITY is not set | ||
746 | # CONFIG_SECURITYFS is not set | ||
747 | # CONFIG_DEFAULT_SECURITY_SELINUX is not set | ||
748 | # CONFIG_DEFAULT_SECURITY_SMACK is not set | ||
749 | # CONFIG_DEFAULT_SECURITY_TOMOYO is not set | ||
750 | CONFIG_DEFAULT_SECURITY_DAC=y | ||
751 | CONFIG_DEFAULT_SECURITY="" | ||
752 | # CONFIG_CRYPTO is not set | ||
753 | # CONFIG_BINARY_PRINTF is not set | ||
754 | |||
755 | # | ||
756 | # Library routines | ||
757 | # | ||
758 | CONFIG_GENERIC_FIND_LAST_BIT=y | ||
759 | # CONFIG_CRC_CCITT is not set | ||
760 | # CONFIG_CRC16 is not set | ||
761 | # CONFIG_CRC_T10DIF is not set | ||
762 | # CONFIG_CRC_ITU_T is not set | ||
763 | # CONFIG_CRC32 is not set | ||
764 | # CONFIG_CRC7 is not set | ||
765 | # CONFIG_LIBCRC32C is not set | ||
766 | CONFIG_ZLIB_INFLATE=y | ||
767 | CONFIG_LZO_DECOMPRESS=y | ||
768 | CONFIG_DECOMPRESS_GZIP=y | ||
769 | CONFIG_DECOMPRESS_BZIP2=y | ||
770 | CONFIG_DECOMPRESS_LZMA=y | ||
771 | CONFIG_DECOMPRESS_LZO=y | ||
772 | CONFIG_HAS_IOMEM=y | ||
773 | CONFIG_HAS_IOPORT=y | ||
774 | CONFIG_HAS_DMA=y | ||
diff --git a/arch/arm/configs/g4evm_defconfig b/arch/arm/configs/g4evm_defconfig new file mode 100644 index 00000000000..8ee79a53713 --- /dev/null +++ b/arch/arm/configs/g4evm_defconfig | |||
@@ -0,0 +1,779 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.33-rc7 | ||
4 | # Mon Feb 8 12:21:35 2010 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | ||
8 | CONFIG_GENERIC_TIME=y | ||
9 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
10 | CONFIG_GENERIC_HARDIRQS=y | ||
11 | CONFIG_STACKTRACE_SUPPORT=y | ||
12 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | ||
13 | CONFIG_LOCKDEP_SUPPORT=y | ||
14 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
15 | CONFIG_HARDIRQS_SW_RESEND=y | ||
16 | CONFIG_GENERIC_IRQ_PROBE=y | ||
17 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
18 | CONFIG_GENERIC_HWEIGHT=y | ||
19 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
20 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y | ||
21 | CONFIG_VECTORS_BASE=0xffff0000 | ||
22 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
23 | CONFIG_CONSTRUCTORS=y | ||
24 | |||
25 | # | ||
26 | # General setup | ||
27 | # | ||
28 | CONFIG_EXPERIMENTAL=y | ||
29 | CONFIG_BROKEN_ON_SMP=y | ||
30 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
31 | CONFIG_LOCALVERSION="" | ||
32 | CONFIG_LOCALVERSION_AUTO=y | ||
33 | CONFIG_HAVE_KERNEL_GZIP=y | ||
34 | CONFIG_HAVE_KERNEL_LZO=y | ||
35 | CONFIG_KERNEL_GZIP=y | ||
36 | # CONFIG_KERNEL_BZIP2 is not set | ||
37 | # CONFIG_KERNEL_LZMA is not set | ||
38 | # CONFIG_KERNEL_LZO is not set | ||
39 | CONFIG_SWAP=y | ||
40 | CONFIG_SYSVIPC=y | ||
41 | CONFIG_SYSVIPC_SYSCTL=y | ||
42 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
43 | |||
44 | # | ||
45 | # RCU Subsystem | ||
46 | # | ||
47 | CONFIG_TREE_RCU=y | ||
48 | # CONFIG_TREE_PREEMPT_RCU is not set | ||
49 | # CONFIG_TINY_RCU is not set | ||
50 | # CONFIG_RCU_TRACE is not set | ||
51 | CONFIG_RCU_FANOUT=32 | ||
52 | # CONFIG_RCU_FANOUT_EXACT is not set | ||
53 | # CONFIG_TREE_RCU_TRACE is not set | ||
54 | CONFIG_IKCONFIG=y | ||
55 | CONFIG_IKCONFIG_PROC=y | ||
56 | CONFIG_LOG_BUF_SHIFT=16 | ||
57 | CONFIG_GROUP_SCHED=y | ||
58 | CONFIG_FAIR_GROUP_SCHED=y | ||
59 | # CONFIG_RT_GROUP_SCHED is not set | ||
60 | CONFIG_USER_SCHED=y | ||
61 | # CONFIG_CGROUP_SCHED is not set | ||
62 | # CONFIG_CGROUPS is not set | ||
63 | # CONFIG_SYSFS_DEPRECATED_V2 is not set | ||
64 | # CONFIG_RELAY is not set | ||
65 | CONFIG_NAMESPACES=y | ||
66 | # CONFIG_UTS_NS is not set | ||
67 | # CONFIG_IPC_NS is not set | ||
68 | # CONFIG_USER_NS is not set | ||
69 | # CONFIG_PID_NS is not set | ||
70 | CONFIG_BLK_DEV_INITRD=y | ||
71 | CONFIG_INITRAMFS_SOURCE="" | ||
72 | CONFIG_RD_GZIP=y | ||
73 | CONFIG_RD_BZIP2=y | ||
74 | CONFIG_RD_LZMA=y | ||
75 | CONFIG_RD_LZO=y | ||
76 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
77 | CONFIG_SYSCTL=y | ||
78 | CONFIG_ANON_INODES=y | ||
79 | # CONFIG_EMBEDDED is not set | ||
80 | CONFIG_UID16=y | ||
81 | CONFIG_SYSCTL_SYSCALL=y | ||
82 | CONFIG_KALLSYMS=y | ||
83 | # CONFIG_KALLSYMS_ALL is not set | ||
84 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
85 | CONFIG_HOTPLUG=y | ||
86 | CONFIG_PRINTK=y | ||
87 | CONFIG_BUG=y | ||
88 | CONFIG_ELF_CORE=y | ||
89 | CONFIG_BASE_FULL=y | ||
90 | CONFIG_FUTEX=y | ||
91 | CONFIG_EPOLL=y | ||
92 | CONFIG_SIGNALFD=y | ||
93 | CONFIG_TIMERFD=y | ||
94 | CONFIG_EVENTFD=y | ||
95 | CONFIG_SHMEM=y | ||
96 | CONFIG_AIO=y | ||
97 | |||
98 | # | ||
99 | # Kernel Performance Events And Counters | ||
100 | # | ||
101 | CONFIG_VM_EVENT_COUNTERS=y | ||
102 | CONFIG_COMPAT_BRK=y | ||
103 | CONFIG_SLAB=y | ||
104 | # CONFIG_SLUB is not set | ||
105 | # CONFIG_SLOB is not set | ||
106 | # CONFIG_PROFILING is not set | ||
107 | CONFIG_HAVE_OPROFILE=y | ||
108 | CONFIG_HAVE_KPROBES=y | ||
109 | CONFIG_HAVE_KRETPROBES=y | ||
110 | CONFIG_HAVE_CLK=y | ||
111 | |||
112 | # | ||
113 | # GCOV-based kernel profiling | ||
114 | # | ||
115 | # CONFIG_SLOW_WORK is not set | ||
116 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | ||
117 | CONFIG_SLABINFO=y | ||
118 | CONFIG_RT_MUTEXES=y | ||
119 | CONFIG_BASE_SMALL=0 | ||
120 | # CONFIG_MODULES is not set | ||
121 | CONFIG_BLOCK=y | ||
122 | CONFIG_LBDAF=y | ||
123 | # CONFIG_BLK_DEV_BSG is not set | ||
124 | # CONFIG_BLK_DEV_INTEGRITY is not set | ||
125 | |||
126 | # | ||
127 | # IO Schedulers | ||
128 | # | ||
129 | CONFIG_IOSCHED_NOOP=y | ||
130 | # CONFIG_IOSCHED_DEADLINE is not set | ||
131 | # CONFIG_IOSCHED_CFQ is not set | ||
132 | # CONFIG_DEFAULT_DEADLINE is not set | ||
133 | # CONFIG_DEFAULT_CFQ is not set | ||
134 | CONFIG_DEFAULT_NOOP=y | ||
135 | CONFIG_DEFAULT_IOSCHED="noop" | ||
136 | # CONFIG_INLINE_SPIN_TRYLOCK is not set | ||
137 | # CONFIG_INLINE_SPIN_TRYLOCK_BH is not set | ||
138 | # CONFIG_INLINE_SPIN_LOCK is not set | ||
139 | # CONFIG_INLINE_SPIN_LOCK_BH is not set | ||
140 | # CONFIG_INLINE_SPIN_LOCK_IRQ is not set | ||
141 | # CONFIG_INLINE_SPIN_LOCK_IRQSAVE is not set | ||
142 | CONFIG_INLINE_SPIN_UNLOCK=y | ||
143 | # CONFIG_INLINE_SPIN_UNLOCK_BH is not set | ||
144 | CONFIG_INLINE_SPIN_UNLOCK_IRQ=y | ||
145 | # CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE is not set | ||
146 | # CONFIG_INLINE_READ_TRYLOCK is not set | ||
147 | # CONFIG_INLINE_READ_LOCK is not set | ||
148 | # CONFIG_INLINE_READ_LOCK_BH is not set | ||
149 | # CONFIG_INLINE_READ_LOCK_IRQ is not set | ||
150 | # CONFIG_INLINE_READ_LOCK_IRQSAVE is not set | ||
151 | CONFIG_INLINE_READ_UNLOCK=y | ||
152 | # CONFIG_INLINE_READ_UNLOCK_BH is not set | ||
153 | CONFIG_INLINE_READ_UNLOCK_IRQ=y | ||
154 | # CONFIG_INLINE_READ_UNLOCK_IRQRESTORE is not set | ||
155 | # CONFIG_INLINE_WRITE_TRYLOCK is not set | ||
156 | # CONFIG_INLINE_WRITE_LOCK is not set | ||
157 | # CONFIG_INLINE_WRITE_LOCK_BH is not set | ||
158 | # CONFIG_INLINE_WRITE_LOCK_IRQ is not set | ||
159 | # CONFIG_INLINE_WRITE_LOCK_IRQSAVE is not set | ||
160 | CONFIG_INLINE_WRITE_UNLOCK=y | ||
161 | # CONFIG_INLINE_WRITE_UNLOCK_BH is not set | ||
162 | CONFIG_INLINE_WRITE_UNLOCK_IRQ=y | ||
163 | # CONFIG_INLINE_WRITE_UNLOCK_IRQRESTORE is not set | ||
164 | # CONFIG_MUTEX_SPIN_ON_OWNER is not set | ||
165 | # CONFIG_FREEZER is not set | ||
166 | |||
167 | # | ||
168 | # System Type | ||
169 | # | ||
170 | CONFIG_MMU=y | ||
171 | # CONFIG_ARCH_AAEC2000 is not set | ||
172 | # CONFIG_ARCH_INTEGRATOR is not set | ||
173 | # CONFIG_ARCH_REALVIEW is not set | ||
174 | # CONFIG_ARCH_VERSATILE is not set | ||
175 | # CONFIG_ARCH_AT91 is not set | ||
176 | # CONFIG_ARCH_CLPS711X is not set | ||
177 | # CONFIG_ARCH_GEMINI is not set | ||
178 | # CONFIG_ARCH_EBSA110 is not set | ||
179 | # CONFIG_ARCH_EP93XX is not set | ||
180 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
181 | # CONFIG_ARCH_MXC is not set | ||
182 | # CONFIG_ARCH_STMP3XXX is not set | ||
183 | # CONFIG_ARCH_NETX is not set | ||
184 | # CONFIG_ARCH_H720X is not set | ||
185 | # CONFIG_ARCH_NOMADIK is not set | ||
186 | # CONFIG_ARCH_IOP13XX is not set | ||
187 | # CONFIG_ARCH_IOP32X is not set | ||
188 | # CONFIG_ARCH_IOP33X is not set | ||
189 | # CONFIG_ARCH_IXP23XX is not set | ||
190 | # CONFIG_ARCH_IXP2000 is not set | ||
191 | # CONFIG_ARCH_IXP4XX is not set | ||
192 | # CONFIG_ARCH_L7200 is not set | ||
193 | # CONFIG_ARCH_DOVE is not set | ||
194 | # CONFIG_ARCH_KIRKWOOD is not set | ||
195 | # CONFIG_ARCH_LOKI is not set | ||
196 | # CONFIG_ARCH_MV78XX0 is not set | ||
197 | # CONFIG_ARCH_ORION5X is not set | ||
198 | # CONFIG_ARCH_MMP is not set | ||
199 | # CONFIG_ARCH_KS8695 is not set | ||
200 | # CONFIG_ARCH_NS9XXX is not set | ||
201 | # CONFIG_ARCH_W90X900 is not set | ||
202 | # CONFIG_ARCH_PNX4008 is not set | ||
203 | # CONFIG_ARCH_PXA is not set | ||
204 | # CONFIG_ARCH_MSM is not set | ||
205 | CONFIG_ARCH_SHMOBILE=y | ||
206 | # CONFIG_ARCH_RPC is not set | ||
207 | # CONFIG_ARCH_SA1100 is not set | ||
208 | # CONFIG_ARCH_S3C2410 is not set | ||
209 | # CONFIG_ARCH_S3C64XX is not set | ||
210 | # CONFIG_ARCH_S5PC1XX is not set | ||
211 | # CONFIG_ARCH_SHARK is not set | ||
212 | # CONFIG_ARCH_LH7A40X is not set | ||
213 | # CONFIG_ARCH_U300 is not set | ||
214 | # CONFIG_ARCH_DAVINCI is not set | ||
215 | # CONFIG_ARCH_OMAP is not set | ||
216 | # CONFIG_ARCH_BCMRING is not set | ||
217 | # CONFIG_ARCH_U8500 is not set | ||
218 | |||
219 | # | ||
220 | # SH-Mobile System Type | ||
221 | # | ||
222 | # CONFIG_ARCH_SH7367 is not set | ||
223 | CONFIG_ARCH_SH7377=y | ||
224 | # CONFIG_ARCH_SH7372 is not set | ||
225 | |||
226 | # | ||
227 | # SH-Mobile Board Type | ||
228 | # | ||
229 | CONFIG_MACH_G4EVM=y | ||
230 | |||
231 | # | ||
232 | # SH-Mobile System Configuration | ||
233 | # | ||
234 | |||
235 | # | ||
236 | # Memory configuration | ||
237 | # | ||
238 | CONFIG_MEMORY_START=0x40000000 | ||
239 | CONFIG_MEMORY_SIZE=0x08000000 | ||
240 | |||
241 | # | ||
242 | # Timer and clock configuration | ||
243 | # | ||
244 | CONFIG_SH_TIMER_CMT=y | ||
245 | |||
246 | # | ||
247 | # Processor Type | ||
248 | # | ||
249 | CONFIG_CPU_32v6K=y | ||
250 | CONFIG_CPU_V7=y | ||
251 | CONFIG_CPU_32v7=y | ||
252 | CONFIG_CPU_ABRT_EV7=y | ||
253 | CONFIG_CPU_PABRT_V7=y | ||
254 | CONFIG_CPU_CACHE_V7=y | ||
255 | CONFIG_CPU_CACHE_VIPT=y | ||
256 | CONFIG_CPU_COPY_V6=y | ||
257 | CONFIG_CPU_TLB_V7=y | ||
258 | CONFIG_CPU_HAS_ASID=y | ||
259 | CONFIG_CPU_CP15=y | ||
260 | CONFIG_CPU_CP15_MMU=y | ||
261 | |||
262 | # | ||
263 | # Processor Features | ||
264 | # | ||
265 | CONFIG_ARM_THUMB=y | ||
266 | # CONFIG_ARM_THUMBEE is not set | ||
267 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
268 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
269 | # CONFIG_CPU_BPREDICT_DISABLE is not set | ||
270 | CONFIG_HAS_TLS_REG=y | ||
271 | CONFIG_ARM_L1_CACHE_SHIFT=5 | ||
272 | # CONFIG_ARM_ERRATA_430973 is not set | ||
273 | # CONFIG_ARM_ERRATA_458693 is not set | ||
274 | # CONFIG_ARM_ERRATA_460075 is not set | ||
275 | CONFIG_COMMON_CLKDEV=y | ||
276 | |||
277 | # | ||
278 | # Bus support | ||
279 | # | ||
280 | # CONFIG_PCI_SYSCALL is not set | ||
281 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
282 | # CONFIG_PCCARD is not set | ||
283 | |||
284 | # | ||
285 | # Kernel Features | ||
286 | # | ||
287 | # CONFIG_NO_HZ is not set | ||
288 | # CONFIG_HIGH_RES_TIMERS is not set | ||
289 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
290 | CONFIG_VMSPLIT_3G=y | ||
291 | # CONFIG_VMSPLIT_2G is not set | ||
292 | # CONFIG_VMSPLIT_1G is not set | ||
293 | CONFIG_PAGE_OFFSET=0xC0000000 | ||
294 | CONFIG_PREEMPT_NONE=y | ||
295 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
296 | # CONFIG_PREEMPT is not set | ||
297 | CONFIG_HZ=100 | ||
298 | # CONFIG_THUMB2_KERNEL is not set | ||
299 | CONFIG_AEABI=y | ||
300 | # CONFIG_OABI_COMPAT is not set | ||
301 | # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set | ||
302 | # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set | ||
303 | # CONFIG_HIGHMEM is not set | ||
304 | CONFIG_SELECT_MEMORY_MODEL=y | ||
305 | CONFIG_FLATMEM_MANUAL=y | ||
306 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
307 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
308 | CONFIG_FLATMEM=y | ||
309 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
310 | CONFIG_PAGEFLAGS_EXTENDED=y | ||
311 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
312 | # CONFIG_PHYS_ADDR_T_64BIT is not set | ||
313 | CONFIG_ZONE_DMA_FLAG=0 | ||
314 | CONFIG_VIRT_TO_BUS=y | ||
315 | # CONFIG_KSM is not set | ||
316 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 | ||
317 | CONFIG_ALIGNMENT_TRAP=y | ||
318 | # CONFIG_UACCESS_WITH_MEMCPY is not set | ||
319 | |||
320 | # | ||
321 | # Boot options | ||
322 | # | ||
323 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
324 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
325 | CONFIG_CMDLINE="console=ttySC4,115200 earlyprintk=sh-sci.4,115200" | ||
326 | # CONFIG_XIP_KERNEL is not set | ||
327 | CONFIG_KEXEC=y | ||
328 | CONFIG_ATAGS_PROC=y | ||
329 | |||
330 | # | ||
331 | # CPU Power Management | ||
332 | # | ||
333 | # CONFIG_CPU_IDLE is not set | ||
334 | |||
335 | # | ||
336 | # Floating point emulation | ||
337 | # | ||
338 | |||
339 | # | ||
340 | # At least one emulation must be selected | ||
341 | # | ||
342 | # CONFIG_VFP is not set | ||
343 | |||
344 | # | ||
345 | # Userspace binary formats | ||
346 | # | ||
347 | CONFIG_BINFMT_ELF=y | ||
348 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set | ||
349 | CONFIG_HAVE_AOUT=y | ||
350 | # CONFIG_BINFMT_AOUT is not set | ||
351 | # CONFIG_BINFMT_MISC is not set | ||
352 | |||
353 | # | ||
354 | # Power management options | ||
355 | # | ||
356 | CONFIG_PM=y | ||
357 | # CONFIG_PM_DEBUG is not set | ||
358 | # CONFIG_SUSPEND is not set | ||
359 | # CONFIG_APM_EMULATION is not set | ||
360 | # CONFIG_PM_RUNTIME is not set | ||
361 | CONFIG_ARCH_SUSPEND_POSSIBLE=y | ||
362 | # CONFIG_NET is not set | ||
363 | |||
364 | # | ||
365 | # Device Drivers | ||
366 | # | ||
367 | |||
368 | # | ||
369 | # Generic Driver Options | ||
370 | # | ||
371 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
372 | # CONFIG_DEVTMPFS is not set | ||
373 | CONFIG_STANDALONE=y | ||
374 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
375 | CONFIG_FW_LOADER=y | ||
376 | # CONFIG_FIRMWARE_IN_KERNEL is not set | ||
377 | CONFIG_EXTRA_FIRMWARE="" | ||
378 | # CONFIG_DEBUG_DRIVER is not set | ||
379 | # CONFIG_DEBUG_DEVRES is not set | ||
380 | # CONFIG_SYS_HYPERVISOR is not set | ||
381 | CONFIG_MTD=y | ||
382 | # CONFIG_MTD_DEBUG is not set | ||
383 | CONFIG_MTD_CONCAT=y | ||
384 | CONFIG_MTD_PARTITIONS=y | ||
385 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
386 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
387 | # CONFIG_MTD_AFS_PARTS is not set | ||
388 | # CONFIG_MTD_AR7_PARTS is not set | ||
389 | |||
390 | # | ||
391 | # User Modules And Translation Layers | ||
392 | # | ||
393 | CONFIG_MTD_CHAR=y | ||
394 | CONFIG_MTD_BLKDEVS=y | ||
395 | CONFIG_MTD_BLOCK=y | ||
396 | # CONFIG_FTL is not set | ||
397 | # CONFIG_NFTL is not set | ||
398 | # CONFIG_INFTL is not set | ||
399 | # CONFIG_RFD_FTL is not set | ||
400 | # CONFIG_SSFDC is not set | ||
401 | # CONFIG_MTD_OOPS is not set | ||
402 | |||
403 | # | ||
404 | # RAM/ROM/Flash chip drivers | ||
405 | # | ||
406 | CONFIG_MTD_CFI=y | ||
407 | # CONFIG_MTD_JEDECPROBE is not set | ||
408 | CONFIG_MTD_GEN_PROBE=y | ||
409 | # CONFIG_MTD_CFI_ADV_OPTIONS is not set | ||
410 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
411 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
412 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
413 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
414 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
415 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
416 | CONFIG_MTD_CFI_I1=y | ||
417 | CONFIG_MTD_CFI_I2=y | ||
418 | # CONFIG_MTD_CFI_I4 is not set | ||
419 | # CONFIG_MTD_CFI_I8 is not set | ||
420 | CONFIG_MTD_CFI_INTELEXT=y | ||
421 | # CONFIG_MTD_CFI_AMDSTD is not set | ||
422 | # CONFIG_MTD_CFI_STAA is not set | ||
423 | CONFIG_MTD_CFI_UTIL=y | ||
424 | # CONFIG_MTD_RAM is not set | ||
425 | # CONFIG_MTD_ROM is not set | ||
426 | # CONFIG_MTD_ABSENT is not set | ||
427 | |||
428 | # | ||
429 | # Mapping drivers for chip access | ||
430 | # | ||
431 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
432 | CONFIG_MTD_PHYSMAP=y | ||
433 | # CONFIG_MTD_PHYSMAP_COMPAT is not set | ||
434 | # CONFIG_MTD_ARM_INTEGRATOR is not set | ||
435 | # CONFIG_MTD_PLATRAM is not set | ||
436 | |||
437 | # | ||
438 | # Self-contained MTD device drivers | ||
439 | # | ||
440 | # CONFIG_MTD_SLRAM is not set | ||
441 | # CONFIG_MTD_PHRAM is not set | ||
442 | # CONFIG_MTD_MTDRAM is not set | ||
443 | # CONFIG_MTD_BLOCK2MTD is not set | ||
444 | |||
445 | # | ||
446 | # Disk-On-Chip Device Drivers | ||
447 | # | ||
448 | # CONFIG_MTD_DOC2000 is not set | ||
449 | # CONFIG_MTD_DOC2001 is not set | ||
450 | # CONFIG_MTD_DOC2001PLUS is not set | ||
451 | CONFIG_MTD_NAND=y | ||
452 | # CONFIG_MTD_NAND_VERIFY_WRITE is not set | ||
453 | # CONFIG_MTD_NAND_ECC_SMC is not set | ||
454 | # CONFIG_MTD_NAND_MUSEUM_IDS is not set | ||
455 | CONFIG_MTD_NAND_IDS=y | ||
456 | # CONFIG_MTD_NAND_DISKONCHIP is not set | ||
457 | # CONFIG_MTD_NAND_NANDSIM is not set | ||
458 | # CONFIG_MTD_NAND_PLATFORM is not set | ||
459 | # CONFIG_MTD_ONENAND is not set | ||
460 | |||
461 | # | ||
462 | # LPDDR flash memory drivers | ||
463 | # | ||
464 | # CONFIG_MTD_LPDDR is not set | ||
465 | |||
466 | # | ||
467 | # UBI - Unsorted block images | ||
468 | # | ||
469 | # CONFIG_MTD_UBI is not set | ||
470 | # CONFIG_PARPORT is not set | ||
471 | # CONFIG_BLK_DEV is not set | ||
472 | # CONFIG_MISC_DEVICES is not set | ||
473 | CONFIG_HAVE_IDE=y | ||
474 | # CONFIG_IDE is not set | ||
475 | |||
476 | # | ||
477 | # SCSI device support | ||
478 | # | ||
479 | # CONFIG_RAID_ATTRS is not set | ||
480 | # CONFIG_SCSI is not set | ||
481 | # CONFIG_SCSI_DMA is not set | ||
482 | # CONFIG_SCSI_NETLINK is not set | ||
483 | # CONFIG_ATA is not set | ||
484 | # CONFIG_MD is not set | ||
485 | # CONFIG_PHONE is not set | ||
486 | |||
487 | # | ||
488 | # Input device support | ||
489 | # | ||
490 | CONFIG_INPUT=y | ||
491 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
492 | # CONFIG_INPUT_POLLDEV is not set | ||
493 | # CONFIG_INPUT_SPARSEKMAP is not set | ||
494 | |||
495 | # | ||
496 | # Userland interfaces | ||
497 | # | ||
498 | CONFIG_INPUT_MOUSEDEV=y | ||
499 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
500 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
501 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
502 | # CONFIG_INPUT_JOYDEV is not set | ||
503 | # CONFIG_INPUT_EVDEV is not set | ||
504 | # CONFIG_INPUT_EVBUG is not set | ||
505 | |||
506 | # | ||
507 | # Input Device Drivers | ||
508 | # | ||
509 | # CONFIG_INPUT_KEYBOARD is not set | ||
510 | # CONFIG_INPUT_MOUSE is not set | ||
511 | # CONFIG_INPUT_JOYSTICK is not set | ||
512 | # CONFIG_INPUT_TABLET is not set | ||
513 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
514 | # CONFIG_INPUT_MISC is not set | ||
515 | |||
516 | # | ||
517 | # Hardware I/O ports | ||
518 | # | ||
519 | # CONFIG_SERIO is not set | ||
520 | # CONFIG_GAMEPORT is not set | ||
521 | |||
522 | # | ||
523 | # Character devices | ||
524 | # | ||
525 | CONFIG_VT=y | ||
526 | CONFIG_CONSOLE_TRANSLATIONS=y | ||
527 | CONFIG_VT_CONSOLE=y | ||
528 | CONFIG_HW_CONSOLE=y | ||
529 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
530 | CONFIG_DEVKMEM=y | ||
531 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
532 | |||
533 | # | ||
534 | # Serial drivers | ||
535 | # | ||
536 | # CONFIG_SERIAL_8250 is not set | ||
537 | |||
538 | # | ||
539 | # Non-8250 serial port support | ||
540 | # | ||
541 | CONFIG_SERIAL_SH_SCI=y | ||
542 | CONFIG_SERIAL_SH_SCI_NR_UARTS=8 | ||
543 | CONFIG_SERIAL_SH_SCI_CONSOLE=y | ||
544 | CONFIG_SERIAL_CORE=y | ||
545 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
546 | CONFIG_UNIX98_PTYS=y | ||
547 | # CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set | ||
548 | # CONFIG_LEGACY_PTYS is not set | ||
549 | # CONFIG_IPMI_HANDLER is not set | ||
550 | # CONFIG_HW_RANDOM is not set | ||
551 | # CONFIG_R3964 is not set | ||
552 | # CONFIG_RAW_DRIVER is not set | ||
553 | # CONFIG_TCG_TPM is not set | ||
554 | # CONFIG_I2C is not set | ||
555 | # CONFIG_SPI is not set | ||
556 | |||
557 | # | ||
558 | # PPS support | ||
559 | # | ||
560 | # CONFIG_PPS is not set | ||
561 | # CONFIG_W1 is not set | ||
562 | # CONFIG_POWER_SUPPLY is not set | ||
563 | # CONFIG_HWMON is not set | ||
564 | # CONFIG_THERMAL is not set | ||
565 | # CONFIG_WATCHDOG is not set | ||
566 | CONFIG_SSB_POSSIBLE=y | ||
567 | |||
568 | # | ||
569 | # Sonics Silicon Backplane | ||
570 | # | ||
571 | # CONFIG_SSB is not set | ||
572 | |||
573 | # | ||
574 | # Multifunction device drivers | ||
575 | # | ||
576 | # CONFIG_MFD_CORE is not set | ||
577 | # CONFIG_MFD_SM501 is not set | ||
578 | # CONFIG_HTC_PASIC3 is not set | ||
579 | # CONFIG_MFD_TMIO is not set | ||
580 | # CONFIG_MFD_T7L66XB is not set | ||
581 | # CONFIG_MFD_TC6387XB is not set | ||
582 | # CONFIG_REGULATOR is not set | ||
583 | # CONFIG_MEDIA_SUPPORT is not set | ||
584 | |||
585 | # | ||
586 | # Graphics support | ||
587 | # | ||
588 | # CONFIG_VGASTATE is not set | ||
589 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
590 | # CONFIG_FB is not set | ||
591 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
592 | |||
593 | # | ||
594 | # Display device support | ||
595 | # | ||
596 | # CONFIG_DISPLAY_SUPPORT is not set | ||
597 | |||
598 | # | ||
599 | # Console display driver support | ||
600 | # | ||
601 | # CONFIG_VGA_CONSOLE is not set | ||
602 | CONFIG_DUMMY_CONSOLE=y | ||
603 | # CONFIG_SOUND is not set | ||
604 | # CONFIG_HID_SUPPORT is not set | ||
605 | # CONFIG_USB_SUPPORT is not set | ||
606 | # CONFIG_MMC is not set | ||
607 | # CONFIG_MEMSTICK is not set | ||
608 | # CONFIG_NEW_LEDS is not set | ||
609 | # CONFIG_ACCESSIBILITY is not set | ||
610 | CONFIG_RTC_LIB=y | ||
611 | # CONFIG_RTC_CLASS is not set | ||
612 | # CONFIG_DMADEVICES is not set | ||
613 | # CONFIG_AUXDISPLAY is not set | ||
614 | # CONFIG_UIO is not set | ||
615 | |||
616 | # | ||
617 | # TI VLYNQ | ||
618 | # | ||
619 | # CONFIG_STAGING is not set | ||
620 | |||
621 | # | ||
622 | # File systems | ||
623 | # | ||
624 | # CONFIG_EXT2_FS is not set | ||
625 | # CONFIG_EXT3_FS is not set | ||
626 | # CONFIG_EXT4_FS is not set | ||
627 | # CONFIG_REISERFS_FS is not set | ||
628 | # CONFIG_JFS_FS is not set | ||
629 | # CONFIG_FS_POSIX_ACL is not set | ||
630 | # CONFIG_XFS_FS is not set | ||
631 | # CONFIG_GFS2_FS is not set | ||
632 | # CONFIG_BTRFS_FS is not set | ||
633 | # CONFIG_NILFS2_FS is not set | ||
634 | CONFIG_FILE_LOCKING=y | ||
635 | # CONFIG_FSNOTIFY is not set | ||
636 | # CONFIG_DNOTIFY is not set | ||
637 | # CONFIG_INOTIFY is not set | ||
638 | # CONFIG_INOTIFY_USER is not set | ||
639 | # CONFIG_QUOTA is not set | ||
640 | # CONFIG_AUTOFS_FS is not set | ||
641 | # CONFIG_AUTOFS4_FS is not set | ||
642 | # CONFIG_FUSE_FS is not set | ||
643 | |||
644 | # | ||
645 | # Caches | ||
646 | # | ||
647 | # CONFIG_FSCACHE is not set | ||
648 | |||
649 | # | ||
650 | # CD-ROM/DVD Filesystems | ||
651 | # | ||
652 | # CONFIG_ISO9660_FS is not set | ||
653 | # CONFIG_UDF_FS is not set | ||
654 | |||
655 | # | ||
656 | # DOS/FAT/NT Filesystems | ||
657 | # | ||
658 | # CONFIG_MSDOS_FS is not set | ||
659 | # CONFIG_VFAT_FS is not set | ||
660 | # CONFIG_NTFS_FS is not set | ||
661 | |||
662 | # | ||
663 | # Pseudo filesystems | ||
664 | # | ||
665 | CONFIG_PROC_FS=y | ||
666 | CONFIG_PROC_SYSCTL=y | ||
667 | CONFIG_PROC_PAGE_MONITOR=y | ||
668 | CONFIG_SYSFS=y | ||
669 | CONFIG_TMPFS=y | ||
670 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
671 | # CONFIG_HUGETLB_PAGE is not set | ||
672 | # CONFIG_CONFIGFS_FS is not set | ||
673 | # CONFIG_MISC_FILESYSTEMS is not set | ||
674 | |||
675 | # | ||
676 | # Partition Types | ||
677 | # | ||
678 | # CONFIG_PARTITION_ADVANCED is not set | ||
679 | CONFIG_MSDOS_PARTITION=y | ||
680 | # CONFIG_NLS is not set | ||
681 | |||
682 | # | ||
683 | # Kernel hacking | ||
684 | # | ||
685 | # CONFIG_PRINTK_TIME is not set | ||
686 | CONFIG_ENABLE_WARN_DEPRECATED=y | ||
687 | CONFIG_ENABLE_MUST_CHECK=y | ||
688 | CONFIG_FRAME_WARN=1024 | ||
689 | CONFIG_MAGIC_SYSRQ=y | ||
690 | # CONFIG_STRIP_ASM_SYMS is not set | ||
691 | # CONFIG_UNUSED_SYMBOLS is not set | ||
692 | # CONFIG_DEBUG_FS is not set | ||
693 | # CONFIG_HEADERS_CHECK is not set | ||
694 | CONFIG_DEBUG_KERNEL=y | ||
695 | # CONFIG_DEBUG_SHIRQ is not set | ||
696 | # CONFIG_DETECT_SOFTLOCKUP is not set | ||
697 | # CONFIG_DETECT_HUNG_TASK is not set | ||
698 | CONFIG_SCHED_DEBUG=y | ||
699 | # CONFIG_SCHEDSTATS is not set | ||
700 | # CONFIG_TIMER_STATS is not set | ||
701 | # CONFIG_DEBUG_OBJECTS is not set | ||
702 | # CONFIG_DEBUG_SLAB is not set | ||
703 | # CONFIG_DEBUG_KMEMLEAK is not set | ||
704 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
705 | # CONFIG_RT_MUTEX_TESTER is not set | ||
706 | # CONFIG_DEBUG_SPINLOCK is not set | ||
707 | # CONFIG_DEBUG_MUTEXES is not set | ||
708 | # CONFIG_DEBUG_LOCK_ALLOC is not set | ||
709 | # CONFIG_PROVE_LOCKING is not set | ||
710 | # CONFIG_LOCK_STAT is not set | ||
711 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
712 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
713 | # CONFIG_DEBUG_KOBJECT is not set | ||
714 | CONFIG_DEBUG_BUGVERBOSE=y | ||
715 | # CONFIG_DEBUG_INFO is not set | ||
716 | # CONFIG_DEBUG_VM is not set | ||
717 | # CONFIG_DEBUG_WRITECOUNT is not set | ||
718 | CONFIG_DEBUG_MEMORY_INIT=y | ||
719 | # CONFIG_DEBUG_LIST is not set | ||
720 | # CONFIG_DEBUG_SG is not set | ||
721 | # CONFIG_DEBUG_NOTIFIERS is not set | ||
722 | # CONFIG_DEBUG_CREDENTIALS is not set | ||
723 | # CONFIG_BOOT_PRINTK_DELAY is not set | ||
724 | # CONFIG_RCU_TORTURE_TEST is not set | ||
725 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | ||
726 | # CONFIG_BACKTRACE_SELF_TEST is not set | ||
727 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set | ||
728 | # CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set | ||
729 | # CONFIG_FAULT_INJECTION is not set | ||
730 | # CONFIG_LATENCYTOP is not set | ||
731 | # CONFIG_SYSCTL_SYSCALL_CHECK is not set | ||
732 | # CONFIG_PAGE_POISONING is not set | ||
733 | CONFIG_HAVE_FUNCTION_TRACER=y | ||
734 | CONFIG_TRACING_SUPPORT=y | ||
735 | # CONFIG_FTRACE is not set | ||
736 | # CONFIG_SAMPLES is not set | ||
737 | CONFIG_HAVE_ARCH_KGDB=y | ||
738 | # CONFIG_KGDB is not set | ||
739 | CONFIG_ARM_UNWIND=y | ||
740 | # CONFIG_DEBUG_USER is not set | ||
741 | # CONFIG_DEBUG_ERRORS is not set | ||
742 | # CONFIG_DEBUG_STACK_USAGE is not set | ||
743 | # CONFIG_DEBUG_LL is not set | ||
744 | # CONFIG_OC_ETM is not set | ||
745 | |||
746 | # | ||
747 | # Security options | ||
748 | # | ||
749 | # CONFIG_KEYS is not set | ||
750 | # CONFIG_SECURITY is not set | ||
751 | # CONFIG_SECURITYFS is not set | ||
752 | # CONFIG_DEFAULT_SECURITY_SELINUX is not set | ||
753 | # CONFIG_DEFAULT_SECURITY_SMACK is not set | ||
754 | # CONFIG_DEFAULT_SECURITY_TOMOYO is not set | ||
755 | CONFIG_DEFAULT_SECURITY_DAC=y | ||
756 | CONFIG_DEFAULT_SECURITY="" | ||
757 | # CONFIG_CRYPTO is not set | ||
758 | # CONFIG_BINARY_PRINTF is not set | ||
759 | |||
760 | # | ||
761 | # Library routines | ||
762 | # | ||
763 | CONFIG_GENERIC_FIND_LAST_BIT=y | ||
764 | # CONFIG_CRC_CCITT is not set | ||
765 | # CONFIG_CRC16 is not set | ||
766 | # CONFIG_CRC_T10DIF is not set | ||
767 | # CONFIG_CRC_ITU_T is not set | ||
768 | # CONFIG_CRC32 is not set | ||
769 | # CONFIG_CRC7 is not set | ||
770 | # CONFIG_LIBCRC32C is not set | ||
771 | CONFIG_ZLIB_INFLATE=y | ||
772 | CONFIG_LZO_DECOMPRESS=y | ||
773 | CONFIG_DECOMPRESS_GZIP=y | ||
774 | CONFIG_DECOMPRESS_BZIP2=y | ||
775 | CONFIG_DECOMPRESS_LZMA=y | ||
776 | CONFIG_DECOMPRESS_LZO=y | ||
777 | CONFIG_HAS_IOMEM=y | ||
778 | CONFIG_HAS_IOPORT=y | ||
779 | CONFIG_HAS_DMA=y | ||
diff --git a/arch/arm/configs/imote2_defconfig b/arch/arm/configs/imote2_defconfig new file mode 100644 index 00000000000..95d2becfc66 --- /dev/null +++ b/arch/arm/configs/imote2_defconfig | |||
@@ -0,0 +1,2077 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.33-rc8 | ||
4 | # Sat Feb 13 21:48:53 2010 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | ||
8 | CONFIG_GENERIC_GPIO=y | ||
9 | CONFIG_GENERIC_TIME=y | ||
10 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
11 | CONFIG_GENERIC_HARDIRQS=y | ||
12 | CONFIG_STACKTRACE_SUPPORT=y | ||
13 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | ||
14 | CONFIG_LOCKDEP_SUPPORT=y | ||
15 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
16 | CONFIG_HARDIRQS_SW_RESEND=y | ||
17 | CONFIG_GENERIC_IRQ_PROBE=y | ||
18 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
19 | CONFIG_ARCH_HAS_CPUFREQ=y | ||
20 | CONFIG_GENERIC_HWEIGHT=y | ||
21 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
22 | CONFIG_ARCH_MTD_XIP=y | ||
23 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y | ||
24 | CONFIG_VECTORS_BASE=0xffff0000 | ||
25 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
26 | CONFIG_CONSTRUCTORS=y | ||
27 | |||
28 | # | ||
29 | # General setup | ||
30 | # | ||
31 | CONFIG_EXPERIMENTAL=y | ||
32 | CONFIG_BROKEN_ON_SMP=y | ||
33 | CONFIG_LOCK_KERNEL=y | ||
34 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
35 | CONFIG_LOCALVERSION="" | ||
36 | # CONFIG_LOCALVERSION_AUTO is not set | ||
37 | CONFIG_HAVE_KERNEL_GZIP=y | ||
38 | CONFIG_HAVE_KERNEL_LZO=y | ||
39 | CONFIG_KERNEL_GZIP=y | ||
40 | # CONFIG_KERNEL_BZIP2 is not set | ||
41 | # CONFIG_KERNEL_LZMA is not set | ||
42 | # CONFIG_KERNEL_LZO is not set | ||
43 | CONFIG_SWAP=y | ||
44 | CONFIG_SYSVIPC=y | ||
45 | CONFIG_SYSVIPC_SYSCTL=y | ||
46 | # CONFIG_POSIX_MQUEUE is not set | ||
47 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
48 | # CONFIG_TASKSTATS is not set | ||
49 | # CONFIG_AUDIT is not set | ||
50 | |||
51 | # | ||
52 | # RCU Subsystem | ||
53 | # | ||
54 | CONFIG_TREE_RCU=y | ||
55 | # CONFIG_TREE_PREEMPT_RCU is not set | ||
56 | # CONFIG_TINY_RCU is not set | ||
57 | # CONFIG_RCU_TRACE is not set | ||
58 | CONFIG_RCU_FANOUT=32 | ||
59 | # CONFIG_RCU_FANOUT_EXACT is not set | ||
60 | # CONFIG_TREE_RCU_TRACE is not set | ||
61 | # CONFIG_IKCONFIG is not set | ||
62 | CONFIG_LOG_BUF_SHIFT=14 | ||
63 | CONFIG_GROUP_SCHED=y | ||
64 | CONFIG_FAIR_GROUP_SCHED=y | ||
65 | # CONFIG_RT_GROUP_SCHED is not set | ||
66 | CONFIG_USER_SCHED=y | ||
67 | # CONFIG_CGROUP_SCHED is not set | ||
68 | # CONFIG_CGROUPS is not set | ||
69 | CONFIG_SYSFS_DEPRECATED=y | ||
70 | CONFIG_SYSFS_DEPRECATED_V2=y | ||
71 | # CONFIG_RELAY is not set | ||
72 | # CONFIG_NAMESPACES is not set | ||
73 | CONFIG_BLK_DEV_INITRD=y | ||
74 | CONFIG_INITRAMFS_SOURCE="" | ||
75 | CONFIG_RD_GZIP=y | ||
76 | CONFIG_RD_BZIP2=y | ||
77 | CONFIG_RD_LZMA=y | ||
78 | # CONFIG_RD_LZO is not set | ||
79 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
80 | CONFIG_SYSCTL=y | ||
81 | CONFIG_ANON_INODES=y | ||
82 | CONFIG_EMBEDDED=y | ||
83 | CONFIG_UID16=y | ||
84 | CONFIG_SYSCTL_SYSCALL=y | ||
85 | CONFIG_KALLSYMS=y | ||
86 | CONFIG_KALLSYMS_ALL=y | ||
87 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
88 | CONFIG_HOTPLUG=y | ||
89 | CONFIG_PRINTK=y | ||
90 | CONFIG_BUG=y | ||
91 | CONFIG_ELF_CORE=y | ||
92 | CONFIG_BASE_FULL=y | ||
93 | CONFIG_FUTEX=y | ||
94 | CONFIG_EPOLL=y | ||
95 | CONFIG_SIGNALFD=y | ||
96 | CONFIG_TIMERFD=y | ||
97 | CONFIG_EVENTFD=y | ||
98 | CONFIG_SHMEM=y | ||
99 | CONFIG_AIO=y | ||
100 | |||
101 | # | ||
102 | # Kernel Performance Events And Counters | ||
103 | # | ||
104 | CONFIG_VM_EVENT_COUNTERS=y | ||
105 | # CONFIG_COMPAT_BRK is not set | ||
106 | CONFIG_SLAB=y | ||
107 | # CONFIG_SLUB is not set | ||
108 | # CONFIG_SLOB is not set | ||
109 | # CONFIG_PROFILING is not set | ||
110 | CONFIG_HAVE_OPROFILE=y | ||
111 | # CONFIG_KPROBES is not set | ||
112 | CONFIG_HAVE_KPROBES=y | ||
113 | CONFIG_HAVE_KRETPROBES=y | ||
114 | CONFIG_HAVE_CLK=y | ||
115 | |||
116 | # | ||
117 | # GCOV-based kernel profiling | ||
118 | # | ||
119 | # CONFIG_GCOV_KERNEL is not set | ||
120 | CONFIG_SLOW_WORK=y | ||
121 | # CONFIG_SLOW_WORK_DEBUG is not set | ||
122 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | ||
123 | CONFIG_SLABINFO=y | ||
124 | CONFIG_RT_MUTEXES=y | ||
125 | CONFIG_BASE_SMALL=0 | ||
126 | CONFIG_MODULES=y | ||
127 | # CONFIG_MODULE_FORCE_LOAD is not set | ||
128 | CONFIG_MODULE_UNLOAD=y | ||
129 | CONFIG_MODULE_FORCE_UNLOAD=y | ||
130 | CONFIG_MODVERSIONS=y | ||
131 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
132 | CONFIG_BLOCK=y | ||
133 | # CONFIG_LBDAF is not set | ||
134 | # CONFIG_BLK_DEV_BSG is not set | ||
135 | # CONFIG_BLK_DEV_INTEGRITY is not set | ||
136 | |||
137 | # | ||
138 | # IO Schedulers | ||
139 | # | ||
140 | CONFIG_IOSCHED_NOOP=y | ||
141 | CONFIG_IOSCHED_DEADLINE=y | ||
142 | # CONFIG_IOSCHED_CFQ is not set | ||
143 | CONFIG_DEFAULT_DEADLINE=y | ||
144 | # CONFIG_DEFAULT_CFQ is not set | ||
145 | # CONFIG_DEFAULT_NOOP is not set | ||
146 | CONFIG_DEFAULT_IOSCHED="deadline" | ||
147 | # CONFIG_INLINE_SPIN_TRYLOCK is not set | ||
148 | # CONFIG_INLINE_SPIN_TRYLOCK_BH is not set | ||
149 | # CONFIG_INLINE_SPIN_LOCK is not set | ||
150 | # CONFIG_INLINE_SPIN_LOCK_BH is not set | ||
151 | # CONFIG_INLINE_SPIN_LOCK_IRQ is not set | ||
152 | # CONFIG_INLINE_SPIN_LOCK_IRQSAVE is not set | ||
153 | # CONFIG_INLINE_SPIN_UNLOCK is not set | ||
154 | # CONFIG_INLINE_SPIN_UNLOCK_BH is not set | ||
155 | # CONFIG_INLINE_SPIN_UNLOCK_IRQ is not set | ||
156 | # CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE is not set | ||
157 | # CONFIG_INLINE_READ_TRYLOCK is not set | ||
158 | # CONFIG_INLINE_READ_LOCK is not set | ||
159 | # CONFIG_INLINE_READ_LOCK_BH is not set | ||
160 | # CONFIG_INLINE_READ_LOCK_IRQ is not set | ||
161 | # CONFIG_INLINE_READ_LOCK_IRQSAVE is not set | ||
162 | # CONFIG_INLINE_READ_UNLOCK is not set | ||
163 | # CONFIG_INLINE_READ_UNLOCK_BH is not set | ||
164 | # CONFIG_INLINE_READ_UNLOCK_IRQ is not set | ||
165 | # CONFIG_INLINE_READ_UNLOCK_IRQRESTORE is not set | ||
166 | # CONFIG_INLINE_WRITE_TRYLOCK is not set | ||
167 | # CONFIG_INLINE_WRITE_LOCK is not set | ||
168 | # CONFIG_INLINE_WRITE_LOCK_BH is not set | ||
169 | # CONFIG_INLINE_WRITE_LOCK_IRQ is not set | ||
170 | # CONFIG_INLINE_WRITE_LOCK_IRQSAVE is not set | ||
171 | # CONFIG_INLINE_WRITE_UNLOCK is not set | ||
172 | # CONFIG_INLINE_WRITE_UNLOCK_BH is not set | ||
173 | # CONFIG_INLINE_WRITE_UNLOCK_IRQ is not set | ||
174 | # CONFIG_INLINE_WRITE_UNLOCK_IRQRESTORE is not set | ||
175 | # CONFIG_MUTEX_SPIN_ON_OWNER is not set | ||
176 | CONFIG_FREEZER=y | ||
177 | |||
178 | # | ||
179 | # System Type | ||
180 | # | ||
181 | CONFIG_MMU=y | ||
182 | # CONFIG_ARCH_AAEC2000 is not set | ||
183 | # CONFIG_ARCH_INTEGRATOR is not set | ||
184 | # CONFIG_ARCH_REALVIEW is not set | ||
185 | # CONFIG_ARCH_VERSATILE is not set | ||
186 | # CONFIG_ARCH_AT91 is not set | ||
187 | # CONFIG_ARCH_CLPS711X is not set | ||
188 | # CONFIG_ARCH_GEMINI is not set | ||
189 | # CONFIG_ARCH_EBSA110 is not set | ||
190 | # CONFIG_ARCH_EP93XX is not set | ||
191 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
192 | # CONFIG_ARCH_MXC is not set | ||
193 | # CONFIG_ARCH_STMP3XXX is not set | ||
194 | # CONFIG_ARCH_NETX is not set | ||
195 | # CONFIG_ARCH_H720X is not set | ||
196 | # CONFIG_ARCH_NOMADIK is not set | ||
197 | # CONFIG_ARCH_IOP13XX is not set | ||
198 | # CONFIG_ARCH_IOP32X is not set | ||
199 | # CONFIG_ARCH_IOP33X is not set | ||
200 | # CONFIG_ARCH_IXP23XX is not set | ||
201 | # CONFIG_ARCH_IXP2000 is not set | ||
202 | # CONFIG_ARCH_IXP4XX is not set | ||
203 | # CONFIG_ARCH_L7200 is not set | ||
204 | # CONFIG_ARCH_DOVE is not set | ||
205 | # CONFIG_ARCH_KIRKWOOD is not set | ||
206 | # CONFIG_ARCH_LOKI is not set | ||
207 | # CONFIG_ARCH_MV78XX0 is not set | ||
208 | # CONFIG_ARCH_ORION5X is not set | ||
209 | # CONFIG_ARCH_MMP is not set | ||
210 | # CONFIG_ARCH_KS8695 is not set | ||
211 | # CONFIG_ARCH_NS9XXX is not set | ||
212 | # CONFIG_ARCH_W90X900 is not set | ||
213 | # CONFIG_ARCH_PNX4008 is not set | ||
214 | CONFIG_ARCH_PXA=y | ||
215 | # CONFIG_ARCH_MSM is not set | ||
216 | # CONFIG_ARCH_RPC is not set | ||
217 | # CONFIG_ARCH_SA1100 is not set | ||
218 | # CONFIG_ARCH_S3C2410 is not set | ||
219 | # CONFIG_ARCH_S3C64XX is not set | ||
220 | # CONFIG_ARCH_S5PC1XX is not set | ||
221 | # CONFIG_ARCH_SHARK is not set | ||
222 | # CONFIG_ARCH_LH7A40X is not set | ||
223 | # CONFIG_ARCH_U300 is not set | ||
224 | # CONFIG_ARCH_DAVINCI is not set | ||
225 | # CONFIG_ARCH_OMAP is not set | ||
226 | # CONFIG_ARCH_BCMRING is not set | ||
227 | # CONFIG_ARCH_U8500 is not set | ||
228 | |||
229 | # | ||
230 | # Intel PXA2xx/PXA3xx Implementations | ||
231 | # | ||
232 | |||
233 | # | ||
234 | # Intel/Marvell Dev Platforms (sorted by hardware release time) | ||
235 | # | ||
236 | # CONFIG_ARCH_LUBBOCK is not set | ||
237 | # CONFIG_MACH_MAINSTONE is not set | ||
238 | # CONFIG_MACH_ZYLONITE300 is not set | ||
239 | # CONFIG_MACH_ZYLONITE320 is not set | ||
240 | # CONFIG_MACH_LITTLETON is not set | ||
241 | # CONFIG_MACH_TAVOREVB is not set | ||
242 | # CONFIG_MACH_SAAR is not set | ||
243 | |||
244 | # | ||
245 | # Third Party Dev Platforms (sorted by vendor name) | ||
246 | # | ||
247 | # CONFIG_ARCH_PXA_IDP is not set | ||
248 | # CONFIG_ARCH_VIPER is not set | ||
249 | # CONFIG_MACH_ARCOM_ZEUS is not set | ||
250 | # CONFIG_MACH_BALLOON3 is not set | ||
251 | # CONFIG_MACH_CSB726 is not set | ||
252 | # CONFIG_MACH_ARMCORE is not set | ||
253 | # CONFIG_MACH_EM_X270 is not set | ||
254 | # CONFIG_MACH_EXEDA is not set | ||
255 | # CONFIG_MACH_CM_X300 is not set | ||
256 | # CONFIG_ARCH_GUMSTIX is not set | ||
257 | CONFIG_MACH_INTELMOTE2=y | ||
258 | # CONFIG_MACH_STARGATE2 is not set | ||
259 | # CONFIG_MACH_XCEP is not set | ||
260 | # CONFIG_TRIZEPS_PXA is not set | ||
261 | # CONFIG_MACH_LOGICPD_PXA270 is not set | ||
262 | # CONFIG_MACH_PCM027 is not set | ||
263 | # CONFIG_MACH_COLIBRI is not set | ||
264 | # CONFIG_MACH_COLIBRI300 is not set | ||
265 | # CONFIG_MACH_COLIBRI320 is not set | ||
266 | |||
267 | # | ||
268 | # End-user Products (sorted by vendor name) | ||
269 | # | ||
270 | # CONFIG_MACH_H4700 is not set | ||
271 | # CONFIG_MACH_H5000 is not set | ||
272 | # CONFIG_MACH_HIMALAYA is not set | ||
273 | # CONFIG_MACH_MAGICIAN is not set | ||
274 | # CONFIG_MACH_MIOA701 is not set | ||
275 | # CONFIG_PXA_EZX is not set | ||
276 | # CONFIG_MACH_MP900C is not set | ||
277 | # CONFIG_ARCH_PXA_PALM is not set | ||
278 | # CONFIG_PXA_SHARPSL is not set | ||
279 | # CONFIG_ARCH_PXA_ESERIES is not set | ||
280 | CONFIG_PXA27x=y | ||
281 | CONFIG_PXA_SSP=y | ||
282 | CONFIG_PXA_HAVE_BOARD_IRQS=y | ||
283 | CONFIG_PLAT_PXA=y | ||
284 | |||
285 | # | ||
286 | # Processor Type | ||
287 | # | ||
288 | CONFIG_CPU_XSCALE=y | ||
289 | CONFIG_CPU_32v5=y | ||
290 | CONFIG_CPU_ABRT_EV5T=y | ||
291 | CONFIG_CPU_PABRT_LEGACY=y | ||
292 | CONFIG_CPU_CACHE_VIVT=y | ||
293 | CONFIG_CPU_TLB_V4WBI=y | ||
294 | CONFIG_CPU_CP15=y | ||
295 | CONFIG_CPU_CP15_MMU=y | ||
296 | |||
297 | # | ||
298 | # Processor Features | ||
299 | # | ||
300 | CONFIG_ARM_THUMB=y | ||
301 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
302 | CONFIG_ARM_L1_CACHE_SHIFT=5 | ||
303 | CONFIG_IWMMXT=y | ||
304 | CONFIG_XSCALE_PMU=y | ||
305 | CONFIG_COMMON_CLKDEV=y | ||
306 | |||
307 | # | ||
308 | # Bus support | ||
309 | # | ||
310 | # CONFIG_PCI_SYSCALL is not set | ||
311 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
312 | # CONFIG_PCCARD is not set | ||
313 | |||
314 | # | ||
315 | # Kernel Features | ||
316 | # | ||
317 | CONFIG_TICK_ONESHOT=y | ||
318 | CONFIG_NO_HZ=y | ||
319 | CONFIG_HIGH_RES_TIMERS=y | ||
320 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
321 | CONFIG_VMSPLIT_3G=y | ||
322 | # CONFIG_VMSPLIT_2G is not set | ||
323 | # CONFIG_VMSPLIT_1G is not set | ||
324 | CONFIG_PAGE_OFFSET=0xC0000000 | ||
325 | # CONFIG_PREEMPT_NONE is not set | ||
326 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
327 | CONFIG_PREEMPT=y | ||
328 | CONFIG_HZ=100 | ||
329 | CONFIG_AEABI=y | ||
330 | CONFIG_OABI_COMPAT=y | ||
331 | # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set | ||
332 | # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set | ||
333 | # CONFIG_HIGHMEM is not set | ||
334 | CONFIG_SELECT_MEMORY_MODEL=y | ||
335 | CONFIG_FLATMEM_MANUAL=y | ||
336 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
337 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
338 | CONFIG_FLATMEM=y | ||
339 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
340 | CONFIG_PAGEFLAGS_EXTENDED=y | ||
341 | CONFIG_SPLIT_PTLOCK_CPUS=999999 | ||
342 | # CONFIG_PHYS_ADDR_T_64BIT is not set | ||
343 | CONFIG_ZONE_DMA_FLAG=0 | ||
344 | CONFIG_VIRT_TO_BUS=y | ||
345 | # CONFIG_KSM is not set | ||
346 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 | ||
347 | CONFIG_ALIGNMENT_TRAP=y | ||
348 | # CONFIG_UACCESS_WITH_MEMCPY is not set | ||
349 | |||
350 | # | ||
351 | # Boot options | ||
352 | # | ||
353 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
354 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
355 | CONFIG_CMDLINE="console=tty1 root=/dev/mmcblk0p2 rootfstype=ext2 rootdelay=3 ip=192.168.0.202:192.168.0.200:192.168.0.200:255.255.255.0 debug" | ||
356 | # CONFIG_XIP_KERNEL is not set | ||
357 | CONFIG_KEXEC=y | ||
358 | CONFIG_ATAGS_PROC=y | ||
359 | |||
360 | # | ||
361 | # CPU Power Management | ||
362 | # | ||
363 | CONFIG_CPU_FREQ=y | ||
364 | CONFIG_CPU_FREQ_TABLE=y | ||
365 | CONFIG_CPU_FREQ_DEBUG=y | ||
366 | CONFIG_CPU_FREQ_STAT=y | ||
367 | # CONFIG_CPU_FREQ_STAT_DETAILS is not set | ||
368 | CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y | ||
369 | # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set | ||
370 | # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set | ||
371 | # CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set | ||
372 | # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set | ||
373 | CONFIG_CPU_FREQ_GOV_PERFORMANCE=y | ||
374 | CONFIG_CPU_FREQ_GOV_POWERSAVE=m | ||
375 | CONFIG_CPU_FREQ_GOV_USERSPACE=m | ||
376 | CONFIG_CPU_FREQ_GOV_ONDEMAND=m | ||
377 | CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m | ||
378 | CONFIG_CPU_IDLE=y | ||
379 | CONFIG_CPU_IDLE_GOV_LADDER=y | ||
380 | CONFIG_CPU_IDLE_GOV_MENU=y | ||
381 | |||
382 | # | ||
383 | # Floating point emulation | ||
384 | # | ||
385 | |||
386 | # | ||
387 | # At least one emulation must be selected | ||
388 | # | ||
389 | CONFIG_FPE_NWFPE=y | ||
390 | # CONFIG_FPE_NWFPE_XP is not set | ||
391 | # CONFIG_FPE_FASTFPE is not set | ||
392 | |||
393 | # | ||
394 | # Userspace binary formats | ||
395 | # | ||
396 | CONFIG_BINFMT_ELF=y | ||
397 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set | ||
398 | CONFIG_HAVE_AOUT=y | ||
399 | CONFIG_BINFMT_AOUT=m | ||
400 | CONFIG_BINFMT_MISC=m | ||
401 | |||
402 | # | ||
403 | # Power management options | ||
404 | # | ||
405 | CONFIG_PM=y | ||
406 | # CONFIG_PM_DEBUG is not set | ||
407 | CONFIG_PM_SLEEP=y | ||
408 | CONFIG_SUSPEND=y | ||
409 | CONFIG_SUSPEND_FREEZER=y | ||
410 | CONFIG_APM_EMULATION=y | ||
411 | CONFIG_PM_RUNTIME=y | ||
412 | CONFIG_ARCH_SUSPEND_POSSIBLE=y | ||
413 | CONFIG_NET=y | ||
414 | |||
415 | # | ||
416 | # Networking options | ||
417 | # | ||
418 | CONFIG_PACKET=y | ||
419 | CONFIG_PACKET_MMAP=y | ||
420 | CONFIG_UNIX=y | ||
421 | CONFIG_XFRM=y | ||
422 | # CONFIG_XFRM_USER is not set | ||
423 | # CONFIG_XFRM_SUB_POLICY is not set | ||
424 | # CONFIG_XFRM_MIGRATE is not set | ||
425 | # CONFIG_XFRM_STATISTICS is not set | ||
426 | CONFIG_XFRM_IPCOMP=m | ||
427 | # CONFIG_NET_KEY is not set | ||
428 | CONFIG_INET=y | ||
429 | # CONFIG_IP_MULTICAST is not set | ||
430 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
431 | CONFIG_IP_FIB_HASH=y | ||
432 | CONFIG_IP_PNP=y | ||
433 | CONFIG_IP_PNP_DHCP=y | ||
434 | CONFIG_IP_PNP_BOOTP=y | ||
435 | CONFIG_IP_PNP_RARP=y | ||
436 | # CONFIG_NET_IPIP is not set | ||
437 | # CONFIG_NET_IPGRE is not set | ||
438 | # CONFIG_ARPD is not set | ||
439 | CONFIG_SYN_COOKIES=y | ||
440 | # CONFIG_INET_AH is not set | ||
441 | # CONFIG_INET_ESP is not set | ||
442 | # CONFIG_INET_IPCOMP is not set | ||
443 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
444 | CONFIG_INET_TUNNEL=m | ||
445 | # CONFIG_INET_XFRM_MODE_TRANSPORT is not set | ||
446 | # CONFIG_INET_XFRM_MODE_TUNNEL is not set | ||
447 | # CONFIG_INET_XFRM_MODE_BEET is not set | ||
448 | # CONFIG_INET_LRO is not set | ||
449 | # CONFIG_INET_DIAG is not set | ||
450 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
451 | CONFIG_TCP_CONG_CUBIC=y | ||
452 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
453 | # CONFIG_TCP_MD5SIG is not set | ||
454 | CONFIG_IPV6=m | ||
455 | # CONFIG_IPV6_PRIVACY is not set | ||
456 | # CONFIG_IPV6_ROUTER_PREF is not set | ||
457 | # CONFIG_IPV6_OPTIMISTIC_DAD is not set | ||
458 | CONFIG_INET6_AH=m | ||
459 | CONFIG_INET6_ESP=m | ||
460 | CONFIG_INET6_IPCOMP=m | ||
461 | CONFIG_IPV6_MIP6=m | ||
462 | CONFIG_INET6_XFRM_TUNNEL=m | ||
463 | CONFIG_INET6_TUNNEL=m | ||
464 | CONFIG_INET6_XFRM_MODE_TRANSPORT=m | ||
465 | CONFIG_INET6_XFRM_MODE_TUNNEL=m | ||
466 | CONFIG_INET6_XFRM_MODE_BEET=m | ||
467 | # CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set | ||
468 | CONFIG_IPV6_SIT=m | ||
469 | # CONFIG_IPV6_SIT_6RD is not set | ||
470 | CONFIG_IPV6_NDISC_NODETYPE=y | ||
471 | CONFIG_IPV6_TUNNEL=m | ||
472 | CONFIG_IPV6_MULTIPLE_TABLES=y | ||
473 | CONFIG_IPV6_SUBTREES=y | ||
474 | # CONFIG_IPV6_MROUTE is not set | ||
475 | # CONFIG_NETWORK_SECMARK is not set | ||
476 | CONFIG_NETFILTER=y | ||
477 | # CONFIG_NETFILTER_DEBUG is not set | ||
478 | CONFIG_NETFILTER_ADVANCED=y | ||
479 | CONFIG_BRIDGE_NETFILTER=y | ||
480 | |||
481 | # | ||
482 | # Core Netfilter Configuration | ||
483 | # | ||
484 | CONFIG_NETFILTER_NETLINK=m | ||
485 | CONFIG_NETFILTER_NETLINK_QUEUE=m | ||
486 | CONFIG_NETFILTER_NETLINK_LOG=m | ||
487 | CONFIG_NF_CONNTRACK=m | ||
488 | CONFIG_NF_CT_ACCT=y | ||
489 | CONFIG_NF_CONNTRACK_MARK=y | ||
490 | CONFIG_NF_CONNTRACK_EVENTS=y | ||
491 | # CONFIG_NF_CT_PROTO_DCCP is not set | ||
492 | CONFIG_NF_CT_PROTO_GRE=m | ||
493 | CONFIG_NF_CT_PROTO_SCTP=m | ||
494 | CONFIG_NF_CT_PROTO_UDPLITE=m | ||
495 | CONFIG_NF_CONNTRACK_AMANDA=m | ||
496 | CONFIG_NF_CONNTRACK_FTP=m | ||
497 | CONFIG_NF_CONNTRACK_H323=m | ||
498 | CONFIG_NF_CONNTRACK_IRC=m | ||
499 | CONFIG_NF_CONNTRACK_NETBIOS_NS=m | ||
500 | CONFIG_NF_CONNTRACK_PPTP=m | ||
501 | CONFIG_NF_CONNTRACK_SANE=m | ||
502 | CONFIG_NF_CONNTRACK_SIP=m | ||
503 | CONFIG_NF_CONNTRACK_TFTP=m | ||
504 | CONFIG_NF_CT_NETLINK=m | ||
505 | # CONFIG_NETFILTER_TPROXY is not set | ||
506 | CONFIG_NETFILTER_XTABLES=m | ||
507 | CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m | ||
508 | # CONFIG_NETFILTER_XT_TARGET_CONNMARK is not set | ||
509 | # CONFIG_NETFILTER_XT_TARGET_DSCP is not set | ||
510 | CONFIG_NETFILTER_XT_TARGET_HL=m | ||
511 | CONFIG_NETFILTER_XT_TARGET_LED=m | ||
512 | CONFIG_NETFILTER_XT_TARGET_MARK=m | ||
513 | CONFIG_NETFILTER_XT_TARGET_NFLOG=m | ||
514 | CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m | ||
515 | # CONFIG_NETFILTER_XT_TARGET_NOTRACK is not set | ||
516 | # CONFIG_NETFILTER_XT_TARGET_RATEEST is not set | ||
517 | # CONFIG_NETFILTER_XT_TARGET_TRACE is not set | ||
518 | CONFIG_NETFILTER_XT_TARGET_TCPMSS=m | ||
519 | # CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP is not set | ||
520 | # CONFIG_NETFILTER_XT_MATCH_CLUSTER is not set | ||
521 | CONFIG_NETFILTER_XT_MATCH_COMMENT=m | ||
522 | CONFIG_NETFILTER_XT_MATCH_CONNBYTES=m | ||
523 | CONFIG_NETFILTER_XT_MATCH_CONNLIMIT=m | ||
524 | CONFIG_NETFILTER_XT_MATCH_CONNMARK=m | ||
525 | CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m | ||
526 | CONFIG_NETFILTER_XT_MATCH_DCCP=m | ||
527 | CONFIG_NETFILTER_XT_MATCH_DSCP=m | ||
528 | CONFIG_NETFILTER_XT_MATCH_ESP=m | ||
529 | CONFIG_NETFILTER_XT_MATCH_HASHLIMIT=m | ||
530 | CONFIG_NETFILTER_XT_MATCH_HELPER=m | ||
531 | CONFIG_NETFILTER_XT_MATCH_HL=m | ||
532 | # CONFIG_NETFILTER_XT_MATCH_IPRANGE is not set | ||
533 | CONFIG_NETFILTER_XT_MATCH_LENGTH=m | ||
534 | CONFIG_NETFILTER_XT_MATCH_LIMIT=m | ||
535 | CONFIG_NETFILTER_XT_MATCH_MAC=m | ||
536 | CONFIG_NETFILTER_XT_MATCH_MARK=m | ||
537 | CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m | ||
538 | # CONFIG_NETFILTER_XT_MATCH_OWNER is not set | ||
539 | CONFIG_NETFILTER_XT_MATCH_POLICY=m | ||
540 | # CONFIG_NETFILTER_XT_MATCH_PHYSDEV is not set | ||
541 | CONFIG_NETFILTER_XT_MATCH_PKTTYPE=m | ||
542 | CONFIG_NETFILTER_XT_MATCH_QUOTA=m | ||
543 | # CONFIG_NETFILTER_XT_MATCH_RATEEST is not set | ||
544 | CONFIG_NETFILTER_XT_MATCH_REALM=m | ||
545 | # CONFIG_NETFILTER_XT_MATCH_RECENT is not set | ||
546 | CONFIG_NETFILTER_XT_MATCH_SCTP=m | ||
547 | CONFIG_NETFILTER_XT_MATCH_STATE=m | ||
548 | CONFIG_NETFILTER_XT_MATCH_STATISTIC=m | ||
549 | CONFIG_NETFILTER_XT_MATCH_STRING=m | ||
550 | CONFIG_NETFILTER_XT_MATCH_TCPMSS=m | ||
551 | CONFIG_NETFILTER_XT_MATCH_TIME=m | ||
552 | CONFIG_NETFILTER_XT_MATCH_U32=m | ||
553 | # CONFIG_NETFILTER_XT_MATCH_OSF is not set | ||
554 | # CONFIG_IP_VS is not set | ||
555 | |||
556 | # | ||
557 | # IP: Netfilter Configuration | ||
558 | # | ||
559 | CONFIG_NF_DEFRAG_IPV4=m | ||
560 | CONFIG_NF_CONNTRACK_IPV4=m | ||
561 | CONFIG_NF_CONNTRACK_PROC_COMPAT=y | ||
562 | CONFIG_IP_NF_QUEUE=m | ||
563 | CONFIG_IP_NF_IPTABLES=m | ||
564 | CONFIG_IP_NF_MATCH_ADDRTYPE=m | ||
565 | CONFIG_IP_NF_MATCH_AH=m | ||
566 | CONFIG_IP_NF_MATCH_ECN=m | ||
567 | CONFIG_IP_NF_MATCH_TTL=m | ||
568 | CONFIG_IP_NF_FILTER=m | ||
569 | CONFIG_IP_NF_TARGET_REJECT=m | ||
570 | CONFIG_IP_NF_TARGET_LOG=m | ||
571 | CONFIG_IP_NF_TARGET_ULOG=m | ||
572 | CONFIG_NF_NAT=m | ||
573 | CONFIG_NF_NAT_NEEDED=y | ||
574 | CONFIG_IP_NF_TARGET_MASQUERADE=m | ||
575 | CONFIG_IP_NF_TARGET_NETMAP=m | ||
576 | CONFIG_IP_NF_TARGET_REDIRECT=m | ||
577 | CONFIG_NF_NAT_SNMP_BASIC=m | ||
578 | CONFIG_NF_NAT_PROTO_GRE=m | ||
579 | CONFIG_NF_NAT_PROTO_UDPLITE=m | ||
580 | CONFIG_NF_NAT_PROTO_SCTP=m | ||
581 | CONFIG_NF_NAT_FTP=m | ||
582 | CONFIG_NF_NAT_IRC=m | ||
583 | CONFIG_NF_NAT_TFTP=m | ||
584 | CONFIG_NF_NAT_AMANDA=m | ||
585 | CONFIG_NF_NAT_PPTP=m | ||
586 | CONFIG_NF_NAT_H323=m | ||
587 | CONFIG_NF_NAT_SIP=m | ||
588 | CONFIG_IP_NF_MANGLE=m | ||
589 | CONFIG_IP_NF_TARGET_CLUSTERIP=m | ||
590 | CONFIG_IP_NF_TARGET_ECN=m | ||
591 | CONFIG_IP_NF_TARGET_TTL=m | ||
592 | CONFIG_IP_NF_RAW=m | ||
593 | CONFIG_IP_NF_ARPTABLES=m | ||
594 | CONFIG_IP_NF_ARPFILTER=m | ||
595 | CONFIG_IP_NF_ARP_MANGLE=m | ||
596 | |||
597 | # | ||
598 | # IPv6: Netfilter Configuration | ||
599 | # | ||
600 | CONFIG_NF_CONNTRACK_IPV6=m | ||
601 | CONFIG_IP6_NF_QUEUE=m | ||
602 | CONFIG_IP6_NF_IPTABLES=m | ||
603 | CONFIG_IP6_NF_MATCH_AH=m | ||
604 | CONFIG_IP6_NF_MATCH_EUI64=m | ||
605 | CONFIG_IP6_NF_MATCH_FRAG=m | ||
606 | CONFIG_IP6_NF_MATCH_OPTS=m | ||
607 | CONFIG_IP6_NF_MATCH_HL=m | ||
608 | CONFIG_IP6_NF_MATCH_IPV6HEADER=m | ||
609 | CONFIG_IP6_NF_MATCH_MH=m | ||
610 | CONFIG_IP6_NF_MATCH_RT=m | ||
611 | CONFIG_IP6_NF_TARGET_HL=m | ||
612 | CONFIG_IP6_NF_TARGET_LOG=m | ||
613 | CONFIG_IP6_NF_FILTER=m | ||
614 | CONFIG_IP6_NF_TARGET_REJECT=m | ||
615 | CONFIG_IP6_NF_MANGLE=m | ||
616 | CONFIG_IP6_NF_RAW=m | ||
617 | # CONFIG_BRIDGE_NF_EBTABLES is not set | ||
618 | # CONFIG_IP_DCCP is not set | ||
619 | # CONFIG_IP_SCTP is not set | ||
620 | # CONFIG_RDS is not set | ||
621 | # CONFIG_TIPC is not set | ||
622 | # CONFIG_ATM is not set | ||
623 | CONFIG_STP=m | ||
624 | CONFIG_BRIDGE=m | ||
625 | # CONFIG_NET_DSA is not set | ||
626 | # CONFIG_VLAN_8021Q is not set | ||
627 | # CONFIG_DECNET is not set | ||
628 | CONFIG_LLC=m | ||
629 | # CONFIG_LLC2 is not set | ||
630 | # CONFIG_IPX is not set | ||
631 | # CONFIG_ATALK is not set | ||
632 | # CONFIG_X25 is not set | ||
633 | # CONFIG_LAPB is not set | ||
634 | # CONFIG_ECONET is not set | ||
635 | # CONFIG_WAN_ROUTER is not set | ||
636 | # CONFIG_PHONET is not set | ||
637 | CONFIG_IEEE802154=y | ||
638 | # CONFIG_NET_SCHED is not set | ||
639 | CONFIG_NET_CLS_ROUTE=y | ||
640 | # CONFIG_DCB is not set | ||
641 | |||
642 | # | ||
643 | # Network testing | ||
644 | # | ||
645 | # CONFIG_NET_PKTGEN is not set | ||
646 | # CONFIG_HAMRADIO is not set | ||
647 | # CONFIG_CAN is not set | ||
648 | # CONFIG_IRDA is not set | ||
649 | CONFIG_BT=y | ||
650 | CONFIG_BT_L2CAP=y | ||
651 | CONFIG_BT_SCO=y | ||
652 | CONFIG_BT_RFCOMM=y | ||
653 | CONFIG_BT_RFCOMM_TTY=y | ||
654 | CONFIG_BT_BNEP=y | ||
655 | CONFIG_BT_BNEP_MC_FILTER=y | ||
656 | CONFIG_BT_BNEP_PROTO_FILTER=y | ||
657 | CONFIG_BT_HIDP=y | ||
658 | |||
659 | # | ||
660 | # Bluetooth device drivers | ||
661 | # | ||
662 | CONFIG_BT_HCIBTUSB=m | ||
663 | CONFIG_BT_HCIBTSDIO=m | ||
664 | CONFIG_BT_HCIUART=y | ||
665 | CONFIG_BT_HCIUART_H4=y | ||
666 | # CONFIG_BT_HCIUART_BCSP is not set | ||
667 | # CONFIG_BT_HCIUART_LL is not set | ||
668 | CONFIG_BT_HCIBCM203X=m | ||
669 | CONFIG_BT_HCIBPA10X=m | ||
670 | CONFIG_BT_HCIBFUSB=m | ||
671 | CONFIG_BT_HCIVHCI=m | ||
672 | CONFIG_BT_MRVL=m | ||
673 | CONFIG_BT_MRVL_SDIO=m | ||
674 | # CONFIG_BT_ATH3K is not set | ||
675 | # CONFIG_AF_RXRPC is not set | ||
676 | CONFIG_FIB_RULES=y | ||
677 | # CONFIG_WIRELESS is not set | ||
678 | # CONFIG_WIMAX is not set | ||
679 | # CONFIG_RFKILL is not set | ||
680 | # CONFIG_NET_9P is not set | ||
681 | |||
682 | # | ||
683 | # Device Drivers | ||
684 | # | ||
685 | |||
686 | # | ||
687 | # Generic Driver Options | ||
688 | # | ||
689 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
690 | # CONFIG_DEVTMPFS is not set | ||
691 | CONFIG_STANDALONE=y | ||
692 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
693 | CONFIG_FW_LOADER=m | ||
694 | CONFIG_FIRMWARE_IN_KERNEL=y | ||
695 | CONFIG_EXTRA_FIRMWARE="" | ||
696 | # CONFIG_DEBUG_DRIVER is not set | ||
697 | # CONFIG_DEBUG_DEVRES is not set | ||
698 | # CONFIG_SYS_HYPERVISOR is not set | ||
699 | CONFIG_CONNECTOR=m | ||
700 | CONFIG_MTD=y | ||
701 | # CONFIG_MTD_DEBUG is not set | ||
702 | # CONFIG_MTD_TESTS is not set | ||
703 | # CONFIG_MTD_CONCAT is not set | ||
704 | CONFIG_MTD_PARTITIONS=y | ||
705 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
706 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
707 | # CONFIG_MTD_AFS_PARTS is not set | ||
708 | # CONFIG_MTD_AR7_PARTS is not set | ||
709 | |||
710 | # | ||
711 | # User Modules And Translation Layers | ||
712 | # | ||
713 | CONFIG_MTD_CHAR=y | ||
714 | CONFIG_HAVE_MTD_OTP=y | ||
715 | CONFIG_MTD_BLKDEVS=y | ||
716 | CONFIG_MTD_BLOCK=y | ||
717 | # CONFIG_FTL is not set | ||
718 | # CONFIG_NFTL is not set | ||
719 | # CONFIG_INFTL is not set | ||
720 | # CONFIG_RFD_FTL is not set | ||
721 | # CONFIG_SSFDC is not set | ||
722 | # CONFIG_MTD_OOPS is not set | ||
723 | |||
724 | # | ||
725 | # RAM/ROM/Flash chip drivers | ||
726 | # | ||
727 | CONFIG_MTD_CFI=y | ||
728 | # CONFIG_MTD_JEDECPROBE is not set | ||
729 | CONFIG_MTD_GEN_PROBE=y | ||
730 | CONFIG_MTD_CFI_ADV_OPTIONS=y | ||
731 | CONFIG_MTD_CFI_NOSWAP=y | ||
732 | # CONFIG_MTD_CFI_BE_BYTE_SWAP is not set | ||
733 | # CONFIG_MTD_CFI_LE_BYTE_SWAP is not set | ||
734 | CONFIG_MTD_CFI_GEOMETRY=y | ||
735 | # CONFIG_MTD_MAP_BANK_WIDTH_1 is not set | ||
736 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
737 | # CONFIG_MTD_MAP_BANK_WIDTH_4 is not set | ||
738 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
739 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
740 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
741 | CONFIG_MTD_CFI_I1=y | ||
742 | # CONFIG_MTD_CFI_I2 is not set | ||
743 | # CONFIG_MTD_CFI_I4 is not set | ||
744 | # CONFIG_MTD_CFI_I8 is not set | ||
745 | CONFIG_MTD_OTP=y | ||
746 | CONFIG_MTD_CFI_INTELEXT=y | ||
747 | # CONFIG_MTD_CFI_AMDSTD is not set | ||
748 | # CONFIG_MTD_CFI_STAA is not set | ||
749 | CONFIG_MTD_CFI_UTIL=y | ||
750 | # CONFIG_MTD_RAM is not set | ||
751 | # CONFIG_MTD_ROM is not set | ||
752 | # CONFIG_MTD_ABSENT is not set | ||
753 | # CONFIG_MTD_XIP is not set | ||
754 | |||
755 | # | ||
756 | # Mapping drivers for chip access | ||
757 | # | ||
758 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
759 | # CONFIG_MTD_PHYSMAP is not set | ||
760 | CONFIG_MTD_PXA2XX=y | ||
761 | # CONFIG_MTD_ARM_INTEGRATOR is not set | ||
762 | # CONFIG_MTD_PLATRAM is not set | ||
763 | |||
764 | # | ||
765 | # Self-contained MTD device drivers | ||
766 | # | ||
767 | # CONFIG_MTD_DATAFLASH is not set | ||
768 | # CONFIG_MTD_M25P80 is not set | ||
769 | # CONFIG_MTD_SST25L is not set | ||
770 | # CONFIG_MTD_SLRAM is not set | ||
771 | # CONFIG_MTD_PHRAM is not set | ||
772 | # CONFIG_MTD_MTDRAM is not set | ||
773 | # CONFIG_MTD_BLOCK2MTD is not set | ||
774 | |||
775 | # | ||
776 | # Disk-On-Chip Device Drivers | ||
777 | # | ||
778 | # CONFIG_MTD_DOC2000 is not set | ||
779 | # CONFIG_MTD_DOC2001 is not set | ||
780 | # CONFIG_MTD_DOC2001PLUS is not set | ||
781 | # CONFIG_MTD_NAND is not set | ||
782 | # CONFIG_MTD_ONENAND is not set | ||
783 | |||
784 | # | ||
785 | # LPDDR flash memory drivers | ||
786 | # | ||
787 | # CONFIG_MTD_LPDDR is not set | ||
788 | |||
789 | # | ||
790 | # UBI - Unsorted block images | ||
791 | # | ||
792 | # CONFIG_MTD_UBI is not set | ||
793 | # CONFIG_PARPORT is not set | ||
794 | CONFIG_BLK_DEV=y | ||
795 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
796 | CONFIG_BLK_DEV_LOOP=m | ||
797 | CONFIG_BLK_DEV_CRYPTOLOOP=m | ||
798 | # CONFIG_BLK_DEV_DRBD is not set | ||
799 | CONFIG_BLK_DEV_NBD=m | ||
800 | # CONFIG_BLK_DEV_UB is not set | ||
801 | CONFIG_BLK_DEV_RAM=y | ||
802 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
803 | CONFIG_BLK_DEV_RAM_SIZE=4096 | ||
804 | # CONFIG_BLK_DEV_XIP is not set | ||
805 | # CONFIG_CDROM_PKTCDVD is not set | ||
806 | # CONFIG_ATA_OVER_ETH is not set | ||
807 | # CONFIG_MG_DISK is not set | ||
808 | # CONFIG_MISC_DEVICES is not set | ||
809 | CONFIG_HAVE_IDE=y | ||
810 | # CONFIG_IDE is not set | ||
811 | |||
812 | # | ||
813 | # SCSI device support | ||
814 | # | ||
815 | # CONFIG_RAID_ATTRS is not set | ||
816 | # CONFIG_SCSI is not set | ||
817 | # CONFIG_SCSI_DMA is not set | ||
818 | # CONFIG_SCSI_NETLINK is not set | ||
819 | # CONFIG_ATA is not set | ||
820 | # CONFIG_MD is not set | ||
821 | CONFIG_NETDEVICES=y | ||
822 | CONFIG_DUMMY=y | ||
823 | # CONFIG_BONDING is not set | ||
824 | # CONFIG_MACVLAN is not set | ||
825 | # CONFIG_EQUALIZER is not set | ||
826 | # CONFIG_TUN is not set | ||
827 | # CONFIG_VETH is not set | ||
828 | # CONFIG_NET_ETHERNET is not set | ||
829 | # CONFIG_NETDEV_1000 is not set | ||
830 | # CONFIG_NETDEV_10000 is not set | ||
831 | # CONFIG_WLAN is not set | ||
832 | |||
833 | # | ||
834 | # Enable WiMAX (Networking options) to see the WiMAX drivers | ||
835 | # | ||
836 | |||
837 | # | ||
838 | # USB Network Adapters | ||
839 | # | ||
840 | # CONFIG_USB_CATC is not set | ||
841 | # CONFIG_USB_KAWETH is not set | ||
842 | # CONFIG_USB_PEGASUS is not set | ||
843 | # CONFIG_USB_RTL8150 is not set | ||
844 | # CONFIG_USB_USBNET is not set | ||
845 | # CONFIG_WAN is not set | ||
846 | CONFIG_IEEE802154_DRIVERS=y | ||
847 | # CONFIG_IEEE802154_FAKEHARD is not set | ||
848 | CONFIG_PPP=m | ||
849 | CONFIG_PPP_MULTILINK=y | ||
850 | CONFIG_PPP_FILTER=y | ||
851 | CONFIG_PPP_ASYNC=m | ||
852 | CONFIG_PPP_SYNC_TTY=m | ||
853 | CONFIG_PPP_DEFLATE=m | ||
854 | CONFIG_PPP_BSDCOMP=m | ||
855 | # CONFIG_PPP_MPPE is not set | ||
856 | # CONFIG_PPPOE is not set | ||
857 | # CONFIG_PPPOL2TP is not set | ||
858 | # CONFIG_SLIP is not set | ||
859 | CONFIG_SLHC=m | ||
860 | # CONFIG_NETCONSOLE is not set | ||
861 | # CONFIG_NETPOLL is not set | ||
862 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
863 | # CONFIG_ISDN is not set | ||
864 | # CONFIG_PHONE is not set | ||
865 | |||
866 | # | ||
867 | # Input device support | ||
868 | # | ||
869 | CONFIG_INPUT=y | ||
870 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
871 | # CONFIG_INPUT_POLLDEV is not set | ||
872 | # CONFIG_INPUT_SPARSEKMAP is not set | ||
873 | |||
874 | # | ||
875 | # Userland interfaces | ||
876 | # | ||
877 | # CONFIG_INPUT_MOUSEDEV is not set | ||
878 | # CONFIG_INPUT_JOYDEV is not set | ||
879 | CONFIG_INPUT_EVDEV=y | ||
880 | # CONFIG_INPUT_EVBUG is not set | ||
881 | # CONFIG_INPUT_APMPOWER is not set | ||
882 | |||
883 | # | ||
884 | # Input Device Drivers | ||
885 | # | ||
886 | CONFIG_INPUT_KEYBOARD=y | ||
887 | # CONFIG_KEYBOARD_ADP5588 is not set | ||
888 | # CONFIG_KEYBOARD_ATKBD is not set | ||
889 | # CONFIG_QT2160 is not set | ||
890 | # CONFIG_KEYBOARD_LKKBD is not set | ||
891 | CONFIG_KEYBOARD_GPIO=y | ||
892 | # CONFIG_KEYBOARD_MATRIX is not set | ||
893 | # CONFIG_KEYBOARD_LM8323 is not set | ||
894 | # CONFIG_KEYBOARD_MAX7359 is not set | ||
895 | # CONFIG_KEYBOARD_NEWTON is not set | ||
896 | # CONFIG_KEYBOARD_OPENCORES is not set | ||
897 | CONFIG_KEYBOARD_PXA27x=y | ||
898 | # CONFIG_KEYBOARD_STOWAWAY is not set | ||
899 | # CONFIG_KEYBOARD_SUNKBD is not set | ||
900 | # CONFIG_KEYBOARD_XTKBD is not set | ||
901 | # CONFIG_INPUT_MOUSE is not set | ||
902 | # CONFIG_INPUT_JOYSTICK is not set | ||
903 | # CONFIG_INPUT_TABLET is not set | ||
904 | CONFIG_INPUT_TOUCHSCREEN=y | ||
905 | # CONFIG_TOUCHSCREEN_ADS7846 is not set | ||
906 | # CONFIG_TOUCHSCREEN_AD7877 is not set | ||
907 | # CONFIG_TOUCHSCREEN_AD7879_I2C is not set | ||
908 | # CONFIG_TOUCHSCREEN_AD7879_SPI is not set | ||
909 | # CONFIG_TOUCHSCREEN_AD7879 is not set | ||
910 | CONFIG_TOUCHSCREEN_DA9034=y | ||
911 | # CONFIG_TOUCHSCREEN_DYNAPRO is not set | ||
912 | # CONFIG_TOUCHSCREEN_EETI is not set | ||
913 | # CONFIG_TOUCHSCREEN_FUJITSU is not set | ||
914 | # CONFIG_TOUCHSCREEN_GUNZE is not set | ||
915 | # CONFIG_TOUCHSCREEN_ELO is not set | ||
916 | # CONFIG_TOUCHSCREEN_WACOM_W8001 is not set | ||
917 | # CONFIG_TOUCHSCREEN_MCS5000 is not set | ||
918 | # CONFIG_TOUCHSCREEN_MTOUCH is not set | ||
919 | # CONFIG_TOUCHSCREEN_INEXIO is not set | ||
920 | # CONFIG_TOUCHSCREEN_MK712 is not set | ||
921 | # CONFIG_TOUCHSCREEN_PENMOUNT is not set | ||
922 | # CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set | ||
923 | # CONFIG_TOUCHSCREEN_TOUCHWIN is not set | ||
924 | # CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set | ||
925 | # CONFIG_TOUCHSCREEN_TOUCHIT213 is not set | ||
926 | # CONFIG_TOUCHSCREEN_TSC2007 is not set | ||
927 | # CONFIG_TOUCHSCREEN_W90X900 is not set | ||
928 | CONFIG_INPUT_MISC=y | ||
929 | # CONFIG_INPUT_ATI_REMOTE is not set | ||
930 | # CONFIG_INPUT_ATI_REMOTE2 is not set | ||
931 | # CONFIG_INPUT_KEYSPAN_REMOTE is not set | ||
932 | # CONFIG_INPUT_POWERMATE is not set | ||
933 | # CONFIG_INPUT_YEALINK is not set | ||
934 | # CONFIG_INPUT_CM109 is not set | ||
935 | CONFIG_INPUT_UINPUT=y | ||
936 | # CONFIG_INPUT_GPIO_ROTARY_ENCODER is not set | ||
937 | |||
938 | # | ||
939 | # Hardware I/O ports | ||
940 | # | ||
941 | # CONFIG_SERIO is not set | ||
942 | # CONFIG_GAMEPORT is not set | ||
943 | |||
944 | # | ||
945 | # Character devices | ||
946 | # | ||
947 | CONFIG_VT=y | ||
948 | CONFIG_CONSOLE_TRANSLATIONS=y | ||
949 | CONFIG_VT_CONSOLE=y | ||
950 | CONFIG_HW_CONSOLE=y | ||
951 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
952 | CONFIG_DEVKMEM=y | ||
953 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
954 | |||
955 | # | ||
956 | # Serial drivers | ||
957 | # | ||
958 | # CONFIG_SERIAL_8250 is not set | ||
959 | |||
960 | # | ||
961 | # Non-8250 serial port support | ||
962 | # | ||
963 | # CONFIG_SERIAL_MAX3100 is not set | ||
964 | CONFIG_SERIAL_PXA=y | ||
965 | CONFIG_SERIAL_PXA_CONSOLE=y | ||
966 | CONFIG_SERIAL_CORE=y | ||
967 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
968 | CONFIG_UNIX98_PTYS=y | ||
969 | # CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set | ||
970 | CONFIG_LEGACY_PTYS=y | ||
971 | CONFIG_LEGACY_PTY_COUNT=8 | ||
972 | # CONFIG_IPMI_HANDLER is not set | ||
973 | # CONFIG_HW_RANDOM is not set | ||
974 | # CONFIG_R3964 is not set | ||
975 | # CONFIG_RAW_DRIVER is not set | ||
976 | # CONFIG_TCG_TPM is not set | ||
977 | CONFIG_I2C=y | ||
978 | CONFIG_I2C_BOARDINFO=y | ||
979 | CONFIG_I2C_COMPAT=y | ||
980 | CONFIG_I2C_CHARDEV=y | ||
981 | CONFIG_I2C_HELPER_AUTO=y | ||
982 | |||
983 | # | ||
984 | # I2C Hardware Bus support | ||
985 | # | ||
986 | |||
987 | # | ||
988 | # I2C system bus drivers (mostly embedded / system-on-chip) | ||
989 | # | ||
990 | # CONFIG_I2C_DESIGNWARE is not set | ||
991 | # CONFIG_I2C_GPIO is not set | ||
992 | # CONFIG_I2C_OCORES is not set | ||
993 | CONFIG_I2C_PXA=y | ||
994 | # CONFIG_I2C_PXA_SLAVE is not set | ||
995 | # CONFIG_I2C_SIMTEC is not set | ||
996 | |||
997 | # | ||
998 | # External I2C/SMBus adapter drivers | ||
999 | # | ||
1000 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
1001 | # CONFIG_I2C_TAOS_EVM is not set | ||
1002 | # CONFIG_I2C_TINY_USB is not set | ||
1003 | |||
1004 | # | ||
1005 | # Other I2C/SMBus bus drivers | ||
1006 | # | ||
1007 | # CONFIG_I2C_PCA_PLATFORM is not set | ||
1008 | # CONFIG_I2C_STUB is not set | ||
1009 | |||
1010 | # | ||
1011 | # Miscellaneous I2C Chip support | ||
1012 | # | ||
1013 | # CONFIG_SENSORS_TSL2550 is not set | ||
1014 | # CONFIG_I2C_DEBUG_CORE is not set | ||
1015 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
1016 | # CONFIG_I2C_DEBUG_BUS is not set | ||
1017 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
1018 | CONFIG_SPI=y | ||
1019 | # CONFIG_SPI_DEBUG is not set | ||
1020 | CONFIG_SPI_MASTER=y | ||
1021 | |||
1022 | # | ||
1023 | # SPI Master Controller Drivers | ||
1024 | # | ||
1025 | # CONFIG_SPI_BITBANG is not set | ||
1026 | # CONFIG_SPI_GPIO is not set | ||
1027 | CONFIG_SPI_PXA2XX=y | ||
1028 | # CONFIG_SPI_XILINX is not set | ||
1029 | # CONFIG_SPI_DESIGNWARE is not set | ||
1030 | |||
1031 | # | ||
1032 | # SPI Protocol Masters | ||
1033 | # | ||
1034 | # CONFIG_SPI_SPIDEV is not set | ||
1035 | # CONFIG_SPI_TLE62X0 is not set | ||
1036 | |||
1037 | # | ||
1038 | # PPS support | ||
1039 | # | ||
1040 | # CONFIG_PPS is not set | ||
1041 | CONFIG_ARCH_REQUIRE_GPIOLIB=y | ||
1042 | CONFIG_GPIOLIB=y | ||
1043 | # CONFIG_DEBUG_GPIO is not set | ||
1044 | CONFIG_GPIO_SYSFS=y | ||
1045 | |||
1046 | # | ||
1047 | # Memory mapped GPIO expanders: | ||
1048 | # | ||
1049 | |||
1050 | # | ||
1051 | # I2C GPIO expanders: | ||
1052 | # | ||
1053 | # CONFIG_GPIO_MAX732X is not set | ||
1054 | # CONFIG_GPIO_PCA953X is not set | ||
1055 | # CONFIG_GPIO_PCF857X is not set | ||
1056 | # CONFIG_GPIO_ADP5588 is not set | ||
1057 | |||
1058 | # | ||
1059 | # PCI GPIO expanders: | ||
1060 | # | ||
1061 | |||
1062 | # | ||
1063 | # SPI GPIO expanders: | ||
1064 | # | ||
1065 | # CONFIG_GPIO_MAX7301 is not set | ||
1066 | # CONFIG_GPIO_MCP23S08 is not set | ||
1067 | # CONFIG_GPIO_MC33880 is not set | ||
1068 | |||
1069 | # | ||
1070 | # AC97 GPIO expanders: | ||
1071 | # | ||
1072 | # CONFIG_W1 is not set | ||
1073 | CONFIG_POWER_SUPPLY=y | ||
1074 | # CONFIG_POWER_SUPPLY_DEBUG is not set | ||
1075 | # CONFIG_PDA_POWER is not set | ||
1076 | # CONFIG_APM_POWER is not set | ||
1077 | # CONFIG_BATTERY_DS2760 is not set | ||
1078 | # CONFIG_BATTERY_DS2782 is not set | ||
1079 | # CONFIG_BATTERY_BQ27x00 is not set | ||
1080 | # CONFIG_BATTERY_DA9030 is not set | ||
1081 | # CONFIG_BATTERY_MAX17040 is not set | ||
1082 | # CONFIG_HWMON is not set | ||
1083 | # CONFIG_THERMAL is not set | ||
1084 | # CONFIG_WATCHDOG is not set | ||
1085 | CONFIG_SSB_POSSIBLE=y | ||
1086 | |||
1087 | # | ||
1088 | # Sonics Silicon Backplane | ||
1089 | # | ||
1090 | # CONFIG_SSB is not set | ||
1091 | |||
1092 | # | ||
1093 | # Multifunction device drivers | ||
1094 | # | ||
1095 | # CONFIG_MFD_CORE is not set | ||
1096 | # CONFIG_MFD_SM501 is not set | ||
1097 | # CONFIG_MFD_ASIC3 is not set | ||
1098 | # CONFIG_HTC_EGPIO is not set | ||
1099 | # CONFIG_HTC_PASIC3 is not set | ||
1100 | # CONFIG_TPS65010 is not set | ||
1101 | # CONFIG_TWL4030_CORE is not set | ||
1102 | # CONFIG_MFD_TMIO is not set | ||
1103 | # CONFIG_MFD_T7L66XB is not set | ||
1104 | # CONFIG_MFD_TC6387XB is not set | ||
1105 | # CONFIG_MFD_TC6393XB is not set | ||
1106 | CONFIG_PMIC_DA903X=y | ||
1107 | # CONFIG_PMIC_ADP5520 is not set | ||
1108 | # CONFIG_MFD_WM8400 is not set | ||
1109 | # CONFIG_MFD_WM831X is not set | ||
1110 | # CONFIG_MFD_WM8350_I2C is not set | ||
1111 | # CONFIG_MFD_PCF50633 is not set | ||
1112 | # CONFIG_MFD_MC13783 is not set | ||
1113 | # CONFIG_AB3100_CORE is not set | ||
1114 | # CONFIG_EZX_PCAP is not set | ||
1115 | # CONFIG_MFD_88PM8607 is not set | ||
1116 | # CONFIG_AB4500_CORE is not set | ||
1117 | CONFIG_REGULATOR=y | ||
1118 | CONFIG_REGULATOR_DEBUG=y | ||
1119 | # CONFIG_REGULATOR_FIXED_VOLTAGE is not set | ||
1120 | CONFIG_REGULATOR_VIRTUAL_CONSUMER=y | ||
1121 | CONFIG_REGULATOR_USERSPACE_CONSUMER=y | ||
1122 | # CONFIG_REGULATOR_BQ24022 is not set | ||
1123 | # CONFIG_REGULATOR_MAX1586 is not set | ||
1124 | # CONFIG_REGULATOR_MAX8660 is not set | ||
1125 | CONFIG_REGULATOR_DA903X=y | ||
1126 | # CONFIG_REGULATOR_LP3971 is not set | ||
1127 | # CONFIG_REGULATOR_TPS65023 is not set | ||
1128 | # CONFIG_REGULATOR_TPS6507X is not set | ||
1129 | CONFIG_MEDIA_SUPPORT=y | ||
1130 | |||
1131 | # | ||
1132 | # Multimedia core support | ||
1133 | # | ||
1134 | CONFIG_VIDEO_DEV=y | ||
1135 | CONFIG_VIDEO_V4L2_COMMON=y | ||
1136 | CONFIG_VIDEO_ALLOW_V4L1=y | ||
1137 | CONFIG_VIDEO_V4L1_COMPAT=y | ||
1138 | # CONFIG_DVB_CORE is not set | ||
1139 | CONFIG_VIDEO_MEDIA=y | ||
1140 | |||
1141 | # | ||
1142 | # Multimedia drivers | ||
1143 | # | ||
1144 | CONFIG_IR_CORE=y | ||
1145 | CONFIG_VIDEO_IR=y | ||
1146 | # CONFIG_MEDIA_ATTACH is not set | ||
1147 | CONFIG_MEDIA_TUNER=y | ||
1148 | CONFIG_MEDIA_TUNER_CUSTOMISE=y | ||
1149 | # CONFIG_MEDIA_TUNER_SIMPLE is not set | ||
1150 | # CONFIG_MEDIA_TUNER_TDA8290 is not set | ||
1151 | # CONFIG_MEDIA_TUNER_TDA827X is not set | ||
1152 | # CONFIG_MEDIA_TUNER_TDA18271 is not set | ||
1153 | # CONFIG_MEDIA_TUNER_TDA9887 is not set | ||
1154 | # CONFIG_MEDIA_TUNER_TEA5761 is not set | ||
1155 | # CONFIG_MEDIA_TUNER_TEA5767 is not set | ||
1156 | # CONFIG_MEDIA_TUNER_MT20XX is not set | ||
1157 | # CONFIG_MEDIA_TUNER_MT2060 is not set | ||
1158 | # CONFIG_MEDIA_TUNER_MT2266 is not set | ||
1159 | # CONFIG_MEDIA_TUNER_MT2131 is not set | ||
1160 | # CONFIG_MEDIA_TUNER_QT1010 is not set | ||
1161 | # CONFIG_MEDIA_TUNER_XC2028 is not set | ||
1162 | # CONFIG_MEDIA_TUNER_XC5000 is not set | ||
1163 | # CONFIG_MEDIA_TUNER_MXL5005S is not set | ||
1164 | # CONFIG_MEDIA_TUNER_MXL5007T is not set | ||
1165 | # CONFIG_MEDIA_TUNER_MC44S803 is not set | ||
1166 | CONFIG_MEDIA_TUNER_MAX2165=m | ||
1167 | CONFIG_VIDEO_V4L2=y | ||
1168 | CONFIG_VIDEO_V4L1=y | ||
1169 | CONFIG_VIDEOBUF_GEN=y | ||
1170 | CONFIG_VIDEOBUF_DMA_SG=y | ||
1171 | CONFIG_VIDEO_CAPTURE_DRIVERS=y | ||
1172 | # CONFIG_VIDEO_ADV_DEBUG is not set | ||
1173 | # CONFIG_VIDEO_FIXED_MINOR_RANGES is not set | ||
1174 | # CONFIG_VIDEO_HELPER_CHIPS_AUTO is not set | ||
1175 | CONFIG_VIDEO_IR_I2C=y | ||
1176 | |||
1177 | # | ||
1178 | # Encoders/decoders and other helper chips | ||
1179 | # | ||
1180 | |||
1181 | # | ||
1182 | # Audio decoders | ||
1183 | # | ||
1184 | # CONFIG_VIDEO_TVAUDIO is not set | ||
1185 | # CONFIG_VIDEO_TDA7432 is not set | ||
1186 | # CONFIG_VIDEO_TDA9840 is not set | ||
1187 | # CONFIG_VIDEO_TDA9875 is not set | ||
1188 | # CONFIG_VIDEO_TEA6415C is not set | ||
1189 | # CONFIG_VIDEO_TEA6420 is not set | ||
1190 | # CONFIG_VIDEO_MSP3400 is not set | ||
1191 | # CONFIG_VIDEO_CS5345 is not set | ||
1192 | # CONFIG_VIDEO_CS53L32A is not set | ||
1193 | # CONFIG_VIDEO_M52790 is not set | ||
1194 | # CONFIG_VIDEO_TLV320AIC23B is not set | ||
1195 | # CONFIG_VIDEO_WM8775 is not set | ||
1196 | # CONFIG_VIDEO_WM8739 is not set | ||
1197 | # CONFIG_VIDEO_VP27SMPX is not set | ||
1198 | |||
1199 | # | ||
1200 | # RDS decoders | ||
1201 | # | ||
1202 | # CONFIG_VIDEO_SAA6588 is not set | ||
1203 | |||
1204 | # | ||
1205 | # Video decoders | ||
1206 | # | ||
1207 | # CONFIG_VIDEO_ADV7180 is not set | ||
1208 | # CONFIG_VIDEO_BT819 is not set | ||
1209 | # CONFIG_VIDEO_BT856 is not set | ||
1210 | # CONFIG_VIDEO_BT866 is not set | ||
1211 | # CONFIG_VIDEO_KS0127 is not set | ||
1212 | # CONFIG_VIDEO_OV7670 is not set | ||
1213 | # CONFIG_VIDEO_MT9V011 is not set | ||
1214 | # CONFIG_VIDEO_TCM825X is not set | ||
1215 | # CONFIG_VIDEO_SAA7110 is not set | ||
1216 | # CONFIG_VIDEO_SAA711X is not set | ||
1217 | # CONFIG_VIDEO_SAA717X is not set | ||
1218 | # CONFIG_VIDEO_SAA7191 is not set | ||
1219 | # CONFIG_VIDEO_TVP514X is not set | ||
1220 | # CONFIG_VIDEO_TVP5150 is not set | ||
1221 | # CONFIG_VIDEO_VPX3220 is not set | ||
1222 | |||
1223 | # | ||
1224 | # Video and audio decoders | ||
1225 | # | ||
1226 | # CONFIG_VIDEO_CX25840 is not set | ||
1227 | |||
1228 | # | ||
1229 | # MPEG video encoders | ||
1230 | # | ||
1231 | # CONFIG_VIDEO_CX2341X is not set | ||
1232 | |||
1233 | # | ||
1234 | # Video encoders | ||
1235 | # | ||
1236 | # CONFIG_VIDEO_SAA7127 is not set | ||
1237 | # CONFIG_VIDEO_SAA7185 is not set | ||
1238 | # CONFIG_VIDEO_ADV7170 is not set | ||
1239 | # CONFIG_VIDEO_ADV7175 is not set | ||
1240 | # CONFIG_VIDEO_THS7303 is not set | ||
1241 | # CONFIG_VIDEO_ADV7343 is not set | ||
1242 | |||
1243 | # | ||
1244 | # Video improvement chips | ||
1245 | # | ||
1246 | # CONFIG_VIDEO_UPD64031A is not set | ||
1247 | # CONFIG_VIDEO_UPD64083 is not set | ||
1248 | # CONFIG_VIDEO_VIVI is not set | ||
1249 | # CONFIG_VIDEO_CPIA is not set | ||
1250 | # CONFIG_VIDEO_CPIA2 is not set | ||
1251 | # CONFIG_VIDEO_SAA5246A is not set | ||
1252 | # CONFIG_VIDEO_SAA5249 is not set | ||
1253 | CONFIG_SOC_CAMERA=y | ||
1254 | # CONFIG_SOC_CAMERA_MT9M001 is not set | ||
1255 | CONFIG_SOC_CAMERA_MT9M111=y | ||
1256 | # CONFIG_SOC_CAMERA_MT9T031 is not set | ||
1257 | # CONFIG_SOC_CAMERA_MT9T112 is not set | ||
1258 | # CONFIG_SOC_CAMERA_MT9V022 is not set | ||
1259 | # CONFIG_SOC_CAMERA_RJ54N1 is not set | ||
1260 | # CONFIG_SOC_CAMERA_TW9910 is not set | ||
1261 | # CONFIG_SOC_CAMERA_PLATFORM is not set | ||
1262 | # CONFIG_SOC_CAMERA_OV772X is not set | ||
1263 | # CONFIG_SOC_CAMERA_OV9640 is not set | ||
1264 | CONFIG_VIDEO_PXA27x=y | ||
1265 | # CONFIG_VIDEO_SH_MOBILE_CEU is not set | ||
1266 | # CONFIG_V4L_USB_DRIVERS is not set | ||
1267 | CONFIG_RADIO_ADAPTERS=y | ||
1268 | # CONFIG_I2C_SI4713 is not set | ||
1269 | # CONFIG_RADIO_SI4713 is not set | ||
1270 | # CONFIG_USB_DSBR is not set | ||
1271 | # CONFIG_RADIO_SI470X is not set | ||
1272 | # CONFIG_USB_MR800 is not set | ||
1273 | CONFIG_RADIO_TEA5764=y | ||
1274 | CONFIG_RADIO_TEA5764_XTAL=y | ||
1275 | # CONFIG_RADIO_TEF6862 is not set | ||
1276 | # CONFIG_DAB is not set | ||
1277 | |||
1278 | # | ||
1279 | # Graphics support | ||
1280 | # | ||
1281 | # CONFIG_VGASTATE is not set | ||
1282 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
1283 | CONFIG_FB=y | ||
1284 | # CONFIG_FIRMWARE_EDID is not set | ||
1285 | # CONFIG_FB_DDC is not set | ||
1286 | # CONFIG_FB_BOOT_VESA_SUPPORT is not set | ||
1287 | CONFIG_FB_CFB_FILLRECT=y | ||
1288 | CONFIG_FB_CFB_COPYAREA=y | ||
1289 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
1290 | # CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set | ||
1291 | # CONFIG_FB_SYS_FILLRECT is not set | ||
1292 | # CONFIG_FB_SYS_COPYAREA is not set | ||
1293 | # CONFIG_FB_SYS_IMAGEBLIT is not set | ||
1294 | # CONFIG_FB_FOREIGN_ENDIAN is not set | ||
1295 | # CONFIG_FB_SYS_FOPS is not set | ||
1296 | # CONFIG_FB_SVGALIB is not set | ||
1297 | # CONFIG_FB_MACMODES is not set | ||
1298 | # CONFIG_FB_BACKLIGHT is not set | ||
1299 | # CONFIG_FB_MODE_HELPERS is not set | ||
1300 | # CONFIG_FB_TILEBLITTING is not set | ||
1301 | |||
1302 | # | ||
1303 | # Frame buffer hardware drivers | ||
1304 | # | ||
1305 | # CONFIG_FB_UVESA is not set | ||
1306 | # CONFIG_FB_S1D13XXX is not set | ||
1307 | CONFIG_FB_PXA=y | ||
1308 | CONFIG_FB_PXA_OVERLAY=y | ||
1309 | # CONFIG_FB_PXA_SMARTPANEL is not set | ||
1310 | CONFIG_FB_PXA_PARAMETERS=y | ||
1311 | # CONFIG_FB_MBX is not set | ||
1312 | # CONFIG_FB_W100 is not set | ||
1313 | # CONFIG_FB_VIRTUAL is not set | ||
1314 | # CONFIG_FB_METRONOME is not set | ||
1315 | # CONFIG_FB_MB862XX is not set | ||
1316 | # CONFIG_FB_BROADSHEET is not set | ||
1317 | CONFIG_BACKLIGHT_LCD_SUPPORT=y | ||
1318 | # CONFIG_LCD_CLASS_DEVICE is not set | ||
1319 | CONFIG_BACKLIGHT_CLASS_DEVICE=y | ||
1320 | CONFIG_BACKLIGHT_GENERIC=y | ||
1321 | # CONFIG_BACKLIGHT_DA903X is not set | ||
1322 | |||
1323 | # | ||
1324 | # Display device support | ||
1325 | # | ||
1326 | # CONFIG_DISPLAY_SUPPORT is not set | ||
1327 | |||
1328 | # | ||
1329 | # Console display driver support | ||
1330 | # | ||
1331 | # CONFIG_VGA_CONSOLE is not set | ||
1332 | CONFIG_DUMMY_CONSOLE=y | ||
1333 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
1334 | # CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set | ||
1335 | # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set | ||
1336 | CONFIG_FONTS=y | ||
1337 | # CONFIG_FONT_8x8 is not set | ||
1338 | # CONFIG_FONT_8x16 is not set | ||
1339 | # CONFIG_FONT_6x11 is not set | ||
1340 | # CONFIG_FONT_7x14 is not set | ||
1341 | # CONFIG_FONT_PEARL_8x8 is not set | ||
1342 | # CONFIG_FONT_ACORN_8x8 is not set | ||
1343 | CONFIG_FONT_MINI_4x6=y | ||
1344 | # CONFIG_FONT_SUN8x16 is not set | ||
1345 | # CONFIG_FONT_SUN12x22 is not set | ||
1346 | # CONFIG_FONT_10x18 is not set | ||
1347 | # CONFIG_LOGO is not set | ||
1348 | CONFIG_SOUND=y | ||
1349 | CONFIG_SOUND_OSS_CORE=y | ||
1350 | CONFIG_SOUND_OSS_CORE_PRECLAIM=y | ||
1351 | CONFIG_SND=y | ||
1352 | CONFIG_SND_TIMER=y | ||
1353 | CONFIG_SND_PCM=y | ||
1354 | CONFIG_SND_JACK=y | ||
1355 | # CONFIG_SND_SEQUENCER is not set | ||
1356 | CONFIG_SND_OSSEMUL=y | ||
1357 | CONFIG_SND_MIXER_OSS=y | ||
1358 | CONFIG_SND_PCM_OSS=y | ||
1359 | CONFIG_SND_PCM_OSS_PLUGINS=y | ||
1360 | # CONFIG_SND_HRTIMER is not set | ||
1361 | # CONFIG_SND_DYNAMIC_MINORS is not set | ||
1362 | CONFIG_SND_SUPPORT_OLD_API=y | ||
1363 | CONFIG_SND_VERBOSE_PROCFS=y | ||
1364 | # CONFIG_SND_VERBOSE_PRINTK is not set | ||
1365 | # CONFIG_SND_DEBUG is not set | ||
1366 | # CONFIG_SND_RAWMIDI_SEQ is not set | ||
1367 | # CONFIG_SND_OPL3_LIB_SEQ is not set | ||
1368 | # CONFIG_SND_OPL4_LIB_SEQ is not set | ||
1369 | # CONFIG_SND_SBAWE_SEQ is not set | ||
1370 | # CONFIG_SND_EMU10K1_SEQ is not set | ||
1371 | # CONFIG_SND_DRIVERS is not set | ||
1372 | # CONFIG_SND_ARM is not set | ||
1373 | CONFIG_SND_PXA2XX_LIB=y | ||
1374 | # CONFIG_SND_SPI is not set | ||
1375 | # CONFIG_SND_USB is not set | ||
1376 | CONFIG_SND_SOC=y | ||
1377 | CONFIG_SND_PXA2XX_SOC=y | ||
1378 | # CONFIG_SND_PXA2XX_SOC_IMOTE2 is not set | ||
1379 | CONFIG_SND_SOC_I2C_AND_SPI=y | ||
1380 | # CONFIG_SND_SOC_ALL_CODECS is not set | ||
1381 | # CONFIG_SOUND_PRIME is not set | ||
1382 | CONFIG_HID_SUPPORT=y | ||
1383 | CONFIG_HID=y | ||
1384 | # CONFIG_HIDRAW is not set | ||
1385 | |||
1386 | # | ||
1387 | # USB Input Devices | ||
1388 | # | ||
1389 | # CONFIG_USB_HID is not set | ||
1390 | # CONFIG_HID_PID is not set | ||
1391 | |||
1392 | # | ||
1393 | # USB HID Boot Protocol drivers | ||
1394 | # | ||
1395 | # CONFIG_USB_KBD is not set | ||
1396 | # CONFIG_USB_MOUSE is not set | ||
1397 | |||
1398 | # | ||
1399 | # Special HID drivers | ||
1400 | # | ||
1401 | CONFIG_HID_APPLE=m | ||
1402 | # CONFIG_HID_WACOM is not set | ||
1403 | CONFIG_USB_SUPPORT=y | ||
1404 | CONFIG_USB_ARCH_HAS_HCD=y | ||
1405 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
1406 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
1407 | CONFIG_USB=y | ||
1408 | # CONFIG_USB_DEBUG is not set | ||
1409 | # CONFIG_USB_ANNOUNCE_NEW_DEVICES is not set | ||
1410 | |||
1411 | # | ||
1412 | # Miscellaneous USB options | ||
1413 | # | ||
1414 | # CONFIG_USB_DEVICEFS is not set | ||
1415 | # CONFIG_USB_DEVICE_CLASS is not set | ||
1416 | # CONFIG_USB_DYNAMIC_MINORS is not set | ||
1417 | # CONFIG_USB_SUSPEND is not set | ||
1418 | # CONFIG_USB_OTG is not set | ||
1419 | # CONFIG_USB_OTG_WHITELIST is not set | ||
1420 | # CONFIG_USB_OTG_BLACKLIST_HUB is not set | ||
1421 | # CONFIG_USB_MON is not set | ||
1422 | # CONFIG_USB_WUSB is not set | ||
1423 | # CONFIG_USB_WUSB_CBAF is not set | ||
1424 | |||
1425 | # | ||
1426 | # USB Host Controller Drivers | ||
1427 | # | ||
1428 | # CONFIG_USB_C67X00_HCD is not set | ||
1429 | # CONFIG_USB_OXU210HP_HCD is not set | ||
1430 | # CONFIG_USB_ISP116X_HCD is not set | ||
1431 | # CONFIG_USB_ISP1760_HCD is not set | ||
1432 | # CONFIG_USB_ISP1362_HCD is not set | ||
1433 | CONFIG_USB_OHCI_HCD=y | ||
1434 | # CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set | ||
1435 | # CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not set | ||
1436 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
1437 | # CONFIG_USB_SL811_HCD is not set | ||
1438 | # CONFIG_USB_R8A66597_HCD is not set | ||
1439 | # CONFIG_USB_HWA_HCD is not set | ||
1440 | # CONFIG_USB_MUSB_HDRC is not set | ||
1441 | # CONFIG_USB_GADGET_MUSB_HDRC is not set | ||
1442 | |||
1443 | # | ||
1444 | # USB Device Class drivers | ||
1445 | # | ||
1446 | # CONFIG_USB_ACM is not set | ||
1447 | # CONFIG_USB_PRINTER is not set | ||
1448 | # CONFIG_USB_WDM is not set | ||
1449 | # CONFIG_USB_TMC is not set | ||
1450 | |||
1451 | # | ||
1452 | # NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may | ||
1453 | # | ||
1454 | |||
1455 | # | ||
1456 | # also be needed; see USB_STORAGE Help for more info | ||
1457 | # | ||
1458 | # CONFIG_USB_LIBUSUAL is not set | ||
1459 | |||
1460 | # | ||
1461 | # USB Imaging devices | ||
1462 | # | ||
1463 | # CONFIG_USB_MDC800 is not set | ||
1464 | |||
1465 | # | ||
1466 | # USB port drivers | ||
1467 | # | ||
1468 | # CONFIG_USB_SERIAL is not set | ||
1469 | |||
1470 | # | ||
1471 | # USB Miscellaneous drivers | ||
1472 | # | ||
1473 | # CONFIG_USB_EMI62 is not set | ||
1474 | # CONFIG_USB_EMI26 is not set | ||
1475 | # CONFIG_USB_ADUTUX is not set | ||
1476 | # CONFIG_USB_SEVSEG is not set | ||
1477 | # CONFIG_USB_RIO500 is not set | ||
1478 | # CONFIG_USB_LEGOTOWER is not set | ||
1479 | # CONFIG_USB_LCD is not set | ||
1480 | # CONFIG_USB_BERRY_CHARGE is not set | ||
1481 | # CONFIG_USB_LED is not set | ||
1482 | # CONFIG_USB_CYPRESS_CY7C63 is not set | ||
1483 | # CONFIG_USB_CYTHERM is not set | ||
1484 | # CONFIG_USB_IDMOUSE is not set | ||
1485 | # CONFIG_USB_FTDI_ELAN is not set | ||
1486 | # CONFIG_USB_APPLEDISPLAY is not set | ||
1487 | # CONFIG_USB_LD is not set | ||
1488 | # CONFIG_USB_TRANCEVIBRATOR is not set | ||
1489 | # CONFIG_USB_IOWARRIOR is not set | ||
1490 | # CONFIG_USB_TEST is not set | ||
1491 | # CONFIG_USB_ISIGHTFW is not set | ||
1492 | # CONFIG_USB_VST is not set | ||
1493 | CONFIG_USB_GADGET=y | ||
1494 | # CONFIG_USB_GADGET_DEBUG is not set | ||
1495 | # CONFIG_USB_GADGET_DEBUG_FILES is not set | ||
1496 | # CONFIG_USB_GADGET_DEBUG_FS is not set | ||
1497 | CONFIG_USB_GADGET_VBUS_DRAW=2 | ||
1498 | CONFIG_USB_GADGET_SELECTED=y | ||
1499 | # CONFIG_USB_GADGET_AT91 is not set | ||
1500 | # CONFIG_USB_GADGET_ATMEL_USBA is not set | ||
1501 | # CONFIG_USB_GADGET_FSL_USB2 is not set | ||
1502 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
1503 | # CONFIG_USB_GADGET_OMAP is not set | ||
1504 | # CONFIG_USB_GADGET_PXA25X is not set | ||
1505 | # CONFIG_USB_GADGET_R8A66597 is not set | ||
1506 | CONFIG_USB_GADGET_PXA27X=y | ||
1507 | CONFIG_USB_PXA27X=y | ||
1508 | # CONFIG_USB_GADGET_S3C_HSOTG is not set | ||
1509 | # CONFIG_USB_GADGET_IMX is not set | ||
1510 | # CONFIG_USB_GADGET_S3C2410 is not set | ||
1511 | # CONFIG_USB_GADGET_M66592 is not set | ||
1512 | # CONFIG_USB_GADGET_AMD5536UDC is not set | ||
1513 | # CONFIG_USB_GADGET_FSL_QE is not set | ||
1514 | # CONFIG_USB_GADGET_CI13XXX is not set | ||
1515 | # CONFIG_USB_GADGET_NET2280 is not set | ||
1516 | # CONFIG_USB_GADGET_GOKU is not set | ||
1517 | # CONFIG_USB_GADGET_LANGWELL is not set | ||
1518 | # CONFIG_USB_GADGET_DUMMY_HCD is not set | ||
1519 | # CONFIG_USB_GADGET_DUALSPEED is not set | ||
1520 | # CONFIG_USB_ZERO is not set | ||
1521 | # CONFIG_USB_AUDIO is not set | ||
1522 | CONFIG_USB_ETH=y | ||
1523 | # CONFIG_USB_ETH_RNDIS is not set | ||
1524 | # CONFIG_USB_ETH_EEM is not set | ||
1525 | # CONFIG_USB_GADGETFS is not set | ||
1526 | # CONFIG_USB_FILE_STORAGE is not set | ||
1527 | # CONFIG_USB_MASS_STORAGE is not set | ||
1528 | # CONFIG_USB_G_SERIAL is not set | ||
1529 | # CONFIG_USB_MIDI_GADGET is not set | ||
1530 | # CONFIG_USB_G_PRINTER is not set | ||
1531 | # CONFIG_USB_CDC_COMPOSITE is not set | ||
1532 | # CONFIG_USB_G_MULTI is not set | ||
1533 | |||
1534 | # | ||
1535 | # OTG and related infrastructure | ||
1536 | # | ||
1537 | CONFIG_USB_OTG_UTILS=y | ||
1538 | # CONFIG_USB_GPIO_VBUS is not set | ||
1539 | # CONFIG_USB_ULPI is not set | ||
1540 | # CONFIG_NOP_USB_XCEIV is not set | ||
1541 | CONFIG_MMC=y | ||
1542 | # CONFIG_MMC_DEBUG is not set | ||
1543 | CONFIG_MMC_UNSAFE_RESUME=y | ||
1544 | |||
1545 | # | ||
1546 | # MMC/SD/SDIO Card Drivers | ||
1547 | # | ||
1548 | CONFIG_MMC_BLOCK=y | ||
1549 | CONFIG_MMC_BLOCK_BOUNCE=y | ||
1550 | CONFIG_SDIO_UART=m | ||
1551 | # CONFIG_MMC_TEST is not set | ||
1552 | |||
1553 | # | ||
1554 | # MMC/SD/SDIO Host Controller Drivers | ||
1555 | # | ||
1556 | CONFIG_MMC_PXA=y | ||
1557 | # CONFIG_MMC_SDHCI is not set | ||
1558 | # CONFIG_MMC_AT91 is not set | ||
1559 | # CONFIG_MMC_ATMELMCI is not set | ||
1560 | CONFIG_MMC_SPI=y | ||
1561 | # CONFIG_MEMSTICK is not set | ||
1562 | CONFIG_NEW_LEDS=y | ||
1563 | CONFIG_LEDS_CLASS=y | ||
1564 | |||
1565 | # | ||
1566 | # LED drivers | ||
1567 | # | ||
1568 | # CONFIG_LEDS_PCA9532 is not set | ||
1569 | # CONFIG_LEDS_GPIO is not set | ||
1570 | CONFIG_LEDS_LP3944=y | ||
1571 | # CONFIG_LEDS_PCA955X is not set | ||
1572 | # CONFIG_LEDS_DA903X is not set | ||
1573 | # CONFIG_LEDS_DAC124S085 is not set | ||
1574 | # CONFIG_LEDS_REGULATOR is not set | ||
1575 | # CONFIG_LEDS_BD2802 is not set | ||
1576 | # CONFIG_LEDS_LT3593 is not set | ||
1577 | |||
1578 | # | ||
1579 | # LED Triggers | ||
1580 | # | ||
1581 | CONFIG_LEDS_TRIGGERS=y | ||
1582 | CONFIG_LEDS_TRIGGER_TIMER=y | ||
1583 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y | ||
1584 | CONFIG_LEDS_TRIGGER_BACKLIGHT=y | ||
1585 | CONFIG_LEDS_TRIGGER_GPIO=y | ||
1586 | CONFIG_LEDS_TRIGGER_DEFAULT_ON=y | ||
1587 | |||
1588 | # | ||
1589 | # iptables trigger is under Netfilter config (LED target) | ||
1590 | # | ||
1591 | # CONFIG_ACCESSIBILITY is not set | ||
1592 | CONFIG_RTC_LIB=y | ||
1593 | CONFIG_RTC_CLASS=y | ||
1594 | CONFIG_RTC_HCTOSYS=y | ||
1595 | CONFIG_RTC_HCTOSYS_DEVICE="rtc0" | ||
1596 | # CONFIG_RTC_DEBUG is not set | ||
1597 | |||
1598 | # | ||
1599 | # RTC interfaces | ||
1600 | # | ||
1601 | CONFIG_RTC_INTF_SYSFS=y | ||
1602 | CONFIG_RTC_INTF_PROC=y | ||
1603 | CONFIG_RTC_INTF_DEV=y | ||
1604 | # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set | ||
1605 | # CONFIG_RTC_DRV_TEST is not set | ||
1606 | |||
1607 | # | ||
1608 | # I2C RTC drivers | ||
1609 | # | ||
1610 | # CONFIG_RTC_DRV_DS1307 is not set | ||
1611 | # CONFIG_RTC_DRV_DS1374 is not set | ||
1612 | # CONFIG_RTC_DRV_DS1672 is not set | ||
1613 | # CONFIG_RTC_DRV_MAX6900 is not set | ||
1614 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
1615 | # CONFIG_RTC_DRV_ISL1208 is not set | ||
1616 | # CONFIG_RTC_DRV_X1205 is not set | ||
1617 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
1618 | # CONFIG_RTC_DRV_PCF8583 is not set | ||
1619 | # CONFIG_RTC_DRV_M41T80 is not set | ||
1620 | # CONFIG_RTC_DRV_BQ32K is not set | ||
1621 | # CONFIG_RTC_DRV_S35390A is not set | ||
1622 | # CONFIG_RTC_DRV_FM3130 is not set | ||
1623 | # CONFIG_RTC_DRV_RX8581 is not set | ||
1624 | # CONFIG_RTC_DRV_RX8025 is not set | ||
1625 | |||
1626 | # | ||
1627 | # SPI RTC drivers | ||
1628 | # | ||
1629 | # CONFIG_RTC_DRV_M41T94 is not set | ||
1630 | # CONFIG_RTC_DRV_DS1305 is not set | ||
1631 | # CONFIG_RTC_DRV_DS1390 is not set | ||
1632 | # CONFIG_RTC_DRV_MAX6902 is not set | ||
1633 | # CONFIG_RTC_DRV_R9701 is not set | ||
1634 | # CONFIG_RTC_DRV_RS5C348 is not set | ||
1635 | # CONFIG_RTC_DRV_DS3234 is not set | ||
1636 | # CONFIG_RTC_DRV_PCF2123 is not set | ||
1637 | |||
1638 | # | ||
1639 | # Platform RTC drivers | ||
1640 | # | ||
1641 | # CONFIG_RTC_DRV_CMOS is not set | ||
1642 | # CONFIG_RTC_DRV_DS1286 is not set | ||
1643 | # CONFIG_RTC_DRV_DS1511 is not set | ||
1644 | # CONFIG_RTC_DRV_DS1553 is not set | ||
1645 | # CONFIG_RTC_DRV_DS1742 is not set | ||
1646 | # CONFIG_RTC_DRV_STK17TA8 is not set | ||
1647 | # CONFIG_RTC_DRV_M48T86 is not set | ||
1648 | # CONFIG_RTC_DRV_M48T35 is not set | ||
1649 | # CONFIG_RTC_DRV_M48T59 is not set | ||
1650 | # CONFIG_RTC_DRV_MSM6242 is not set | ||
1651 | # CONFIG_RTC_DRV_BQ4802 is not set | ||
1652 | # CONFIG_RTC_DRV_RP5C01 is not set | ||
1653 | # CONFIG_RTC_DRV_V3020 is not set | ||
1654 | |||
1655 | # | ||
1656 | # on-CPU RTC drivers | ||
1657 | # | ||
1658 | # CONFIG_RTC_DRV_SA1100 is not set | ||
1659 | # CONFIG_RTC_DRV_PXA is not set | ||
1660 | # CONFIG_DMADEVICES is not set | ||
1661 | # CONFIG_AUXDISPLAY is not set | ||
1662 | # CONFIG_UIO is not set | ||
1663 | |||
1664 | # | ||
1665 | # TI VLYNQ | ||
1666 | # | ||
1667 | # CONFIG_STAGING is not set | ||
1668 | |||
1669 | # | ||
1670 | # File systems | ||
1671 | # | ||
1672 | CONFIG_EXT2_FS=y | ||
1673 | # CONFIG_EXT2_FS_XATTR is not set | ||
1674 | # CONFIG_EXT2_FS_XIP is not set | ||
1675 | CONFIG_EXT3_FS=m | ||
1676 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
1677 | CONFIG_EXT3_FS_XATTR=y | ||
1678 | # CONFIG_EXT3_FS_POSIX_ACL is not set | ||
1679 | # CONFIG_EXT3_FS_SECURITY is not set | ||
1680 | # CONFIG_EXT4_FS is not set | ||
1681 | CONFIG_JBD=m | ||
1682 | # CONFIG_JBD_DEBUG is not set | ||
1683 | CONFIG_FS_MBCACHE=m | ||
1684 | CONFIG_REISERFS_FS=m | ||
1685 | # CONFIG_REISERFS_CHECK is not set | ||
1686 | # CONFIG_REISERFS_PROC_INFO is not set | ||
1687 | CONFIG_REISERFS_FS_XATTR=y | ||
1688 | CONFIG_REISERFS_FS_POSIX_ACL=y | ||
1689 | CONFIG_REISERFS_FS_SECURITY=y | ||
1690 | # CONFIG_JFS_FS is not set | ||
1691 | CONFIG_FS_POSIX_ACL=y | ||
1692 | CONFIG_XFS_FS=m | ||
1693 | # CONFIG_XFS_QUOTA is not set | ||
1694 | # CONFIG_XFS_POSIX_ACL is not set | ||
1695 | # CONFIG_XFS_RT is not set | ||
1696 | # CONFIG_XFS_DEBUG is not set | ||
1697 | # CONFIG_OCFS2_FS is not set | ||
1698 | # CONFIG_BTRFS_FS is not set | ||
1699 | # CONFIG_NILFS2_FS is not set | ||
1700 | CONFIG_FILE_LOCKING=y | ||
1701 | CONFIG_FSNOTIFY=y | ||
1702 | CONFIG_DNOTIFY=y | ||
1703 | CONFIG_INOTIFY=y | ||
1704 | CONFIG_INOTIFY_USER=y | ||
1705 | # CONFIG_QUOTA is not set | ||
1706 | CONFIG_AUTOFS_FS=y | ||
1707 | CONFIG_AUTOFS4_FS=y | ||
1708 | CONFIG_FUSE_FS=m | ||
1709 | CONFIG_CUSE=m | ||
1710 | |||
1711 | # | ||
1712 | # Caches | ||
1713 | # | ||
1714 | # CONFIG_FSCACHE is not set | ||
1715 | |||
1716 | # | ||
1717 | # CD-ROM/DVD Filesystems | ||
1718 | # | ||
1719 | CONFIG_ISO9660_FS=m | ||
1720 | CONFIG_JOLIET=y | ||
1721 | CONFIG_ZISOFS=y | ||
1722 | # CONFIG_UDF_FS is not set | ||
1723 | |||
1724 | # | ||
1725 | # DOS/FAT/NT Filesystems | ||
1726 | # | ||
1727 | CONFIG_FAT_FS=m | ||
1728 | CONFIG_MSDOS_FS=m | ||
1729 | CONFIG_VFAT_FS=m | ||
1730 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
1731 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
1732 | # CONFIG_NTFS_FS is not set | ||
1733 | |||
1734 | # | ||
1735 | # Pseudo filesystems | ||
1736 | # | ||
1737 | CONFIG_PROC_FS=y | ||
1738 | CONFIG_PROC_SYSCTL=y | ||
1739 | CONFIG_PROC_PAGE_MONITOR=y | ||
1740 | CONFIG_SYSFS=y | ||
1741 | CONFIG_TMPFS=y | ||
1742 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
1743 | # CONFIG_HUGETLB_PAGE is not set | ||
1744 | # CONFIG_CONFIGFS_FS is not set | ||
1745 | CONFIG_MISC_FILESYSTEMS=y | ||
1746 | # CONFIG_ADFS_FS is not set | ||
1747 | # CONFIG_AFFS_FS is not set | ||
1748 | # CONFIG_HFS_FS is not set | ||
1749 | # CONFIG_HFSPLUS_FS is not set | ||
1750 | # CONFIG_BEFS_FS is not set | ||
1751 | # CONFIG_BFS_FS is not set | ||
1752 | # CONFIG_EFS_FS is not set | ||
1753 | CONFIG_JFFS2_FS=m | ||
1754 | CONFIG_JFFS2_FS_DEBUG=0 | ||
1755 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
1756 | # CONFIG_JFFS2_FS_WBUF_VERIFY is not set | ||
1757 | # CONFIG_JFFS2_SUMMARY is not set | ||
1758 | # CONFIG_JFFS2_FS_XATTR is not set | ||
1759 | CONFIG_JFFS2_COMPRESSION_OPTIONS=y | ||
1760 | CONFIG_JFFS2_ZLIB=y | ||
1761 | CONFIG_JFFS2_LZO=y | ||
1762 | CONFIG_JFFS2_RTIME=y | ||
1763 | CONFIG_JFFS2_RUBIN=y | ||
1764 | # CONFIG_JFFS2_CMODE_NONE is not set | ||
1765 | CONFIG_JFFS2_CMODE_PRIORITY=y | ||
1766 | # CONFIG_JFFS2_CMODE_SIZE is not set | ||
1767 | # CONFIG_JFFS2_CMODE_FAVOURLZO is not set | ||
1768 | CONFIG_CRAMFS=m | ||
1769 | CONFIG_SQUASHFS=m | ||
1770 | # CONFIG_SQUASHFS_EMBEDDED is not set | ||
1771 | CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3 | ||
1772 | # CONFIG_VXFS_FS is not set | ||
1773 | # CONFIG_MINIX_FS is not set | ||
1774 | # CONFIG_OMFS_FS is not set | ||
1775 | # CONFIG_HPFS_FS is not set | ||
1776 | # CONFIG_QNX4FS_FS is not set | ||
1777 | CONFIG_ROMFS_FS=m | ||
1778 | CONFIG_ROMFS_BACKED_BY_BLOCK=y | ||
1779 | # CONFIG_ROMFS_BACKED_BY_MTD is not set | ||
1780 | # CONFIG_ROMFS_BACKED_BY_BOTH is not set | ||
1781 | CONFIG_ROMFS_ON_BLOCK=y | ||
1782 | # CONFIG_SYSV_FS is not set | ||
1783 | # CONFIG_UFS_FS is not set | ||
1784 | CONFIG_NETWORK_FILESYSTEMS=y | ||
1785 | CONFIG_NFS_FS=y | ||
1786 | CONFIG_NFS_V3=y | ||
1787 | CONFIG_NFS_V3_ACL=y | ||
1788 | # CONFIG_NFS_V4 is not set | ||
1789 | # CONFIG_ROOT_NFS is not set | ||
1790 | CONFIG_NFSD=m | ||
1791 | CONFIG_NFSD_V2_ACL=y | ||
1792 | CONFIG_NFSD_V3=y | ||
1793 | CONFIG_NFSD_V3_ACL=y | ||
1794 | # CONFIG_NFSD_V4 is not set | ||
1795 | CONFIG_LOCKD=y | ||
1796 | CONFIG_LOCKD_V4=y | ||
1797 | CONFIG_EXPORTFS=m | ||
1798 | CONFIG_NFS_ACL_SUPPORT=y | ||
1799 | CONFIG_NFS_COMMON=y | ||
1800 | CONFIG_SUNRPC=y | ||
1801 | # CONFIG_RPCSEC_GSS_KRB5 is not set | ||
1802 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
1803 | CONFIG_SMB_FS=m | ||
1804 | # CONFIG_SMB_NLS_DEFAULT is not set | ||
1805 | CONFIG_CIFS=m | ||
1806 | CONFIG_CIFS_STATS=y | ||
1807 | # CONFIG_CIFS_STATS2 is not set | ||
1808 | CONFIG_CIFS_WEAK_PW_HASH=y | ||
1809 | CONFIG_CIFS_XATTR=y | ||
1810 | CONFIG_CIFS_POSIX=y | ||
1811 | # CONFIG_CIFS_DEBUG2 is not set | ||
1812 | # CONFIG_CIFS_EXPERIMENTAL is not set | ||
1813 | # CONFIG_NCP_FS is not set | ||
1814 | # CONFIG_CODA_FS is not set | ||
1815 | # CONFIG_AFS_FS is not set | ||
1816 | |||
1817 | # | ||
1818 | # Partition Types | ||
1819 | # | ||
1820 | # CONFIG_PARTITION_ADVANCED is not set | ||
1821 | CONFIG_MSDOS_PARTITION=y | ||
1822 | CONFIG_NLS=y | ||
1823 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
1824 | CONFIG_NLS_CODEPAGE_437=m | ||
1825 | CONFIG_NLS_CODEPAGE_737=m | ||
1826 | CONFIG_NLS_CODEPAGE_775=m | ||
1827 | CONFIG_NLS_CODEPAGE_850=m | ||
1828 | CONFIG_NLS_CODEPAGE_852=m | ||
1829 | CONFIG_NLS_CODEPAGE_855=m | ||
1830 | CONFIG_NLS_CODEPAGE_857=m | ||
1831 | CONFIG_NLS_CODEPAGE_860=m | ||
1832 | CONFIG_NLS_CODEPAGE_861=m | ||
1833 | CONFIG_NLS_CODEPAGE_862=m | ||
1834 | CONFIG_NLS_CODEPAGE_863=m | ||
1835 | CONFIG_NLS_CODEPAGE_864=m | ||
1836 | CONFIG_NLS_CODEPAGE_865=m | ||
1837 | CONFIG_NLS_CODEPAGE_866=m | ||
1838 | CONFIG_NLS_CODEPAGE_869=m | ||
1839 | CONFIG_NLS_CODEPAGE_936=m | ||
1840 | CONFIG_NLS_CODEPAGE_950=m | ||
1841 | CONFIG_NLS_CODEPAGE_932=m | ||
1842 | CONFIG_NLS_CODEPAGE_949=m | ||
1843 | CONFIG_NLS_CODEPAGE_874=m | ||
1844 | CONFIG_NLS_ISO8859_8=m | ||
1845 | CONFIG_NLS_CODEPAGE_1250=m | ||
1846 | CONFIG_NLS_CODEPAGE_1251=m | ||
1847 | CONFIG_NLS_ASCII=m | ||
1848 | CONFIG_NLS_ISO8859_1=m | ||
1849 | CONFIG_NLS_ISO8859_2=m | ||
1850 | CONFIG_NLS_ISO8859_3=m | ||
1851 | CONFIG_NLS_ISO8859_4=m | ||
1852 | CONFIG_NLS_ISO8859_5=m | ||
1853 | CONFIG_NLS_ISO8859_6=m | ||
1854 | CONFIG_NLS_ISO8859_7=m | ||
1855 | CONFIG_NLS_ISO8859_9=m | ||
1856 | CONFIG_NLS_ISO8859_13=m | ||
1857 | CONFIG_NLS_ISO8859_14=m | ||
1858 | CONFIG_NLS_ISO8859_15=m | ||
1859 | CONFIG_NLS_KOI8_R=m | ||
1860 | CONFIG_NLS_KOI8_U=m | ||
1861 | CONFIG_NLS_UTF8=m | ||
1862 | # CONFIG_DLM is not set | ||
1863 | |||
1864 | # | ||
1865 | # Kernel hacking | ||
1866 | # | ||
1867 | CONFIG_PRINTK_TIME=y | ||
1868 | CONFIG_ENABLE_WARN_DEPRECATED=y | ||
1869 | CONFIG_ENABLE_MUST_CHECK=y | ||
1870 | CONFIG_FRAME_WARN=1024 | ||
1871 | # CONFIG_MAGIC_SYSRQ is not set | ||
1872 | # CONFIG_STRIP_ASM_SYMS is not set | ||
1873 | # CONFIG_UNUSED_SYMBOLS is not set | ||
1874 | CONFIG_DEBUG_FS=y | ||
1875 | # CONFIG_HEADERS_CHECK is not set | ||
1876 | CONFIG_DEBUG_KERNEL=y | ||
1877 | # CONFIG_DEBUG_SHIRQ is not set | ||
1878 | CONFIG_DETECT_SOFTLOCKUP=y | ||
1879 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set | ||
1880 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 | ||
1881 | CONFIG_DETECT_HUNG_TASK=y | ||
1882 | # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set | ||
1883 | CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 | ||
1884 | # CONFIG_SCHED_DEBUG is not set | ||
1885 | # CONFIG_SCHEDSTATS is not set | ||
1886 | # CONFIG_TIMER_STATS is not set | ||
1887 | # CONFIG_DEBUG_OBJECTS is not set | ||
1888 | # CONFIG_DEBUG_SLAB is not set | ||
1889 | # CONFIG_DEBUG_KMEMLEAK is not set | ||
1890 | CONFIG_DEBUG_PREEMPT=y | ||
1891 | CONFIG_DEBUG_RT_MUTEXES=y | ||
1892 | CONFIG_DEBUG_PI_LIST=y | ||
1893 | # CONFIG_RT_MUTEX_TESTER is not set | ||
1894 | CONFIG_DEBUG_SPINLOCK=y | ||
1895 | CONFIG_DEBUG_MUTEXES=y | ||
1896 | CONFIG_DEBUG_LOCK_ALLOC=y | ||
1897 | CONFIG_PROVE_LOCKING=y | ||
1898 | CONFIG_LOCKDEP=y | ||
1899 | # CONFIG_LOCK_STAT is not set | ||
1900 | # CONFIG_DEBUG_LOCKDEP is not set | ||
1901 | CONFIG_TRACE_IRQFLAGS=y | ||
1902 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
1903 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
1904 | CONFIG_STACKTRACE=y | ||
1905 | # CONFIG_DEBUG_KOBJECT is not set | ||
1906 | CONFIG_DEBUG_BUGVERBOSE=y | ||
1907 | # CONFIG_DEBUG_INFO is not set | ||
1908 | # CONFIG_DEBUG_VM is not set | ||
1909 | # CONFIG_DEBUG_WRITECOUNT is not set | ||
1910 | # CONFIG_DEBUG_MEMORY_INIT is not set | ||
1911 | # CONFIG_DEBUG_LIST is not set | ||
1912 | # CONFIG_DEBUG_SG is not set | ||
1913 | # CONFIG_DEBUG_NOTIFIERS is not set | ||
1914 | # CONFIG_DEBUG_CREDENTIALS is not set | ||
1915 | # CONFIG_BOOT_PRINTK_DELAY is not set | ||
1916 | # CONFIG_RCU_TORTURE_TEST is not set | ||
1917 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | ||
1918 | # CONFIG_BACKTRACE_SELF_TEST is not set | ||
1919 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set | ||
1920 | # CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set | ||
1921 | # CONFIG_FAULT_INJECTION is not set | ||
1922 | # CONFIG_LATENCYTOP is not set | ||
1923 | # CONFIG_SYSCTL_SYSCALL_CHECK is not set | ||
1924 | # CONFIG_PAGE_POISONING is not set | ||
1925 | CONFIG_HAVE_FUNCTION_TRACER=y | ||
1926 | CONFIG_TRACING_SUPPORT=y | ||
1927 | # CONFIG_FTRACE is not set | ||
1928 | # CONFIG_DYNAMIC_DEBUG is not set | ||
1929 | # CONFIG_SAMPLES is not set | ||
1930 | CONFIG_HAVE_ARCH_KGDB=y | ||
1931 | # CONFIG_KGDB is not set | ||
1932 | CONFIG_ARM_UNWIND=y | ||
1933 | CONFIG_DEBUG_USER=y | ||
1934 | CONFIG_DEBUG_ERRORS=y | ||
1935 | # CONFIG_DEBUG_STACK_USAGE is not set | ||
1936 | # CONFIG_DEBUG_LL is not set | ||
1937 | # CONFIG_OC_ETM is not set | ||
1938 | |||
1939 | # | ||
1940 | # Security options | ||
1941 | # | ||
1942 | # CONFIG_KEYS is not set | ||
1943 | # CONFIG_SECURITY is not set | ||
1944 | # CONFIG_SECURITYFS is not set | ||
1945 | # CONFIG_DEFAULT_SECURITY_SELINUX is not set | ||
1946 | # CONFIG_DEFAULT_SECURITY_SMACK is not set | ||
1947 | # CONFIG_DEFAULT_SECURITY_TOMOYO is not set | ||
1948 | CONFIG_DEFAULT_SECURITY_DAC=y | ||
1949 | CONFIG_DEFAULT_SECURITY="" | ||
1950 | CONFIG_CRYPTO=y | ||
1951 | |||
1952 | # | ||
1953 | # Crypto core or helper | ||
1954 | # | ||
1955 | CONFIG_CRYPTO_ALGAPI=m | ||
1956 | CONFIG_CRYPTO_ALGAPI2=m | ||
1957 | CONFIG_CRYPTO_AEAD=m | ||
1958 | CONFIG_CRYPTO_AEAD2=m | ||
1959 | CONFIG_CRYPTO_BLKCIPHER=m | ||
1960 | CONFIG_CRYPTO_BLKCIPHER2=m | ||
1961 | CONFIG_CRYPTO_HASH=m | ||
1962 | CONFIG_CRYPTO_HASH2=m | ||
1963 | CONFIG_CRYPTO_RNG2=m | ||
1964 | CONFIG_CRYPTO_PCOMP=m | ||
1965 | CONFIG_CRYPTO_MANAGER=m | ||
1966 | CONFIG_CRYPTO_MANAGER2=m | ||
1967 | CONFIG_CRYPTO_GF128MUL=m | ||
1968 | CONFIG_CRYPTO_NULL=m | ||
1969 | CONFIG_CRYPTO_WORKQUEUE=m | ||
1970 | CONFIG_CRYPTO_CRYPTD=m | ||
1971 | CONFIG_CRYPTO_AUTHENC=m | ||
1972 | CONFIG_CRYPTO_TEST=m | ||
1973 | |||
1974 | # | ||
1975 | # Authenticated Encryption with Associated Data | ||
1976 | # | ||
1977 | # CONFIG_CRYPTO_CCM is not set | ||
1978 | # CONFIG_CRYPTO_GCM is not set | ||
1979 | # CONFIG_CRYPTO_SEQIV is not set | ||
1980 | |||
1981 | # | ||
1982 | # Block modes | ||
1983 | # | ||
1984 | CONFIG_CRYPTO_CBC=m | ||
1985 | # CONFIG_CRYPTO_CTR is not set | ||
1986 | # CONFIG_CRYPTO_CTS is not set | ||
1987 | CONFIG_CRYPTO_ECB=m | ||
1988 | CONFIG_CRYPTO_LRW=m | ||
1989 | CONFIG_CRYPTO_PCBC=m | ||
1990 | CONFIG_CRYPTO_XTS=m | ||
1991 | |||
1992 | # | ||
1993 | # Hash modes | ||
1994 | # | ||
1995 | CONFIG_CRYPTO_HMAC=m | ||
1996 | CONFIG_CRYPTO_XCBC=m | ||
1997 | CONFIG_CRYPTO_VMAC=m | ||
1998 | |||
1999 | # | ||
2000 | # Digest | ||
2001 | # | ||
2002 | CONFIG_CRYPTO_CRC32C=m | ||
2003 | CONFIG_CRYPTO_GHASH=m | ||
2004 | CONFIG_CRYPTO_MD4=m | ||
2005 | CONFIG_CRYPTO_MD5=m | ||
2006 | CONFIG_CRYPTO_MICHAEL_MIC=m | ||
2007 | # CONFIG_CRYPTO_RMD128 is not set | ||
2008 | # CONFIG_CRYPTO_RMD160 is not set | ||
2009 | # CONFIG_CRYPTO_RMD256 is not set | ||
2010 | # CONFIG_CRYPTO_RMD320 is not set | ||
2011 | CONFIG_CRYPTO_SHA1=m | ||
2012 | CONFIG_CRYPTO_SHA256=m | ||
2013 | CONFIG_CRYPTO_SHA512=m | ||
2014 | CONFIG_CRYPTO_TGR192=m | ||
2015 | # CONFIG_CRYPTO_WP512 is not set | ||
2016 | |||
2017 | # | ||
2018 | # Ciphers | ||
2019 | # | ||
2020 | CONFIG_CRYPTO_AES=m | ||
2021 | # CONFIG_CRYPTO_ANUBIS is not set | ||
2022 | CONFIG_CRYPTO_ARC4=m | ||
2023 | CONFIG_CRYPTO_BLOWFISH=m | ||
2024 | # CONFIG_CRYPTO_CAMELLIA is not set | ||
2025 | CONFIG_CRYPTO_CAST5=m | ||
2026 | CONFIG_CRYPTO_CAST6=m | ||
2027 | CONFIG_CRYPTO_DES=m | ||
2028 | CONFIG_CRYPTO_FCRYPT=m | ||
2029 | CONFIG_CRYPTO_KHAZAD=m | ||
2030 | # CONFIG_CRYPTO_SALSA20 is not set | ||
2031 | CONFIG_CRYPTO_SEED=m | ||
2032 | CONFIG_CRYPTO_SERPENT=m | ||
2033 | CONFIG_CRYPTO_TEA=m | ||
2034 | CONFIG_CRYPTO_TWOFISH=m | ||
2035 | CONFIG_CRYPTO_TWOFISH_COMMON=m | ||
2036 | |||
2037 | # | ||
2038 | # Compression | ||
2039 | # | ||
2040 | CONFIG_CRYPTO_DEFLATE=m | ||
2041 | # CONFIG_CRYPTO_ZLIB is not set | ||
2042 | # CONFIG_CRYPTO_LZO is not set | ||
2043 | |||
2044 | # | ||
2045 | # Random Number Generation | ||
2046 | # | ||
2047 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | ||
2048 | CONFIG_CRYPTO_HW=y | ||
2049 | # CONFIG_BINARY_PRINTF is not set | ||
2050 | |||
2051 | # | ||
2052 | # Library routines | ||
2053 | # | ||
2054 | CONFIG_BITREVERSE=y | ||
2055 | CONFIG_GENERIC_FIND_LAST_BIT=y | ||
2056 | CONFIG_CRC_CCITT=m | ||
2057 | CONFIG_CRC16=y | ||
2058 | # CONFIG_CRC_T10DIF is not set | ||
2059 | CONFIG_CRC_ITU_T=y | ||
2060 | CONFIG_CRC32=y | ||
2061 | CONFIG_CRC7=y | ||
2062 | CONFIG_LIBCRC32C=m | ||
2063 | CONFIG_ZLIB_INFLATE=y | ||
2064 | CONFIG_ZLIB_DEFLATE=m | ||
2065 | CONFIG_LZO_COMPRESS=m | ||
2066 | CONFIG_LZO_DECOMPRESS=m | ||
2067 | CONFIG_DECOMPRESS_GZIP=y | ||
2068 | CONFIG_DECOMPRESS_BZIP2=y | ||
2069 | CONFIG_DECOMPRESS_LZMA=y | ||
2070 | CONFIG_TEXTSEARCH=y | ||
2071 | CONFIG_TEXTSEARCH_KMP=m | ||
2072 | CONFIG_TEXTSEARCH_BM=m | ||
2073 | CONFIG_TEXTSEARCH_FSM=m | ||
2074 | CONFIG_HAS_IOMEM=y | ||
2075 | CONFIG_HAS_IOPORT=y | ||
2076 | CONFIG_HAS_DMA=y | ||
2077 | CONFIG_NLATTR=y | ||
diff --git a/arch/arm/configs/kirkwood_defconfig b/arch/arm/configs/kirkwood_defconfig index 5fc44c94b0a..4611d3ce451 100644 --- a/arch/arm/configs/kirkwood_defconfig +++ b/arch/arm/configs/kirkwood_defconfig | |||
@@ -1,7 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.32-rc6 | 3 | # Linux kernel version: 2.6.33-rc6 |
4 | # Sat Nov 7 20:31:18 2009 | 4 | # Thu Feb 4 23:08:54 2010 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | 7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y |
@@ -32,6 +32,12 @@ CONFIG_LOCK_KERNEL=y | |||
32 | CONFIG_INIT_ENV_ARG_LIMIT=32 | 32 | CONFIG_INIT_ENV_ARG_LIMIT=32 |
33 | CONFIG_LOCALVERSION="" | 33 | CONFIG_LOCALVERSION="" |
34 | CONFIG_LOCALVERSION_AUTO=y | 34 | CONFIG_LOCALVERSION_AUTO=y |
35 | CONFIG_HAVE_KERNEL_GZIP=y | ||
36 | CONFIG_HAVE_KERNEL_LZO=y | ||
37 | CONFIG_KERNEL_GZIP=y | ||
38 | # CONFIG_KERNEL_BZIP2 is not set | ||
39 | # CONFIG_KERNEL_LZMA is not set | ||
40 | # CONFIG_KERNEL_LZO is not set | ||
35 | CONFIG_SWAP=y | 41 | CONFIG_SWAP=y |
36 | CONFIG_SYSVIPC=y | 42 | CONFIG_SYSVIPC=y |
37 | CONFIG_SYSVIPC_SYSCTL=y | 43 | CONFIG_SYSVIPC_SYSCTL=y |
@@ -45,6 +51,7 @@ CONFIG_SYSVIPC_SYSCTL=y | |||
45 | # | 51 | # |
46 | CONFIG_TREE_RCU=y | 52 | CONFIG_TREE_RCU=y |
47 | # CONFIG_TREE_PREEMPT_RCU is not set | 53 | # CONFIG_TREE_PREEMPT_RCU is not set |
54 | # CONFIG_TINY_RCU is not set | ||
48 | # CONFIG_RCU_TRACE is not set | 55 | # CONFIG_RCU_TRACE is not set |
49 | CONFIG_RCU_FANOUT=32 | 56 | CONFIG_RCU_FANOUT=32 |
50 | # CONFIG_RCU_FANOUT_EXACT is not set | 57 | # CONFIG_RCU_FANOUT_EXACT is not set |
@@ -127,14 +134,41 @@ CONFIG_LBDAF=y | |||
127 | # IO Schedulers | 134 | # IO Schedulers |
128 | # | 135 | # |
129 | CONFIG_IOSCHED_NOOP=y | 136 | CONFIG_IOSCHED_NOOP=y |
130 | CONFIG_IOSCHED_AS=y | ||
131 | CONFIG_IOSCHED_DEADLINE=y | 137 | CONFIG_IOSCHED_DEADLINE=y |
132 | CONFIG_IOSCHED_CFQ=y | 138 | CONFIG_IOSCHED_CFQ=y |
133 | # CONFIG_DEFAULT_AS is not set | ||
134 | # CONFIG_DEFAULT_DEADLINE is not set | 139 | # CONFIG_DEFAULT_DEADLINE is not set |
135 | CONFIG_DEFAULT_CFQ=y | 140 | CONFIG_DEFAULT_CFQ=y |
136 | # CONFIG_DEFAULT_NOOP is not set | 141 | # CONFIG_DEFAULT_NOOP is not set |
137 | CONFIG_DEFAULT_IOSCHED="cfq" | 142 | CONFIG_DEFAULT_IOSCHED="cfq" |
143 | # CONFIG_INLINE_SPIN_TRYLOCK is not set | ||
144 | # CONFIG_INLINE_SPIN_TRYLOCK_BH is not set | ||
145 | # CONFIG_INLINE_SPIN_LOCK is not set | ||
146 | # CONFIG_INLINE_SPIN_LOCK_BH is not set | ||
147 | # CONFIG_INLINE_SPIN_LOCK_IRQ is not set | ||
148 | # CONFIG_INLINE_SPIN_LOCK_IRQSAVE is not set | ||
149 | # CONFIG_INLINE_SPIN_UNLOCK is not set | ||
150 | # CONFIG_INLINE_SPIN_UNLOCK_BH is not set | ||
151 | # CONFIG_INLINE_SPIN_UNLOCK_IRQ is not set | ||
152 | # CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE is not set | ||
153 | # CONFIG_INLINE_READ_TRYLOCK is not set | ||
154 | # CONFIG_INLINE_READ_LOCK is not set | ||
155 | # CONFIG_INLINE_READ_LOCK_BH is not set | ||
156 | # CONFIG_INLINE_READ_LOCK_IRQ is not set | ||
157 | # CONFIG_INLINE_READ_LOCK_IRQSAVE is not set | ||
158 | # CONFIG_INLINE_READ_UNLOCK is not set | ||
159 | # CONFIG_INLINE_READ_UNLOCK_BH is not set | ||
160 | # CONFIG_INLINE_READ_UNLOCK_IRQ is not set | ||
161 | # CONFIG_INLINE_READ_UNLOCK_IRQRESTORE is not set | ||
162 | # CONFIG_INLINE_WRITE_TRYLOCK is not set | ||
163 | # CONFIG_INLINE_WRITE_LOCK is not set | ||
164 | # CONFIG_INLINE_WRITE_LOCK_BH is not set | ||
165 | # CONFIG_INLINE_WRITE_LOCK_IRQ is not set | ||
166 | # CONFIG_INLINE_WRITE_LOCK_IRQSAVE is not set | ||
167 | # CONFIG_INLINE_WRITE_UNLOCK is not set | ||
168 | # CONFIG_INLINE_WRITE_UNLOCK_BH is not set | ||
169 | # CONFIG_INLINE_WRITE_UNLOCK_IRQ is not set | ||
170 | # CONFIG_INLINE_WRITE_UNLOCK_IRQRESTORE is not set | ||
171 | # CONFIG_MUTEX_SPIN_ON_OWNER is not set | ||
138 | # CONFIG_FREEZER is not set | 172 | # CONFIG_FREEZER is not set |
139 | 173 | ||
140 | # | 174 | # |
@@ -163,6 +197,7 @@ CONFIG_MMU=y | |||
163 | # CONFIG_ARCH_IXP2000 is not set | 197 | # CONFIG_ARCH_IXP2000 is not set |
164 | # CONFIG_ARCH_IXP4XX is not set | 198 | # CONFIG_ARCH_IXP4XX is not set |
165 | # CONFIG_ARCH_L7200 is not set | 199 | # CONFIG_ARCH_L7200 is not set |
200 | # CONFIG_ARCH_DOVE is not set | ||
166 | CONFIG_ARCH_KIRKWOOD=y | 201 | CONFIG_ARCH_KIRKWOOD=y |
167 | # CONFIG_ARCH_LOKI is not set | 202 | # CONFIG_ARCH_LOKI is not set |
168 | # CONFIG_ARCH_MV78XX0 is not set | 203 | # CONFIG_ARCH_MV78XX0 is not set |
@@ -185,6 +220,7 @@ CONFIG_ARCH_KIRKWOOD=y | |||
185 | # CONFIG_ARCH_DAVINCI is not set | 220 | # CONFIG_ARCH_DAVINCI is not set |
186 | # CONFIG_ARCH_OMAP is not set | 221 | # CONFIG_ARCH_OMAP is not set |
187 | # CONFIG_ARCH_BCMRING is not set | 222 | # CONFIG_ARCH_BCMRING is not set |
223 | # CONFIG_ARCH_U8500 is not set | ||
188 | 224 | ||
189 | # | 225 | # |
190 | # Marvell Kirkwood Implementations | 226 | # Marvell Kirkwood Implementations |
@@ -195,7 +231,11 @@ CONFIG_MACH_RD88F6281=y | |||
195 | CONFIG_MACH_MV88F6281GTW_GE=y | 231 | CONFIG_MACH_MV88F6281GTW_GE=y |
196 | CONFIG_MACH_SHEEVAPLUG=y | 232 | CONFIG_MACH_SHEEVAPLUG=y |
197 | CONFIG_MACH_TS219=y | 233 | CONFIG_MACH_TS219=y |
234 | CONFIG_MACH_TS41X=y | ||
235 | CONFIG_MACH_OPENRD=y | ||
198 | CONFIG_MACH_OPENRD_BASE=y | 236 | CONFIG_MACH_OPENRD_BASE=y |
237 | CONFIG_MACH_OPENRD_CLIENT=y | ||
238 | CONFIG_MACH_NETSPACE_V2=y | ||
199 | CONFIG_PLAT_ORION=y | 239 | CONFIG_PLAT_ORION=y |
200 | 240 | ||
201 | # | 241 | # |
@@ -262,12 +302,10 @@ CONFIG_FLATMEM_MANUAL=y | |||
262 | CONFIG_FLATMEM=y | 302 | CONFIG_FLATMEM=y |
263 | CONFIG_FLAT_NODE_MEM_MAP=y | 303 | CONFIG_FLAT_NODE_MEM_MAP=y |
264 | CONFIG_PAGEFLAGS_EXTENDED=y | 304 | CONFIG_PAGEFLAGS_EXTENDED=y |
265 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | 305 | CONFIG_SPLIT_PTLOCK_CPUS=999999 |
266 | # CONFIG_PHYS_ADDR_T_64BIT is not set | 306 | # CONFIG_PHYS_ADDR_T_64BIT is not set |
267 | CONFIG_ZONE_DMA_FLAG=0 | 307 | CONFIG_ZONE_DMA_FLAG=0 |
268 | CONFIG_VIRT_TO_BUS=y | 308 | CONFIG_VIRT_TO_BUS=y |
269 | CONFIG_HAVE_MLOCK=y | ||
270 | CONFIG_HAVE_MLOCKED_PAGE_BIT=y | ||
271 | # CONFIG_KSM is not set | 309 | # CONFIG_KSM is not set |
272 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 | 310 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 |
273 | CONFIG_ALIGNMENT_TRAP=y | 311 | CONFIG_ALIGNMENT_TRAP=y |
@@ -398,15 +436,18 @@ CONFIG_NET_PKTGEN=m | |||
398 | # CONFIG_BT is not set | 436 | # CONFIG_BT is not set |
399 | # CONFIG_AF_RXRPC is not set | 437 | # CONFIG_AF_RXRPC is not set |
400 | CONFIG_WIRELESS=y | 438 | CONFIG_WIRELESS=y |
439 | CONFIG_WIRELESS_EXT=y | ||
440 | CONFIG_WEXT_CORE=y | ||
441 | CONFIG_WEXT_PROC=y | ||
442 | CONFIG_WEXT_SPY=y | ||
401 | CONFIG_CFG80211=y | 443 | CONFIG_CFG80211=y |
402 | # CONFIG_NL80211_TESTMODE is not set | 444 | # CONFIG_NL80211_TESTMODE is not set |
403 | # CONFIG_CFG80211_DEVELOPER_WARNINGS is not set | 445 | # CONFIG_CFG80211_DEVELOPER_WARNINGS is not set |
404 | # CONFIG_CFG80211_REG_DEBUG is not set | 446 | # CONFIG_CFG80211_REG_DEBUG is not set |
405 | CONFIG_CFG80211_DEFAULT_PS=y | 447 | CONFIG_CFG80211_DEFAULT_PS=y |
406 | CONFIG_CFG80211_DEFAULT_PS_VALUE=1 | ||
407 | # CONFIG_CFG80211_DEBUGFS is not set | 448 | # CONFIG_CFG80211_DEBUGFS is not set |
408 | CONFIG_WIRELESS_OLD_REGULATORY=y | 449 | CONFIG_WIRELESS_OLD_REGULATORY=y |
409 | CONFIG_WIRELESS_EXT=y | 450 | CONFIG_CFG80211_WEXT=y |
410 | CONFIG_WIRELESS_EXT_SYSFS=y | 451 | CONFIG_WIRELESS_EXT_SYSFS=y |
411 | CONFIG_LIB80211=y | 452 | CONFIG_LIB80211=y |
412 | # CONFIG_LIB80211_DEBUG is not set | 453 | # CONFIG_LIB80211_DEBUG is not set |
@@ -556,6 +597,10 @@ CONFIG_BLK_DEV=y | |||
556 | # CONFIG_BLK_DEV_COW_COMMON is not set | 597 | # CONFIG_BLK_DEV_COW_COMMON is not set |
557 | CONFIG_BLK_DEV_LOOP=y | 598 | CONFIG_BLK_DEV_LOOP=y |
558 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | 599 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set |
600 | |||
601 | # | ||
602 | # DRBD disabled because PROC_FS, INET or CONNECTOR not selected | ||
603 | # | ||
559 | # CONFIG_BLK_DEV_NBD is not set | 604 | # CONFIG_BLK_DEV_NBD is not set |
560 | # CONFIG_BLK_DEV_SX8 is not set | 605 | # CONFIG_BLK_DEV_SX8 is not set |
561 | # CONFIG_BLK_DEV_UB is not set | 606 | # CONFIG_BLK_DEV_UB is not set |
@@ -606,7 +651,9 @@ CONFIG_SCSI_LOWLEVEL=y | |||
606 | # CONFIG_SCSI_BNX2_ISCSI is not set | 651 | # CONFIG_SCSI_BNX2_ISCSI is not set |
607 | # CONFIG_BE2ISCSI is not set | 652 | # CONFIG_BE2ISCSI is not set |
608 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set | 653 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set |
654 | # CONFIG_SCSI_HPSA is not set | ||
609 | # CONFIG_SCSI_3W_9XXX is not set | 655 | # CONFIG_SCSI_3W_9XXX is not set |
656 | # CONFIG_SCSI_3W_SAS is not set | ||
610 | # CONFIG_SCSI_ACARD is not set | 657 | # CONFIG_SCSI_ACARD is not set |
611 | # CONFIG_SCSI_AACRAID is not set | 658 | # CONFIG_SCSI_AACRAID is not set |
612 | # CONFIG_SCSI_AIC7XXX is not set | 659 | # CONFIG_SCSI_AIC7XXX is not set |
@@ -642,6 +689,7 @@ CONFIG_SCSI_LOWLEVEL=y | |||
642 | # CONFIG_SCSI_NSP32 is not set | 689 | # CONFIG_SCSI_NSP32 is not set |
643 | # CONFIG_SCSI_DEBUG is not set | 690 | # CONFIG_SCSI_DEBUG is not set |
644 | # CONFIG_SCSI_PMCRAID is not set | 691 | # CONFIG_SCSI_PMCRAID is not set |
692 | # CONFIG_SCSI_PM8001 is not set | ||
645 | # CONFIG_SCSI_SRP is not set | 693 | # CONFIG_SCSI_SRP is not set |
646 | # CONFIG_SCSI_BFA_FC is not set | 694 | # CONFIG_SCSI_BFA_FC is not set |
647 | # CONFIG_SCSI_DH is not set | 695 | # CONFIG_SCSI_DH is not set |
@@ -696,15 +744,16 @@ CONFIG_SATA_MV=y | |||
696 | # CONFIG_PATA_NS87415 is not set | 744 | # CONFIG_PATA_NS87415 is not set |
697 | # CONFIG_PATA_OPTI is not set | 745 | # CONFIG_PATA_OPTI is not set |
698 | # CONFIG_PATA_OPTIDMA is not set | 746 | # CONFIG_PATA_OPTIDMA is not set |
747 | # CONFIG_PATA_PDC2027X is not set | ||
699 | # CONFIG_PATA_PDC_OLD is not set | 748 | # CONFIG_PATA_PDC_OLD is not set |
700 | # CONFIG_PATA_RADISYS is not set | 749 | # CONFIG_PATA_RADISYS is not set |
701 | # CONFIG_PATA_RDC is not set | 750 | # CONFIG_PATA_RDC is not set |
702 | # CONFIG_PATA_RZ1000 is not set | 751 | # CONFIG_PATA_RZ1000 is not set |
703 | # CONFIG_PATA_SC1200 is not set | 752 | # CONFIG_PATA_SC1200 is not set |
704 | # CONFIG_PATA_SERVERWORKS is not set | 753 | # CONFIG_PATA_SERVERWORKS is not set |
705 | # CONFIG_PATA_PDC2027X is not set | ||
706 | # CONFIG_PATA_SIL680 is not set | 754 | # CONFIG_PATA_SIL680 is not set |
707 | # CONFIG_PATA_SIS is not set | 755 | # CONFIG_PATA_SIS is not set |
756 | # CONFIG_PATA_TOSHIBA is not set | ||
708 | # CONFIG_PATA_VIA is not set | 757 | # CONFIG_PATA_VIA is not set |
709 | # CONFIG_PATA_WINBOND is not set | 758 | # CONFIG_PATA_WINBOND is not set |
710 | # CONFIG_PATA_SCH is not set | 759 | # CONFIG_PATA_SCH is not set |
@@ -720,7 +769,7 @@ CONFIG_SATA_MV=y | |||
720 | # | 769 | # |
721 | 770 | ||
722 | # | 771 | # |
723 | # See the help texts for more information. | 772 | # The newer stack is recommended. |
724 | # | 773 | # |
725 | # CONFIG_FIREWIRE is not set | 774 | # CONFIG_FIREWIRE is not set |
726 | # CONFIG_IEEE1394 is not set | 775 | # CONFIG_IEEE1394 is not set |
@@ -828,13 +877,6 @@ CONFIG_MV643XX_ETH=y | |||
828 | # CONFIG_NETDEV_10000 is not set | 877 | # CONFIG_NETDEV_10000 is not set |
829 | # CONFIG_TR is not set | 878 | # CONFIG_TR is not set |
830 | CONFIG_WLAN=y | 879 | CONFIG_WLAN=y |
831 | # CONFIG_WLAN_PRE80211 is not set | ||
832 | CONFIG_WLAN_80211=y | ||
833 | CONFIG_LIBERTAS=y | ||
834 | # CONFIG_LIBERTAS_USB is not set | ||
835 | CONFIG_LIBERTAS_SDIO=y | ||
836 | # CONFIG_LIBERTAS_SPI is not set | ||
837 | # CONFIG_LIBERTAS_DEBUG is not set | ||
838 | # CONFIG_LIBERTAS_THINFIRM is not set | 880 | # CONFIG_LIBERTAS_THINFIRM is not set |
839 | # CONFIG_ATMEL is not set | 881 | # CONFIG_ATMEL is not set |
840 | # CONFIG_AT76C50X_USB is not set | 882 | # CONFIG_AT76C50X_USB is not set |
@@ -846,19 +888,24 @@ CONFIG_LIBERTAS_SDIO=y | |||
846 | # CONFIG_ADM8211 is not set | 888 | # CONFIG_ADM8211 is not set |
847 | # CONFIG_MAC80211_HWSIM is not set | 889 | # CONFIG_MAC80211_HWSIM is not set |
848 | # CONFIG_MWL8K is not set | 890 | # CONFIG_MWL8K is not set |
849 | # CONFIG_P54_COMMON is not set | ||
850 | # CONFIG_ATH_COMMON is not set | 891 | # CONFIG_ATH_COMMON is not set |
892 | # CONFIG_B43 is not set | ||
893 | # CONFIG_B43LEGACY is not set | ||
894 | # CONFIG_HOSTAP is not set | ||
851 | # CONFIG_IPW2100 is not set | 895 | # CONFIG_IPW2100 is not set |
852 | # CONFIG_IPW2200 is not set | 896 | # CONFIG_IPW2200 is not set |
853 | # CONFIG_IWLWIFI is not set | 897 | # CONFIG_IWLWIFI is not set |
854 | # CONFIG_HOSTAP is not set | 898 | # CONFIG_IWM is not set |
855 | # CONFIG_B43 is not set | 899 | CONFIG_LIBERTAS=y |
856 | # CONFIG_B43LEGACY is not set | 900 | # CONFIG_LIBERTAS_USB is not set |
857 | # CONFIG_ZD1211RW is not set | 901 | CONFIG_LIBERTAS_SDIO=y |
858 | # CONFIG_RT2X00 is not set | 902 | # CONFIG_LIBERTAS_SPI is not set |
903 | # CONFIG_LIBERTAS_DEBUG is not set | ||
859 | # CONFIG_HERMES is not set | 904 | # CONFIG_HERMES is not set |
905 | # CONFIG_P54_COMMON is not set | ||
906 | # CONFIG_RT2X00 is not set | ||
860 | # CONFIG_WL12XX is not set | 907 | # CONFIG_WL12XX is not set |
861 | # CONFIG_IWM is not set | 908 | # CONFIG_ZD1211RW is not set |
862 | 909 | ||
863 | # | 910 | # |
864 | # Enable WiMAX (Networking options) to see the WiMAX drivers | 911 | # Enable WiMAX (Networking options) to see the WiMAX drivers |
@@ -881,6 +928,7 @@ CONFIG_LIBERTAS_SDIO=y | |||
881 | # CONFIG_NETCONSOLE is not set | 928 | # CONFIG_NETCONSOLE is not set |
882 | # CONFIG_NETPOLL is not set | 929 | # CONFIG_NETPOLL is not set |
883 | # CONFIG_NET_POLL_CONTROLLER is not set | 930 | # CONFIG_NET_POLL_CONTROLLER is not set |
931 | # CONFIG_VMXNET3 is not set | ||
884 | # CONFIG_ISDN is not set | 932 | # CONFIG_ISDN is not set |
885 | # CONFIG_PHONE is not set | 933 | # CONFIG_PHONE is not set |
886 | 934 | ||
@@ -890,6 +938,7 @@ CONFIG_LIBERTAS_SDIO=y | |||
890 | CONFIG_INPUT=y | 938 | CONFIG_INPUT=y |
891 | # CONFIG_INPUT_FF_MEMLESS is not set | 939 | # CONFIG_INPUT_FF_MEMLESS is not set |
892 | # CONFIG_INPUT_POLLDEV is not set | 940 | # CONFIG_INPUT_POLLDEV is not set |
941 | # CONFIG_INPUT_SPARSEKMAP is not set | ||
893 | 942 | ||
894 | # | 943 | # |
895 | # Userland interfaces | 944 | # Userland interfaces |
@@ -933,6 +982,7 @@ CONFIG_SERIO_SERPORT=y | |||
933 | # CONFIG_SERIO_PCIPS2 is not set | 982 | # CONFIG_SERIO_PCIPS2 is not set |
934 | CONFIG_SERIO_LIBPS2=y | 983 | CONFIG_SERIO_LIBPS2=y |
935 | # CONFIG_SERIO_RAW is not set | 984 | # CONFIG_SERIO_RAW is not set |
985 | # CONFIG_SERIO_ALTERA_PS2 is not set | ||
936 | # CONFIG_GAMEPORT is not set | 986 | # CONFIG_GAMEPORT is not set |
937 | 987 | ||
938 | # | 988 | # |
@@ -1019,11 +1069,6 @@ CONFIG_I2C_MV64XXX=y | |||
1019 | # CONFIG_I2C_TINY_USB is not set | 1069 | # CONFIG_I2C_TINY_USB is not set |
1020 | 1070 | ||
1021 | # | 1071 | # |
1022 | # Graphics adapter I2C/DDC channel drivers | ||
1023 | # | ||
1024 | # CONFIG_I2C_VOODOO3 is not set | ||
1025 | |||
1026 | # | ||
1027 | # Other I2C/SMBus bus drivers | 1072 | # Other I2C/SMBus bus drivers |
1028 | # | 1073 | # |
1029 | # CONFIG_I2C_PCA_PLATFORM is not set | 1074 | # CONFIG_I2C_PCA_PLATFORM is not set |
@@ -1032,7 +1077,6 @@ CONFIG_I2C_MV64XXX=y | |||
1032 | # | 1077 | # |
1033 | # Miscellaneous I2C Chip support | 1078 | # Miscellaneous I2C Chip support |
1034 | # | 1079 | # |
1035 | # CONFIG_DS1682 is not set | ||
1036 | # CONFIG_SENSORS_TSL2550 is not set | 1080 | # CONFIG_SENSORS_TSL2550 is not set |
1037 | # CONFIG_I2C_DEBUG_CORE is not set | 1081 | # CONFIG_I2C_DEBUG_CORE is not set |
1038 | # CONFIG_I2C_DEBUG_ALGO is not set | 1082 | # CONFIG_I2C_DEBUG_ALGO is not set |
@@ -1048,6 +1092,8 @@ CONFIG_SPI_MASTER=y | |||
1048 | # CONFIG_SPI_BITBANG is not set | 1092 | # CONFIG_SPI_BITBANG is not set |
1049 | # CONFIG_SPI_GPIO is not set | 1093 | # CONFIG_SPI_GPIO is not set |
1050 | CONFIG_SPI_ORION=y | 1094 | CONFIG_SPI_ORION=y |
1095 | # CONFIG_SPI_XILINX is not set | ||
1096 | # CONFIG_SPI_DESIGNWARE is not set | ||
1051 | 1097 | ||
1052 | # | 1098 | # |
1053 | # SPI Protocol Masters | 1099 | # SPI Protocol Masters |
@@ -1074,10 +1120,12 @@ CONFIG_GPIO_SYSFS=y | |||
1074 | # CONFIG_GPIO_MAX732X is not set | 1120 | # CONFIG_GPIO_MAX732X is not set |
1075 | # CONFIG_GPIO_PCA953X is not set | 1121 | # CONFIG_GPIO_PCA953X is not set |
1076 | # CONFIG_GPIO_PCF857X is not set | 1122 | # CONFIG_GPIO_PCF857X is not set |
1123 | # CONFIG_GPIO_ADP5588 is not set | ||
1077 | 1124 | ||
1078 | # | 1125 | # |
1079 | # PCI GPIO expanders: | 1126 | # PCI GPIO expanders: |
1080 | # | 1127 | # |
1128 | # CONFIG_GPIO_CS5535 is not set | ||
1081 | # CONFIG_GPIO_BT8XX is not set | 1129 | # CONFIG_GPIO_BT8XX is not set |
1082 | # CONFIG_GPIO_LANGWELL is not set | 1130 | # CONFIG_GPIO_LANGWELL is not set |
1083 | 1131 | ||
@@ -1116,6 +1164,7 @@ CONFIG_SSB_POSSIBLE=y | |||
1116 | # CONFIG_MFD_TMIO is not set | 1164 | # CONFIG_MFD_TMIO is not set |
1117 | # CONFIG_MFD_TC6393XB is not set | 1165 | # CONFIG_MFD_TC6393XB is not set |
1118 | # CONFIG_PMIC_DA903X is not set | 1166 | # CONFIG_PMIC_DA903X is not set |
1167 | # CONFIG_PMIC_ADP5520 is not set | ||
1119 | # CONFIG_MFD_WM8400 is not set | 1168 | # CONFIG_MFD_WM8400 is not set |
1120 | # CONFIG_MFD_WM831X is not set | 1169 | # CONFIG_MFD_WM831X is not set |
1121 | # CONFIG_MFD_WM8350_I2C is not set | 1170 | # CONFIG_MFD_WM8350_I2C is not set |
@@ -1123,6 +1172,8 @@ CONFIG_SSB_POSSIBLE=y | |||
1123 | # CONFIG_MFD_MC13783 is not set | 1172 | # CONFIG_MFD_MC13783 is not set |
1124 | # CONFIG_AB3100_CORE is not set | 1173 | # CONFIG_AB3100_CORE is not set |
1125 | # CONFIG_EZX_PCAP is not set | 1174 | # CONFIG_EZX_PCAP is not set |
1175 | # CONFIG_MFD_88PM8607 is not set | ||
1176 | # CONFIG_AB4500_CORE is not set | ||
1126 | # CONFIG_REGULATOR is not set | 1177 | # CONFIG_REGULATOR is not set |
1127 | # CONFIG_MEDIA_SUPPORT is not set | 1178 | # CONFIG_MEDIA_SUPPORT is not set |
1128 | 1179 | ||
@@ -1305,6 +1356,7 @@ CONFIG_USB_STORAGE_JUMPSHOT=y | |||
1305 | # OTG and related infrastructure | 1356 | # OTG and related infrastructure |
1306 | # | 1357 | # |
1307 | # CONFIG_USB_GPIO_VBUS is not set | 1358 | # CONFIG_USB_GPIO_VBUS is not set |
1359 | # CONFIG_USB_ULPI is not set | ||
1308 | # CONFIG_NOP_USB_XCEIV is not set | 1360 | # CONFIG_NOP_USB_XCEIV is not set |
1309 | # CONFIG_UWB is not set | 1361 | # CONFIG_UWB is not set |
1310 | CONFIG_MMC=y | 1362 | CONFIG_MMC=y |
@@ -1344,6 +1396,7 @@ CONFIG_LEDS_GPIO_PLATFORM=y | |||
1344 | # CONFIG_LEDS_PCA955X is not set | 1396 | # CONFIG_LEDS_PCA955X is not set |
1345 | # CONFIG_LEDS_DAC124S085 is not set | 1397 | # CONFIG_LEDS_DAC124S085 is not set |
1346 | # CONFIG_LEDS_BD2802 is not set | 1398 | # CONFIG_LEDS_BD2802 is not set |
1399 | # CONFIG_LEDS_LT3593 is not set | ||
1347 | 1400 | ||
1348 | # | 1401 | # |
1349 | # LED Triggers | 1402 | # LED Triggers |
@@ -1388,6 +1441,7 @@ CONFIG_RTC_INTF_DEV=y | |||
1388 | # CONFIG_RTC_DRV_PCF8563 is not set | 1441 | # CONFIG_RTC_DRV_PCF8563 is not set |
1389 | # CONFIG_RTC_DRV_PCF8583 is not set | 1442 | # CONFIG_RTC_DRV_PCF8583 is not set |
1390 | # CONFIG_RTC_DRV_M41T80 is not set | 1443 | # CONFIG_RTC_DRV_M41T80 is not set |
1444 | # CONFIG_RTC_DRV_BQ32K is not set | ||
1391 | CONFIG_RTC_DRV_S35390A=y | 1445 | CONFIG_RTC_DRV_S35390A=y |
1392 | # CONFIG_RTC_DRV_FM3130 is not set | 1446 | # CONFIG_RTC_DRV_FM3130 is not set |
1393 | # CONFIG_RTC_DRV_RX8581 is not set | 1447 | # CONFIG_RTC_DRV_RX8581 is not set |
@@ -1417,7 +1471,9 @@ CONFIG_RTC_DRV_S35390A=y | |||
1417 | # CONFIG_RTC_DRV_M48T86 is not set | 1471 | # CONFIG_RTC_DRV_M48T86 is not set |
1418 | # CONFIG_RTC_DRV_M48T35 is not set | 1472 | # CONFIG_RTC_DRV_M48T35 is not set |
1419 | # CONFIG_RTC_DRV_M48T59 is not set | 1473 | # CONFIG_RTC_DRV_M48T59 is not set |
1474 | # CONFIG_RTC_DRV_MSM6242 is not set | ||
1420 | # CONFIG_RTC_DRV_BQ4802 is not set | 1475 | # CONFIG_RTC_DRV_BQ4802 is not set |
1476 | # CONFIG_RTC_DRV_RP5C01 is not set | ||
1421 | # CONFIG_RTC_DRV_V3020 is not set | 1477 | # CONFIG_RTC_DRV_V3020 is not set |
1422 | 1478 | ||
1423 | # | 1479 | # |
@@ -1684,7 +1740,9 @@ CONFIG_DEBUG_USER=y | |||
1684 | CONFIG_DEBUG_ERRORS=y | 1740 | CONFIG_DEBUG_ERRORS=y |
1685 | # CONFIG_DEBUG_STACK_USAGE is not set | 1741 | # CONFIG_DEBUG_STACK_USAGE is not set |
1686 | CONFIG_DEBUG_LL=y | 1742 | CONFIG_DEBUG_LL=y |
1743 | # CONFIG_EARLY_PRINTK is not set | ||
1687 | # CONFIG_DEBUG_ICEDCC is not set | 1744 | # CONFIG_DEBUG_ICEDCC is not set |
1745 | # CONFIG_OC_ETM is not set | ||
1688 | 1746 | ||
1689 | # | 1747 | # |
1690 | # Security options | 1748 | # Security options |
@@ -1692,7 +1750,11 @@ CONFIG_DEBUG_LL=y | |||
1692 | # CONFIG_KEYS is not set | 1750 | # CONFIG_KEYS is not set |
1693 | # CONFIG_SECURITY is not set | 1751 | # CONFIG_SECURITY is not set |
1694 | # CONFIG_SECURITYFS is not set | 1752 | # CONFIG_SECURITYFS is not set |
1695 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | 1753 | # CONFIG_DEFAULT_SECURITY_SELINUX is not set |
1754 | # CONFIG_DEFAULT_SECURITY_SMACK is not set | ||
1755 | # CONFIG_DEFAULT_SECURITY_TOMOYO is not set | ||
1756 | CONFIG_DEFAULT_SECURITY_DAC=y | ||
1757 | CONFIG_DEFAULT_SECURITY="" | ||
1696 | CONFIG_CRYPTO=y | 1758 | CONFIG_CRYPTO=y |
1697 | 1759 | ||
1698 | # | 1760 | # |
diff --git a/arch/arm/configs/mmp2_defconfig b/arch/arm/configs/mmp2_defconfig new file mode 100644 index 00000000000..03f76cfc941 --- /dev/null +++ b/arch/arm/configs/mmp2_defconfig | |||
@@ -0,0 +1,1194 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.33-rc2 | ||
4 | # Tue Jan 5 13:55:22 2010 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | ||
8 | CONFIG_GENERIC_GPIO=y | ||
9 | CONFIG_GENERIC_TIME=y | ||
10 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
11 | CONFIG_GENERIC_HARDIRQS=y | ||
12 | CONFIG_STACKTRACE_SUPPORT=y | ||
13 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | ||
14 | CONFIG_LOCKDEP_SUPPORT=y | ||
15 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
16 | CONFIG_HARDIRQS_SW_RESEND=y | ||
17 | CONFIG_GENERIC_IRQ_PROBE=y | ||
18 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
19 | CONFIG_GENERIC_HWEIGHT=y | ||
20 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
21 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y | ||
22 | CONFIG_VECTORS_BASE=0xffff0000 | ||
23 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
24 | CONFIG_CONSTRUCTORS=y | ||
25 | |||
26 | # | ||
27 | # General setup | ||
28 | # | ||
29 | CONFIG_EXPERIMENTAL=y | ||
30 | CONFIG_BROKEN_ON_SMP=y | ||
31 | CONFIG_LOCK_KERNEL=y | ||
32 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
33 | CONFIG_LOCALVERSION="" | ||
34 | CONFIG_LOCALVERSION_AUTO=y | ||
35 | CONFIG_SWAP=y | ||
36 | CONFIG_SYSVIPC=y | ||
37 | CONFIG_SYSVIPC_SYSCTL=y | ||
38 | # CONFIG_POSIX_MQUEUE is not set | ||
39 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
40 | # CONFIG_TASKSTATS is not set | ||
41 | # CONFIG_AUDIT is not set | ||
42 | |||
43 | # | ||
44 | # RCU Subsystem | ||
45 | # | ||
46 | CONFIG_TREE_RCU=y | ||
47 | # CONFIG_TREE_PREEMPT_RCU is not set | ||
48 | # CONFIG_TINY_RCU is not set | ||
49 | # CONFIG_RCU_TRACE is not set | ||
50 | CONFIG_RCU_FANOUT=32 | ||
51 | # CONFIG_RCU_FANOUT_EXACT is not set | ||
52 | # CONFIG_TREE_RCU_TRACE is not set | ||
53 | # CONFIG_IKCONFIG is not set | ||
54 | CONFIG_LOG_BUF_SHIFT=14 | ||
55 | # CONFIG_GROUP_SCHED is not set | ||
56 | # CONFIG_CGROUPS is not set | ||
57 | CONFIG_SYSFS_DEPRECATED=y | ||
58 | CONFIG_SYSFS_DEPRECATED_V2=y | ||
59 | # CONFIG_RELAY is not set | ||
60 | CONFIG_NAMESPACES=y | ||
61 | # CONFIG_UTS_NS is not set | ||
62 | # CONFIG_IPC_NS is not set | ||
63 | # CONFIG_USER_NS is not set | ||
64 | # CONFIG_PID_NS is not set | ||
65 | # CONFIG_NET_NS is not set | ||
66 | # CONFIG_BLK_DEV_INITRD is not set | ||
67 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
68 | CONFIG_SYSCTL=y | ||
69 | CONFIG_ANON_INODES=y | ||
70 | # CONFIG_EMBEDDED is not set | ||
71 | CONFIG_UID16=y | ||
72 | CONFIG_SYSCTL_SYSCALL=y | ||
73 | CONFIG_KALLSYMS=y | ||
74 | # CONFIG_KALLSYMS_ALL is not set | ||
75 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
76 | CONFIG_HOTPLUG=y | ||
77 | CONFIG_PRINTK=y | ||
78 | CONFIG_BUG=y | ||
79 | CONFIG_ELF_CORE=y | ||
80 | CONFIG_BASE_FULL=y | ||
81 | CONFIG_FUTEX=y | ||
82 | CONFIG_EPOLL=y | ||
83 | CONFIG_SIGNALFD=y | ||
84 | CONFIG_TIMERFD=y | ||
85 | CONFIG_EVENTFD=y | ||
86 | CONFIG_SHMEM=y | ||
87 | CONFIG_AIO=y | ||
88 | |||
89 | # | ||
90 | # Kernel Performance Events And Counters | ||
91 | # | ||
92 | CONFIG_VM_EVENT_COUNTERS=y | ||
93 | CONFIG_COMPAT_BRK=y | ||
94 | CONFIG_SLAB=y | ||
95 | # CONFIG_SLUB is not set | ||
96 | # CONFIG_SLOB is not set | ||
97 | # CONFIG_PROFILING is not set | ||
98 | CONFIG_HAVE_OPROFILE=y | ||
99 | # CONFIG_KPROBES is not set | ||
100 | CONFIG_HAVE_KPROBES=y | ||
101 | CONFIG_HAVE_KRETPROBES=y | ||
102 | CONFIG_HAVE_CLK=y | ||
103 | |||
104 | # | ||
105 | # GCOV-based kernel profiling | ||
106 | # | ||
107 | # CONFIG_SLOW_WORK is not set | ||
108 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | ||
109 | CONFIG_SLABINFO=y | ||
110 | CONFIG_RT_MUTEXES=y | ||
111 | CONFIG_BASE_SMALL=0 | ||
112 | CONFIG_MODULES=y | ||
113 | # CONFIG_MODULE_FORCE_LOAD is not set | ||
114 | CONFIG_MODULE_UNLOAD=y | ||
115 | CONFIG_MODULE_FORCE_UNLOAD=y | ||
116 | # CONFIG_MODVERSIONS is not set | ||
117 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
118 | CONFIG_BLOCK=y | ||
119 | CONFIG_LBDAF=y | ||
120 | # CONFIG_BLK_DEV_BSG is not set | ||
121 | # CONFIG_BLK_DEV_INTEGRITY is not set | ||
122 | |||
123 | # | ||
124 | # IO Schedulers | ||
125 | # | ||
126 | CONFIG_IOSCHED_NOOP=y | ||
127 | CONFIG_IOSCHED_DEADLINE=y | ||
128 | CONFIG_IOSCHED_CFQ=y | ||
129 | # CONFIG_DEFAULT_DEADLINE is not set | ||
130 | CONFIG_DEFAULT_CFQ=y | ||
131 | # CONFIG_DEFAULT_NOOP is not set | ||
132 | CONFIG_DEFAULT_IOSCHED="cfq" | ||
133 | # CONFIG_INLINE_SPIN_TRYLOCK is not set | ||
134 | # CONFIG_INLINE_SPIN_TRYLOCK_BH is not set | ||
135 | # CONFIG_INLINE_SPIN_LOCK is not set | ||
136 | # CONFIG_INLINE_SPIN_LOCK_BH is not set | ||
137 | # CONFIG_INLINE_SPIN_LOCK_IRQ is not set | ||
138 | # CONFIG_INLINE_SPIN_LOCK_IRQSAVE is not set | ||
139 | # CONFIG_INLINE_SPIN_UNLOCK is not set | ||
140 | # CONFIG_INLINE_SPIN_UNLOCK_BH is not set | ||
141 | # CONFIG_INLINE_SPIN_UNLOCK_IRQ is not set | ||
142 | # CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE is not set | ||
143 | # CONFIG_INLINE_READ_TRYLOCK is not set | ||
144 | # CONFIG_INLINE_READ_LOCK is not set | ||
145 | # CONFIG_INLINE_READ_LOCK_BH is not set | ||
146 | # CONFIG_INLINE_READ_LOCK_IRQ is not set | ||
147 | # CONFIG_INLINE_READ_LOCK_IRQSAVE is not set | ||
148 | # CONFIG_INLINE_READ_UNLOCK is not set | ||
149 | # CONFIG_INLINE_READ_UNLOCK_BH is not set | ||
150 | # CONFIG_INLINE_READ_UNLOCK_IRQ is not set | ||
151 | # CONFIG_INLINE_READ_UNLOCK_IRQRESTORE is not set | ||
152 | # CONFIG_INLINE_WRITE_TRYLOCK is not set | ||
153 | # CONFIG_INLINE_WRITE_LOCK is not set | ||
154 | # CONFIG_INLINE_WRITE_LOCK_BH is not set | ||
155 | # CONFIG_INLINE_WRITE_LOCK_IRQ is not set | ||
156 | # CONFIG_INLINE_WRITE_LOCK_IRQSAVE is not set | ||
157 | # CONFIG_INLINE_WRITE_UNLOCK is not set | ||
158 | # CONFIG_INLINE_WRITE_UNLOCK_BH is not set | ||
159 | # CONFIG_INLINE_WRITE_UNLOCK_IRQ is not set | ||
160 | # CONFIG_INLINE_WRITE_UNLOCK_IRQRESTORE is not set | ||
161 | # CONFIG_MUTEX_SPIN_ON_OWNER is not set | ||
162 | # CONFIG_FREEZER is not set | ||
163 | |||
164 | # | ||
165 | # System Type | ||
166 | # | ||
167 | CONFIG_MMU=y | ||
168 | # CONFIG_ARCH_AAEC2000 is not set | ||
169 | # CONFIG_ARCH_INTEGRATOR is not set | ||
170 | # CONFIG_ARCH_REALVIEW is not set | ||
171 | # CONFIG_ARCH_VERSATILE is not set | ||
172 | # CONFIG_ARCH_AT91 is not set | ||
173 | # CONFIG_ARCH_CLPS711X is not set | ||
174 | # CONFIG_ARCH_GEMINI is not set | ||
175 | # CONFIG_ARCH_EBSA110 is not set | ||
176 | # CONFIG_ARCH_EP93XX is not set | ||
177 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
178 | # CONFIG_ARCH_MXC is not set | ||
179 | # CONFIG_ARCH_STMP3XXX is not set | ||
180 | # CONFIG_ARCH_NETX is not set | ||
181 | # CONFIG_ARCH_H720X is not set | ||
182 | # CONFIG_ARCH_NOMADIK is not set | ||
183 | # CONFIG_ARCH_IOP13XX is not set | ||
184 | # CONFIG_ARCH_IOP32X is not set | ||
185 | # CONFIG_ARCH_IOP33X is not set | ||
186 | # CONFIG_ARCH_IXP23XX is not set | ||
187 | # CONFIG_ARCH_IXP2000 is not set | ||
188 | # CONFIG_ARCH_IXP4XX is not set | ||
189 | # CONFIG_ARCH_L7200 is not set | ||
190 | # CONFIG_ARCH_DOVE is not set | ||
191 | # CONFIG_ARCH_KIRKWOOD is not set | ||
192 | # CONFIG_ARCH_LOKI is not set | ||
193 | # CONFIG_ARCH_MV78XX0 is not set | ||
194 | # CONFIG_ARCH_ORION5X is not set | ||
195 | CONFIG_ARCH_MMP=y | ||
196 | # CONFIG_ARCH_KS8695 is not set | ||
197 | # CONFIG_ARCH_NS9XXX is not set | ||
198 | # CONFIG_ARCH_W90X900 is not set | ||
199 | # CONFIG_ARCH_PNX4008 is not set | ||
200 | # CONFIG_ARCH_PXA is not set | ||
201 | # CONFIG_ARCH_MSM is not set | ||
202 | # CONFIG_ARCH_RPC is not set | ||
203 | # CONFIG_ARCH_SA1100 is not set | ||
204 | # CONFIG_ARCH_S3C2410 is not set | ||
205 | # CONFIG_ARCH_S3C64XX is not set | ||
206 | # CONFIG_ARCH_S5PC1XX is not set | ||
207 | # CONFIG_ARCH_SHARK is not set | ||
208 | # CONFIG_ARCH_LH7A40X is not set | ||
209 | # CONFIG_ARCH_U300 is not set | ||
210 | # CONFIG_ARCH_DAVINCI is not set | ||
211 | # CONFIG_ARCH_OMAP is not set | ||
212 | # CONFIG_ARCH_BCMRING is not set | ||
213 | # CONFIG_ARCH_U8500 is not set | ||
214 | # CONFIG_MACH_TAVOREVB is not set | ||
215 | |||
216 | # | ||
217 | # Marvell PXA168/910/MMP2 Implmentations | ||
218 | # | ||
219 | # CONFIG_MACH_ASPENITE is not set | ||
220 | # CONFIG_MACH_ZYLONITE2 is not set | ||
221 | # CONFIG_MACH_TTC_DKB is not set | ||
222 | CONFIG_MACH_FLINT=y | ||
223 | CONFIG_CPU_MMP2=y | ||
224 | CONFIG_PLAT_PXA=y | ||
225 | |||
226 | # | ||
227 | # Processor Type | ||
228 | # | ||
229 | CONFIG_CPU_V6=y | ||
230 | CONFIG_CPU_32v6K=y | ||
231 | CONFIG_CPU_32v6=y | ||
232 | CONFIG_CPU_ABRT_EV6=y | ||
233 | CONFIG_CPU_PABRT_V6=y | ||
234 | CONFIG_CPU_CACHE_V6=y | ||
235 | CONFIG_CPU_CACHE_VIPT=y | ||
236 | CONFIG_CPU_COPY_V6=y | ||
237 | CONFIG_CPU_TLB_V6=y | ||
238 | CONFIG_CPU_HAS_ASID=y | ||
239 | CONFIG_CPU_CP15=y | ||
240 | CONFIG_CPU_CP15_MMU=y | ||
241 | |||
242 | # | ||
243 | # Processor Features | ||
244 | # | ||
245 | CONFIG_ARM_THUMB=y | ||
246 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
247 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
248 | # CONFIG_CPU_BPREDICT_DISABLE is not set | ||
249 | CONFIG_ARM_L1_CACHE_SHIFT=5 | ||
250 | # CONFIG_ARM_ERRATA_411920 is not set | ||
251 | CONFIG_COMMON_CLKDEV=y | ||
252 | |||
253 | # | ||
254 | # Bus support | ||
255 | # | ||
256 | # CONFIG_PCI_SYSCALL is not set | ||
257 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
258 | # CONFIG_PCCARD is not set | ||
259 | |||
260 | # | ||
261 | # Kernel Features | ||
262 | # | ||
263 | CONFIG_TICK_ONESHOT=y | ||
264 | # CONFIG_NO_HZ is not set | ||
265 | CONFIG_HIGH_RES_TIMERS=y | ||
266 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
267 | CONFIG_VMSPLIT_3G=y | ||
268 | # CONFIG_VMSPLIT_2G is not set | ||
269 | # CONFIG_VMSPLIT_1G is not set | ||
270 | CONFIG_PAGE_OFFSET=0xC0000000 | ||
271 | # CONFIG_PREEMPT_NONE is not set | ||
272 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
273 | CONFIG_PREEMPT=y | ||
274 | CONFIG_HZ=100 | ||
275 | CONFIG_AEABI=y | ||
276 | CONFIG_OABI_COMPAT=y | ||
277 | # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set | ||
278 | # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set | ||
279 | # CONFIG_HIGHMEM is not set | ||
280 | CONFIG_SELECT_MEMORY_MODEL=y | ||
281 | CONFIG_FLATMEM_MANUAL=y | ||
282 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
283 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
284 | CONFIG_FLATMEM=y | ||
285 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
286 | CONFIG_PAGEFLAGS_EXTENDED=y | ||
287 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
288 | # CONFIG_PHYS_ADDR_T_64BIT is not set | ||
289 | CONFIG_ZONE_DMA_FLAG=0 | ||
290 | CONFIG_VIRT_TO_BUS=y | ||
291 | # CONFIG_KSM is not set | ||
292 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 | ||
293 | CONFIG_ALIGNMENT_TRAP=y | ||
294 | # CONFIG_UACCESS_WITH_MEMCPY is not set | ||
295 | |||
296 | # | ||
297 | # Boot options | ||
298 | # | ||
299 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
300 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
301 | CONFIG_CMDLINE="root=/dev/nfs rootfstype=nfs nfsroot=192.168.1.100:/nfsroot/ ip=192.168.1.101:192.168.1.100::255.255.255.0::eth0:on console=ttyS0,115200 mem=128M user_debug=255" | ||
302 | # CONFIG_XIP_KERNEL is not set | ||
303 | # CONFIG_KEXEC is not set | ||
304 | |||
305 | # | ||
306 | # CPU Power Management | ||
307 | # | ||
308 | # CONFIG_CPU_IDLE is not set | ||
309 | |||
310 | # | ||
311 | # Floating point emulation | ||
312 | # | ||
313 | |||
314 | # | ||
315 | # At least one emulation must be selected | ||
316 | # | ||
317 | # CONFIG_FPE_NWFPE is not set | ||
318 | # CONFIG_FPE_FASTFPE is not set | ||
319 | CONFIG_VFP=y | ||
320 | |||
321 | # | ||
322 | # Userspace binary formats | ||
323 | # | ||
324 | CONFIG_BINFMT_ELF=y | ||
325 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set | ||
326 | CONFIG_HAVE_AOUT=y | ||
327 | # CONFIG_BINFMT_AOUT is not set | ||
328 | # CONFIG_BINFMT_MISC is not set | ||
329 | |||
330 | # | ||
331 | # Power management options | ||
332 | # | ||
333 | # CONFIG_PM is not set | ||
334 | CONFIG_ARCH_SUSPEND_POSSIBLE=y | ||
335 | CONFIG_NET=y | ||
336 | |||
337 | # | ||
338 | # Networking options | ||
339 | # | ||
340 | CONFIG_PACKET=y | ||
341 | # CONFIG_PACKET_MMAP is not set | ||
342 | CONFIG_UNIX=y | ||
343 | CONFIG_XFRM=y | ||
344 | # CONFIG_XFRM_USER is not set | ||
345 | # CONFIG_XFRM_SUB_POLICY is not set | ||
346 | # CONFIG_XFRM_MIGRATE is not set | ||
347 | # CONFIG_XFRM_STATISTICS is not set | ||
348 | # CONFIG_NET_KEY is not set | ||
349 | CONFIG_INET=y | ||
350 | # CONFIG_IP_MULTICAST is not set | ||
351 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
352 | CONFIG_IP_FIB_HASH=y | ||
353 | CONFIG_IP_PNP=y | ||
354 | # CONFIG_IP_PNP_DHCP is not set | ||
355 | # CONFIG_IP_PNP_BOOTP is not set | ||
356 | # CONFIG_IP_PNP_RARP is not set | ||
357 | # CONFIG_NET_IPIP is not set | ||
358 | # CONFIG_NET_IPGRE is not set | ||
359 | # CONFIG_ARPD is not set | ||
360 | # CONFIG_SYN_COOKIES is not set | ||
361 | # CONFIG_INET_AH is not set | ||
362 | # CONFIG_INET_ESP is not set | ||
363 | # CONFIG_INET_IPCOMP is not set | ||
364 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
365 | # CONFIG_INET_TUNNEL is not set | ||
366 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | ||
367 | CONFIG_INET_XFRM_MODE_TUNNEL=y | ||
368 | CONFIG_INET_XFRM_MODE_BEET=y | ||
369 | # CONFIG_INET_LRO is not set | ||
370 | CONFIG_INET_DIAG=y | ||
371 | CONFIG_INET_TCP_DIAG=y | ||
372 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
373 | CONFIG_TCP_CONG_CUBIC=y | ||
374 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
375 | # CONFIG_TCP_MD5SIG is not set | ||
376 | # CONFIG_IPV6 is not set | ||
377 | # CONFIG_NETWORK_SECMARK is not set | ||
378 | # CONFIG_NETFILTER is not set | ||
379 | # CONFIG_IP_DCCP is not set | ||
380 | # CONFIG_IP_SCTP is not set | ||
381 | # CONFIG_RDS is not set | ||
382 | # CONFIG_TIPC is not set | ||
383 | # CONFIG_ATM is not set | ||
384 | # CONFIG_BRIDGE is not set | ||
385 | # CONFIG_NET_DSA is not set | ||
386 | # CONFIG_VLAN_8021Q is not set | ||
387 | # CONFIG_DECNET is not set | ||
388 | # CONFIG_LLC2 is not set | ||
389 | # CONFIG_IPX is not set | ||
390 | # CONFIG_ATALK is not set | ||
391 | # CONFIG_X25 is not set | ||
392 | # CONFIG_LAPB is not set | ||
393 | # CONFIG_ECONET is not set | ||
394 | # CONFIG_WAN_ROUTER is not set | ||
395 | # CONFIG_PHONET is not set | ||
396 | # CONFIG_IEEE802154 is not set | ||
397 | # CONFIG_NET_SCHED is not set | ||
398 | # CONFIG_DCB is not set | ||
399 | |||
400 | # | ||
401 | # Network testing | ||
402 | # | ||
403 | # CONFIG_NET_PKTGEN is not set | ||
404 | # CONFIG_HAMRADIO is not set | ||
405 | # CONFIG_CAN is not set | ||
406 | # CONFIG_IRDA is not set | ||
407 | # CONFIG_BT is not set | ||
408 | # CONFIG_AF_RXRPC is not set | ||
409 | CONFIG_WIRELESS=y | ||
410 | # CONFIG_CFG80211 is not set | ||
411 | # CONFIG_LIB80211 is not set | ||
412 | |||
413 | # | ||
414 | # CFG80211 needs to be enabled for MAC80211 | ||
415 | # | ||
416 | # CONFIG_WIMAX is not set | ||
417 | # CONFIG_RFKILL is not set | ||
418 | # CONFIG_NET_9P is not set | ||
419 | |||
420 | # | ||
421 | # Device Drivers | ||
422 | # | ||
423 | |||
424 | # | ||
425 | # Generic Driver Options | ||
426 | # | ||
427 | CONFIG_UEVENT_HELPER_PATH="" | ||
428 | # CONFIG_DEVTMPFS is not set | ||
429 | # CONFIG_STANDALONE is not set | ||
430 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set | ||
431 | CONFIG_FW_LOADER=y | ||
432 | CONFIG_FIRMWARE_IN_KERNEL=y | ||
433 | CONFIG_EXTRA_FIRMWARE="" | ||
434 | # CONFIG_DEBUG_DRIVER is not set | ||
435 | # CONFIG_DEBUG_DEVRES is not set | ||
436 | # CONFIG_SYS_HYPERVISOR is not set | ||
437 | # CONFIG_CONNECTOR is not set | ||
438 | CONFIG_MTD=y | ||
439 | # CONFIG_MTD_DEBUG is not set | ||
440 | # CONFIG_MTD_TESTS is not set | ||
441 | # CONFIG_MTD_CONCAT is not set | ||
442 | CONFIG_MTD_PARTITIONS=y | ||
443 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
444 | CONFIG_MTD_CMDLINE_PARTS=y | ||
445 | # CONFIG_MTD_AFS_PARTS is not set | ||
446 | # CONFIG_MTD_AR7_PARTS is not set | ||
447 | |||
448 | # | ||
449 | # User Modules And Translation Layers | ||
450 | # | ||
451 | # CONFIG_MTD_CHAR is not set | ||
452 | CONFIG_MTD_BLKDEVS=y | ||
453 | CONFIG_MTD_BLOCK=y | ||
454 | # CONFIG_FTL is not set | ||
455 | # CONFIG_NFTL is not set | ||
456 | # CONFIG_INFTL is not set | ||
457 | # CONFIG_RFD_FTL is not set | ||
458 | # CONFIG_SSFDC is not set | ||
459 | # CONFIG_MTD_OOPS is not set | ||
460 | |||
461 | # | ||
462 | # RAM/ROM/Flash chip drivers | ||
463 | # | ||
464 | # CONFIG_MTD_CFI is not set | ||
465 | # CONFIG_MTD_JEDECPROBE is not set | ||
466 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
467 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
468 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
469 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
470 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
471 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
472 | CONFIG_MTD_CFI_I1=y | ||
473 | CONFIG_MTD_CFI_I2=y | ||
474 | # CONFIG_MTD_CFI_I4 is not set | ||
475 | # CONFIG_MTD_CFI_I8 is not set | ||
476 | # CONFIG_MTD_RAM is not set | ||
477 | # CONFIG_MTD_ROM is not set | ||
478 | # CONFIG_MTD_ABSENT is not set | ||
479 | |||
480 | # | ||
481 | # Mapping drivers for chip access | ||
482 | # | ||
483 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
484 | # CONFIG_MTD_PLATRAM is not set | ||
485 | |||
486 | # | ||
487 | # Self-contained MTD device drivers | ||
488 | # | ||
489 | # CONFIG_MTD_SLRAM is not set | ||
490 | # CONFIG_MTD_PHRAM is not set | ||
491 | # CONFIG_MTD_MTDRAM is not set | ||
492 | # CONFIG_MTD_BLOCK2MTD is not set | ||
493 | |||
494 | # | ||
495 | # Disk-On-Chip Device Drivers | ||
496 | # | ||
497 | # CONFIG_MTD_DOC2000 is not set | ||
498 | # CONFIG_MTD_DOC2001 is not set | ||
499 | # CONFIG_MTD_DOC2001PLUS is not set | ||
500 | CONFIG_MTD_NAND=y | ||
501 | # CONFIG_MTD_NAND_VERIFY_WRITE is not set | ||
502 | # CONFIG_MTD_NAND_ECC_SMC is not set | ||
503 | # CONFIG_MTD_NAND_MUSEUM_IDS is not set | ||
504 | # CONFIG_MTD_NAND_GPIO is not set | ||
505 | CONFIG_MTD_NAND_IDS=y | ||
506 | # CONFIG_MTD_NAND_DISKONCHIP is not set | ||
507 | # CONFIG_MTD_NAND_PXA3xx is not set | ||
508 | # CONFIG_MTD_NAND_NANDSIM is not set | ||
509 | # CONFIG_MTD_NAND_PLATFORM is not set | ||
510 | CONFIG_MTD_ONENAND=y | ||
511 | # CONFIG_MTD_ONENAND_VERIFY_WRITE is not set | ||
512 | CONFIG_MTD_ONENAND_GENERIC=y | ||
513 | # CONFIG_MTD_ONENAND_OTP is not set | ||
514 | # CONFIG_MTD_ONENAND_2X_PROGRAM is not set | ||
515 | # CONFIG_MTD_ONENAND_SIM is not set | ||
516 | |||
517 | # | ||
518 | # LPDDR flash memory drivers | ||
519 | # | ||
520 | # CONFIG_MTD_LPDDR is not set | ||
521 | |||
522 | # | ||
523 | # UBI - Unsorted block images | ||
524 | # | ||
525 | # CONFIG_MTD_UBI is not set | ||
526 | # CONFIG_PARPORT is not set | ||
527 | # CONFIG_BLK_DEV is not set | ||
528 | # CONFIG_MISC_DEVICES is not set | ||
529 | CONFIG_HAVE_IDE=y | ||
530 | # CONFIG_IDE is not set | ||
531 | |||
532 | # | ||
533 | # SCSI device support | ||
534 | # | ||
535 | # CONFIG_RAID_ATTRS is not set | ||
536 | # CONFIG_SCSI is not set | ||
537 | # CONFIG_SCSI_DMA is not set | ||
538 | # CONFIG_SCSI_NETLINK is not set | ||
539 | # CONFIG_ATA is not set | ||
540 | # CONFIG_MD is not set | ||
541 | CONFIG_NETDEVICES=y | ||
542 | # CONFIG_DUMMY is not set | ||
543 | # CONFIG_BONDING is not set | ||
544 | # CONFIG_MACVLAN is not set | ||
545 | # CONFIG_EQUALIZER is not set | ||
546 | # CONFIG_TUN is not set | ||
547 | # CONFIG_VETH is not set | ||
548 | # CONFIG_PHYLIB is not set | ||
549 | CONFIG_NET_ETHERNET=y | ||
550 | CONFIG_MII=y | ||
551 | # CONFIG_AX88796 is not set | ||
552 | CONFIG_SMC91X=y | ||
553 | # CONFIG_DM9000 is not set | ||
554 | # CONFIG_ETHOC is not set | ||
555 | # CONFIG_SMC911X is not set | ||
556 | # CONFIG_SMSC911X is not set | ||
557 | # CONFIG_DNET is not set | ||
558 | # CONFIG_IBM_NEW_EMAC_ZMII is not set | ||
559 | # CONFIG_IBM_NEW_EMAC_RGMII is not set | ||
560 | # CONFIG_IBM_NEW_EMAC_TAH is not set | ||
561 | # CONFIG_IBM_NEW_EMAC_EMAC4 is not set | ||
562 | # CONFIG_IBM_NEW_EMAC_NO_FLOW_CTRL is not set | ||
563 | # CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set | ||
564 | # CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set | ||
565 | # CONFIG_B44 is not set | ||
566 | # CONFIG_KS8842 is not set | ||
567 | # CONFIG_KS8851_MLL is not set | ||
568 | # CONFIG_NETDEV_1000 is not set | ||
569 | # CONFIG_NETDEV_10000 is not set | ||
570 | CONFIG_WLAN=y | ||
571 | # CONFIG_HOSTAP is not set | ||
572 | |||
573 | # | ||
574 | # Enable WiMAX (Networking options) to see the WiMAX drivers | ||
575 | # | ||
576 | # CONFIG_WAN is not set | ||
577 | # CONFIG_PPP is not set | ||
578 | # CONFIG_SLIP is not set | ||
579 | # CONFIG_NETCONSOLE is not set | ||
580 | # CONFIG_NETPOLL is not set | ||
581 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
582 | # CONFIG_ISDN is not set | ||
583 | # CONFIG_PHONE is not set | ||
584 | |||
585 | # | ||
586 | # Input device support | ||
587 | # | ||
588 | CONFIG_INPUT=y | ||
589 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
590 | # CONFIG_INPUT_POLLDEV is not set | ||
591 | # CONFIG_INPUT_SPARSEKMAP is not set | ||
592 | |||
593 | # | ||
594 | # Userland interfaces | ||
595 | # | ||
596 | CONFIG_INPUT_MOUSEDEV=y | ||
597 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
598 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
599 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
600 | # CONFIG_INPUT_JOYDEV is not set | ||
601 | # CONFIG_INPUT_EVDEV is not set | ||
602 | # CONFIG_INPUT_EVBUG is not set | ||
603 | |||
604 | # | ||
605 | # Input Device Drivers | ||
606 | # | ||
607 | # CONFIG_INPUT_KEYBOARD is not set | ||
608 | # CONFIG_INPUT_MOUSE is not set | ||
609 | # CONFIG_INPUT_JOYSTICK is not set | ||
610 | # CONFIG_INPUT_TABLET is not set | ||
611 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
612 | # CONFIG_INPUT_MISC is not set | ||
613 | |||
614 | # | ||
615 | # Hardware I/O ports | ||
616 | # | ||
617 | # CONFIG_SERIO is not set | ||
618 | # CONFIG_GAMEPORT is not set | ||
619 | |||
620 | # | ||
621 | # Character devices | ||
622 | # | ||
623 | CONFIG_VT=y | ||
624 | CONFIG_CONSOLE_TRANSLATIONS=y | ||
625 | CONFIG_VT_CONSOLE=y | ||
626 | CONFIG_HW_CONSOLE=y | ||
627 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
628 | CONFIG_DEVKMEM=y | ||
629 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
630 | |||
631 | # | ||
632 | # Serial drivers | ||
633 | # | ||
634 | # CONFIG_SERIAL_8250 is not set | ||
635 | |||
636 | # | ||
637 | # Non-8250 serial port support | ||
638 | # | ||
639 | CONFIG_SERIAL_PXA=y | ||
640 | CONFIG_SERIAL_PXA_CONSOLE=y | ||
641 | CONFIG_SERIAL_CORE=y | ||
642 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
643 | CONFIG_UNIX98_PTYS=y | ||
644 | # CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set | ||
645 | # CONFIG_LEGACY_PTYS is not set | ||
646 | # CONFIG_IPMI_HANDLER is not set | ||
647 | # CONFIG_HW_RANDOM is not set | ||
648 | # CONFIG_R3964 is not set | ||
649 | # CONFIG_RAW_DRIVER is not set | ||
650 | # CONFIG_TCG_TPM is not set | ||
651 | CONFIG_I2C=y | ||
652 | CONFIG_I2C_BOARDINFO=y | ||
653 | CONFIG_I2C_COMPAT=y | ||
654 | # CONFIG_I2C_CHARDEV is not set | ||
655 | CONFIG_I2C_HELPER_AUTO=y | ||
656 | |||
657 | # | ||
658 | # I2C Hardware Bus support | ||
659 | # | ||
660 | |||
661 | # | ||
662 | # I2C system bus drivers (mostly embedded / system-on-chip) | ||
663 | # | ||
664 | # CONFIG_I2C_DESIGNWARE is not set | ||
665 | # CONFIG_I2C_GPIO is not set | ||
666 | # CONFIG_I2C_OCORES is not set | ||
667 | CONFIG_I2C_PXA=y | ||
668 | # CONFIG_I2C_PXA_SLAVE is not set | ||
669 | # CONFIG_I2C_SIMTEC is not set | ||
670 | |||
671 | # | ||
672 | # External I2C/SMBus adapter drivers | ||
673 | # | ||
674 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
675 | # CONFIG_I2C_TAOS_EVM is not set | ||
676 | |||
677 | # | ||
678 | # Other I2C/SMBus bus drivers | ||
679 | # | ||
680 | # CONFIG_I2C_PCA_PLATFORM is not set | ||
681 | # CONFIG_I2C_STUB is not set | ||
682 | |||
683 | # | ||
684 | # Miscellaneous I2C Chip support | ||
685 | # | ||
686 | # CONFIG_SENSORS_TSL2550 is not set | ||
687 | # CONFIG_I2C_DEBUG_CORE is not set | ||
688 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
689 | # CONFIG_I2C_DEBUG_BUS is not set | ||
690 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
691 | # CONFIG_SPI is not set | ||
692 | |||
693 | # | ||
694 | # PPS support | ||
695 | # | ||
696 | # CONFIG_PPS is not set | ||
697 | CONFIG_ARCH_REQUIRE_GPIOLIB=y | ||
698 | CONFIG_GPIOLIB=y | ||
699 | # CONFIG_DEBUG_GPIO is not set | ||
700 | # CONFIG_GPIO_SYSFS is not set | ||
701 | |||
702 | # | ||
703 | # Memory mapped GPIO expanders: | ||
704 | # | ||
705 | |||
706 | # | ||
707 | # I2C GPIO expanders: | ||
708 | # | ||
709 | # CONFIG_GPIO_MAX732X is not set | ||
710 | # CONFIG_GPIO_PCA953X is not set | ||
711 | # CONFIG_GPIO_PCF857X is not set | ||
712 | |||
713 | # | ||
714 | # PCI GPIO expanders: | ||
715 | # | ||
716 | |||
717 | # | ||
718 | # SPI GPIO expanders: | ||
719 | # | ||
720 | |||
721 | # | ||
722 | # AC97 GPIO expanders: | ||
723 | # | ||
724 | # CONFIG_W1 is not set | ||
725 | # CONFIG_POWER_SUPPLY is not set | ||
726 | # CONFIG_HWMON is not set | ||
727 | # CONFIG_THERMAL is not set | ||
728 | # CONFIG_WATCHDOG is not set | ||
729 | CONFIG_SSB_POSSIBLE=y | ||
730 | |||
731 | # | ||
732 | # Sonics Silicon Backplane | ||
733 | # | ||
734 | # CONFIG_SSB is not set | ||
735 | |||
736 | # | ||
737 | # Multifunction device drivers | ||
738 | # | ||
739 | CONFIG_MFD_CORE=y | ||
740 | # CONFIG_MFD_SM501 is not set | ||
741 | # CONFIG_MFD_ASIC3 is not set | ||
742 | # CONFIG_HTC_EGPIO is not set | ||
743 | # CONFIG_HTC_PASIC3 is not set | ||
744 | # CONFIG_TPS65010 is not set | ||
745 | # CONFIG_TWL4030_CORE is not set | ||
746 | # CONFIG_MFD_TMIO is not set | ||
747 | # CONFIG_MFD_T7L66XB is not set | ||
748 | # CONFIG_MFD_TC6387XB is not set | ||
749 | # CONFIG_MFD_TC6393XB is not set | ||
750 | # CONFIG_PMIC_DA903X is not set | ||
751 | # CONFIG_PMIC_ADP5520 is not set | ||
752 | # CONFIG_MFD_WM8400 is not set | ||
753 | # CONFIG_MFD_WM831X is not set | ||
754 | # CONFIG_MFD_WM8350_I2C is not set | ||
755 | # CONFIG_MFD_PCF50633 is not set | ||
756 | # CONFIG_AB3100_CORE is not set | ||
757 | CONFIG_MFD_88PM8607=y | ||
758 | CONFIG_REGULATOR=y | ||
759 | # CONFIG_REGULATOR_DEBUG is not set | ||
760 | # CONFIG_REGULATOR_FIXED_VOLTAGE is not set | ||
761 | # CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set | ||
762 | # CONFIG_REGULATOR_USERSPACE_CONSUMER is not set | ||
763 | # CONFIG_REGULATOR_BQ24022 is not set | ||
764 | # CONFIG_REGULATOR_MAX1586 is not set | ||
765 | CONFIG_REGULATOR_MAX8660=y | ||
766 | # CONFIG_REGULATOR_LP3971 is not set | ||
767 | # CONFIG_REGULATOR_TPS65023 is not set | ||
768 | # CONFIG_REGULATOR_TPS6507X is not set | ||
769 | CONFIG_REGULATOR_88PM8607=y | ||
770 | # CONFIG_MEDIA_SUPPORT is not set | ||
771 | |||
772 | # | ||
773 | # Graphics support | ||
774 | # | ||
775 | # CONFIG_VGASTATE is not set | ||
776 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
777 | # CONFIG_FB is not set | ||
778 | CONFIG_BACKLIGHT_LCD_SUPPORT=y | ||
779 | CONFIG_LCD_CLASS_DEVICE=y | ||
780 | # CONFIG_LCD_ILI9320 is not set | ||
781 | # CONFIG_LCD_PLATFORM is not set | ||
782 | CONFIG_BACKLIGHT_CLASS_DEVICE=y | ||
783 | CONFIG_BACKLIGHT_GENERIC=y | ||
784 | |||
785 | # | ||
786 | # Display device support | ||
787 | # | ||
788 | # CONFIG_DISPLAY_SUPPORT is not set | ||
789 | |||
790 | # | ||
791 | # Console display driver support | ||
792 | # | ||
793 | # CONFIG_VGA_CONSOLE is not set | ||
794 | CONFIG_DUMMY_CONSOLE=y | ||
795 | # CONFIG_SOUND is not set | ||
796 | # CONFIG_HID_SUPPORT is not set | ||
797 | # CONFIG_USB_SUPPORT is not set | ||
798 | # CONFIG_MMC is not set | ||
799 | # CONFIG_MEMSTICK is not set | ||
800 | # CONFIG_NEW_LEDS is not set | ||
801 | # CONFIG_ACCESSIBILITY is not set | ||
802 | CONFIG_RTC_LIB=y | ||
803 | CONFIG_RTC_CLASS=y | ||
804 | CONFIG_RTC_HCTOSYS=y | ||
805 | CONFIG_RTC_HCTOSYS_DEVICE="rtc0" | ||
806 | # CONFIG_RTC_DEBUG is not set | ||
807 | |||
808 | # | ||
809 | # RTC interfaces | ||
810 | # | ||
811 | CONFIG_RTC_INTF_SYSFS=y | ||
812 | CONFIG_RTC_INTF_PROC=y | ||
813 | CONFIG_RTC_INTF_DEV=y | ||
814 | # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set | ||
815 | # CONFIG_RTC_DRV_TEST is not set | ||
816 | |||
817 | # | ||
818 | # I2C RTC drivers | ||
819 | # | ||
820 | # CONFIG_RTC_DRV_DS1307 is not set | ||
821 | # CONFIG_RTC_DRV_DS1374 is not set | ||
822 | # CONFIG_RTC_DRV_DS1672 is not set | ||
823 | # CONFIG_RTC_DRV_MAX6900 is not set | ||
824 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
825 | # CONFIG_RTC_DRV_ISL1208 is not set | ||
826 | # CONFIG_RTC_DRV_X1205 is not set | ||
827 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
828 | # CONFIG_RTC_DRV_PCF8583 is not set | ||
829 | # CONFIG_RTC_DRV_M41T80 is not set | ||
830 | # CONFIG_RTC_DRV_BQ32K is not set | ||
831 | # CONFIG_RTC_DRV_S35390A is not set | ||
832 | # CONFIG_RTC_DRV_FM3130 is not set | ||
833 | # CONFIG_RTC_DRV_RX8581 is not set | ||
834 | # CONFIG_RTC_DRV_RX8025 is not set | ||
835 | |||
836 | # | ||
837 | # SPI RTC drivers | ||
838 | # | ||
839 | |||
840 | # | ||
841 | # Platform RTC drivers | ||
842 | # | ||
843 | # CONFIG_RTC_DRV_CMOS is not set | ||
844 | # CONFIG_RTC_DRV_DS1286 is not set | ||
845 | # CONFIG_RTC_DRV_DS1511 is not set | ||
846 | # CONFIG_RTC_DRV_DS1553 is not set | ||
847 | # CONFIG_RTC_DRV_DS1742 is not set | ||
848 | # CONFIG_RTC_DRV_STK17TA8 is not set | ||
849 | # CONFIG_RTC_DRV_M48T86 is not set | ||
850 | # CONFIG_RTC_DRV_M48T35 is not set | ||
851 | # CONFIG_RTC_DRV_M48T59 is not set | ||
852 | # CONFIG_RTC_DRV_MSM6242 is not set | ||
853 | # CONFIG_RTC_DRV_BQ4802 is not set | ||
854 | # CONFIG_RTC_DRV_RP5C01 is not set | ||
855 | # CONFIG_RTC_DRV_V3020 is not set | ||
856 | |||
857 | # | ||
858 | # on-CPU RTC drivers | ||
859 | # | ||
860 | # CONFIG_DMADEVICES is not set | ||
861 | # CONFIG_AUXDISPLAY is not set | ||
862 | # CONFIG_UIO is not set | ||
863 | |||
864 | # | ||
865 | # TI VLYNQ | ||
866 | # | ||
867 | # CONFIG_STAGING is not set | ||
868 | |||
869 | # | ||
870 | # File systems | ||
871 | # | ||
872 | # CONFIG_EXT2_FS is not set | ||
873 | # CONFIG_EXT3_FS is not set | ||
874 | # CONFIG_EXT4_FS is not set | ||
875 | CONFIG_EXT4_USE_FOR_EXT23=y | ||
876 | # CONFIG_REISERFS_FS is not set | ||
877 | # CONFIG_JFS_FS is not set | ||
878 | CONFIG_FS_POSIX_ACL=y | ||
879 | # CONFIG_XFS_FS is not set | ||
880 | # CONFIG_GFS2_FS is not set | ||
881 | # CONFIG_OCFS2_FS is not set | ||
882 | # CONFIG_BTRFS_FS is not set | ||
883 | # CONFIG_NILFS2_FS is not set | ||
884 | CONFIG_FILE_LOCKING=y | ||
885 | CONFIG_FSNOTIFY=y | ||
886 | CONFIG_DNOTIFY=y | ||
887 | CONFIG_INOTIFY=y | ||
888 | CONFIG_INOTIFY_USER=y | ||
889 | # CONFIG_QUOTA is not set | ||
890 | # CONFIG_AUTOFS_FS is not set | ||
891 | # CONFIG_AUTOFS4_FS is not set | ||
892 | # CONFIG_FUSE_FS is not set | ||
893 | CONFIG_GENERIC_ACL=y | ||
894 | |||
895 | # | ||
896 | # Caches | ||
897 | # | ||
898 | # CONFIG_FSCACHE is not set | ||
899 | |||
900 | # | ||
901 | # CD-ROM/DVD Filesystems | ||
902 | # | ||
903 | # CONFIG_ISO9660_FS is not set | ||
904 | # CONFIG_UDF_FS is not set | ||
905 | |||
906 | # | ||
907 | # DOS/FAT/NT Filesystems | ||
908 | # | ||
909 | # CONFIG_MSDOS_FS is not set | ||
910 | # CONFIG_VFAT_FS is not set | ||
911 | # CONFIG_NTFS_FS is not set | ||
912 | |||
913 | # | ||
914 | # Pseudo filesystems | ||
915 | # | ||
916 | CONFIG_PROC_FS=y | ||
917 | CONFIG_PROC_SYSCTL=y | ||
918 | CONFIG_PROC_PAGE_MONITOR=y | ||
919 | CONFIG_SYSFS=y | ||
920 | CONFIG_TMPFS=y | ||
921 | CONFIG_TMPFS_POSIX_ACL=y | ||
922 | # CONFIG_HUGETLB_PAGE is not set | ||
923 | # CONFIG_CONFIGFS_FS is not set | ||
924 | CONFIG_MISC_FILESYSTEMS=y | ||
925 | # CONFIG_ADFS_FS is not set | ||
926 | # CONFIG_AFFS_FS is not set | ||
927 | # CONFIG_HFS_FS is not set | ||
928 | # CONFIG_HFSPLUS_FS is not set | ||
929 | # CONFIG_BEFS_FS is not set | ||
930 | # CONFIG_BFS_FS is not set | ||
931 | # CONFIG_EFS_FS is not set | ||
932 | CONFIG_JFFS2_FS=y | ||
933 | CONFIG_JFFS2_FS_DEBUG=0 | ||
934 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
935 | # CONFIG_JFFS2_FS_WBUF_VERIFY is not set | ||
936 | # CONFIG_JFFS2_SUMMARY is not set | ||
937 | # CONFIG_JFFS2_FS_XATTR is not set | ||
938 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | ||
939 | CONFIG_JFFS2_ZLIB=y | ||
940 | # CONFIG_JFFS2_LZO is not set | ||
941 | CONFIG_JFFS2_RTIME=y | ||
942 | # CONFIG_JFFS2_RUBIN is not set | ||
943 | CONFIG_CRAMFS=y | ||
944 | # CONFIG_SQUASHFS is not set | ||
945 | # CONFIG_VXFS_FS is not set | ||
946 | # CONFIG_MINIX_FS is not set | ||
947 | # CONFIG_OMFS_FS is not set | ||
948 | # CONFIG_HPFS_FS is not set | ||
949 | # CONFIG_QNX4FS_FS is not set | ||
950 | # CONFIG_ROMFS_FS is not set | ||
951 | # CONFIG_SYSV_FS is not set | ||
952 | # CONFIG_UFS_FS is not set | ||
953 | CONFIG_NETWORK_FILESYSTEMS=y | ||
954 | CONFIG_NFS_FS=y | ||
955 | CONFIG_NFS_V3=y | ||
956 | CONFIG_NFS_V3_ACL=y | ||
957 | CONFIG_NFS_V4=y | ||
958 | # CONFIG_NFS_V4_1 is not set | ||
959 | CONFIG_ROOT_NFS=y | ||
960 | # CONFIG_NFSD is not set | ||
961 | CONFIG_LOCKD=y | ||
962 | CONFIG_LOCKD_V4=y | ||
963 | CONFIG_NFS_ACL_SUPPORT=y | ||
964 | CONFIG_NFS_COMMON=y | ||
965 | CONFIG_SUNRPC=y | ||
966 | CONFIG_SUNRPC_GSS=y | ||
967 | CONFIG_RPCSEC_GSS_KRB5=y | ||
968 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
969 | # CONFIG_SMB_FS is not set | ||
970 | # CONFIG_CIFS is not set | ||
971 | # CONFIG_NCP_FS is not set | ||
972 | # CONFIG_CODA_FS is not set | ||
973 | # CONFIG_AFS_FS is not set | ||
974 | |||
975 | # | ||
976 | # Partition Types | ||
977 | # | ||
978 | # CONFIG_PARTITION_ADVANCED is not set | ||
979 | CONFIG_MSDOS_PARTITION=y | ||
980 | # CONFIG_NLS is not set | ||
981 | # CONFIG_DLM is not set | ||
982 | |||
983 | # | ||
984 | # Kernel hacking | ||
985 | # | ||
986 | CONFIG_PRINTK_TIME=y | ||
987 | CONFIG_ENABLE_WARN_DEPRECATED=y | ||
988 | CONFIG_ENABLE_MUST_CHECK=y | ||
989 | CONFIG_FRAME_WARN=1024 | ||
990 | CONFIG_MAGIC_SYSRQ=y | ||
991 | # CONFIG_STRIP_ASM_SYMS is not set | ||
992 | # CONFIG_UNUSED_SYMBOLS is not set | ||
993 | # CONFIG_DEBUG_FS is not set | ||
994 | # CONFIG_HEADERS_CHECK is not set | ||
995 | CONFIG_DEBUG_KERNEL=y | ||
996 | # CONFIG_DEBUG_SHIRQ is not set | ||
997 | CONFIG_DETECT_SOFTLOCKUP=y | ||
998 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set | ||
999 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 | ||
1000 | CONFIG_DETECT_HUNG_TASK=y | ||
1001 | # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set | ||
1002 | CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 | ||
1003 | CONFIG_SCHED_DEBUG=y | ||
1004 | # CONFIG_SCHEDSTATS is not set | ||
1005 | # CONFIG_TIMER_STATS is not set | ||
1006 | # CONFIG_DEBUG_OBJECTS is not set | ||
1007 | # CONFIG_DEBUG_SLAB is not set | ||
1008 | # CONFIG_DEBUG_KMEMLEAK is not set | ||
1009 | # CONFIG_DEBUG_PREEMPT is not set | ||
1010 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
1011 | # CONFIG_RT_MUTEX_TESTER is not set | ||
1012 | # CONFIG_DEBUG_SPINLOCK is not set | ||
1013 | # CONFIG_DEBUG_MUTEXES is not set | ||
1014 | # CONFIG_DEBUG_LOCK_ALLOC is not set | ||
1015 | # CONFIG_PROVE_LOCKING is not set | ||
1016 | # CONFIG_LOCK_STAT is not set | ||
1017 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
1018 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
1019 | # CONFIG_DEBUG_KOBJECT is not set | ||
1020 | CONFIG_DEBUG_BUGVERBOSE=y | ||
1021 | CONFIG_DEBUG_INFO=y | ||
1022 | # CONFIG_DEBUG_VM is not set | ||
1023 | # CONFIG_DEBUG_WRITECOUNT is not set | ||
1024 | CONFIG_DEBUG_MEMORY_INIT=y | ||
1025 | # CONFIG_DEBUG_LIST is not set | ||
1026 | # CONFIG_DEBUG_SG is not set | ||
1027 | # CONFIG_DEBUG_NOTIFIERS is not set | ||
1028 | # CONFIG_DEBUG_CREDENTIALS is not set | ||
1029 | # CONFIG_BOOT_PRINTK_DELAY is not set | ||
1030 | # CONFIG_RCU_TORTURE_TEST is not set | ||
1031 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | ||
1032 | # CONFIG_BACKTRACE_SELF_TEST is not set | ||
1033 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set | ||
1034 | # CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set | ||
1035 | # CONFIG_FAULT_INJECTION is not set | ||
1036 | # CONFIG_LATENCYTOP is not set | ||
1037 | # CONFIG_SYSCTL_SYSCALL_CHECK is not set | ||
1038 | # CONFIG_PAGE_POISONING is not set | ||
1039 | CONFIG_HAVE_FUNCTION_TRACER=y | ||
1040 | CONFIG_TRACING_SUPPORT=y | ||
1041 | CONFIG_FTRACE=y | ||
1042 | # CONFIG_FUNCTION_TRACER is not set | ||
1043 | # CONFIG_IRQSOFF_TRACER is not set | ||
1044 | # CONFIG_PREEMPT_TRACER is not set | ||
1045 | # CONFIG_SCHED_TRACER is not set | ||
1046 | # CONFIG_ENABLE_DEFAULT_TRACERS is not set | ||
1047 | # CONFIG_BOOT_TRACER is not set | ||
1048 | CONFIG_BRANCH_PROFILE_NONE=y | ||
1049 | # CONFIG_PROFILE_ANNOTATED_BRANCHES is not set | ||
1050 | # CONFIG_PROFILE_ALL_BRANCHES is not set | ||
1051 | # CONFIG_STACK_TRACER is not set | ||
1052 | # CONFIG_KMEMTRACE is not set | ||
1053 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1054 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1055 | # CONFIG_SAMPLES is not set | ||
1056 | CONFIG_HAVE_ARCH_KGDB=y | ||
1057 | # CONFIG_KGDB is not set | ||
1058 | CONFIG_ARM_UNWIND=y | ||
1059 | CONFIG_DEBUG_USER=y | ||
1060 | CONFIG_DEBUG_ERRORS=y | ||
1061 | # CONFIG_DEBUG_STACK_USAGE is not set | ||
1062 | CONFIG_DEBUG_LL=y | ||
1063 | # CONFIG_EARLY_PRINTK is not set | ||
1064 | # CONFIG_DEBUG_ICEDCC is not set | ||
1065 | # CONFIG_OC_ETM is not set | ||
1066 | |||
1067 | # | ||
1068 | # Security options | ||
1069 | # | ||
1070 | # CONFIG_KEYS is not set | ||
1071 | # CONFIG_SECURITY is not set | ||
1072 | # CONFIG_SECURITYFS is not set | ||
1073 | # CONFIG_DEFAULT_SECURITY_SELINUX is not set | ||
1074 | # CONFIG_DEFAULT_SECURITY_SMACK is not set | ||
1075 | # CONFIG_DEFAULT_SECURITY_TOMOYO is not set | ||
1076 | CONFIG_DEFAULT_SECURITY_DAC=y | ||
1077 | CONFIG_DEFAULT_SECURITY="" | ||
1078 | CONFIG_CRYPTO=y | ||
1079 | |||
1080 | # | ||
1081 | # Crypto core or helper | ||
1082 | # | ||
1083 | CONFIG_CRYPTO_ALGAPI=y | ||
1084 | CONFIG_CRYPTO_ALGAPI2=y | ||
1085 | CONFIG_CRYPTO_AEAD2=y | ||
1086 | CONFIG_CRYPTO_BLKCIPHER=y | ||
1087 | CONFIG_CRYPTO_BLKCIPHER2=y | ||
1088 | CONFIG_CRYPTO_HASH=y | ||
1089 | CONFIG_CRYPTO_HASH2=y | ||
1090 | CONFIG_CRYPTO_RNG2=y | ||
1091 | CONFIG_CRYPTO_PCOMP=y | ||
1092 | CONFIG_CRYPTO_MANAGER=y | ||
1093 | CONFIG_CRYPTO_MANAGER2=y | ||
1094 | # CONFIG_CRYPTO_GF128MUL is not set | ||
1095 | # CONFIG_CRYPTO_NULL is not set | ||
1096 | CONFIG_CRYPTO_WORKQUEUE=y | ||
1097 | # CONFIG_CRYPTO_CRYPTD is not set | ||
1098 | # CONFIG_CRYPTO_AUTHENC is not set | ||
1099 | # CONFIG_CRYPTO_TEST is not set | ||
1100 | |||
1101 | # | ||
1102 | # Authenticated Encryption with Associated Data | ||
1103 | # | ||
1104 | # CONFIG_CRYPTO_CCM is not set | ||
1105 | # CONFIG_CRYPTO_GCM is not set | ||
1106 | # CONFIG_CRYPTO_SEQIV is not set | ||
1107 | |||
1108 | # | ||
1109 | # Block modes | ||
1110 | # | ||
1111 | CONFIG_CRYPTO_CBC=y | ||
1112 | # CONFIG_CRYPTO_CTR is not set | ||
1113 | # CONFIG_CRYPTO_CTS is not set | ||
1114 | # CONFIG_CRYPTO_ECB is not set | ||
1115 | # CONFIG_CRYPTO_LRW is not set | ||
1116 | # CONFIG_CRYPTO_PCBC is not set | ||
1117 | # CONFIG_CRYPTO_XTS is not set | ||
1118 | |||
1119 | # | ||
1120 | # Hash modes | ||
1121 | # | ||
1122 | # CONFIG_CRYPTO_HMAC is not set | ||
1123 | # CONFIG_CRYPTO_XCBC is not set | ||
1124 | # CONFIG_CRYPTO_VMAC is not set | ||
1125 | |||
1126 | # | ||
1127 | # Digest | ||
1128 | # | ||
1129 | # CONFIG_CRYPTO_CRC32C is not set | ||
1130 | # CONFIG_CRYPTO_GHASH is not set | ||
1131 | # CONFIG_CRYPTO_MD4 is not set | ||
1132 | CONFIG_CRYPTO_MD5=y | ||
1133 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
1134 | # CONFIG_CRYPTO_RMD128 is not set | ||
1135 | # CONFIG_CRYPTO_RMD160 is not set | ||
1136 | # CONFIG_CRYPTO_RMD256 is not set | ||
1137 | # CONFIG_CRYPTO_RMD320 is not set | ||
1138 | # CONFIG_CRYPTO_SHA1 is not set | ||
1139 | # CONFIG_CRYPTO_SHA256 is not set | ||
1140 | # CONFIG_CRYPTO_SHA512 is not set | ||
1141 | # CONFIG_CRYPTO_TGR192 is not set | ||
1142 | # CONFIG_CRYPTO_WP512 is not set | ||
1143 | |||
1144 | # | ||
1145 | # Ciphers | ||
1146 | # | ||
1147 | # CONFIG_CRYPTO_AES is not set | ||
1148 | # CONFIG_CRYPTO_ANUBIS is not set | ||
1149 | # CONFIG_CRYPTO_ARC4 is not set | ||
1150 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
1151 | # CONFIG_CRYPTO_CAMELLIA is not set | ||
1152 | # CONFIG_CRYPTO_CAST5 is not set | ||
1153 | # CONFIG_CRYPTO_CAST6 is not set | ||
1154 | CONFIG_CRYPTO_DES=y | ||
1155 | # CONFIG_CRYPTO_FCRYPT is not set | ||
1156 | # CONFIG_CRYPTO_KHAZAD is not set | ||
1157 | # CONFIG_CRYPTO_SALSA20 is not set | ||
1158 | # CONFIG_CRYPTO_SEED is not set | ||
1159 | # CONFIG_CRYPTO_SERPENT is not set | ||
1160 | # CONFIG_CRYPTO_TEA is not set | ||
1161 | # CONFIG_CRYPTO_TWOFISH is not set | ||
1162 | |||
1163 | # | ||
1164 | # Compression | ||
1165 | # | ||
1166 | # CONFIG_CRYPTO_DEFLATE is not set | ||
1167 | # CONFIG_CRYPTO_ZLIB is not set | ||
1168 | # CONFIG_CRYPTO_LZO is not set | ||
1169 | |||
1170 | # | ||
1171 | # Random Number Generation | ||
1172 | # | ||
1173 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | ||
1174 | CONFIG_CRYPTO_HW=y | ||
1175 | # CONFIG_BINARY_PRINTF is not set | ||
1176 | |||
1177 | # | ||
1178 | # Library routines | ||
1179 | # | ||
1180 | CONFIG_BITREVERSE=y | ||
1181 | CONFIG_GENERIC_FIND_LAST_BIT=y | ||
1182 | CONFIG_CRC_CCITT=y | ||
1183 | # CONFIG_CRC16 is not set | ||
1184 | # CONFIG_CRC_T10DIF is not set | ||
1185 | # CONFIG_CRC_ITU_T is not set | ||
1186 | CONFIG_CRC32=y | ||
1187 | # CONFIG_CRC7 is not set | ||
1188 | # CONFIG_LIBCRC32C is not set | ||
1189 | CONFIG_ZLIB_INFLATE=y | ||
1190 | CONFIG_ZLIB_DEFLATE=y | ||
1191 | CONFIG_HAS_IOMEM=y | ||
1192 | CONFIG_HAS_IOPORT=y | ||
1193 | CONFIG_HAS_DMA=y | ||
1194 | CONFIG_NLATTR=y | ||
diff --git a/arch/arm/configs/mv78xx0_defconfig b/arch/arm/configs/mv78xx0_defconfig index 6afa2c108ea..da4710dd1da 100644 --- a/arch/arm/configs/mv78xx0_defconfig +++ b/arch/arm/configs/mv78xx0_defconfig | |||
@@ -176,6 +176,7 @@ CONFIG_ARCH_MV78XX0=y | |||
176 | # | 176 | # |
177 | CONFIG_MACH_DB78X00_BP=y | 177 | CONFIG_MACH_DB78X00_BP=y |
178 | CONFIG_MACH_RD78X00_MASA=y | 178 | CONFIG_MACH_RD78X00_MASA=y |
179 | CONFIG_MACH_TERASTATION_WXL=y | ||
179 | CONFIG_PLAT_ORION=y | 180 | CONFIG_PLAT_ORION=y |
180 | 181 | ||
181 | # | 182 | # |
diff --git a/arch/arm/configs/mx1ads_defconfig b/arch/arm/configs/mx1ads_defconfig deleted file mode 100644 index 3cabbb6d927..00000000000 --- a/arch/arm/configs/mx1ads_defconfig +++ /dev/null | |||
@@ -1,742 +0,0 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.12-rc1-bk2 | ||
4 | # Sun Mar 27 02:15:46 2005 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_MMU=y | ||
8 | CONFIG_UID16=y | ||
9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
10 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
11 | CONFIG_GENERIC_IOMAP=y | ||
12 | |||
13 | # | ||
14 | # Code maturity level options | ||
15 | # | ||
16 | CONFIG_EXPERIMENTAL=y | ||
17 | CONFIG_CLEAN_COMPILE=y | ||
18 | CONFIG_BROKEN_ON_SMP=y | ||
19 | CONFIG_LOCK_KERNEL=y | ||
20 | |||
21 | # | ||
22 | # General setup | ||
23 | # | ||
24 | CONFIG_LOCALVERSION="" | ||
25 | CONFIG_SWAP=y | ||
26 | CONFIG_SYSVIPC=y | ||
27 | # CONFIG_POSIX_MQUEUE is not set | ||
28 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
29 | # CONFIG_SYSCTL is not set | ||
30 | # CONFIG_AUDIT is not set | ||
31 | # CONFIG_HOTPLUG is not set | ||
32 | CONFIG_KOBJECT_UEVENT=y | ||
33 | # CONFIG_IKCONFIG is not set | ||
34 | CONFIG_EMBEDDED=y | ||
35 | # CONFIG_KALLSYMS is not set | ||
36 | CONFIG_BASE_FULL=y | ||
37 | CONFIG_FUTEX=y | ||
38 | CONFIG_EPOLL=y | ||
39 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
40 | CONFIG_SHMEM=y | ||
41 | CONFIG_CC_ALIGN_FUNCTIONS=0 | ||
42 | CONFIG_CC_ALIGN_LABELS=0 | ||
43 | CONFIG_CC_ALIGN_LOOPS=0 | ||
44 | CONFIG_CC_ALIGN_JUMPS=0 | ||
45 | # CONFIG_TINY_SHMEM is not set | ||
46 | CONFIG_BASE_SMALL=0 | ||
47 | |||
48 | # | ||
49 | # Loadable module support | ||
50 | # | ||
51 | CONFIG_MODULES=y | ||
52 | CONFIG_MODULE_UNLOAD=y | ||
53 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
54 | CONFIG_OBSOLETE_MODPARM=y | ||
55 | # CONFIG_MODVERSIONS is not set | ||
56 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
57 | CONFIG_KMOD=y | ||
58 | |||
59 | # | ||
60 | # System Type | ||
61 | # | ||
62 | # CONFIG_ARCH_CLPS7500 is not set | ||
63 | # CONFIG_ARCH_CLPS711X is not set | ||
64 | # CONFIG_ARCH_CO285 is not set | ||
65 | # CONFIG_ARCH_EBSA110 is not set | ||
66 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
67 | # CONFIG_ARCH_INTEGRATOR is not set | ||
68 | # CONFIG_ARCH_IOP3XX is not set | ||
69 | # CONFIG_ARCH_IXP4XX is not set | ||
70 | # CONFIG_ARCH_IXP2000 is not set | ||
71 | # CONFIG_ARCH_L7200 is not set | ||
72 | # CONFIG_ARCH_PXA is not set | ||
73 | # CONFIG_ARCH_RPC is not set | ||
74 | # CONFIG_ARCH_SA1100 is not set | ||
75 | # CONFIG_ARCH_S3C2410 is not set | ||
76 | # CONFIG_ARCH_SHARK is not set | ||
77 | # CONFIG_ARCH_LH7A40X is not set | ||
78 | # CONFIG_ARCH_OMAP is not set | ||
79 | # CONFIG_ARCH_VERSATILE is not set | ||
80 | CONFIG_ARCH_IMX=y | ||
81 | # CONFIG_ARCH_H720X is not set | ||
82 | |||
83 | # | ||
84 | # IMX Implementations | ||
85 | # | ||
86 | CONFIG_ARCH_MX1ADS=y | ||
87 | |||
88 | # | ||
89 | # Processor Type | ||
90 | # | ||
91 | CONFIG_CPU_ARM920T=y | ||
92 | CONFIG_CPU_32v4=y | ||
93 | CONFIG_CPU_ABRT_EV4T=y | ||
94 | CONFIG_CPU_CACHE_V4WT=y | ||
95 | CONFIG_CPU_CACHE_VIVT=y | ||
96 | CONFIG_CPU_COPY_V4WB=y | ||
97 | CONFIG_CPU_TLB_V4WBI=y | ||
98 | |||
99 | # | ||
100 | # Processor Features | ||
101 | # | ||
102 | # CONFIG_ARM_THUMB is not set | ||
103 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
104 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
105 | # CONFIG_CPU_DCACHE_WRITETHROUGH is not set | ||
106 | |||
107 | # | ||
108 | # Bus support | ||
109 | # | ||
110 | CONFIG_ISA=y | ||
111 | |||
112 | # | ||
113 | # PCCARD (PCMCIA/CardBus) support | ||
114 | # | ||
115 | # CONFIG_PCCARD is not set | ||
116 | |||
117 | # | ||
118 | # Kernel Features | ||
119 | # | ||
120 | CONFIG_PREEMPT=y | ||
121 | # CONFIG_LEDS is not set | ||
122 | CONFIG_ALIGNMENT_TRAP=y | ||
123 | |||
124 | # | ||
125 | # Boot options | ||
126 | # | ||
127 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
128 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
129 | CONFIG_CMDLINE="console=ttySMX0,57600n8 ip=bootp root=/dev/nfs" | ||
130 | # CONFIG_XIP_KERNEL is not set | ||
131 | |||
132 | # | ||
133 | # Floating point emulation | ||
134 | # | ||
135 | |||
136 | # | ||
137 | # At least one emulation must be selected | ||
138 | # | ||
139 | CONFIG_FPE_NWFPE=y | ||
140 | CONFIG_FPE_NWFPE_XP=y | ||
141 | CONFIG_FPE_FASTFPE=y | ||
142 | |||
143 | # | ||
144 | # Userspace binary formats | ||
145 | # | ||
146 | CONFIG_BINFMT_ELF=y | ||
147 | # CONFIG_BINFMT_AOUT is not set | ||
148 | # CONFIG_BINFMT_MISC is not set | ||
149 | # CONFIG_ARTHUR is not set | ||
150 | |||
151 | # | ||
152 | # Power management options | ||
153 | # | ||
154 | # CONFIG_PM is not set | ||
155 | |||
156 | # | ||
157 | # Device Drivers | ||
158 | # | ||
159 | |||
160 | # | ||
161 | # Generic Driver Options | ||
162 | # | ||
163 | CONFIG_STANDALONE=y | ||
164 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
165 | # CONFIG_FW_LOADER is not set | ||
166 | # CONFIG_DEBUG_DRIVER is not set | ||
167 | |||
168 | # | ||
169 | # Memory Technology Devices (MTD) | ||
170 | # | ||
171 | CONFIG_MTD=y | ||
172 | # CONFIG_MTD_DEBUG is not set | ||
173 | # CONFIG_MTD_CONCAT is not set | ||
174 | CONFIG_MTD_PARTITIONS=y | ||
175 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
176 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
177 | # CONFIG_MTD_AFS_PARTS is not set | ||
178 | |||
179 | # | ||
180 | # User Modules And Translation Layers | ||
181 | # | ||
182 | CONFIG_MTD_CHAR=y | ||
183 | CONFIG_MTD_BLOCK=y | ||
184 | # CONFIG_FTL is not set | ||
185 | # CONFIG_NFTL is not set | ||
186 | # CONFIG_INFTL is not set | ||
187 | |||
188 | # | ||
189 | # RAM/ROM/Flash chip drivers | ||
190 | # | ||
191 | # CONFIG_MTD_CFI is not set | ||
192 | # CONFIG_MTD_JEDECPROBE is not set | ||
193 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
194 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
195 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
196 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
197 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
198 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
199 | CONFIG_MTD_CFI_I1=y | ||
200 | CONFIG_MTD_CFI_I2=y | ||
201 | # CONFIG_MTD_CFI_I4 is not set | ||
202 | # CONFIG_MTD_CFI_I8 is not set | ||
203 | # CONFIG_MTD_RAM is not set | ||
204 | CONFIG_MTD_ROM=y | ||
205 | # CONFIG_MTD_ABSENT is not set | ||
206 | |||
207 | # | ||
208 | # Mapping drivers for chip access | ||
209 | # | ||
210 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
211 | |||
212 | # | ||
213 | # Self-contained MTD device drivers | ||
214 | # | ||
215 | # CONFIG_MTD_SLRAM is not set | ||
216 | # CONFIG_MTD_PHRAM is not set | ||
217 | # CONFIG_MTD_MTDRAM is not set | ||
218 | # CONFIG_MTD_BLKMTD is not set | ||
219 | # CONFIG_MTD_BLOCK2MTD is not set | ||
220 | |||
221 | # | ||
222 | # Disk-On-Chip Device Drivers | ||
223 | # | ||
224 | # CONFIG_MTD_DOC2000 is not set | ||
225 | # CONFIG_MTD_DOC2001 is not set | ||
226 | # CONFIG_MTD_DOC2001PLUS is not set | ||
227 | |||
228 | # | ||
229 | # NAND Flash Device Drivers | ||
230 | # | ||
231 | # CONFIG_MTD_NAND is not set | ||
232 | |||
233 | # | ||
234 | # Parallel port support | ||
235 | # | ||
236 | # CONFIG_PARPORT is not set | ||
237 | |||
238 | # | ||
239 | # Plug and Play support | ||
240 | # | ||
241 | # CONFIG_PNP is not set | ||
242 | |||
243 | # | ||
244 | # Block devices | ||
245 | # | ||
246 | # CONFIG_BLK_DEV_FD is not set | ||
247 | # CONFIG_BLK_DEV_XD is not set | ||
248 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
249 | CONFIG_BLK_DEV_LOOP=y | ||
250 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
251 | # CONFIG_BLK_DEV_NBD is not set | ||
252 | # CONFIG_BLK_DEV_RAM is not set | ||
253 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
254 | CONFIG_INITRAMFS_SOURCE="" | ||
255 | # CONFIG_CDROM_PKTCDVD is not set | ||
256 | |||
257 | # | ||
258 | # IO Schedulers | ||
259 | # | ||
260 | CONFIG_IOSCHED_NOOP=y | ||
261 | # CONFIG_IOSCHED_AS is not set | ||
262 | CONFIG_IOSCHED_DEADLINE=y | ||
263 | CONFIG_IOSCHED_CFQ=y | ||
264 | # CONFIG_ATA_OVER_ETH is not set | ||
265 | |||
266 | # | ||
267 | # SCSI device support | ||
268 | # | ||
269 | # CONFIG_SCSI is not set | ||
270 | |||
271 | # | ||
272 | # Multi-device support (RAID and LVM) | ||
273 | # | ||
274 | # CONFIG_MD is not set | ||
275 | |||
276 | # | ||
277 | # Fusion MPT device support | ||
278 | # | ||
279 | |||
280 | # | ||
281 | # IEEE 1394 (FireWire) support | ||
282 | # | ||
283 | |||
284 | # | ||
285 | # I2O device support | ||
286 | # | ||
287 | |||
288 | # | ||
289 | # Networking support | ||
290 | # | ||
291 | CONFIG_NET=y | ||
292 | |||
293 | # | ||
294 | # Networking options | ||
295 | # | ||
296 | CONFIG_PACKET=m | ||
297 | CONFIG_PACKET_MMAP=y | ||
298 | # CONFIG_NETLINK_DEV is not set | ||
299 | CONFIG_UNIX=y | ||
300 | # CONFIG_NET_KEY is not set | ||
301 | CONFIG_INET=y | ||
302 | # CONFIG_IP_MULTICAST is not set | ||
303 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
304 | CONFIG_IP_PNP=y | ||
305 | CONFIG_IP_PNP_DHCP=y | ||
306 | CONFIG_IP_PNP_BOOTP=y | ||
307 | # CONFIG_IP_PNP_RARP is not set | ||
308 | # CONFIG_NET_IPIP is not set | ||
309 | # CONFIG_NET_IPGRE is not set | ||
310 | # CONFIG_ARPD is not set | ||
311 | # CONFIG_SYN_COOKIES is not set | ||
312 | # CONFIG_INET_AH is not set | ||
313 | # CONFIG_INET_ESP is not set | ||
314 | # CONFIG_INET_IPCOMP is not set | ||
315 | # CONFIG_INET_TUNNEL is not set | ||
316 | CONFIG_IP_TCPDIAG=y | ||
317 | # CONFIG_IP_TCPDIAG_IPV6 is not set | ||
318 | # CONFIG_IPV6 is not set | ||
319 | # CONFIG_NETFILTER is not set | ||
320 | |||
321 | # | ||
322 | # SCTP Configuration (EXPERIMENTAL) | ||
323 | # | ||
324 | # CONFIG_IP_SCTP is not set | ||
325 | # CONFIG_ATM is not set | ||
326 | # CONFIG_BRIDGE is not set | ||
327 | # CONFIG_VLAN_8021Q is not set | ||
328 | # CONFIG_DECNET is not set | ||
329 | # CONFIG_LLC2 is not set | ||
330 | # CONFIG_IPX is not set | ||
331 | # CONFIG_ATALK is not set | ||
332 | # CONFIG_X25 is not set | ||
333 | # CONFIG_LAPB is not set | ||
334 | # CONFIG_NET_DIVERT is not set | ||
335 | # CONFIG_ECONET is not set | ||
336 | # CONFIG_WAN_ROUTER is not set | ||
337 | |||
338 | # | ||
339 | # QoS and/or fair queueing | ||
340 | # | ||
341 | # CONFIG_NET_SCHED is not set | ||
342 | # CONFIG_NET_CLS_ROUTE is not set | ||
343 | |||
344 | # | ||
345 | # Network testing | ||
346 | # | ||
347 | # CONFIG_NET_PKTGEN is not set | ||
348 | # CONFIG_NETPOLL is not set | ||
349 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
350 | # CONFIG_HAMRADIO is not set | ||
351 | # CONFIG_IRDA is not set | ||
352 | # CONFIG_BT is not set | ||
353 | CONFIG_NETDEVICES=y | ||
354 | # CONFIG_DUMMY is not set | ||
355 | # CONFIG_BONDING is not set | ||
356 | # CONFIG_EQUALIZER is not set | ||
357 | # CONFIG_TUN is not set | ||
358 | |||
359 | # | ||
360 | # ARCnet devices | ||
361 | # | ||
362 | # CONFIG_ARCNET is not set | ||
363 | |||
364 | # | ||
365 | # Ethernet (10 or 100Mbit) | ||
366 | # | ||
367 | CONFIG_NET_ETHERNET=y | ||
368 | CONFIG_MII=y | ||
369 | # CONFIG_NET_VENDOR_3COM is not set | ||
370 | # CONFIG_LANCE is not set | ||
371 | # CONFIG_NET_VENDOR_SMC is not set | ||
372 | # CONFIG_SMC91X is not set | ||
373 | # CONFIG_NET_VENDOR_RACAL is not set | ||
374 | # CONFIG_AT1700 is not set | ||
375 | # CONFIG_DEPCA is not set | ||
376 | # CONFIG_HP100 is not set | ||
377 | # CONFIG_NET_ISA is not set | ||
378 | # CONFIG_NET_PCI is not set | ||
379 | # CONFIG_NET_POCKET is not set | ||
380 | |||
381 | # | ||
382 | # Ethernet (1000 Mbit) | ||
383 | # | ||
384 | |||
385 | # | ||
386 | # Ethernet (10000 Mbit) | ||
387 | # | ||
388 | |||
389 | # | ||
390 | # Token Ring devices | ||
391 | # | ||
392 | # CONFIG_TR is not set | ||
393 | |||
394 | # | ||
395 | # Wireless LAN (non-hamradio) | ||
396 | # | ||
397 | # CONFIG_NET_RADIO is not set | ||
398 | |||
399 | # | ||
400 | # Wan interfaces | ||
401 | # | ||
402 | # CONFIG_WAN is not set | ||
403 | CONFIG_PPP=y | ||
404 | # CONFIG_PPP_MULTILINK is not set | ||
405 | CONFIG_PPP_FILTER=y | ||
406 | CONFIG_PPP_ASYNC=y | ||
407 | # CONFIG_PPP_SYNC_TTY is not set | ||
408 | CONFIG_PPP_DEFLATE=y | ||
409 | CONFIG_PPP_BSDCOMP=y | ||
410 | # CONFIG_PPPOE is not set | ||
411 | # CONFIG_SLIP is not set | ||
412 | # CONFIG_SHAPER is not set | ||
413 | # CONFIG_NETCONSOLE is not set | ||
414 | |||
415 | # | ||
416 | # ISDN subsystem | ||
417 | # | ||
418 | # CONFIG_ISDN is not set | ||
419 | |||
420 | # | ||
421 | # Input device support | ||
422 | # | ||
423 | # CONFIG_INPUT is not set | ||
424 | |||
425 | # | ||
426 | # Hardware I/O ports | ||
427 | # | ||
428 | # CONFIG_SERIO is not set | ||
429 | # CONFIG_GAMEPORT is not set | ||
430 | CONFIG_SOUND_GAMEPORT=y | ||
431 | |||
432 | # | ||
433 | # Character devices | ||
434 | # | ||
435 | # CONFIG_VT is not set | ||
436 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
437 | |||
438 | # | ||
439 | # Serial drivers | ||
440 | # | ||
441 | # CONFIG_SERIAL_8250 is not set | ||
442 | |||
443 | # | ||
444 | # Non-8250 serial port support | ||
445 | # | ||
446 | CONFIG_SERIAL_IMX=y | ||
447 | CONFIG_SERIAL_IMX_CONSOLE=y | ||
448 | CONFIG_SERIAL_CORE=y | ||
449 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
450 | CONFIG_UNIX98_PTYS=y | ||
451 | # CONFIG_LEGACY_PTYS is not set | ||
452 | |||
453 | # | ||
454 | # IPMI | ||
455 | # | ||
456 | # CONFIG_IPMI_HANDLER is not set | ||
457 | |||
458 | # | ||
459 | # Watchdog Cards | ||
460 | # | ||
461 | # CONFIG_WATCHDOG is not set | ||
462 | # CONFIG_NVRAM is not set | ||
463 | CONFIG_RTC=m | ||
464 | # CONFIG_DTLK is not set | ||
465 | # CONFIG_R3964 is not set | ||
466 | |||
467 | # | ||
468 | # Ftape, the floppy tape device driver | ||
469 | # | ||
470 | # CONFIG_DRM is not set | ||
471 | # CONFIG_RAW_DRIVER is not set | ||
472 | |||
473 | # | ||
474 | # TPM devices | ||
475 | # | ||
476 | # CONFIG_TCG_TPM is not set | ||
477 | |||
478 | # | ||
479 | # I2C support | ||
480 | # | ||
481 | # CONFIG_I2C is not set | ||
482 | |||
483 | # | ||
484 | # Misc devices | ||
485 | # | ||
486 | |||
487 | # | ||
488 | # Multimedia devices | ||
489 | # | ||
490 | # CONFIG_VIDEO_DEV is not set | ||
491 | |||
492 | # | ||
493 | # Digital Video Broadcasting Devices | ||
494 | # | ||
495 | # CONFIG_DVB is not set | ||
496 | |||
497 | # | ||
498 | # Graphics support | ||
499 | # | ||
500 | # CONFIG_FB is not set | ||
501 | |||
502 | # | ||
503 | # Sound | ||
504 | # | ||
505 | # CONFIG_SOUND is not set | ||
506 | |||
507 | # | ||
508 | # USB support | ||
509 | # | ||
510 | CONFIG_USB_ARCH_HAS_HCD=y | ||
511 | # CONFIG_USB_ARCH_HAS_OHCI is not set | ||
512 | # CONFIG_USB is not set | ||
513 | |||
514 | # | ||
515 | # USB Gadget Support | ||
516 | # | ||
517 | # CONFIG_USB_GADGET is not set | ||
518 | |||
519 | # | ||
520 | # MMC/SD Card support | ||
521 | # | ||
522 | # CONFIG_MMC is not set | ||
523 | |||
524 | # | ||
525 | # File systems | ||
526 | # | ||
527 | # CONFIG_EXT2_FS is not set | ||
528 | # CONFIG_EXT3_FS is not set | ||
529 | # CONFIG_JBD is not set | ||
530 | # CONFIG_REISERFS_FS is not set | ||
531 | # CONFIG_JFS_FS is not set | ||
532 | |||
533 | # | ||
534 | # XFS support | ||
535 | # | ||
536 | # CONFIG_XFS_FS is not set | ||
537 | # CONFIG_MINIX_FS is not set | ||
538 | # CONFIG_ROMFS_FS is not set | ||
539 | # CONFIG_QUOTA is not set | ||
540 | CONFIG_DNOTIFY=y | ||
541 | # CONFIG_AUTOFS_FS is not set | ||
542 | # CONFIG_AUTOFS4_FS is not set | ||
543 | |||
544 | # | ||
545 | # CD-ROM/DVD Filesystems | ||
546 | # | ||
547 | # CONFIG_ISO9660_FS is not set | ||
548 | # CONFIG_UDF_FS is not set | ||
549 | |||
550 | # | ||
551 | # DOS/FAT/NT Filesystems | ||
552 | # | ||
553 | CONFIG_FAT_FS=y | ||
554 | CONFIG_MSDOS_FS=y | ||
555 | CONFIG_VFAT_FS=y | ||
556 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
557 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
558 | # CONFIG_NTFS_FS is not set | ||
559 | |||
560 | # | ||
561 | # Pseudo filesystems | ||
562 | # | ||
563 | CONFIG_PROC_FS=y | ||
564 | CONFIG_SYSFS=y | ||
565 | CONFIG_DEVFS_FS=y | ||
566 | CONFIG_DEVFS_MOUNT=y | ||
567 | # CONFIG_DEVFS_DEBUG is not set | ||
568 | # CONFIG_DEVPTS_FS_XATTR is not set | ||
569 | CONFIG_TMPFS=y | ||
570 | # CONFIG_TMPFS_XATTR is not set | ||
571 | # CONFIG_HUGETLB_PAGE is not set | ||
572 | CONFIG_RAMFS=y | ||
573 | |||
574 | # | ||
575 | # Miscellaneous filesystems | ||
576 | # | ||
577 | # CONFIG_ADFS_FS is not set | ||
578 | # CONFIG_AFFS_FS is not set | ||
579 | # CONFIG_HFS_FS is not set | ||
580 | # CONFIG_HFSPLUS_FS is not set | ||
581 | # CONFIG_BEFS_FS is not set | ||
582 | # CONFIG_BFS_FS is not set | ||
583 | # CONFIG_EFS_FS is not set | ||
584 | # CONFIG_JFFS_FS is not set | ||
585 | CONFIG_JFFS2_FS=y | ||
586 | CONFIG_JFFS2_FS_DEBUG=0 | ||
587 | # CONFIG_JFFS2_FS_NAND is not set | ||
588 | # CONFIG_JFFS2_FS_NOR_ECC is not set | ||
589 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | ||
590 | CONFIG_JFFS2_ZLIB=y | ||
591 | CONFIG_JFFS2_RTIME=y | ||
592 | # CONFIG_JFFS2_RUBIN is not set | ||
593 | CONFIG_CRAMFS=y | ||
594 | # CONFIG_VXFS_FS is not set | ||
595 | # CONFIG_HPFS_FS is not set | ||
596 | # CONFIG_QNX4FS_FS is not set | ||
597 | # CONFIG_SYSV_FS is not set | ||
598 | # CONFIG_UFS_FS is not set | ||
599 | |||
600 | # | ||
601 | # Network File Systems | ||
602 | # | ||
603 | CONFIG_NFS_FS=y | ||
604 | CONFIG_NFS_V3=y | ||
605 | # CONFIG_NFS_V4 is not set | ||
606 | # CONFIG_NFS_DIRECTIO is not set | ||
607 | # CONFIG_NFSD is not set | ||
608 | CONFIG_ROOT_NFS=y | ||
609 | CONFIG_LOCKD=y | ||
610 | CONFIG_LOCKD_V4=y | ||
611 | CONFIG_SUNRPC=y | ||
612 | # CONFIG_RPCSEC_GSS_KRB5 is not set | ||
613 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
614 | # CONFIG_SMB_FS is not set | ||
615 | # CONFIG_CIFS is not set | ||
616 | # CONFIG_NCP_FS is not set | ||
617 | # CONFIG_CODA_FS is not set | ||
618 | # CONFIG_AFS_FS is not set | ||
619 | |||
620 | # | ||
621 | # Partition Types | ||
622 | # | ||
623 | # CONFIG_PARTITION_ADVANCED is not set | ||
624 | CONFIG_MSDOS_PARTITION=y | ||
625 | |||
626 | # | ||
627 | # Native Language Support | ||
628 | # | ||
629 | CONFIG_NLS=y | ||
630 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
631 | # CONFIG_NLS_CODEPAGE_437 is not set | ||
632 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
633 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
634 | # CONFIG_NLS_CODEPAGE_850 is not set | ||
635 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
636 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
637 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
638 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
639 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
640 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
641 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
642 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
643 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
644 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
645 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
646 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
647 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
648 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
649 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
650 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
651 | # CONFIG_NLS_ISO8859_8 is not set | ||
652 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
653 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
654 | # CONFIG_NLS_ASCII is not set | ||
655 | # CONFIG_NLS_ISO8859_1 is not set | ||
656 | # CONFIG_NLS_ISO8859_2 is not set | ||
657 | # CONFIG_NLS_ISO8859_3 is not set | ||
658 | # CONFIG_NLS_ISO8859_4 is not set | ||
659 | # CONFIG_NLS_ISO8859_5 is not set | ||
660 | # CONFIG_NLS_ISO8859_6 is not set | ||
661 | # CONFIG_NLS_ISO8859_7 is not set | ||
662 | # CONFIG_NLS_ISO8859_9 is not set | ||
663 | # CONFIG_NLS_ISO8859_13 is not set | ||
664 | # CONFIG_NLS_ISO8859_14 is not set | ||
665 | # CONFIG_NLS_ISO8859_15 is not set | ||
666 | # CONFIG_NLS_KOI8_R is not set | ||
667 | # CONFIG_NLS_KOI8_U is not set | ||
668 | # CONFIG_NLS_UTF8 is not set | ||
669 | |||
670 | # | ||
671 | # Profiling support | ||
672 | # | ||
673 | # CONFIG_PROFILING is not set | ||
674 | |||
675 | # | ||
676 | # Kernel hacking | ||
677 | # | ||
678 | # CONFIG_PRINTK_TIME is not set | ||
679 | CONFIG_DEBUG_KERNEL=y | ||
680 | CONFIG_MAGIC_SYSRQ=y | ||
681 | CONFIG_LOG_BUF_SHIFT=14 | ||
682 | # CONFIG_SCHEDSTATS is not set | ||
683 | # CONFIG_DEBUG_SLAB is not set | ||
684 | CONFIG_DEBUG_PREEMPT=y | ||
685 | # CONFIG_DEBUG_SPINLOCK is not set | ||
686 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
687 | # CONFIG_DEBUG_KOBJECT is not set | ||
688 | CONFIG_DEBUG_BUGVERBOSE=y | ||
689 | CONFIG_DEBUG_INFO=y | ||
690 | # CONFIG_DEBUG_FS is not set | ||
691 | CONFIG_FRAME_POINTER=y | ||
692 | CONFIG_DEBUG_USER=y | ||
693 | CONFIG_DEBUG_ERRORS=y | ||
694 | # CONFIG_DEBUG_LL is not set | ||
695 | |||
696 | # | ||
697 | # Security options | ||
698 | # | ||
699 | # CONFIG_KEYS is not set | ||
700 | # CONFIG_SECURITY is not set | ||
701 | |||
702 | # | ||
703 | # Cryptographic options | ||
704 | # | ||
705 | CONFIG_CRYPTO=y | ||
706 | # CONFIG_CRYPTO_HMAC is not set | ||
707 | # CONFIG_CRYPTO_NULL is not set | ||
708 | # CONFIG_CRYPTO_MD4 is not set | ||
709 | # CONFIG_CRYPTO_MD5 is not set | ||
710 | # CONFIG_CRYPTO_SHA1 is not set | ||
711 | # CONFIG_CRYPTO_SHA256 is not set | ||
712 | # CONFIG_CRYPTO_SHA512 is not set | ||
713 | # CONFIG_CRYPTO_WP512 is not set | ||
714 | # CONFIG_CRYPTO_TGR192 is not set | ||
715 | # CONFIG_CRYPTO_DES is not set | ||
716 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
717 | # CONFIG_CRYPTO_TWOFISH is not set | ||
718 | # CONFIG_CRYPTO_SERPENT is not set | ||
719 | # CONFIG_CRYPTO_AES is not set | ||
720 | # CONFIG_CRYPTO_CAST5 is not set | ||
721 | # CONFIG_CRYPTO_CAST6 is not set | ||
722 | # CONFIG_CRYPTO_TEA is not set | ||
723 | # CONFIG_CRYPTO_ARC4 is not set | ||
724 | # CONFIG_CRYPTO_KHAZAD is not set | ||
725 | # CONFIG_CRYPTO_ANUBIS is not set | ||
726 | # CONFIG_CRYPTO_DEFLATE is not set | ||
727 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
728 | # CONFIG_CRYPTO_CRC32C is not set | ||
729 | # CONFIG_CRYPTO_TEST is not set | ||
730 | |||
731 | # | ||
732 | # Hardware crypto devices | ||
733 | # | ||
734 | |||
735 | # | ||
736 | # Library routines | ||
737 | # | ||
738 | CONFIG_CRC_CCITT=y | ||
739 | CONFIG_CRC32=y | ||
740 | # CONFIG_LIBCRC32C is not set | ||
741 | CONFIG_ZLIB_INFLATE=y | ||
742 | CONFIG_ZLIB_DEFLATE=y | ||
diff --git a/arch/arm/configs/mx27_defconfig b/arch/arm/configs/mx27_defconfig index edfdd6faf80..b4c1366e9e0 100644 --- a/arch/arm/configs/mx27_defconfig +++ b/arch/arm/configs/mx27_defconfig | |||
@@ -200,7 +200,7 @@ CONFIG_MACH_MX27ADS=y | |||
200 | CONFIG_MACH_PCM038=y | 200 | CONFIG_MACH_PCM038=y |
201 | CONFIG_MACH_PCM970_BASEBOARD=y | 201 | CONFIG_MACH_PCM970_BASEBOARD=y |
202 | CONFIG_MACH_MX27_3DS=y | 202 | CONFIG_MACH_MX27_3DS=y |
203 | CONFIG_MACH_MX27LITE=y | 203 | CONFIG_MACH_IMX27LITE=y |
204 | CONFIG_MXC_IRQ_PRIOR=y | 204 | CONFIG_MXC_IRQ_PRIOR=y |
205 | CONFIG_MXC_PWM=y | 205 | CONFIG_MXC_PWM=y |
206 | 206 | ||
diff --git a/arch/arm/configs/mx51_defconfig b/arch/arm/configs/mx51_defconfig new file mode 100644 index 00000000000..c88e9527a8e --- /dev/null +++ b/arch/arm/configs/mx51_defconfig | |||
@@ -0,0 +1,1286 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.33-rc6 | ||
4 | # Tue Feb 2 15:20:48 2010 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | ||
8 | CONFIG_GENERIC_GPIO=y | ||
9 | CONFIG_GENERIC_TIME=y | ||
10 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
11 | CONFIG_GENERIC_HARDIRQS=y | ||
12 | CONFIG_STACKTRACE_SUPPORT=y | ||
13 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | ||
14 | CONFIG_LOCKDEP_SUPPORT=y | ||
15 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
16 | CONFIG_HARDIRQS_SW_RESEND=y | ||
17 | CONFIG_GENERIC_IRQ_PROBE=y | ||
18 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
19 | CONFIG_GENERIC_HWEIGHT=y | ||
20 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
21 | CONFIG_ARCH_MTD_XIP=y | ||
22 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y | ||
23 | CONFIG_VECTORS_BASE=0xffff0000 | ||
24 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
25 | CONFIG_CONSTRUCTORS=y | ||
26 | |||
27 | # | ||
28 | # General setup | ||
29 | # | ||
30 | CONFIG_EXPERIMENTAL=y | ||
31 | CONFIG_BROKEN_ON_SMP=y | ||
32 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
33 | CONFIG_LOCALVERSION="" | ||
34 | # CONFIG_LOCALVERSION_AUTO is not set | ||
35 | CONFIG_HAVE_KERNEL_GZIP=y | ||
36 | CONFIG_HAVE_KERNEL_LZO=y | ||
37 | CONFIG_KERNEL_GZIP=y | ||
38 | # CONFIG_KERNEL_BZIP2 is not set | ||
39 | # CONFIG_KERNEL_LZMA is not set | ||
40 | # CONFIG_KERNEL_LZO is not set | ||
41 | CONFIG_SWAP=y | ||
42 | CONFIG_SYSVIPC=y | ||
43 | CONFIG_SYSVIPC_SYSCTL=y | ||
44 | # CONFIG_POSIX_MQUEUE is not set | ||
45 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
46 | # CONFIG_TASKSTATS is not set | ||
47 | # CONFIG_AUDIT is not set | ||
48 | |||
49 | # | ||
50 | # RCU Subsystem | ||
51 | # | ||
52 | CONFIG_TREE_RCU=y | ||
53 | # CONFIG_TREE_PREEMPT_RCU is not set | ||
54 | # CONFIG_TINY_RCU is not set | ||
55 | # CONFIG_RCU_TRACE is not set | ||
56 | CONFIG_RCU_FANOUT=32 | ||
57 | # CONFIG_RCU_FANOUT_EXACT is not set | ||
58 | # CONFIG_TREE_RCU_TRACE is not set | ||
59 | # CONFIG_IKCONFIG is not set | ||
60 | CONFIG_LOG_BUF_SHIFT=18 | ||
61 | # CONFIG_GROUP_SCHED is not set | ||
62 | # CONFIG_CGROUPS is not set | ||
63 | # CONFIG_SYSFS_DEPRECATED_V2 is not set | ||
64 | CONFIG_RELAY=y | ||
65 | # CONFIG_NAMESPACES is not set | ||
66 | # CONFIG_BLK_DEV_INITRD is not set | ||
67 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
68 | CONFIG_SYSCTL=y | ||
69 | CONFIG_ANON_INODES=y | ||
70 | CONFIG_EMBEDDED=y | ||
71 | CONFIG_UID16=y | ||
72 | CONFIG_SYSCTL_SYSCALL=y | ||
73 | CONFIG_KALLSYMS=y | ||
74 | # CONFIG_KALLSYMS_ALL is not set | ||
75 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
76 | CONFIG_HOTPLUG=y | ||
77 | CONFIG_PRINTK=y | ||
78 | CONFIG_BUG=y | ||
79 | CONFIG_ELF_CORE=y | ||
80 | CONFIG_BASE_FULL=y | ||
81 | CONFIG_FUTEX=y | ||
82 | CONFIG_EPOLL=y | ||
83 | CONFIG_SIGNALFD=y | ||
84 | CONFIG_TIMERFD=y | ||
85 | CONFIG_EVENTFD=y | ||
86 | CONFIG_SHMEM=y | ||
87 | CONFIG_AIO=y | ||
88 | |||
89 | # | ||
90 | # Kernel Performance Events And Counters | ||
91 | # | ||
92 | CONFIG_VM_EVENT_COUNTERS=y | ||
93 | # CONFIG_SLUB_DEBUG is not set | ||
94 | # CONFIG_COMPAT_BRK is not set | ||
95 | # CONFIG_SLAB is not set | ||
96 | CONFIG_SLUB=y | ||
97 | # CONFIG_SLOB is not set | ||
98 | # CONFIG_PROFILING is not set | ||
99 | CONFIG_HAVE_OPROFILE=y | ||
100 | # CONFIG_KPROBES is not set | ||
101 | CONFIG_HAVE_KPROBES=y | ||
102 | CONFIG_HAVE_KRETPROBES=y | ||
103 | CONFIG_HAVE_CLK=y | ||
104 | |||
105 | # | ||
106 | # GCOV-based kernel profiling | ||
107 | # | ||
108 | # CONFIG_GCOV_KERNEL is not set | ||
109 | # CONFIG_SLOW_WORK is not set | ||
110 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | ||
111 | CONFIG_RT_MUTEXES=y | ||
112 | CONFIG_BASE_SMALL=0 | ||
113 | CONFIG_MODULES=y | ||
114 | # CONFIG_MODULE_FORCE_LOAD is not set | ||
115 | CONFIG_MODULE_UNLOAD=y | ||
116 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
117 | CONFIG_MODVERSIONS=y | ||
118 | CONFIG_MODULE_SRCVERSION_ALL=y | ||
119 | CONFIG_BLOCK=y | ||
120 | # CONFIG_LBDAF is not set | ||
121 | # CONFIG_BLK_DEV_BSG is not set | ||
122 | # CONFIG_BLK_DEV_INTEGRITY is not set | ||
123 | |||
124 | # | ||
125 | # IO Schedulers | ||
126 | # | ||
127 | CONFIG_IOSCHED_NOOP=y | ||
128 | CONFIG_IOSCHED_DEADLINE=y | ||
129 | CONFIG_IOSCHED_CFQ=y | ||
130 | # CONFIG_DEFAULT_DEADLINE is not set | ||
131 | CONFIG_DEFAULT_CFQ=y | ||
132 | # CONFIG_DEFAULT_NOOP is not set | ||
133 | CONFIG_DEFAULT_IOSCHED="cfq" | ||
134 | # CONFIG_INLINE_SPIN_TRYLOCK is not set | ||
135 | # CONFIG_INLINE_SPIN_TRYLOCK_BH is not set | ||
136 | # CONFIG_INLINE_SPIN_LOCK is not set | ||
137 | # CONFIG_INLINE_SPIN_LOCK_BH is not set | ||
138 | # CONFIG_INLINE_SPIN_LOCK_IRQ is not set | ||
139 | # CONFIG_INLINE_SPIN_LOCK_IRQSAVE is not set | ||
140 | CONFIG_INLINE_SPIN_UNLOCK=y | ||
141 | # CONFIG_INLINE_SPIN_UNLOCK_BH is not set | ||
142 | CONFIG_INLINE_SPIN_UNLOCK_IRQ=y | ||
143 | # CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE is not set | ||
144 | # CONFIG_INLINE_READ_TRYLOCK is not set | ||
145 | # CONFIG_INLINE_READ_LOCK is not set | ||
146 | # CONFIG_INLINE_READ_LOCK_BH is not set | ||
147 | # CONFIG_INLINE_READ_LOCK_IRQ is not set | ||
148 | # CONFIG_INLINE_READ_LOCK_IRQSAVE is not set | ||
149 | CONFIG_INLINE_READ_UNLOCK=y | ||
150 | # CONFIG_INLINE_READ_UNLOCK_BH is not set | ||
151 | CONFIG_INLINE_READ_UNLOCK_IRQ=y | ||
152 | # CONFIG_INLINE_READ_UNLOCK_IRQRESTORE is not set | ||
153 | # CONFIG_INLINE_WRITE_TRYLOCK is not set | ||
154 | # CONFIG_INLINE_WRITE_LOCK is not set | ||
155 | # CONFIG_INLINE_WRITE_LOCK_BH is not set | ||
156 | # CONFIG_INLINE_WRITE_LOCK_IRQ is not set | ||
157 | # CONFIG_INLINE_WRITE_LOCK_IRQSAVE is not set | ||
158 | CONFIG_INLINE_WRITE_UNLOCK=y | ||
159 | # CONFIG_INLINE_WRITE_UNLOCK_BH is not set | ||
160 | CONFIG_INLINE_WRITE_UNLOCK_IRQ=y | ||
161 | # CONFIG_INLINE_WRITE_UNLOCK_IRQRESTORE is not set | ||
162 | # CONFIG_MUTEX_SPIN_ON_OWNER is not set | ||
163 | CONFIG_FREEZER=y | ||
164 | |||
165 | # | ||
166 | # System Type | ||
167 | # | ||
168 | CONFIG_MMU=y | ||
169 | # CONFIG_ARCH_AAEC2000 is not set | ||
170 | # CONFIG_ARCH_INTEGRATOR is not set | ||
171 | # CONFIG_ARCH_REALVIEW is not set | ||
172 | # CONFIG_ARCH_VERSATILE is not set | ||
173 | # CONFIG_ARCH_AT91 is not set | ||
174 | # CONFIG_ARCH_CLPS711X is not set | ||
175 | # CONFIG_ARCH_GEMINI is not set | ||
176 | # CONFIG_ARCH_EBSA110 is not set | ||
177 | # CONFIG_ARCH_EP93XX is not set | ||
178 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
179 | CONFIG_ARCH_MXC=y | ||
180 | # CONFIG_ARCH_STMP3XXX is not set | ||
181 | # CONFIG_ARCH_NETX is not set | ||
182 | # CONFIG_ARCH_H720X is not set | ||
183 | # CONFIG_ARCH_NOMADIK is not set | ||
184 | # CONFIG_ARCH_IOP13XX is not set | ||
185 | # CONFIG_ARCH_IOP32X is not set | ||
186 | # CONFIG_ARCH_IOP33X is not set | ||
187 | # CONFIG_ARCH_IXP23XX is not set | ||
188 | # CONFIG_ARCH_IXP2000 is not set | ||
189 | # CONFIG_ARCH_IXP4XX is not set | ||
190 | # CONFIG_ARCH_L7200 is not set | ||
191 | # CONFIG_ARCH_DOVE is not set | ||
192 | # CONFIG_ARCH_KIRKWOOD is not set | ||
193 | # CONFIG_ARCH_LOKI is not set | ||
194 | # CONFIG_ARCH_MV78XX0 is not set | ||
195 | # CONFIG_ARCH_ORION5X is not set | ||
196 | # CONFIG_ARCH_MMP is not set | ||
197 | # CONFIG_ARCH_KS8695 is not set | ||
198 | # CONFIG_ARCH_NS9XXX is not set | ||
199 | # CONFIG_ARCH_W90X900 is not set | ||
200 | # CONFIG_ARCH_PNX4008 is not set | ||
201 | # CONFIG_ARCH_PXA is not set | ||
202 | # CONFIG_ARCH_MSM is not set | ||
203 | # CONFIG_ARCH_RPC is not set | ||
204 | # CONFIG_ARCH_SA1100 is not set | ||
205 | # CONFIG_ARCH_S3C2410 is not set | ||
206 | # CONFIG_ARCH_S3C64XX is not set | ||
207 | # CONFIG_ARCH_S5PC1XX is not set | ||
208 | # CONFIG_ARCH_SHARK is not set | ||
209 | # CONFIG_ARCH_LH7A40X is not set | ||
210 | # CONFIG_ARCH_U300 is not set | ||
211 | # CONFIG_ARCH_DAVINCI is not set | ||
212 | # CONFIG_ARCH_OMAP is not set | ||
213 | # CONFIG_ARCH_BCMRING is not set | ||
214 | # CONFIG_ARCH_U8500 is not set | ||
215 | |||
216 | # | ||
217 | # Freescale MXC Implementations | ||
218 | # | ||
219 | # CONFIG_ARCH_MX1 is not set | ||
220 | # CONFIG_ARCH_MX2 is not set | ||
221 | # CONFIG_ARCH_MX25 is not set | ||
222 | # CONFIG_ARCH_MX3 is not set | ||
223 | # CONFIG_ARCH_MXC91231 is not set | ||
224 | CONFIG_ARCH_MX5=y | ||
225 | CONFIG_ARCH_MX51=y | ||
226 | |||
227 | # | ||
228 | # MX5 platforms: | ||
229 | # | ||
230 | CONFIG_MACH_MX51_BABBAGE=y | ||
231 | # CONFIG_MXC_IRQ_PRIOR is not set | ||
232 | CONFIG_MXC_TZIC=y | ||
233 | # CONFIG_MXC_PWM is not set | ||
234 | CONFIG_ARCH_MXC_IOMUX_V3=y | ||
235 | |||
236 | # | ||
237 | # Processor Type | ||
238 | # | ||
239 | CONFIG_CPU_32v6K=y | ||
240 | CONFIG_CPU_V7=y | ||
241 | CONFIG_CPU_32v7=y | ||
242 | CONFIG_CPU_ABRT_EV7=y | ||
243 | CONFIG_CPU_PABRT_V7=y | ||
244 | CONFIG_CPU_CACHE_V7=y | ||
245 | CONFIG_CPU_CACHE_VIPT=y | ||
246 | CONFIG_CPU_COPY_V6=y | ||
247 | CONFIG_CPU_TLB_V7=y | ||
248 | CONFIG_CPU_HAS_ASID=y | ||
249 | CONFIG_CPU_CP15=y | ||
250 | CONFIG_CPU_CP15_MMU=y | ||
251 | |||
252 | # | ||
253 | # Processor Features | ||
254 | # | ||
255 | CONFIG_ARM_THUMB=y | ||
256 | # CONFIG_ARM_THUMBEE is not set | ||
257 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
258 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
259 | # CONFIG_CPU_BPREDICT_DISABLE is not set | ||
260 | CONFIG_HAS_TLS_REG=y | ||
261 | CONFIG_ARM_L1_CACHE_SHIFT=5 | ||
262 | # CONFIG_ARM_ERRATA_430973 is not set | ||
263 | # CONFIG_ARM_ERRATA_458693 is not set | ||
264 | # CONFIG_ARM_ERRATA_460075 is not set | ||
265 | CONFIG_COMMON_CLKDEV=y | ||
266 | |||
267 | # | ||
268 | # Bus support | ||
269 | # | ||
270 | # CONFIG_PCI_SYSCALL is not set | ||
271 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
272 | # CONFIG_PCCARD is not set | ||
273 | |||
274 | # | ||
275 | # Kernel Features | ||
276 | # | ||
277 | CONFIG_TICK_ONESHOT=y | ||
278 | CONFIG_NO_HZ=y | ||
279 | CONFIG_HIGH_RES_TIMERS=y | ||
280 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
281 | CONFIG_VMSPLIT_3G=y | ||
282 | # CONFIG_VMSPLIT_2G is not set | ||
283 | # CONFIG_VMSPLIT_1G is not set | ||
284 | CONFIG_PAGE_OFFSET=0xC0000000 | ||
285 | # CONFIG_PREEMPT_NONE is not set | ||
286 | CONFIG_PREEMPT_VOLUNTARY=y | ||
287 | # CONFIG_PREEMPT is not set | ||
288 | CONFIG_HZ=100 | ||
289 | # CONFIG_THUMB2_KERNEL is not set | ||
290 | CONFIG_AEABI=y | ||
291 | # CONFIG_OABI_COMPAT is not set | ||
292 | # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set | ||
293 | # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set | ||
294 | # CONFIG_HIGHMEM is not set | ||
295 | CONFIG_SELECT_MEMORY_MODEL=y | ||
296 | CONFIG_FLATMEM_MANUAL=y | ||
297 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
298 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
299 | CONFIG_FLATMEM=y | ||
300 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
301 | CONFIG_PAGEFLAGS_EXTENDED=y | ||
302 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
303 | # CONFIG_PHYS_ADDR_T_64BIT is not set | ||
304 | CONFIG_ZONE_DMA_FLAG=0 | ||
305 | CONFIG_VIRT_TO_BUS=y | ||
306 | # CONFIG_KSM is not set | ||
307 | CONFIG_DEFAULT_MMAP_MIN_ADDR=32768 | ||
308 | CONFIG_ALIGNMENT_TRAP=y | ||
309 | # CONFIG_UACCESS_WITH_MEMCPY is not set | ||
310 | |||
311 | # | ||
312 | # Boot options | ||
313 | # | ||
314 | CONFIG_ZBOOT_ROM_TEXT=0 | ||
315 | CONFIG_ZBOOT_ROM_BSS=0 | ||
316 | CONFIG_CMDLINE="noinitrd console=ttymxc0,115200 root=/dev/nfs nfsroot=192.168.0.101:/shared/nfs ip=dhcp" | ||
317 | # CONFIG_XIP_KERNEL is not set | ||
318 | # CONFIG_KEXEC is not set | ||
319 | |||
320 | # | ||
321 | # CPU Power Management | ||
322 | # | ||
323 | # CONFIG_CPU_IDLE is not set | ||
324 | |||
325 | # | ||
326 | # Floating point emulation | ||
327 | # | ||
328 | |||
329 | # | ||
330 | # At least one emulation must be selected | ||
331 | # | ||
332 | CONFIG_VFP=y | ||
333 | CONFIG_VFPv3=y | ||
334 | CONFIG_NEON=y | ||
335 | |||
336 | # | ||
337 | # Userspace binary formats | ||
338 | # | ||
339 | CONFIG_BINFMT_ELF=y | ||
340 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set | ||
341 | CONFIG_HAVE_AOUT=y | ||
342 | # CONFIG_BINFMT_AOUT is not set | ||
343 | CONFIG_BINFMT_MISC=m | ||
344 | |||
345 | # | ||
346 | # Power management options | ||
347 | # | ||
348 | CONFIG_PM=y | ||
349 | CONFIG_PM_DEBUG=y | ||
350 | # CONFIG_PM_VERBOSE is not set | ||
351 | CONFIG_CAN_PM_TRACE=y | ||
352 | CONFIG_PM_SLEEP=y | ||
353 | CONFIG_SUSPEND=y | ||
354 | CONFIG_PM_TEST_SUSPEND=y | ||
355 | CONFIG_SUSPEND_FREEZER=y | ||
356 | # CONFIG_APM_EMULATION is not set | ||
357 | # CONFIG_PM_RUNTIME is not set | ||
358 | CONFIG_ARCH_SUSPEND_POSSIBLE=y | ||
359 | CONFIG_NET=y | ||
360 | |||
361 | # | ||
362 | # Networking options | ||
363 | # | ||
364 | CONFIG_PACKET=y | ||
365 | CONFIG_PACKET_MMAP=y | ||
366 | CONFIG_UNIX=y | ||
367 | # CONFIG_NET_KEY is not set | ||
368 | CONFIG_INET=y | ||
369 | # CONFIG_IP_MULTICAST is not set | ||
370 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
371 | CONFIG_IP_FIB_HASH=y | ||
372 | CONFIG_IP_PNP=y | ||
373 | CONFIG_IP_PNP_DHCP=y | ||
374 | # CONFIG_IP_PNP_BOOTP is not set | ||
375 | # CONFIG_IP_PNP_RARP is not set | ||
376 | # CONFIG_NET_IPIP is not set | ||
377 | # CONFIG_NET_IPGRE is not set | ||
378 | # CONFIG_ARPD is not set | ||
379 | # CONFIG_SYN_COOKIES is not set | ||
380 | # CONFIG_INET_AH is not set | ||
381 | # CONFIG_INET_ESP is not set | ||
382 | # CONFIG_INET_IPCOMP is not set | ||
383 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
384 | # CONFIG_INET_TUNNEL is not set | ||
385 | # CONFIG_INET_XFRM_MODE_TRANSPORT is not set | ||
386 | # CONFIG_INET_XFRM_MODE_TUNNEL is not set | ||
387 | # CONFIG_INET_XFRM_MODE_BEET is not set | ||
388 | # CONFIG_INET_LRO is not set | ||
389 | CONFIG_INET_DIAG=y | ||
390 | CONFIG_INET_TCP_DIAG=y | ||
391 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
392 | CONFIG_TCP_CONG_CUBIC=y | ||
393 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
394 | # CONFIG_TCP_MD5SIG is not set | ||
395 | # CONFIG_IPV6 is not set | ||
396 | # CONFIG_NETWORK_SECMARK is not set | ||
397 | # CONFIG_NETFILTER is not set | ||
398 | # CONFIG_IP_DCCP is not set | ||
399 | # CONFIG_IP_SCTP is not set | ||
400 | # CONFIG_RDS is not set | ||
401 | # CONFIG_TIPC is not set | ||
402 | # CONFIG_ATM is not set | ||
403 | # CONFIG_BRIDGE is not set | ||
404 | # CONFIG_NET_DSA is not set | ||
405 | # CONFIG_VLAN_8021Q is not set | ||
406 | # CONFIG_DECNET is not set | ||
407 | # CONFIG_LLC2 is not set | ||
408 | # CONFIG_IPX is not set | ||
409 | # CONFIG_ATALK is not set | ||
410 | # CONFIG_X25 is not set | ||
411 | # CONFIG_LAPB is not set | ||
412 | # CONFIG_ECONET is not set | ||
413 | # CONFIG_WAN_ROUTER is not set | ||
414 | # CONFIG_PHONET is not set | ||
415 | # CONFIG_IEEE802154 is not set | ||
416 | # CONFIG_NET_SCHED is not set | ||
417 | # CONFIG_DCB is not set | ||
418 | |||
419 | # | ||
420 | # Network testing | ||
421 | # | ||
422 | # CONFIG_NET_PKTGEN is not set | ||
423 | # CONFIG_HAMRADIO is not set | ||
424 | # CONFIG_CAN is not set | ||
425 | # CONFIG_IRDA is not set | ||
426 | # CONFIG_BT is not set | ||
427 | # CONFIG_AF_RXRPC is not set | ||
428 | # CONFIG_WIRELESS is not set | ||
429 | # CONFIG_WIMAX is not set | ||
430 | # CONFIG_RFKILL is not set | ||
431 | # CONFIG_NET_9P is not set | ||
432 | |||
433 | # | ||
434 | # Device Drivers | ||
435 | # | ||
436 | |||
437 | # | ||
438 | # Generic Driver Options | ||
439 | # | ||
440 | CONFIG_UEVENT_HELPER_PATH="" | ||
441 | # CONFIG_STANDALONE is not set | ||
442 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
443 | CONFIG_FW_LOADER=y | ||
444 | CONFIG_FIRMWARE_IN_KERNEL=y | ||
445 | CONFIG_EXTRA_FIRMWARE="" | ||
446 | # CONFIG_DEBUG_DRIVER is not set | ||
447 | # CONFIG_DEBUG_DEVRES is not set | ||
448 | # CONFIG_SYS_HYPERVISOR is not set | ||
449 | CONFIG_CONNECTOR=y | ||
450 | CONFIG_PROC_EVENTS=y | ||
451 | # CONFIG_MTD is not set | ||
452 | # CONFIG_PARPORT is not set | ||
453 | CONFIG_BLK_DEV=y | ||
454 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
455 | CONFIG_BLK_DEV_LOOP=y | ||
456 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
457 | # CONFIG_BLK_DEV_DRBD is not set | ||
458 | # CONFIG_BLK_DEV_NBD is not set | ||
459 | CONFIG_BLK_DEV_RAM=y | ||
460 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
461 | CONFIG_BLK_DEV_RAM_SIZE=65536 | ||
462 | # CONFIG_BLK_DEV_XIP is not set | ||
463 | # CONFIG_CDROM_PKTCDVD is not set | ||
464 | # CONFIG_ATA_OVER_ETH is not set | ||
465 | # CONFIG_MG_DISK is not set | ||
466 | # CONFIG_MISC_DEVICES is not set | ||
467 | CONFIG_HAVE_IDE=y | ||
468 | # CONFIG_IDE is not set | ||
469 | |||
470 | # | ||
471 | # SCSI device support | ||
472 | # | ||
473 | # CONFIG_RAID_ATTRS is not set | ||
474 | CONFIG_SCSI=y | ||
475 | CONFIG_SCSI_DMA=y | ||
476 | # CONFIG_SCSI_TGT is not set | ||
477 | # CONFIG_SCSI_NETLINK is not set | ||
478 | # CONFIG_SCSI_PROC_FS is not set | ||
479 | |||
480 | # | ||
481 | # SCSI support type (disk, tape, CD-ROM) | ||
482 | # | ||
483 | CONFIG_BLK_DEV_SD=y | ||
484 | # CONFIG_CHR_DEV_ST is not set | ||
485 | # CONFIG_CHR_DEV_OSST is not set | ||
486 | # CONFIG_BLK_DEV_SR is not set | ||
487 | # CONFIG_CHR_DEV_SG is not set | ||
488 | # CONFIG_CHR_DEV_SCH is not set | ||
489 | CONFIG_SCSI_MULTI_LUN=y | ||
490 | CONFIG_SCSI_CONSTANTS=y | ||
491 | CONFIG_SCSI_LOGGING=y | ||
492 | CONFIG_SCSI_SCAN_ASYNC=y | ||
493 | CONFIG_SCSI_WAIT_SCAN=m | ||
494 | |||
495 | # | ||
496 | # SCSI Transports | ||
497 | # | ||
498 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
499 | # CONFIG_SCSI_FC_ATTRS is not set | ||
500 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
501 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
502 | # CONFIG_SCSI_SRP_ATTRS is not set | ||
503 | # CONFIG_SCSI_LOWLEVEL is not set | ||
504 | # CONFIG_SCSI_DH is not set | ||
505 | # CONFIG_SCSI_OSD_INITIATOR is not set | ||
506 | CONFIG_ATA=m | ||
507 | # CONFIG_ATA_NONSTANDARD is not set | ||
508 | CONFIG_ATA_VERBOSE_ERROR=y | ||
509 | CONFIG_SATA_PMP=y | ||
510 | CONFIG_ATA_SFF=y | ||
511 | # CONFIG_SATA_MV is not set | ||
512 | # CONFIG_PATA_PLATFORM is not set | ||
513 | # CONFIG_MD is not set | ||
514 | CONFIG_NETDEVICES=y | ||
515 | # CONFIG_DUMMY is not set | ||
516 | # CONFIG_BONDING is not set | ||
517 | # CONFIG_MACVLAN is not set | ||
518 | # CONFIG_EQUALIZER is not set | ||
519 | # CONFIG_TUN is not set | ||
520 | # CONFIG_VETH is not set | ||
521 | CONFIG_PHYLIB=y | ||
522 | |||
523 | # | ||
524 | # MII PHY device drivers | ||
525 | # | ||
526 | CONFIG_MARVELL_PHY=y | ||
527 | CONFIG_DAVICOM_PHY=y | ||
528 | CONFIG_QSEMI_PHY=y | ||
529 | CONFIG_LXT_PHY=y | ||
530 | CONFIG_CICADA_PHY=y | ||
531 | CONFIG_VITESSE_PHY=y | ||
532 | CONFIG_SMSC_PHY=y | ||
533 | CONFIG_BROADCOM_PHY=y | ||
534 | CONFIG_ICPLUS_PHY=y | ||
535 | CONFIG_REALTEK_PHY=y | ||
536 | CONFIG_NATIONAL_PHY=y | ||
537 | CONFIG_STE10XP=y | ||
538 | CONFIG_LSI_ET1011C_PHY=y | ||
539 | CONFIG_FIXED_PHY=y | ||
540 | CONFIG_MDIO_BITBANG=y | ||
541 | CONFIG_MDIO_GPIO=y | ||
542 | CONFIG_NET_ETHERNET=y | ||
543 | CONFIG_MII=m | ||
544 | # CONFIG_AX88796 is not set | ||
545 | # CONFIG_SMC91X is not set | ||
546 | # CONFIG_DM9000 is not set | ||
547 | # CONFIG_ETHOC is not set | ||
548 | # CONFIG_SMC911X is not set | ||
549 | # CONFIG_SMSC911X is not set | ||
550 | # CONFIG_DNET is not set | ||
551 | # CONFIG_IBM_NEW_EMAC_ZMII is not set | ||
552 | # CONFIG_IBM_NEW_EMAC_RGMII is not set | ||
553 | # CONFIG_IBM_NEW_EMAC_TAH is not set | ||
554 | # CONFIG_IBM_NEW_EMAC_EMAC4 is not set | ||
555 | # CONFIG_IBM_NEW_EMAC_NO_FLOW_CTRL is not set | ||
556 | # CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set | ||
557 | # CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set | ||
558 | # CONFIG_B44 is not set | ||
559 | # CONFIG_KS8842 is not set | ||
560 | # CONFIG_KS8851_MLL is not set | ||
561 | CONFIG_FEC=y | ||
562 | # CONFIG_FEC2 is not set | ||
563 | # CONFIG_NETDEV_1000 is not set | ||
564 | # CONFIG_NETDEV_10000 is not set | ||
565 | # CONFIG_WLAN is not set | ||
566 | |||
567 | # | ||
568 | # Enable WiMAX (Networking options) to see the WiMAX drivers | ||
569 | # | ||
570 | # CONFIG_WAN is not set | ||
571 | # CONFIG_PPP is not set | ||
572 | # CONFIG_SLIP is not set | ||
573 | # CONFIG_NETCONSOLE is not set | ||
574 | # CONFIG_NETPOLL is not set | ||
575 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
576 | # CONFIG_ISDN is not set | ||
577 | # CONFIG_PHONE is not set | ||
578 | |||
579 | # | ||
580 | # Input device support | ||
581 | # | ||
582 | CONFIG_INPUT=y | ||
583 | CONFIG_INPUT_FF_MEMLESS=m | ||
584 | # CONFIG_INPUT_POLLDEV is not set | ||
585 | # CONFIG_INPUT_SPARSEKMAP is not set | ||
586 | |||
587 | # | ||
588 | # Userland interfaces | ||
589 | # | ||
590 | CONFIG_INPUT_MOUSEDEV=y | ||
591 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
592 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
593 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
594 | # CONFIG_INPUT_JOYDEV is not set | ||
595 | CONFIG_INPUT_EVDEV=y | ||
596 | CONFIG_INPUT_EVBUG=m | ||
597 | |||
598 | # | ||
599 | # Input Device Drivers | ||
600 | # | ||
601 | CONFIG_INPUT_KEYBOARD=y | ||
602 | # CONFIG_KEYBOARD_ADP5588 is not set | ||
603 | CONFIG_KEYBOARD_ATKBD=y | ||
604 | # CONFIG_QT2160 is not set | ||
605 | # CONFIG_KEYBOARD_LKKBD is not set | ||
606 | # CONFIG_KEYBOARD_GPIO is not set | ||
607 | # CONFIG_KEYBOARD_MATRIX is not set | ||
608 | # CONFIG_KEYBOARD_LM8323 is not set | ||
609 | # CONFIG_KEYBOARD_MAX7359 is not set | ||
610 | # CONFIG_KEYBOARD_NEWTON is not set | ||
611 | # CONFIG_KEYBOARD_OPENCORES is not set | ||
612 | # CONFIG_KEYBOARD_STOWAWAY is not set | ||
613 | # CONFIG_KEYBOARD_SUNKBD is not set | ||
614 | # CONFIG_KEYBOARD_XTKBD is not set | ||
615 | CONFIG_INPUT_MOUSE=y | ||
616 | CONFIG_MOUSE_PS2=m | ||
617 | CONFIG_MOUSE_PS2_ALPS=y | ||
618 | CONFIG_MOUSE_PS2_LOGIPS2PP=y | ||
619 | CONFIG_MOUSE_PS2_SYNAPTICS=y | ||
620 | CONFIG_MOUSE_PS2_TRACKPOINT=y | ||
621 | CONFIG_MOUSE_PS2_ELANTECH=y | ||
622 | # CONFIG_MOUSE_PS2_SENTELIC is not set | ||
623 | # CONFIG_MOUSE_PS2_TOUCHKIT is not set | ||
624 | # CONFIG_MOUSE_SERIAL is not set | ||
625 | # CONFIG_MOUSE_VSXXXAA is not set | ||
626 | # CONFIG_MOUSE_GPIO is not set | ||
627 | # CONFIG_MOUSE_SYNAPTICS_I2C is not set | ||
628 | # CONFIG_INPUT_JOYSTICK is not set | ||
629 | # CONFIG_INPUT_TABLET is not set | ||
630 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
631 | # CONFIG_INPUT_MISC is not set | ||
632 | |||
633 | # | ||
634 | # Hardware I/O ports | ||
635 | # | ||
636 | CONFIG_SERIO=y | ||
637 | CONFIG_SERIO_SERPORT=m | ||
638 | CONFIG_SERIO_LIBPS2=y | ||
639 | # CONFIG_SERIO_RAW is not set | ||
640 | # CONFIG_SERIO_ALTERA_PS2 is not set | ||
641 | # CONFIG_GAMEPORT is not set | ||
642 | |||
643 | # | ||
644 | # Character devices | ||
645 | # | ||
646 | CONFIG_VT=y | ||
647 | CONFIG_CONSOLE_TRANSLATIONS=y | ||
648 | CONFIG_VT_CONSOLE=y | ||
649 | CONFIG_HW_CONSOLE=y | ||
650 | CONFIG_VT_HW_CONSOLE_BINDING=y | ||
651 | # CONFIG_DEVKMEM is not set | ||
652 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
653 | |||
654 | # | ||
655 | # Serial drivers | ||
656 | # | ||
657 | # CONFIG_SERIAL_8250 is not set | ||
658 | |||
659 | # | ||
660 | # Non-8250 serial port support | ||
661 | # | ||
662 | CONFIG_SERIAL_IMX=y | ||
663 | CONFIG_SERIAL_IMX_CONSOLE=y | ||
664 | CONFIG_SERIAL_CORE=y | ||
665 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
666 | CONFIG_UNIX98_PTYS=y | ||
667 | # CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set | ||
668 | # CONFIG_LEGACY_PTYS is not set | ||
669 | # CONFIG_IPMI_HANDLER is not set | ||
670 | CONFIG_HW_RANDOM=y | ||
671 | # CONFIG_HW_RANDOM_TIMERIOMEM is not set | ||
672 | # CONFIG_R3964 is not set | ||
673 | # CONFIG_RAW_DRIVER is not set | ||
674 | # CONFIG_TCG_TPM is not set | ||
675 | CONFIG_I2C=y | ||
676 | CONFIG_I2C_BOARDINFO=y | ||
677 | # CONFIG_I2C_COMPAT is not set | ||
678 | CONFIG_I2C_CHARDEV=m | ||
679 | # CONFIG_I2C_HELPER_AUTO is not set | ||
680 | |||
681 | # | ||
682 | # I2C Algorithms | ||
683 | # | ||
684 | CONFIG_I2C_ALGOBIT=m | ||
685 | CONFIG_I2C_ALGOPCF=m | ||
686 | CONFIG_I2C_ALGOPCA=m | ||
687 | |||
688 | # | ||
689 | # I2C Hardware Bus support | ||
690 | # | ||
691 | |||
692 | # | ||
693 | # I2C system bus drivers (mostly embedded / system-on-chip) | ||
694 | # | ||
695 | # CONFIG_I2C_DESIGNWARE is not set | ||
696 | # CONFIG_I2C_GPIO is not set | ||
697 | # CONFIG_I2C_IMX is not set | ||
698 | # CONFIG_I2C_OCORES is not set | ||
699 | # CONFIG_I2C_SIMTEC is not set | ||
700 | |||
701 | # | ||
702 | # External I2C/SMBus adapter drivers | ||
703 | # | ||
704 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
705 | # CONFIG_I2C_TAOS_EVM is not set | ||
706 | |||
707 | # | ||
708 | # Other I2C/SMBus bus drivers | ||
709 | # | ||
710 | # CONFIG_I2C_PCA_PLATFORM is not set | ||
711 | # CONFIG_I2C_STUB is not set | ||
712 | |||
713 | # | ||
714 | # Miscellaneous I2C Chip support | ||
715 | # | ||
716 | # CONFIG_SENSORS_TSL2550 is not set | ||
717 | # CONFIG_I2C_DEBUG_CORE is not set | ||
718 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
719 | # CONFIG_I2C_DEBUG_BUS is not set | ||
720 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
721 | # CONFIG_SPI is not set | ||
722 | |||
723 | # | ||
724 | # PPS support | ||
725 | # | ||
726 | # CONFIG_PPS is not set | ||
727 | CONFIG_ARCH_REQUIRE_GPIOLIB=y | ||
728 | CONFIG_GPIOLIB=y | ||
729 | # CONFIG_DEBUG_GPIO is not set | ||
730 | CONFIG_GPIO_SYSFS=y | ||
731 | |||
732 | # | ||
733 | # Memory mapped GPIO expanders: | ||
734 | # | ||
735 | |||
736 | # | ||
737 | # I2C GPIO expanders: | ||
738 | # | ||
739 | # CONFIG_GPIO_MAX732X is not set | ||
740 | # CONFIG_GPIO_PCA953X is not set | ||
741 | # CONFIG_GPIO_PCF857X is not set | ||
742 | # CONFIG_GPIO_ADP5588 is not set | ||
743 | |||
744 | # | ||
745 | # PCI GPIO expanders: | ||
746 | # | ||
747 | |||
748 | # | ||
749 | # SPI GPIO expanders: | ||
750 | # | ||
751 | |||
752 | # | ||
753 | # AC97 GPIO expanders: | ||
754 | # | ||
755 | # CONFIG_W1 is not set | ||
756 | # CONFIG_POWER_SUPPLY is not set | ||
757 | # CONFIG_HWMON is not set | ||
758 | # CONFIG_THERMAL is not set | ||
759 | # CONFIG_WATCHDOG is not set | ||
760 | CONFIG_SSB_POSSIBLE=y | ||
761 | |||
762 | # | ||
763 | # Sonics Silicon Backplane | ||
764 | # | ||
765 | # CONFIG_SSB is not set | ||
766 | |||
767 | # | ||
768 | # Multifunction device drivers | ||
769 | # | ||
770 | # CONFIG_MFD_CORE is not set | ||
771 | # CONFIG_MFD_SM501 is not set | ||
772 | # CONFIG_MFD_ASIC3 is not set | ||
773 | # CONFIG_HTC_EGPIO is not set | ||
774 | # CONFIG_HTC_PASIC3 is not set | ||
775 | # CONFIG_TPS65010 is not set | ||
776 | # CONFIG_TWL4030_CORE is not set | ||
777 | # CONFIG_MFD_TMIO is not set | ||
778 | # CONFIG_MFD_T7L66XB is not set | ||
779 | # CONFIG_MFD_TC6387XB is not set | ||
780 | # CONFIG_MFD_TC6393XB is not set | ||
781 | # CONFIG_PMIC_DA903X is not set | ||
782 | # CONFIG_PMIC_ADP5520 is not set | ||
783 | # CONFIG_MFD_WM8400 is not set | ||
784 | # CONFIG_MFD_WM831X is not set | ||
785 | # CONFIG_MFD_WM8350_I2C is not set | ||
786 | # CONFIG_MFD_PCF50633 is not set | ||
787 | # CONFIG_AB3100_CORE is not set | ||
788 | # CONFIG_MFD_88PM8607 is not set | ||
789 | # CONFIG_REGULATOR is not set | ||
790 | # CONFIG_MEDIA_SUPPORT is not set | ||
791 | |||
792 | # | ||
793 | # Graphics support | ||
794 | # | ||
795 | # CONFIG_VGASTATE is not set | ||
796 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
797 | # CONFIG_FB is not set | ||
798 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
799 | |||
800 | # | ||
801 | # Display device support | ||
802 | # | ||
803 | # CONFIG_DISPLAY_SUPPORT is not set | ||
804 | |||
805 | # | ||
806 | # Console display driver support | ||
807 | # | ||
808 | # CONFIG_VGA_CONSOLE is not set | ||
809 | CONFIG_DUMMY_CONSOLE=y | ||
810 | # CONFIG_SOUND is not set | ||
811 | # CONFIG_HID_SUPPORT is not set | ||
812 | # CONFIG_USB_SUPPORT is not set | ||
813 | CONFIG_MMC=y | ||
814 | # CONFIG_MMC_DEBUG is not set | ||
815 | # CONFIG_MMC_UNSAFE_RESUME is not set | ||
816 | |||
817 | # | ||
818 | # MMC/SD/SDIO Card Drivers | ||
819 | # | ||
820 | CONFIG_MMC_BLOCK=m | ||
821 | CONFIG_MMC_BLOCK_BOUNCE=y | ||
822 | # CONFIG_SDIO_UART is not set | ||
823 | # CONFIG_MMC_TEST is not set | ||
824 | |||
825 | # | ||
826 | # MMC/SD/SDIO Host Controller Drivers | ||
827 | # | ||
828 | CONFIG_MMC_SDHCI=m | ||
829 | # CONFIG_MMC_SDHCI_PLTFM is not set | ||
830 | # CONFIG_MMC_AT91 is not set | ||
831 | # CONFIG_MMC_ATMELMCI is not set | ||
832 | # CONFIG_MMC_MXC is not set | ||
833 | # CONFIG_MEMSTICK is not set | ||
834 | CONFIG_NEW_LEDS=y | ||
835 | CONFIG_LEDS_CLASS=m | ||
836 | |||
837 | # | ||
838 | # LED drivers | ||
839 | # | ||
840 | # CONFIG_LEDS_PCA9532 is not set | ||
841 | # CONFIG_LEDS_GPIO is not set | ||
842 | # CONFIG_LEDS_LP3944 is not set | ||
843 | # CONFIG_LEDS_PCA955X is not set | ||
844 | # CONFIG_LEDS_BD2802 is not set | ||
845 | # CONFIG_LEDS_LT3593 is not set | ||
846 | |||
847 | # | ||
848 | # LED Triggers | ||
849 | # | ||
850 | # CONFIG_LEDS_TRIGGERS is not set | ||
851 | # CONFIG_ACCESSIBILITY is not set | ||
852 | CONFIG_RTC_LIB=y | ||
853 | CONFIG_RTC_CLASS=y | ||
854 | CONFIG_RTC_HCTOSYS=y | ||
855 | CONFIG_RTC_HCTOSYS_DEVICE="rtc0" | ||
856 | # CONFIG_RTC_DEBUG is not set | ||
857 | |||
858 | # | ||
859 | # RTC interfaces | ||
860 | # | ||
861 | CONFIG_RTC_INTF_SYSFS=y | ||
862 | CONFIG_RTC_INTF_PROC=y | ||
863 | CONFIG_RTC_INTF_DEV=y | ||
864 | CONFIG_RTC_INTF_DEV_UIE_EMUL=y | ||
865 | # CONFIG_RTC_DRV_TEST is not set | ||
866 | |||
867 | # | ||
868 | # I2C RTC drivers | ||
869 | # | ||
870 | # CONFIG_RTC_DRV_DS1307 is not set | ||
871 | # CONFIG_RTC_DRV_DS1374 is not set | ||
872 | # CONFIG_RTC_DRV_DS1672 is not set | ||
873 | # CONFIG_RTC_DRV_MAX6900 is not set | ||
874 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
875 | # CONFIG_RTC_DRV_ISL1208 is not set | ||
876 | # CONFIG_RTC_DRV_X1205 is not set | ||
877 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
878 | # CONFIG_RTC_DRV_PCF8583 is not set | ||
879 | # CONFIG_RTC_DRV_M41T80 is not set | ||
880 | # CONFIG_RTC_DRV_BQ32K is not set | ||
881 | # CONFIG_RTC_DRV_S35390A is not set | ||
882 | # CONFIG_RTC_DRV_FM3130 is not set | ||
883 | # CONFIG_RTC_DRV_RX8581 is not set | ||
884 | # CONFIG_RTC_DRV_RX8025 is not set | ||
885 | |||
886 | # | ||
887 | # SPI RTC drivers | ||
888 | # | ||
889 | |||
890 | # | ||
891 | # Platform RTC drivers | ||
892 | # | ||
893 | # CONFIG_RTC_DRV_CMOS is not set | ||
894 | # CONFIG_RTC_DRV_DS1286 is not set | ||
895 | # CONFIG_RTC_DRV_DS1511 is not set | ||
896 | # CONFIG_RTC_DRV_DS1553 is not set | ||
897 | # CONFIG_RTC_DRV_DS1742 is not set | ||
898 | # CONFIG_RTC_DRV_STK17TA8 is not set | ||
899 | # CONFIG_RTC_DRV_M48T86 is not set | ||
900 | # CONFIG_RTC_DRV_M48T35 is not set | ||
901 | # CONFIG_RTC_DRV_M48T59 is not set | ||
902 | # CONFIG_RTC_DRV_MSM6242 is not set | ||
903 | # CONFIG_RTC_MXC is not set | ||
904 | # CONFIG_RTC_DRV_BQ4802 is not set | ||
905 | # CONFIG_RTC_DRV_RP5C01 is not set | ||
906 | # CONFIG_RTC_DRV_V3020 is not set | ||
907 | |||
908 | # | ||
909 | # on-CPU RTC drivers | ||
910 | # | ||
911 | # CONFIG_DMADEVICES is not set | ||
912 | # CONFIG_AUXDISPLAY is not set | ||
913 | # CONFIG_UIO is not set | ||
914 | |||
915 | # | ||
916 | # TI VLYNQ | ||
917 | # | ||
918 | # CONFIG_STAGING is not set | ||
919 | |||
920 | # | ||
921 | # File systems | ||
922 | # | ||
923 | CONFIG_EXT2_FS=y | ||
924 | CONFIG_EXT2_FS_XATTR=y | ||
925 | CONFIG_EXT2_FS_POSIX_ACL=y | ||
926 | CONFIG_EXT2_FS_SECURITY=y | ||
927 | # CONFIG_EXT2_FS_XIP is not set | ||
928 | CONFIG_EXT3_FS=y | ||
929 | CONFIG_EXT3_DEFAULTS_TO_ORDERED=y | ||
930 | CONFIG_EXT3_FS_XATTR=y | ||
931 | CONFIG_EXT3_FS_POSIX_ACL=y | ||
932 | CONFIG_EXT3_FS_SECURITY=y | ||
933 | CONFIG_EXT4_FS=y | ||
934 | CONFIG_EXT4_FS_XATTR=y | ||
935 | CONFIG_EXT4_FS_POSIX_ACL=y | ||
936 | CONFIG_EXT4_FS_SECURITY=y | ||
937 | # CONFIG_EXT4_DEBUG is not set | ||
938 | CONFIG_JBD=y | ||
939 | # CONFIG_JBD_DEBUG is not set | ||
940 | CONFIG_JBD2=y | ||
941 | # CONFIG_JBD2_DEBUG is not set | ||
942 | CONFIG_FS_MBCACHE=y | ||
943 | # CONFIG_REISERFS_FS is not set | ||
944 | # CONFIG_JFS_FS is not set | ||
945 | CONFIG_FS_POSIX_ACL=y | ||
946 | # CONFIG_XFS_FS is not set | ||
947 | # CONFIG_OCFS2_FS is not set | ||
948 | # CONFIG_BTRFS_FS is not set | ||
949 | # CONFIG_NILFS2_FS is not set | ||
950 | CONFIG_FILE_LOCKING=y | ||
951 | CONFIG_FSNOTIFY=y | ||
952 | CONFIG_DNOTIFY=y | ||
953 | CONFIG_INOTIFY=y | ||
954 | CONFIG_INOTIFY_USER=y | ||
955 | CONFIG_QUOTA=y | ||
956 | CONFIG_QUOTA_NETLINK_INTERFACE=y | ||
957 | # CONFIG_PRINT_QUOTA_WARNING is not set | ||
958 | # CONFIG_QFMT_V1 is not set | ||
959 | # CONFIG_QFMT_V2 is not set | ||
960 | CONFIG_QUOTACTL=y | ||
961 | CONFIG_AUTOFS_FS=y | ||
962 | CONFIG_AUTOFS4_FS=y | ||
963 | CONFIG_FUSE_FS=y | ||
964 | # CONFIG_CUSE is not set | ||
965 | |||
966 | # | ||
967 | # Caches | ||
968 | # | ||
969 | # CONFIG_FSCACHE is not set | ||
970 | |||
971 | # | ||
972 | # CD-ROM/DVD Filesystems | ||
973 | # | ||
974 | CONFIG_ISO9660_FS=m | ||
975 | CONFIG_JOLIET=y | ||
976 | CONFIG_ZISOFS=y | ||
977 | CONFIG_UDF_FS=m | ||
978 | CONFIG_UDF_NLS=y | ||
979 | |||
980 | # | ||
981 | # DOS/FAT/NT Filesystems | ||
982 | # | ||
983 | CONFIG_FAT_FS=y | ||
984 | CONFIG_MSDOS_FS=m | ||
985 | CONFIG_VFAT_FS=y | ||
986 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
987 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
988 | # CONFIG_NTFS_FS is not set | ||
989 | |||
990 | # | ||
991 | # Pseudo filesystems | ||
992 | # | ||
993 | CONFIG_PROC_FS=y | ||
994 | CONFIG_PROC_SYSCTL=y | ||
995 | CONFIG_PROC_PAGE_MONITOR=y | ||
996 | CONFIG_SYSFS=y | ||
997 | # CONFIG_TMPFS is not set | ||
998 | # CONFIG_HUGETLB_PAGE is not set | ||
999 | CONFIG_CONFIGFS_FS=m | ||
1000 | CONFIG_MISC_FILESYSTEMS=y | ||
1001 | # CONFIG_ADFS_FS is not set | ||
1002 | # CONFIG_AFFS_FS is not set | ||
1003 | # CONFIG_ECRYPT_FS is not set | ||
1004 | # CONFIG_HFS_FS is not set | ||
1005 | # CONFIG_HFSPLUS_FS is not set | ||
1006 | # CONFIG_BEFS_FS is not set | ||
1007 | # CONFIG_BFS_FS is not set | ||
1008 | # CONFIG_EFS_FS is not set | ||
1009 | # CONFIG_CRAMFS is not set | ||
1010 | # CONFIG_SQUASHFS is not set | ||
1011 | # CONFIG_VXFS_FS is not set | ||
1012 | # CONFIG_MINIX_FS is not set | ||
1013 | # CONFIG_OMFS_FS is not set | ||
1014 | # CONFIG_HPFS_FS is not set | ||
1015 | # CONFIG_QNX4FS_FS is not set | ||
1016 | # CONFIG_ROMFS_FS is not set | ||
1017 | # CONFIG_SYSV_FS is not set | ||
1018 | # CONFIG_UFS_FS is not set | ||
1019 | CONFIG_NETWORK_FILESYSTEMS=y | ||
1020 | CONFIG_NFS_FS=y | ||
1021 | CONFIG_NFS_V3=y | ||
1022 | CONFIG_NFS_V3_ACL=y | ||
1023 | CONFIG_NFS_V4=y | ||
1024 | # CONFIG_NFS_V4_1 is not set | ||
1025 | CONFIG_ROOT_NFS=y | ||
1026 | # CONFIG_NFSD is not set | ||
1027 | CONFIG_LOCKD=y | ||
1028 | CONFIG_LOCKD_V4=y | ||
1029 | CONFIG_NFS_ACL_SUPPORT=y | ||
1030 | CONFIG_NFS_COMMON=y | ||
1031 | CONFIG_SUNRPC=y | ||
1032 | CONFIG_SUNRPC_GSS=y | ||
1033 | CONFIG_RPCSEC_GSS_KRB5=y | ||
1034 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
1035 | # CONFIG_SMB_FS is not set | ||
1036 | # CONFIG_CIFS is not set | ||
1037 | # CONFIG_NCP_FS is not set | ||
1038 | # CONFIG_CODA_FS is not set | ||
1039 | # CONFIG_AFS_FS is not set | ||
1040 | |||
1041 | # | ||
1042 | # Partition Types | ||
1043 | # | ||
1044 | # CONFIG_PARTITION_ADVANCED is not set | ||
1045 | CONFIG_MSDOS_PARTITION=y | ||
1046 | CONFIG_NLS=y | ||
1047 | CONFIG_NLS_DEFAULT="cp437" | ||
1048 | CONFIG_NLS_CODEPAGE_437=y | ||
1049 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
1050 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
1051 | # CONFIG_NLS_CODEPAGE_850 is not set | ||
1052 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
1053 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
1054 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
1055 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
1056 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
1057 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
1058 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
1059 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
1060 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
1061 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
1062 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
1063 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
1064 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
1065 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
1066 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
1067 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
1068 | # CONFIG_NLS_ISO8859_8 is not set | ||
1069 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
1070 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
1071 | CONFIG_NLS_ASCII=y | ||
1072 | CONFIG_NLS_ISO8859_1=m | ||
1073 | # CONFIG_NLS_ISO8859_2 is not set | ||
1074 | # CONFIG_NLS_ISO8859_3 is not set | ||
1075 | # CONFIG_NLS_ISO8859_4 is not set | ||
1076 | # CONFIG_NLS_ISO8859_5 is not set | ||
1077 | # CONFIG_NLS_ISO8859_6 is not set | ||
1078 | # CONFIG_NLS_ISO8859_7 is not set | ||
1079 | # CONFIG_NLS_ISO8859_9 is not set | ||
1080 | # CONFIG_NLS_ISO8859_13 is not set | ||
1081 | # CONFIG_NLS_ISO8859_14 is not set | ||
1082 | CONFIG_NLS_ISO8859_15=m | ||
1083 | # CONFIG_NLS_KOI8_R is not set | ||
1084 | # CONFIG_NLS_KOI8_U is not set | ||
1085 | CONFIG_NLS_UTF8=y | ||
1086 | # CONFIG_DLM is not set | ||
1087 | |||
1088 | # | ||
1089 | # Kernel hacking | ||
1090 | # | ||
1091 | # CONFIG_PRINTK_TIME is not set | ||
1092 | CONFIG_ENABLE_WARN_DEPRECATED=y | ||
1093 | CONFIG_ENABLE_MUST_CHECK=y | ||
1094 | CONFIG_FRAME_WARN=1024 | ||
1095 | CONFIG_MAGIC_SYSRQ=y | ||
1096 | # CONFIG_STRIP_ASM_SYMS is not set | ||
1097 | # CONFIG_UNUSED_SYMBOLS is not set | ||
1098 | CONFIG_DEBUG_FS=y | ||
1099 | # CONFIG_HEADERS_CHECK is not set | ||
1100 | CONFIG_DEBUG_KERNEL=y | ||
1101 | # CONFIG_DEBUG_SHIRQ is not set | ||
1102 | # CONFIG_DETECT_SOFTLOCKUP is not set | ||
1103 | # CONFIG_DETECT_HUNG_TASK is not set | ||
1104 | # CONFIG_SCHED_DEBUG is not set | ||
1105 | # CONFIG_SCHEDSTATS is not set | ||
1106 | # CONFIG_TIMER_STATS is not set | ||
1107 | # CONFIG_DEBUG_OBJECTS is not set | ||
1108 | # CONFIG_DEBUG_KMEMLEAK is not set | ||
1109 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
1110 | # CONFIG_RT_MUTEX_TESTER is not set | ||
1111 | # CONFIG_DEBUG_SPINLOCK is not set | ||
1112 | # CONFIG_DEBUG_MUTEXES is not set | ||
1113 | # CONFIG_DEBUG_LOCK_ALLOC is not set | ||
1114 | # CONFIG_PROVE_LOCKING is not set | ||
1115 | # CONFIG_LOCK_STAT is not set | ||
1116 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
1117 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
1118 | # CONFIG_DEBUG_KOBJECT is not set | ||
1119 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
1120 | # CONFIG_DEBUG_INFO is not set | ||
1121 | # CONFIG_DEBUG_VM is not set | ||
1122 | # CONFIG_DEBUG_WRITECOUNT is not set | ||
1123 | # CONFIG_DEBUG_MEMORY_INIT is not set | ||
1124 | # CONFIG_DEBUG_LIST is not set | ||
1125 | # CONFIG_DEBUG_SG is not set | ||
1126 | # CONFIG_DEBUG_NOTIFIERS is not set | ||
1127 | # CONFIG_DEBUG_CREDENTIALS is not set | ||
1128 | CONFIG_FRAME_POINTER=y | ||
1129 | # CONFIG_BOOT_PRINTK_DELAY is not set | ||
1130 | # CONFIG_RCU_TORTURE_TEST is not set | ||
1131 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | ||
1132 | # CONFIG_BACKTRACE_SELF_TEST is not set | ||
1133 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set | ||
1134 | # CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set | ||
1135 | # CONFIG_FAULT_INJECTION is not set | ||
1136 | # CONFIG_LATENCYTOP is not set | ||
1137 | # CONFIG_SYSCTL_SYSCALL_CHECK is not set | ||
1138 | # CONFIG_PAGE_POISONING is not set | ||
1139 | CONFIG_HAVE_FUNCTION_TRACER=y | ||
1140 | CONFIG_TRACING_SUPPORT=y | ||
1141 | # CONFIG_FTRACE is not set | ||
1142 | # CONFIG_DYNAMIC_DEBUG is not set | ||
1143 | # CONFIG_SAMPLES is not set | ||
1144 | CONFIG_HAVE_ARCH_KGDB=y | ||
1145 | # CONFIG_KGDB is not set | ||
1146 | # CONFIG_ARM_UNWIND is not set | ||
1147 | # CONFIG_DEBUG_USER is not set | ||
1148 | # CONFIG_DEBUG_ERRORS is not set | ||
1149 | # CONFIG_DEBUG_STACK_USAGE is not set | ||
1150 | CONFIG_DEBUG_LL=y | ||
1151 | CONFIG_EARLY_PRINTK=y | ||
1152 | # CONFIG_DEBUG_ICEDCC is not set | ||
1153 | # CONFIG_OC_ETM is not set | ||
1154 | |||
1155 | # | ||
1156 | # Security options | ||
1157 | # | ||
1158 | CONFIG_KEYS=y | ||
1159 | # CONFIG_KEYS_DEBUG_PROC_KEYS is not set | ||
1160 | # CONFIG_SECURITY is not set | ||
1161 | CONFIG_SECURITYFS=y | ||
1162 | # CONFIG_DEFAULT_SECURITY_SELINUX is not set | ||
1163 | # CONFIG_DEFAULT_SECURITY_SMACK is not set | ||
1164 | # CONFIG_DEFAULT_SECURITY_TOMOYO is not set | ||
1165 | CONFIG_DEFAULT_SECURITY_DAC=y | ||
1166 | CONFIG_DEFAULT_SECURITY="" | ||
1167 | CONFIG_CRYPTO=y | ||
1168 | |||
1169 | # | ||
1170 | # Crypto core or helper | ||
1171 | # | ||
1172 | CONFIG_CRYPTO_ALGAPI=y | ||
1173 | CONFIG_CRYPTO_ALGAPI2=y | ||
1174 | CONFIG_CRYPTO_AEAD2=y | ||
1175 | CONFIG_CRYPTO_BLKCIPHER=y | ||
1176 | CONFIG_CRYPTO_BLKCIPHER2=y | ||
1177 | CONFIG_CRYPTO_HASH=y | ||
1178 | CONFIG_CRYPTO_HASH2=y | ||
1179 | CONFIG_CRYPTO_RNG2=y | ||
1180 | CONFIG_CRYPTO_PCOMP=y | ||
1181 | CONFIG_CRYPTO_MANAGER=y | ||
1182 | CONFIG_CRYPTO_MANAGER2=y | ||
1183 | # CONFIG_CRYPTO_GF128MUL is not set | ||
1184 | # CONFIG_CRYPTO_NULL is not set | ||
1185 | CONFIG_CRYPTO_WORKQUEUE=y | ||
1186 | # CONFIG_CRYPTO_CRYPTD is not set | ||
1187 | # CONFIG_CRYPTO_AUTHENC is not set | ||
1188 | # CONFIG_CRYPTO_TEST is not set | ||
1189 | |||
1190 | # | ||
1191 | # Authenticated Encryption with Associated Data | ||
1192 | # | ||
1193 | # CONFIG_CRYPTO_CCM is not set | ||
1194 | # CONFIG_CRYPTO_GCM is not set | ||
1195 | # CONFIG_CRYPTO_SEQIV is not set | ||
1196 | |||
1197 | # | ||
1198 | # Block modes | ||
1199 | # | ||
1200 | CONFIG_CRYPTO_CBC=y | ||
1201 | # CONFIG_CRYPTO_CTR is not set | ||
1202 | # CONFIG_CRYPTO_CTS is not set | ||
1203 | # CONFIG_CRYPTO_ECB is not set | ||
1204 | # CONFIG_CRYPTO_LRW is not set | ||
1205 | # CONFIG_CRYPTO_PCBC is not set | ||
1206 | # CONFIG_CRYPTO_XTS is not set | ||
1207 | |||
1208 | # | ||
1209 | # Hash modes | ||
1210 | # | ||
1211 | # CONFIG_CRYPTO_HMAC is not set | ||
1212 | # CONFIG_CRYPTO_XCBC is not set | ||
1213 | # CONFIG_CRYPTO_VMAC is not set | ||
1214 | |||
1215 | # | ||
1216 | # Digest | ||
1217 | # | ||
1218 | CONFIG_CRYPTO_CRC32C=m | ||
1219 | # CONFIG_CRYPTO_GHASH is not set | ||
1220 | # CONFIG_CRYPTO_MD4 is not set | ||
1221 | CONFIG_CRYPTO_MD5=y | ||
1222 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
1223 | # CONFIG_CRYPTO_RMD128 is not set | ||
1224 | # CONFIG_CRYPTO_RMD160 is not set | ||
1225 | # CONFIG_CRYPTO_RMD256 is not set | ||
1226 | # CONFIG_CRYPTO_RMD320 is not set | ||
1227 | # CONFIG_CRYPTO_SHA1 is not set | ||
1228 | # CONFIG_CRYPTO_SHA256 is not set | ||
1229 | # CONFIG_CRYPTO_SHA512 is not set | ||
1230 | # CONFIG_CRYPTO_TGR192 is not set | ||
1231 | # CONFIG_CRYPTO_WP512 is not set | ||
1232 | |||
1233 | # | ||
1234 | # Ciphers | ||
1235 | # | ||
1236 | # CONFIG_CRYPTO_AES is not set | ||
1237 | # CONFIG_CRYPTO_ANUBIS is not set | ||
1238 | # CONFIG_CRYPTO_ARC4 is not set | ||
1239 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
1240 | # CONFIG_CRYPTO_CAMELLIA is not set | ||
1241 | # CONFIG_CRYPTO_CAST5 is not set | ||
1242 | # CONFIG_CRYPTO_CAST6 is not set | ||
1243 | CONFIG_CRYPTO_DES=y | ||
1244 | # CONFIG_CRYPTO_FCRYPT is not set | ||
1245 | # CONFIG_CRYPTO_KHAZAD is not set | ||
1246 | # CONFIG_CRYPTO_SALSA20 is not set | ||
1247 | # CONFIG_CRYPTO_SEED is not set | ||
1248 | # CONFIG_CRYPTO_SERPENT is not set | ||
1249 | # CONFIG_CRYPTO_TEA is not set | ||
1250 | # CONFIG_CRYPTO_TWOFISH is not set | ||
1251 | |||
1252 | # | ||
1253 | # Compression | ||
1254 | # | ||
1255 | CONFIG_CRYPTO_DEFLATE=y | ||
1256 | # CONFIG_CRYPTO_ZLIB is not set | ||
1257 | CONFIG_CRYPTO_LZO=y | ||
1258 | |||
1259 | # | ||
1260 | # Random Number Generation | ||
1261 | # | ||
1262 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | ||
1263 | # CONFIG_CRYPTO_HW is not set | ||
1264 | # CONFIG_BINARY_PRINTF is not set | ||
1265 | |||
1266 | # | ||
1267 | # Library routines | ||
1268 | # | ||
1269 | CONFIG_BITREVERSE=y | ||
1270 | CONFIG_RATIONAL=y | ||
1271 | CONFIG_GENERIC_FIND_LAST_BIT=y | ||
1272 | CONFIG_CRC_CCITT=m | ||
1273 | CONFIG_CRC16=y | ||
1274 | CONFIG_CRC_T10DIF=y | ||
1275 | CONFIG_CRC_ITU_T=m | ||
1276 | CONFIG_CRC32=y | ||
1277 | CONFIG_CRC7=m | ||
1278 | CONFIG_LIBCRC32C=m | ||
1279 | CONFIG_ZLIB_INFLATE=y | ||
1280 | CONFIG_ZLIB_DEFLATE=y | ||
1281 | CONFIG_LZO_COMPRESS=y | ||
1282 | CONFIG_LZO_DECOMPRESS=y | ||
1283 | CONFIG_HAS_IOMEM=y | ||
1284 | CONFIG_HAS_IOPORT=y | ||
1285 | CONFIG_HAS_DMA=y | ||
1286 | CONFIG_NLATTR=y | ||
diff --git a/arch/arm/configs/orion5x_defconfig b/arch/arm/configs/orion5x_defconfig index 85b05d3e279..ee1ebd8dfa8 100644 --- a/arch/arm/configs/orion5x_defconfig +++ b/arch/arm/configs/orion5x_defconfig | |||
@@ -1,7 +1,7 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.32-rc6 | 3 | # Linux kernel version: 2.6.33-rc6 |
4 | # Sat Nov 7 20:52:21 2009 | 4 | # Thu Feb 4 23:30:00 2010 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | 7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y |
@@ -32,6 +32,12 @@ CONFIG_LOCK_KERNEL=y | |||
32 | CONFIG_INIT_ENV_ARG_LIMIT=32 | 32 | CONFIG_INIT_ENV_ARG_LIMIT=32 |
33 | CONFIG_LOCALVERSION="" | 33 | CONFIG_LOCALVERSION="" |
34 | CONFIG_LOCALVERSION_AUTO=y | 34 | CONFIG_LOCALVERSION_AUTO=y |
35 | CONFIG_HAVE_KERNEL_GZIP=y | ||
36 | CONFIG_HAVE_KERNEL_LZO=y | ||
37 | CONFIG_KERNEL_GZIP=y | ||
38 | # CONFIG_KERNEL_BZIP2 is not set | ||
39 | # CONFIG_KERNEL_LZMA is not set | ||
40 | # CONFIG_KERNEL_LZO is not set | ||
35 | CONFIG_SWAP=y | 41 | CONFIG_SWAP=y |
36 | CONFIG_SYSVIPC=y | 42 | CONFIG_SYSVIPC=y |
37 | CONFIG_SYSVIPC_SYSCTL=y | 43 | CONFIG_SYSVIPC_SYSCTL=y |
@@ -45,6 +51,7 @@ CONFIG_SYSVIPC_SYSCTL=y | |||
45 | # | 51 | # |
46 | CONFIG_TREE_RCU=y | 52 | CONFIG_TREE_RCU=y |
47 | # CONFIG_TREE_PREEMPT_RCU is not set | 53 | # CONFIG_TREE_PREEMPT_RCU is not set |
54 | # CONFIG_TINY_RCU is not set | ||
48 | # CONFIG_RCU_TRACE is not set | 55 | # CONFIG_RCU_TRACE is not set |
49 | CONFIG_RCU_FANOUT=32 | 56 | CONFIG_RCU_FANOUT=32 |
50 | # CONFIG_RCU_FANOUT_EXACT is not set | 57 | # CONFIG_RCU_FANOUT_EXACT is not set |
@@ -122,14 +129,41 @@ CONFIG_LBDAF=y | |||
122 | # IO Schedulers | 129 | # IO Schedulers |
123 | # | 130 | # |
124 | CONFIG_IOSCHED_NOOP=y | 131 | CONFIG_IOSCHED_NOOP=y |
125 | CONFIG_IOSCHED_AS=y | ||
126 | CONFIG_IOSCHED_DEADLINE=y | 132 | CONFIG_IOSCHED_DEADLINE=y |
127 | CONFIG_IOSCHED_CFQ=y | 133 | CONFIG_IOSCHED_CFQ=y |
128 | # CONFIG_DEFAULT_AS is not set | ||
129 | # CONFIG_DEFAULT_DEADLINE is not set | 134 | # CONFIG_DEFAULT_DEADLINE is not set |
130 | CONFIG_DEFAULT_CFQ=y | 135 | CONFIG_DEFAULT_CFQ=y |
131 | # CONFIG_DEFAULT_NOOP is not set | 136 | # CONFIG_DEFAULT_NOOP is not set |
132 | CONFIG_DEFAULT_IOSCHED="cfq" | 137 | CONFIG_DEFAULT_IOSCHED="cfq" |
138 | # CONFIG_INLINE_SPIN_TRYLOCK is not set | ||
139 | # CONFIG_INLINE_SPIN_TRYLOCK_BH is not set | ||
140 | # CONFIG_INLINE_SPIN_LOCK is not set | ||
141 | # CONFIG_INLINE_SPIN_LOCK_BH is not set | ||
142 | # CONFIG_INLINE_SPIN_LOCK_IRQ is not set | ||
143 | # CONFIG_INLINE_SPIN_LOCK_IRQSAVE is not set | ||
144 | # CONFIG_INLINE_SPIN_UNLOCK is not set | ||
145 | # CONFIG_INLINE_SPIN_UNLOCK_BH is not set | ||
146 | # CONFIG_INLINE_SPIN_UNLOCK_IRQ is not set | ||
147 | # CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE is not set | ||
148 | # CONFIG_INLINE_READ_TRYLOCK is not set | ||
149 | # CONFIG_INLINE_READ_LOCK is not set | ||
150 | # CONFIG_INLINE_READ_LOCK_BH is not set | ||
151 | # CONFIG_INLINE_READ_LOCK_IRQ is not set | ||
152 | # CONFIG_INLINE_READ_LOCK_IRQSAVE is not set | ||
153 | # CONFIG_INLINE_READ_UNLOCK is not set | ||
154 | # CONFIG_INLINE_READ_UNLOCK_BH is not set | ||
155 | # CONFIG_INLINE_READ_UNLOCK_IRQ is not set | ||
156 | # CONFIG_INLINE_READ_UNLOCK_IRQRESTORE is not set | ||
157 | # CONFIG_INLINE_WRITE_TRYLOCK is not set | ||
158 | # CONFIG_INLINE_WRITE_LOCK is not set | ||
159 | # CONFIG_INLINE_WRITE_LOCK_BH is not set | ||
160 | # CONFIG_INLINE_WRITE_LOCK_IRQ is not set | ||
161 | # CONFIG_INLINE_WRITE_LOCK_IRQSAVE is not set | ||
162 | # CONFIG_INLINE_WRITE_UNLOCK is not set | ||
163 | # CONFIG_INLINE_WRITE_UNLOCK_BH is not set | ||
164 | # CONFIG_INLINE_WRITE_UNLOCK_IRQ is not set | ||
165 | # CONFIG_INLINE_WRITE_UNLOCK_IRQRESTORE is not set | ||
166 | # CONFIG_MUTEX_SPIN_ON_OWNER is not set | ||
133 | # CONFIG_FREEZER is not set | 167 | # CONFIG_FREEZER is not set |
134 | 168 | ||
135 | # | 169 | # |
@@ -158,6 +192,7 @@ CONFIG_MMU=y | |||
158 | # CONFIG_ARCH_IXP2000 is not set | 192 | # CONFIG_ARCH_IXP2000 is not set |
159 | # CONFIG_ARCH_IXP4XX is not set | 193 | # CONFIG_ARCH_IXP4XX is not set |
160 | # CONFIG_ARCH_L7200 is not set | 194 | # CONFIG_ARCH_L7200 is not set |
195 | # CONFIG_ARCH_DOVE is not set | ||
161 | # CONFIG_ARCH_KIRKWOOD is not set | 196 | # CONFIG_ARCH_KIRKWOOD is not set |
162 | # CONFIG_ARCH_LOKI is not set | 197 | # CONFIG_ARCH_LOKI is not set |
163 | # CONFIG_ARCH_MV78XX0 is not set | 198 | # CONFIG_ARCH_MV78XX0 is not set |
@@ -180,6 +215,7 @@ CONFIG_ARCH_ORION5X=y | |||
180 | # CONFIG_ARCH_DAVINCI is not set | 215 | # CONFIG_ARCH_DAVINCI is not set |
181 | # CONFIG_ARCH_OMAP is not set | 216 | # CONFIG_ARCH_OMAP is not set |
182 | # CONFIG_ARCH_BCMRING is not set | 217 | # CONFIG_ARCH_BCMRING is not set |
218 | # CONFIG_ARCH_U8500 is not set | ||
183 | 219 | ||
184 | # | 220 | # |
185 | # Orion Implementations | 221 | # Orion Implementations |
@@ -192,6 +228,7 @@ CONFIG_MACH_TS209=y | |||
192 | CONFIG_MACH_TERASTATION_PRO2=y | 228 | CONFIG_MACH_TERASTATION_PRO2=y |
193 | CONFIG_MACH_LINKSTATION_PRO=y | 229 | CONFIG_MACH_LINKSTATION_PRO=y |
194 | CONFIG_MACH_LINKSTATION_MINI=y | 230 | CONFIG_MACH_LINKSTATION_MINI=y |
231 | CONFIG_MACH_LINKSTATION_LS_HGL=y | ||
195 | CONFIG_MACH_TS409=y | 232 | CONFIG_MACH_TS409=y |
196 | CONFIG_MACH_WRT350N_V2=y | 233 | CONFIG_MACH_WRT350N_V2=y |
197 | CONFIG_MACH_TS78XX=y | 234 | CONFIG_MACH_TS78XX=y |
@@ -268,12 +305,10 @@ CONFIG_FLATMEM_MANUAL=y | |||
268 | CONFIG_FLATMEM=y | 305 | CONFIG_FLATMEM=y |
269 | CONFIG_FLAT_NODE_MEM_MAP=y | 306 | CONFIG_FLAT_NODE_MEM_MAP=y |
270 | CONFIG_PAGEFLAGS_EXTENDED=y | 307 | CONFIG_PAGEFLAGS_EXTENDED=y |
271 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | 308 | CONFIG_SPLIT_PTLOCK_CPUS=999999 |
272 | # CONFIG_PHYS_ADDR_T_64BIT is not set | 309 | # CONFIG_PHYS_ADDR_T_64BIT is not set |
273 | CONFIG_ZONE_DMA_FLAG=0 | 310 | CONFIG_ZONE_DMA_FLAG=0 |
274 | CONFIG_VIRT_TO_BUS=y | 311 | CONFIG_VIRT_TO_BUS=y |
275 | CONFIG_HAVE_MLOCK=y | ||
276 | CONFIG_HAVE_MLOCKED_PAGE_BIT=y | ||
277 | # CONFIG_KSM is not set | 312 | # CONFIG_KSM is not set |
278 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 | 313 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 |
279 | CONFIG_LEDS=y | 314 | CONFIG_LEDS=y |
@@ -412,10 +447,6 @@ CONFIG_NET_PKTGEN=m | |||
412 | # CONFIG_AF_RXRPC is not set | 447 | # CONFIG_AF_RXRPC is not set |
413 | CONFIG_WIRELESS=y | 448 | CONFIG_WIRELESS=y |
414 | # CONFIG_CFG80211 is not set | 449 | # CONFIG_CFG80211 is not set |
415 | CONFIG_CFG80211_DEFAULT_PS_VALUE=0 | ||
416 | # CONFIG_WIRELESS_OLD_REGULATORY is not set | ||
417 | CONFIG_WIRELESS_EXT=y | ||
418 | CONFIG_WIRELESS_EXT_SYSFS=y | ||
419 | # CONFIG_LIB80211 is not set | 450 | # CONFIG_LIB80211 is not set |
420 | 451 | ||
421 | # | 452 | # |
@@ -554,6 +585,10 @@ CONFIG_BLK_DEV=y | |||
554 | # CONFIG_BLK_DEV_COW_COMMON is not set | 585 | # CONFIG_BLK_DEV_COW_COMMON is not set |
555 | CONFIG_BLK_DEV_LOOP=y | 586 | CONFIG_BLK_DEV_LOOP=y |
556 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | 587 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set |
588 | |||
589 | # | ||
590 | # DRBD disabled because PROC_FS, INET or CONNECTOR not selected | ||
591 | # | ||
557 | # CONFIG_BLK_DEV_NBD is not set | 592 | # CONFIG_BLK_DEV_NBD is not set |
558 | # CONFIG_BLK_DEV_SX8 is not set | 593 | # CONFIG_BLK_DEV_SX8 is not set |
559 | # CONFIG_BLK_DEV_UB is not set | 594 | # CONFIG_BLK_DEV_UB is not set |
@@ -562,6 +597,7 @@ CONFIG_BLK_DEV_LOOP=y | |||
562 | # CONFIG_ATA_OVER_ETH is not set | 597 | # CONFIG_ATA_OVER_ETH is not set |
563 | # CONFIG_MG_DISK is not set | 598 | # CONFIG_MG_DISK is not set |
564 | CONFIG_MISC_DEVICES=y | 599 | CONFIG_MISC_DEVICES=y |
600 | # CONFIG_AD525X_DPOT is not set | ||
565 | # CONFIG_PHANTOM is not set | 601 | # CONFIG_PHANTOM is not set |
566 | # CONFIG_SGI_IOC4 is not set | 602 | # CONFIG_SGI_IOC4 is not set |
567 | # CONFIG_TIFM_CORE is not set | 603 | # CONFIG_TIFM_CORE is not set |
@@ -569,6 +605,7 @@ CONFIG_MISC_DEVICES=y | |||
569 | # CONFIG_ENCLOSURE_SERVICES is not set | 605 | # CONFIG_ENCLOSURE_SERVICES is not set |
570 | # CONFIG_HP_ILO is not set | 606 | # CONFIG_HP_ILO is not set |
571 | # CONFIG_ISL29003 is not set | 607 | # CONFIG_ISL29003 is not set |
608 | # CONFIG_DS1682 is not set | ||
572 | # CONFIG_C2PORT is not set | 609 | # CONFIG_C2PORT is not set |
573 | 610 | ||
574 | # | 611 | # |
@@ -621,7 +658,9 @@ CONFIG_SCSI_LOWLEVEL=y | |||
621 | # CONFIG_SCSI_BNX2_ISCSI is not set | 658 | # CONFIG_SCSI_BNX2_ISCSI is not set |
622 | # CONFIG_BE2ISCSI is not set | 659 | # CONFIG_BE2ISCSI is not set |
623 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set | 660 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set |
661 | # CONFIG_SCSI_HPSA is not set | ||
624 | # CONFIG_SCSI_3W_9XXX is not set | 662 | # CONFIG_SCSI_3W_9XXX is not set |
663 | # CONFIG_SCSI_3W_SAS is not set | ||
625 | # CONFIG_SCSI_ACARD is not set | 664 | # CONFIG_SCSI_ACARD is not set |
626 | # CONFIG_SCSI_AACRAID is not set | 665 | # CONFIG_SCSI_AACRAID is not set |
627 | # CONFIG_SCSI_AIC7XXX is not set | 666 | # CONFIG_SCSI_AIC7XXX is not set |
@@ -657,6 +696,7 @@ CONFIG_SCSI_LOWLEVEL=y | |||
657 | # CONFIG_SCSI_NSP32 is not set | 696 | # CONFIG_SCSI_NSP32 is not set |
658 | # CONFIG_SCSI_DEBUG is not set | 697 | # CONFIG_SCSI_DEBUG is not set |
659 | # CONFIG_SCSI_PMCRAID is not set | 698 | # CONFIG_SCSI_PMCRAID is not set |
699 | # CONFIG_SCSI_PM8001 is not set | ||
660 | # CONFIG_SCSI_SRP is not set | 700 | # CONFIG_SCSI_SRP is not set |
661 | # CONFIG_SCSI_BFA_FC is not set | 701 | # CONFIG_SCSI_BFA_FC is not set |
662 | # CONFIG_SCSI_DH is not set | 702 | # CONFIG_SCSI_DH is not set |
@@ -711,15 +751,16 @@ CONFIG_SATA_MV=y | |||
711 | # CONFIG_PATA_NS87415 is not set | 751 | # CONFIG_PATA_NS87415 is not set |
712 | # CONFIG_PATA_OPTI is not set | 752 | # CONFIG_PATA_OPTI is not set |
713 | # CONFIG_PATA_OPTIDMA is not set | 753 | # CONFIG_PATA_OPTIDMA is not set |
754 | # CONFIG_PATA_PDC2027X is not set | ||
714 | # CONFIG_PATA_PDC_OLD is not set | 755 | # CONFIG_PATA_PDC_OLD is not set |
715 | # CONFIG_PATA_RADISYS is not set | 756 | # CONFIG_PATA_RADISYS is not set |
716 | # CONFIG_PATA_RDC is not set | 757 | # CONFIG_PATA_RDC is not set |
717 | # CONFIG_PATA_RZ1000 is not set | 758 | # CONFIG_PATA_RZ1000 is not set |
718 | # CONFIG_PATA_SC1200 is not set | 759 | # CONFIG_PATA_SC1200 is not set |
719 | # CONFIG_PATA_SERVERWORKS is not set | 760 | # CONFIG_PATA_SERVERWORKS is not set |
720 | # CONFIG_PATA_PDC2027X is not set | ||
721 | # CONFIG_PATA_SIL680 is not set | 761 | # CONFIG_PATA_SIL680 is not set |
722 | # CONFIG_PATA_SIS is not set | 762 | # CONFIG_PATA_SIS is not set |
763 | # CONFIG_PATA_TOSHIBA is not set | ||
723 | # CONFIG_PATA_VIA is not set | 764 | # CONFIG_PATA_VIA is not set |
724 | # CONFIG_PATA_WINBOND is not set | 765 | # CONFIG_PATA_WINBOND is not set |
725 | # CONFIG_PATA_PLATFORM is not set | 766 | # CONFIG_PATA_PLATFORM is not set |
@@ -736,7 +777,7 @@ CONFIG_SATA_MV=y | |||
736 | # | 777 | # |
737 | 778 | ||
738 | # | 779 | # |
739 | # See the help texts for more information. | 780 | # The newer stack is recommended. |
740 | # | 781 | # |
741 | # CONFIG_FIREWIRE is not set | 782 | # CONFIG_FIREWIRE is not set |
742 | # CONFIG_IEEE1394 is not set | 783 | # CONFIG_IEEE1394 is not set |
@@ -842,8 +883,10 @@ CONFIG_MV643XX_ETH=y | |||
842 | # CONFIG_NETDEV_10000 is not set | 883 | # CONFIG_NETDEV_10000 is not set |
843 | # CONFIG_TR is not set | 884 | # CONFIG_TR is not set |
844 | CONFIG_WLAN=y | 885 | CONFIG_WLAN=y |
845 | # CONFIG_WLAN_PRE80211 is not set | 886 | # CONFIG_ATMEL is not set |
846 | # CONFIG_WLAN_80211 is not set | 887 | # CONFIG_PRISM54 is not set |
888 | # CONFIG_USB_ZD1201 is not set | ||
889 | # CONFIG_HOSTAP is not set | ||
847 | 890 | ||
848 | # | 891 | # |
849 | # Enable WiMAX (Networking options) to see the WiMAX drivers | 892 | # Enable WiMAX (Networking options) to see the WiMAX drivers |
@@ -866,6 +909,7 @@ CONFIG_WLAN=y | |||
866 | # CONFIG_NETCONSOLE is not set | 909 | # CONFIG_NETCONSOLE is not set |
867 | # CONFIG_NETPOLL is not set | 910 | # CONFIG_NETPOLL is not set |
868 | # CONFIG_NET_POLL_CONTROLLER is not set | 911 | # CONFIG_NET_POLL_CONTROLLER is not set |
912 | # CONFIG_VMXNET3 is not set | ||
869 | # CONFIG_ISDN is not set | 913 | # CONFIG_ISDN is not set |
870 | # CONFIG_PHONE is not set | 914 | # CONFIG_PHONE is not set |
871 | 915 | ||
@@ -875,6 +919,7 @@ CONFIG_WLAN=y | |||
875 | CONFIG_INPUT=y | 919 | CONFIG_INPUT=y |
876 | # CONFIG_INPUT_FF_MEMLESS is not set | 920 | # CONFIG_INPUT_FF_MEMLESS is not set |
877 | # CONFIG_INPUT_POLLDEV is not set | 921 | # CONFIG_INPUT_POLLDEV is not set |
922 | # CONFIG_INPUT_SPARSEKMAP is not set | ||
878 | 923 | ||
879 | # | 924 | # |
880 | # Userland interfaces | 925 | # Userland interfaces |
@@ -993,11 +1038,6 @@ CONFIG_I2C_MV64XXX=y | |||
993 | # CONFIG_I2C_TINY_USB is not set | 1038 | # CONFIG_I2C_TINY_USB is not set |
994 | 1039 | ||
995 | # | 1040 | # |
996 | # Graphics adapter I2C/DDC channel drivers | ||
997 | # | ||
998 | # CONFIG_I2C_VOODOO3 is not set | ||
999 | |||
1000 | # | ||
1001 | # Other I2C/SMBus bus drivers | 1041 | # Other I2C/SMBus bus drivers |
1002 | # | 1042 | # |
1003 | # CONFIG_I2C_PCA_PLATFORM is not set | 1043 | # CONFIG_I2C_PCA_PLATFORM is not set |
@@ -1006,7 +1046,6 @@ CONFIG_I2C_MV64XXX=y | |||
1006 | # | 1046 | # |
1007 | # Miscellaneous I2C Chip support | 1047 | # Miscellaneous I2C Chip support |
1008 | # | 1048 | # |
1009 | # CONFIG_DS1682 is not set | ||
1010 | # CONFIG_SENSORS_TSL2550 is not set | 1049 | # CONFIG_SENSORS_TSL2550 is not set |
1011 | # CONFIG_I2C_DEBUG_CORE is not set | 1050 | # CONFIG_I2C_DEBUG_CORE is not set |
1012 | # CONFIG_I2C_DEBUG_ALGO is not set | 1051 | # CONFIG_I2C_DEBUG_ALGO is not set |
@@ -1033,10 +1072,12 @@ CONFIG_GPIO_SYSFS=y | |||
1033 | # CONFIG_GPIO_MAX732X is not set | 1072 | # CONFIG_GPIO_MAX732X is not set |
1034 | # CONFIG_GPIO_PCA953X is not set | 1073 | # CONFIG_GPIO_PCA953X is not set |
1035 | # CONFIG_GPIO_PCF857X is not set | 1074 | # CONFIG_GPIO_PCF857X is not set |
1075 | # CONFIG_GPIO_ADP5588 is not set | ||
1036 | 1076 | ||
1037 | # | 1077 | # |
1038 | # PCI GPIO expanders: | 1078 | # PCI GPIO expanders: |
1039 | # | 1079 | # |
1080 | # CONFIG_GPIO_CS5535 is not set | ||
1040 | # CONFIG_GPIO_BT8XX is not set | 1081 | # CONFIG_GPIO_BT8XX is not set |
1041 | # CONFIG_GPIO_LANGWELL is not set | 1082 | # CONFIG_GPIO_LANGWELL is not set |
1042 | 1083 | ||
@@ -1079,6 +1120,7 @@ CONFIG_HWMON=y | |||
1079 | # CONFIG_SENSORS_GL520SM is not set | 1120 | # CONFIG_SENSORS_GL520SM is not set |
1080 | # CONFIG_SENSORS_IT87 is not set | 1121 | # CONFIG_SENSORS_IT87 is not set |
1081 | # CONFIG_SENSORS_LM63 is not set | 1122 | # CONFIG_SENSORS_LM63 is not set |
1123 | # CONFIG_SENSORS_LM73 is not set | ||
1082 | CONFIG_SENSORS_LM75=y | 1124 | CONFIG_SENSORS_LM75=y |
1083 | # CONFIG_SENSORS_LM77 is not set | 1125 | # CONFIG_SENSORS_LM77 is not set |
1084 | # CONFIG_SENSORS_LM78 is not set | 1126 | # CONFIG_SENSORS_LM78 is not set |
@@ -1104,6 +1146,7 @@ CONFIG_SENSORS_LM75=y | |||
1104 | # CONFIG_SENSORS_SMSC47M192 is not set | 1146 | # CONFIG_SENSORS_SMSC47M192 is not set |
1105 | # CONFIG_SENSORS_SMSC47B397 is not set | 1147 | # CONFIG_SENSORS_SMSC47B397 is not set |
1106 | # CONFIG_SENSORS_ADS7828 is not set | 1148 | # CONFIG_SENSORS_ADS7828 is not set |
1149 | # CONFIG_SENSORS_AMC6821 is not set | ||
1107 | # CONFIG_SENSORS_THMC50 is not set | 1150 | # CONFIG_SENSORS_THMC50 is not set |
1108 | # CONFIG_SENSORS_TMP401 is not set | 1151 | # CONFIG_SENSORS_TMP401 is not set |
1109 | # CONFIG_SENSORS_TMP421 is not set | 1152 | # CONFIG_SENSORS_TMP421 is not set |
@@ -1118,6 +1161,7 @@ CONFIG_SENSORS_LM75=y | |||
1118 | # CONFIG_SENSORS_W83L786NG is not set | 1161 | # CONFIG_SENSORS_W83L786NG is not set |
1119 | # CONFIG_SENSORS_W83627HF is not set | 1162 | # CONFIG_SENSORS_W83627HF is not set |
1120 | # CONFIG_SENSORS_W83627EHF is not set | 1163 | # CONFIG_SENSORS_W83627EHF is not set |
1164 | # CONFIG_SENSORS_LIS3_I2C is not set | ||
1121 | # CONFIG_THERMAL is not set | 1165 | # CONFIG_THERMAL is not set |
1122 | # CONFIG_WATCHDOG is not set | 1166 | # CONFIG_WATCHDOG is not set |
1123 | CONFIG_SSB_POSSIBLE=y | 1167 | CONFIG_SSB_POSSIBLE=y |
@@ -1140,11 +1184,13 @@ CONFIG_SSB_POSSIBLE=y | |||
1140 | # CONFIG_MFD_TMIO is not set | 1184 | # CONFIG_MFD_TMIO is not set |
1141 | # CONFIG_MFD_TC6393XB is not set | 1185 | # CONFIG_MFD_TC6393XB is not set |
1142 | # CONFIG_PMIC_DA903X is not set | 1186 | # CONFIG_PMIC_DA903X is not set |
1187 | # CONFIG_PMIC_ADP5520 is not set | ||
1143 | # CONFIG_MFD_WM8400 is not set | 1188 | # CONFIG_MFD_WM8400 is not set |
1144 | # CONFIG_MFD_WM831X is not set | 1189 | # CONFIG_MFD_WM831X is not set |
1145 | # CONFIG_MFD_WM8350_I2C is not set | 1190 | # CONFIG_MFD_WM8350_I2C is not set |
1146 | # CONFIG_MFD_PCF50633 is not set | 1191 | # CONFIG_MFD_PCF50633 is not set |
1147 | # CONFIG_AB3100_CORE is not set | 1192 | # CONFIG_AB3100_CORE is not set |
1193 | # CONFIG_MFD_88PM8607 is not set | ||
1148 | # CONFIG_REGULATOR is not set | 1194 | # CONFIG_REGULATOR is not set |
1149 | # CONFIG_MEDIA_SUPPORT is not set | 1195 | # CONFIG_MEDIA_SUPPORT is not set |
1150 | 1196 | ||
@@ -1316,6 +1362,7 @@ CONFIG_USB_STORAGE_JUMPSHOT=y | |||
1316 | # OTG and related infrastructure | 1362 | # OTG and related infrastructure |
1317 | # | 1363 | # |
1318 | # CONFIG_USB_GPIO_VBUS is not set | 1364 | # CONFIG_USB_GPIO_VBUS is not set |
1365 | # CONFIG_USB_ULPI is not set | ||
1319 | # CONFIG_NOP_USB_XCEIV is not set | 1366 | # CONFIG_NOP_USB_XCEIV is not set |
1320 | # CONFIG_UWB is not set | 1367 | # CONFIG_UWB is not set |
1321 | # CONFIG_MMC is not set | 1368 | # CONFIG_MMC is not set |
@@ -1332,6 +1379,7 @@ CONFIG_LEDS_GPIO_PLATFORM=y | |||
1332 | # CONFIG_LEDS_LP3944 is not set | 1379 | # CONFIG_LEDS_LP3944 is not set |
1333 | # CONFIG_LEDS_PCA955X is not set | 1380 | # CONFIG_LEDS_PCA955X is not set |
1334 | # CONFIG_LEDS_BD2802 is not set | 1381 | # CONFIG_LEDS_BD2802 is not set |
1382 | # CONFIG_LEDS_LT3593 is not set | ||
1335 | 1383 | ||
1336 | # | 1384 | # |
1337 | # LED Triggers | 1385 | # LED Triggers |
@@ -1377,6 +1425,7 @@ CONFIG_RTC_DRV_PCF8563=y | |||
1377 | # CONFIG_RTC_DRV_PCF8583 is not set | 1425 | # CONFIG_RTC_DRV_PCF8583 is not set |
1378 | CONFIG_RTC_DRV_M41T80=y | 1426 | CONFIG_RTC_DRV_M41T80=y |
1379 | # CONFIG_RTC_DRV_M41T80_WDT is not set | 1427 | # CONFIG_RTC_DRV_M41T80_WDT is not set |
1428 | # CONFIG_RTC_DRV_BQ32K is not set | ||
1380 | CONFIG_RTC_DRV_S35390A=y | 1429 | CONFIG_RTC_DRV_S35390A=y |
1381 | # CONFIG_RTC_DRV_FM3130 is not set | 1430 | # CONFIG_RTC_DRV_FM3130 is not set |
1382 | # CONFIG_RTC_DRV_RX8581 is not set | 1431 | # CONFIG_RTC_DRV_RX8581 is not set |
@@ -1398,7 +1447,9 @@ CONFIG_RTC_DRV_S35390A=y | |||
1398 | CONFIG_RTC_DRV_M48T86=y | 1447 | CONFIG_RTC_DRV_M48T86=y |
1399 | # CONFIG_RTC_DRV_M48T35 is not set | 1448 | # CONFIG_RTC_DRV_M48T35 is not set |
1400 | # CONFIG_RTC_DRV_M48T59 is not set | 1449 | # CONFIG_RTC_DRV_M48T59 is not set |
1450 | # CONFIG_RTC_DRV_MSM6242 is not set | ||
1401 | # CONFIG_RTC_DRV_BQ4802 is not set | 1451 | # CONFIG_RTC_DRV_BQ4802 is not set |
1452 | # CONFIG_RTC_DRV_RP5C01 is not set | ||
1402 | # CONFIG_RTC_DRV_V3020 is not set | 1453 | # CONFIG_RTC_DRV_V3020 is not set |
1403 | 1454 | ||
1404 | # | 1455 | # |
@@ -1686,7 +1737,9 @@ CONFIG_DEBUG_USER=y | |||
1686 | CONFIG_DEBUG_ERRORS=y | 1737 | CONFIG_DEBUG_ERRORS=y |
1687 | # CONFIG_DEBUG_STACK_USAGE is not set | 1738 | # CONFIG_DEBUG_STACK_USAGE is not set |
1688 | CONFIG_DEBUG_LL=y | 1739 | CONFIG_DEBUG_LL=y |
1740 | # CONFIG_EARLY_PRINTK is not set | ||
1689 | # CONFIG_DEBUG_ICEDCC is not set | 1741 | # CONFIG_DEBUG_ICEDCC is not set |
1742 | # CONFIG_OC_ETM is not set | ||
1690 | 1743 | ||
1691 | # | 1744 | # |
1692 | # Security options | 1745 | # Security options |
@@ -1694,7 +1747,11 @@ CONFIG_DEBUG_LL=y | |||
1694 | # CONFIG_KEYS is not set | 1747 | # CONFIG_KEYS is not set |
1695 | # CONFIG_SECURITY is not set | 1748 | # CONFIG_SECURITY is not set |
1696 | # CONFIG_SECURITYFS is not set | 1749 | # CONFIG_SECURITYFS is not set |
1697 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | 1750 | # CONFIG_DEFAULT_SECURITY_SELINUX is not set |
1751 | # CONFIG_DEFAULT_SECURITY_SMACK is not set | ||
1752 | # CONFIG_DEFAULT_SECURITY_TOMOYO is not set | ||
1753 | CONFIG_DEFAULT_SECURITY_DAC=y | ||
1754 | CONFIG_DEFAULT_SECURITY="" | ||
1698 | CONFIG_CRYPTO=y | 1755 | CONFIG_CRYPTO=y |
1699 | 1756 | ||
1700 | # | 1757 | # |
diff --git a/arch/arm/configs/pxa168_defconfig b/arch/arm/configs/pxa168_defconfig index 791b8c39aef..113511f91eb 100644 --- a/arch/arm/configs/pxa168_defconfig +++ b/arch/arm/configs/pxa168_defconfig | |||
@@ -1,15 +1,13 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.29-rc3 | 3 | # Linux kernel version: 2.6.33-rc3 |
4 | # Fri Mar 20 13:43:13 2009 | 4 | # Tue Jan 12 08:57:10 2010 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | 7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y |
8 | CONFIG_GENERIC_GPIO=y | 8 | CONFIG_GENERIC_GPIO=y |
9 | CONFIG_GENERIC_TIME=y | 9 | CONFIG_GENERIC_TIME=y |
10 | CONFIG_GENERIC_CLOCKEVENTS=y | 10 | CONFIG_GENERIC_CLOCKEVENTS=y |
11 | CONFIG_MMU=y | ||
12 | # CONFIG_NO_IOPORT is not set | ||
13 | CONFIG_GENERIC_HARDIRQS=y | 11 | CONFIG_GENERIC_HARDIRQS=y |
14 | CONFIG_STACKTRACE_SUPPORT=y | 12 | CONFIG_STACKTRACE_SUPPORT=y |
15 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | 13 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y |
@@ -18,13 +16,12 @@ CONFIG_TRACE_IRQFLAGS_SUPPORT=y | |||
18 | CONFIG_HARDIRQS_SW_RESEND=y | 16 | CONFIG_HARDIRQS_SW_RESEND=y |
19 | CONFIG_GENERIC_IRQ_PROBE=y | 17 | CONFIG_GENERIC_IRQ_PROBE=y |
20 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 18 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
21 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
22 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
23 | CONFIG_GENERIC_HWEIGHT=y | 19 | CONFIG_GENERIC_HWEIGHT=y |
24 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 20 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
25 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y | 21 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y |
26 | CONFIG_VECTORS_BASE=0xffff0000 | 22 | CONFIG_VECTORS_BASE=0xffff0000 |
27 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | 23 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" |
24 | CONFIG_CONSTRUCTORS=y | ||
28 | 25 | ||
29 | # | 26 | # |
30 | # General setup | 27 | # General setup |
@@ -35,6 +32,12 @@ CONFIG_LOCK_KERNEL=y | |||
35 | CONFIG_INIT_ENV_ARG_LIMIT=32 | 32 | CONFIG_INIT_ENV_ARG_LIMIT=32 |
36 | CONFIG_LOCALVERSION="" | 33 | CONFIG_LOCALVERSION="" |
37 | CONFIG_LOCALVERSION_AUTO=y | 34 | CONFIG_LOCALVERSION_AUTO=y |
35 | CONFIG_HAVE_KERNEL_GZIP=y | ||
36 | CONFIG_HAVE_KERNEL_LZO=y | ||
37 | CONFIG_KERNEL_GZIP=y | ||
38 | # CONFIG_KERNEL_BZIP2 is not set | ||
39 | # CONFIG_KERNEL_LZMA is not set | ||
40 | # CONFIG_KERNEL_LZO is not set | ||
38 | CONFIG_SWAP=y | 41 | CONFIG_SWAP=y |
39 | CONFIG_SYSVIPC=y | 42 | CONFIG_SYSVIPC=y |
40 | CONFIG_SYSVIPC_SYSCTL=y | 43 | CONFIG_SYSVIPC_SYSCTL=y |
@@ -46,11 +49,13 @@ CONFIG_SYSVIPC_SYSCTL=y | |||
46 | # | 49 | # |
47 | # RCU Subsystem | 50 | # RCU Subsystem |
48 | # | 51 | # |
49 | CONFIG_CLASSIC_RCU=y | 52 | CONFIG_TREE_RCU=y |
50 | # CONFIG_TREE_RCU is not set | 53 | # CONFIG_TREE_PREEMPT_RCU is not set |
51 | # CONFIG_PREEMPT_RCU is not set | 54 | # CONFIG_TINY_RCU is not set |
55 | # CONFIG_RCU_TRACE is not set | ||
56 | CONFIG_RCU_FANOUT=32 | ||
57 | # CONFIG_RCU_FANOUT_EXACT is not set | ||
52 | # CONFIG_TREE_RCU_TRACE is not set | 58 | # CONFIG_TREE_RCU_TRACE is not set |
53 | # CONFIG_PREEMPT_RCU_TRACE is not set | ||
54 | # CONFIG_IKCONFIG is not set | 59 | # CONFIG_IKCONFIG is not set |
55 | CONFIG_LOG_BUF_SHIFT=14 | 60 | CONFIG_LOG_BUF_SHIFT=14 |
56 | # CONFIG_GROUP_SCHED is not set | 61 | # CONFIG_GROUP_SCHED is not set |
@@ -64,10 +69,10 @@ CONFIG_NAMESPACES=y | |||
64 | # CONFIG_USER_NS is not set | 69 | # CONFIG_USER_NS is not set |
65 | # CONFIG_PID_NS is not set | 70 | # CONFIG_PID_NS is not set |
66 | # CONFIG_NET_NS is not set | 71 | # CONFIG_NET_NS is not set |
67 | CONFIG_BLK_DEV_INITRD=y | 72 | # CONFIG_BLK_DEV_INITRD is not set |
68 | CONFIG_INITRAMFS_SOURCE="" | ||
69 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 73 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
70 | CONFIG_SYSCTL=y | 74 | CONFIG_SYSCTL=y |
75 | CONFIG_ANON_INODES=y | ||
71 | # CONFIG_EMBEDDED is not set | 76 | # CONFIG_EMBEDDED is not set |
72 | CONFIG_UID16=y | 77 | CONFIG_UID16=y |
73 | CONFIG_SYSCTL_SYSCALL=y | 78 | CONFIG_SYSCTL_SYSCALL=y |
@@ -78,17 +83,20 @@ CONFIG_HOTPLUG=y | |||
78 | CONFIG_PRINTK=y | 83 | CONFIG_PRINTK=y |
79 | CONFIG_BUG=y | 84 | CONFIG_BUG=y |
80 | CONFIG_ELF_CORE=y | 85 | CONFIG_ELF_CORE=y |
81 | CONFIG_COMPAT_BRK=y | ||
82 | CONFIG_BASE_FULL=y | 86 | CONFIG_BASE_FULL=y |
83 | CONFIG_FUTEX=y | 87 | CONFIG_FUTEX=y |
84 | CONFIG_ANON_INODES=y | ||
85 | CONFIG_EPOLL=y | 88 | CONFIG_EPOLL=y |
86 | CONFIG_SIGNALFD=y | 89 | CONFIG_SIGNALFD=y |
87 | CONFIG_TIMERFD=y | 90 | CONFIG_TIMERFD=y |
88 | CONFIG_EVENTFD=y | 91 | CONFIG_EVENTFD=y |
89 | CONFIG_SHMEM=y | 92 | CONFIG_SHMEM=y |
90 | CONFIG_AIO=y | 93 | CONFIG_AIO=y |
94 | |||
95 | # | ||
96 | # Kernel Performance Events And Counters | ||
97 | # | ||
91 | CONFIG_VM_EVENT_COUNTERS=y | 98 | CONFIG_VM_EVENT_COUNTERS=y |
99 | CONFIG_COMPAT_BRK=y | ||
92 | CONFIG_SLAB=y | 100 | CONFIG_SLAB=y |
93 | # CONFIG_SLUB is not set | 101 | # CONFIG_SLUB is not set |
94 | # CONFIG_SLOB is not set | 102 | # CONFIG_SLOB is not set |
@@ -98,6 +106,11 @@ CONFIG_HAVE_OPROFILE=y | |||
98 | CONFIG_HAVE_KPROBES=y | 106 | CONFIG_HAVE_KPROBES=y |
99 | CONFIG_HAVE_KRETPROBES=y | 107 | CONFIG_HAVE_KRETPROBES=y |
100 | CONFIG_HAVE_CLK=y | 108 | CONFIG_HAVE_CLK=y |
109 | |||
110 | # | ||
111 | # GCOV-based kernel profiling | ||
112 | # | ||
113 | # CONFIG_SLOW_WORK is not set | ||
101 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | 114 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y |
102 | CONFIG_SLABINFO=y | 115 | CONFIG_SLABINFO=y |
103 | CONFIG_RT_MUTEXES=y | 116 | CONFIG_RT_MUTEXES=y |
@@ -109,8 +122,7 @@ CONFIG_MODULE_FORCE_UNLOAD=y | |||
109 | # CONFIG_MODVERSIONS is not set | 122 | # CONFIG_MODVERSIONS is not set |
110 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 123 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
111 | CONFIG_BLOCK=y | 124 | CONFIG_BLOCK=y |
112 | # CONFIG_LBD is not set | 125 | CONFIG_LBDAF=y |
113 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
114 | # CONFIG_BLK_DEV_BSG is not set | 126 | # CONFIG_BLK_DEV_BSG is not set |
115 | # CONFIG_BLK_DEV_INTEGRITY is not set | 127 | # CONFIG_BLK_DEV_INTEGRITY is not set |
116 | 128 | ||
@@ -118,31 +130,62 @@ CONFIG_BLOCK=y | |||
118 | # IO Schedulers | 130 | # IO Schedulers |
119 | # | 131 | # |
120 | CONFIG_IOSCHED_NOOP=y | 132 | CONFIG_IOSCHED_NOOP=y |
121 | CONFIG_IOSCHED_AS=y | ||
122 | CONFIG_IOSCHED_DEADLINE=y | 133 | CONFIG_IOSCHED_DEADLINE=y |
123 | CONFIG_IOSCHED_CFQ=y | 134 | CONFIG_IOSCHED_CFQ=y |
124 | # CONFIG_DEFAULT_AS is not set | ||
125 | # CONFIG_DEFAULT_DEADLINE is not set | 135 | # CONFIG_DEFAULT_DEADLINE is not set |
126 | CONFIG_DEFAULT_CFQ=y | 136 | CONFIG_DEFAULT_CFQ=y |
127 | # CONFIG_DEFAULT_NOOP is not set | 137 | # CONFIG_DEFAULT_NOOP is not set |
128 | CONFIG_DEFAULT_IOSCHED="cfq" | 138 | CONFIG_DEFAULT_IOSCHED="cfq" |
139 | # CONFIG_INLINE_SPIN_TRYLOCK is not set | ||
140 | # CONFIG_INLINE_SPIN_TRYLOCK_BH is not set | ||
141 | # CONFIG_INLINE_SPIN_LOCK is not set | ||
142 | # CONFIG_INLINE_SPIN_LOCK_BH is not set | ||
143 | # CONFIG_INLINE_SPIN_LOCK_IRQ is not set | ||
144 | # CONFIG_INLINE_SPIN_LOCK_IRQSAVE is not set | ||
145 | # CONFIG_INLINE_SPIN_UNLOCK is not set | ||
146 | # CONFIG_INLINE_SPIN_UNLOCK_BH is not set | ||
147 | # CONFIG_INLINE_SPIN_UNLOCK_IRQ is not set | ||
148 | # CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE is not set | ||
149 | # CONFIG_INLINE_READ_TRYLOCK is not set | ||
150 | # CONFIG_INLINE_READ_LOCK is not set | ||
151 | # CONFIG_INLINE_READ_LOCK_BH is not set | ||
152 | # CONFIG_INLINE_READ_LOCK_IRQ is not set | ||
153 | # CONFIG_INLINE_READ_LOCK_IRQSAVE is not set | ||
154 | # CONFIG_INLINE_READ_UNLOCK is not set | ||
155 | # CONFIG_INLINE_READ_UNLOCK_BH is not set | ||
156 | # CONFIG_INLINE_READ_UNLOCK_IRQ is not set | ||
157 | # CONFIG_INLINE_READ_UNLOCK_IRQRESTORE is not set | ||
158 | # CONFIG_INLINE_WRITE_TRYLOCK is not set | ||
159 | # CONFIG_INLINE_WRITE_LOCK is not set | ||
160 | # CONFIG_INLINE_WRITE_LOCK_BH is not set | ||
161 | # CONFIG_INLINE_WRITE_LOCK_IRQ is not set | ||
162 | # CONFIG_INLINE_WRITE_LOCK_IRQSAVE is not set | ||
163 | # CONFIG_INLINE_WRITE_UNLOCK is not set | ||
164 | # CONFIG_INLINE_WRITE_UNLOCK_BH is not set | ||
165 | # CONFIG_INLINE_WRITE_UNLOCK_IRQ is not set | ||
166 | # CONFIG_INLINE_WRITE_UNLOCK_IRQRESTORE is not set | ||
167 | # CONFIG_MUTEX_SPIN_ON_OWNER is not set | ||
129 | # CONFIG_FREEZER is not set | 168 | # CONFIG_FREEZER is not set |
130 | 169 | ||
131 | # | 170 | # |
132 | # System Type | 171 | # System Type |
133 | # | 172 | # |
173 | CONFIG_MMU=y | ||
134 | # CONFIG_ARCH_AAEC2000 is not set | 174 | # CONFIG_ARCH_AAEC2000 is not set |
135 | # CONFIG_ARCH_INTEGRATOR is not set | 175 | # CONFIG_ARCH_INTEGRATOR is not set |
136 | # CONFIG_ARCH_REALVIEW is not set | 176 | # CONFIG_ARCH_REALVIEW is not set |
137 | # CONFIG_ARCH_VERSATILE is not set | 177 | # CONFIG_ARCH_VERSATILE is not set |
138 | # CONFIG_ARCH_AT91 is not set | 178 | # CONFIG_ARCH_AT91 is not set |
139 | # CONFIG_ARCH_CLPS711X is not set | 179 | # CONFIG_ARCH_CLPS711X is not set |
180 | # CONFIG_ARCH_GEMINI is not set | ||
140 | # CONFIG_ARCH_EBSA110 is not set | 181 | # CONFIG_ARCH_EBSA110 is not set |
141 | # CONFIG_ARCH_EP93XX is not set | 182 | # CONFIG_ARCH_EP93XX is not set |
142 | # CONFIG_ARCH_FOOTBRIDGE is not set | 183 | # CONFIG_ARCH_FOOTBRIDGE is not set |
184 | # CONFIG_ARCH_MXC is not set | ||
185 | # CONFIG_ARCH_STMP3XXX is not set | ||
143 | # CONFIG_ARCH_NETX is not set | 186 | # CONFIG_ARCH_NETX is not set |
144 | # CONFIG_ARCH_H720X is not set | 187 | # CONFIG_ARCH_H720X is not set |
145 | # CONFIG_ARCH_IMX is not set | 188 | # CONFIG_ARCH_NOMADIK is not set |
146 | # CONFIG_ARCH_IOP13XX is not set | 189 | # CONFIG_ARCH_IOP13XX is not set |
147 | # CONFIG_ARCH_IOP32X is not set | 190 | # CONFIG_ARCH_IOP32X is not set |
148 | # CONFIG_ARCH_IOP33X is not set | 191 | # CONFIG_ARCH_IOP33X is not set |
@@ -150,26 +193,30 @@ CONFIG_DEFAULT_IOSCHED="cfq" | |||
150 | # CONFIG_ARCH_IXP2000 is not set | 193 | # CONFIG_ARCH_IXP2000 is not set |
151 | # CONFIG_ARCH_IXP4XX is not set | 194 | # CONFIG_ARCH_IXP4XX is not set |
152 | # CONFIG_ARCH_L7200 is not set | 195 | # CONFIG_ARCH_L7200 is not set |
196 | # CONFIG_ARCH_DOVE is not set | ||
153 | # CONFIG_ARCH_KIRKWOOD is not set | 197 | # CONFIG_ARCH_KIRKWOOD is not set |
154 | # CONFIG_ARCH_KS8695 is not set | ||
155 | # CONFIG_ARCH_NS9XXX is not set | ||
156 | # CONFIG_ARCH_LOKI is not set | 198 | # CONFIG_ARCH_LOKI is not set |
157 | # CONFIG_ARCH_MV78XX0 is not set | 199 | # CONFIG_ARCH_MV78XX0 is not set |
158 | # CONFIG_ARCH_MXC is not set | ||
159 | # CONFIG_ARCH_ORION5X is not set | 200 | # CONFIG_ARCH_ORION5X is not set |
201 | CONFIG_ARCH_MMP=y | ||
202 | # CONFIG_ARCH_KS8695 is not set | ||
203 | # CONFIG_ARCH_NS9XXX is not set | ||
204 | # CONFIG_ARCH_W90X900 is not set | ||
160 | # CONFIG_ARCH_PNX4008 is not set | 205 | # CONFIG_ARCH_PNX4008 is not set |
161 | # CONFIG_ARCH_PXA is not set | 206 | # CONFIG_ARCH_PXA is not set |
162 | CONFIG_ARCH_MMP=y | 207 | # CONFIG_ARCH_MSM is not set |
163 | # CONFIG_ARCH_RPC is not set | 208 | # CONFIG_ARCH_RPC is not set |
164 | # CONFIG_ARCH_SA1100 is not set | 209 | # CONFIG_ARCH_SA1100 is not set |
165 | # CONFIG_ARCH_S3C2410 is not set | 210 | # CONFIG_ARCH_S3C2410 is not set |
166 | # CONFIG_ARCH_S3C64XX is not set | 211 | # CONFIG_ARCH_S3C64XX is not set |
212 | # CONFIG_ARCH_S5PC1XX is not set | ||
167 | # CONFIG_ARCH_SHARK is not set | 213 | # CONFIG_ARCH_SHARK is not set |
168 | # CONFIG_ARCH_LH7A40X is not set | 214 | # CONFIG_ARCH_LH7A40X is not set |
215 | # CONFIG_ARCH_U300 is not set | ||
169 | # CONFIG_ARCH_DAVINCI is not set | 216 | # CONFIG_ARCH_DAVINCI is not set |
170 | # CONFIG_ARCH_OMAP is not set | 217 | # CONFIG_ARCH_OMAP is not set |
171 | # CONFIG_ARCH_MSM is not set | 218 | # CONFIG_ARCH_BCMRING is not set |
172 | # CONFIG_ARCH_W90X900 is not set | 219 | # CONFIG_ARCH_U8500 is not set |
173 | # CONFIG_MACH_TAVOREVB is not set | 220 | # CONFIG_MACH_TAVOREVB is not set |
174 | 221 | ||
175 | # | 222 | # |
@@ -177,6 +224,7 @@ CONFIG_ARCH_MMP=y | |||
177 | # | 224 | # |
178 | CONFIG_MACH_ASPENITE=y | 225 | CONFIG_MACH_ASPENITE=y |
179 | CONFIG_MACH_ZYLONITE2=y | 226 | CONFIG_MACH_ZYLONITE2=y |
227 | CONFIG_MACH_AVENGERS_LITE=y | ||
180 | # CONFIG_MACH_TTC_DKB is not set | 228 | # CONFIG_MACH_TTC_DKB is not set |
181 | CONFIG_CPU_PXA168=y | 229 | CONFIG_CPU_PXA168=y |
182 | CONFIG_PLAT_PXA=y | 230 | CONFIG_PLAT_PXA=y |
@@ -187,7 +235,7 @@ CONFIG_PLAT_PXA=y | |||
187 | CONFIG_CPU_MOHAWK=y | 235 | CONFIG_CPU_MOHAWK=y |
188 | CONFIG_CPU_32v5=y | 236 | CONFIG_CPU_32v5=y |
189 | CONFIG_CPU_ABRT_EV5T=y | 237 | CONFIG_CPU_ABRT_EV5T=y |
190 | CONFIG_CPU_PABRT_NOIFAR=y | 238 | CONFIG_CPU_PABRT_LEGACY=y |
191 | CONFIG_CPU_CACHE_VIVT=y | 239 | CONFIG_CPU_CACHE_VIVT=y |
192 | CONFIG_CPU_COPY_V4WB=y | 240 | CONFIG_CPU_COPY_V4WB=y |
193 | CONFIG_CPU_TLB_V4WBI=y | 241 | CONFIG_CPU_TLB_V4WBI=y |
@@ -201,7 +249,7 @@ CONFIG_ARM_THUMB=y | |||
201 | # CONFIG_CPU_ICACHE_DISABLE is not set | 249 | # CONFIG_CPU_ICACHE_DISABLE is not set |
202 | # CONFIG_CPU_DCACHE_DISABLE is not set | 250 | # CONFIG_CPU_DCACHE_DISABLE is not set |
203 | # CONFIG_CPU_BPREDICT_DISABLE is not set | 251 | # CONFIG_CPU_BPREDICT_DISABLE is not set |
204 | # CONFIG_OUTER_CACHE is not set | 252 | CONFIG_ARM_L1_CACHE_SHIFT=5 |
205 | CONFIG_IWMMXT=y | 253 | CONFIG_IWMMXT=y |
206 | CONFIG_COMMON_CLKDEV=y | 254 | CONFIG_COMMON_CLKDEV=y |
207 | 255 | ||
@@ -223,13 +271,15 @@ CONFIG_VMSPLIT_3G=y | |||
223 | # CONFIG_VMSPLIT_2G is not set | 271 | # CONFIG_VMSPLIT_2G is not set |
224 | # CONFIG_VMSPLIT_1G is not set | 272 | # CONFIG_VMSPLIT_1G is not set |
225 | CONFIG_PAGE_OFFSET=0xC0000000 | 273 | CONFIG_PAGE_OFFSET=0xC0000000 |
274 | # CONFIG_PREEMPT_NONE is not set | ||
275 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
226 | CONFIG_PREEMPT=y | 276 | CONFIG_PREEMPT=y |
227 | CONFIG_HZ=100 | 277 | CONFIG_HZ=100 |
228 | CONFIG_AEABI=y | 278 | CONFIG_AEABI=y |
229 | CONFIG_OABI_COMPAT=y | 279 | CONFIG_OABI_COMPAT=y |
230 | CONFIG_ARCH_FLATMEM_HAS_HOLES=y | ||
231 | # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set | 280 | # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set |
232 | # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set | 281 | # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set |
282 | # CONFIG_HIGHMEM is not set | ||
233 | CONFIG_SELECT_MEMORY_MODEL=y | 283 | CONFIG_SELECT_MEMORY_MODEL=y |
234 | CONFIG_FLATMEM_MANUAL=y | 284 | CONFIG_FLATMEM_MANUAL=y |
235 | # CONFIG_DISCONTIGMEM_MANUAL is not set | 285 | # CONFIG_DISCONTIGMEM_MANUAL is not set |
@@ -237,12 +287,14 @@ CONFIG_FLATMEM_MANUAL=y | |||
237 | CONFIG_FLATMEM=y | 287 | CONFIG_FLATMEM=y |
238 | CONFIG_FLAT_NODE_MEM_MAP=y | 288 | CONFIG_FLAT_NODE_MEM_MAP=y |
239 | CONFIG_PAGEFLAGS_EXTENDED=y | 289 | CONFIG_PAGEFLAGS_EXTENDED=y |
240 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | 290 | CONFIG_SPLIT_PTLOCK_CPUS=999999 |
241 | # CONFIG_PHYS_ADDR_T_64BIT is not set | 291 | # CONFIG_PHYS_ADDR_T_64BIT is not set |
242 | CONFIG_ZONE_DMA_FLAG=0 | 292 | CONFIG_ZONE_DMA_FLAG=0 |
243 | CONFIG_VIRT_TO_BUS=y | 293 | CONFIG_VIRT_TO_BUS=y |
244 | CONFIG_UNEVICTABLE_LRU=y | 294 | # CONFIG_KSM is not set |
295 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 | ||
245 | CONFIG_ALIGNMENT_TRAP=y | 296 | CONFIG_ALIGNMENT_TRAP=y |
297 | # CONFIG_UACCESS_WITH_MEMCPY is not set | ||
246 | 298 | ||
247 | # | 299 | # |
248 | # Boot options | 300 | # Boot options |
@@ -288,7 +340,6 @@ CONFIG_NET=y | |||
288 | # | 340 | # |
289 | # Networking options | 341 | # Networking options |
290 | # | 342 | # |
291 | CONFIG_COMPAT_NET_DEV_OPS=y | ||
292 | CONFIG_PACKET=y | 343 | CONFIG_PACKET=y |
293 | # CONFIG_PACKET_MMAP is not set | 344 | # CONFIG_PACKET_MMAP is not set |
294 | CONFIG_UNIX=y | 345 | CONFIG_UNIX=y |
@@ -330,6 +381,7 @@ CONFIG_DEFAULT_TCP_CONG="cubic" | |||
330 | # CONFIG_NETFILTER is not set | 381 | # CONFIG_NETFILTER is not set |
331 | # CONFIG_IP_DCCP is not set | 382 | # CONFIG_IP_DCCP is not set |
332 | # CONFIG_IP_SCTP is not set | 383 | # CONFIG_IP_SCTP is not set |
384 | # CONFIG_RDS is not set | ||
333 | # CONFIG_TIPC is not set | 385 | # CONFIG_TIPC is not set |
334 | # CONFIG_ATM is not set | 386 | # CONFIG_ATM is not set |
335 | # CONFIG_BRIDGE is not set | 387 | # CONFIG_BRIDGE is not set |
@@ -343,6 +395,8 @@ CONFIG_DEFAULT_TCP_CONG="cubic" | |||
343 | # CONFIG_LAPB is not set | 395 | # CONFIG_LAPB is not set |
344 | # CONFIG_ECONET is not set | 396 | # CONFIG_ECONET is not set |
345 | # CONFIG_WAN_ROUTER is not set | 397 | # CONFIG_WAN_ROUTER is not set |
398 | # CONFIG_PHONET is not set | ||
399 | # CONFIG_IEEE802154 is not set | ||
346 | # CONFIG_NET_SCHED is not set | 400 | # CONFIG_NET_SCHED is not set |
347 | # CONFIG_DCB is not set | 401 | # CONFIG_DCB is not set |
348 | 402 | ||
@@ -355,13 +409,13 @@ CONFIG_DEFAULT_TCP_CONG="cubic" | |||
355 | # CONFIG_IRDA is not set | 409 | # CONFIG_IRDA is not set |
356 | # CONFIG_BT is not set | 410 | # CONFIG_BT is not set |
357 | # CONFIG_AF_RXRPC is not set | 411 | # CONFIG_AF_RXRPC is not set |
358 | # CONFIG_PHONET is not set | ||
359 | CONFIG_WIRELESS=y | 412 | CONFIG_WIRELESS=y |
360 | # CONFIG_CFG80211 is not set | 413 | # CONFIG_CFG80211 is not set |
361 | CONFIG_WIRELESS_OLD_REGULATORY=y | ||
362 | # CONFIG_WIRELESS_EXT is not set | ||
363 | # CONFIG_LIB80211 is not set | 414 | # CONFIG_LIB80211 is not set |
364 | # CONFIG_MAC80211 is not set | 415 | |
416 | # | ||
417 | # CFG80211 needs to be enabled for MAC80211 | ||
418 | # | ||
365 | # CONFIG_WIMAX is not set | 419 | # CONFIG_WIMAX is not set |
366 | # CONFIG_RFKILL is not set | 420 | # CONFIG_RFKILL is not set |
367 | # CONFIG_NET_9P is not set | 421 | # CONFIG_NET_9P is not set |
@@ -374,6 +428,7 @@ CONFIG_WIRELESS_OLD_REGULATORY=y | |||
374 | # Generic Driver Options | 428 | # Generic Driver Options |
375 | # | 429 | # |
376 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | 430 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" |
431 | # CONFIG_DEVTMPFS is not set | ||
377 | # CONFIG_STANDALONE is not set | 432 | # CONFIG_STANDALONE is not set |
378 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set | 433 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set |
379 | CONFIG_FW_LOADER=y | 434 | CONFIG_FW_LOADER=y |
@@ -412,8 +467,10 @@ CONFIG_MII=y | |||
412 | # CONFIG_AX88796 is not set | 467 | # CONFIG_AX88796 is not set |
413 | CONFIG_SMC91X=y | 468 | CONFIG_SMC91X=y |
414 | # CONFIG_DM9000 is not set | 469 | # CONFIG_DM9000 is not set |
470 | # CONFIG_ETHOC is not set | ||
415 | # CONFIG_SMC911X is not set | 471 | # CONFIG_SMC911X is not set |
416 | # CONFIG_SMSC911X is not set | 472 | # CONFIG_SMSC911X is not set |
473 | # CONFIG_DNET is not set | ||
417 | # CONFIG_IBM_NEW_EMAC_ZMII is not set | 474 | # CONFIG_IBM_NEW_EMAC_ZMII is not set |
418 | # CONFIG_IBM_NEW_EMAC_RGMII is not set | 475 | # CONFIG_IBM_NEW_EMAC_RGMII is not set |
419 | # CONFIG_IBM_NEW_EMAC_TAH is not set | 476 | # CONFIG_IBM_NEW_EMAC_TAH is not set |
@@ -422,15 +479,12 @@ CONFIG_SMC91X=y | |||
422 | # CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set | 479 | # CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set |
423 | # CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set | 480 | # CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set |
424 | # CONFIG_B44 is not set | 481 | # CONFIG_B44 is not set |
482 | # CONFIG_KS8842 is not set | ||
483 | # CONFIG_KS8851_MLL is not set | ||
425 | # CONFIG_NETDEV_1000 is not set | 484 | # CONFIG_NETDEV_1000 is not set |
426 | # CONFIG_NETDEV_10000 is not set | 485 | # CONFIG_NETDEV_10000 is not set |
427 | 486 | CONFIG_WLAN=y | |
428 | # | 487 | # CONFIG_HOSTAP is not set |
429 | # Wireless LAN | ||
430 | # | ||
431 | # CONFIG_WLAN_PRE80211 is not set | ||
432 | # CONFIG_WLAN_80211 is not set | ||
433 | # CONFIG_IWLWIFI_LEDS is not set | ||
434 | 488 | ||
435 | # | 489 | # |
436 | # Enable WiMAX (Networking options) to see the WiMAX drivers | 490 | # Enable WiMAX (Networking options) to see the WiMAX drivers |
@@ -442,6 +496,7 @@ CONFIG_SMC91X=y | |||
442 | # CONFIG_NETPOLL is not set | 496 | # CONFIG_NETPOLL is not set |
443 | # CONFIG_NET_POLL_CONTROLLER is not set | 497 | # CONFIG_NET_POLL_CONTROLLER is not set |
444 | # CONFIG_ISDN is not set | 498 | # CONFIG_ISDN is not set |
499 | # CONFIG_PHONE is not set | ||
445 | 500 | ||
446 | # | 501 | # |
447 | # Input device support | 502 | # Input device support |
@@ -449,6 +504,7 @@ CONFIG_SMC91X=y | |||
449 | CONFIG_INPUT=y | 504 | CONFIG_INPUT=y |
450 | # CONFIG_INPUT_FF_MEMLESS is not set | 505 | # CONFIG_INPUT_FF_MEMLESS is not set |
451 | # CONFIG_INPUT_POLLDEV is not set | 506 | # CONFIG_INPUT_POLLDEV is not set |
507 | # CONFIG_INPUT_SPARSEKMAP is not set | ||
452 | 508 | ||
453 | # | 509 | # |
454 | # Userland interfaces | 510 | # Userland interfaces |
@@ -510,6 +566,11 @@ CONFIG_UNIX98_PTYS=y | |||
510 | # CONFIG_TCG_TPM is not set | 566 | # CONFIG_TCG_TPM is not set |
511 | # CONFIG_I2C is not set | 567 | # CONFIG_I2C is not set |
512 | # CONFIG_SPI is not set | 568 | # CONFIG_SPI is not set |
569 | |||
570 | # | ||
571 | # PPS support | ||
572 | # | ||
573 | # CONFIG_PPS is not set | ||
513 | CONFIG_ARCH_REQUIRE_GPIOLIB=y | 574 | CONFIG_ARCH_REQUIRE_GPIOLIB=y |
514 | CONFIG_GPIOLIB=y | 575 | CONFIG_GPIOLIB=y |
515 | # CONFIG_DEBUG_GPIO is not set | 576 | # CONFIG_DEBUG_GPIO is not set |
@@ -530,11 +591,14 @@ CONFIG_GPIOLIB=y | |||
530 | # | 591 | # |
531 | # SPI GPIO expanders: | 592 | # SPI GPIO expanders: |
532 | # | 593 | # |
594 | |||
595 | # | ||
596 | # AC97 GPIO expanders: | ||
597 | # | ||
533 | # CONFIG_W1 is not set | 598 | # CONFIG_W1 is not set |
534 | # CONFIG_POWER_SUPPLY is not set | 599 | # CONFIG_POWER_SUPPLY is not set |
535 | # CONFIG_HWMON is not set | 600 | # CONFIG_HWMON is not set |
536 | # CONFIG_THERMAL is not set | 601 | # CONFIG_THERMAL is not set |
537 | # CONFIG_THERMAL_HWMON is not set | ||
538 | # CONFIG_WATCHDOG is not set | 602 | # CONFIG_WATCHDOG is not set |
539 | CONFIG_SSB_POSSIBLE=y | 603 | CONFIG_SSB_POSSIBLE=y |
540 | 604 | ||
@@ -555,22 +619,8 @@ CONFIG_SSB_POSSIBLE=y | |||
555 | # CONFIG_MFD_T7L66XB is not set | 619 | # CONFIG_MFD_T7L66XB is not set |
556 | # CONFIG_MFD_TC6387XB is not set | 620 | # CONFIG_MFD_TC6387XB is not set |
557 | # CONFIG_MFD_TC6393XB is not set | 621 | # CONFIG_MFD_TC6393XB is not set |
558 | 622 | # CONFIG_REGULATOR is not set | |
559 | # | 623 | # CONFIG_MEDIA_SUPPORT is not set |
560 | # Multimedia devices | ||
561 | # | ||
562 | |||
563 | # | ||
564 | # Multimedia core support | ||
565 | # | ||
566 | # CONFIG_VIDEO_DEV is not set | ||
567 | # CONFIG_DVB_CORE is not set | ||
568 | # CONFIG_VIDEO_MEDIA is not set | ||
569 | |||
570 | # | ||
571 | # Multimedia drivers | ||
572 | # | ||
573 | # CONFIG_DAB is not set | ||
574 | 624 | ||
575 | # | 625 | # |
576 | # Graphics support | 626 | # Graphics support |
@@ -595,13 +645,17 @@ CONFIG_DUMMY_CONSOLE=y | |||
595 | # CONFIG_USB_SUPPORT is not set | 645 | # CONFIG_USB_SUPPORT is not set |
596 | # CONFIG_MMC is not set | 646 | # CONFIG_MMC is not set |
597 | # CONFIG_MEMSTICK is not set | 647 | # CONFIG_MEMSTICK is not set |
598 | # CONFIG_ACCESSIBILITY is not set | ||
599 | # CONFIG_NEW_LEDS is not set | 648 | # CONFIG_NEW_LEDS is not set |
649 | # CONFIG_ACCESSIBILITY is not set | ||
600 | CONFIG_RTC_LIB=y | 650 | CONFIG_RTC_LIB=y |
601 | # CONFIG_RTC_CLASS is not set | 651 | # CONFIG_RTC_CLASS is not set |
602 | # CONFIG_DMADEVICES is not set | 652 | # CONFIG_DMADEVICES is not set |
603 | # CONFIG_REGULATOR is not set | 653 | # CONFIG_AUXDISPLAY is not set |
604 | # CONFIG_UIO is not set | 654 | # CONFIG_UIO is not set |
655 | |||
656 | # | ||
657 | # TI VLYNQ | ||
658 | # | ||
605 | # CONFIG_STAGING is not set | 659 | # CONFIG_STAGING is not set |
606 | 660 | ||
607 | # | 661 | # |
@@ -613,10 +667,13 @@ CONFIG_RTC_LIB=y | |||
613 | # CONFIG_REISERFS_FS is not set | 667 | # CONFIG_REISERFS_FS is not set |
614 | # CONFIG_JFS_FS is not set | 668 | # CONFIG_JFS_FS is not set |
615 | CONFIG_FS_POSIX_ACL=y | 669 | CONFIG_FS_POSIX_ACL=y |
616 | CONFIG_FILE_LOCKING=y | ||
617 | # CONFIG_XFS_FS is not set | 670 | # CONFIG_XFS_FS is not set |
671 | # CONFIG_GFS2_FS is not set | ||
618 | # CONFIG_OCFS2_FS is not set | 672 | # CONFIG_OCFS2_FS is not set |
619 | # CONFIG_BTRFS_FS is not set | 673 | # CONFIG_BTRFS_FS is not set |
674 | # CONFIG_NILFS2_FS is not set | ||
675 | CONFIG_FILE_LOCKING=y | ||
676 | CONFIG_FSNOTIFY=y | ||
620 | CONFIG_DNOTIFY=y | 677 | CONFIG_DNOTIFY=y |
621 | CONFIG_INOTIFY=y | 678 | CONFIG_INOTIFY=y |
622 | CONFIG_INOTIFY_USER=y | 679 | CONFIG_INOTIFY_USER=y |
@@ -627,6 +684,11 @@ CONFIG_INOTIFY_USER=y | |||
627 | CONFIG_GENERIC_ACL=y | 684 | CONFIG_GENERIC_ACL=y |
628 | 685 | ||
629 | # | 686 | # |
687 | # Caches | ||
688 | # | ||
689 | # CONFIG_FSCACHE is not set | ||
690 | |||
691 | # | ||
630 | # CD-ROM/DVD Filesystems | 692 | # CD-ROM/DVD Filesystems |
631 | # | 693 | # |
632 | # CONFIG_ISO9660_FS is not set | 694 | # CONFIG_ISO9660_FS is not set |
@@ -673,6 +735,7 @@ CONFIG_NFS_FS=y | |||
673 | CONFIG_NFS_V3=y | 735 | CONFIG_NFS_V3=y |
674 | CONFIG_NFS_V3_ACL=y | 736 | CONFIG_NFS_V3_ACL=y |
675 | CONFIG_NFS_V4=y | 737 | CONFIG_NFS_V4=y |
738 | # CONFIG_NFS_V4_1 is not set | ||
676 | CONFIG_ROOT_NFS=y | 739 | CONFIG_ROOT_NFS=y |
677 | # CONFIG_NFSD is not set | 740 | # CONFIG_NFSD is not set |
678 | CONFIG_LOCKD=y | 741 | CONFIG_LOCKD=y |
@@ -681,7 +744,6 @@ CONFIG_NFS_ACL_SUPPORT=y | |||
681 | CONFIG_NFS_COMMON=y | 744 | CONFIG_NFS_COMMON=y |
682 | CONFIG_SUNRPC=y | 745 | CONFIG_SUNRPC=y |
683 | CONFIG_SUNRPC_GSS=y | 746 | CONFIG_SUNRPC_GSS=y |
684 | # CONFIG_SUNRPC_REGISTER_V4 is not set | ||
685 | CONFIG_RPCSEC_GSS_KRB5=y | 747 | CONFIG_RPCSEC_GSS_KRB5=y |
686 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | 748 | # CONFIG_RPCSEC_GSS_SPKM3 is not set |
687 | # CONFIG_SMB_FS is not set | 749 | # CONFIG_SMB_FS is not set |
@@ -706,6 +768,7 @@ CONFIG_ENABLE_WARN_DEPRECATED=y | |||
706 | CONFIG_ENABLE_MUST_CHECK=y | 768 | CONFIG_ENABLE_MUST_CHECK=y |
707 | CONFIG_FRAME_WARN=1024 | 769 | CONFIG_FRAME_WARN=1024 |
708 | CONFIG_MAGIC_SYSRQ=y | 770 | CONFIG_MAGIC_SYSRQ=y |
771 | # CONFIG_STRIP_ASM_SYMS is not set | ||
709 | # CONFIG_UNUSED_SYMBOLS is not set | 772 | # CONFIG_UNUSED_SYMBOLS is not set |
710 | # CONFIG_DEBUG_FS is not set | 773 | # CONFIG_DEBUG_FS is not set |
711 | # CONFIG_HEADERS_CHECK is not set | 774 | # CONFIG_HEADERS_CHECK is not set |
@@ -714,11 +777,15 @@ CONFIG_DEBUG_KERNEL=y | |||
714 | CONFIG_DETECT_SOFTLOCKUP=y | 777 | CONFIG_DETECT_SOFTLOCKUP=y |
715 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set | 778 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set |
716 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 | 779 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 |
780 | CONFIG_DETECT_HUNG_TASK=y | ||
781 | # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set | ||
782 | CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 | ||
717 | CONFIG_SCHED_DEBUG=y | 783 | CONFIG_SCHED_DEBUG=y |
718 | # CONFIG_SCHEDSTATS is not set | 784 | # CONFIG_SCHEDSTATS is not set |
719 | # CONFIG_TIMER_STATS is not set | 785 | # CONFIG_TIMER_STATS is not set |
720 | # CONFIG_DEBUG_OBJECTS is not set | 786 | # CONFIG_DEBUG_OBJECTS is not set |
721 | # CONFIG_DEBUG_SLAB is not set | 787 | # CONFIG_DEBUG_SLAB is not set |
788 | # CONFIG_DEBUG_KMEMLEAK is not set | ||
722 | # CONFIG_DEBUG_PREEMPT is not set | 789 | # CONFIG_DEBUG_PREEMPT is not set |
723 | # CONFIG_DEBUG_RT_MUTEXES is not set | 790 | # CONFIG_DEBUG_RT_MUTEXES is not set |
724 | # CONFIG_RT_MUTEX_TESTER is not set | 791 | # CONFIG_RT_MUTEX_TESTER is not set |
@@ -738,28 +805,33 @@ CONFIG_DEBUG_MEMORY_INIT=y | |||
738 | # CONFIG_DEBUG_LIST is not set | 805 | # CONFIG_DEBUG_LIST is not set |
739 | # CONFIG_DEBUG_SG is not set | 806 | # CONFIG_DEBUG_SG is not set |
740 | # CONFIG_DEBUG_NOTIFIERS is not set | 807 | # CONFIG_DEBUG_NOTIFIERS is not set |
808 | # CONFIG_DEBUG_CREDENTIALS is not set | ||
741 | # CONFIG_BOOT_PRINTK_DELAY is not set | 809 | # CONFIG_BOOT_PRINTK_DELAY is not set |
742 | # CONFIG_RCU_TORTURE_TEST is not set | 810 | # CONFIG_RCU_TORTURE_TEST is not set |
743 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | 811 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set |
744 | # CONFIG_BACKTRACE_SELF_TEST is not set | 812 | # CONFIG_BACKTRACE_SELF_TEST is not set |
745 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set | 813 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set |
814 | # CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set | ||
746 | # CONFIG_FAULT_INJECTION is not set | 815 | # CONFIG_FAULT_INJECTION is not set |
747 | # CONFIG_LATENCYTOP is not set | 816 | # CONFIG_LATENCYTOP is not set |
748 | # CONFIG_SYSCTL_SYSCALL_CHECK is not set | 817 | # CONFIG_SYSCTL_SYSCALL_CHECK is not set |
818 | # CONFIG_PAGE_POISONING is not set | ||
749 | CONFIG_HAVE_FUNCTION_TRACER=y | 819 | CONFIG_HAVE_FUNCTION_TRACER=y |
750 | 820 | CONFIG_TRACING_SUPPORT=y | |
751 | # | 821 | CONFIG_FTRACE=y |
752 | # Tracers | ||
753 | # | ||
754 | # CONFIG_FUNCTION_TRACER is not set | 822 | # CONFIG_FUNCTION_TRACER is not set |
755 | # CONFIG_IRQSOFF_TRACER is not set | 823 | # CONFIG_IRQSOFF_TRACER is not set |
756 | # CONFIG_PREEMPT_TRACER is not set | 824 | # CONFIG_PREEMPT_TRACER is not set |
757 | # CONFIG_SCHED_TRACER is not set | 825 | # CONFIG_SCHED_TRACER is not set |
758 | # CONFIG_CONTEXT_SWITCH_TRACER is not set | 826 | # CONFIG_ENABLE_DEFAULT_TRACERS is not set |
759 | # CONFIG_BOOT_TRACER is not set | 827 | # CONFIG_BOOT_TRACER is not set |
760 | # CONFIG_TRACE_BRANCH_PROFILING is not set | 828 | CONFIG_BRANCH_PROFILE_NONE=y |
829 | # CONFIG_PROFILE_ANNOTATED_BRANCHES is not set | ||
830 | # CONFIG_PROFILE_ALL_BRANCHES is not set | ||
761 | # CONFIG_STACK_TRACER is not set | 831 | # CONFIG_STACK_TRACER is not set |
762 | # CONFIG_DYNAMIC_PRINTK_DEBUG is not set | 832 | # CONFIG_KMEMTRACE is not set |
833 | # CONFIG_WORKQUEUE_TRACER is not set | ||
834 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
763 | # CONFIG_SAMPLES is not set | 835 | # CONFIG_SAMPLES is not set |
764 | CONFIG_HAVE_ARCH_KGDB=y | 836 | CONFIG_HAVE_ARCH_KGDB=y |
765 | # CONFIG_KGDB is not set | 837 | # CONFIG_KGDB is not set |
@@ -768,7 +840,9 @@ CONFIG_DEBUG_USER=y | |||
768 | CONFIG_DEBUG_ERRORS=y | 840 | CONFIG_DEBUG_ERRORS=y |
769 | # CONFIG_DEBUG_STACK_USAGE is not set | 841 | # CONFIG_DEBUG_STACK_USAGE is not set |
770 | CONFIG_DEBUG_LL=y | 842 | CONFIG_DEBUG_LL=y |
843 | # CONFIG_EARLY_PRINTK is not set | ||
771 | # CONFIG_DEBUG_ICEDCC is not set | 844 | # CONFIG_DEBUG_ICEDCC is not set |
845 | # CONFIG_OC_ETM is not set | ||
772 | 846 | ||
773 | # | 847 | # |
774 | # Security options | 848 | # Security options |
@@ -776,13 +850,16 @@ CONFIG_DEBUG_LL=y | |||
776 | # CONFIG_KEYS is not set | 850 | # CONFIG_KEYS is not set |
777 | # CONFIG_SECURITY is not set | 851 | # CONFIG_SECURITY is not set |
778 | # CONFIG_SECURITYFS is not set | 852 | # CONFIG_SECURITYFS is not set |
779 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | 853 | # CONFIG_DEFAULT_SECURITY_SELINUX is not set |
854 | # CONFIG_DEFAULT_SECURITY_SMACK is not set | ||
855 | # CONFIG_DEFAULT_SECURITY_TOMOYO is not set | ||
856 | CONFIG_DEFAULT_SECURITY_DAC=y | ||
857 | CONFIG_DEFAULT_SECURITY="" | ||
780 | CONFIG_CRYPTO=y | 858 | CONFIG_CRYPTO=y |
781 | 859 | ||
782 | # | 860 | # |
783 | # Crypto core or helper | 861 | # Crypto core or helper |
784 | # | 862 | # |
785 | # CONFIG_CRYPTO_FIPS is not set | ||
786 | CONFIG_CRYPTO_ALGAPI=y | 863 | CONFIG_CRYPTO_ALGAPI=y |
787 | CONFIG_CRYPTO_ALGAPI2=y | 864 | CONFIG_CRYPTO_ALGAPI2=y |
788 | CONFIG_CRYPTO_AEAD2=y | 865 | CONFIG_CRYPTO_AEAD2=y |
@@ -791,10 +868,12 @@ CONFIG_CRYPTO_BLKCIPHER2=y | |||
791 | CONFIG_CRYPTO_HASH=y | 868 | CONFIG_CRYPTO_HASH=y |
792 | CONFIG_CRYPTO_HASH2=y | 869 | CONFIG_CRYPTO_HASH2=y |
793 | CONFIG_CRYPTO_RNG2=y | 870 | CONFIG_CRYPTO_RNG2=y |
871 | CONFIG_CRYPTO_PCOMP=y | ||
794 | CONFIG_CRYPTO_MANAGER=y | 872 | CONFIG_CRYPTO_MANAGER=y |
795 | CONFIG_CRYPTO_MANAGER2=y | 873 | CONFIG_CRYPTO_MANAGER2=y |
796 | # CONFIG_CRYPTO_GF128MUL is not set | 874 | # CONFIG_CRYPTO_GF128MUL is not set |
797 | # CONFIG_CRYPTO_NULL is not set | 875 | # CONFIG_CRYPTO_NULL is not set |
876 | CONFIG_CRYPTO_WORKQUEUE=y | ||
798 | # CONFIG_CRYPTO_CRYPTD is not set | 877 | # CONFIG_CRYPTO_CRYPTD is not set |
799 | # CONFIG_CRYPTO_AUTHENC is not set | 878 | # CONFIG_CRYPTO_AUTHENC is not set |
800 | # CONFIG_CRYPTO_TEST is not set | 879 | # CONFIG_CRYPTO_TEST is not set |
@@ -822,11 +901,13 @@ CONFIG_CRYPTO_CBC=y | |||
822 | # | 901 | # |
823 | # CONFIG_CRYPTO_HMAC is not set | 902 | # CONFIG_CRYPTO_HMAC is not set |
824 | # CONFIG_CRYPTO_XCBC is not set | 903 | # CONFIG_CRYPTO_XCBC is not set |
904 | # CONFIG_CRYPTO_VMAC is not set | ||
825 | 905 | ||
826 | # | 906 | # |
827 | # Digest | 907 | # Digest |
828 | # | 908 | # |
829 | # CONFIG_CRYPTO_CRC32C is not set | 909 | # CONFIG_CRYPTO_CRC32C is not set |
910 | # CONFIG_CRYPTO_GHASH is not set | ||
830 | # CONFIG_CRYPTO_MD4 is not set | 911 | # CONFIG_CRYPTO_MD4 is not set |
831 | CONFIG_CRYPTO_MD5=y | 912 | CONFIG_CRYPTO_MD5=y |
832 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | 913 | # CONFIG_CRYPTO_MICHAEL_MIC is not set |
@@ -863,6 +944,7 @@ CONFIG_CRYPTO_DES=y | |||
863 | # Compression | 944 | # Compression |
864 | # | 945 | # |
865 | # CONFIG_CRYPTO_DEFLATE is not set | 946 | # CONFIG_CRYPTO_DEFLATE is not set |
947 | # CONFIG_CRYPTO_ZLIB is not set | ||
866 | # CONFIG_CRYPTO_LZO is not set | 948 | # CONFIG_CRYPTO_LZO is not set |
867 | 949 | ||
868 | # | 950 | # |
@@ -870,6 +952,7 @@ CONFIG_CRYPTO_DES=y | |||
870 | # | 952 | # |
871 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | 953 | # CONFIG_CRYPTO_ANSI_CPRNG is not set |
872 | CONFIG_CRYPTO_HW=y | 954 | CONFIG_CRYPTO_HW=y |
955 | # CONFIG_BINARY_PRINTF is not set | ||
873 | 956 | ||
874 | # | 957 | # |
875 | # Library routines | 958 | # Library routines |
@@ -884,7 +967,7 @@ CONFIG_CRC32=y | |||
884 | # CONFIG_CRC7 is not set | 967 | # CONFIG_CRC7 is not set |
885 | # CONFIG_LIBCRC32C is not set | 968 | # CONFIG_LIBCRC32C is not set |
886 | CONFIG_ZLIB_INFLATE=y | 969 | CONFIG_ZLIB_INFLATE=y |
887 | CONFIG_PLIST=y | ||
888 | CONFIG_HAS_IOMEM=y | 970 | CONFIG_HAS_IOMEM=y |
889 | CONFIG_HAS_IOPORT=y | 971 | CONFIG_HAS_IOPORT=y |
890 | CONFIG_HAS_DMA=y | 972 | CONFIG_HAS_DMA=y |
973 | CONFIG_NLATTR=y | ||
diff --git a/arch/arm/configs/raumfeld_defconfig b/arch/arm/configs/raumfeld_defconfig new file mode 100644 index 00000000000..acb1a8f30e3 --- /dev/null +++ b/arch/arm/configs/raumfeld_defconfig | |||
@@ -0,0 +1,1898 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.32-rc5 | ||
4 | # Sun Nov 1 21:57:32 2009 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_HAVE_PWM=y | ||
8 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | ||
9 | CONFIG_GENERIC_GPIO=y | ||
10 | CONFIG_GENERIC_TIME=y | ||
11 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
12 | CONFIG_GENERIC_HARDIRQS=y | ||
13 | CONFIG_STACKTRACE_SUPPORT=y | ||
14 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | ||
15 | CONFIG_LOCKDEP_SUPPORT=y | ||
16 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
17 | CONFIG_HARDIRQS_SW_RESEND=y | ||
18 | CONFIG_GENERIC_IRQ_PROBE=y | ||
19 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
20 | CONFIG_ARCH_HAS_CPUFREQ=y | ||
21 | CONFIG_GENERIC_HWEIGHT=y | ||
22 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
23 | CONFIG_ARCH_MTD_XIP=y | ||
24 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y | ||
25 | CONFIG_VECTORS_BASE=0xffff0000 | ||
26 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
27 | CONFIG_CONSTRUCTORS=y | ||
28 | |||
29 | # | ||
30 | # General setup | ||
31 | # | ||
32 | CONFIG_EXPERIMENTAL=y | ||
33 | CONFIG_BROKEN_ON_SMP=y | ||
34 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
35 | CONFIG_LOCALVERSION="" | ||
36 | # CONFIG_LOCALVERSION_AUTO is not set | ||
37 | # CONFIG_SWAP is not set | ||
38 | # CONFIG_SYSVIPC is not set | ||
39 | # CONFIG_POSIX_MQUEUE is not set | ||
40 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
41 | # CONFIG_TASKSTATS is not set | ||
42 | # CONFIG_AUDIT is not set | ||
43 | |||
44 | # | ||
45 | # RCU Subsystem | ||
46 | # | ||
47 | CONFIG_TREE_RCU=y | ||
48 | # CONFIG_TREE_PREEMPT_RCU is not set | ||
49 | # CONFIG_RCU_TRACE is not set | ||
50 | CONFIG_RCU_FANOUT=32 | ||
51 | # CONFIG_RCU_FANOUT_EXACT is not set | ||
52 | # CONFIG_TREE_RCU_TRACE is not set | ||
53 | # CONFIG_IKCONFIG is not set | ||
54 | CONFIG_LOG_BUF_SHIFT=17 | ||
55 | # CONFIG_GROUP_SCHED is not set | ||
56 | # CONFIG_CGROUPS is not set | ||
57 | # CONFIG_SYSFS_DEPRECATED_V2 is not set | ||
58 | # CONFIG_RELAY is not set | ||
59 | CONFIG_NAMESPACES=y | ||
60 | # CONFIG_UTS_NS is not set | ||
61 | # CONFIG_USER_NS is not set | ||
62 | # CONFIG_PID_NS is not set | ||
63 | # CONFIG_NET_NS is not set | ||
64 | # CONFIG_BLK_DEV_INITRD is not set | ||
65 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
66 | CONFIG_SYSCTL=y | ||
67 | CONFIG_ANON_INODES=y | ||
68 | # CONFIG_EMBEDDED is not set | ||
69 | CONFIG_UID16=y | ||
70 | CONFIG_SYSCTL_SYSCALL=y | ||
71 | CONFIG_KALLSYMS=y | ||
72 | # CONFIG_KALLSYMS_ALL is not set | ||
73 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
74 | CONFIG_HOTPLUG=y | ||
75 | CONFIG_PRINTK=y | ||
76 | CONFIG_BUG=y | ||
77 | CONFIG_ELF_CORE=y | ||
78 | CONFIG_BASE_FULL=y | ||
79 | CONFIG_FUTEX=y | ||
80 | CONFIG_EPOLL=y | ||
81 | CONFIG_SIGNALFD=y | ||
82 | CONFIG_TIMERFD=y | ||
83 | CONFIG_EVENTFD=y | ||
84 | CONFIG_SHMEM=y | ||
85 | CONFIG_AIO=y | ||
86 | |||
87 | # | ||
88 | # Kernel Performance Events And Counters | ||
89 | # | ||
90 | CONFIG_VM_EVENT_COUNTERS=y | ||
91 | CONFIG_SLUB_DEBUG=y | ||
92 | CONFIG_COMPAT_BRK=y | ||
93 | # CONFIG_SLAB is not set | ||
94 | CONFIG_SLUB=y | ||
95 | # CONFIG_SLOB is not set | ||
96 | # CONFIG_PROFILING is not set | ||
97 | CONFIG_HAVE_OPROFILE=y | ||
98 | # CONFIG_KPROBES is not set | ||
99 | CONFIG_HAVE_KPROBES=y | ||
100 | CONFIG_HAVE_KRETPROBES=y | ||
101 | CONFIG_HAVE_CLK=y | ||
102 | |||
103 | # | ||
104 | # GCOV-based kernel profiling | ||
105 | # | ||
106 | CONFIG_SLOW_WORK=y | ||
107 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | ||
108 | CONFIG_SLABINFO=y | ||
109 | CONFIG_RT_MUTEXES=y | ||
110 | CONFIG_BASE_SMALL=0 | ||
111 | CONFIG_MODULES=y | ||
112 | # CONFIG_MODULE_FORCE_LOAD is not set | ||
113 | CONFIG_MODULE_UNLOAD=y | ||
114 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
115 | # CONFIG_MODVERSIONS is not set | ||
116 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
117 | CONFIG_BLOCK=y | ||
118 | # CONFIG_LBDAF is not set | ||
119 | # CONFIG_BLK_DEV_BSG is not set | ||
120 | # CONFIG_BLK_DEV_INTEGRITY is not set | ||
121 | |||
122 | # | ||
123 | # IO Schedulers | ||
124 | # | ||
125 | CONFIG_IOSCHED_NOOP=y | ||
126 | CONFIG_IOSCHED_AS=y | ||
127 | CONFIG_IOSCHED_DEADLINE=y | ||
128 | CONFIG_IOSCHED_CFQ=y | ||
129 | # CONFIG_DEFAULT_AS is not set | ||
130 | # CONFIG_DEFAULT_DEADLINE is not set | ||
131 | CONFIG_DEFAULT_CFQ=y | ||
132 | # CONFIG_DEFAULT_NOOP is not set | ||
133 | CONFIG_DEFAULT_IOSCHED="cfq" | ||
134 | CONFIG_FREEZER=y | ||
135 | |||
136 | # | ||
137 | # System Type | ||
138 | # | ||
139 | CONFIG_MMU=y | ||
140 | # CONFIG_ARCH_AAEC2000 is not set | ||
141 | # CONFIG_ARCH_INTEGRATOR is not set | ||
142 | # CONFIG_ARCH_REALVIEW is not set | ||
143 | # CONFIG_ARCH_VERSATILE is not set | ||
144 | # CONFIG_ARCH_AT91 is not set | ||
145 | # CONFIG_ARCH_CLPS711X is not set | ||
146 | # CONFIG_ARCH_GEMINI is not set | ||
147 | # CONFIG_ARCH_EBSA110 is not set | ||
148 | # CONFIG_ARCH_EP93XX is not set | ||
149 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
150 | # CONFIG_ARCH_MXC is not set | ||
151 | # CONFIG_ARCH_STMP3XXX is not set | ||
152 | # CONFIG_ARCH_NETX is not set | ||
153 | # CONFIG_ARCH_H720X is not set | ||
154 | # CONFIG_ARCH_NOMADIK is not set | ||
155 | # CONFIG_ARCH_IOP13XX is not set | ||
156 | # CONFIG_ARCH_IOP32X is not set | ||
157 | # CONFIG_ARCH_IOP33X is not set | ||
158 | # CONFIG_ARCH_IXP23XX is not set | ||
159 | # CONFIG_ARCH_IXP2000 is not set | ||
160 | # CONFIG_ARCH_IXP4XX is not set | ||
161 | # CONFIG_ARCH_L7200 is not set | ||
162 | # CONFIG_ARCH_KIRKWOOD is not set | ||
163 | # CONFIG_ARCH_LOKI is not set | ||
164 | # CONFIG_ARCH_MV78XX0 is not set | ||
165 | # CONFIG_ARCH_ORION5X is not set | ||
166 | # CONFIG_ARCH_MMP is not set | ||
167 | # CONFIG_ARCH_KS8695 is not set | ||
168 | # CONFIG_ARCH_NS9XXX is not set | ||
169 | # CONFIG_ARCH_W90X900 is not set | ||
170 | # CONFIG_ARCH_PNX4008 is not set | ||
171 | CONFIG_ARCH_PXA=y | ||
172 | # CONFIG_ARCH_MSM is not set | ||
173 | # CONFIG_ARCH_RPC is not set | ||
174 | # CONFIG_ARCH_SA1100 is not set | ||
175 | # CONFIG_ARCH_S3C2410 is not set | ||
176 | # CONFIG_ARCH_S3C64XX is not set | ||
177 | # CONFIG_ARCH_S5PC1XX is not set | ||
178 | # CONFIG_ARCH_SHARK is not set | ||
179 | # CONFIG_ARCH_LH7A40X is not set | ||
180 | # CONFIG_ARCH_U300 is not set | ||
181 | # CONFIG_ARCH_DAVINCI is not set | ||
182 | # CONFIG_ARCH_OMAP is not set | ||
183 | # CONFIG_ARCH_BCMRING is not set | ||
184 | |||
185 | # | ||
186 | # Intel PXA2xx/PXA3xx Implementations | ||
187 | # | ||
188 | |||
189 | # | ||
190 | # Supported PXA3xx Processor Variants | ||
191 | # | ||
192 | CONFIG_CPU_PXA300=y | ||
193 | # CONFIG_CPU_PXA310 is not set | ||
194 | CONFIG_CPU_PXA320=y | ||
195 | # CONFIG_CPU_PXA930 is not set | ||
196 | # CONFIG_CPU_PXA935 is not set | ||
197 | # CONFIG_CPU_PXA950 is not set | ||
198 | |||
199 | # | ||
200 | # Intel/Marvell Dev Platforms (sorted by hardware release time) | ||
201 | # | ||
202 | # CONFIG_ARCH_LUBBOCK is not set | ||
203 | # CONFIG_MACH_MAINSTONE is not set | ||
204 | # CONFIG_MACH_ZYLONITE is not set | ||
205 | # CONFIG_MACH_LITTLETON is not set | ||
206 | # CONFIG_MACH_TAVOREVB is not set | ||
207 | # CONFIG_MACH_SAAR is not set | ||
208 | |||
209 | # | ||
210 | # Third Party Dev Platforms (sorted by vendor name) | ||
211 | # | ||
212 | # CONFIG_ARCH_PXA_IDP is not set | ||
213 | # CONFIG_ARCH_VIPER is not set | ||
214 | # CONFIG_MACH_BALLOON3 is not set | ||
215 | # CONFIG_MACH_CSB726 is not set | ||
216 | # CONFIG_MACH_ARMCORE is not set | ||
217 | # CONFIG_MACH_EM_X270 is not set | ||
218 | # CONFIG_MACH_EXEDA is not set | ||
219 | # CONFIG_MACH_CM_X300 is not set | ||
220 | # CONFIG_ARCH_GUMSTIX is not set | ||
221 | # CONFIG_MACH_INTELMOTE2 is not set | ||
222 | # CONFIG_MACH_STARGATE2 is not set | ||
223 | # CONFIG_MACH_XCEP is not set | ||
224 | # CONFIG_TRIZEPS_PXA is not set | ||
225 | # CONFIG_MACH_LOGICPD_PXA270 is not set | ||
226 | # CONFIG_MACH_PCM027 is not set | ||
227 | # CONFIG_MACH_COLIBRI is not set | ||
228 | # CONFIG_MACH_COLIBRI300 is not set | ||
229 | # CONFIG_MACH_COLIBRI320 is not set | ||
230 | |||
231 | # | ||
232 | # End-user Products (sorted by vendor name) | ||
233 | # | ||
234 | # CONFIG_MACH_H4700 is not set | ||
235 | # CONFIG_MACH_H5000 is not set | ||
236 | # CONFIG_MACH_HIMALAYA is not set | ||
237 | # CONFIG_MACH_MAGICIAN is not set | ||
238 | # CONFIG_MACH_MIOA701 is not set | ||
239 | # CONFIG_PXA_EZX is not set | ||
240 | # CONFIG_MACH_MP900C is not set | ||
241 | # CONFIG_ARCH_PXA_PALM is not set | ||
242 | CONFIG_MACH_RAUMFELD_RC=y | ||
243 | CONFIG_MACH_RAUMFELD_CONNECTOR=y | ||
244 | CONFIG_MACH_RAUMFELD_PROTO=y | ||
245 | CONFIG_MACH_RAUMFELD_SPEAKER=y | ||
246 | # CONFIG_PXA_SHARPSL is not set | ||
247 | # CONFIG_ARCH_PXA_ESERIES is not set | ||
248 | CONFIG_PXA3xx=y | ||
249 | CONFIG_PXA_SSP=y | ||
250 | CONFIG_PLAT_PXA=y | ||
251 | |||
252 | # | ||
253 | # Processor Type | ||
254 | # | ||
255 | CONFIG_CPU_32=y | ||
256 | CONFIG_CPU_XSC3=y | ||
257 | CONFIG_CPU_32v5=y | ||
258 | CONFIG_CPU_ABRT_EV5T=y | ||
259 | CONFIG_CPU_PABRT_LEGACY=y | ||
260 | CONFIG_CPU_CACHE_VIVT=y | ||
261 | CONFIG_CPU_TLB_V4WBI=y | ||
262 | CONFIG_CPU_CP15=y | ||
263 | CONFIG_CPU_CP15_MMU=y | ||
264 | CONFIG_IO_36=y | ||
265 | |||
266 | # | ||
267 | # Processor Features | ||
268 | # | ||
269 | CONFIG_ARM_THUMB=y | ||
270 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
271 | # CONFIG_CPU_BPREDICT_DISABLE is not set | ||
272 | CONFIG_OUTER_CACHE=y | ||
273 | CONFIG_CACHE_XSC3L2=y | ||
274 | CONFIG_ARM_L1_CACHE_SHIFT=5 | ||
275 | CONFIG_IWMMXT=y | ||
276 | CONFIG_COMMON_CLKDEV=y | ||
277 | |||
278 | # | ||
279 | # Bus support | ||
280 | # | ||
281 | # CONFIG_PCI_SYSCALL is not set | ||
282 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
283 | # CONFIG_PCCARD is not set | ||
284 | |||
285 | # | ||
286 | # Kernel Features | ||
287 | # | ||
288 | CONFIG_TICK_ONESHOT=y | ||
289 | CONFIG_NO_HZ=y | ||
290 | # CONFIG_HIGH_RES_TIMERS is not set | ||
291 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
292 | CONFIG_VMSPLIT_3G=y | ||
293 | # CONFIG_VMSPLIT_2G is not set | ||
294 | # CONFIG_VMSPLIT_1G is not set | ||
295 | CONFIG_PAGE_OFFSET=0xC0000000 | ||
296 | CONFIG_PREEMPT_NONE=y | ||
297 | # CONFIG_PREEMPT_VOLUNTARY is not set | ||
298 | # CONFIG_PREEMPT is not set | ||
299 | CONFIG_HZ=100 | ||
300 | CONFIG_AEABI=y | ||
301 | # CONFIG_OABI_COMPAT is not set | ||
302 | # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set | ||
303 | # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set | ||
304 | # CONFIG_HIGHMEM is not set | ||
305 | CONFIG_SELECT_MEMORY_MODEL=y | ||
306 | CONFIG_FLATMEM_MANUAL=y | ||
307 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
308 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
309 | CONFIG_FLATMEM=y | ||
310 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
311 | CONFIG_PAGEFLAGS_EXTENDED=y | ||
312 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
313 | # CONFIG_PHYS_ADDR_T_64BIT is not set | ||
314 | CONFIG_ZONE_DMA_FLAG=0 | ||
315 | CONFIG_VIRT_TO_BUS=y | ||
316 | CONFIG_HAVE_MLOCK=y | ||
317 | CONFIG_HAVE_MLOCKED_PAGE_BIT=y | ||
318 | # CONFIG_KSM is not set | ||
319 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 | ||
320 | CONFIG_ALIGNMENT_TRAP=y | ||
321 | # CONFIG_UACCESS_WITH_MEMCPY is not set | ||
322 | |||
323 | # | ||
324 | # Boot options | ||
325 | # | ||
326 | CONFIG_ZBOOT_ROM_TEXT=0 | ||
327 | CONFIG_ZBOOT_ROM_BSS=0 | ||
328 | CONFIG_CMDLINE="console=ttyS0,115200 rw" | ||
329 | # CONFIG_XIP_KERNEL is not set | ||
330 | # CONFIG_KEXEC is not set | ||
331 | |||
332 | # | ||
333 | # CPU Power Management | ||
334 | # | ||
335 | CONFIG_CPU_FREQ=y | ||
336 | CONFIG_CPU_FREQ_TABLE=y | ||
337 | # CONFIG_CPU_FREQ_DEBUG is not set | ||
338 | CONFIG_CPU_FREQ_STAT=y | ||
339 | # CONFIG_CPU_FREQ_STAT_DETAILS is not set | ||
340 | CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y | ||
341 | # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set | ||
342 | # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set | ||
343 | # CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set | ||
344 | # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set | ||
345 | CONFIG_CPU_FREQ_GOV_PERFORMANCE=y | ||
346 | # CONFIG_CPU_FREQ_GOV_POWERSAVE is not set | ||
347 | # CONFIG_CPU_FREQ_GOV_USERSPACE is not set | ||
348 | # CONFIG_CPU_FREQ_GOV_ONDEMAND is not set | ||
349 | # CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set | ||
350 | CONFIG_CPU_IDLE=y | ||
351 | CONFIG_CPU_IDLE_GOV_LADDER=y | ||
352 | CONFIG_CPU_IDLE_GOV_MENU=y | ||
353 | |||
354 | # | ||
355 | # Floating point emulation | ||
356 | # | ||
357 | |||
358 | # | ||
359 | # At least one emulation must be selected | ||
360 | # | ||
361 | |||
362 | # | ||
363 | # Userspace binary formats | ||
364 | # | ||
365 | CONFIG_BINFMT_ELF=y | ||
366 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set | ||
367 | CONFIG_HAVE_AOUT=y | ||
368 | # CONFIG_BINFMT_AOUT is not set | ||
369 | # CONFIG_BINFMT_MISC is not set | ||
370 | |||
371 | # | ||
372 | # Power management options | ||
373 | # | ||
374 | CONFIG_PM=y | ||
375 | # CONFIG_PM_DEBUG is not set | ||
376 | CONFIG_PM_SLEEP=y | ||
377 | CONFIG_SUSPEND=y | ||
378 | CONFIG_SUSPEND_FREEZER=y | ||
379 | CONFIG_APM_EMULATION=y | ||
380 | # CONFIG_PM_RUNTIME is not set | ||
381 | CONFIG_ARCH_SUSPEND_POSSIBLE=y | ||
382 | CONFIG_NET=y | ||
383 | |||
384 | # | ||
385 | # Networking options | ||
386 | # | ||
387 | CONFIG_PACKET=y | ||
388 | CONFIG_PACKET_MMAP=y | ||
389 | CONFIG_UNIX=y | ||
390 | CONFIG_XFRM=y | ||
391 | # CONFIG_XFRM_USER is not set | ||
392 | # CONFIG_XFRM_SUB_POLICY is not set | ||
393 | # CONFIG_XFRM_MIGRATE is not set | ||
394 | # CONFIG_XFRM_STATISTICS is not set | ||
395 | # CONFIG_NET_KEY is not set | ||
396 | CONFIG_INET=y | ||
397 | CONFIG_IP_MULTICAST=y | ||
398 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
399 | CONFIG_IP_FIB_HASH=y | ||
400 | CONFIG_IP_PNP=y | ||
401 | # CONFIG_IP_PNP_DHCP is not set | ||
402 | # CONFIG_IP_PNP_BOOTP is not set | ||
403 | # CONFIG_IP_PNP_RARP is not set | ||
404 | # CONFIG_NET_IPIP is not set | ||
405 | # CONFIG_NET_IPGRE is not set | ||
406 | # CONFIG_IP_MROUTE is not set | ||
407 | # CONFIG_ARPD is not set | ||
408 | CONFIG_SYN_COOKIES=y | ||
409 | # CONFIG_INET_AH is not set | ||
410 | # CONFIG_INET_ESP is not set | ||
411 | # CONFIG_INET_IPCOMP is not set | ||
412 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
413 | CONFIG_INET_TUNNEL=y | ||
414 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | ||
415 | CONFIG_INET_XFRM_MODE_TUNNEL=y | ||
416 | CONFIG_INET_XFRM_MODE_BEET=y | ||
417 | # CONFIG_INET_LRO is not set | ||
418 | CONFIG_INET_DIAG=y | ||
419 | CONFIG_INET_TCP_DIAG=y | ||
420 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
421 | CONFIG_TCP_CONG_CUBIC=y | ||
422 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
423 | # CONFIG_TCP_MD5SIG is not set | ||
424 | CONFIG_IPV6=y | ||
425 | # CONFIG_IPV6_PRIVACY is not set | ||
426 | # CONFIG_IPV6_ROUTER_PREF is not set | ||
427 | # CONFIG_IPV6_OPTIMISTIC_DAD is not set | ||
428 | # CONFIG_INET6_AH is not set | ||
429 | # CONFIG_INET6_ESP is not set | ||
430 | # CONFIG_INET6_IPCOMP is not set | ||
431 | # CONFIG_IPV6_MIP6 is not set | ||
432 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
433 | # CONFIG_INET6_TUNNEL is not set | ||
434 | CONFIG_INET6_XFRM_MODE_TRANSPORT=y | ||
435 | CONFIG_INET6_XFRM_MODE_TUNNEL=y | ||
436 | CONFIG_INET6_XFRM_MODE_BEET=y | ||
437 | # CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set | ||
438 | CONFIG_IPV6_SIT=y | ||
439 | CONFIG_IPV6_NDISC_NODETYPE=y | ||
440 | # CONFIG_IPV6_TUNNEL is not set | ||
441 | # CONFIG_IPV6_MULTIPLE_TABLES is not set | ||
442 | # CONFIG_IPV6_MROUTE is not set | ||
443 | # CONFIG_NETWORK_SECMARK is not set | ||
444 | # CONFIG_NETFILTER is not set | ||
445 | # CONFIG_IP_DCCP is not set | ||
446 | # CONFIG_IP_SCTP is not set | ||
447 | # CONFIG_RDS is not set | ||
448 | # CONFIG_TIPC is not set | ||
449 | # CONFIG_ATM is not set | ||
450 | # CONFIG_BRIDGE is not set | ||
451 | # CONFIG_NET_DSA is not set | ||
452 | # CONFIG_VLAN_8021Q is not set | ||
453 | # CONFIG_DECNET is not set | ||
454 | # CONFIG_LLC2 is not set | ||
455 | # CONFIG_IPX is not set | ||
456 | # CONFIG_ATALK is not set | ||
457 | # CONFIG_X25 is not set | ||
458 | # CONFIG_LAPB is not set | ||
459 | # CONFIG_ECONET is not set | ||
460 | # CONFIG_WAN_ROUTER is not set | ||
461 | # CONFIG_PHONET is not set | ||
462 | # CONFIG_IEEE802154 is not set | ||
463 | # CONFIG_NET_SCHED is not set | ||
464 | # CONFIG_DCB is not set | ||
465 | |||
466 | # | ||
467 | # Network testing | ||
468 | # | ||
469 | # CONFIG_NET_PKTGEN is not set | ||
470 | # CONFIG_HAMRADIO is not set | ||
471 | # CONFIG_CAN is not set | ||
472 | # CONFIG_IRDA is not set | ||
473 | # CONFIG_BT is not set | ||
474 | # CONFIG_AF_RXRPC is not set | ||
475 | CONFIG_WIRELESS=y | ||
476 | CONFIG_CFG80211=y | ||
477 | # CONFIG_NL80211_TESTMODE is not set | ||
478 | # CONFIG_CFG80211_DEVELOPER_WARNINGS is not set | ||
479 | CONFIG_CFG80211_REG_DEBUG=y | ||
480 | CONFIG_CFG80211_DEFAULT_PS=y | ||
481 | CONFIG_CFG80211_DEFAULT_PS_VALUE=1 | ||
482 | CONFIG_WIRELESS_OLD_REGULATORY=y | ||
483 | CONFIG_WIRELESS_EXT=y | ||
484 | CONFIG_WIRELESS_EXT_SYSFS=y | ||
485 | CONFIG_LIB80211=y | ||
486 | # CONFIG_LIB80211_DEBUG is not set | ||
487 | CONFIG_MAC80211=y | ||
488 | CONFIG_MAC80211_RC_MINSTREL=y | ||
489 | # CONFIG_MAC80211_RC_DEFAULT_PID is not set | ||
490 | CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y | ||
491 | CONFIG_MAC80211_RC_DEFAULT="minstrel" | ||
492 | # CONFIG_MAC80211_MESH is not set | ||
493 | # CONFIG_MAC80211_LEDS is not set | ||
494 | # CONFIG_MAC80211_DEBUG_MENU is not set | ||
495 | # CONFIG_WIMAX is not set | ||
496 | # CONFIG_RFKILL is not set | ||
497 | # CONFIG_NET_9P is not set | ||
498 | |||
499 | # | ||
500 | # Device Drivers | ||
501 | # | ||
502 | |||
503 | # | ||
504 | # Generic Driver Options | ||
505 | # | ||
506 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
507 | # CONFIG_DEVTMPFS is not set | ||
508 | CONFIG_STANDALONE=y | ||
509 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
510 | CONFIG_FW_LOADER=y | ||
511 | CONFIG_FIRMWARE_IN_KERNEL=y | ||
512 | CONFIG_EXTRA_FIRMWARE="" | ||
513 | # CONFIG_DEBUG_DRIVER is not set | ||
514 | # CONFIG_DEBUG_DEVRES is not set | ||
515 | # CONFIG_SYS_HYPERVISOR is not set | ||
516 | # CONFIG_CONNECTOR is not set | ||
517 | CONFIG_MTD=y | ||
518 | # CONFIG_MTD_DEBUG is not set | ||
519 | # CONFIG_MTD_TESTS is not set | ||
520 | CONFIG_MTD_CONCAT=y | ||
521 | CONFIG_MTD_PARTITIONS=y | ||
522 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
523 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
524 | # CONFIG_MTD_AFS_PARTS is not set | ||
525 | # CONFIG_MTD_AR7_PARTS is not set | ||
526 | |||
527 | # | ||
528 | # User Modules And Translation Layers | ||
529 | # | ||
530 | CONFIG_MTD_CHAR=y | ||
531 | CONFIG_MTD_BLKDEVS=y | ||
532 | CONFIG_MTD_BLOCK=y | ||
533 | # CONFIG_FTL is not set | ||
534 | CONFIG_NFTL=y | ||
535 | CONFIG_NFTL_RW=y | ||
536 | # CONFIG_INFTL is not set | ||
537 | # CONFIG_RFD_FTL is not set | ||
538 | # CONFIG_SSFDC is not set | ||
539 | # CONFIG_MTD_OOPS is not set | ||
540 | |||
541 | # | ||
542 | # RAM/ROM/Flash chip drivers | ||
543 | # | ||
544 | # CONFIG_MTD_CFI is not set | ||
545 | # CONFIG_MTD_JEDECPROBE is not set | ||
546 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
547 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
548 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
549 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
550 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
551 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
552 | CONFIG_MTD_CFI_I1=y | ||
553 | CONFIG_MTD_CFI_I2=y | ||
554 | # CONFIG_MTD_CFI_I4 is not set | ||
555 | # CONFIG_MTD_CFI_I8 is not set | ||
556 | # CONFIG_MTD_RAM is not set | ||
557 | # CONFIG_MTD_ROM is not set | ||
558 | # CONFIG_MTD_ABSENT is not set | ||
559 | |||
560 | # | ||
561 | # Mapping drivers for chip access | ||
562 | # | ||
563 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
564 | # CONFIG_MTD_PLATRAM is not set | ||
565 | |||
566 | # | ||
567 | # Self-contained MTD device drivers | ||
568 | # | ||
569 | # CONFIG_MTD_DATAFLASH is not set | ||
570 | # CONFIG_MTD_M25P80 is not set | ||
571 | # CONFIG_MTD_SST25L is not set | ||
572 | # CONFIG_MTD_SLRAM is not set | ||
573 | # CONFIG_MTD_PHRAM is not set | ||
574 | # CONFIG_MTD_MTDRAM is not set | ||
575 | CONFIG_MTD_BLOCK2MTD=y | ||
576 | |||
577 | # | ||
578 | # Disk-On-Chip Device Drivers | ||
579 | # | ||
580 | # CONFIG_MTD_DOC2000 is not set | ||
581 | # CONFIG_MTD_DOC2001 is not set | ||
582 | # CONFIG_MTD_DOC2001PLUS is not set | ||
583 | CONFIG_MTD_NAND=y | ||
584 | # CONFIG_MTD_NAND_VERIFY_WRITE is not set | ||
585 | # CONFIG_MTD_NAND_ECC_SMC is not set | ||
586 | # CONFIG_MTD_NAND_MUSEUM_IDS is not set | ||
587 | # CONFIG_MTD_NAND_H1900 is not set | ||
588 | # CONFIG_MTD_NAND_GPIO is not set | ||
589 | CONFIG_MTD_NAND_IDS=y | ||
590 | # CONFIG_MTD_NAND_DISKONCHIP is not set | ||
591 | # CONFIG_MTD_NAND_SHARPSL is not set | ||
592 | CONFIG_MTD_NAND_PXA3xx=y | ||
593 | # CONFIG_MTD_NAND_PXA3xx_BUILTIN is not set | ||
594 | # CONFIG_MTD_NAND_NANDSIM is not set | ||
595 | # CONFIG_MTD_NAND_PLATFORM is not set | ||
596 | # CONFIG_MTD_ALAUDA is not set | ||
597 | # CONFIG_MTD_ONENAND is not set | ||
598 | |||
599 | # | ||
600 | # LPDDR flash memory drivers | ||
601 | # | ||
602 | # CONFIG_MTD_LPDDR is not set | ||
603 | |||
604 | # | ||
605 | # UBI - Unsorted block images | ||
606 | # | ||
607 | CONFIG_MTD_UBI=y | ||
608 | CONFIG_MTD_UBI_WL_THRESHOLD=4096 | ||
609 | CONFIG_MTD_UBI_BEB_RESERVE=1 | ||
610 | # CONFIG_MTD_UBI_GLUEBI is not set | ||
611 | |||
612 | # | ||
613 | # UBI debugging options | ||
614 | # | ||
615 | # CONFIG_MTD_UBI_DEBUG is not set | ||
616 | # CONFIG_PARPORT is not set | ||
617 | CONFIG_BLK_DEV=y | ||
618 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
619 | CONFIG_BLK_DEV_LOOP=y | ||
620 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
621 | # CONFIG_BLK_DEV_NBD is not set | ||
622 | # CONFIG_BLK_DEV_UB is not set | ||
623 | # CONFIG_BLK_DEV_RAM is not set | ||
624 | # CONFIG_CDROM_PKTCDVD is not set | ||
625 | # CONFIG_ATA_OVER_ETH is not set | ||
626 | # CONFIG_MG_DISK is not set | ||
627 | CONFIG_MISC_DEVICES=y | ||
628 | # CONFIG_ICS932S401 is not set | ||
629 | # CONFIG_ENCLOSURE_SERVICES is not set | ||
630 | CONFIG_ISL29003=y | ||
631 | CONFIG_TI_DAC7512=y | ||
632 | # CONFIG_C2PORT is not set | ||
633 | |||
634 | # | ||
635 | # EEPROM support | ||
636 | # | ||
637 | # CONFIG_EEPROM_AT24 is not set | ||
638 | # CONFIG_EEPROM_AT25 is not set | ||
639 | # CONFIG_EEPROM_LEGACY is not set | ||
640 | # CONFIG_EEPROM_MAX6875 is not set | ||
641 | # CONFIG_EEPROM_93CX6 is not set | ||
642 | CONFIG_HAVE_IDE=y | ||
643 | # CONFIG_IDE is not set | ||
644 | |||
645 | # | ||
646 | # SCSI device support | ||
647 | # | ||
648 | # CONFIG_RAID_ATTRS is not set | ||
649 | CONFIG_SCSI=y | ||
650 | CONFIG_SCSI_DMA=y | ||
651 | # CONFIG_SCSI_TGT is not set | ||
652 | # CONFIG_SCSI_NETLINK is not set | ||
653 | CONFIG_SCSI_PROC_FS=y | ||
654 | |||
655 | # | ||
656 | # SCSI support type (disk, tape, CD-ROM) | ||
657 | # | ||
658 | CONFIG_BLK_DEV_SD=y | ||
659 | # CONFIG_CHR_DEV_ST is not set | ||
660 | # CONFIG_CHR_DEV_OSST is not set | ||
661 | # CONFIG_BLK_DEV_SR is not set | ||
662 | CONFIG_CHR_DEV_SG=y | ||
663 | # CONFIG_CHR_DEV_SCH is not set | ||
664 | # CONFIG_SCSI_MULTI_LUN is not set | ||
665 | # CONFIG_SCSI_CONSTANTS is not set | ||
666 | # CONFIG_SCSI_LOGGING is not set | ||
667 | # CONFIG_SCSI_SCAN_ASYNC is not set | ||
668 | CONFIG_SCSI_WAIT_SCAN=m | ||
669 | |||
670 | # | ||
671 | # SCSI Transports | ||
672 | # | ||
673 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
674 | # CONFIG_SCSI_FC_ATTRS is not set | ||
675 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
676 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
677 | # CONFIG_SCSI_SRP_ATTRS is not set | ||
678 | CONFIG_SCSI_LOWLEVEL=y | ||
679 | # CONFIG_ISCSI_TCP is not set | ||
680 | # CONFIG_LIBFC is not set | ||
681 | # CONFIG_LIBFCOE is not set | ||
682 | # CONFIG_SCSI_DEBUG is not set | ||
683 | # CONFIG_SCSI_DH is not set | ||
684 | # CONFIG_SCSI_OSD_INITIATOR is not set | ||
685 | # CONFIG_ATA is not set | ||
686 | # CONFIG_MD is not set | ||
687 | CONFIG_NETDEVICES=y | ||
688 | # CONFIG_DUMMY is not set | ||
689 | # CONFIG_BONDING is not set | ||
690 | # CONFIG_MACVLAN is not set | ||
691 | # CONFIG_EQUALIZER is not set | ||
692 | # CONFIG_TUN is not set | ||
693 | # CONFIG_VETH is not set | ||
694 | CONFIG_PHYLIB=y | ||
695 | |||
696 | # | ||
697 | # MII PHY device drivers | ||
698 | # | ||
699 | # CONFIG_MARVELL_PHY is not set | ||
700 | # CONFIG_DAVICOM_PHY is not set | ||
701 | # CONFIG_QSEMI_PHY is not set | ||
702 | # CONFIG_LXT_PHY is not set | ||
703 | # CONFIG_CICADA_PHY is not set | ||
704 | # CONFIG_VITESSE_PHY is not set | ||
705 | # CONFIG_SMSC_PHY is not set | ||
706 | # CONFIG_BROADCOM_PHY is not set | ||
707 | # CONFIG_ICPLUS_PHY is not set | ||
708 | # CONFIG_REALTEK_PHY is not set | ||
709 | # CONFIG_NATIONAL_PHY is not set | ||
710 | # CONFIG_STE10XP is not set | ||
711 | # CONFIG_LSI_ET1011C_PHY is not set | ||
712 | # CONFIG_FIXED_PHY is not set | ||
713 | # CONFIG_MDIO_BITBANG is not set | ||
714 | CONFIG_NET_ETHERNET=y | ||
715 | CONFIG_MII=y | ||
716 | # CONFIG_AX88796 is not set | ||
717 | # CONFIG_SMC91X is not set | ||
718 | # CONFIG_DM9000 is not set | ||
719 | # CONFIG_ENC28J60 is not set | ||
720 | # CONFIG_ETHOC is not set | ||
721 | # CONFIG_SMC911X is not set | ||
722 | CONFIG_SMSC911X=y | ||
723 | # CONFIG_DNET is not set | ||
724 | # CONFIG_IBM_NEW_EMAC_ZMII is not set | ||
725 | # CONFIG_IBM_NEW_EMAC_RGMII is not set | ||
726 | # CONFIG_IBM_NEW_EMAC_TAH is not set | ||
727 | # CONFIG_IBM_NEW_EMAC_EMAC4 is not set | ||
728 | # CONFIG_IBM_NEW_EMAC_NO_FLOW_CTRL is not set | ||
729 | # CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set | ||
730 | # CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set | ||
731 | # CONFIG_B44 is not set | ||
732 | # CONFIG_KS8842 is not set | ||
733 | # CONFIG_KS8851 is not set | ||
734 | # CONFIG_KS8851_MLL is not set | ||
735 | # CONFIG_NETDEV_1000 is not set | ||
736 | # CONFIG_NETDEV_10000 is not set | ||
737 | CONFIG_WLAN=y | ||
738 | # CONFIG_WLAN_PRE80211 is not set | ||
739 | CONFIG_WLAN_80211=y | ||
740 | CONFIG_LIBERTAS=y | ||
741 | # CONFIG_LIBERTAS_USB is not set | ||
742 | CONFIG_LIBERTAS_SDIO=m | ||
743 | # CONFIG_LIBERTAS_SPI is not set | ||
744 | # CONFIG_LIBERTAS_DEBUG is not set | ||
745 | # CONFIG_LIBERTAS_THINFIRM is not set | ||
746 | # CONFIG_AT76C50X_USB is not set | ||
747 | # CONFIG_USB_ZD1201 is not set | ||
748 | # CONFIG_USB_NET_RNDIS_WLAN is not set | ||
749 | # CONFIG_RTL8187 is not set | ||
750 | # CONFIG_MAC80211_HWSIM is not set | ||
751 | # CONFIG_P54_COMMON is not set | ||
752 | # CONFIG_ATH_COMMON is not set | ||
753 | # CONFIG_HOSTAP is not set | ||
754 | # CONFIG_B43 is not set | ||
755 | # CONFIG_B43LEGACY is not set | ||
756 | # CONFIG_ZD1211RW is not set | ||
757 | # CONFIG_RT2X00 is not set | ||
758 | # CONFIG_WL12XX is not set | ||
759 | # CONFIG_IWM is not set | ||
760 | |||
761 | # | ||
762 | # Enable WiMAX (Networking options) to see the WiMAX drivers | ||
763 | # | ||
764 | |||
765 | # | ||
766 | # USB Network Adapters | ||
767 | # | ||
768 | # CONFIG_USB_CATC is not set | ||
769 | # CONFIG_USB_KAWETH is not set | ||
770 | # CONFIG_USB_PEGASUS is not set | ||
771 | # CONFIG_USB_RTL8150 is not set | ||
772 | CONFIG_USB_USBNET=y | ||
773 | # CONFIG_USB_NET_AX8817X is not set | ||
774 | CONFIG_USB_NET_CDCETHER=y | ||
775 | # CONFIG_USB_NET_CDC_EEM is not set | ||
776 | # CONFIG_USB_NET_DM9601 is not set | ||
777 | # CONFIG_USB_NET_SMSC95XX is not set | ||
778 | # CONFIG_USB_NET_GL620A is not set | ||
779 | # CONFIG_USB_NET_NET1080 is not set | ||
780 | # CONFIG_USB_NET_PLUSB is not set | ||
781 | CONFIG_USB_NET_MCS7830=y | ||
782 | # CONFIG_USB_NET_RNDIS_HOST is not set | ||
783 | # CONFIG_USB_NET_CDC_SUBSET is not set | ||
784 | # CONFIG_USB_NET_ZAURUS is not set | ||
785 | # CONFIG_USB_NET_INT51X1 is not set | ||
786 | # CONFIG_WAN is not set | ||
787 | # CONFIG_PPP is not set | ||
788 | # CONFIG_SLIP is not set | ||
789 | # CONFIG_NETCONSOLE is not set | ||
790 | # CONFIG_NETPOLL is not set | ||
791 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
792 | # CONFIG_ISDN is not set | ||
793 | # CONFIG_PHONE is not set | ||
794 | |||
795 | # | ||
796 | # Input device support | ||
797 | # | ||
798 | CONFIG_INPUT=y | ||
799 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
800 | CONFIG_INPUT_POLLDEV=y | ||
801 | |||
802 | # | ||
803 | # Userland interfaces | ||
804 | # | ||
805 | CONFIG_INPUT_MOUSEDEV=y | ||
806 | CONFIG_INPUT_MOUSEDEV_PSAUX=y | ||
807 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
808 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
809 | # CONFIG_INPUT_JOYDEV is not set | ||
810 | CONFIG_INPUT_EVDEV=y | ||
811 | # CONFIG_INPUT_EVBUG is not set | ||
812 | |||
813 | # | ||
814 | # Input Device Drivers | ||
815 | # | ||
816 | CONFIG_INPUT_KEYBOARD=y | ||
817 | # CONFIG_KEYBOARD_ADP5588 is not set | ||
818 | CONFIG_KEYBOARD_ATKBD=y | ||
819 | # CONFIG_QT2160 is not set | ||
820 | # CONFIG_KEYBOARD_LKKBD is not set | ||
821 | CONFIG_KEYBOARD_GPIO=y | ||
822 | # CONFIG_KEYBOARD_MATRIX is not set | ||
823 | # CONFIG_KEYBOARD_LM8323 is not set | ||
824 | # CONFIG_KEYBOARD_MAX7359 is not set | ||
825 | # CONFIG_KEYBOARD_NEWTON is not set | ||
826 | # CONFIG_KEYBOARD_OPENCORES is not set | ||
827 | # CONFIG_KEYBOARD_PXA27x is not set | ||
828 | # CONFIG_KEYBOARD_STOWAWAY is not set | ||
829 | # CONFIG_KEYBOARD_SUNKBD is not set | ||
830 | # CONFIG_KEYBOARD_XTKBD is not set | ||
831 | # CONFIG_INPUT_MOUSE is not set | ||
832 | # CONFIG_INPUT_JOYSTICK is not set | ||
833 | # CONFIG_INPUT_TABLET is not set | ||
834 | CONFIG_INPUT_TOUCHSCREEN=y | ||
835 | # CONFIG_TOUCHSCREEN_ADS7846 is not set | ||
836 | # CONFIG_TOUCHSCREEN_AD7877 is not set | ||
837 | # CONFIG_TOUCHSCREEN_AD7879_I2C is not set | ||
838 | # CONFIG_TOUCHSCREEN_AD7879_SPI is not set | ||
839 | # CONFIG_TOUCHSCREEN_AD7879 is not set | ||
840 | CONFIG_TOUCHSCREEN_EETI=m | ||
841 | # CONFIG_TOUCHSCREEN_FUJITSU is not set | ||
842 | # CONFIG_TOUCHSCREEN_GUNZE is not set | ||
843 | # CONFIG_TOUCHSCREEN_ELO is not set | ||
844 | # CONFIG_TOUCHSCREEN_WACOM_W8001 is not set | ||
845 | # CONFIG_TOUCHSCREEN_MCS5000 is not set | ||
846 | # CONFIG_TOUCHSCREEN_MTOUCH is not set | ||
847 | # CONFIG_TOUCHSCREEN_INEXIO is not set | ||
848 | # CONFIG_TOUCHSCREEN_MK712 is not set | ||
849 | # CONFIG_TOUCHSCREEN_PENMOUNT is not set | ||
850 | # CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set | ||
851 | # CONFIG_TOUCHSCREEN_TOUCHWIN is not set | ||
852 | # CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set | ||
853 | # CONFIG_TOUCHSCREEN_TOUCHIT213 is not set | ||
854 | # CONFIG_TOUCHSCREEN_TSC2007 is not set | ||
855 | # CONFIG_TOUCHSCREEN_W90X900 is not set | ||
856 | CONFIG_INPUT_MISC=y | ||
857 | # CONFIG_INPUT_ATI_REMOTE is not set | ||
858 | # CONFIG_INPUT_ATI_REMOTE2 is not set | ||
859 | # CONFIG_INPUT_KEYSPAN_REMOTE is not set | ||
860 | # CONFIG_INPUT_POWERMATE is not set | ||
861 | # CONFIG_INPUT_YEALINK is not set | ||
862 | # CONFIG_INPUT_CM109 is not set | ||
863 | # CONFIG_INPUT_UINPUT is not set | ||
864 | CONFIG_INPUT_GPIO_ROTARY_ENCODER=y | ||
865 | |||
866 | # | ||
867 | # Hardware I/O ports | ||
868 | # | ||
869 | CONFIG_SERIO=y | ||
870 | CONFIG_SERIO_SERPORT=y | ||
871 | CONFIG_SERIO_LIBPS2=y | ||
872 | # CONFIG_SERIO_RAW is not set | ||
873 | # CONFIG_GAMEPORT is not set | ||
874 | |||
875 | # | ||
876 | # Character devices | ||
877 | # | ||
878 | CONFIG_VT=y | ||
879 | CONFIG_CONSOLE_TRANSLATIONS=y | ||
880 | CONFIG_VT_CONSOLE=y | ||
881 | CONFIG_HW_CONSOLE=y | ||
882 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
883 | CONFIG_DEVKMEM=y | ||
884 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
885 | |||
886 | # | ||
887 | # Serial drivers | ||
888 | # | ||
889 | # CONFIG_SERIAL_8250 is not set | ||
890 | |||
891 | # | ||
892 | # Non-8250 serial port support | ||
893 | # | ||
894 | # CONFIG_SERIAL_MAX3100 is not set | ||
895 | CONFIG_SERIAL_PXA=y | ||
896 | CONFIG_SERIAL_PXA_CONSOLE=y | ||
897 | CONFIG_SERIAL_CORE=y | ||
898 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
899 | CONFIG_UNIX98_PTYS=y | ||
900 | # CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set | ||
901 | CONFIG_LEGACY_PTYS=y | ||
902 | CONFIG_LEGACY_PTY_COUNT=256 | ||
903 | # CONFIG_IPMI_HANDLER is not set | ||
904 | CONFIG_HW_RANDOM=y | ||
905 | # CONFIG_HW_RANDOM_TIMERIOMEM is not set | ||
906 | # CONFIG_R3964 is not set | ||
907 | # CONFIG_RAW_DRIVER is not set | ||
908 | # CONFIG_TCG_TPM is not set | ||
909 | CONFIG_I2C=y | ||
910 | CONFIG_I2C_BOARDINFO=y | ||
911 | CONFIG_I2C_COMPAT=y | ||
912 | CONFIG_I2C_CHARDEV=y | ||
913 | CONFIG_I2C_HELPER_AUTO=y | ||
914 | |||
915 | # | ||
916 | # I2C Hardware Bus support | ||
917 | # | ||
918 | |||
919 | # | ||
920 | # I2C system bus drivers (mostly embedded / system-on-chip) | ||
921 | # | ||
922 | # CONFIG_I2C_DESIGNWARE is not set | ||
923 | # CONFIG_I2C_GPIO is not set | ||
924 | # CONFIG_I2C_OCORES is not set | ||
925 | CONFIG_I2C_PXA=y | ||
926 | # CONFIG_I2C_PXA_SLAVE is not set | ||
927 | # CONFIG_I2C_SIMTEC is not set | ||
928 | |||
929 | # | ||
930 | # External I2C/SMBus adapter drivers | ||
931 | # | ||
932 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
933 | # CONFIG_I2C_TAOS_EVM is not set | ||
934 | # CONFIG_I2C_TINY_USB is not set | ||
935 | |||
936 | # | ||
937 | # Other I2C/SMBus bus drivers | ||
938 | # | ||
939 | # CONFIG_I2C_PCA_PLATFORM is not set | ||
940 | # CONFIG_I2C_STUB is not set | ||
941 | |||
942 | # | ||
943 | # Miscellaneous I2C Chip support | ||
944 | # | ||
945 | # CONFIG_DS1682 is not set | ||
946 | # CONFIG_SENSORS_TSL2550 is not set | ||
947 | # CONFIG_I2C_DEBUG_CORE is not set | ||
948 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
949 | # CONFIG_I2C_DEBUG_BUS is not set | ||
950 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
951 | CONFIG_SPI=y | ||
952 | CONFIG_SPI_DEBUG=y | ||
953 | CONFIG_SPI_MASTER=y | ||
954 | |||
955 | # | ||
956 | # SPI Master Controller Drivers | ||
957 | # | ||
958 | CONFIG_SPI_BITBANG=y | ||
959 | CONFIG_SPI_GPIO=y | ||
960 | # CONFIG_SPI_PXA2XX is not set | ||
961 | |||
962 | # | ||
963 | # SPI Protocol Masters | ||
964 | # | ||
965 | CONFIG_SPI_SPIDEV=y | ||
966 | # CONFIG_SPI_TLE62X0 is not set | ||
967 | |||
968 | # | ||
969 | # PPS support | ||
970 | # | ||
971 | # CONFIG_PPS is not set | ||
972 | CONFIG_ARCH_REQUIRE_GPIOLIB=y | ||
973 | CONFIG_GPIOLIB=y | ||
974 | CONFIG_DEBUG_GPIO=y | ||
975 | # CONFIG_GPIO_SYSFS is not set | ||
976 | |||
977 | # | ||
978 | # Memory mapped GPIO expanders: | ||
979 | # | ||
980 | |||
981 | # | ||
982 | # I2C GPIO expanders: | ||
983 | # | ||
984 | # CONFIG_GPIO_MAX732X is not set | ||
985 | # CONFIG_GPIO_PCA953X is not set | ||
986 | # CONFIG_GPIO_PCF857X is not set | ||
987 | |||
988 | # | ||
989 | # PCI GPIO expanders: | ||
990 | # | ||
991 | |||
992 | # | ||
993 | # SPI GPIO expanders: | ||
994 | # | ||
995 | # CONFIG_GPIO_MAX7301 is not set | ||
996 | # CONFIG_GPIO_MCP23S08 is not set | ||
997 | # CONFIG_GPIO_MC33880 is not set | ||
998 | |||
999 | # | ||
1000 | # AC97 GPIO expanders: | ||
1001 | # | ||
1002 | CONFIG_W1=m | ||
1003 | |||
1004 | # | ||
1005 | # 1-wire Bus Masters | ||
1006 | # | ||
1007 | # CONFIG_W1_MASTER_DS2490 is not set | ||
1008 | # CONFIG_W1_MASTER_DS2482 is not set | ||
1009 | # CONFIG_W1_MASTER_DS1WM is not set | ||
1010 | CONFIG_W1_MASTER_GPIO=m | ||
1011 | |||
1012 | # | ||
1013 | # 1-wire Slaves | ||
1014 | # | ||
1015 | # CONFIG_W1_SLAVE_THERM is not set | ||
1016 | # CONFIG_W1_SLAVE_SMEM is not set | ||
1017 | # CONFIG_W1_SLAVE_DS2431 is not set | ||
1018 | # CONFIG_W1_SLAVE_DS2433 is not set | ||
1019 | CONFIG_W1_SLAVE_DS2760=m | ||
1020 | # CONFIG_W1_SLAVE_BQ27000 is not set | ||
1021 | CONFIG_POWER_SUPPLY=y | ||
1022 | # CONFIG_POWER_SUPPLY_DEBUG is not set | ||
1023 | CONFIG_PDA_POWER=y | ||
1024 | # CONFIG_APM_POWER is not set | ||
1025 | CONFIG_BATTERY_DS2760=m | ||
1026 | # CONFIG_BATTERY_DS2782 is not set | ||
1027 | # CONFIG_BATTERY_BQ27x00 is not set | ||
1028 | # CONFIG_BATTERY_MAX17040 is not set | ||
1029 | CONFIG_HWMON=y | ||
1030 | # CONFIG_HWMON_VID is not set | ||
1031 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
1032 | |||
1033 | # | ||
1034 | # Native drivers | ||
1035 | # | ||
1036 | # CONFIG_SENSORS_AD7414 is not set | ||
1037 | # CONFIG_SENSORS_AD7418 is not set | ||
1038 | # CONFIG_SENSORS_ADCXX is not set | ||
1039 | # CONFIG_SENSORS_ADM1021 is not set | ||
1040 | # CONFIG_SENSORS_ADM1025 is not set | ||
1041 | # CONFIG_SENSORS_ADM1026 is not set | ||
1042 | # CONFIG_SENSORS_ADM1029 is not set | ||
1043 | # CONFIG_SENSORS_ADM1031 is not set | ||
1044 | # CONFIG_SENSORS_ADM9240 is not set | ||
1045 | # CONFIG_SENSORS_ADT7462 is not set | ||
1046 | # CONFIG_SENSORS_ADT7470 is not set | ||
1047 | # CONFIG_SENSORS_ADT7473 is not set | ||
1048 | # CONFIG_SENSORS_ADT7475 is not set | ||
1049 | # CONFIG_SENSORS_ATXP1 is not set | ||
1050 | # CONFIG_SENSORS_DS1621 is not set | ||
1051 | # CONFIG_SENSORS_F71805F is not set | ||
1052 | # CONFIG_SENSORS_F71882FG is not set | ||
1053 | # CONFIG_SENSORS_F75375S is not set | ||
1054 | # CONFIG_SENSORS_G760A is not set | ||
1055 | # CONFIG_SENSORS_GL518SM is not set | ||
1056 | # CONFIG_SENSORS_GL520SM is not set | ||
1057 | # CONFIG_SENSORS_IT87 is not set | ||
1058 | # CONFIG_SENSORS_LM63 is not set | ||
1059 | # CONFIG_SENSORS_LM70 is not set | ||
1060 | # CONFIG_SENSORS_LM75 is not set | ||
1061 | # CONFIG_SENSORS_LM77 is not set | ||
1062 | # CONFIG_SENSORS_LM78 is not set | ||
1063 | # CONFIG_SENSORS_LM80 is not set | ||
1064 | # CONFIG_SENSORS_LM83 is not set | ||
1065 | # CONFIG_SENSORS_LM85 is not set | ||
1066 | # CONFIG_SENSORS_LM87 is not set | ||
1067 | # CONFIG_SENSORS_LM90 is not set | ||
1068 | # CONFIG_SENSORS_LM92 is not set | ||
1069 | # CONFIG_SENSORS_LM93 is not set | ||
1070 | # CONFIG_SENSORS_LTC4215 is not set | ||
1071 | # CONFIG_SENSORS_LTC4245 is not set | ||
1072 | # CONFIG_SENSORS_LM95241 is not set | ||
1073 | # CONFIG_SENSORS_MAX1111 is not set | ||
1074 | # CONFIG_SENSORS_MAX1619 is not set | ||
1075 | # CONFIG_SENSORS_MAX6650 is not set | ||
1076 | # CONFIG_SENSORS_PC87360 is not set | ||
1077 | # CONFIG_SENSORS_PC87427 is not set | ||
1078 | # CONFIG_SENSORS_PCF8591 is not set | ||
1079 | # CONFIG_SENSORS_SHT15 is not set | ||
1080 | # CONFIG_SENSORS_DME1737 is not set | ||
1081 | # CONFIG_SENSORS_SMSC47M1 is not set | ||
1082 | # CONFIG_SENSORS_SMSC47M192 is not set | ||
1083 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
1084 | # CONFIG_SENSORS_ADS7828 is not set | ||
1085 | # CONFIG_SENSORS_THMC50 is not set | ||
1086 | # CONFIG_SENSORS_TMP401 is not set | ||
1087 | # CONFIG_SENSORS_TMP421 is not set | ||
1088 | # CONFIG_SENSORS_VT1211 is not set | ||
1089 | # CONFIG_SENSORS_W83781D is not set | ||
1090 | # CONFIG_SENSORS_W83791D is not set | ||
1091 | # CONFIG_SENSORS_W83792D is not set | ||
1092 | # CONFIG_SENSORS_W83793 is not set | ||
1093 | # CONFIG_SENSORS_W83L785TS is not set | ||
1094 | # CONFIG_SENSORS_W83L786NG is not set | ||
1095 | # CONFIG_SENSORS_W83627HF is not set | ||
1096 | # CONFIG_SENSORS_W83627EHF is not set | ||
1097 | CONFIG_SENSORS_LIS3_SPI=y | ||
1098 | # CONFIG_THERMAL is not set | ||
1099 | # CONFIG_WATCHDOG is not set | ||
1100 | CONFIG_SSB_POSSIBLE=y | ||
1101 | |||
1102 | # | ||
1103 | # Sonics Silicon Backplane | ||
1104 | # | ||
1105 | # CONFIG_SSB is not set | ||
1106 | |||
1107 | # | ||
1108 | # Multifunction device drivers | ||
1109 | # | ||
1110 | # CONFIG_MFD_CORE is not set | ||
1111 | # CONFIG_MFD_SM501 is not set | ||
1112 | # CONFIG_MFD_ASIC3 is not set | ||
1113 | # CONFIG_HTC_EGPIO is not set | ||
1114 | # CONFIG_HTC_PASIC3 is not set | ||
1115 | # CONFIG_TPS65010 is not set | ||
1116 | # CONFIG_TWL4030_CORE is not set | ||
1117 | # CONFIG_MFD_TMIO is not set | ||
1118 | # CONFIG_MFD_T7L66XB is not set | ||
1119 | # CONFIG_MFD_TC6387XB is not set | ||
1120 | # CONFIG_MFD_TC6393XB is not set | ||
1121 | # CONFIG_PMIC_DA903X is not set | ||
1122 | # CONFIG_MFD_WM8400 is not set | ||
1123 | # CONFIG_MFD_WM831X is not set | ||
1124 | # CONFIG_MFD_WM8350_I2C is not set | ||
1125 | # CONFIG_MFD_PCF50633 is not set | ||
1126 | # CONFIG_MFD_MC13783 is not set | ||
1127 | # CONFIG_AB3100_CORE is not set | ||
1128 | # CONFIG_EZX_PCAP is not set | ||
1129 | CONFIG_REGULATOR=y | ||
1130 | CONFIG_REGULATOR_DEBUG=y | ||
1131 | CONFIG_REGULATOR_FIXED_VOLTAGE=y | ||
1132 | # CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set | ||
1133 | # CONFIG_REGULATOR_USERSPACE_CONSUMER is not set | ||
1134 | # CONFIG_REGULATOR_BQ24022 is not set | ||
1135 | # CONFIG_REGULATOR_MAX1586 is not set | ||
1136 | CONFIG_REGULATOR_MAX8660=y | ||
1137 | # CONFIG_REGULATOR_LP3971 is not set | ||
1138 | # CONFIG_REGULATOR_TPS65023 is not set | ||
1139 | # CONFIG_REGULATOR_TPS6507X is not set | ||
1140 | # CONFIG_MEDIA_SUPPORT is not set | ||
1141 | |||
1142 | # | ||
1143 | # Graphics support | ||
1144 | # | ||
1145 | # CONFIG_VGASTATE is not set | ||
1146 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
1147 | CONFIG_FB=y | ||
1148 | # CONFIG_FIRMWARE_EDID is not set | ||
1149 | # CONFIG_FB_DDC is not set | ||
1150 | # CONFIG_FB_BOOT_VESA_SUPPORT is not set | ||
1151 | CONFIG_FB_CFB_FILLRECT=y | ||
1152 | CONFIG_FB_CFB_COPYAREA=y | ||
1153 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
1154 | # CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set | ||
1155 | # CONFIG_FB_SYS_FILLRECT is not set | ||
1156 | # CONFIG_FB_SYS_COPYAREA is not set | ||
1157 | # CONFIG_FB_SYS_IMAGEBLIT is not set | ||
1158 | # CONFIG_FB_FOREIGN_ENDIAN is not set | ||
1159 | # CONFIG_FB_SYS_FOPS is not set | ||
1160 | # CONFIG_FB_SVGALIB is not set | ||
1161 | # CONFIG_FB_MACMODES is not set | ||
1162 | # CONFIG_FB_BACKLIGHT is not set | ||
1163 | # CONFIG_FB_MODE_HELPERS is not set | ||
1164 | # CONFIG_FB_TILEBLITTING is not set | ||
1165 | |||
1166 | # | ||
1167 | # Frame buffer hardware drivers | ||
1168 | # | ||
1169 | # CONFIG_FB_S1D13XXX is not set | ||
1170 | CONFIG_FB_PXA=y | ||
1171 | # CONFIG_FB_PXA_OVERLAY is not set | ||
1172 | # CONFIG_FB_PXA_SMARTPANEL is not set | ||
1173 | # CONFIG_FB_PXA_PARAMETERS is not set | ||
1174 | CONFIG_PXA3XX_GCU=y | ||
1175 | # CONFIG_FB_MBX is not set | ||
1176 | # CONFIG_FB_W100 is not set | ||
1177 | # CONFIG_FB_VIRTUAL is not set | ||
1178 | # CONFIG_FB_METRONOME is not set | ||
1179 | # CONFIG_FB_MB862XX is not set | ||
1180 | # CONFIG_FB_BROADSHEET is not set | ||
1181 | CONFIG_BACKLIGHT_LCD_SUPPORT=y | ||
1182 | # CONFIG_LCD_CLASS_DEVICE is not set | ||
1183 | CONFIG_BACKLIGHT_CLASS_DEVICE=y | ||
1184 | # CONFIG_BACKLIGHT_GENERIC is not set | ||
1185 | CONFIG_BACKLIGHT_PWM=y | ||
1186 | |||
1187 | # | ||
1188 | # Display device support | ||
1189 | # | ||
1190 | # CONFIG_DISPLAY_SUPPORT is not set | ||
1191 | |||
1192 | # | ||
1193 | # Console display driver support | ||
1194 | # | ||
1195 | # CONFIG_VGA_CONSOLE is not set | ||
1196 | CONFIG_DUMMY_CONSOLE=y | ||
1197 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
1198 | # CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set | ||
1199 | # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set | ||
1200 | # CONFIG_FONTS is not set | ||
1201 | CONFIG_FONT_8x8=y | ||
1202 | CONFIG_FONT_8x16=y | ||
1203 | CONFIG_LOGO=y | ||
1204 | # CONFIG_LOGO_LINUX_MONO is not set | ||
1205 | # CONFIG_LOGO_LINUX_VGA16 is not set | ||
1206 | # CONFIG_LOGO_LINUX_CLUT224 is not set | ||
1207 | CONFIG_LOGO_RAUMFELD_CLUT224=y | ||
1208 | CONFIG_SOUND=y | ||
1209 | # CONFIG_SOUND_OSS_CORE is not set | ||
1210 | CONFIG_SND=y | ||
1211 | CONFIG_SND_TIMER=y | ||
1212 | CONFIG_SND_PCM=y | ||
1213 | CONFIG_SND_JACK=y | ||
1214 | # CONFIG_SND_SEQUENCER is not set | ||
1215 | # CONFIG_SND_MIXER_OSS is not set | ||
1216 | # CONFIG_SND_PCM_OSS is not set | ||
1217 | # CONFIG_SND_DYNAMIC_MINORS is not set | ||
1218 | CONFIG_SND_SUPPORT_OLD_API=y | ||
1219 | CONFIG_SND_VERBOSE_PROCFS=y | ||
1220 | # CONFIG_SND_VERBOSE_PRINTK is not set | ||
1221 | # CONFIG_SND_DEBUG is not set | ||
1222 | # CONFIG_SND_RAWMIDI_SEQ is not set | ||
1223 | # CONFIG_SND_OPL3_LIB_SEQ is not set | ||
1224 | # CONFIG_SND_OPL4_LIB_SEQ is not set | ||
1225 | # CONFIG_SND_SBAWE_SEQ is not set | ||
1226 | # CONFIG_SND_EMU10K1_SEQ is not set | ||
1227 | # CONFIG_SND_DRIVERS is not set | ||
1228 | CONFIG_SND_ARM=y | ||
1229 | CONFIG_SND_PXA2XX_LIB=y | ||
1230 | # CONFIG_SND_PXA2XX_AC97 is not set | ||
1231 | CONFIG_SND_SPI=y | ||
1232 | # CONFIG_SND_USB is not set | ||
1233 | CONFIG_SND_SOC=y | ||
1234 | CONFIG_SND_PXA2XX_SOC=y | ||
1235 | CONFIG_SND_PXA_SOC_SSP=y | ||
1236 | CONFIG_SND_SOC_RAUMFELD=y | ||
1237 | CONFIG_SND_SOC_I2C_AND_SPI=y | ||
1238 | # CONFIG_SND_SOC_ALL_CODECS is not set | ||
1239 | CONFIG_SND_SOC_AK4104=y | ||
1240 | CONFIG_SND_SOC_CS4270=y | ||
1241 | # CONFIG_SOUND_PRIME is not set | ||
1242 | CONFIG_HID_SUPPORT=y | ||
1243 | CONFIG_HID=y | ||
1244 | # CONFIG_HIDRAW is not set | ||
1245 | |||
1246 | # | ||
1247 | # USB Input Devices | ||
1248 | # | ||
1249 | CONFIG_USB_HID=y | ||
1250 | # CONFIG_HID_PID is not set | ||
1251 | # CONFIG_USB_HIDDEV is not set | ||
1252 | |||
1253 | # | ||
1254 | # Special HID drivers | ||
1255 | # | ||
1256 | CONFIG_HID_A4TECH=y | ||
1257 | CONFIG_HID_APPLE=y | ||
1258 | CONFIG_HID_BELKIN=y | ||
1259 | CONFIG_HID_CHERRY=y | ||
1260 | CONFIG_HID_CHICONY=y | ||
1261 | CONFIG_HID_CYPRESS=y | ||
1262 | CONFIG_HID_DRAGONRISE=y | ||
1263 | # CONFIG_DRAGONRISE_FF is not set | ||
1264 | CONFIG_HID_EZKEY=y | ||
1265 | CONFIG_HID_KYE=y | ||
1266 | CONFIG_HID_GYRATION=y | ||
1267 | CONFIG_HID_TWINHAN=y | ||
1268 | CONFIG_HID_KENSINGTON=y | ||
1269 | CONFIG_HID_LOGITECH=y | ||
1270 | # CONFIG_LOGITECH_FF is not set | ||
1271 | # CONFIG_LOGIRUMBLEPAD2_FF is not set | ||
1272 | CONFIG_HID_MICROSOFT=y | ||
1273 | CONFIG_HID_MONTEREY=y | ||
1274 | CONFIG_HID_NTRIG=y | ||
1275 | CONFIG_HID_PANTHERLORD=y | ||
1276 | # CONFIG_PANTHERLORD_FF is not set | ||
1277 | CONFIG_HID_PETALYNX=y | ||
1278 | CONFIG_HID_SAMSUNG=y | ||
1279 | CONFIG_HID_SONY=y | ||
1280 | CONFIG_HID_SUNPLUS=y | ||
1281 | CONFIG_HID_GREENASIA=y | ||
1282 | # CONFIG_GREENASIA_FF is not set | ||
1283 | CONFIG_HID_SMARTJOYPLUS=y | ||
1284 | # CONFIG_SMARTJOYPLUS_FF is not set | ||
1285 | CONFIG_HID_TOPSEED=y | ||
1286 | CONFIG_HID_THRUSTMASTER=y | ||
1287 | # CONFIG_THRUSTMASTER_FF is not set | ||
1288 | CONFIG_HID_ZEROPLUS=y | ||
1289 | # CONFIG_ZEROPLUS_FF is not set | ||
1290 | CONFIG_USB_SUPPORT=y | ||
1291 | CONFIG_USB_ARCH_HAS_HCD=y | ||
1292 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
1293 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
1294 | CONFIG_USB=y | ||
1295 | CONFIG_USB_DEBUG=y | ||
1296 | CONFIG_USB_ANNOUNCE_NEW_DEVICES=y | ||
1297 | |||
1298 | # | ||
1299 | # Miscellaneous USB options | ||
1300 | # | ||
1301 | # CONFIG_USB_DEVICEFS is not set | ||
1302 | CONFIG_USB_DEVICE_CLASS=y | ||
1303 | # CONFIG_USB_DYNAMIC_MINORS is not set | ||
1304 | # CONFIG_USB_SUSPEND is not set | ||
1305 | # CONFIG_USB_OTG is not set | ||
1306 | CONFIG_USB_MON=y | ||
1307 | # CONFIG_USB_WUSB is not set | ||
1308 | # CONFIG_USB_WUSB_CBAF is not set | ||
1309 | |||
1310 | # | ||
1311 | # USB Host Controller Drivers | ||
1312 | # | ||
1313 | # CONFIG_USB_C67X00_HCD is not set | ||
1314 | # CONFIG_USB_OXU210HP_HCD is not set | ||
1315 | # CONFIG_USB_ISP116X_HCD is not set | ||
1316 | # CONFIG_USB_ISP1760_HCD is not set | ||
1317 | # CONFIG_USB_ISP1362_HCD is not set | ||
1318 | CONFIG_USB_OHCI_HCD=y | ||
1319 | # CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set | ||
1320 | # CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not set | ||
1321 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
1322 | # CONFIG_USB_SL811_HCD is not set | ||
1323 | # CONFIG_USB_R8A66597_HCD is not set | ||
1324 | # CONFIG_USB_HWA_HCD is not set | ||
1325 | # CONFIG_USB_MUSB_HDRC is not set | ||
1326 | |||
1327 | # | ||
1328 | # USB Device Class drivers | ||
1329 | # | ||
1330 | # CONFIG_USB_ACM is not set | ||
1331 | # CONFIG_USB_PRINTER is not set | ||
1332 | # CONFIG_USB_WDM is not set | ||
1333 | # CONFIG_USB_TMC is not set | ||
1334 | |||
1335 | # | ||
1336 | # NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may | ||
1337 | # | ||
1338 | |||
1339 | # | ||
1340 | # also be needed; see USB_STORAGE Help for more info | ||
1341 | # | ||
1342 | CONFIG_USB_STORAGE=y | ||
1343 | # CONFIG_USB_STORAGE_DEBUG is not set | ||
1344 | # CONFIG_USB_STORAGE_DATAFAB is not set | ||
1345 | CONFIG_USB_STORAGE_FREECOM=y | ||
1346 | CONFIG_USB_STORAGE_ISD200=y | ||
1347 | CONFIG_USB_STORAGE_USBAT=y | ||
1348 | CONFIG_USB_STORAGE_SDDR09=y | ||
1349 | CONFIG_USB_STORAGE_SDDR55=y | ||
1350 | # CONFIG_USB_STORAGE_JUMPSHOT is not set | ||
1351 | # CONFIG_USB_STORAGE_ALAUDA is not set | ||
1352 | # CONFIG_USB_STORAGE_ONETOUCH is not set | ||
1353 | # CONFIG_USB_STORAGE_KARMA is not set | ||
1354 | # CONFIG_USB_STORAGE_CYPRESS_ATACB is not set | ||
1355 | # CONFIG_USB_LIBUSUAL is not set | ||
1356 | |||
1357 | # | ||
1358 | # USB Imaging devices | ||
1359 | # | ||
1360 | # CONFIG_USB_MDC800 is not set | ||
1361 | # CONFIG_USB_MICROTEK is not set | ||
1362 | |||
1363 | # | ||
1364 | # USB port drivers | ||
1365 | # | ||
1366 | # CONFIG_USB_SERIAL is not set | ||
1367 | |||
1368 | # | ||
1369 | # USB Miscellaneous drivers | ||
1370 | # | ||
1371 | # CONFIG_USB_EMI62 is not set | ||
1372 | # CONFIG_USB_EMI26 is not set | ||
1373 | # CONFIG_USB_ADUTUX is not set | ||
1374 | # CONFIG_USB_SEVSEG is not set | ||
1375 | # CONFIG_USB_RIO500 is not set | ||
1376 | # CONFIG_USB_LEGOTOWER is not set | ||
1377 | # CONFIG_USB_LCD is not set | ||
1378 | # CONFIG_USB_BERRY_CHARGE is not set | ||
1379 | # CONFIG_USB_LED is not set | ||
1380 | # CONFIG_USB_CYPRESS_CY7C63 is not set | ||
1381 | # CONFIG_USB_CYTHERM is not set | ||
1382 | # CONFIG_USB_IDMOUSE is not set | ||
1383 | # CONFIG_USB_FTDI_ELAN is not set | ||
1384 | # CONFIG_USB_APPLEDISPLAY is not set | ||
1385 | # CONFIG_USB_LD is not set | ||
1386 | # CONFIG_USB_TRANCEVIBRATOR is not set | ||
1387 | # CONFIG_USB_IOWARRIOR is not set | ||
1388 | # CONFIG_USB_TEST is not set | ||
1389 | # CONFIG_USB_ISIGHTFW is not set | ||
1390 | # CONFIG_USB_VST is not set | ||
1391 | # CONFIG_USB_GADGET is not set | ||
1392 | |||
1393 | # | ||
1394 | # OTG and related infrastructure | ||
1395 | # | ||
1396 | # CONFIG_USB_GPIO_VBUS is not set | ||
1397 | # CONFIG_NOP_USB_XCEIV is not set | ||
1398 | CONFIG_MMC=y | ||
1399 | # CONFIG_MMC_DEBUG is not set | ||
1400 | # CONFIG_MMC_UNSAFE_RESUME is not set | ||
1401 | |||
1402 | # | ||
1403 | # MMC/SD/SDIO Card Drivers | ||
1404 | # | ||
1405 | CONFIG_MMC_BLOCK=y | ||
1406 | CONFIG_MMC_BLOCK_BOUNCE=y | ||
1407 | # CONFIG_SDIO_UART is not set | ||
1408 | # CONFIG_MMC_TEST is not set | ||
1409 | |||
1410 | # | ||
1411 | # MMC/SD/SDIO Host Controller Drivers | ||
1412 | # | ||
1413 | CONFIG_MMC_PXA=m | ||
1414 | # CONFIG_MMC_SDHCI is not set | ||
1415 | # CONFIG_MMC_AT91 is not set | ||
1416 | # CONFIG_MMC_ATMELMCI is not set | ||
1417 | # CONFIG_MMC_SPI is not set | ||
1418 | # CONFIG_MEMSTICK is not set | ||
1419 | CONFIG_NEW_LEDS=y | ||
1420 | CONFIG_LEDS_CLASS=y | ||
1421 | |||
1422 | # | ||
1423 | # LED drivers | ||
1424 | # | ||
1425 | # CONFIG_LEDS_PCA9532 is not set | ||
1426 | CONFIG_LEDS_GPIO=y | ||
1427 | CONFIG_LEDS_GPIO_PLATFORM=y | ||
1428 | # CONFIG_LEDS_LP3944 is not set | ||
1429 | # CONFIG_LEDS_PCA955X is not set | ||
1430 | # CONFIG_LEDS_DAC124S085 is not set | ||
1431 | # CONFIG_LEDS_PWM is not set | ||
1432 | # CONFIG_LEDS_BD2802 is not set | ||
1433 | CONFIG_LEDS_LT3593=y | ||
1434 | |||
1435 | # | ||
1436 | # LED Triggers | ||
1437 | # | ||
1438 | CONFIG_LEDS_TRIGGERS=y | ||
1439 | # CONFIG_LEDS_TRIGGER_TIMER is not set | ||
1440 | # CONFIG_LEDS_TRIGGER_HEARTBEAT is not set | ||
1441 | CONFIG_LEDS_TRIGGER_BACKLIGHT=y | ||
1442 | # CONFIG_LEDS_TRIGGER_GPIO is not set | ||
1443 | # CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set | ||
1444 | |||
1445 | # | ||
1446 | # iptables trigger is under Netfilter config (LED target) | ||
1447 | # | ||
1448 | # CONFIG_ACCESSIBILITY is not set | ||
1449 | CONFIG_RTC_LIB=y | ||
1450 | CONFIG_RTC_CLASS=y | ||
1451 | CONFIG_RTC_HCTOSYS=y | ||
1452 | CONFIG_RTC_HCTOSYS_DEVICE="rtc0" | ||
1453 | # CONFIG_RTC_DEBUG is not set | ||
1454 | |||
1455 | # | ||
1456 | # RTC interfaces | ||
1457 | # | ||
1458 | CONFIG_RTC_INTF_SYSFS=y | ||
1459 | CONFIG_RTC_INTF_PROC=y | ||
1460 | CONFIG_RTC_INTF_DEV=y | ||
1461 | # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set | ||
1462 | # CONFIG_RTC_DRV_TEST is not set | ||
1463 | |||
1464 | # | ||
1465 | # I2C RTC drivers | ||
1466 | # | ||
1467 | # CONFIG_RTC_DRV_DS1307 is not set | ||
1468 | # CONFIG_RTC_DRV_DS1374 is not set | ||
1469 | # CONFIG_RTC_DRV_DS1672 is not set | ||
1470 | # CONFIG_RTC_DRV_MAX6900 is not set | ||
1471 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
1472 | # CONFIG_RTC_DRV_ISL1208 is not set | ||
1473 | # CONFIG_RTC_DRV_X1205 is not set | ||
1474 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
1475 | # CONFIG_RTC_DRV_PCF8583 is not set | ||
1476 | # CONFIG_RTC_DRV_M41T80 is not set | ||
1477 | # CONFIG_RTC_DRV_S35390A is not set | ||
1478 | # CONFIG_RTC_DRV_FM3130 is not set | ||
1479 | # CONFIG_RTC_DRV_RX8581 is not set | ||
1480 | # CONFIG_RTC_DRV_RX8025 is not set | ||
1481 | |||
1482 | # | ||
1483 | # SPI RTC drivers | ||
1484 | # | ||
1485 | # CONFIG_RTC_DRV_M41T94 is not set | ||
1486 | # CONFIG_RTC_DRV_DS1305 is not set | ||
1487 | # CONFIG_RTC_DRV_DS1390 is not set | ||
1488 | # CONFIG_RTC_DRV_MAX6902 is not set | ||
1489 | # CONFIG_RTC_DRV_R9701 is not set | ||
1490 | # CONFIG_RTC_DRV_RS5C348 is not set | ||
1491 | # CONFIG_RTC_DRV_DS3234 is not set | ||
1492 | # CONFIG_RTC_DRV_PCF2123 is not set | ||
1493 | |||
1494 | # | ||
1495 | # Platform RTC drivers | ||
1496 | # | ||
1497 | # CONFIG_RTC_DRV_CMOS is not set | ||
1498 | # CONFIG_RTC_DRV_DS1286 is not set | ||
1499 | # CONFIG_RTC_DRV_DS1511 is not set | ||
1500 | # CONFIG_RTC_DRV_DS1553 is not set | ||
1501 | # CONFIG_RTC_DRV_DS1742 is not set | ||
1502 | # CONFIG_RTC_DRV_STK17TA8 is not set | ||
1503 | # CONFIG_RTC_DRV_M48T86 is not set | ||
1504 | # CONFIG_RTC_DRV_M48T35 is not set | ||
1505 | # CONFIG_RTC_DRV_M48T59 is not set | ||
1506 | # CONFIG_RTC_DRV_BQ4802 is not set | ||
1507 | # CONFIG_RTC_DRV_V3020 is not set | ||
1508 | |||
1509 | # | ||
1510 | # on-CPU RTC drivers | ||
1511 | # | ||
1512 | # CONFIG_RTC_DRV_SA1100 is not set | ||
1513 | CONFIG_RTC_DRV_PXA=y | ||
1514 | CONFIG_DMADEVICES=y | ||
1515 | |||
1516 | # | ||
1517 | # DMA Devices | ||
1518 | # | ||
1519 | # CONFIG_AUXDISPLAY is not set | ||
1520 | CONFIG_UIO=y | ||
1521 | # CONFIG_UIO_PDRV is not set | ||
1522 | # CONFIG_UIO_PDRV_GENIRQ is not set | ||
1523 | # CONFIG_UIO_SMX is not set | ||
1524 | # CONFIG_UIO_SERCOS3 is not set | ||
1525 | |||
1526 | # | ||
1527 | # TI VLYNQ | ||
1528 | # | ||
1529 | # CONFIG_STAGING is not set | ||
1530 | |||
1531 | # | ||
1532 | # File systems | ||
1533 | # | ||
1534 | CONFIG_EXT2_FS=y | ||
1535 | # CONFIG_EXT2_FS_XATTR is not set | ||
1536 | CONFIG_EXT2_FS_XIP=y | ||
1537 | CONFIG_EXT3_FS=y | ||
1538 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
1539 | CONFIG_EXT3_FS_XATTR=y | ||
1540 | # CONFIG_EXT3_FS_POSIX_ACL is not set | ||
1541 | # CONFIG_EXT3_FS_SECURITY is not set | ||
1542 | # CONFIG_EXT4_FS is not set | ||
1543 | CONFIG_FS_XIP=y | ||
1544 | CONFIG_JBD=y | ||
1545 | CONFIG_FS_MBCACHE=y | ||
1546 | # CONFIG_REISERFS_FS is not set | ||
1547 | # CONFIG_JFS_FS is not set | ||
1548 | # CONFIG_FS_POSIX_ACL is not set | ||
1549 | # CONFIG_XFS_FS is not set | ||
1550 | # CONFIG_OCFS2_FS is not set | ||
1551 | # CONFIG_BTRFS_FS is not set | ||
1552 | # CONFIG_NILFS2_FS is not set | ||
1553 | CONFIG_FILE_LOCKING=y | ||
1554 | CONFIG_FSNOTIFY=y | ||
1555 | CONFIG_DNOTIFY=y | ||
1556 | CONFIG_INOTIFY=y | ||
1557 | CONFIG_INOTIFY_USER=y | ||
1558 | # CONFIG_QUOTA is not set | ||
1559 | # CONFIG_AUTOFS_FS is not set | ||
1560 | # CONFIG_AUTOFS4_FS is not set | ||
1561 | # CONFIG_FUSE_FS is not set | ||
1562 | |||
1563 | # | ||
1564 | # Caches | ||
1565 | # | ||
1566 | CONFIG_FSCACHE=y | ||
1567 | CONFIG_FSCACHE_STATS=y | ||
1568 | # CONFIG_FSCACHE_HISTOGRAM is not set | ||
1569 | # CONFIG_FSCACHE_DEBUG is not set | ||
1570 | CONFIG_CACHEFILES=y | ||
1571 | # CONFIG_CACHEFILES_DEBUG is not set | ||
1572 | # CONFIG_CACHEFILES_HISTOGRAM is not set | ||
1573 | |||
1574 | # | ||
1575 | # CD-ROM/DVD Filesystems | ||
1576 | # | ||
1577 | # CONFIG_ISO9660_FS is not set | ||
1578 | # CONFIG_UDF_FS is not set | ||
1579 | |||
1580 | # | ||
1581 | # DOS/FAT/NT Filesystems | ||
1582 | # | ||
1583 | CONFIG_FAT_FS=y | ||
1584 | CONFIG_MSDOS_FS=y | ||
1585 | CONFIG_VFAT_FS=y | ||
1586 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
1587 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
1588 | # CONFIG_NTFS_FS is not set | ||
1589 | |||
1590 | # | ||
1591 | # Pseudo filesystems | ||
1592 | # | ||
1593 | CONFIG_PROC_FS=y | ||
1594 | CONFIG_PROC_SYSCTL=y | ||
1595 | CONFIG_PROC_PAGE_MONITOR=y | ||
1596 | CONFIG_SYSFS=y | ||
1597 | CONFIG_TMPFS=y | ||
1598 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
1599 | # CONFIG_HUGETLB_PAGE is not set | ||
1600 | # CONFIG_CONFIGFS_FS is not set | ||
1601 | CONFIG_MISC_FILESYSTEMS=y | ||
1602 | # CONFIG_ADFS_FS is not set | ||
1603 | # CONFIG_AFFS_FS is not set | ||
1604 | # CONFIG_HFS_FS is not set | ||
1605 | # CONFIG_HFSPLUS_FS is not set | ||
1606 | # CONFIG_BEFS_FS is not set | ||
1607 | # CONFIG_BFS_FS is not set | ||
1608 | # CONFIG_EFS_FS is not set | ||
1609 | # CONFIG_JFFS2_FS is not set | ||
1610 | CONFIG_UBIFS_FS=y | ||
1611 | # CONFIG_UBIFS_FS_XATTR is not set | ||
1612 | # CONFIG_UBIFS_FS_ADVANCED_COMPR is not set | ||
1613 | CONFIG_UBIFS_FS_LZO=y | ||
1614 | CONFIG_UBIFS_FS_ZLIB=y | ||
1615 | # CONFIG_UBIFS_FS_DEBUG is not set | ||
1616 | # CONFIG_CRAMFS is not set | ||
1617 | # CONFIG_SQUASHFS is not set | ||
1618 | # CONFIG_VXFS_FS is not set | ||
1619 | # CONFIG_MINIX_FS is not set | ||
1620 | # CONFIG_OMFS_FS is not set | ||
1621 | # CONFIG_HPFS_FS is not set | ||
1622 | # CONFIG_QNX4FS_FS is not set | ||
1623 | # CONFIG_ROMFS_FS is not set | ||
1624 | # CONFIG_SYSV_FS is not set | ||
1625 | # CONFIG_UFS_FS is not set | ||
1626 | CONFIG_NETWORK_FILESYSTEMS=y | ||
1627 | CONFIG_NFS_FS=y | ||
1628 | CONFIG_NFS_V3=y | ||
1629 | # CONFIG_NFS_V3_ACL is not set | ||
1630 | # CONFIG_NFS_V4 is not set | ||
1631 | CONFIG_ROOT_NFS=y | ||
1632 | CONFIG_NFS_FSCACHE=y | ||
1633 | # CONFIG_NFSD is not set | ||
1634 | CONFIG_LOCKD=y | ||
1635 | CONFIG_LOCKD_V4=y | ||
1636 | CONFIG_NFS_COMMON=y | ||
1637 | CONFIG_SUNRPC=y | ||
1638 | # CONFIG_RPCSEC_GSS_KRB5 is not set | ||
1639 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
1640 | # CONFIG_SMB_FS is not set | ||
1641 | # CONFIG_CIFS is not set | ||
1642 | # CONFIG_NCP_FS is not set | ||
1643 | # CONFIG_CODA_FS is not set | ||
1644 | # CONFIG_AFS_FS is not set | ||
1645 | |||
1646 | # | ||
1647 | # Partition Types | ||
1648 | # | ||
1649 | # CONFIG_PARTITION_ADVANCED is not set | ||
1650 | CONFIG_MSDOS_PARTITION=y | ||
1651 | CONFIG_NLS=y | ||
1652 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
1653 | CONFIG_NLS_CODEPAGE_437=y | ||
1654 | CONFIG_NLS_CODEPAGE_737=y | ||
1655 | CONFIG_NLS_CODEPAGE_775=y | ||
1656 | CONFIG_NLS_CODEPAGE_850=y | ||
1657 | CONFIG_NLS_CODEPAGE_852=y | ||
1658 | CONFIG_NLS_CODEPAGE_855=y | ||
1659 | CONFIG_NLS_CODEPAGE_857=y | ||
1660 | CONFIG_NLS_CODEPAGE_860=y | ||
1661 | CONFIG_NLS_CODEPAGE_861=y | ||
1662 | CONFIG_NLS_CODEPAGE_862=y | ||
1663 | CONFIG_NLS_CODEPAGE_863=y | ||
1664 | CONFIG_NLS_CODEPAGE_864=y | ||
1665 | CONFIG_NLS_CODEPAGE_865=y | ||
1666 | CONFIG_NLS_CODEPAGE_866=y | ||
1667 | CONFIG_NLS_CODEPAGE_869=y | ||
1668 | CONFIG_NLS_CODEPAGE_936=y | ||
1669 | CONFIG_NLS_CODEPAGE_950=y | ||
1670 | CONFIG_NLS_CODEPAGE_932=y | ||
1671 | CONFIG_NLS_CODEPAGE_949=y | ||
1672 | CONFIG_NLS_CODEPAGE_874=y | ||
1673 | CONFIG_NLS_ISO8859_8=y | ||
1674 | CONFIG_NLS_CODEPAGE_1250=y | ||
1675 | CONFIG_NLS_CODEPAGE_1251=y | ||
1676 | CONFIG_NLS_ASCII=y | ||
1677 | CONFIG_NLS_ISO8859_1=y | ||
1678 | CONFIG_NLS_ISO8859_2=y | ||
1679 | CONFIG_NLS_ISO8859_3=y | ||
1680 | CONFIG_NLS_ISO8859_4=y | ||
1681 | CONFIG_NLS_ISO8859_5=y | ||
1682 | CONFIG_NLS_ISO8859_6=y | ||
1683 | CONFIG_NLS_ISO8859_7=y | ||
1684 | CONFIG_NLS_ISO8859_9=y | ||
1685 | CONFIG_NLS_ISO8859_13=y | ||
1686 | CONFIG_NLS_ISO8859_14=y | ||
1687 | CONFIG_NLS_ISO8859_15=y | ||
1688 | CONFIG_NLS_KOI8_R=y | ||
1689 | CONFIG_NLS_KOI8_U=y | ||
1690 | CONFIG_NLS_UTF8=y | ||
1691 | # CONFIG_DLM is not set | ||
1692 | |||
1693 | # | ||
1694 | # Kernel hacking | ||
1695 | # | ||
1696 | CONFIG_PRINTK_TIME=y | ||
1697 | CONFIG_ENABLE_WARN_DEPRECATED=y | ||
1698 | CONFIG_ENABLE_MUST_CHECK=y | ||
1699 | CONFIG_FRAME_WARN=1024 | ||
1700 | # CONFIG_MAGIC_SYSRQ is not set | ||
1701 | # CONFIG_STRIP_ASM_SYMS is not set | ||
1702 | # CONFIG_UNUSED_SYMBOLS is not set | ||
1703 | # CONFIG_DEBUG_FS is not set | ||
1704 | # CONFIG_HEADERS_CHECK is not set | ||
1705 | CONFIG_DEBUG_KERNEL=y | ||
1706 | # CONFIG_DEBUG_SHIRQ is not set | ||
1707 | CONFIG_DETECT_SOFTLOCKUP=y | ||
1708 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set | ||
1709 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 | ||
1710 | CONFIG_DETECT_HUNG_TASK=y | ||
1711 | # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set | ||
1712 | CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 | ||
1713 | CONFIG_SCHED_DEBUG=y | ||
1714 | # CONFIG_SCHEDSTATS is not set | ||
1715 | # CONFIG_TIMER_STATS is not set | ||
1716 | # CONFIG_DEBUG_OBJECTS is not set | ||
1717 | # CONFIG_SLUB_DEBUG_ON is not set | ||
1718 | # CONFIG_SLUB_STATS is not set | ||
1719 | # CONFIG_DEBUG_KMEMLEAK is not set | ||
1720 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
1721 | # CONFIG_RT_MUTEX_TESTER is not set | ||
1722 | # CONFIG_DEBUG_SPINLOCK is not set | ||
1723 | # CONFIG_DEBUG_MUTEXES is not set | ||
1724 | # CONFIG_DEBUG_LOCK_ALLOC is not set | ||
1725 | # CONFIG_PROVE_LOCKING is not set | ||
1726 | # CONFIG_LOCK_STAT is not set | ||
1727 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
1728 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
1729 | # CONFIG_DEBUG_KOBJECT is not set | ||
1730 | CONFIG_DEBUG_BUGVERBOSE=y | ||
1731 | CONFIG_DEBUG_INFO=y | ||
1732 | # CONFIG_DEBUG_VM is not set | ||
1733 | # CONFIG_DEBUG_WRITECOUNT is not set | ||
1734 | CONFIG_DEBUG_MEMORY_INIT=y | ||
1735 | # CONFIG_DEBUG_LIST is not set | ||
1736 | # CONFIG_DEBUG_SG is not set | ||
1737 | # CONFIG_DEBUG_NOTIFIERS is not set | ||
1738 | # CONFIG_DEBUG_CREDENTIALS is not set | ||
1739 | # CONFIG_BOOT_PRINTK_DELAY is not set | ||
1740 | # CONFIG_RCU_TORTURE_TEST is not set | ||
1741 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | ||
1742 | # CONFIG_BACKTRACE_SELF_TEST is not set | ||
1743 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set | ||
1744 | # CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set | ||
1745 | # CONFIG_FAULT_INJECTION is not set | ||
1746 | # CONFIG_LATENCYTOP is not set | ||
1747 | # CONFIG_SYSCTL_SYSCALL_CHECK is not set | ||
1748 | # CONFIG_PAGE_POISONING is not set | ||
1749 | CONFIG_HAVE_FUNCTION_TRACER=y | ||
1750 | CONFIG_TRACING_SUPPORT=y | ||
1751 | CONFIG_FTRACE=y | ||
1752 | # CONFIG_FUNCTION_TRACER is not set | ||
1753 | # CONFIG_IRQSOFF_TRACER is not set | ||
1754 | # CONFIG_SCHED_TRACER is not set | ||
1755 | # CONFIG_ENABLE_DEFAULT_TRACERS is not set | ||
1756 | # CONFIG_BOOT_TRACER is not set | ||
1757 | CONFIG_BRANCH_PROFILE_NONE=y | ||
1758 | # CONFIG_PROFILE_ANNOTATED_BRANCHES is not set | ||
1759 | # CONFIG_PROFILE_ALL_BRANCHES is not set | ||
1760 | # CONFIG_STACK_TRACER is not set | ||
1761 | # CONFIG_KMEMTRACE is not set | ||
1762 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1763 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1764 | # CONFIG_SAMPLES is not set | ||
1765 | CONFIG_HAVE_ARCH_KGDB=y | ||
1766 | # CONFIG_KGDB is not set | ||
1767 | CONFIG_ARM_UNWIND=y | ||
1768 | CONFIG_DEBUG_USER=y | ||
1769 | CONFIG_DEBUG_ERRORS=y | ||
1770 | # CONFIG_DEBUG_STACK_USAGE is not set | ||
1771 | CONFIG_DEBUG_LL=y | ||
1772 | # CONFIG_DEBUG_ICEDCC is not set | ||
1773 | |||
1774 | # | ||
1775 | # Security options | ||
1776 | # | ||
1777 | # CONFIG_KEYS is not set | ||
1778 | # CONFIG_SECURITY is not set | ||
1779 | # CONFIG_SECURITYFS is not set | ||
1780 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | ||
1781 | CONFIG_CRYPTO=y | ||
1782 | |||
1783 | # | ||
1784 | # Crypto core or helper | ||
1785 | # | ||
1786 | CONFIG_CRYPTO_ALGAPI=y | ||
1787 | CONFIG_CRYPTO_ALGAPI2=y | ||
1788 | CONFIG_CRYPTO_AEAD2=y | ||
1789 | CONFIG_CRYPTO_BLKCIPHER=y | ||
1790 | CONFIG_CRYPTO_BLKCIPHER2=y | ||
1791 | CONFIG_CRYPTO_HASH2=y | ||
1792 | CONFIG_CRYPTO_RNG2=y | ||
1793 | CONFIG_CRYPTO_PCOMP=y | ||
1794 | CONFIG_CRYPTO_MANAGER=y | ||
1795 | CONFIG_CRYPTO_MANAGER2=y | ||
1796 | # CONFIG_CRYPTO_GF128MUL is not set | ||
1797 | # CONFIG_CRYPTO_NULL is not set | ||
1798 | CONFIG_CRYPTO_WORKQUEUE=y | ||
1799 | # CONFIG_CRYPTO_CRYPTD is not set | ||
1800 | # CONFIG_CRYPTO_AUTHENC is not set | ||
1801 | # CONFIG_CRYPTO_TEST is not set | ||
1802 | |||
1803 | # | ||
1804 | # Authenticated Encryption with Associated Data | ||
1805 | # | ||
1806 | # CONFIG_CRYPTO_CCM is not set | ||
1807 | # CONFIG_CRYPTO_GCM is not set | ||
1808 | # CONFIG_CRYPTO_SEQIV is not set | ||
1809 | |||
1810 | # | ||
1811 | # Block modes | ||
1812 | # | ||
1813 | # CONFIG_CRYPTO_CBC is not set | ||
1814 | # CONFIG_CRYPTO_CTR is not set | ||
1815 | # CONFIG_CRYPTO_CTS is not set | ||
1816 | CONFIG_CRYPTO_ECB=y | ||
1817 | # CONFIG_CRYPTO_LRW is not set | ||
1818 | # CONFIG_CRYPTO_PCBC is not set | ||
1819 | # CONFIG_CRYPTO_XTS is not set | ||
1820 | |||
1821 | # | ||
1822 | # Hash modes | ||
1823 | # | ||
1824 | # CONFIG_CRYPTO_HMAC is not set | ||
1825 | # CONFIG_CRYPTO_XCBC is not set | ||
1826 | # CONFIG_CRYPTO_VMAC is not set | ||
1827 | |||
1828 | # | ||
1829 | # Digest | ||
1830 | # | ||
1831 | # CONFIG_CRYPTO_CRC32C is not set | ||
1832 | # CONFIG_CRYPTO_GHASH is not set | ||
1833 | # CONFIG_CRYPTO_MD4 is not set | ||
1834 | # CONFIG_CRYPTO_MD5 is not set | ||
1835 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
1836 | # CONFIG_CRYPTO_RMD128 is not set | ||
1837 | # CONFIG_CRYPTO_RMD160 is not set | ||
1838 | # CONFIG_CRYPTO_RMD256 is not set | ||
1839 | # CONFIG_CRYPTO_RMD320 is not set | ||
1840 | # CONFIG_CRYPTO_SHA1 is not set | ||
1841 | # CONFIG_CRYPTO_SHA256 is not set | ||
1842 | # CONFIG_CRYPTO_SHA512 is not set | ||
1843 | # CONFIG_CRYPTO_TGR192 is not set | ||
1844 | # CONFIG_CRYPTO_WP512 is not set | ||
1845 | |||
1846 | # | ||
1847 | # Ciphers | ||
1848 | # | ||
1849 | CONFIG_CRYPTO_AES=y | ||
1850 | # CONFIG_CRYPTO_ANUBIS is not set | ||
1851 | CONFIG_CRYPTO_ARC4=y | ||
1852 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
1853 | # CONFIG_CRYPTO_CAMELLIA is not set | ||
1854 | # CONFIG_CRYPTO_CAST5 is not set | ||
1855 | # CONFIG_CRYPTO_CAST6 is not set | ||
1856 | # CONFIG_CRYPTO_DES is not set | ||
1857 | # CONFIG_CRYPTO_FCRYPT is not set | ||
1858 | # CONFIG_CRYPTO_KHAZAD is not set | ||
1859 | # CONFIG_CRYPTO_SALSA20 is not set | ||
1860 | # CONFIG_CRYPTO_SEED is not set | ||
1861 | # CONFIG_CRYPTO_SERPENT is not set | ||
1862 | # CONFIG_CRYPTO_TEA is not set | ||
1863 | # CONFIG_CRYPTO_TWOFISH is not set | ||
1864 | |||
1865 | # | ||
1866 | # Compression | ||
1867 | # | ||
1868 | CONFIG_CRYPTO_DEFLATE=y | ||
1869 | # CONFIG_CRYPTO_ZLIB is not set | ||
1870 | CONFIG_CRYPTO_LZO=y | ||
1871 | |||
1872 | # | ||
1873 | # Random Number Generation | ||
1874 | # | ||
1875 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | ||
1876 | # CONFIG_CRYPTO_HW is not set | ||
1877 | # CONFIG_BINARY_PRINTF is not set | ||
1878 | |||
1879 | # | ||
1880 | # Library routines | ||
1881 | # | ||
1882 | CONFIG_BITREVERSE=y | ||
1883 | CONFIG_GENERIC_FIND_LAST_BIT=y | ||
1884 | # CONFIG_CRC_CCITT is not set | ||
1885 | CONFIG_CRC16=y | ||
1886 | # CONFIG_CRC_T10DIF is not set | ||
1887 | # CONFIG_CRC_ITU_T is not set | ||
1888 | CONFIG_CRC32=y | ||
1889 | # CONFIG_CRC7 is not set | ||
1890 | # CONFIG_LIBCRC32C is not set | ||
1891 | CONFIG_ZLIB_INFLATE=y | ||
1892 | CONFIG_ZLIB_DEFLATE=y | ||
1893 | CONFIG_LZO_COMPRESS=y | ||
1894 | CONFIG_LZO_DECOMPRESS=y | ||
1895 | CONFIG_HAS_IOMEM=y | ||
1896 | CONFIG_HAS_IOPORT=y | ||
1897 | CONFIG_HAS_DMA=y | ||
1898 | CONFIG_NLATTR=y | ||
diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h index 730aefcfbee..8113bb5fb66 100644 --- a/arch/arm/include/asm/cacheflush.h +++ b/arch/arm/include/asm/cacheflush.h | |||
@@ -42,7 +42,8 @@ | |||
42 | #endif | 42 | #endif |
43 | 43 | ||
44 | #if defined(CONFIG_CPU_ARM920T) || defined(CONFIG_CPU_ARM922T) || \ | 44 | #if defined(CONFIG_CPU_ARM920T) || defined(CONFIG_CPU_ARM922T) || \ |
45 | defined(CONFIG_CPU_ARM925T) || defined(CONFIG_CPU_ARM1020) | 45 | defined(CONFIG_CPU_ARM925T) || defined(CONFIG_CPU_ARM1020) || \ |
46 | defined(CONFIG_CPU_ARM1026) | ||
46 | # define MULTI_CACHE 1 | 47 | # define MULTI_CACHE 1 |
47 | #endif | 48 | #endif |
48 | 49 | ||
@@ -154,16 +155,16 @@ | |||
154 | * Please note that the implementation of these, and the required | 155 | * Please note that the implementation of these, and the required |
155 | * effects are cache-type (VIVT/VIPT/PIPT) specific. | 156 | * effects are cache-type (VIVT/VIPT/PIPT) specific. |
156 | * | 157 | * |
157 | * flush_cache_kern_all() | 158 | * flush_kern_all() |
158 | * | 159 | * |
159 | * Unconditionally clean and invalidate the entire cache. | 160 | * Unconditionally clean and invalidate the entire cache. |
160 | * | 161 | * |
161 | * flush_cache_user_mm(mm) | 162 | * flush_user_all() |
162 | * | 163 | * |
163 | * Clean and invalidate all user space cache entries | 164 | * Clean and invalidate all user space cache entries |
164 | * before a change of page tables. | 165 | * before a change of page tables. |
165 | * | 166 | * |
166 | * flush_cache_user_range(start, end, flags) | 167 | * flush_user_range(start, end, flags) |
167 | * | 168 | * |
168 | * Clean and invalidate a range of cache entries in the | 169 | * Clean and invalidate a range of cache entries in the |
169 | * specified address space before a change of page tables. | 170 | * specified address space before a change of page tables. |
@@ -179,6 +180,20 @@ | |||
179 | * - start - virtual start address | 180 | * - start - virtual start address |
180 | * - end - virtual end address | 181 | * - end - virtual end address |
181 | * | 182 | * |
183 | * coherent_user_range(start, end) | ||
184 | * | ||
185 | * Ensure coherency between the Icache and the Dcache in the | ||
186 | * region described by start, end. If you have non-snooping | ||
187 | * Harvard caches, you need to implement this function. | ||
188 | * - start - virtual start address | ||
189 | * - end - virtual end address | ||
190 | * | ||
191 | * flush_kern_dcache_area(kaddr, size) | ||
192 | * | ||
193 | * Ensure that the data held in page is written back. | ||
194 | * - kaddr - page address | ||
195 | * - size - region size | ||
196 | * | ||
182 | * DMA Cache Coherency | 197 | * DMA Cache Coherency |
183 | * =================== | 198 | * =================== |
184 | * | 199 | * |
diff --git a/arch/arm/include/asm/hardware/it8152.h b/arch/arm/include/asm/hardware/it8152.h index 74b5fff7f57..6700c7fc7eb 100644 --- a/arch/arm/include/asm/hardware/it8152.h +++ b/arch/arm/include/asm/hardware/it8152.h | |||
@@ -75,6 +75,18 @@ extern unsigned long it8152_base_address; | |||
75 | IT8152_PD_IRQ(1) USB (USBR) | 75 | IT8152_PD_IRQ(1) USB (USBR) |
76 | IT8152_PD_IRQ(0) Audio controller (ACR) | 76 | IT8152_PD_IRQ(0) Audio controller (ACR) |
77 | */ | 77 | */ |
78 | #define IT8152_IRQ(x) (IRQ_BOARD_END + (x)) | ||
79 | |||
80 | /* IRQ-sources in 3 groups - local devices, LPC (serial), and external PCI */ | ||
81 | #define IT8152_LD_IRQ_COUNT 9 | ||
82 | #define IT8152_LP_IRQ_COUNT 16 | ||
83 | #define IT8152_PD_IRQ_COUNT 15 | ||
84 | |||
85 | /* Priorities: */ | ||
86 | #define IT8152_PD_IRQ(i) IT8152_IRQ(i) | ||
87 | #define IT8152_LP_IRQ(i) (IT8152_IRQ(i) + IT8152_PD_IRQ_COUNT) | ||
88 | #define IT8152_LD_IRQ(i) (IT8152_IRQ(i) + IT8152_PD_IRQ_COUNT + IT8152_LP_IRQ_COUNT) | ||
89 | |||
78 | /* frequently used interrupts */ | 90 | /* frequently used interrupts */ |
79 | #define IT8152_PCISERR IT8152_PD_IRQ(14) | 91 | #define IT8152_PCISERR IT8152_PD_IRQ(14) |
80 | #define IT8152_H2PTADR IT8152_PD_IRQ(13) | 92 | #define IT8152_H2PTADR IT8152_PD_IRQ(13) |
diff --git a/arch/arm/include/asm/hardware/locomo.h b/arch/arm/include/asm/hardware/locomo.h index 954b1be991b..74e51d6bd93 100644 --- a/arch/arm/include/asm/hardware/locomo.h +++ b/arch/arm/include/asm/hardware/locomo.h | |||
@@ -214,4 +214,8 @@ void locomo_m62332_senddata(struct locomo_dev *ldev, unsigned int dac_data, int | |||
214 | /* Frontlight control */ | 214 | /* Frontlight control */ |
215 | void locomo_frontlight_set(struct locomo_dev *dev, int duty, int vr, int bpwf); | 215 | void locomo_frontlight_set(struct locomo_dev *dev, int duty, int vr, int bpwf); |
216 | 216 | ||
217 | struct locomo_platform_data { | ||
218 | int irq_base; /* IRQ base for cascaded on-chip IRQs */ | ||
219 | }; | ||
220 | |||
217 | #endif | 221 | #endif |
diff --git a/arch/arm/include/asm/hardware/sa1111.h b/arch/arm/include/asm/hardware/sa1111.h index 5da2595759e..92ed254c175 100644 --- a/arch/arm/include/asm/hardware/sa1111.h +++ b/arch/arm/include/asm/hardware/sa1111.h | |||
@@ -578,4 +578,8 @@ void sa1111_set_io_dir(struct sa1111_dev *sadev, unsigned int bits, unsigned int | |||
578 | void sa1111_set_io(struct sa1111_dev *sadev, unsigned int bits, unsigned int v); | 578 | void sa1111_set_io(struct sa1111_dev *sadev, unsigned int bits, unsigned int v); |
579 | void sa1111_set_sleep_io(struct sa1111_dev *sadev, unsigned int bits, unsigned int v); | 579 | void sa1111_set_sleep_io(struct sa1111_dev *sadev, unsigned int bits, unsigned int v); |
580 | 580 | ||
581 | struct sa1111_platform_data { | ||
582 | int irq_base; /* base for cascaded on-chip IRQs */ | ||
583 | }; | ||
584 | |||
581 | #endif /* _ASM_ARCH_SA1111 */ | 585 | #endif /* _ASM_ARCH_SA1111 */ |
diff --git a/arch/arm/kernel/debug.S b/arch/arm/kernel/debug.S index b121b6053cc..5c91addcaeb 100644 --- a/arch/arm/kernel/debug.S +++ b/arch/arm/kernel/debug.S | |||
@@ -49,6 +49,26 @@ | |||
49 | 1002: | 49 | 1002: |
50 | .endm | 50 | .endm |
51 | 51 | ||
52 | #elif defined(CONFIG_CPU_V7) | ||
53 | |||
54 | .macro addruart, rx | ||
55 | .endm | ||
56 | |||
57 | .macro senduart, rd, rx | ||
58 | mcr p14, 0, \rd, c0, c5, 0 | ||
59 | .endm | ||
60 | |||
61 | .macro busyuart, rd, rx | ||
62 | busy: mrc p14, 0, pc, c0, c1, 0 | ||
63 | bcs busy | ||
64 | .endm | ||
65 | |||
66 | .macro waituart, rd, rx | ||
67 | wait: mrc p14, 0, pc, c0, c1, 0 | ||
68 | bcs wait | ||
69 | |||
70 | .endm | ||
71 | |||
52 | #elif defined(CONFIG_CPU_XSCALE) | 72 | #elif defined(CONFIG_CPU_XSCALE) |
53 | 73 | ||
54 | .macro addruart, rx | 74 | .macro addruart, rx |
diff --git a/arch/arm/kernel/elf.c b/arch/arm/kernel/elf.c index 950391f194c..d4a0da1e48f 100644 --- a/arch/arm/kernel/elf.c +++ b/arch/arm/kernel/elf.c | |||
@@ -78,15 +78,6 @@ int arm_elf_read_implies_exec(const struct elf32_hdr *x, int executable_stack) | |||
78 | return 1; | 78 | return 1; |
79 | if (cpu_architecture() < CPU_ARCH_ARMv6) | 79 | if (cpu_architecture() < CPU_ARCH_ARMv6) |
80 | return 1; | 80 | return 1; |
81 | #if !defined(CONFIG_AEABI) || defined(CONFIG_OABI_COMPAT) | ||
82 | /* | ||
83 | * If we have support for OABI programs, we can never allow NX | ||
84 | * support - our signal syscall restart mechanism relies upon | ||
85 | * being able to execute code placed on the user stack. | ||
86 | */ | ||
87 | return 1; | ||
88 | #else | ||
89 | return 0; | 81 | return 0; |
90 | #endif | ||
91 | } | 82 | } |
92 | EXPORT_SYMBOL(arm_elf_read_implies_exec); | 83 | EXPORT_SYMBOL(arm_elf_read_implies_exec); |
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index c6c57b640b6..621acad8ea4 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c | |||
@@ -102,6 +102,7 @@ struct cpu_cache_fns cpu_cache; | |||
102 | #endif | 102 | #endif |
103 | #ifdef CONFIG_OUTER_CACHE | 103 | #ifdef CONFIG_OUTER_CACHE |
104 | struct outer_cache_fns outer_cache; | 104 | struct outer_cache_fns outer_cache; |
105 | EXPORT_SYMBOL(outer_cache); | ||
105 | #endif | 106 | #endif |
106 | 107 | ||
107 | struct stack { | 108 | struct stack { |
diff --git a/arch/arm/mach-at91/at91rm9200_time.c b/arch/arm/mach-at91/at91rm9200_time.c index 309f3511aa2..2500f41d8d2 100644 --- a/arch/arm/mach-at91/at91rm9200_time.c +++ b/arch/arm/mach-at91/at91rm9200_time.c | |||
@@ -58,6 +58,12 @@ static irqreturn_t at91rm9200_timer_interrupt(int irq, void *dev_id) | |||
58 | { | 58 | { |
59 | u32 sr = at91_sys_read(AT91_ST_SR) & irqmask; | 59 | u32 sr = at91_sys_read(AT91_ST_SR) & irqmask; |
60 | 60 | ||
61 | /* | ||
62 | * irqs should be disabled here, but as the irq is shared they are only | ||
63 | * guaranteed to be off if the timer irq is registered first. | ||
64 | */ | ||
65 | WARN_ON_ONCE(!irqs_disabled()); | ||
66 | |||
61 | /* simulate "oneshot" timer with alarm */ | 67 | /* simulate "oneshot" timer with alarm */ |
62 | if (sr & AT91_ST_ALMS) { | 68 | if (sr & AT91_ST_ALMS) { |
63 | clkevt.event_handler(&clkevt); | 69 | clkevt.event_handler(&clkevt); |
@@ -132,24 +138,11 @@ clkevt32k_mode(enum clock_event_mode mode, struct clock_event_device *dev) | |||
132 | static int | 138 | static int |
133 | clkevt32k_next_event(unsigned long delta, struct clock_event_device *dev) | 139 | clkevt32k_next_event(unsigned long delta, struct clock_event_device *dev) |
134 | { | 140 | { |
135 | unsigned long flags; | ||
136 | u32 alm; | 141 | u32 alm; |
137 | int status = 0; | 142 | int status = 0; |
138 | 143 | ||
139 | BUG_ON(delta < 2); | 144 | BUG_ON(delta < 2); |
140 | 145 | ||
141 | /* Use "raw" primitives so we behave correctly on RT kernels. */ | ||
142 | raw_local_irq_save(flags); | ||
143 | |||
144 | /* | ||
145 | * According to Thomas Gleixner irqs are already disabled here. Simply | ||
146 | * removing raw_local_irq_save above (and the matching | ||
147 | * raw_local_irq_restore) was not accepted. See | ||
148 | * http://thread.gmane.org/gmane.linux.ports.arm.kernel/41174 | ||
149 | * So for now (2008-11-20) just warn once if irqs were not disabled ... | ||
150 | */ | ||
151 | WARN_ON_ONCE(!raw_irqs_disabled_flags(flags)); | ||
152 | |||
153 | /* The alarm IRQ uses absolute time (now+delta), not the relative | 146 | /* The alarm IRQ uses absolute time (now+delta), not the relative |
154 | * time (delta) in our calling convention. Like all clockevents | 147 | * time (delta) in our calling convention. Like all clockevents |
155 | * using such "match" hardware, we have a race to defend against. | 148 | * using such "match" hardware, we have a race to defend against. |
@@ -169,7 +162,6 @@ clkevt32k_next_event(unsigned long delta, struct clock_event_device *dev) | |||
169 | alm += delta; | 162 | alm += delta; |
170 | at91_sys_write(AT91_ST_RTAR, alm); | 163 | at91_sys_write(AT91_ST_RTAR, alm); |
171 | 164 | ||
172 | raw_local_irq_restore(flags); | ||
173 | return status; | 165 | return status; |
174 | } | 166 | } |
175 | 167 | ||
diff --git a/arch/arm/mach-at91/at91sam926x_time.c b/arch/arm/mach-at91/at91sam926x_time.c index 4bd56aee437..608a63240b6 100644 --- a/arch/arm/mach-at91/at91sam926x_time.c +++ b/arch/arm/mach-at91/at91sam926x_time.c | |||
@@ -62,16 +62,12 @@ static struct clocksource pit_clk = { | |||
62 | static void | 62 | static void |
63 | pit_clkevt_mode(enum clock_event_mode mode, struct clock_event_device *dev) | 63 | pit_clkevt_mode(enum clock_event_mode mode, struct clock_event_device *dev) |
64 | { | 64 | { |
65 | unsigned long flags; | ||
66 | |||
67 | switch (mode) { | 65 | switch (mode) { |
68 | case CLOCK_EVT_MODE_PERIODIC: | 66 | case CLOCK_EVT_MODE_PERIODIC: |
69 | /* update clocksource counter, then enable the IRQ */ | 67 | /* update clocksource counter */ |
70 | raw_local_irq_save(flags); | ||
71 | pit_cnt += pit_cycle * PIT_PICNT(at91_sys_read(AT91_PIT_PIVR)); | 68 | pit_cnt += pit_cycle * PIT_PICNT(at91_sys_read(AT91_PIT_PIVR)); |
72 | at91_sys_write(AT91_PIT_MR, (pit_cycle - 1) | AT91_PIT_PITEN | 69 | at91_sys_write(AT91_PIT_MR, (pit_cycle - 1) | AT91_PIT_PITEN |
73 | | AT91_PIT_PITIEN); | 70 | | AT91_PIT_PITIEN); |
74 | raw_local_irq_restore(flags); | ||
75 | break; | 71 | break; |
76 | case CLOCK_EVT_MODE_ONESHOT: | 72 | case CLOCK_EVT_MODE_ONESHOT: |
77 | BUG(); | 73 | BUG(); |
@@ -100,6 +96,11 @@ static struct clock_event_device pit_clkevt = { | |||
100 | */ | 96 | */ |
101 | static irqreturn_t at91sam926x_pit_interrupt(int irq, void *dev_id) | 97 | static irqreturn_t at91sam926x_pit_interrupt(int irq, void *dev_id) |
102 | { | 98 | { |
99 | /* | ||
100 | * irqs should be disabled here, but as the irq is shared they are only | ||
101 | * guaranteed to be off if the timer irq is registered first. | ||
102 | */ | ||
103 | WARN_ON_ONCE(!irqs_disabled()); | ||
103 | 104 | ||
104 | /* The PIT interrupt may be disabled, and is shared */ | 105 | /* The PIT interrupt may be disabled, and is shared */ |
105 | if ((pit_clkevt.mode == CLOCK_EVT_MODE_PERIODIC) | 106 | if ((pit_clkevt.mode == CLOCK_EVT_MODE_PERIODIC) |
diff --git a/arch/arm/mach-davinci/include/mach/keyscan.h b/arch/arm/mach-davinci/include/mach/keyscan.h index b4e21a2976d..7a560e05bda 100644 --- a/arch/arm/mach-davinci/include/mach/keyscan.h +++ b/arch/arm/mach-davinci/include/mach/keyscan.h | |||
@@ -29,6 +29,7 @@ enum davinci_matrix_types { | |||
29 | }; | 29 | }; |
30 | 30 | ||
31 | struct davinci_ks_platform_data { | 31 | struct davinci_ks_platform_data { |
32 | int (*device_enable)(struct device *dev); | ||
32 | unsigned short *keymap; | 33 | unsigned short *keymap; |
33 | u32 keymapsize; | 34 | u32 keymapsize; |
34 | u8 rep:1; | 35 | u8 rep:1; |
diff --git a/arch/arm/mach-dove/common.c b/arch/arm/mach-dove/common.c index 806972a68c8..5da2cf402c8 100644 --- a/arch/arm/mach-dove/common.c +++ b/arch/arm/mach-dove/common.c | |||
@@ -605,7 +605,7 @@ static struct platform_device dove_xor00_channel = { | |||
605 | .dev = { | 605 | .dev = { |
606 | .dma_mask = &dove_xor0_dmamask, | 606 | .dma_mask = &dove_xor0_dmamask, |
607 | .coherent_dma_mask = DMA_BIT_MASK(64), | 607 | .coherent_dma_mask = DMA_BIT_MASK(64), |
608 | .platform_data = (void *)&dove_xor00_data, | 608 | .platform_data = &dove_xor00_data, |
609 | }, | 609 | }, |
610 | }; | 610 | }; |
611 | 611 | ||
@@ -631,7 +631,7 @@ static struct platform_device dove_xor01_channel = { | |||
631 | .dev = { | 631 | .dev = { |
632 | .dma_mask = &dove_xor0_dmamask, | 632 | .dma_mask = &dove_xor0_dmamask, |
633 | .coherent_dma_mask = DMA_BIT_MASK(64), | 633 | .coherent_dma_mask = DMA_BIT_MASK(64), |
634 | .platform_data = (void *)&dove_xor01_data, | 634 | .platform_data = &dove_xor01_data, |
635 | }, | 635 | }, |
636 | }; | 636 | }; |
637 | 637 | ||
@@ -704,7 +704,7 @@ static struct platform_device dove_xor10_channel = { | |||
704 | .dev = { | 704 | .dev = { |
705 | .dma_mask = &dove_xor1_dmamask, | 705 | .dma_mask = &dove_xor1_dmamask, |
706 | .coherent_dma_mask = DMA_BIT_MASK(64), | 706 | .coherent_dma_mask = DMA_BIT_MASK(64), |
707 | .platform_data = (void *)&dove_xor10_data, | 707 | .platform_data = &dove_xor10_data, |
708 | }, | 708 | }, |
709 | }; | 709 | }; |
710 | 710 | ||
@@ -730,7 +730,7 @@ static struct platform_device dove_xor11_channel = { | |||
730 | .dev = { | 730 | .dev = { |
731 | .dma_mask = &dove_xor1_dmamask, | 731 | .dma_mask = &dove_xor1_dmamask, |
732 | .coherent_dma_mask = DMA_BIT_MASK(64), | 732 | .coherent_dma_mask = DMA_BIT_MASK(64), |
733 | .platform_data = (void *)&dove_xor11_data, | 733 | .platform_data = &dove_xor11_data, |
734 | }, | 734 | }, |
735 | }; | 735 | }; |
736 | 736 | ||
diff --git a/arch/arm/mach-gemini/gpio.c b/arch/arm/mach-gemini/gpio.c index e7263854bc7..fe3bd5ac8b1 100644 --- a/arch/arm/mach-gemini/gpio.c +++ b/arch/arm/mach-gemini/gpio.c | |||
@@ -86,7 +86,7 @@ static int gpio_set_irq_type(unsigned int irq, unsigned int type) | |||
86 | unsigned int reg_both, reg_level, reg_type; | 86 | unsigned int reg_both, reg_level, reg_type; |
87 | 87 | ||
88 | reg_type = __raw_readl(base + GPIO_INT_TYPE); | 88 | reg_type = __raw_readl(base + GPIO_INT_TYPE); |
89 | reg_level = __raw_readl(base + GPIO_INT_BOTH_EDGE); | 89 | reg_level = __raw_readl(base + GPIO_INT_LEVEL); |
90 | reg_both = __raw_readl(base + GPIO_INT_BOTH_EDGE); | 90 | reg_both = __raw_readl(base + GPIO_INT_BOTH_EDGE); |
91 | 91 | ||
92 | switch (type) { | 92 | switch (type) { |
@@ -117,7 +117,7 @@ static int gpio_set_irq_type(unsigned int irq, unsigned int type) | |||
117 | } | 117 | } |
118 | 118 | ||
119 | __raw_writel(reg_type, base + GPIO_INT_TYPE); | 119 | __raw_writel(reg_type, base + GPIO_INT_TYPE); |
120 | __raw_writel(reg_level, base + GPIO_INT_BOTH_EDGE); | 120 | __raw_writel(reg_level, base + GPIO_INT_LEVEL); |
121 | __raw_writel(reg_both, base + GPIO_INT_BOTH_EDGE); | 121 | __raw_writel(reg_both, base + GPIO_INT_BOTH_EDGE); |
122 | 122 | ||
123 | gpio_ack_irq(irq); | 123 | gpio_ack_irq(irq); |
diff --git a/arch/arm/mach-gemini/include/mach/uncompress.h b/arch/arm/mach-gemini/include/mach/uncompress.h index 59c5df7e716..5483f61a806 100644 --- a/arch/arm/mach-gemini/include/mach/uncompress.h +++ b/arch/arm/mach-gemini/include/mach/uncompress.h | |||
@@ -30,7 +30,9 @@ static inline void putc(char c) | |||
30 | UART[UART_TX] = c; | 30 | UART[UART_TX] = c; |
31 | } | 31 | } |
32 | 32 | ||
33 | #define flush() do { } while (0) | 33 | static inline void flush(void) |
34 | { | ||
35 | } | ||
34 | 36 | ||
35 | /* | 37 | /* |
36 | * nothing to do | 38 | * nothing to do |
diff --git a/arch/arm/mach-kirkwood/Kconfig b/arch/arm/mach-kirkwood/Kconfig index f6c6196a51f..17879a876be 100644 --- a/arch/arm/mach-kirkwood/Kconfig +++ b/arch/arm/mach-kirkwood/Kconfig | |||
@@ -32,6 +32,12 @@ config MACH_SHEEVAPLUG | |||
32 | Say 'Y' here if you want your kernel to support the | 32 | Say 'Y' here if you want your kernel to support the |
33 | Marvell SheevaPlug Reference Board. | 33 | Marvell SheevaPlug Reference Board. |
34 | 34 | ||
35 | config MACH_ESATA_SHEEVAPLUG | ||
36 | bool "Marvell eSATA SheevaPlug Reference Board" | ||
37 | help | ||
38 | Say 'Y' here if you want your kernel to support the | ||
39 | Marvell eSATA SheevaPlug Reference Board. | ||
40 | |||
35 | config MACH_TS219 | 41 | config MACH_TS219 |
36 | bool "QNAP TS-110, TS-119, TS-210, TS-219 and TS-219P Turbo NAS" | 42 | bool "QNAP TS-110, TS-119, TS-210, TS-219 and TS-219P Turbo NAS" |
37 | help | 43 | help |
@@ -46,18 +52,35 @@ config MACH_TS41X | |||
46 | QNAP TS-410, TS-410U, TS-419P and TS-419U Turbo NAS | 52 | QNAP TS-410, TS-410U, TS-419P and TS-419U Turbo NAS |
47 | devices. | 53 | devices. |
48 | 54 | ||
55 | config MACH_OPENRD | ||
56 | bool | ||
57 | |||
49 | config MACH_OPENRD_BASE | 58 | config MACH_OPENRD_BASE |
50 | bool "Marvell OpenRD Base Board" | 59 | bool "Marvell OpenRD Base Board" |
60 | select MACH_OPENRD | ||
51 | help | 61 | help |
52 | Say 'Y' here if you want your kernel to support the | 62 | Say 'Y' here if you want your kernel to support the |
53 | Marvell OpenRD Base Board. | 63 | Marvell OpenRD Base Board. |
54 | 64 | ||
65 | config MACH_OPENRD_CLIENT | ||
66 | bool "Marvell OpenRD Client Board" | ||
67 | select MACH_OPENRD | ||
68 | help | ||
69 | Say 'Y' here if you want your kernel to support the | ||
70 | Marvell OpenRD Client Board. | ||
71 | |||
55 | config MACH_NETSPACE_V2 | 72 | config MACH_NETSPACE_V2 |
56 | bool "LaCie Network Space v2 NAS Board" | 73 | bool "LaCie Network Space v2 NAS Board" |
57 | help | 74 | help |
58 | Say 'Y' here if you want your kernel to support the | 75 | Say 'Y' here if you want your kernel to support the |
59 | LaCie Network Space v2 NAS. | 76 | LaCie Network Space v2 NAS. |
60 | 77 | ||
78 | config MACH_INETSPACE_V2 | ||
79 | bool "LaCie Internet Space v2 NAS Board" | ||
80 | help | ||
81 | Say 'Y' here if you want your kernel to support the | ||
82 | LaCie Internet Space v2 NAS. | ||
83 | |||
61 | endmenu | 84 | endmenu |
62 | 85 | ||
63 | endif | 86 | endif |
diff --git a/arch/arm/mach-kirkwood/Makefile b/arch/arm/mach-kirkwood/Makefile index d4d7f53b0fb..a5530e36ba3 100644 --- a/arch/arm/mach-kirkwood/Makefile +++ b/arch/arm/mach-kirkwood/Makefile | |||
@@ -5,9 +5,11 @@ obj-$(CONFIG_MACH_RD88F6192_NAS) += rd88f6192-nas-setup.o | |||
5 | obj-$(CONFIG_MACH_RD88F6281) += rd88f6281-setup.o | 5 | obj-$(CONFIG_MACH_RD88F6281) += rd88f6281-setup.o |
6 | obj-$(CONFIG_MACH_MV88F6281GTW_GE) += mv88f6281gtw_ge-setup.o | 6 | obj-$(CONFIG_MACH_MV88F6281GTW_GE) += mv88f6281gtw_ge-setup.o |
7 | obj-$(CONFIG_MACH_SHEEVAPLUG) += sheevaplug-setup.o | 7 | obj-$(CONFIG_MACH_SHEEVAPLUG) += sheevaplug-setup.o |
8 | obj-$(CONFIG_MACH_ESATA_SHEEVAPLUG) += sheevaplug-setup.o | ||
8 | obj-$(CONFIG_MACH_TS219) += ts219-setup.o tsx1x-common.o | 9 | obj-$(CONFIG_MACH_TS219) += ts219-setup.o tsx1x-common.o |
9 | obj-$(CONFIG_MACH_TS41X) += ts41x-setup.o tsx1x-common.o | 10 | obj-$(CONFIG_MACH_TS41X) += ts41x-setup.o tsx1x-common.o |
10 | obj-$(CONFIG_MACH_OPENRD_BASE) += openrd_base-setup.o | 11 | obj-$(CONFIG_MACH_OPENRD) += openrd-setup.o |
11 | obj-$(CONFIG_MACH_NETSPACE_V2) += netspace_v2-setup.o | 12 | obj-$(CONFIG_MACH_NETSPACE_V2) += netspace_v2-setup.o |
13 | obj-$(CONFIG_MACH_INETSPACE_V2) += netspace_v2-setup.o | ||
12 | 14 | ||
13 | obj-$(CONFIG_CPU_IDLE) += cpuidle.o | 15 | obj-$(CONFIG_CPU_IDLE) += cpuidle.o |
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c index 242dd077534..f759ca24392 100644 --- a/arch/arm/mach-kirkwood/common.c +++ b/arch/arm/mach-kirkwood/common.c | |||
@@ -656,7 +656,7 @@ static struct platform_device kirkwood_xor00_channel = { | |||
656 | .dev = { | 656 | .dev = { |
657 | .dma_mask = &kirkwood_xor_dmamask, | 657 | .dma_mask = &kirkwood_xor_dmamask, |
658 | .coherent_dma_mask = DMA_BIT_MASK(64), | 658 | .coherent_dma_mask = DMA_BIT_MASK(64), |
659 | .platform_data = (void *)&kirkwood_xor00_data, | 659 | .platform_data = &kirkwood_xor00_data, |
660 | }, | 660 | }, |
661 | }; | 661 | }; |
662 | 662 | ||
@@ -682,7 +682,7 @@ static struct platform_device kirkwood_xor01_channel = { | |||
682 | .dev = { | 682 | .dev = { |
683 | .dma_mask = &kirkwood_xor_dmamask, | 683 | .dma_mask = &kirkwood_xor_dmamask, |
684 | .coherent_dma_mask = DMA_BIT_MASK(64), | 684 | .coherent_dma_mask = DMA_BIT_MASK(64), |
685 | .platform_data = (void *)&kirkwood_xor01_data, | 685 | .platform_data = &kirkwood_xor01_data, |
686 | }, | 686 | }, |
687 | }; | 687 | }; |
688 | 688 | ||
@@ -755,7 +755,7 @@ static struct platform_device kirkwood_xor10_channel = { | |||
755 | .dev = { | 755 | .dev = { |
756 | .dma_mask = &kirkwood_xor_dmamask, | 756 | .dma_mask = &kirkwood_xor_dmamask, |
757 | .coherent_dma_mask = DMA_BIT_MASK(64), | 757 | .coherent_dma_mask = DMA_BIT_MASK(64), |
758 | .platform_data = (void *)&kirkwood_xor10_data, | 758 | .platform_data = &kirkwood_xor10_data, |
759 | }, | 759 | }, |
760 | }; | 760 | }; |
761 | 761 | ||
@@ -781,7 +781,7 @@ static struct platform_device kirkwood_xor11_channel = { | |||
781 | .dev = { | 781 | .dev = { |
782 | .dma_mask = &kirkwood_xor_dmamask, | 782 | .dma_mask = &kirkwood_xor_dmamask, |
783 | .coherent_dma_mask = DMA_BIT_MASK(64), | 783 | .coherent_dma_mask = DMA_BIT_MASK(64), |
784 | .platform_data = (void *)&kirkwood_xor11_data, | 784 | .platform_data = &kirkwood_xor11_data, |
785 | }, | 785 | }, |
786 | }; | 786 | }; |
787 | 787 | ||
diff --git a/arch/arm/mach-kirkwood/netspace_v2-setup.c b/arch/arm/mach-kirkwood/netspace_v2-setup.c index 9a064065beb..3ae158d7268 100644 --- a/arch/arm/mach-kirkwood/netspace_v2-setup.c +++ b/arch/arm/mach-kirkwood/netspace_v2-setup.c | |||
@@ -182,8 +182,14 @@ static struct platform_device netspace_v2_gpio_buttons = { | |||
182 | 182 | ||
183 | static struct gpio_led netspace_v2_gpio_led_pins[] = { | 183 | static struct gpio_led netspace_v2_gpio_led_pins[] = { |
184 | { | 184 | { |
185 | .name = "ns_v2:red:fail", | 185 | .name = "ns_v2:blue:sata", |
186 | .gpio = NETSPACE_V2_GPIO_RED_LED, | 186 | .default_trigger = "default-on", |
187 | .gpio = NETSPACE_V2_GPIO_BLUE_LED_CMD, | ||
188 | .active_low = 1, | ||
189 | }, | ||
190 | { | ||
191 | .name = "ns_v2:red:fail", | ||
192 | .gpio = NETSPACE_V2_GPIO_RED_LED, | ||
187 | }, | 193 | }, |
188 | }; | 194 | }; |
189 | 195 | ||
@@ -202,30 +208,19 @@ static struct platform_device netspace_v2_gpio_leds = { | |||
202 | 208 | ||
203 | static void __init netspace_v2_gpio_leds_init(void) | 209 | static void __init netspace_v2_gpio_leds_init(void) |
204 | { | 210 | { |
205 | platform_device_register(&netspace_v2_gpio_leds); | 211 | int err; |
206 | 212 | ||
207 | /* | 213 | /* Configure register slow_led to allow SATA activity LED blinking */ |
208 | * Configure the front blue LED to blink in relation with the SATA | 214 | err = gpio_request(NETSPACE_V2_GPIO_BLUE_LED_SLOW, "blue LED slow"); |
209 | * activity. | 215 | if (err == 0) { |
210 | */ | 216 | err = gpio_direction_output(NETSPACE_V2_GPIO_BLUE_LED_SLOW, 0); |
211 | if (gpio_request(NETSPACE_V2_GPIO_BLUE_LED_SLOW, | 217 | if (err) |
212 | "SATA blue LED slow") != 0) | 218 | gpio_free(NETSPACE_V2_GPIO_BLUE_LED_SLOW); |
213 | return; | 219 | } |
214 | if (gpio_direction_output(NETSPACE_V2_GPIO_BLUE_LED_SLOW, 0) != 0) | 220 | if (err) |
215 | goto err_free_1; | 221 | pr_err("netspace_v2: failed to configure blue LED slow GPIO\n"); |
216 | if (gpio_request(NETSPACE_V2_GPIO_BLUE_LED_CMD, | 222 | |
217 | "SATA blue LED command") != 0) | 223 | platform_device_register(&netspace_v2_gpio_leds); |
218 | goto err_free_1; | ||
219 | if (gpio_direction_output(NETSPACE_V2_GPIO_BLUE_LED_CMD, 0) != 0) | ||
220 | goto err_free_2; | ||
221 | |||
222 | return; | ||
223 | |||
224 | err_free_2: | ||
225 | gpio_free(NETSPACE_V2_GPIO_BLUE_LED_CMD); | ||
226 | err_free_1: | ||
227 | gpio_free(NETSPACE_V2_GPIO_BLUE_LED_SLOW); | ||
228 | pr_err("netspace_v2: failed to configure SATA blue LED\n"); | ||
229 | } | 224 | } |
230 | 225 | ||
231 | /***************************************************************************** | 226 | /***************************************************************************** |
@@ -314,6 +309,7 @@ static void __init netspace_v2_init(void) | |||
314 | pr_err("netspace_v2: failed to configure power-off GPIO\n"); | 309 | pr_err("netspace_v2: failed to configure power-off GPIO\n"); |
315 | } | 310 | } |
316 | 311 | ||
312 | #ifdef CONFIG_MACH_NETSPACE_V2 | ||
317 | MACHINE_START(NETSPACE_V2, "LaCie Network Space v2") | 313 | MACHINE_START(NETSPACE_V2, "LaCie Network Space v2") |
318 | .phys_io = KIRKWOOD_REGS_PHYS_BASE, | 314 | .phys_io = KIRKWOOD_REGS_PHYS_BASE, |
319 | .io_pg_offst = ((KIRKWOOD_REGS_VIRT_BASE) >> 18) & 0xfffc, | 315 | .io_pg_offst = ((KIRKWOOD_REGS_VIRT_BASE) >> 18) & 0xfffc, |
@@ -323,3 +319,16 @@ MACHINE_START(NETSPACE_V2, "LaCie Network Space v2") | |||
323 | .init_irq = kirkwood_init_irq, | 319 | .init_irq = kirkwood_init_irq, |
324 | .timer = &netspace_v2_timer, | 320 | .timer = &netspace_v2_timer, |
325 | MACHINE_END | 321 | MACHINE_END |
322 | #endif | ||
323 | |||
324 | #ifdef CONFIG_MACH_INETSPACE_V2 | ||
325 | MACHINE_START(INETSPACE_V2, "LaCie Internet Space v2") | ||
326 | .phys_io = KIRKWOOD_REGS_PHYS_BASE, | ||
327 | .io_pg_offst = ((KIRKWOOD_REGS_VIRT_BASE) >> 18) & 0xfffc, | ||
328 | .boot_params = 0x00000100, | ||
329 | .init_machine = netspace_v2_init, | ||
330 | .map_io = kirkwood_map_io, | ||
331 | .init_irq = kirkwood_init_irq, | ||
332 | .timer = &netspace_v2_timer, | ||
333 | MACHINE_END | ||
334 | #endif | ||
diff --git a/arch/arm/mach-kirkwood/openrd-setup.c b/arch/arm/mach-kirkwood/openrd-setup.c new file mode 100644 index 00000000000..ad3f1ec3379 --- /dev/null +++ b/arch/arm/mach-kirkwood/openrd-setup.c | |||
@@ -0,0 +1,118 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-kirkwood/openrd-setup.c | ||
3 | * | ||
4 | * Marvell OpenRD (Base|Client) Board Setup | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public | ||
7 | * License version 2. This program is licensed "as is" without any | ||
8 | * warranty of any kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | #include <linux/kernel.h> | ||
12 | #include <linux/init.h> | ||
13 | #include <linux/platform_device.h> | ||
14 | #include <linux/mtd/nand.h> | ||
15 | #include <linux/mtd/partitions.h> | ||
16 | #include <linux/ata_platform.h> | ||
17 | #include <linux/mv643xx_eth.h> | ||
18 | #include <asm/mach-types.h> | ||
19 | #include <asm/mach/arch.h> | ||
20 | #include <mach/kirkwood.h> | ||
21 | #include <plat/mvsdio.h> | ||
22 | #include "common.h" | ||
23 | #include "mpp.h" | ||
24 | |||
25 | static struct mtd_partition openrd_nand_parts[] = { | ||
26 | { | ||
27 | .name = "u-boot", | ||
28 | .offset = 0, | ||
29 | .size = SZ_1M, | ||
30 | .mask_flags = MTD_WRITEABLE | ||
31 | }, { | ||
32 | .name = "uImage", | ||
33 | .offset = MTDPART_OFS_NXTBLK, | ||
34 | .size = SZ_4M | ||
35 | }, { | ||
36 | .name = "root", | ||
37 | .offset = MTDPART_OFS_NXTBLK, | ||
38 | .size = MTDPART_SIZ_FULL | ||
39 | }, | ||
40 | }; | ||
41 | |||
42 | static struct mv643xx_eth_platform_data openrd_ge00_data = { | ||
43 | .phy_addr = MV643XX_ETH_PHY_ADDR(8), | ||
44 | }; | ||
45 | |||
46 | static struct mv643xx_eth_platform_data openrd_ge01_data = { | ||
47 | .phy_addr = MV643XX_ETH_PHY_ADDR(24), | ||
48 | }; | ||
49 | |||
50 | static struct mv_sata_platform_data openrd_sata_data = { | ||
51 | .n_ports = 2, | ||
52 | }; | ||
53 | |||
54 | static struct mvsdio_platform_data openrd_mvsdio_data = { | ||
55 | .gpio_card_detect = 29, /* MPP29 used as SD card detect */ | ||
56 | }; | ||
57 | |||
58 | static unsigned int openrd_mpp_config[] __initdata = { | ||
59 | MPP29_GPIO, | ||
60 | 0 | ||
61 | }; | ||
62 | |||
63 | static void __init openrd_init(void) | ||
64 | { | ||
65 | /* | ||
66 | * Basic setup. Needs to be called early. | ||
67 | */ | ||
68 | kirkwood_init(); | ||
69 | kirkwood_mpp_conf(openrd_mpp_config); | ||
70 | |||
71 | kirkwood_uart0_init(); | ||
72 | kirkwood_nand_init(ARRAY_AND_SIZE(openrd_nand_parts), 25); | ||
73 | |||
74 | kirkwood_ehci_init(); | ||
75 | |||
76 | kirkwood_ge00_init(&openrd_ge00_data); | ||
77 | if (machine_is_openrd_client()) | ||
78 | kirkwood_ge01_init(&openrd_ge01_data); | ||
79 | kirkwood_sata_init(&openrd_sata_data); | ||
80 | kirkwood_sdio_init(&openrd_mvsdio_data); | ||
81 | |||
82 | kirkwood_i2c_init(); | ||
83 | } | ||
84 | |||
85 | static int __init openrd_pci_init(void) | ||
86 | { | ||
87 | if (machine_is_openrd_base() || machine_is_openrd_client()) | ||
88 | kirkwood_pcie_init(); | ||
89 | |||
90 | return 0; | ||
91 | } | ||
92 | subsys_initcall(openrd_pci_init); | ||
93 | |||
94 | #ifdef CONFIG_MACH_OPENRD_BASE | ||
95 | MACHINE_START(OPENRD_BASE, "Marvell OpenRD Base Board") | ||
96 | /* Maintainer: Dhaval Vasa <dhaval.vasa@einfochips.com> */ | ||
97 | .phys_io = KIRKWOOD_REGS_PHYS_BASE, | ||
98 | .io_pg_offst = ((KIRKWOOD_REGS_VIRT_BASE) >> 18) & 0xfffc, | ||
99 | .boot_params = 0x00000100, | ||
100 | .init_machine = openrd_init, | ||
101 | .map_io = kirkwood_map_io, | ||
102 | .init_irq = kirkwood_init_irq, | ||
103 | .timer = &kirkwood_timer, | ||
104 | MACHINE_END | ||
105 | #endif | ||
106 | |||
107 | #ifdef CONFIG_MACH_OPENRD_CLIENT | ||
108 | MACHINE_START(OPENRD_CLIENT, "Marvell OpenRD Client Board") | ||
109 | /* Maintainer: Dhaval Vasa <dhaval.vasa@einfochips.com> */ | ||
110 | .phys_io = KIRKWOOD_REGS_PHYS_BASE, | ||
111 | .io_pg_offst = ((KIRKWOOD_REGS_VIRT_BASE) >> 18) & 0xfffc, | ||
112 | .boot_params = 0x00000100, | ||
113 | .init_machine = openrd_init, | ||
114 | .map_io = kirkwood_map_io, | ||
115 | .init_irq = kirkwood_init_irq, | ||
116 | .timer = &kirkwood_timer, | ||
117 | MACHINE_END | ||
118 | #endif | ||
diff --git a/arch/arm/mach-kirkwood/openrd_base-setup.c b/arch/arm/mach-kirkwood/openrd_base-setup.c deleted file mode 100644 index 77617c72229..00000000000 --- a/arch/arm/mach-kirkwood/openrd_base-setup.c +++ /dev/null | |||
@@ -1,96 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-kirkwood/openrd_base-setup.c | ||
3 | * | ||
4 | * Marvell OpenRD Base Board Setup | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public | ||
7 | * License version 2. This program is licensed "as is" without any | ||
8 | * warranty of any kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | #include <linux/kernel.h> | ||
12 | #include <linux/init.h> | ||
13 | #include <linux/platform_device.h> | ||
14 | #include <linux/mtd/partitions.h> | ||
15 | #include <linux/ata_platform.h> | ||
16 | #include <linux/mv643xx_eth.h> | ||
17 | #include <asm/mach-types.h> | ||
18 | #include <asm/mach/arch.h> | ||
19 | #include <mach/kirkwood.h> | ||
20 | #include <plat/mvsdio.h> | ||
21 | #include "common.h" | ||
22 | #include "mpp.h" | ||
23 | |||
24 | static struct mtd_partition openrd_base_nand_parts[] = { | ||
25 | { | ||
26 | .name = "u-boot", | ||
27 | .offset = 0, | ||
28 | .size = SZ_1M | ||
29 | }, { | ||
30 | .name = "uImage", | ||
31 | .offset = MTDPART_OFS_NXTBLK, | ||
32 | .size = SZ_4M | ||
33 | }, { | ||
34 | .name = "root", | ||
35 | .offset = MTDPART_OFS_NXTBLK, | ||
36 | .size = MTDPART_SIZ_FULL | ||
37 | }, | ||
38 | }; | ||
39 | |||
40 | static struct mv643xx_eth_platform_data openrd_base_ge00_data = { | ||
41 | .phy_addr = MV643XX_ETH_PHY_ADDR(8), | ||
42 | }; | ||
43 | |||
44 | static struct mv_sata_platform_data openrd_base_sata_data = { | ||
45 | .n_ports = 2, | ||
46 | }; | ||
47 | |||
48 | static struct mvsdio_platform_data openrd_base_mvsdio_data = { | ||
49 | .gpio_card_detect = 29, /* MPP29 used as SD card detect */ | ||
50 | }; | ||
51 | |||
52 | static unsigned int openrd_base_mpp_config[] __initdata = { | ||
53 | MPP29_GPIO, | ||
54 | 0 | ||
55 | }; | ||
56 | |||
57 | static void __init openrd_base_init(void) | ||
58 | { | ||
59 | /* | ||
60 | * Basic setup. Needs to be called early. | ||
61 | */ | ||
62 | kirkwood_init(); | ||
63 | kirkwood_mpp_conf(openrd_base_mpp_config); | ||
64 | |||
65 | kirkwood_uart0_init(); | ||
66 | kirkwood_nand_init(ARRAY_AND_SIZE(openrd_base_nand_parts), 25); | ||
67 | |||
68 | kirkwood_ehci_init(); | ||
69 | |||
70 | kirkwood_ge00_init(&openrd_base_ge00_data); | ||
71 | kirkwood_sata_init(&openrd_base_sata_data); | ||
72 | kirkwood_sdio_init(&openrd_base_mvsdio_data); | ||
73 | |||
74 | kirkwood_i2c_init(); | ||
75 | } | ||
76 | |||
77 | static int __init openrd_base_pci_init(void) | ||
78 | { | ||
79 | if (machine_is_openrd_base()) | ||
80 | kirkwood_pcie_init(); | ||
81 | |||
82 | return 0; | ||
83 | } | ||
84 | subsys_initcall(openrd_base_pci_init); | ||
85 | |||
86 | |||
87 | MACHINE_START(OPENRD_BASE, "Marvell OpenRD Base Board") | ||
88 | /* Maintainer: Dhaval Vasa <dhaval.vasa@einfochips.com> */ | ||
89 | .phys_io = KIRKWOOD_REGS_PHYS_BASE, | ||
90 | .io_pg_offst = ((KIRKWOOD_REGS_VIRT_BASE) >> 18) & 0xfffc, | ||
91 | .boot_params = 0x00000100, | ||
92 | .init_machine = openrd_base_init, | ||
93 | .map_io = kirkwood_map_io, | ||
94 | .init_irq = kirkwood_init_irq, | ||
95 | .timer = &kirkwood_timer, | ||
96 | MACHINE_END | ||
diff --git a/arch/arm/mach-kirkwood/rd88f6192-nas-setup.c b/arch/arm/mach-kirkwood/rd88f6192-nas-setup.c index 8bf4153d084..3bf6304158f 100644 --- a/arch/arm/mach-kirkwood/rd88f6192-nas-setup.c +++ b/arch/arm/mach-kirkwood/rd88f6192-nas-setup.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/platform_device.h> | 13 | #include <linux/platform_device.h> |
14 | #include <linux/ata_platform.h> | 14 | #include <linux/ata_platform.h> |
15 | #include <linux/mv643xx_eth.h> | 15 | #include <linux/mv643xx_eth.h> |
16 | #include <linux/gpio.h> | ||
16 | #include <linux/spi/flash.h> | 17 | #include <linux/spi/flash.h> |
17 | #include <linux/spi/spi.h> | 18 | #include <linux/spi/spi.h> |
18 | #include <linux/spi/orion_spi.h> | 19 | #include <linux/spi/orion_spi.h> |
@@ -53,6 +54,11 @@ static void __init rd88f6192_init(void) | |||
53 | */ | 54 | */ |
54 | kirkwood_init(); | 55 | kirkwood_init(); |
55 | 56 | ||
57 | orion_gpio_set_valid(RD88F6192_GPIO_USB_VBUS, 1); | ||
58 | if (gpio_request(RD88F6192_GPIO_USB_VBUS, "USB VBUS") != 0 || | ||
59 | gpio_direction_output(RD88F6192_GPIO_USB_VBUS, 1) != 0) | ||
60 | pr_err("RD-88F6192-NAS: failed to setup USB VBUS GPIO\n"); | ||
61 | |||
56 | kirkwood_ehci_init(); | 62 | kirkwood_ehci_init(); |
57 | kirkwood_ge00_init(&rd88f6192_ge00_data); | 63 | kirkwood_ge00_init(&rd88f6192_ge00_data); |
58 | kirkwood_sata_init(&rd88f6192_sata_data); | 64 | kirkwood_sata_init(&rd88f6192_sata_data); |
diff --git a/arch/arm/mach-kirkwood/sheevaplug-setup.c b/arch/arm/mach-kirkwood/sheevaplug-setup.c index c7319eeac8b..a00879d34d5 100644 --- a/arch/arm/mach-kirkwood/sheevaplug-setup.c +++ b/arch/arm/mach-kirkwood/sheevaplug-setup.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/platform_device.h> | 13 | #include <linux/platform_device.h> |
14 | #include <linux/ata_platform.h> | ||
14 | #include <linux/mtd/partitions.h> | 15 | #include <linux/mtd/partitions.h> |
15 | #include <linux/mv643xx_eth.h> | 16 | #include <linux/mv643xx_eth.h> |
16 | #include <linux/gpio.h> | 17 | #include <linux/gpio.h> |
@@ -42,10 +43,19 @@ static struct mv643xx_eth_platform_data sheevaplug_ge00_data = { | |||
42 | .phy_addr = MV643XX_ETH_PHY_ADDR(0), | 43 | .phy_addr = MV643XX_ETH_PHY_ADDR(0), |
43 | }; | 44 | }; |
44 | 45 | ||
46 | static struct mv_sata_platform_data sheeva_esata_sata_data = { | ||
47 | .n_ports = 2, | ||
48 | }; | ||
49 | |||
45 | static struct mvsdio_platform_data sheevaplug_mvsdio_data = { | 50 | static struct mvsdio_platform_data sheevaplug_mvsdio_data = { |
46 | /* unfortunately the CD signal has not been connected */ | 51 | /* unfortunately the CD signal has not been connected */ |
47 | }; | 52 | }; |
48 | 53 | ||
54 | static struct mvsdio_platform_data sheeva_esata_mvsdio_data = { | ||
55 | .gpio_write_protect = 44, /* MPP44 used as SD write protect */ | ||
56 | .gpio_card_detect = 47, /* MPP47 used as SD card detect */ | ||
57 | }; | ||
58 | |||
49 | static struct gpio_led sheevaplug_led_pins[] = { | 59 | static struct gpio_led sheevaplug_led_pins[] = { |
50 | { | 60 | { |
51 | .name = "plug:green:health", | 61 | .name = "plug:green:health", |
@@ -74,13 +84,26 @@ static unsigned int sheevaplug_mpp_config[] __initdata = { | |||
74 | 0 | 84 | 0 |
75 | }; | 85 | }; |
76 | 86 | ||
87 | static unsigned int sheeva_esata_mpp_config[] __initdata = { | ||
88 | MPP29_GPIO, /* USB Power Enable */ | ||
89 | MPP44_GPIO, /* SD Write Protect */ | ||
90 | MPP47_GPIO, /* SD Card Detect */ | ||
91 | MPP49_GPIO, /* LED Green */ | ||
92 | 0 | ||
93 | }; | ||
94 | |||
77 | static void __init sheevaplug_init(void) | 95 | static void __init sheevaplug_init(void) |
78 | { | 96 | { |
79 | /* | 97 | /* |
80 | * Basic setup. Needs to be called early. | 98 | * Basic setup. Needs to be called early. |
81 | */ | 99 | */ |
82 | kirkwood_init(); | 100 | kirkwood_init(); |
83 | kirkwood_mpp_conf(sheevaplug_mpp_config); | 101 | |
102 | /* setup gpio pin select */ | ||
103 | if (machine_is_sheeva_esata()) | ||
104 | kirkwood_mpp_conf(sheeva_esata_mpp_config); | ||
105 | else | ||
106 | kirkwood_mpp_conf(sheevaplug_mpp_config); | ||
84 | 107 | ||
85 | kirkwood_uart0_init(); | 108 | kirkwood_uart0_init(); |
86 | kirkwood_nand_init(ARRAY_AND_SIZE(sheevaplug_nand_parts), 25); | 109 | kirkwood_nand_init(ARRAY_AND_SIZE(sheevaplug_nand_parts), 25); |
@@ -91,11 +114,21 @@ static void __init sheevaplug_init(void) | |||
91 | kirkwood_ehci_init(); | 114 | kirkwood_ehci_init(); |
92 | 115 | ||
93 | kirkwood_ge00_init(&sheevaplug_ge00_data); | 116 | kirkwood_ge00_init(&sheevaplug_ge00_data); |
94 | kirkwood_sdio_init(&sheevaplug_mvsdio_data); | 117 | |
118 | /* honor lower power consumption for plugs with out eSATA */ | ||
119 | if (machine_is_sheeva_esata()) | ||
120 | kirkwood_sata_init(&sheeva_esata_sata_data); | ||
121 | |||
122 | /* enable sd wp and sd cd on plugs with esata */ | ||
123 | if (machine_is_sheeva_esata()) | ||
124 | kirkwood_sdio_init(&sheeva_esata_mvsdio_data); | ||
125 | else | ||
126 | kirkwood_sdio_init(&sheevaplug_mvsdio_data); | ||
95 | 127 | ||
96 | platform_device_register(&sheevaplug_leds); | 128 | platform_device_register(&sheevaplug_leds); |
97 | } | 129 | } |
98 | 130 | ||
131 | #ifdef CONFIG_MACH_SHEEVAPLUG | ||
99 | MACHINE_START(SHEEVAPLUG, "Marvell SheevaPlug Reference Board") | 132 | MACHINE_START(SHEEVAPLUG, "Marvell SheevaPlug Reference Board") |
100 | /* Maintainer: shadi Ammouri <shadi@marvell.com> */ | 133 | /* Maintainer: shadi Ammouri <shadi@marvell.com> */ |
101 | .phys_io = KIRKWOOD_REGS_PHYS_BASE, | 134 | .phys_io = KIRKWOOD_REGS_PHYS_BASE, |
@@ -106,3 +139,16 @@ MACHINE_START(SHEEVAPLUG, "Marvell SheevaPlug Reference Board") | |||
106 | .init_irq = kirkwood_init_irq, | 139 | .init_irq = kirkwood_init_irq, |
107 | .timer = &kirkwood_timer, | 140 | .timer = &kirkwood_timer, |
108 | MACHINE_END | 141 | MACHINE_END |
142 | #endif | ||
143 | |||
144 | #ifdef CONFIG_MACH_ESATA_SHEEVAPLUG | ||
145 | MACHINE_START(ESATA_SHEEVAPLUG, "Marvell eSATA SheevaPlug Reference Board") | ||
146 | .phys_io = KIRKWOOD_REGS_PHYS_BASE, | ||
147 | .io_pg_offst = ((KIRKWOOD_REGS_VIRT_BASE) >> 18) & 0xfffc, | ||
148 | .boot_params = 0x00000100, | ||
149 | .init_machine = sheevaplug_init, | ||
150 | .map_io = kirkwood_map_io, | ||
151 | .init_irq = kirkwood_init_irq, | ||
152 | .timer = &kirkwood_timer, | ||
153 | MACHINE_END | ||
154 | #endif | ||
diff --git a/arch/arm/mach-mmp/Kconfig b/arch/arm/mach-mmp/Kconfig index c6a564fc4a7..6ab843eaa35 100644 --- a/arch/arm/mach-mmp/Kconfig +++ b/arch/arm/mach-mmp/Kconfig | |||
@@ -1,6 +1,6 @@ | |||
1 | if ARCH_MMP | 1 | if ARCH_MMP |
2 | 2 | ||
3 | menu "Marvell PXA168/910 Implmentations" | 3 | menu "Marvell PXA168/910/MMP2 Implmentations" |
4 | 4 | ||
5 | config MACH_ASPENITE | 5 | config MACH_ASPENITE |
6 | bool "Marvell's PXA168 Aspenite Development Board" | 6 | bool "Marvell's PXA168 Aspenite Development Board" |
@@ -16,6 +16,13 @@ config MACH_ZYLONITE2 | |||
16 | Say 'Y' here if you want to support the Marvell PXA168-based | 16 | Say 'Y' here if you want to support the Marvell PXA168-based |
17 | Zylonite2 Development Board. | 17 | Zylonite2 Development Board. |
18 | 18 | ||
19 | config MACH_AVENGERS_LITE | ||
20 | bool "Marvell's PXA168 Avengers Lite Development Board" | ||
21 | select CPU_PXA168 | ||
22 | help | ||
23 | Say 'Y' here if you want to support the Marvell PXA168-based | ||
24 | Avengers Lite Development Board. | ||
25 | |||
19 | config MACH_TAVOREVB | 26 | config MACH_TAVOREVB |
20 | bool "Marvell's PXA910 TavorEVB Development Board" | 27 | bool "Marvell's PXA910 TavorEVB Development Board" |
21 | select CPU_PXA910 | 28 | select CPU_PXA910 |
@@ -30,6 +37,26 @@ config MACH_TTC_DKB | |||
30 | Say 'Y' here if you want to support the Marvell PXA910-based | 37 | Say 'Y' here if you want to support the Marvell PXA910-based |
31 | TTC_DKB Development Board. | 38 | TTC_DKB Development Board. |
32 | 39 | ||
40 | config MACH_FLINT | ||
41 | bool "Marvell's Flint Development Platform" | ||
42 | select CPU_MMP2 | ||
43 | help | ||
44 | Say 'Y' here if you want to support the Marvell MMP2-based | ||
45 | Flint Development Platform. | ||
46 | MMP2-based board can't be co-existed with PXA168-based & | ||
47 | PXA910-based development board. Since MMP2 is compatible to | ||
48 | ARMv6 architecture. | ||
49 | |||
50 | config MACH_MARVELL_JASPER | ||
51 | bool "Marvell's Jasper Development Platform" | ||
52 | select CPU_MMP2 | ||
53 | help | ||
54 | Say 'Y' here if you want to support the Marvell MMP2-base | ||
55 | Jasper Development Platform. | ||
56 | MMP2-based board can't be co-existed with PXA168-based & | ||
57 | PXA910-based development board. Since MMP2 is compatible to | ||
58 | ARMv6 architecture. | ||
59 | |||
33 | endmenu | 60 | endmenu |
34 | 61 | ||
35 | config CPU_PXA168 | 62 | config CPU_PXA168 |
@@ -44,4 +71,10 @@ config CPU_PXA910 | |||
44 | help | 71 | help |
45 | Select code specific to PXA910 | 72 | Select code specific to PXA910 |
46 | 73 | ||
74 | config CPU_MMP2 | ||
75 | bool | ||
76 | select CPU_V6 | ||
77 | select CPU_32v6K | ||
78 | help | ||
79 | Select code specific to MMP2. MMP2 is ARMv6 compatible. | ||
47 | endif | 80 | endif |
diff --git a/arch/arm/mach-mmp/Makefile b/arch/arm/mach-mmp/Makefile index 6883e658488..8b66d06739c 100644 --- a/arch/arm/mach-mmp/Makefile +++ b/arch/arm/mach-mmp/Makefile | |||
@@ -2,14 +2,18 @@ | |||
2 | # Makefile for Marvell's PXA168 processors line | 2 | # Makefile for Marvell's PXA168 processors line |
3 | # | 3 | # |
4 | 4 | ||
5 | obj-y += common.o clock.o devices.o irq.o time.o | 5 | obj-y += common.o clock.o devices.o time.o |
6 | 6 | ||
7 | # SoC support | 7 | # SoC support |
8 | obj-$(CONFIG_CPU_PXA168) += pxa168.o | 8 | obj-$(CONFIG_CPU_PXA168) += pxa168.o irq-pxa168.o |
9 | obj-$(CONFIG_CPU_PXA910) += pxa910.o | 9 | obj-$(CONFIG_CPU_PXA910) += pxa910.o irq-pxa168.o |
10 | obj-$(CONFIG_CPU_MMP2) += mmp2.o irq-mmp2.o | ||
10 | 11 | ||
11 | # board support | 12 | # board support |
12 | obj-$(CONFIG_MACH_ASPENITE) += aspenite.o | 13 | obj-$(CONFIG_MACH_ASPENITE) += aspenite.o |
13 | obj-$(CONFIG_MACH_ZYLONITE2) += aspenite.o | 14 | obj-$(CONFIG_MACH_ZYLONITE2) += aspenite.o |
15 | obj-$(CONFIG_MACH_AVENGERS_LITE)+= avengers_lite.o | ||
14 | obj-$(CONFIG_MACH_TAVOREVB) += tavorevb.o | 16 | obj-$(CONFIG_MACH_TAVOREVB) += tavorevb.o |
15 | obj-$(CONFIG_MACH_TTC_DKB) += ttc_dkb.o | 17 | obj-$(CONFIG_MACH_TTC_DKB) += ttc_dkb.o |
18 | obj-$(CONFIG_MACH_FLINT) += flint.o | ||
19 | obj-$(CONFIG_MACH_MARVELL_JASPER) += jasper.o | ||
diff --git a/arch/arm/mach-mmp/avengers_lite.c b/arch/arm/mach-mmp/avengers_lite.c new file mode 100644 index 00000000000..8c3fa5d14f4 --- /dev/null +++ b/arch/arm/mach-mmp/avengers_lite.c | |||
@@ -0,0 +1,51 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-mmp/avengers_lite.c | ||
3 | * | ||
4 | * Support for the Marvell PXA168-based Avengers lite Development Platform. | ||
5 | * | ||
6 | * Copyright (C) 2009-2010 Marvell International Ltd. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * publishhed by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/init.h> | ||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/platform_device.h> | ||
16 | |||
17 | #include <asm/mach-types.h> | ||
18 | #include <asm/mach/arch.h> | ||
19 | #include <mach/addr-map.h> | ||
20 | #include <mach/mfp-pxa168.h> | ||
21 | #include <mach/pxa168.h> | ||
22 | #include <mach/irqs.h> | ||
23 | |||
24 | |||
25 | #include "common.h" | ||
26 | #include <linux/delay.h> | ||
27 | |||
28 | /* Avengers lite MFP configurations */ | ||
29 | static unsigned long avengers_lite_pin_config_V16F[] __initdata = { | ||
30 | /* DEBUG_UART */ | ||
31 | GPIO88_UART2_TXD, | ||
32 | GPIO89_UART2_RXD, | ||
33 | }; | ||
34 | |||
35 | static void __init avengers_lite_init(void) | ||
36 | { | ||
37 | mfp_config(ARRAY_AND_SIZE(avengers_lite_pin_config_V16F)); | ||
38 | |||
39 | /* on-chip devices */ | ||
40 | pxa168_add_uart(2); | ||
41 | } | ||
42 | |||
43 | MACHINE_START(AVENGERS_LITE, "PXA168 Avengers lite Development Platform") | ||
44 | .phys_io = APB_PHYS_BASE, | ||
45 | .boot_params = 0x00000100, | ||
46 | .io_pg_offst = (APB_VIRT_BASE >> 18) & 0xfffc, | ||
47 | .map_io = pxa_map_io, | ||
48 | .init_irq = pxa168_init_irq, | ||
49 | .timer = &pxa168_timer, | ||
50 | .init_machine = avengers_lite_init, | ||
51 | MACHINE_END | ||
diff --git a/arch/arm/mach-mmp/common.h b/arch/arm/mach-mmp/common.h index c33fbbc4941..b4a0ba05a0f 100644 --- a/arch/arm/mach-mmp/common.h +++ b/arch/arm/mach-mmp/common.h | |||
@@ -3,11 +3,15 @@ | |||
3 | struct sys_timer; | 3 | struct sys_timer; |
4 | 4 | ||
5 | extern void timer_init(int irq); | 5 | extern void timer_init(int irq); |
6 | extern void mmp2_clear_pmic_int(void); | ||
6 | 7 | ||
7 | extern struct sys_timer pxa168_timer; | 8 | extern struct sys_timer pxa168_timer; |
8 | extern struct sys_timer pxa910_timer; | 9 | extern struct sys_timer pxa910_timer; |
10 | extern struct sys_timer mmp2_timer; | ||
9 | extern void __init pxa168_init_irq(void); | 11 | extern void __init pxa168_init_irq(void); |
10 | extern void __init pxa910_init_irq(void); | 12 | extern void __init pxa910_init_irq(void); |
13 | extern void __init mmp2_init_icu(void); | ||
14 | extern void __init mmp2_init_irq(void); | ||
11 | 15 | ||
12 | extern void __init icu_init_irq(void); | 16 | extern void __init icu_init_irq(void); |
13 | extern void __init pxa_map_io(void); | 17 | extern void __init pxa_map_io(void); |
diff --git a/arch/arm/mach-mmp/flint.c b/arch/arm/mach-mmp/flint.c new file mode 100644 index 00000000000..4ec7709a346 --- /dev/null +++ b/arch/arm/mach-mmp/flint.c | |||
@@ -0,0 +1,123 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-mmp/flint.c | ||
3 | * | ||
4 | * Support for the Marvell Flint Development Platform. | ||
5 | * | ||
6 | * Copyright (C) 2009 Marvell International Ltd. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * publishhed by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/init.h> | ||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/platform_device.h> | ||
16 | #include <linux/smc91x.h> | ||
17 | #include <linux/io.h> | ||
18 | #include <linux/gpio.h> | ||
19 | |||
20 | #include <asm/mach-types.h> | ||
21 | #include <asm/mach/arch.h> | ||
22 | #include <mach/addr-map.h> | ||
23 | #include <mach/mfp-mmp2.h> | ||
24 | #include <mach/mmp2.h> | ||
25 | |||
26 | #include "common.h" | ||
27 | |||
28 | static unsigned long flint_pin_config[] __initdata = { | ||
29 | /* UART1 */ | ||
30 | GPIO45_UART1_RXD, | ||
31 | GPIO46_UART1_TXD, | ||
32 | |||
33 | /* UART2 */ | ||
34 | GPIO47_UART2_RXD, | ||
35 | GPIO48_UART2_TXD, | ||
36 | |||
37 | /* SMC */ | ||
38 | GPIO151_SMC_SCLK, | ||
39 | GPIO145_SMC_nCS0, | ||
40 | GPIO146_SMC_nCS1, | ||
41 | GPIO152_SMC_BE0, | ||
42 | GPIO153_SMC_BE1, | ||
43 | GPIO154_SMC_IRQ, | ||
44 | GPIO113_SMC_RDY, | ||
45 | |||
46 | /*Ethernet*/ | ||
47 | GPIO155_GPIO155, | ||
48 | |||
49 | /* DFI */ | ||
50 | GPIO168_DFI_D0, | ||
51 | GPIO167_DFI_D1, | ||
52 | GPIO166_DFI_D2, | ||
53 | GPIO165_DFI_D3, | ||
54 | GPIO107_DFI_D4, | ||
55 | GPIO106_DFI_D5, | ||
56 | GPIO105_DFI_D6, | ||
57 | GPIO104_DFI_D7, | ||
58 | GPIO111_DFI_D8, | ||
59 | GPIO164_DFI_D9, | ||
60 | GPIO163_DFI_D10, | ||
61 | GPIO162_DFI_D11, | ||
62 | GPIO161_DFI_D12, | ||
63 | GPIO110_DFI_D13, | ||
64 | GPIO109_DFI_D14, | ||
65 | GPIO108_DFI_D15, | ||
66 | GPIO143_ND_nCS0, | ||
67 | GPIO144_ND_nCS1, | ||
68 | GPIO147_ND_nWE, | ||
69 | GPIO148_ND_nRE, | ||
70 | GPIO150_ND_ALE, | ||
71 | GPIO149_ND_CLE, | ||
72 | GPIO112_ND_RDY0, | ||
73 | GPIO160_ND_RDY1, | ||
74 | }; | ||
75 | |||
76 | static struct smc91x_platdata flint_smc91x_info = { | ||
77 | .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT, | ||
78 | }; | ||
79 | |||
80 | static struct resource smc91x_resources[] = { | ||
81 | [0] = { | ||
82 | .start = SMC_CS1_PHYS_BASE + 0x300, | ||
83 | .end = SMC_CS1_PHYS_BASE + 0xfffff, | ||
84 | .flags = IORESOURCE_MEM, | ||
85 | }, | ||
86 | [1] = { | ||
87 | .start = gpio_to_irq(155), | ||
88 | .end = gpio_to_irq(155), | ||
89 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE, | ||
90 | } | ||
91 | }; | ||
92 | |||
93 | static struct platform_device smc91x_device = { | ||
94 | .name = "smc91x", | ||
95 | .id = 0, | ||
96 | .dev = { | ||
97 | .platform_data = &flint_smc91x_info, | ||
98 | }, | ||
99 | .num_resources = ARRAY_SIZE(smc91x_resources), | ||
100 | .resource = smc91x_resources, | ||
101 | }; | ||
102 | |||
103 | static void __init flint_init(void) | ||
104 | { | ||
105 | mfp_config(ARRAY_AND_SIZE(flint_pin_config)); | ||
106 | |||
107 | /* on-chip devices */ | ||
108 | mmp2_add_uart(1); | ||
109 | mmp2_add_uart(2); | ||
110 | |||
111 | /* off-chip devices */ | ||
112 | platform_device_register(&smc91x_device); | ||
113 | } | ||
114 | |||
115 | MACHINE_START(FLINT, "Flint Development Platform") | ||
116 | .phys_io = APB_PHYS_BASE, | ||
117 | .boot_params = 0x00000100, | ||
118 | .io_pg_offst = (APB_VIRT_BASE >> 18) & 0xfffc, | ||
119 | .map_io = pxa_map_io, | ||
120 | .init_irq = mmp2_init_irq, | ||
121 | .timer = &mmp2_timer, | ||
122 | .init_machine = flint_init, | ||
123 | MACHINE_END | ||
diff --git a/arch/arm/mach-mmp/include/mach/cputype.h b/arch/arm/mach-mmp/include/mach/cputype.h index 25e797b0908..83b18721d93 100644 --- a/arch/arm/mach-mmp/include/mach/cputype.h +++ b/arch/arm/mach-mmp/include/mach/cputype.h | |||
@@ -8,6 +8,7 @@ | |||
8 | * | 8 | * |
9 | * PXA168 A0 0x41159263 0x56158400 0x00A0A333 | 9 | * PXA168 A0 0x41159263 0x56158400 0x00A0A333 |
10 | * PXA910 Y0 0x41159262 0x56158000 0x00F0C910 | 10 | * PXA910 Y0 0x41159262 0x56158000 0x00F0C910 |
11 | * MMP2 Z0 0x560f5811 | ||
11 | */ | 12 | */ |
12 | 13 | ||
13 | #ifdef CONFIG_CPU_PXA168 | 14 | #ifdef CONFIG_CPU_PXA168 |
@@ -24,7 +25,15 @@ | |||
24 | # define __cpu_is_pxa910(id) (0) | 25 | # define __cpu_is_pxa910(id) (0) |
25 | #endif | 26 | #endif |
26 | 27 | ||
28 | #ifdef CONFIG_CPU_MMP2 | ||
29 | # define __cpu_is_mmp2(id) \ | ||
30 | ({ unsigned int _id = ((id) >> 8) & 0xff; _id == 0x58; }) | ||
31 | #else | ||
32 | # define __cpu_is_mmp2(id) (0) | ||
33 | #endif | ||
34 | |||
27 | #define cpu_is_pxa168() ({ __cpu_is_pxa168(read_cpuid_id()); }) | 35 | #define cpu_is_pxa168() ({ __cpu_is_pxa168(read_cpuid_id()); }) |
28 | #define cpu_is_pxa910() ({ __cpu_is_pxa910(read_cpuid_id()); }) | 36 | #define cpu_is_pxa910() ({ __cpu_is_pxa910(read_cpuid_id()); }) |
37 | #define cpu_is_mmp2() ({ __cpu_is_mmp2(read_cpuid_id()); }) | ||
29 | 38 | ||
30 | #endif /* __ASM_MACH_CPUTYPE_H */ | 39 | #endif /* __ASM_MACH_CPUTYPE_H */ |
diff --git a/arch/arm/mach-mmp/include/mach/devices.h b/arch/arm/mach-mmp/include/mach/devices.h index 24585397217..1fa0a492454 100644 --- a/arch/arm/mach-mmp/include/mach/devices.h +++ b/arch/arm/mach-mmp/include/mach/devices.h | |||
@@ -34,4 +34,16 @@ struct pxa_device_desc pxa910_device_##_name __initdata = { \ | |||
34 | .size = _size, \ | 34 | .size = _size, \ |
35 | .dma = { _dma }, \ | 35 | .dma = { _dma }, \ |
36 | }; | 36 | }; |
37 | |||
38 | #define MMP2_DEVICE(_name, _drv, _id, _irq, _start, _size, _dma...) \ | ||
39 | struct pxa_device_desc mmp2_device_##_name __initdata = { \ | ||
40 | .dev_name = "mmp2-" #_name, \ | ||
41 | .drv_name = _drv, \ | ||
42 | .id = _id, \ | ||
43 | .irq = IRQ_MMP2_##_irq, \ | ||
44 | .start = _start, \ | ||
45 | .size = _size, \ | ||
46 | .dma = { _dma }, \ | ||
47 | } | ||
48 | |||
37 | extern int pxa_register_device(struct pxa_device_desc *, void *, size_t); | 49 | extern int pxa_register_device(struct pxa_device_desc *, void *, size_t); |
diff --git a/arch/arm/mach-mmp/include/mach/entry-macro.S b/arch/arm/mach-mmp/include/mach/entry-macro.S index 6d3cd35478b..c42d9d4e892 100644 --- a/arch/arm/mach-mmp/include/mach/entry-macro.S +++ b/arch/arm/mach-mmp/include/mach/entry-macro.S | |||
@@ -15,7 +15,12 @@ | |||
15 | .endm | 15 | .endm |
16 | 16 | ||
17 | .macro get_irqnr_preamble, base, tmp | 17 | .macro get_irqnr_preamble, base, tmp |
18 | ldr \base, =ICU_AP_IRQ_SEL_INT_NUM | 18 | mrc p15, 0, \tmp, c0, c0, 0 @ CPUID |
19 | and \tmp, \tmp, #0xff00 | ||
20 | cmp \tmp, #0x5800 | ||
21 | ldr \base, =ICU_VIRT_BASE | ||
22 | addne \base, \base, #0x10c @ PJ1 AP INT SEL register | ||
23 | addeq \base, \base, #0x104 @ PJ4 IRQ SEL register | ||
19 | .endm | 24 | .endm |
20 | 25 | ||
21 | .macro get_irqnr_and_base, irqnr, irqstat, base, tmp | 26 | .macro get_irqnr_and_base, irqnr, irqstat, base, tmp |
diff --git a/arch/arm/mach-mmp/include/mach/irqs.h b/arch/arm/mach-mmp/include/mach/irqs.h index d68871b0f28..02701196ea0 100644 --- a/arch/arm/mach-mmp/include/mach/irqs.h +++ b/arch/arm/mach-mmp/include/mach/irqs.h | |||
@@ -113,10 +113,119 @@ | |||
113 | #define IRQ_PXA910_AP_PMU 60 | 113 | #define IRQ_PXA910_AP_PMU 60 |
114 | #define IRQ_PXA910_SM_INT 63 /* from PinMux */ | 114 | #define IRQ_PXA910_SM_INT 63 /* from PinMux */ |
115 | 115 | ||
116 | #define IRQ_GPIO_START 64 | 116 | /* |
117 | #define IRQ_GPIO_NUM 128 | 117 | * Interrupt numbers for MMP2 |
118 | */ | ||
119 | #define IRQ_MMP2_NONE (-1) | ||
120 | #define IRQ_MMP2_SSP1 0 | ||
121 | #define IRQ_MMP2_SSP2 1 | ||
122 | #define IRQ_MMP2_SSPA1 2 | ||
123 | #define IRQ_MMP2_SSPA2 3 | ||
124 | #define IRQ_MMP2_PMIC_MUX 4 /* PMIC & Charger */ | ||
125 | #define IRQ_MMP2_RTC_MUX 5 | ||
126 | #define IRQ_MMP2_TWSI1 7 | ||
127 | #define IRQ_MMP2_GPU 8 | ||
128 | #define IRQ_MMP2_KEYPAD 9 | ||
129 | #define IRQ_MMP2_ROTARY 10 | ||
130 | #define IRQ_MMP2_TRACKBALL 11 | ||
131 | #define IRQ_MMP2_ONEWIRE 12 | ||
132 | #define IRQ_MMP2_TIMER1 13 | ||
133 | #define IRQ_MMP2_TIMER2 14 | ||
134 | #define IRQ_MMP2_TIMER3 15 | ||
135 | #define IRQ_MMP2_RIPC 16 | ||
136 | #define IRQ_MMP2_TWSI_MUX 17 /* TWSI2 ~ TWSI6 */ | ||
137 | #define IRQ_MMP2_HDMI 19 | ||
138 | #define IRQ_MMP2_SSP3 20 | ||
139 | #define IRQ_MMP2_SSP4 21 | ||
140 | #define IRQ_MMP2_USB_HS1 22 | ||
141 | #define IRQ_MMP2_USB_HS2 23 | ||
142 | #define IRQ_MMP2_UART3 24 | ||
143 | #define IRQ_MMP2_UART1 27 | ||
144 | #define IRQ_MMP2_UART2 28 | ||
145 | #define IRQ_MMP2_MIPI_DSI 29 | ||
146 | #define IRQ_MMP2_CI2 30 | ||
147 | #define IRQ_MMP2_PMU_TIMER1 31 | ||
148 | #define IRQ_MMP2_PMU_TIMER2 32 | ||
149 | #define IRQ_MMP2_PMU_TIMER3 33 | ||
150 | #define IRQ_MMP2_USB_FS 34 | ||
151 | #define IRQ_MMP2_MISC_MUX 35 | ||
152 | #define IRQ_MMP2_WDT1 36 | ||
153 | #define IRQ_MMP2_NAND_DMA 37 | ||
154 | #define IRQ_MMP2_USIM 38 | ||
155 | #define IRQ_MMP2_MMC 39 | ||
156 | #define IRQ_MMP2_WTM 40 | ||
157 | #define IRQ_MMP2_LCD 41 | ||
158 | #define IRQ_MMP2_CI 42 | ||
159 | #define IRQ_MMP2_IRE 43 | ||
160 | #define IRQ_MMP2_USB_OTG 44 | ||
161 | #define IRQ_MMP2_NAND 45 | ||
162 | #define IRQ_MMP2_UART4 46 | ||
163 | #define IRQ_MMP2_DMA_FIQ 47 | ||
164 | #define IRQ_MMP2_DMA_RIQ 48 | ||
165 | #define IRQ_MMP2_GPIO 49 | ||
166 | #define IRQ_MMP2_SSP_MUX 51 | ||
167 | #define IRQ_MMP2_MMC2 52 | ||
168 | #define IRQ_MMP2_MMC3 53 | ||
169 | #define IRQ_MMP2_MMC4 54 | ||
170 | #define IRQ_MMP2_MIPI_HSI 55 | ||
171 | #define IRQ_MMP2_MSP 58 | ||
172 | #define IRQ_MMP2_MIPI_SLIM_DMA 59 | ||
173 | #define IRQ_MMP2_PJ4_FREQ_CHG 60 | ||
174 | #define IRQ_MMP2_MIPI_SLIM 62 | ||
175 | #define IRQ_MMP2_SM 63 | ||
176 | |||
177 | #define IRQ_MMP2_MUX_BASE 64 | ||
178 | |||
179 | /* secondary interrupt of INT #4 */ | ||
180 | #define IRQ_MMP2_PMIC_BASE (IRQ_MMP2_MUX_BASE) | ||
181 | #define IRQ_MMP2_CHARGER (IRQ_MMP2_PMIC_BASE + 0) | ||
182 | #define IRQ_MMP2_PMIC (IRQ_MMP2_PMIC_BASE + 1) | ||
183 | |||
184 | /* secondary interrupt of INT #5 */ | ||
185 | #define IRQ_MMP2_RTC_BASE (IRQ_MMP2_PMIC_BASE + 2) | ||
186 | #define IRQ_MMP2_RTC_ALARM (IRQ_MMP2_RTC_BASE + 0) | ||
187 | #define IRQ_MMP2_RTC (IRQ_MMP2_RTC_BASE + 1) | ||
188 | |||
189 | /* secondary interrupt of INT #17 */ | ||
190 | #define IRQ_MMP2_TWSI_BASE (IRQ_MMP2_RTC_BASE + 2) | ||
191 | #define IRQ_MMP2_TWSI2 (IRQ_MMP2_TWSI_BASE + 0) | ||
192 | #define IRQ_MMP2_TWSI3 (IRQ_MMP2_TWSI_BASE + 1) | ||
193 | #define IRQ_MMP2_TWSI4 (IRQ_MMP2_TWSI_BASE + 2) | ||
194 | #define IRQ_MMP2_TWSI5 (IRQ_MMP2_TWSI_BASE + 3) | ||
195 | #define IRQ_MMP2_TWSI6 (IRQ_MMP2_TWSI_BASE + 4) | ||
196 | |||
197 | /* secondary interrupt of INT #35 */ | ||
198 | #define IRQ_MMP2_MISC_BASE (IRQ_MMP2_TWSI_BASE + 5) | ||
199 | #define IRQ_MMP2_PERF (IRQ_MMP2_MISC_BASE + 0) | ||
200 | #define IRQ_MMP2_L2_PA_ECC (IRQ_MMP2_MISC_BASE + 1) | ||
201 | #define IRQ_MMP2_L2_ECC (IRQ_MMP2_MISC_BASE + 2) | ||
202 | #define IRQ_MMP2_L2_UECC (IRQ_MMP2_MISC_BASE + 3) | ||
203 | #define IRQ_MMP2_DDR (IRQ_MMP2_MISC_BASE + 4) | ||
204 | #define IRQ_MMP2_FAB0_TIMEOUT (IRQ_MMP2_MISC_BASE + 5) | ||
205 | #define IRQ_MMP2_FAB1_TIMEOUT (IRQ_MMP2_MISC_BASE + 6) | ||
206 | #define IRQ_MMP2_FAB2_TIMEOUT (IRQ_MMP2_MISC_BASE + 7) | ||
207 | #define IRQ_MMP2_THERMAL (IRQ_MMP2_MISC_BASE + 9) | ||
208 | #define IRQ_MMP2_MAIN_PMU (IRQ_MMP2_MISC_BASE + 10) | ||
209 | #define IRQ_MMP2_WDT2 (IRQ_MMP2_MISC_BASE + 11) | ||
210 | #define IRQ_MMP2_CORESIGHT (IRQ_MMP2_MISC_BASE + 12) | ||
211 | #define IRQ_MMP2_COMMTX (IRQ_MMP2_MISC_BASE + 13) | ||
212 | #define IRQ_MMP2_COMMRX (IRQ_MMP2_MISC_BASE + 14) | ||
213 | |||
214 | /* secondary interrupt of INT #51 */ | ||
215 | #define IRQ_MMP2_SSP_BASE (IRQ_MMP2_MISC_BASE + 15) | ||
216 | #define IRQ_MMP2_SSP1_SRDY (IRQ_MMP2_SSP_BASE + 0) | ||
217 | #define IRQ_MMP2_SSP3_SRDY (IRQ_MMP2_SSP_BASE + 1) | ||
218 | |||
219 | #define IRQ_MMP2_MUX_END (IRQ_MMP2_SSP_BASE + 2) | ||
220 | |||
221 | #define IRQ_GPIO_START 128 | ||
222 | #define IRQ_GPIO_NUM 192 | ||
118 | #define IRQ_GPIO(x) (IRQ_GPIO_START + (x)) | 223 | #define IRQ_GPIO(x) (IRQ_GPIO_START + (x)) |
119 | 224 | ||
120 | #define NR_IRQS (IRQ_GPIO_START + IRQ_GPIO_NUM) | 225 | /* Board IRQ - 64 by default, increase if not enough */ |
226 | #define IRQ_BOARD_START (IRQ_GPIO_START + IRQ_GPIO_NUM) | ||
227 | #define IRQ_BOARD_END (IRQ_BOARD_START + 64) | ||
228 | |||
229 | #define NR_IRQS (IRQ_BOARD_END) | ||
121 | 230 | ||
122 | #endif /* __ASM_MACH_IRQS_H */ | 231 | #endif /* __ASM_MACH_IRQS_H */ |
diff --git a/arch/arm/mach-mmp/include/mach/mfp-mmp2.h b/arch/arm/mach-mmp/include/mach/mfp-mmp2.h new file mode 100644 index 00000000000..9f9f8143e27 --- /dev/null +++ b/arch/arm/mach-mmp/include/mach/mfp-mmp2.h | |||
@@ -0,0 +1,240 @@ | |||
1 | #ifndef __ASM_MACH_MFP_MMP2_H | ||
2 | #define __ASM_MACH_MFP_MMP2_H | ||
3 | |||
4 | #include <mach/mfp.h> | ||
5 | |||
6 | #define MFP_DRIVE_VERY_SLOW (0x0 << 13) | ||
7 | #define MFP_DRIVE_SLOW (0x2 << 13) | ||
8 | #define MFP_DRIVE_MEDIUM (0x4 << 13) | ||
9 | #define MFP_DRIVE_FAST (0x8 << 13) | ||
10 | |||
11 | /* GPIO */ | ||
12 | |||
13 | /* DFI */ | ||
14 | #define GPIO108_DFI_D15 MFP_CFG(GPIO108, AF0) | ||
15 | #define GPIO109_DFI_D14 MFP_CFG(GPIO109, AF0) | ||
16 | #define GPIO110_DFI_D13 MFP_CFG(GPIO110, AF0) | ||
17 | #define GPIO161_DFI_D12 MFP_CFG(GPIO161, AF0) | ||
18 | #define GPIO162_DFI_D11 MFP_CFG(GPIO162, AF0) | ||
19 | #define GPIO163_DFI_D10 MFP_CFG(GPIO163, AF0) | ||
20 | #define GPIO164_DFI_D9 MFP_CFG(GPIO164, AF0) | ||
21 | #define GPIO111_DFI_D8 MFP_CFG(GPIO111, AF0) | ||
22 | #define GPIO104_DFI_D7 MFP_CFG(GPIO104, AF0) | ||
23 | #define GPIO105_DFI_D6 MFP_CFG(GPIO105, AF0) | ||
24 | #define GPIO106_DFI_D5 MFP_CFG(GPIO106, AF0) | ||
25 | #define GPIO107_DFI_D4 MFP_CFG(GPIO107, AF0) | ||
26 | #define GPIO165_DFI_D3 MFP_CFG(GPIO165, AF0) | ||
27 | #define GPIO166_DFI_D2 MFP_CFG(GPIO166, AF0) | ||
28 | #define GPIO167_DFI_D1 MFP_CFG(GPIO167, AF0) | ||
29 | #define GPIO168_DFI_D0 MFP_CFG(GPIO168, AF0) | ||
30 | #define GPIO143_ND_nCS0 MFP_CFG(GPIO143, AF0) | ||
31 | #define GPIO144_ND_nCS1 MFP_CFG(GPIO144, AF0) | ||
32 | #define GPIO147_ND_nWE MFP_CFG(GPIO147, AF0) | ||
33 | #define GPIO148_ND_nRE MFP_CFG(GPIO148, AF0) | ||
34 | #define GPIO150_ND_ALE MFP_CFG(GPIO150, AF0) | ||
35 | #define GPIO149_ND_CLE MFP_CFG(GPIO149, AF0) | ||
36 | #define GPIO112_ND_RDY0 MFP_CFG(GPIO112, AF0) | ||
37 | #define GPIO160_ND_RDY1 MFP_CFG(GPIO160, AF0) | ||
38 | |||
39 | /* Static Memory Controller */ | ||
40 | #define GPIO145_SMC_nCS0 MFP_CFG(GPIO145, AF0) | ||
41 | #define GPIO146_SMC_nCS1 MFP_CFG(GPIO146, AF0) | ||
42 | #define GPIO152_SMC_BE0 MFP_CFG(GPIO152, AF0) | ||
43 | #define GPIO153_SMC_BE1 MFP_CFG(GPIO153, AF0) | ||
44 | #define GPIO154_SMC_IRQ MFP_CFG(GPIO154, AF0) | ||
45 | #define GPIO113_SMC_RDY MFP_CFG(GPIO113, AF0) | ||
46 | #define GPIO151_SMC_SCLK MFP_CFG(GPIO151, AF0) | ||
47 | |||
48 | /* Ethernet */ | ||
49 | #define GPIO155_SM_ADVMUX MFP_CFG(GPIO155, AF2) | ||
50 | #define GPIO155_GPIO155 MFP_CFG(GPIO155, AF1) | ||
51 | |||
52 | /* UART1 */ | ||
53 | #define GPIO45_UART1_RXD MFP_CFG(GPIO45, AF1) | ||
54 | #define GPIO46_UART1_TXD MFP_CFG(GPIO46, AF1) | ||
55 | #define GPIO29_UART1_RXD MFP_CFG(GPIO29, AF1) | ||
56 | #define GPIO30_UART1_TXD MFP_CFG(GPIO30, AF1) | ||
57 | #define GPIO31_UART1_CTS MFP_CFG(GPIO31, AF1) | ||
58 | #define GPIO32_UART1_RTS MFP_CFG(GPIO32, AF1) | ||
59 | |||
60 | /* UART2 */ | ||
61 | #define GPIO47_UART2_RXD MFP_CFG(GPIO47, AF1) | ||
62 | #define GPIO48_UART2_TXD MFP_CFG(GPIO48, AF1) | ||
63 | #define GPIO49_UART2_CTS MFP_CFG(GPIO49, AF1) | ||
64 | #define GPIO50_UART2_RTS MFP_CFG(GPIO50, AF1) | ||
65 | |||
66 | /* UART3 */ | ||
67 | #define GPIO51_UART3_RXD MFP_CFG(GPIO51, AF1) | ||
68 | #define GPIO52_UART3_TXD MFP_CFG(GPIO52, AF1) | ||
69 | #define GPIO53_UART3_CTS MFP_CFG(GPIO53, AF1) | ||
70 | #define GPIO54_UART3_RTS MFP_CFG(GPIO54, AF1) | ||
71 | |||
72 | /* MMC1 */ | ||
73 | #define GPIO124_MMC1_DAT7 MFP_CFG_DRV(GPIO124, AF1, FAST) | ||
74 | #define GPIO125_MMC1_DAT6 MFP_CFG_DRV(GPIO125, AF1, FAST) | ||
75 | #define GPIO129_MMC1_DAT5 MFP_CFG_DRV(GPIO129, AF1, FAST) | ||
76 | #define GPIO130_MMC1_DAT4 MFP_CFG_DRV(GPIO130, AF1, FAST) | ||
77 | #define GPIO131_MMC1_DAT3 MFP_CFG_DRV(GPIO131, AF1, FAST) | ||
78 | #define GPIO132_MMC1_DAT2 MFP_CFG_DRV(GPIO132, AF1, FAST) | ||
79 | #define GPIO133_MMC1_DAT1 MFP_CFG_DRV(GPIO133, AF1, FAST) | ||
80 | #define GPIO134_MMC1_DAT0 MFP_CFG_DRV(GPIO134, AF1, FAST) | ||
81 | #define GPIO136_MMC1_CMD MFP_CFG_DRV(GPIO136, AF1, FAST) | ||
82 | #define GPIO139_MMC1_CLK MFP_CFG_DRV(GPIO139, AF1, FAST) | ||
83 | #define GPIO140_MMC1_CD MFP_CFG_DRV(GPIO140, AF1, FAST) | ||
84 | #define GPIO141_MMC1_WP MFP_CFG_DRV(GPIO141, AF1, FAST) | ||
85 | |||
86 | /*MMC2*/ | ||
87 | #define GPIO37_MMC2_DAT3 MFP_CFG_DRV(GPIO37, AF1, FAST) | ||
88 | #define GPIO38_MMC2_DAT2 MFP_CFG_DRV(GPIO38, AF1, FAST) | ||
89 | #define GPIO39_MMC2_DAT1 MFP_CFG_DRV(GPIO39, AF1, FAST) | ||
90 | #define GPIO40_MMC2_DAT0 MFP_CFG_DRV(GPIO40, AF1, FAST) | ||
91 | #define GPIO41_MMC2_CMD MFP_CFG_DRV(GPIO41, AF1, FAST) | ||
92 | #define GPIO42_MMC2_CLK MFP_CFG_DRV(GPIO42, AF1, FAST) | ||
93 | |||
94 | /*MMC3*/ | ||
95 | #define GPIO165_MMC3_DAT7 MFP_CFG_DRV(GPIO165, AF2, FAST) | ||
96 | #define GPIO162_MMC3_DAT6 MFP_CFG_DRV(GPIO162, AF2, FAST) | ||
97 | #define GPIO166_MMC3_DAT5 MFP_CFG_DRV(GPIO166, AF2, FAST) | ||
98 | #define GPIO163_MMC3_DAT4 MFP_CFG_DRV(GPIO163, AF2, FAST) | ||
99 | #define GPIO167_MMC3_DAT3 MFP_CFG_DRV(GPIO167, AF2, FAST) | ||
100 | #define GPIO164_MMC3_DAT2 MFP_CFG_DRV(GPIO164, AF2, FAST) | ||
101 | #define GPIO168_MMC3_DAT1 MFP_CFG_DRV(GPIO168, AF2, FAST) | ||
102 | #define GPIO111_MMC3_DAT0 MFP_CFG_DRV(GPIO111, AF2, FAST) | ||
103 | #define GPIO112_MMC3_CMD MFP_CFG_DRV(GPIO112, AF2, FAST) | ||
104 | #define GPIO151_MMC3_CLK MFP_CFG_DRV(GPIO151, AF2, FAST) | ||
105 | |||
106 | /* LCD */ | ||
107 | #define GPIO74_LCD_FCLK MFP_CFG_DRV(GPIO74, AF1, FAST) | ||
108 | #define GPIO75_LCD_LCLK MFP_CFG_DRV(GPIO75, AF1, FAST) | ||
109 | #define GPIO76_LCD_PCLK MFP_CFG_DRV(GPIO76, AF1, FAST) | ||
110 | #define GPIO77_LCD_DENA MFP_CFG_DRV(GPIO77, AF1, FAST) | ||
111 | #define GPIO78_LCD_DD0 MFP_CFG_DRV(GPIO78, AF1, FAST) | ||
112 | #define GPIO79_LCD_DD1 MFP_CFG_DRV(GPIO79, AF1, FAST) | ||
113 | #define GPIO80_LCD_DD2 MFP_CFG_DRV(GPIO80, AF1, FAST) | ||
114 | #define GPIO81_LCD_DD3 MFP_CFG_DRV(GPIO81, AF1, FAST) | ||
115 | #define GPIO82_LCD_DD4 MFP_CFG_DRV(GPIO82, AF1, FAST) | ||
116 | #define GPIO83_LCD_DD5 MFP_CFG_DRV(GPIO83, AF1, FAST) | ||
117 | #define GPIO84_LCD_DD6 MFP_CFG_DRV(GPIO84, AF1, FAST) | ||
118 | #define GPIO85_LCD_DD7 MFP_CFG_DRV(GPIO85, AF1, FAST) | ||
119 | #define GPIO86_LCD_DD8 MFP_CFG_DRV(GPIO86, AF1, FAST) | ||
120 | #define GPIO87_LCD_DD9 MFP_CFG_DRV(GPIO87, AF1, FAST) | ||
121 | #define GPIO88_LCD_DD10 MFP_CFG_DRV(GPIO88, AF1, FAST) | ||
122 | #define GPIO89_LCD_DD11 MFP_CFG_DRV(GPIO89, AF1, FAST) | ||
123 | #define GPIO90_LCD_DD12 MFP_CFG_DRV(GPIO90, AF1, FAST) | ||
124 | #define GPIO91_LCD_DD13 MFP_CFG_DRV(GPIO91, AF1, FAST) | ||
125 | #define GPIO92_LCD_DD14 MFP_CFG_DRV(GPIO92, AF1, FAST) | ||
126 | #define GPIO93_LCD_DD15 MFP_CFG_DRV(GPIO93, AF1, FAST) | ||
127 | #define GPIO94_LCD_DD16 MFP_CFG_DRV(GPIO94, AF1, FAST) | ||
128 | #define GPIO95_LCD_DD17 MFP_CFG_DRV(GPIO95, AF1, FAST) | ||
129 | #define GPIO96_LCD_DD18 MFP_CFG_DRV(GPIO96, AF1, FAST) | ||
130 | #define GPIO97_LCD_DD19 MFP_CFG_DRV(GPIO97, AF1, FAST) | ||
131 | #define GPIO98_LCD_DD20 MFP_CFG_DRV(GPIO98, AF1, FAST) | ||
132 | #define GPIO99_LCD_DD21 MFP_CFG_DRV(GPIO99, AF1, FAST) | ||
133 | #define GPIO100_LCD_DD22 MFP_CFG_DRV(GPIO100, AF1, FAST) | ||
134 | #define GPIO101_LCD_DD23 MFP_CFG_DRV(GPIO101, AF1, FAST) | ||
135 | #define GPIO94_SPI_DCLK MFP_CFG_DRV(GPIO94, AF3, FAST) | ||
136 | #define GPIO95_SPI_CS0 MFP_CFG_DRV(GPIO95, AF3, FAST) | ||
137 | #define GPIO96_SPI_DIN MFP_CFG_DRV(GPIO96, AF3, FAST) | ||
138 | #define GPIO97_SPI_DOUT MFP_CFG_DRV(GPIO97, AF3, FAST) | ||
139 | #define GPIO98_LCD_RST MFP_CFG_DRV(GPIO98, AF0, FAST) | ||
140 | |||
141 | #define GPIO114_MN_CLK_OUT MFP_CFG_DRV(GPIO114, AF1, FAST) | ||
142 | |||
143 | /*LCD TV path*/ | ||
144 | #define GPIO124_LCD_DD24 MFP_CFG_DRV(GPIO124, AF2, FAST) | ||
145 | #define GPIO125_LCD_DD25 MFP_CFG_DRV(GPIO125, AF2, FAST) | ||
146 | #define GPIO126_LCD_DD33 MFP_CFG_DRV(GPIO126, AF2, FAST) | ||
147 | #define GPIO127_LCD_DD26 MFP_CFG_DRV(GPIO127, AF2, FAST) | ||
148 | #define GPIO128_LCD_DD27 MFP_CFG_DRV(GPIO128, AF2, FAST) | ||
149 | #define GPIO129_LCD_DD28 MFP_CFG_DRV(GPIO129, AF2, FAST) | ||
150 | #define GPIO130_LCD_DD29 MFP_CFG_DRV(GPIO130, AF2, FAST) | ||
151 | #define GPIO135_LCD_DD30 MFP_CFG_DRV(GPIO135, AF2, FAST) | ||
152 | #define GPIO137_LCD_DD31 MFP_CFG_DRV(GPIO137, AF2, FAST) | ||
153 | #define GPIO138_LCD_DD32 MFP_CFG_DRV(GPIO138, AF2, FAST) | ||
154 | #define GPIO140_LCD_DD34 MFP_CFG_DRV(GPIO140, AF2, FAST) | ||
155 | #define GPIO141_LCD_DD35 MFP_CFG_DRV(GPIO141, AF2, FAST) | ||
156 | |||
157 | /* I2C */ | ||
158 | #define GPIO43_TWSI2_SCL MFP_CFG_DRV(GPIO43, AF1, SLOW) | ||
159 | #define GPIO44_TWSI2_SDA MFP_CFG_DRV(GPIO44, AF1, SLOW) | ||
160 | #define GPIO71_TWSI3_SCL MFP_CFG_DRV(GPIO71, AF1, SLOW) | ||
161 | #define GPIO72_TWSI3_SDA MFP_CFG_DRV(GPIO72, AF1, SLOW) | ||
162 | #define GPIO99_TWSI5_SCL MFP_CFG_DRV(GPIO99, AF4, SLOW) | ||
163 | #define GPIO100_TWSI5_SDA MFP_CFG_DRV(GPIO100, AF4, SLOW) | ||
164 | #define GPIO97_TWSI6_SCL MFP_CFG_DRV(GPIO97, AF2, SLOW) | ||
165 | #define GPIO98_TWSI6_SDA MFP_CFG_DRV(GPIO98, AF2, SLOW) | ||
166 | |||
167 | /* SSPA1 */ | ||
168 | #define GPIO24_I2S_SYSCLK MFP_CFG(GPIO24, AF1) | ||
169 | #define GPIO25_I2S_BITCLK MFP_CFG(GPIO25, AF1) | ||
170 | #define GPIO26_I2S_SYNC MFP_CFG(GPIO26, AF1) | ||
171 | #define GPIO27_I2S_DATA_OUT MFP_CFG(GPIO27, AF1) | ||
172 | #define GPIO28_I2S_SDATA_IN MFP_CFG(GPIO28, AF1) | ||
173 | #define GPIO114_I2S_MCLK MFP_CFG(GPIO114, AF1) | ||
174 | |||
175 | /* SSPA2 */ | ||
176 | #define GPIO33_SSPA2_CLK MFP_CFG(GPIO33, AF1) | ||
177 | #define GPIO34_SSPA2_FRM MFP_CFG(GPIO34, AF1) | ||
178 | #define GPIO35_SSPA2_TXD MFP_CFG(GPIO35, AF1) | ||
179 | #define GPIO36_SSPA2_RXD MFP_CFG(GPIO36, AF1) | ||
180 | |||
181 | /* Keypad */ | ||
182 | #define GPIO00_KP_MKIN0 MFP_CFG(GPIO0, AF1) | ||
183 | #define GPIO01_KP_MKOUT0 MFP_CFG(GPIO1, AF1) | ||
184 | #define GPIO02_KP_MKIN1 MFP_CFG(GPIO2, AF1) | ||
185 | #define GPIO03_KP_MKOUT1 MFP_CFG(GPIO3, AF1) | ||
186 | #define GPIO04_KP_MKIN2 MFP_CFG(GPIO4, AF1) | ||
187 | #define GPIO05_KP_MKOUT2 MFP_CFG(GPIO5, AF1) | ||
188 | #define GPIO06_KP_MKIN3 MFP_CFG(GPIO6, AF1) | ||
189 | #define GPIO07_KP_MKOUT3 MFP_CFG(GPIO7, AF1) | ||
190 | #define GPIO08_KP_MKIN4 MFP_CFG(GPIO8, AF1) | ||
191 | #define GPIO09_KP_MKOUT4 MFP_CFG(GPIO9, AF1) | ||
192 | #define GPIO10_KP_MKIN5 MFP_CFG(GPIO10, AF1) | ||
193 | #define GPIO11_KP_MKOUT5 MFP_CFG(GPIO11, AF1) | ||
194 | #define GPIO12_KP_MKIN6 MFP_CFG(GPIO12, AF1) | ||
195 | #define GPIO13_KP_MKOUT6 MFP_CFG(GPIO13, AF1) | ||
196 | #define GPIO14_KP_MKIN7 MFP_CFG(GPIO14, AF1) | ||
197 | #define GPIO15_KP_MKOUT7 MFP_CFG(GPIO15, AF1) | ||
198 | #define GPIO16_KP_DKIN0 MFP_CFG(GPIO16, AF1) | ||
199 | #define GPIO17_KP_DKIN1 MFP_CFG(GPIO17, AF1) | ||
200 | #define GPIO18_KP_DKIN2 MFP_CFG(GPIO18, AF1) | ||
201 | #define GPIO19_KP_DKIN3 MFP_CFG(GPIO19, AF1) | ||
202 | #define GPIO20_KP_DKIN4 MFP_CFG(GPIO20, AF1) | ||
203 | #define GPIO21_KP_DKIN5 MFP_CFG(GPIO21, AF1) | ||
204 | #define GPIO22_KP_DKIN6 MFP_CFG(GPIO22, AF1) | ||
205 | #define GPIO23_KP_DKIN7 MFP_CFG(GPIO23, AF1) | ||
206 | |||
207 | /* CAMERA */ | ||
208 | #define GPIO59_CCIC_IN7 MFP_CFG_DRV(GPIO59, AF1, FAST) | ||
209 | #define GPIO60_CCIC_IN6 MFP_CFG_DRV(GPIO60, AF1, FAST) | ||
210 | #define GPIO61_CCIC_IN5 MFP_CFG_DRV(GPIO61, AF1, FAST) | ||
211 | #define GPIO62_CCIC_IN4 MFP_CFG_DRV(GPIO62, AF1, FAST) | ||
212 | #define GPIO63_CCIC_IN3 MFP_CFG_DRV(GPIO63, AF1, FAST) | ||
213 | #define GPIO64_CCIC_IN2 MFP_CFG_DRV(GPIO64, AF1, FAST) | ||
214 | #define GPIO65_CCIC_IN1 MFP_CFG_DRV(GPIO65, AF1, FAST) | ||
215 | #define GPIO66_CCIC_IN0 MFP_CFG_DRV(GPIO66, AF1, FAST) | ||
216 | #define GPIO67_CAM_HSYNC MFP_CFG_DRV(GPIO67, AF1, FAST) | ||
217 | #define GPIO68_CAM_VSYNC MFP_CFG_DRV(GPIO68, AF1, FAST) | ||
218 | #define GPIO69_CAM_MCLK MFP_CFG_DRV(GPIO69, AF1, FAST) | ||
219 | #define GPIO70_CAM_PCLK MFP_CFG_DRV(GPIO70, AF1, FAST) | ||
220 | |||
221 | /* Wifi */ | ||
222 | #define GPIO45_GPIO45 MFP_CFG(GPIO45, AF0) | ||
223 | #define GPIO46_GPIO46 MFP_CFG(GPIO46, AF0) | ||
224 | #define GPIO21_GPIO21 MFP_CFG(GPIO21, AF0) | ||
225 | #define GPIO22_GPIO22 MFP_CFG(GPIO22, AF0) | ||
226 | #define GPIO55_GPIO55 MFP_CFG(GPIO55, AF0) | ||
227 | #define GPIO56_GPIO56 MFP_CFG(GPIO56, AF0) | ||
228 | #define GPIO57_GPIO57 MFP_CFG(GPIO57, AF0) | ||
229 | #define GPIO58_GPIO58 MFP_CFG(GPIO58, AF0) | ||
230 | |||
231 | /* Codec*/ | ||
232 | #define GPIO23_GPIO23 MFP_CFG(GPIO23, AF0) | ||
233 | |||
234 | #define GPIO101_GPIO101 MFP_CFG(GPIO101, AF0) | ||
235 | |||
236 | /* PMIC */ | ||
237 | #define PMIC_PMIC_INT MFP_CFG(PMIC_INT, AF0) | ||
238 | |||
239 | #endif /* __ASM_MACH_MFP_MMP2_H */ | ||
240 | |||
diff --git a/arch/arm/mach-mmp/include/mach/mfp-pxa168.h b/arch/arm/mach-mmp/include/mach/mfp-pxa168.h index 3b216bf41e7..ded43c455ec 100644 --- a/arch/arm/mach-mmp/include/mach/mfp-pxa168.h +++ b/arch/arm/mach-mmp/include/mach/mfp-pxa168.h | |||
@@ -193,7 +193,9 @@ | |||
193 | #define GPIO32_CF_nCD1 MFP_CFG(GPIO32, AF3) | 193 | #define GPIO32_CF_nCD1 MFP_CFG(GPIO32, AF3) |
194 | #define GPIO33_CF_nCD2 MFP_CFG(GPIO33, AF3) | 194 | #define GPIO33_CF_nCD2 MFP_CFG(GPIO33, AF3) |
195 | 195 | ||
196 | /* UART1 */ | 196 | /* UART */ |
197 | #define GPIO88_UART2_TXD MFP_CFG(GPIO88, AF2) | ||
198 | #define GPIO89_UART2_RXD MFP_CFG(GPIO89, AF2) | ||
197 | #define GPIO107_UART1_TXD MFP_CFG_DRV(GPIO107, AF1, FAST) | 199 | #define GPIO107_UART1_TXD MFP_CFG_DRV(GPIO107, AF1, FAST) |
198 | #define GPIO107_UART1_RXD MFP_CFG_DRV(GPIO107, AF2, FAST) | 200 | #define GPIO107_UART1_RXD MFP_CFG_DRV(GPIO107, AF2, FAST) |
199 | #define GPIO108_UART1_RXD MFP_CFG_DRV(GPIO108, AF1, FAST) | 201 | #define GPIO108_UART1_RXD MFP_CFG_DRV(GPIO108, AF1, FAST) |
diff --git a/arch/arm/mach-mmp/include/mach/mmp2.h b/arch/arm/mach-mmp/include/mach/mmp2.h new file mode 100644 index 00000000000..459f3be9cfb --- /dev/null +++ b/arch/arm/mach-mmp/include/mach/mmp2.h | |||
@@ -0,0 +1,60 @@ | |||
1 | #ifndef __ASM_MACH_MMP2_H | ||
2 | #define __ASM_MACH_MMP2_H | ||
3 | |||
4 | #include <linux/i2c.h> | ||
5 | #include <mach/devices.h> | ||
6 | #include <plat/i2c.h> | ||
7 | |||
8 | extern struct pxa_device_desc mmp2_device_uart1; | ||
9 | extern struct pxa_device_desc mmp2_device_uart2; | ||
10 | extern struct pxa_device_desc mmp2_device_uart3; | ||
11 | extern struct pxa_device_desc mmp2_device_uart4; | ||
12 | extern struct pxa_device_desc mmp2_device_twsi1; | ||
13 | extern struct pxa_device_desc mmp2_device_twsi2; | ||
14 | extern struct pxa_device_desc mmp2_device_twsi3; | ||
15 | extern struct pxa_device_desc mmp2_device_twsi4; | ||
16 | extern struct pxa_device_desc mmp2_device_twsi5; | ||
17 | extern struct pxa_device_desc mmp2_device_twsi6; | ||
18 | |||
19 | static inline int mmp2_add_uart(int id) | ||
20 | { | ||
21 | struct pxa_device_desc *d = NULL; | ||
22 | |||
23 | switch (id) { | ||
24 | case 1: d = &mmp2_device_uart1; break; | ||
25 | case 2: d = &mmp2_device_uart2; break; | ||
26 | case 3: d = &mmp2_device_uart3; break; | ||
27 | case 4: d = &mmp2_device_uart4; break; | ||
28 | default: | ||
29 | return -EINVAL; | ||
30 | } | ||
31 | |||
32 | return pxa_register_device(d, NULL, 0); | ||
33 | } | ||
34 | |||
35 | static inline int mmp2_add_twsi(int id, struct i2c_pxa_platform_data *data, | ||
36 | struct i2c_board_info *info, unsigned size) | ||
37 | { | ||
38 | struct pxa_device_desc *d = NULL; | ||
39 | int ret; | ||
40 | |||
41 | switch (id) { | ||
42 | case 0: d = &mmp2_device_twsi1; break; | ||
43 | case 1: d = &mmp2_device_twsi2; break; | ||
44 | case 2: d = &mmp2_device_twsi3; break; | ||
45 | case 3: d = &mmp2_device_twsi4; break; | ||
46 | case 4: d = &mmp2_device_twsi5; break; | ||
47 | case 5: d = &mmp2_device_twsi6; break; | ||
48 | default: | ||
49 | return -EINVAL; | ||
50 | } | ||
51 | |||
52 | ret = i2c_register_board_info(id, info, size); | ||
53 | if (ret) | ||
54 | return ret; | ||
55 | |||
56 | return pxa_register_device(d, data, sizeof(*data)); | ||
57 | } | ||
58 | |||
59 | #endif /* __ASM_MACH_MMP2_H */ | ||
60 | |||
diff --git a/arch/arm/mach-mmp/include/mach/regs-apbc.h b/arch/arm/mach-mmp/include/mach/regs-apbc.h index 98ccbee4bd0..712af03fd1a 100644 --- a/arch/arm/mach-mmp/include/mach/regs-apbc.h +++ b/arch/arm/mach-mmp/include/mach/regs-apbc.h | |||
@@ -69,6 +69,47 @@ | |||
69 | #define APBC_PXA910_ASFAR APBC_REG(0x050) | 69 | #define APBC_PXA910_ASFAR APBC_REG(0x050) |
70 | #define APBC_PXA910_ASSAR APBC_REG(0x054) | 70 | #define APBC_PXA910_ASSAR APBC_REG(0x054) |
71 | 71 | ||
72 | /* | ||
73 | * APB Clock register offsets for MMP2 | ||
74 | */ | ||
75 | #define APBC_MMP2_RTC APBC_REG(0x000) | ||
76 | #define APBC_MMP2_TWSI1 APBC_REG(0x004) | ||
77 | #define APBC_MMP2_TWSI2 APBC_REG(0x008) | ||
78 | #define APBC_MMP2_TWSI3 APBC_REG(0x00c) | ||
79 | #define APBC_MMP2_TWSI4 APBC_REG(0x010) | ||
80 | #define APBC_MMP2_ONEWIRE APBC_REG(0x014) | ||
81 | #define APBC_MMP2_KPC APBC_REG(0x018) | ||
82 | #define APBC_MMP2_TB_ROTARY APBC_REG(0x01c) | ||
83 | #define APBC_MMP2_SW_JTAG APBC_REG(0x020) | ||
84 | #define APBC_MMP2_TIMERS APBC_REG(0x024) | ||
85 | #define APBC_MMP2_UART1 APBC_REG(0x02c) | ||
86 | #define APBC_MMP2_UART2 APBC_REG(0x030) | ||
87 | #define APBC_MMP2_UART3 APBC_REG(0x034) | ||
88 | #define APBC_MMP2_GPIO APBC_REG(0x038) | ||
89 | #define APBC_MMP2_PWM0 APBC_REG(0x03c) | ||
90 | #define APBC_MMP2_PWM1 APBC_REG(0x040) | ||
91 | #define APBC_MMP2_PWM2 APBC_REG(0x044) | ||
92 | #define APBC_MMP2_PWM3 APBC_REG(0x048) | ||
93 | #define APBC_MMP2_SSP0 APBC_REG(0x04c) | ||
94 | #define APBC_MMP2_SSP1 APBC_REG(0x050) | ||
95 | #define APBC_MMP2_SSP2 APBC_REG(0x054) | ||
96 | #define APBC_MMP2_SSP3 APBC_REG(0x058) | ||
97 | #define APBC_MMP2_SSP4 APBC_REG(0x05c) | ||
98 | #define APBC_MMP2_SSP5 APBC_REG(0x060) | ||
99 | #define APBC_MMP2_AIB APBC_REG(0x064) | ||
100 | #define APBC_MMP2_ASFAR APBC_REG(0x068) | ||
101 | #define APBC_MMP2_ASSAR APBC_REG(0x06c) | ||
102 | #define APBC_MMP2_USIM APBC_REG(0x070) | ||
103 | #define APBC_MMP2_MPMU APBC_REG(0x074) | ||
104 | #define APBC_MMP2_IPC APBC_REG(0x078) | ||
105 | #define APBC_MMP2_TWSI5 APBC_REG(0x07c) | ||
106 | #define APBC_MMP2_TWSI6 APBC_REG(0x080) | ||
107 | #define APBC_MMP2_TWSI_INTSTS APBC_REG(0x084) | ||
108 | #define APBC_MMP2_UART4 APBC_REG(0x088) | ||
109 | #define APBC_MMP2_RIPC APBC_REG(0x08c) | ||
110 | #define APBC_MMP2_THSENS1 APBC_REG(0x090) /* Thermal Sensor */ | ||
111 | #define APBC_MMP2_THSENS_INTSTS APBC_REG(0x0a4) | ||
112 | |||
72 | /* Common APB clock register bit definitions */ | 113 | /* Common APB clock register bit definitions */ |
73 | #define APBC_APBCLK (1 << 0) /* APB Bus Clock Enable */ | 114 | #define APBC_APBCLK (1 << 0) /* APB Bus Clock Enable */ |
74 | #define APBC_FNCLK (1 << 1) /* Functional Clock Enable */ | 115 | #define APBC_FNCLK (1 << 1) /* Functional Clock Enable */ |
diff --git a/arch/arm/mach-mmp/include/mach/regs-icu.h b/arch/arm/mach-mmp/include/mach/regs-icu.h index e5f08723e0c..f882d91894b 100644 --- a/arch/arm/mach-mmp/include/mach/regs-icu.h +++ b/arch/arm/mach-mmp/include/mach/regs-icu.h | |||
@@ -17,10 +17,12 @@ | |||
17 | #define ICU_REG(x) (ICU_VIRT_BASE + (x)) | 17 | #define ICU_REG(x) (ICU_VIRT_BASE + (x)) |
18 | 18 | ||
19 | #define ICU_INT_CONF(n) ICU_REG((n) << 2) | 19 | #define ICU_INT_CONF(n) ICU_REG((n) << 2) |
20 | #define ICU_INT_CONF_MASK (0xf) | ||
21 | |||
22 | /************ PXA168/PXA910 (MMP) *********************/ | ||
20 | #define ICU_INT_CONF_AP_INT (1 << 6) | 23 | #define ICU_INT_CONF_AP_INT (1 << 6) |
21 | #define ICU_INT_CONF_CP_INT (1 << 5) | 24 | #define ICU_INT_CONF_CP_INT (1 << 5) |
22 | #define ICU_INT_CONF_IRQ (1 << 4) | 25 | #define ICU_INT_CONF_IRQ (1 << 4) |
23 | #define ICU_INT_CONF_MASK (0xf) | ||
24 | 26 | ||
25 | #define ICU_AP_FIQ_SEL_INT_NUM ICU_REG(0x108) /* AP FIQ Selected Interrupt */ | 27 | #define ICU_AP_FIQ_SEL_INT_NUM ICU_REG(0x108) /* AP FIQ Selected Interrupt */ |
26 | #define ICU_AP_IRQ_SEL_INT_NUM ICU_REG(0x10C) /* AP IRQ Selected Interrupt */ | 28 | #define ICU_AP_IRQ_SEL_INT_NUM ICU_REG(0x10C) /* AP IRQ Selected Interrupt */ |
@@ -28,4 +30,42 @@ | |||
28 | #define ICU_INT_STATUS_0 ICU_REG(0x128) /* Interrupt Stuats 0 */ | 30 | #define ICU_INT_STATUS_0 ICU_REG(0x128) /* Interrupt Stuats 0 */ |
29 | #define ICU_INT_STATUS_1 ICU_REG(0x12C) /* Interrupt Status 1 */ | 31 | #define ICU_INT_STATUS_1 ICU_REG(0x12C) /* Interrupt Status 1 */ |
30 | 32 | ||
33 | /************************** MMP2 ***********************/ | ||
34 | |||
35 | /* | ||
36 | * IRQ0/FIQ0 is routed to SP IRQ/FIQ. | ||
37 | * IRQ1 is routed to PJ4 IRQ, and IRQ2 is routes to PJ4 FIQ. | ||
38 | */ | ||
39 | #define ICU_INT_ROUTE_SP_IRQ (1 << 4) | ||
40 | #define ICU_INT_ROUTE_PJ4_IRQ (1 << 5) | ||
41 | #define ICU_INT_ROUTE_PJ4_FIQ (1 << 6) | ||
42 | |||
43 | #define MMP2_ICU_PJ4_IRQ_STATUS0 ICU_REG(0x138) | ||
44 | #define MMP2_ICU_PJ4_IRQ_STATUS1 ICU_REG(0x13c) | ||
45 | #define MMP2_ICU_PJ4_FIQ_STATUS0 ICU_REG(0x140) | ||
46 | #define MMP2_ICU_PJ4_FIQ_STATUS1 ICU_REG(0x144) | ||
47 | |||
48 | #define MMP2_ICU_INT4_STATUS ICU_REG(0x150) | ||
49 | #define MMP2_ICU_INT5_STATUS ICU_REG(0x154) | ||
50 | #define MMP2_ICU_INT17_STATUS ICU_REG(0x158) | ||
51 | #define MMP2_ICU_INT35_STATUS ICU_REG(0x15c) | ||
52 | #define MMP2_ICU_INT51_STATUS ICU_REG(0x160) | ||
53 | |||
54 | #define MMP2_ICU_INT4_MASK ICU_REG(0x168) | ||
55 | #define MMP2_ICU_INT5_MASK ICU_REG(0x16C) | ||
56 | #define MMP2_ICU_INT17_MASK ICU_REG(0x170) | ||
57 | #define MMP2_ICU_INT35_MASK ICU_REG(0x174) | ||
58 | #define MMP2_ICU_INT51_MASK ICU_REG(0x178) | ||
59 | |||
60 | #define MMP2_ICU_SP_IRQ_SEL ICU_REG(0x100) | ||
61 | #define MMP2_ICU_PJ4_IRQ_SEL ICU_REG(0x104) | ||
62 | #define MMP2_ICU_PJ4_FIQ_SEL ICU_REG(0x108) | ||
63 | |||
64 | #define MMP2_ICU_INVERT ICU_REG(0x164) | ||
65 | |||
66 | #define MMP2_ICU_INV_PMIC (1 << 0) | ||
67 | #define MMP2_ICU_INV_PERF (1 << 1) | ||
68 | #define MMP2_ICU_INV_COMMTX (1 << 2) | ||
69 | #define MMP2_ICU_INV_COMMRX (1 << 3) | ||
70 | |||
31 | #endif /* __ASM_MACH_ICU_H */ | 71 | #endif /* __ASM_MACH_ICU_H */ |
diff --git a/arch/arm/mach-mmp/include/mach/uncompress.h b/arch/arm/mach-mmp/include/mach/uncompress.h index c93d5fa5865..a7dcc530721 100644 --- a/arch/arm/mach-mmp/include/mach/uncompress.h +++ b/arch/arm/mach-mmp/include/mach/uncompress.h | |||
@@ -8,15 +8,16 @@ | |||
8 | 8 | ||
9 | #include <linux/serial_reg.h> | 9 | #include <linux/serial_reg.h> |
10 | #include <mach/addr-map.h> | 10 | #include <mach/addr-map.h> |
11 | #include <asm/mach-types.h> | ||
11 | 12 | ||
12 | #define UART1_BASE (APB_PHYS_BASE + 0x36000) | 13 | #define UART1_BASE (APB_PHYS_BASE + 0x36000) |
13 | #define UART2_BASE (APB_PHYS_BASE + 0x17000) | 14 | #define UART2_BASE (APB_PHYS_BASE + 0x17000) |
14 | #define UART3_BASE (APB_PHYS_BASE + 0x18000) | 15 | #define UART3_BASE (APB_PHYS_BASE + 0x18000) |
15 | 16 | ||
17 | static volatile unsigned long *UART = (unsigned long *)UART2_BASE; | ||
18 | |||
16 | static inline void putc(char c) | 19 | static inline void putc(char c) |
17 | { | 20 | { |
18 | volatile unsigned long *UART = (unsigned long *)UART2_BASE; | ||
19 | |||
20 | /* UART enabled? */ | 21 | /* UART enabled? */ |
21 | if (!(UART[UART_IER] & UART_IER_UUE)) | 22 | if (!(UART[UART_IER] & UART_IER_UUE)) |
22 | return; | 23 | return; |
@@ -34,8 +35,14 @@ static inline void flush(void) | |||
34 | { | 35 | { |
35 | } | 36 | } |
36 | 37 | ||
38 | static inline void arch_decomp_setup(void) | ||
39 | { | ||
40 | if (machine_is_avengers_lite()) | ||
41 | UART = (unsigned long *)UART3_BASE; | ||
42 | } | ||
43 | |||
37 | /* | 44 | /* |
38 | * nothing to do | 45 | * nothing to do |
39 | */ | 46 | */ |
40 | #define arch_decomp_setup() | 47 | |
41 | #define arch_decomp_wdog() | 48 | #define arch_decomp_wdog() |
diff --git a/arch/arm/mach-mmp/irq-mmp2.c b/arch/arm/mach-mmp/irq-mmp2.c new file mode 100644 index 00000000000..cb18221c0af --- /dev/null +++ b/arch/arm/mach-mmp/irq-mmp2.c | |||
@@ -0,0 +1,154 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-mmp/irq-mmp2.c | ||
3 | * | ||
4 | * Generic IRQ handling, GPIO IRQ demultiplexing, etc. | ||
5 | * | ||
6 | * Author: Haojian Zhuang <haojian.zhuang@marvell.com> | ||
7 | * Copyright: Marvell International Ltd. | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License version 2 as | ||
11 | * published by the Free Software Foundation. | ||
12 | */ | ||
13 | |||
14 | #include <linux/init.h> | ||
15 | #include <linux/irq.h> | ||
16 | #include <linux/io.h> | ||
17 | |||
18 | #include <mach/regs-icu.h> | ||
19 | |||
20 | #include "common.h" | ||
21 | |||
22 | static void icu_mask_irq(unsigned int irq) | ||
23 | { | ||
24 | uint32_t r = __raw_readl(ICU_INT_CONF(irq)); | ||
25 | |||
26 | r &= ~ICU_INT_ROUTE_PJ4_IRQ; | ||
27 | __raw_writel(r, ICU_INT_CONF(irq)); | ||
28 | } | ||
29 | |||
30 | static void icu_unmask_irq(unsigned int irq) | ||
31 | { | ||
32 | uint32_t r = __raw_readl(ICU_INT_CONF(irq)); | ||
33 | |||
34 | r |= ICU_INT_ROUTE_PJ4_IRQ; | ||
35 | __raw_writel(r, ICU_INT_CONF(irq)); | ||
36 | } | ||
37 | |||
38 | static struct irq_chip icu_irq_chip = { | ||
39 | .name = "icu_irq", | ||
40 | .mask = icu_mask_irq, | ||
41 | .mask_ack = icu_mask_irq, | ||
42 | .unmask = icu_unmask_irq, | ||
43 | }; | ||
44 | |||
45 | static void pmic_irq_ack(unsigned int irq) | ||
46 | { | ||
47 | if (irq == IRQ_MMP2_PMIC) | ||
48 | mmp2_clear_pmic_int(); | ||
49 | } | ||
50 | |||
51 | #define SECOND_IRQ_MASK(_name_, irq_base, prefix) \ | ||
52 | static void _name_##_mask_irq(unsigned int irq) \ | ||
53 | { \ | ||
54 | uint32_t r; \ | ||
55 | r = __raw_readl(prefix##_MASK) | (1 << (irq - irq_base)); \ | ||
56 | __raw_writel(r, prefix##_MASK); \ | ||
57 | } | ||
58 | |||
59 | #define SECOND_IRQ_UNMASK(_name_, irq_base, prefix) \ | ||
60 | static void _name_##_unmask_irq(unsigned int irq) \ | ||
61 | { \ | ||
62 | uint32_t r; \ | ||
63 | r = __raw_readl(prefix##_MASK) & ~(1 << (irq - irq_base)); \ | ||
64 | __raw_writel(r, prefix##_MASK); \ | ||
65 | } | ||
66 | |||
67 | #define SECOND_IRQ_DEMUX(_name_, irq_base, prefix) \ | ||
68 | static void _name_##_irq_demux(unsigned int irq, struct irq_desc *desc) \ | ||
69 | { \ | ||
70 | unsigned long status, mask, n; \ | ||
71 | mask = __raw_readl(prefix##_MASK); \ | ||
72 | while (1) { \ | ||
73 | status = __raw_readl(prefix##_STATUS) & ~mask; \ | ||
74 | if (status == 0) \ | ||
75 | break; \ | ||
76 | n = find_first_bit(&status, BITS_PER_LONG); \ | ||
77 | while (n < BITS_PER_LONG) { \ | ||
78 | generic_handle_irq(irq_base + n); \ | ||
79 | n = find_next_bit(&status, BITS_PER_LONG, n+1); \ | ||
80 | } \ | ||
81 | } \ | ||
82 | } | ||
83 | |||
84 | #define SECOND_IRQ_CHIP(_name_, irq_base, prefix) \ | ||
85 | SECOND_IRQ_MASK(_name_, irq_base, prefix) \ | ||
86 | SECOND_IRQ_UNMASK(_name_, irq_base, prefix) \ | ||
87 | SECOND_IRQ_DEMUX(_name_, irq_base, prefix) \ | ||
88 | static struct irq_chip _name_##_irq_chip = { \ | ||
89 | .name = #_name_, \ | ||
90 | .mask = _name_##_mask_irq, \ | ||
91 | .unmask = _name_##_unmask_irq, \ | ||
92 | } | ||
93 | |||
94 | SECOND_IRQ_CHIP(pmic, IRQ_MMP2_PMIC_BASE, MMP2_ICU_INT4); | ||
95 | SECOND_IRQ_CHIP(rtc, IRQ_MMP2_RTC_BASE, MMP2_ICU_INT5); | ||
96 | SECOND_IRQ_CHIP(twsi, IRQ_MMP2_TWSI_BASE, MMP2_ICU_INT17); | ||
97 | SECOND_IRQ_CHIP(misc, IRQ_MMP2_MISC_BASE, MMP2_ICU_INT35); | ||
98 | SECOND_IRQ_CHIP(ssp, IRQ_MMP2_SSP_BASE, MMP2_ICU_INT51); | ||
99 | |||
100 | static void init_mux_irq(struct irq_chip *chip, int start, int num) | ||
101 | { | ||
102 | int irq; | ||
103 | |||
104 | for (irq = start; num > 0; irq++, num--) { | ||
105 | /* mask and clear the IRQ */ | ||
106 | chip->mask(irq); | ||
107 | if (chip->ack) | ||
108 | chip->ack(irq); | ||
109 | |||
110 | set_irq_chip(irq, chip); | ||
111 | set_irq_flags(irq, IRQF_VALID); | ||
112 | set_irq_handler(irq, handle_level_irq); | ||
113 | } | ||
114 | } | ||
115 | |||
116 | void __init mmp2_init_icu(void) | ||
117 | { | ||
118 | int irq; | ||
119 | |||
120 | for (irq = 0; irq < IRQ_MMP2_MUX_BASE; irq++) { | ||
121 | icu_mask_irq(irq); | ||
122 | set_irq_chip(irq, &icu_irq_chip); | ||
123 | set_irq_flags(irq, IRQF_VALID); | ||
124 | |||
125 | switch (irq) { | ||
126 | case IRQ_MMP2_PMIC_MUX: | ||
127 | case IRQ_MMP2_RTC_MUX: | ||
128 | case IRQ_MMP2_TWSI_MUX: | ||
129 | case IRQ_MMP2_MISC_MUX: | ||
130 | case IRQ_MMP2_SSP_MUX: | ||
131 | break; | ||
132 | default: | ||
133 | set_irq_handler(irq, handle_level_irq); | ||
134 | break; | ||
135 | } | ||
136 | } | ||
137 | |||
138 | /* NOTE: IRQ_MMP2_PMIC requires the PMIC MFPR register | ||
139 | * to be written to clear the interrupt | ||
140 | */ | ||
141 | pmic_irq_chip.ack = pmic_irq_ack; | ||
142 | |||
143 | init_mux_irq(&pmic_irq_chip, IRQ_MMP2_PMIC_BASE, 2); | ||
144 | init_mux_irq(&rtc_irq_chip, IRQ_MMP2_RTC_BASE, 2); | ||
145 | init_mux_irq(&twsi_irq_chip, IRQ_MMP2_TWSI_BASE, 5); | ||
146 | init_mux_irq(&misc_irq_chip, IRQ_MMP2_MISC_BASE, 15); | ||
147 | init_mux_irq(&ssp_irq_chip, IRQ_MMP2_SSP_BASE, 2); | ||
148 | |||
149 | set_irq_chained_handler(IRQ_MMP2_PMIC_MUX, pmic_irq_demux); | ||
150 | set_irq_chained_handler(IRQ_MMP2_RTC_MUX, rtc_irq_demux); | ||
151 | set_irq_chained_handler(IRQ_MMP2_TWSI_MUX, twsi_irq_demux); | ||
152 | set_irq_chained_handler(IRQ_MMP2_MISC_MUX, misc_irq_demux); | ||
153 | set_irq_chained_handler(IRQ_MMP2_SSP_MUX, ssp_irq_demux); | ||
154 | } | ||
diff --git a/arch/arm/mach-mmp/irq.c b/arch/arm/mach-mmp/irq-pxa168.c index 52ff2f065eb..52ff2f065eb 100644 --- a/arch/arm/mach-mmp/irq.c +++ b/arch/arm/mach-mmp/irq-pxa168.c | |||
diff --git a/arch/arm/mach-mmp/jasper.c b/arch/arm/mach-mmp/jasper.c new file mode 100644 index 00000000000..cfd4d66ef80 --- /dev/null +++ b/arch/arm/mach-mmp/jasper.c | |||
@@ -0,0 +1,80 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-mmp/jasper.c | ||
3 | * | ||
4 | * Support for the Marvell Jasper Development Platform. | ||
5 | * | ||
6 | * Copyright (C) 2009-2010 Marvell International Ltd. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * publishhed by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/init.h> | ||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/platform_device.h> | ||
16 | #include <linux/io.h> | ||
17 | #include <linux/gpio.h> | ||
18 | |||
19 | #include <asm/mach-types.h> | ||
20 | #include <asm/mach/arch.h> | ||
21 | #include <mach/addr-map.h> | ||
22 | #include <mach/mfp-mmp2.h> | ||
23 | #include <mach/mmp2.h> | ||
24 | |||
25 | #include "common.h" | ||
26 | |||
27 | static unsigned long jasper_pin_config[] __initdata = { | ||
28 | /* UART1 */ | ||
29 | GPIO29_UART1_RXD, | ||
30 | GPIO30_UART1_TXD, | ||
31 | |||
32 | /* UART3 */ | ||
33 | GPIO51_UART3_RXD, | ||
34 | GPIO52_UART3_TXD, | ||
35 | |||
36 | /* DFI */ | ||
37 | GPIO168_DFI_D0, | ||
38 | GPIO167_DFI_D1, | ||
39 | GPIO166_DFI_D2, | ||
40 | GPIO165_DFI_D3, | ||
41 | GPIO107_DFI_D4, | ||
42 | GPIO106_DFI_D5, | ||
43 | GPIO105_DFI_D6, | ||
44 | GPIO104_DFI_D7, | ||
45 | GPIO111_DFI_D8, | ||
46 | GPIO164_DFI_D9, | ||
47 | GPIO163_DFI_D10, | ||
48 | GPIO162_DFI_D11, | ||
49 | GPIO161_DFI_D12, | ||
50 | GPIO110_DFI_D13, | ||
51 | GPIO109_DFI_D14, | ||
52 | GPIO108_DFI_D15, | ||
53 | GPIO143_ND_nCS0, | ||
54 | GPIO144_ND_nCS1, | ||
55 | GPIO147_ND_nWE, | ||
56 | GPIO148_ND_nRE, | ||
57 | GPIO150_ND_ALE, | ||
58 | GPIO149_ND_CLE, | ||
59 | GPIO112_ND_RDY0, | ||
60 | GPIO160_ND_RDY1, | ||
61 | }; | ||
62 | |||
63 | static void __init jasper_init(void) | ||
64 | { | ||
65 | mfp_config(ARRAY_AND_SIZE(jasper_pin_config)); | ||
66 | |||
67 | /* on-chip devices */ | ||
68 | mmp2_add_uart(1); | ||
69 | mmp2_add_uart(3); | ||
70 | } | ||
71 | |||
72 | MACHINE_START(MARVELL_JASPER, "Jasper Development Platform") | ||
73 | .phys_io = APB_PHYS_BASE, | ||
74 | .boot_params = 0x00000100, | ||
75 | .io_pg_offst = (APB_VIRT_BASE >> 18) & 0xfffc, | ||
76 | .map_io = pxa_map_io, | ||
77 | .init_irq = mmp2_init_irq, | ||
78 | .timer = &mmp2_timer, | ||
79 | .init_machine = jasper_init, | ||
80 | MACHINE_END | ||
diff --git a/arch/arm/mach-mmp/mmp2.c b/arch/arm/mach-mmp/mmp2.c new file mode 100644 index 00000000000..72eb9daeea9 --- /dev/null +++ b/arch/arm/mach-mmp/mmp2.c | |||
@@ -0,0 +1,123 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-mmp/mmp2.c | ||
3 | * | ||
4 | * code name MMP2 | ||
5 | * | ||
6 | * Copyright (C) 2009 Marvell International Ltd. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/module.h> | ||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/init.h> | ||
16 | #include <linux/io.h> | ||
17 | |||
18 | #include <mach/addr-map.h> | ||
19 | #include <mach/regs-apbc.h> | ||
20 | #include <mach/regs-apmu.h> | ||
21 | #include <mach/cputype.h> | ||
22 | #include <mach/irqs.h> | ||
23 | #include <mach/mfp.h> | ||
24 | #include <mach/gpio.h> | ||
25 | #include <mach/devices.h> | ||
26 | |||
27 | #include "common.h" | ||
28 | #include "clock.h" | ||
29 | |||
30 | #define MFPR_VIRT_BASE (APB_VIRT_BASE + 0x1e000) | ||
31 | |||
32 | #define APMASK(i) (GPIO_REGS_VIRT + BANK_OFF(i) + 0x9c) | ||
33 | |||
34 | static struct mfp_addr_map mmp2_addr_map[] __initdata = { | ||
35 | MFP_ADDR(PMIC_INT, 0x2c4), | ||
36 | |||
37 | MFP_ADDR_END, | ||
38 | }; | ||
39 | |||
40 | void mmp2_clear_pmic_int(void) | ||
41 | { | ||
42 | unsigned long mfpr_pmic, data; | ||
43 | |||
44 | mfpr_pmic = APB_VIRT_BASE + 0x1e000 + 0x2c4; | ||
45 | data = __raw_readl(mfpr_pmic); | ||
46 | __raw_writel(data | (1 << 6), mfpr_pmic); | ||
47 | __raw_writel(data, mfpr_pmic); | ||
48 | } | ||
49 | |||
50 | static void __init mmp2_init_gpio(void) | ||
51 | { | ||
52 | int i; | ||
53 | |||
54 | /* enable GPIO clock */ | ||
55 | __raw_writel(APBC_APBCLK | APBC_FNCLK, APBC_MMP2_GPIO); | ||
56 | |||
57 | /* unmask GPIO edge detection for all 6 banks -- APMASKx */ | ||
58 | for (i = 0; i < 6; i++) | ||
59 | __raw_writel(0xffffffff, APMASK(i)); | ||
60 | |||
61 | pxa_init_gpio(IRQ_MMP2_GPIO, 0, 167, NULL); | ||
62 | } | ||
63 | |||
64 | void __init mmp2_init_irq(void) | ||
65 | { | ||
66 | mmp2_init_icu(); | ||
67 | mmp2_init_gpio(); | ||
68 | } | ||
69 | |||
70 | /* APB peripheral clocks */ | ||
71 | static APBC_CLK(uart1, MMP2_UART1, 1, 26000000); | ||
72 | static APBC_CLK(uart2, MMP2_UART2, 1, 26000000); | ||
73 | static APBC_CLK(uart3, MMP2_UART3, 1, 26000000); | ||
74 | static APBC_CLK(uart4, MMP2_UART4, 1, 26000000); | ||
75 | static APBC_CLK(twsi1, MMP2_TWSI1, 0, 26000000); | ||
76 | static APBC_CLK(twsi2, MMP2_TWSI2, 0, 26000000); | ||
77 | static APBC_CLK(twsi3, MMP2_TWSI3, 0, 26000000); | ||
78 | static APBC_CLK(twsi4, MMP2_TWSI4, 0, 26000000); | ||
79 | static APBC_CLK(twsi5, MMP2_TWSI5, 0, 26000000); | ||
80 | static APBC_CLK(twsi6, MMP2_TWSI6, 0, 26000000); | ||
81 | static APBC_CLK(rtc, MMP2_RTC, 0, 32768); | ||
82 | |||
83 | static APMU_CLK(nand, NAND, 0xbf, 100000000); | ||
84 | |||
85 | static struct clk_lookup mmp2_clkregs[] = { | ||
86 | INIT_CLKREG(&clk_uart1, "pxa2xx-uart.0", NULL), | ||
87 | INIT_CLKREG(&clk_uart2, "pxa2xx-uart.1", NULL), | ||
88 | INIT_CLKREG(&clk_uart3, "pxa2xx-uart.2", NULL), | ||
89 | INIT_CLKREG(&clk_uart4, "pxa2xx-uart.3", NULL), | ||
90 | INIT_CLKREG(&clk_twsi1, "pxa2xx-i2c.0", NULL), | ||
91 | INIT_CLKREG(&clk_twsi2, "pxa2xx-i2c.1", NULL), | ||
92 | INIT_CLKREG(&clk_twsi3, "pxa2xx-i2c.2", NULL), | ||
93 | INIT_CLKREG(&clk_twsi4, "pxa2xx-i2c.3", NULL), | ||
94 | INIT_CLKREG(&clk_twsi5, "pxa2xx-i2c.4", NULL), | ||
95 | INIT_CLKREG(&clk_twsi6, "pxa2xx-i2c.5", NULL), | ||
96 | INIT_CLKREG(&clk_nand, "pxa3xx-nand", NULL), | ||
97 | }; | ||
98 | |||
99 | static int __init mmp2_init(void) | ||
100 | { | ||
101 | if (cpu_is_mmp2()) { | ||
102 | mfp_init_base(MFPR_VIRT_BASE); | ||
103 | mfp_init_addr(mmp2_addr_map); | ||
104 | clks_register(ARRAY_AND_SIZE(mmp2_clkregs)); | ||
105 | } | ||
106 | |||
107 | return 0; | ||
108 | } | ||
109 | postcore_initcall(mmp2_init); | ||
110 | |||
111 | /* on-chip devices */ | ||
112 | MMP2_DEVICE(uart1, "pxa2xx-uart", 0, UART1, 0xd4030000, 0x30, 4, 5); | ||
113 | MMP2_DEVICE(uart2, "pxa2xx-uart", 1, UART2, 0xd4017000, 0x30, 20, 21); | ||
114 | MMP2_DEVICE(uart3, "pxa2xx-uart", 2, UART3, 0xd4018000, 0x30, 22, 23); | ||
115 | MMP2_DEVICE(uart4, "pxa2xx-uart", 3, UART4, 0xd4016000, 0x30, 18, 19); | ||
116 | MMP2_DEVICE(twsi1, "pxa2xx-i2c", 0, TWSI1, 0xd4011000, 0x70); | ||
117 | MMP2_DEVICE(twsi2, "pxa2xx-i2c", 1, TWSI2, 0xd4031000, 0x70); | ||
118 | MMP2_DEVICE(twsi3, "pxa2xx-i2c", 2, TWSI3, 0xd4032000, 0x70); | ||
119 | MMP2_DEVICE(twsi4, "pxa2xx-i2c", 3, TWSI4, 0xd4033000, 0x70); | ||
120 | MMP2_DEVICE(twsi5, "pxa2xx-i2c", 4, TWSI5, 0xd4033800, 0x70); | ||
121 | MMP2_DEVICE(twsi6, "pxa2xx-i2c", 5, TWSI6, 0xd4034000, 0x70); | ||
122 | MMP2_DEVICE(nand, "pxa3xx-nand", -1, NAND, 0xd4283000, 0x100, 28, 29); | ||
123 | |||
diff --git a/arch/arm/mach-mmp/time.c b/arch/arm/mach-mmp/time.c index a8400bb891e..cf75694e968 100644 --- a/arch/arm/mach-mmp/time.c +++ b/arch/arm/mach-mmp/time.c | |||
@@ -30,7 +30,10 @@ | |||
30 | 30 | ||
31 | #include <mach/addr-map.h> | 31 | #include <mach/addr-map.h> |
32 | #include <mach/regs-timers.h> | 32 | #include <mach/regs-timers.h> |
33 | #include <mach/regs-apbc.h> | ||
33 | #include <mach/irqs.h> | 34 | #include <mach/irqs.h> |
35 | #include <mach/cputype.h> | ||
36 | #include <asm/mach/time.h> | ||
34 | 37 | ||
35 | #include "clock.h" | 38 | #include "clock.h" |
36 | 39 | ||
@@ -158,7 +161,7 @@ static void __init timer_config(void) | |||
158 | 161 | ||
159 | __raw_writel(cer & ~0x1, TIMERS_VIRT_BASE + TMR_CER); /* disable */ | 162 | __raw_writel(cer & ~0x1, TIMERS_VIRT_BASE + TMR_CER); /* disable */ |
160 | 163 | ||
161 | ccr &= TMR_CCR_CS_0(0x3); | 164 | ccr &= (cpu_is_mmp2()) ? TMR_CCR_CS_0(0) : TMR_CCR_CS_0(3); |
162 | __raw_writel(ccr, TIMERS_VIRT_BASE + TMR_CCR); | 165 | __raw_writel(ccr, TIMERS_VIRT_BASE + TMR_CCR); |
163 | 166 | ||
164 | /* free-running mode */ | 167 | /* free-running mode */ |
@@ -197,3 +200,24 @@ void __init timer_init(int irq) | |||
197 | clocksource_register(&cksrc); | 200 | clocksource_register(&cksrc); |
198 | clockevents_register_device(&ckevt); | 201 | clockevents_register_device(&ckevt); |
199 | } | 202 | } |
203 | |||
204 | static void __init mmp2_timer_init(void) | ||
205 | { | ||
206 | unsigned long clk_rst; | ||
207 | |||
208 | __raw_writel(APBC_APBCLK | APBC_RST, APBC_MMP2_TIMERS); | ||
209 | |||
210 | /* | ||
211 | * enable bus/functional clock, enable 6.5MHz (divider 4), | ||
212 | * release reset | ||
213 | */ | ||
214 | clk_rst = APBC_APBCLK | APBC_FNCLK | APBC_FNCLKSEL(1); | ||
215 | __raw_writel(clk_rst, APBC_MMP2_TIMERS); | ||
216 | |||
217 | timer_init(IRQ_MMP2_TIMER1); | ||
218 | } | ||
219 | |||
220 | struct sys_timer mmp2_timer = { | ||
221 | .init = mmp2_timer_init, | ||
222 | }; | ||
223 | |||
diff --git a/arch/arm/mach-mv78xx0/Kconfig b/arch/arm/mach-mv78xx0/Kconfig index 6fbe68fe441..f2d309d0619 100644 --- a/arch/arm/mach-mv78xx0/Kconfig +++ b/arch/arm/mach-mv78xx0/Kconfig | |||
@@ -14,6 +14,12 @@ config MACH_RD78X00_MASA | |||
14 | Say 'Y' here if you want your kernel to support the | 14 | Say 'Y' here if you want your kernel to support the |
15 | Marvell RD-78x00-mASA Reference Design. | 15 | Marvell RD-78x00-mASA Reference Design. |
16 | 16 | ||
17 | config MACH_TERASTATION_WXL | ||
18 | bool "Buffalo WLX (Terastation Duo) NAS" | ||
19 | help | ||
20 | Say 'Y' here if you want your kernel to support the | ||
21 | Buffalo WXL Nas. | ||
22 | |||
17 | endmenu | 23 | endmenu |
18 | 24 | ||
19 | endif | 25 | endif |
diff --git a/arch/arm/mach-mv78xx0/Makefile b/arch/arm/mach-mv78xx0/Makefile index da628b7f3bb..67a13f9bfe6 100644 --- a/arch/arm/mach-mv78xx0/Makefile +++ b/arch/arm/mach-mv78xx0/Makefile | |||
@@ -1,3 +1,4 @@ | |||
1 | obj-y += common.o addr-map.o irq.o pcie.o | 1 | obj-y += common.o addr-map.o mpp.o irq.o pcie.o |
2 | obj-$(CONFIG_MACH_DB78X00_BP) += db78x00-bp-setup.o | 2 | obj-$(CONFIG_MACH_DB78X00_BP) += db78x00-bp-setup.o |
3 | obj-$(CONFIG_MACH_RD78X00_MASA) += rd78x00-masa-setup.o | 3 | obj-$(CONFIG_MACH_RD78X00_MASA) += rd78x00-masa-setup.o |
4 | obj-$(CONFIG_MACH_TERASTATION_WXL) += buffalo-wxl-setup.o | ||
diff --git a/arch/arm/mach-mv78xx0/buffalo-wxl-setup.c b/arch/arm/mach-mv78xx0/buffalo-wxl-setup.c new file mode 100644 index 00000000000..61e5e583603 --- /dev/null +++ b/arch/arm/mach-mv78xx0/buffalo-wxl-setup.c | |||
@@ -0,0 +1,155 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-mv78xx0/buffalo-wxl-setup.c | ||
3 | * | ||
4 | * Buffalo WXL (Terastation Duo) Setup routines | ||
5 | * | ||
6 | * sebastien requiem <sebastien@requiem.fr> | ||
7 | * | ||
8 | * This file is licensed under the terms of the GNU General Public | ||
9 | * License version 2. This program is licensed "as is" without any | ||
10 | * warranty of any kind, whether express or implied. | ||
11 | */ | ||
12 | |||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/init.h> | ||
15 | #include <linux/platform_device.h> | ||
16 | #include <linux/ata_platform.h> | ||
17 | #include <linux/mv643xx_eth.h> | ||
18 | #include <linux/ethtool.h> | ||
19 | #include <linux/i2c.h> | ||
20 | #include <mach/mv78xx0.h> | ||
21 | #include <asm/mach-types.h> | ||
22 | #include <asm/mach/arch.h> | ||
23 | #include "common.h" | ||
24 | #include "mpp.h" | ||
25 | |||
26 | |||
27 | /* This arch has 2 Giga Ethernet */ | ||
28 | |||
29 | static struct mv643xx_eth_platform_data db78x00_ge00_data = { | ||
30 | .phy_addr = MV643XX_ETH_PHY_ADDR(0), | ||
31 | }; | ||
32 | |||
33 | static struct mv643xx_eth_platform_data db78x00_ge01_data = { | ||
34 | .phy_addr = MV643XX_ETH_PHY_ADDR(8), | ||
35 | }; | ||
36 | |||
37 | |||
38 | /* 2 SATA controller supporting HotPlug */ | ||
39 | |||
40 | static struct mv_sata_platform_data db78x00_sata_data = { | ||
41 | .n_ports = 2, | ||
42 | }; | ||
43 | |||
44 | static struct i2c_board_info __initdata db78x00_i2c_rtc = { | ||
45 | I2C_BOARD_INFO("ds1338", 0x68), | ||
46 | }; | ||
47 | |||
48 | |||
49 | static unsigned int wxl_mpp_config[] __initdata = { | ||
50 | MPP0_GE1_TXCLK, | ||
51 | MPP1_GE1_TXCTL, | ||
52 | MPP2_GE1_RXCTL, | ||
53 | MPP3_GE1_RXCLK, | ||
54 | MPP4_GE1_TXD0, | ||
55 | MPP5_GE1_TXD1, | ||
56 | MPP6_GE1_TXD2, | ||
57 | MPP7_GE1_TXD3, | ||
58 | MPP8_GE1_RXD0, | ||
59 | MPP9_GE1_RXD1, | ||
60 | MPP10_GE1_RXD2, | ||
61 | MPP11_GE1_RXD3, | ||
62 | MPP12_GPIO, | ||
63 | MPP13_SYSRST_OUTn, | ||
64 | MPP14_SATA1_ACTn, | ||
65 | MPP15_SATA0_ACTn, | ||
66 | MPP16_GPIO, | ||
67 | MPP17_GPIO, | ||
68 | MPP18_GPIO, | ||
69 | MPP19_GPIO, | ||
70 | MPP20_GPIO, | ||
71 | MPP21_GPIO, | ||
72 | MPP22_GPIO, | ||
73 | MPP23_GPIO, | ||
74 | MPP24_UA2_TXD, | ||
75 | MPP25_UA2_RXD, | ||
76 | MPP26_UA2_CTSn, | ||
77 | MPP27_UA2_RTSn, | ||
78 | MPP28_GPIO, | ||
79 | MPP29_SYSRST_OUTn, | ||
80 | MPP30_GPIO, | ||
81 | MPP31_GPIO, | ||
82 | MPP32_GPIO, | ||
83 | MPP33_GPIO, | ||
84 | MPP34_GPIO, | ||
85 | MPP35_GPIO, | ||
86 | MPP36_GPIO, | ||
87 | MPP37_GPIO, | ||
88 | MPP38_GPIO, | ||
89 | MPP39_GPIO, | ||
90 | MPP40_UNUSED, | ||
91 | MPP41_UNUSED, | ||
92 | MPP42_UNUSED, | ||
93 | MPP43_UNUSED, | ||
94 | MPP44_UNUSED, | ||
95 | MPP45_UNUSED, | ||
96 | MPP46_UNUSED, | ||
97 | MPP47_UNUSED, | ||
98 | MPP48_SATA1_ACTn, | ||
99 | MPP49_SATA0_ACTn, | ||
100 | 0 | ||
101 | }; | ||
102 | |||
103 | |||
104 | static void __init wxl_init(void) | ||
105 | { | ||
106 | /* | ||
107 | * Basic MV78xx0 setup. Needs to be called early. | ||
108 | */ | ||
109 | mv78xx0_init(); | ||
110 | mv78xx0_mpp_conf(wxl_mpp_config); | ||
111 | |||
112 | /* | ||
113 | * Partition on-chip peripherals between the two CPU cores. | ||
114 | */ | ||
115 | mv78xx0_ehci0_init(); | ||
116 | mv78xx0_ehci1_init(); | ||
117 | mv78xx0_ehci2_init(); | ||
118 | mv78xx0_ge00_init(&db78x00_ge00_data); | ||
119 | mv78xx0_ge01_init(&db78x00_ge01_data); | ||
120 | mv78xx0_sata_init(&db78x00_sata_data); | ||
121 | mv78xx0_uart0_init(); | ||
122 | mv78xx0_uart1_init(); | ||
123 | mv78xx0_uart2_init(); | ||
124 | mv78xx0_uart3_init(); | ||
125 | mv78xx0_i2c_init(); | ||
126 | i2c_register_board_info(0, &db78x00_i2c_rtc, 1); | ||
127 | } | ||
128 | |||
129 | static int __init wxl_pci_init(void) | ||
130 | { | ||
131 | if (machine_is_terastation_wxl()) { | ||
132 | /* | ||
133 | * Assign the x16 PCIe slot on the board to CPU core | ||
134 | * #0, and let CPU core #1 have the four x1 slots. | ||
135 | */ | ||
136 | if (mv78xx0_core_index() == 0) | ||
137 | mv78xx0_pcie_init(0, 1); | ||
138 | else | ||
139 | mv78xx0_pcie_init(1, 0); | ||
140 | } | ||
141 | |||
142 | return 0; | ||
143 | } | ||
144 | subsys_initcall(wxl_pci_init); | ||
145 | |||
146 | MACHINE_START(TERASTATION_WXL, "Buffalo Nas WXL") | ||
147 | /* Maintainer: Sebastien Requiem <sebastien@requiem.fr> */ | ||
148 | .phys_io = MV78XX0_REGS_PHYS_BASE, | ||
149 | .io_pg_offst = ((MV78XX0_REGS_VIRT_BASE) >> 18) & 0xfffc, | ||
150 | .boot_params = 0x00000100, | ||
151 | .init_machine = wxl_init, | ||
152 | .map_io = mv78xx0_map_io, | ||
153 | .init_irq = mv78xx0_init_irq, | ||
154 | .timer = &mv78xx0_timer, | ||
155 | MACHINE_END | ||
diff --git a/arch/arm/mach-mv78xx0/mpp.c b/arch/arm/mach-mv78xx0/mpp.c new file mode 100644 index 00000000000..354ac514eb8 --- /dev/null +++ b/arch/arm/mach-mv78xx0/mpp.c | |||
@@ -0,0 +1,96 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-mv78x00/mpp.c | ||
3 | * | ||
4 | * MPP functions for Marvell MV78x00 SoCs | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public | ||
7 | * License version 2. This program is licensed "as is" without any | ||
8 | * warranty of any kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | #include <linux/kernel.h> | ||
12 | #include <linux/init.h> | ||
13 | #include <linux/mbus.h> | ||
14 | #include <linux/io.h> | ||
15 | #include <asm/gpio.h> | ||
16 | #include <mach/hardware.h> | ||
17 | #include "common.h" | ||
18 | #include "mpp.h" | ||
19 | |||
20 | static unsigned int __init mv78xx0_variant(void) | ||
21 | { | ||
22 | u32 dev, rev; | ||
23 | |||
24 | mv78xx0_pcie_id(&dev, &rev); | ||
25 | |||
26 | if (dev == MV78100_DEV_ID && rev >= MV78100_REV_A0) | ||
27 | return MPP_78100_A0_MASK; | ||
28 | |||
29 | printk(KERN_ERR "MPP setup: unknown mv78x00 variant " | ||
30 | "(dev %#x rev %#x)\n", dev, rev); | ||
31 | return 0; | ||
32 | } | ||
33 | |||
34 | #define MPP_CTRL(i) (DEV_BUS_VIRT_BASE + (i) * 4) | ||
35 | #define MPP_NR_REGS (1 + MPP_MAX/8) | ||
36 | |||
37 | void __init mv78xx0_mpp_conf(unsigned int *mpp_list) | ||
38 | { | ||
39 | u32 mpp_ctrl[MPP_NR_REGS]; | ||
40 | unsigned int variant_mask; | ||
41 | int i; | ||
42 | |||
43 | variant_mask = mv78xx0_variant(); | ||
44 | if (!variant_mask) | ||
45 | return; | ||
46 | |||
47 | /* Initialize gpiolib. */ | ||
48 | orion_gpio_init(); | ||
49 | |||
50 | printk(KERN_DEBUG "initial MPP regs:"); | ||
51 | for (i = 0; i < MPP_NR_REGS; i++) { | ||
52 | mpp_ctrl[i] = readl(MPP_CTRL(i)); | ||
53 | printk(" %08x", mpp_ctrl[i]); | ||
54 | } | ||
55 | printk("\n"); | ||
56 | |||
57 | while (*mpp_list) { | ||
58 | unsigned int num = MPP_NUM(*mpp_list); | ||
59 | unsigned int sel = MPP_SEL(*mpp_list); | ||
60 | int shift, gpio_mode; | ||
61 | |||
62 | if (num > MPP_MAX) { | ||
63 | printk(KERN_ERR "mv78xx0_mpp_conf: invalid MPP " | ||
64 | "number (%u)\n", num); | ||
65 | continue; | ||
66 | } | ||
67 | if (!(*mpp_list & variant_mask)) { | ||
68 | printk(KERN_WARNING | ||
69 | "mv78xx0_mpp_conf: requested MPP%u config " | ||
70 | "unavailable on this hardware\n", num); | ||
71 | continue; | ||
72 | } | ||
73 | |||
74 | shift = (num & 7) << 2; | ||
75 | mpp_ctrl[num / 8] &= ~(0xf << shift); | ||
76 | mpp_ctrl[num / 8] |= sel << shift; | ||
77 | |||
78 | gpio_mode = 0; | ||
79 | if (*mpp_list & MPP_INPUT_MASK) | ||
80 | gpio_mode |= GPIO_INPUT_OK; | ||
81 | if (*mpp_list & MPP_OUTPUT_MASK) | ||
82 | gpio_mode |= GPIO_OUTPUT_OK; | ||
83 | if (sel != 0) | ||
84 | gpio_mode = 0; | ||
85 | orion_gpio_set_valid(num, gpio_mode); | ||
86 | |||
87 | mpp_list++; | ||
88 | } | ||
89 | |||
90 | printk(KERN_DEBUG " final MPP regs:"); | ||
91 | for (i = 0; i < MPP_NR_REGS; i++) { | ||
92 | writel(mpp_ctrl[i], MPP_CTRL(i)); | ||
93 | printk(" %08x", mpp_ctrl[i]); | ||
94 | } | ||
95 | printk("\n"); | ||
96 | } | ||
diff --git a/arch/arm/mach-mv78xx0/mpp.h b/arch/arm/mach-mv78xx0/mpp.h new file mode 100644 index 00000000000..80840b781ea --- /dev/null +++ b/arch/arm/mach-mv78xx0/mpp.h | |||
@@ -0,0 +1,347 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-mv78xx0/mpp.h -- Multi Purpose Pins | ||
3 | * | ||
4 | * | ||
5 | * sebastien requiem <sebastien@requiem.fr> | ||
6 | * | ||
7 | * This file is licensed under the terms of the GNU General Public | ||
8 | * License version 2. This program is licensed "as is" without any | ||
9 | * warranty of any kind, whether express or implied. | ||
10 | */ | ||
11 | |||
12 | #ifndef __MV78X00_MPP_H | ||
13 | #define __MV78X00_MPP_H | ||
14 | |||
15 | #define MPP(_num, _sel, _in, _out, _78100_A0) (\ | ||
16 | /* MPP number */ ((_num) & 0xff) | \ | ||
17 | /* MPP select value */ (((_sel) & 0xf) << 8) | \ | ||
18 | /* may be input signal */ ((!!(_in)) << 12) | \ | ||
19 | /* may be output signal */ ((!!(_out)) << 13) | \ | ||
20 | /* available on A0 */ ((!!(_78100_A0)) << 14)) | ||
21 | |||
22 | #define MPP_NUM(x) ((x) & 0xff) | ||
23 | #define MPP_SEL(x) (((x) >> 8) & 0xf) | ||
24 | |||
25 | /* num sel i o 78100_A0 */ | ||
26 | |||
27 | #define MPP_INPUT_MASK MPP(0, 0x0, 1, 0, 0) | ||
28 | #define MPP_OUTPUT_MASK MPP(0, 0x0, 0, 1, 0) | ||
29 | |||
30 | #define MPP_78100_A0_MASK MPP(0, 0x0, 0, 0, 1) | ||
31 | |||
32 | #define MPP0_GPIO MPP(0, 0x0, 1, 1, 1) | ||
33 | #define MPP0_GE0_COL MPP(0, 0x1, 1, 0, 1) | ||
34 | #define MPP0_GE1_TXCLK MPP(0, 0x2, 0, 1, 1) | ||
35 | #define MPP0_UNUSED MPP(0, 0x3, 0, 0, 1) | ||
36 | |||
37 | #define MPP1_GPIO MPP(1, 0x0, 1, 1, 1) | ||
38 | #define MPP1_GE0_RXERR MPP(1, 0x1, 1, 0, 1) | ||
39 | #define MPP1_GE1_TXCTL MPP(1, 0x2, 0, 1, 1) | ||
40 | #define MPP1_UNUSED MPP(1, 0x3, 0, 0, 1) | ||
41 | |||
42 | #define MPP2_GPIO MPP(2, 0x0, 1, 1, 1) | ||
43 | #define MPP2_GE0_CRS MPP(2, 0x1, 1, 0, 1) | ||
44 | #define MPP2_GE1_RXCTL MPP(2, 0x2, 1, 0, 1) | ||
45 | #define MPP2_UNUSED MPP(2, 0x3, 0, 0, 1) | ||
46 | |||
47 | #define MPP3_GPIO MPP(3, 0x0, 1, 1, 1) | ||
48 | #define MPP3_GE0_TXERR MPP(3, 0x1, 0, 1, 1) | ||
49 | #define MPP3_GE1_RXCLK MPP(3, 0x2, 1, 0, 1) | ||
50 | #define MPP3_UNUSED MPP(3, 0x3, 0, 0, 1) | ||
51 | |||
52 | #define MPP4_GPIO MPP(4, 0x0, 1, 1, 1) | ||
53 | #define MPP4_GE0_TXD4 MPP(4, 0x1, 0, 1, 1) | ||
54 | #define MPP4_GE1_TXD0 MPP(4, 0x2, 0, 1, 1) | ||
55 | #define MPP4_UNUSED MPP(4, 0x3, 0, 0, 1) | ||
56 | |||
57 | #define MPP5_GPIO MPP(5, 0x0, 1, 1, 1) | ||
58 | #define MPP5_GE0_TXD5 MPP(5, 0x1, 0, 1, 1) | ||
59 | #define MPP5_GE1_TXD1 MPP(5, 0x2, 0, 1, 1) | ||
60 | #define MPP5_UNUSED MPP(5, 0x3, 0, 0, 1) | ||
61 | |||
62 | #define MPP6_GPIO MPP(6, 0x0, 1, 1, 1) | ||
63 | #define MPP6_GE0_TXD6 MPP(6, 0x1, 0, 1, 1) | ||
64 | #define MPP6_GE1_TXD2 MPP(6, 0x2, 0, 1, 1) | ||
65 | #define MPP6_UNUSED MPP(6, 0x3, 0, 0, 1) | ||
66 | |||
67 | #define MPP7_GPIO MPP(7, 0x0, 1, 1, 1) | ||
68 | #define MPP7_GE0_TXD7 MPP(7, 0x1, 0, 1, 1) | ||
69 | #define MPP7_GE1_TXD3 MPP(7, 0x2, 0, 1, 1) | ||
70 | #define MPP7_UNUSED MPP(7, 0x3, 0, 0, 1) | ||
71 | |||
72 | #define MPP8_GPIO MPP(8, 0x0, 1, 1, 1) | ||
73 | #define MPP8_GE0_RXD4 MPP(8, 0x1, 1, 0, 1) | ||
74 | #define MPP8_GE1_RXD0 MPP(8, 0x2, 1, 0, 1) | ||
75 | #define MPP8_UNUSED MPP(8, 0x3, 0, 0, 1) | ||
76 | |||
77 | #define MPP9_GPIO MPP(9, 0x0, 1, 1, 1) | ||
78 | #define MPP9_GE0_RXD5 MPP(9, 0x1, 1, 0, 1) | ||
79 | #define MPP9_GE1_RXD1 MPP(9, 0x2, 1, 0, 1) | ||
80 | #define MPP9_UNUSED MPP(9, 0x3, 0, 0, 1) | ||
81 | |||
82 | #define MPP10_GPIO MPP(10, 0x0, 1, 1, 1) | ||
83 | #define MPP10_GE0_RXD6 MPP(10, 0x1, 1, 0, 1) | ||
84 | #define MPP10_GE1_RXD2 MPP(10, 0x2, 1, 0, 1) | ||
85 | #define MPP10_UNUSED MPP(10, 0x3, 0, 0, 1) | ||
86 | |||
87 | #define MPP11_GPIO MPP(11, 0x0, 1, 1, 1) | ||
88 | #define MPP11_GE0_RXD7 MPP(11, 0x1, 1, 0, 1) | ||
89 | #define MPP11_GE1_RXD3 MPP(11, 0x2, 1, 0, 1) | ||
90 | #define MPP11_UNUSED MPP(11, 0x3, 0, 0, 1) | ||
91 | |||
92 | #define MPP12_GPIO MPP(12, 0x0, 1, 1, 1) | ||
93 | #define MPP12_M_BB MPP(12, 0x3, 1, 0, 1) | ||
94 | #define MPP12_UA0_CTSn MPP(12, 0x4, 1, 0, 1) | ||
95 | #define MPP12_NAND_FLASH_REn0 MPP(12, 0x5, 0, 1, 1) | ||
96 | #define MPP12_TDM0_SCSn MPP(12, 0X6, 0, 1, 1) | ||
97 | #define MPP12_UNUSED MPP(12, 0x1, 0, 0, 1) | ||
98 | |||
99 | #define MPP13_GPIO MPP(13, 0x0, 1, 1, 1) | ||
100 | #define MPP13_SYSRST_OUTn MPP(13, 0x3, 0, 1, 1) | ||
101 | #define MPP13_UA0_RTSn MPP(13, 0x4, 0, 1, 1) | ||
102 | #define MPP13_NAN_FLASH_WEn0 MPP(13, 0x5, 0, 1, 1) | ||
103 | #define MPP13_TDM_SCLK MPP(13, 0x6, 0, 1, 1) | ||
104 | #define MPP13_UNUSED MPP(13, 0x1, 0, 0, 1) | ||
105 | |||
106 | #define MPP14_GPIO MPP(14, 0x0, 1, 1, 1) | ||
107 | #define MPP14_SATA1_ACTn MPP(14, 0x3, 0, 1, 1) | ||
108 | #define MPP14_UA1_CTSn MPP(14, 0x4, 1, 0, 1) | ||
109 | #define MPP14_NAND_FLASH_REn1 MPP(14, 0x5, 0, 1, 1) | ||
110 | #define MPP14_TDM_SMOSI MPP(14, 0x6, 0, 1, 1) | ||
111 | #define MPP14_UNUSED MPP(14, 0x1, 0, 0, 1) | ||
112 | |||
113 | #define MPP15_GPIO MPP(15, 0x0, 1, 1, 1) | ||
114 | #define MPP15_SATA0_ACTn MPP(15, 0x3, 0, 1, 1) | ||
115 | #define MPP15_UA1_RTSn MPP(15, 0x4, 0, 1, 1) | ||
116 | #define MPP15_NAND_FLASH_WEn1 MPP(15, 0x5, 0, 1, 1) | ||
117 | #define MPP15_TDM_SMISO MPP(15, 0x6, 1, 0, 1) | ||
118 | #define MPP15_UNUSED MPP(15, 0x1, 0, 0, 1) | ||
119 | |||
120 | #define MPP16_GPIO MPP(16, 0x0, 1, 1, 1) | ||
121 | #define MPP16_SATA1_PRESENTn MPP(16, 0x3, 0, 1, 1) | ||
122 | #define MPP16_UA2_TXD MPP(16, 0x4, 0, 1, 1) | ||
123 | #define MPP16_NAND_FLASH_REn3 MPP(16, 0x5, 0, 1, 1) | ||
124 | #define MPP16_TDM_INTn MPP(16, 0x6, 1, 0, 1) | ||
125 | #define MPP16_UNUSED MPP(16, 0x1, 0, 0, 1) | ||
126 | |||
127 | |||
128 | #define MPP17_GPIO MPP(17, 0x0, 1, 1, 1) | ||
129 | #define MPP17_SATA0_PRESENTn MPP(17, 0x3, 0, 1, 1) | ||
130 | #define MPP17_UA2_RXD MPP(17, 0x4, 1, 0, 1) | ||
131 | #define MPP17_NAND_FLASH_WEn3 MPP(17, 0x5, 0, 1, 1) | ||
132 | #define MPP17_TDM_RSTn MPP(17, 0x6, 0, 1, 1) | ||
133 | #define MPP17_UNUSED MPP(17, 0x1, 0, 0, 1) | ||
134 | |||
135 | |||
136 | #define MPP18_GPIO MPP(18, 0x0, 1, 1, 1) | ||
137 | #define MPP18_UA0_CTSn MPP(18, 0x4, 1, 0, 1) | ||
138 | #define MPP18_BOOT_FLASH_REn MPP(18, 0x5, 0, 1, 1) | ||
139 | #define MPP18_UNUSED MPP(18, 0x1, 0, 0, 1) | ||
140 | |||
141 | |||
142 | |||
143 | #define MPP19_GPIO MPP(19, 0x0, 1, 1, 1) | ||
144 | #define MPP19_UA0_CTSn MPP(19, 0x4, 0, 1, 1) | ||
145 | #define MPP19_BOOT_FLASH_WEn MPP(19, 0x5, 0, 1, 1) | ||
146 | #define MPP19_UNUSED MPP(19, 0x1, 0, 0, 1) | ||
147 | |||
148 | |||
149 | #define MPP20_GPIO MPP(20, 0x0, 1, 1, 1) | ||
150 | #define MPP20_UA1_CTSs MPP(20, 0x4, 1, 0, 1) | ||
151 | #define MPP20_TDM_PCLK MPP(20, 0x6, 1, 1, 0) | ||
152 | #define MPP20_UNUSED MPP(20, 0x1, 0, 0, 1) | ||
153 | |||
154 | |||
155 | |||
156 | #define MPP21_GPIO MPP(21, 0x0, 1, 1, 1) | ||
157 | #define MPP21_UA1_CTSs MPP(21, 0x4, 0, 1, 1) | ||
158 | #define MPP21_TDM_FSYNC MPP(21, 0x6, 1, 1, 0) | ||
159 | #define MPP21_UNUSED MPP(21, 0x1, 0, 0, 1) | ||
160 | |||
161 | |||
162 | |||
163 | #define MPP22_GPIO MPP(22, 0x0, 1, 1, 1) | ||
164 | #define MPP22_UA3_TDX MPP(22, 0x4, 0, 1, 1) | ||
165 | #define MPP22_NAND_FLASH_REn2 MPP(22, 0x5, 0, 1, 1) | ||
166 | #define MPP22_TDM_DRX MPP(22, 0x6, 1, 0, 1) | ||
167 | #define MPP22_UNUSED MPP(22, 0x1, 0, 0, 1) | ||
168 | |||
169 | |||
170 | |||
171 | #define MPP23_GPIO MPP(23, 0x0, 1, 1, 1) | ||
172 | #define MPP23_UA3_RDX MPP(23, 0x4, 1, 0, 1) | ||
173 | #define MPP23_NAND_FLASH_WEn2 MPP(23, 0x5, 0, 1, 1) | ||
174 | #define MPP23_TDM_DTX MPP(23, 0x6, 0, 1, 1) | ||
175 | #define MPP23_UNUSED MPP(23, 0x1, 0, 0, 1) | ||
176 | |||
177 | |||
178 | #define MPP24_GPIO MPP(24, 0x0, 1, 1, 1) | ||
179 | #define MPP24_UA2_TXD MPP(24, 0x4, 0, 1, 1) | ||
180 | #define MPP24_TDM_INTn MPP(24, 0x6, 1, 0, 1) | ||
181 | #define MPP24_UNUSED MPP(24, 0x1, 0, 0, 1) | ||
182 | |||
183 | |||
184 | #define MPP25_GPIO MPP(25, 0x0, 1, 1, 1) | ||
185 | #define MPP25_UA2_RXD MPP(25, 0x4, 1, 0, 1) | ||
186 | #define MPP25_TDM_RSTn MPP(25, 0x6, 0, 1, 1) | ||
187 | #define MPP25_UNUSED MPP(25, 0x1, 0, 0, 1) | ||
188 | |||
189 | |||
190 | #define MPP26_GPIO MPP(26, 0x0, 1, 1, 1) | ||
191 | #define MPP26_UA2_CTSn MPP(26, 0x4, 1, 0, 1) | ||
192 | #define MPP26_TDM_PCLK MPP(26, 0x6, 1, 1, 1) | ||
193 | #define MPP26_UNUSED MPP(26, 0x1, 0, 0, 1) | ||
194 | |||
195 | |||
196 | #define MPP27_GPIO MPP(27, 0x0, 1, 1, 1) | ||
197 | #define MPP27_UA2_RTSn MPP(27, 0x4, 0, 1, 1) | ||
198 | #define MPP27_TDM_FSYNC MPP(27, 0x6, 1, 1, 1) | ||
199 | #define MPP27_UNUSED MPP(27, 0x1, 0, 0, 1) | ||
200 | |||
201 | |||
202 | #define MPP28_GPIO MPP(28, 0x0, 1, 1, 1) | ||
203 | #define MPP28_UA3_TXD MPP(28, 0x4, 0, 1, 1) | ||
204 | #define MPP28_TDM_DRX MPP(28, 0x6, 1, 0, 1) | ||
205 | #define MPP28_UNUSED MPP(28, 0x1, 0, 0, 1) | ||
206 | |||
207 | #define MPP29_GPIO MPP(29, 0x0, 1, 1, 1) | ||
208 | #define MPP29_UA3_RXD MPP(29, 0x4, 1, 0, 1) | ||
209 | #define MPP29_SYSRST_OUTn MPP(29, 0x5, 0, 1, 1) | ||
210 | #define MPP29_TDM_DTX MPP(29, 0x6, 0, 1, 1) | ||
211 | #define MPP29_UNUSED MPP(29, 0x1, 0, 0, 1) | ||
212 | |||
213 | #define MPP30_GPIO MPP(30, 0x0, 1, 1, 1) | ||
214 | #define MPP30_UA3_CTSn MPP(30, 0x4, 1, 0, 1) | ||
215 | #define MPP30_UNUSED MPP(30, 0x1, 0, 0, 1) | ||
216 | |||
217 | #define MPP31_GPIO MPP(31, 0x0, 1, 1, 1) | ||
218 | #define MPP31_UA3_RTSn MPP(31, 0x4, 0, 1, 1) | ||
219 | #define MPP31_TDM1_SCSn MPP(31, 0x6, 0, 1, 1) | ||
220 | #define MPP31_UNUSED MPP(31, 0x1, 0, 0, 1) | ||
221 | |||
222 | |||
223 | #define MPP32_GPIO MPP(32, 0x1, 1, 1, 1) | ||
224 | #define MPP32_UA3_TDX MPP(32, 0x4, 0, 1, 1) | ||
225 | #define MPP32_SYSRST_OUTn MPP(32, 0x5, 0, 1, 1) | ||
226 | #define MPP32_TDM0_RXQ MPP(32, 0x6, 0, 1, 1) | ||
227 | #define MPP32_UNUSED MPP(32, 0x3, 0, 0, 1) | ||
228 | |||
229 | |||
230 | #define MPP33_GPIO MPP(33, 0x1, 1, 1, 1) | ||
231 | #define MPP33_UA3_RDX MPP(33, 0x4, 1, 0, 1) | ||
232 | #define MPP33_TDM0_TXQ MPP(33, 0x6, 0, 1, 1) | ||
233 | #define MPP33_UNUSED MPP(33, 0x3, 0, 0, 1) | ||
234 | |||
235 | |||
236 | |||
237 | #define MPP34_GPIO MPP(34, 0x1, 1, 1, 1) | ||
238 | #define MPP34_UA2_TDX MPP(34, 0x4, 0, 1, 1) | ||
239 | #define MPP34_TDM1_RXQ MPP(34, 0x6, 0, 1, 1) | ||
240 | #define MPP34_UNUSED MPP(34, 0x3, 0, 0, 1) | ||
241 | |||
242 | |||
243 | |||
244 | #define MPP35_GPIO MPP(35, 0x1, 1, 1, 1) | ||
245 | #define MPP35_UA2_RDX MPP(35, 0x4, 1, 0, 1) | ||
246 | #define MPP35_TDM1_TXQ MPP(35, 0x6, 0, 1, 1) | ||
247 | #define MPP35_UNUSED MPP(35, 0x3, 0, 0, 1) | ||
248 | |||
249 | #define MPP36_GPIO MPP(36, 0x1, 1, 1, 1) | ||
250 | #define MPP36_UA0_CTSn MPP(36, 0x2, 1, 0, 1) | ||
251 | #define MPP36_UA2_TDX MPP(36, 0x4, 0, 1, 1) | ||
252 | #define MPP36_TDM0_SCSn MPP(36, 0x6, 0, 1, 1) | ||
253 | #define MPP36_UNUSED MPP(36, 0x3, 0, 0, 1) | ||
254 | |||
255 | |||
256 | #define MPP37_GPIO MPP(37, 0x1, 1, 1, 1) | ||
257 | #define MPP37_UA0_RTSn MPP(37, 0x2, 0, 1, 1) | ||
258 | #define MPP37_UA2_RXD MPP(37, 0x4, 1, 0, 1) | ||
259 | #define MPP37_SYSRST_OUTn MPP(37, 0x5, 0, 1, 1) | ||
260 | #define MPP37_TDM_SCLK MPP(37, 0x6, 0, 1, 1) | ||
261 | #define MPP37_UNUSED MPP(37, 0x3, 0, 0, 1) | ||
262 | |||
263 | |||
264 | |||
265 | |||
266 | #define MPP38_GPIO MPP(38, 0x1, 1, 1, 1) | ||
267 | #define MPP38_UA1_CTSn MPP(38, 0x2, 1, 0, 1) | ||
268 | #define MPP38_UA3_TXD MPP(38, 0x4, 0, 1, 1) | ||
269 | #define MPP38_SYSRST_OUTn MPP(38, 0x5, 0, 1, 1) | ||
270 | #define MPP38_TDM_SMOSI MPP(38, 0x6, 0, 1, 1) | ||
271 | #define MPP38_UNUSED MPP(38, 0x3, 0, 0, 1) | ||
272 | |||
273 | |||
274 | |||
275 | |||
276 | #define MPP39_GPIO MPP(39, 0x1, 1, 1, 1) | ||
277 | #define MPP39_UA1_RTSn MPP(39, 0x2, 0, 1, 1) | ||
278 | #define MPP39_UA3_RXD MPP(39, 0x4, 1, 0, 1) | ||
279 | #define MPP39_SYSRST_OUTn MPP(39, 0x5, 0, 1, 1) | ||
280 | #define MPP39_TDM_SMISO MPP(39, 0x6, 1, 0, 1) | ||
281 | #define MPP39_UNUSED MPP(39, 0x3, 0, 0, 1) | ||
282 | |||
283 | |||
284 | |||
285 | #define MPP40_GPIO MPP(40, 0x1, 1, 1, 1) | ||
286 | #define MPP40_TDM_INTn MPP(40, 0x6, 1, 0, 1) | ||
287 | #define MPP40_UNUSED MPP(40, 0x0, 0, 0, 1) | ||
288 | |||
289 | |||
290 | |||
291 | #define MPP41_GPIO MPP(41, 0x1, 1, 1, 1) | ||
292 | #define MPP41_TDM_RSTn MPP(41, 0x6, 0, 1, 1) | ||
293 | #define MPP41_UNUSED MPP(41, 0x0, 0, 0, 1) | ||
294 | |||
295 | |||
296 | |||
297 | #define MPP42_GPIO MPP(42, 0x1, 1, 1, 1) | ||
298 | #define MPP42_TDM_PCLK MPP(42, 0x6, 1, 1, 1) | ||
299 | #define MPP42_UNUSED MPP(42, 0x0, 0, 0, 1) | ||
300 | |||
301 | |||
302 | |||
303 | #define MPP43_GPIO MPP(43, 0x1, 1, 1, 1) | ||
304 | #define MPP43_TDM_FSYNC MPP(43, 0x6, 1, 1, 1) | ||
305 | #define MPP43_UNUSED MPP(43, 0x0, 0, 0, 1) | ||
306 | |||
307 | |||
308 | |||
309 | #define MPP44_GPIO MPP(44, 0x1, 1, 1, 1) | ||
310 | #define MPP44_TDM_DRX MPP(44, 0x6, 1, 0, 1) | ||
311 | #define MPP44_UNUSED MPP(44, 0x0, 0, 0, 1) | ||
312 | |||
313 | |||
314 | |||
315 | #define MPP45_GPIO MPP(45, 0x1, 1, 1, 1) | ||
316 | #define MPP45_SATA0_ACTn MPP(45, 0x3, 0, 1, 1) | ||
317 | #define MPP45_TDM_DRX MPP(45, 0x6, 0, 1, 1) | ||
318 | #define MPP45_UNUSED MPP(45, 0x0, 0, 0, 1) | ||
319 | |||
320 | |||
321 | #define MPP46_GPIO MPP(46, 0x1, 1, 1, 1) | ||
322 | #define MPP46_TDM_SCSn MPP(46, 0x6, 0, 1, 1) | ||
323 | #define MPP46_UNUSED MPP(46, 0x0, 0, 0, 1) | ||
324 | |||
325 | |||
326 | #define MPP47_GPIO MPP(47, 0x1, 1, 1, 1) | ||
327 | #define MPP47_UNUSED MPP(47, 0x0, 0, 0, 1) | ||
328 | |||
329 | |||
330 | |||
331 | #define MPP48_GPIO MPP(48, 0x1, 1, 1, 1) | ||
332 | #define MPP48_SATA1_ACTn MPP(48, 0x3, 0, 1, 1) | ||
333 | #define MPP48_UNUSED MPP(48, 0x2, 0, 0, 1) | ||
334 | |||
335 | |||
336 | |||
337 | #define MPP49_GPIO MPP(49, 0x1, 1, 1, 1) | ||
338 | #define MPP49_SATA0_ACTn MPP(49, 0x3, 0, 1, 1) | ||
339 | #define MPP49_M_BB MPP(49, 0x4, 1, 0, 1) | ||
340 | #define MPP49_UNUSED MPP(49, 0x2, 0, 0, 1) | ||
341 | |||
342 | |||
343 | #define MPP_MAX 49 | ||
344 | |||
345 | void mv78xx0_mpp_conf(unsigned int *mpp_list); | ||
346 | |||
347 | #endif | ||
diff --git a/arch/arm/mach-mx1/Makefile b/arch/arm/mach-mx1/Makefile index 7f86fe073ec..fc2ddf82441 100644 --- a/arch/arm/mach-mx1/Makefile +++ b/arch/arm/mach-mx1/Makefile | |||
@@ -4,11 +4,12 @@ | |||
4 | 4 | ||
5 | # Object file lists. | 5 | # Object file lists. |
6 | 6 | ||
7 | EXTRA_CFLAGS += -DIMX_NEEDS_DEPRECATED_SYMBOLS | ||
7 | obj-y += generic.o clock.o devices.o | 8 | obj-y += generic.o clock.o devices.o |
8 | 9 | ||
9 | # Support for CMOS sensor interface | 10 | # Support for CMOS sensor interface |
10 | obj-$(CONFIG_MX1_VIDEO) += ksym_mx1.o mx1_camera_fiq.o | 11 | obj-$(CONFIG_MX1_VIDEO) += ksym_mx1.o mx1_camera_fiq.o |
11 | 12 | ||
12 | # Specific board support | 13 | # Specific board support |
13 | obj-$(CONFIG_ARCH_MX1ADS) += mx1ads.o | 14 | obj-$(CONFIG_ARCH_MX1ADS) += mach-mx1ads.o |
14 | obj-$(CONFIG_MACH_SCB9328) += scb9328.o \ No newline at end of file | 15 | obj-$(CONFIG_MACH_SCB9328) += mach-scb9328.o |
diff --git a/arch/arm/mach-mx1/mx1ads.c b/arch/arm/mach-mx1/mach-mx1ads.c index 30f04e56faf..51f3cfd83db 100644 --- a/arch/arm/mach-mx1/mx1ads.c +++ b/arch/arm/mach-mx1/mach-mx1ads.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-imx/mx1ads.c | 2 | * arch/arm/mach-imx/mach-mx1ads.c |
3 | * | 3 | * |
4 | * Initially based on: | 4 | * Initially based on: |
5 | * linux-2.6.7-imx/arch/arm/mach-imx/scb9328.c | 5 | * linux-2.6.7-imx/arch/arm/mach-imx/scb9328.c |
@@ -27,7 +27,7 @@ | |||
27 | #include <mach/hardware.h> | 27 | #include <mach/hardware.h> |
28 | #include <mach/i2c.h> | 28 | #include <mach/i2c.h> |
29 | #include <mach/imx-uart.h> | 29 | #include <mach/imx-uart.h> |
30 | #include <mach/iomux.h> | 30 | #include <mach/iomux-mx1.h> |
31 | #include <mach/irqs.h> | 31 | #include <mach/irqs.h> |
32 | 32 | ||
33 | #include "devices.h" | 33 | #include "devices.h" |
@@ -147,7 +147,7 @@ MACHINE_START(MX1ADS, "Freescale MX1ADS") | |||
147 | /* Maintainer: Sascha Hauer, Pengutronix */ | 147 | /* Maintainer: Sascha Hauer, Pengutronix */ |
148 | .phys_io = IMX_IO_PHYS, | 148 | .phys_io = IMX_IO_PHYS, |
149 | .io_pg_offst = (IMX_IO_BASE >> 18) & 0xfffc, | 149 | .io_pg_offst = (IMX_IO_BASE >> 18) & 0xfffc, |
150 | .boot_params = PHYS_OFFSET + 0x100, | 150 | .boot_params = MX1_PHYS_OFFSET + 0x100, |
151 | .map_io = mx1_map_io, | 151 | .map_io = mx1_map_io, |
152 | .init_irq = mx1_init_irq, | 152 | .init_irq = mx1_init_irq, |
153 | .timer = &mx1ads_timer, | 153 | .timer = &mx1ads_timer, |
@@ -157,7 +157,7 @@ MACHINE_END | |||
157 | MACHINE_START(MXLADS, "Freescale MXLADS") | 157 | MACHINE_START(MXLADS, "Freescale MXLADS") |
158 | .phys_io = IMX_IO_PHYS, | 158 | .phys_io = IMX_IO_PHYS, |
159 | .io_pg_offst = (IMX_IO_BASE >> 18) & 0xfffc, | 159 | .io_pg_offst = (IMX_IO_BASE >> 18) & 0xfffc, |
160 | .boot_params = PHYS_OFFSET + 0x100, | 160 | .boot_params = MX1_PHYS_OFFSET + 0x100, |
161 | .map_io = mx1_map_io, | 161 | .map_io = mx1_map_io, |
162 | .init_irq = mx1_init_irq, | 162 | .init_irq = mx1_init_irq, |
163 | .timer = &mx1ads_timer, | 163 | .timer = &mx1ads_timer, |
diff --git a/arch/arm/mach-mx1/scb9328.c b/arch/arm/mach-mx1/mach-scb9328.c index 325d98df605..7587a7a1246 100644 --- a/arch/arm/mach-mx1/scb9328.c +++ b/arch/arm/mach-mx1/mach-scb9328.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/mach-mx1/scb9328.c | 2 | * linux/arch/arm/mach-mx1/mach-scb9328.c |
3 | * | 3 | * |
4 | * Copyright (c) 2004 Sascha Hauer <saschahauer@web.de> | 4 | * Copyright (c) 2004 Sascha Hauer <saschahauer@web.de> |
5 | * Copyright (c) 2006-2008 Juergen Beisert <jbeisert@netscape.net> | 5 | * Copyright (c) 2006-2008 Juergen Beisert <jbeisert@netscape.net> |
@@ -23,7 +23,7 @@ | |||
23 | #include <mach/hardware.h> | 23 | #include <mach/hardware.h> |
24 | #include <mach/irqs.h> | 24 | #include <mach/irqs.h> |
25 | #include <mach/imx-uart.h> | 25 | #include <mach/imx-uart.h> |
26 | #include <mach/iomux.h> | 26 | #include <mach/iomux-mx1.h> |
27 | 27 | ||
28 | #include "devices.h" | 28 | #include "devices.h" |
29 | 29 | ||
diff --git a/arch/arm/mach-mx2/Kconfig b/arch/arm/mach-mx2/Kconfig index b96c6a38936..742fd4e6dcb 100644 --- a/arch/arm/mach-mx2/Kconfig +++ b/arch/arm/mach-mx2/Kconfig | |||
@@ -37,6 +37,7 @@ config MACH_MX27ADS | |||
37 | config MACH_PCM038 | 37 | config MACH_PCM038 |
38 | bool "Phytec phyCORE-i.MX27 CPU module (pcm038)" | 38 | bool "Phytec phyCORE-i.MX27 CPU module (pcm038)" |
39 | depends on MACH_MX27 | 39 | depends on MACH_MX27 |
40 | select MXC_ULPI if USB_ULPI | ||
40 | help | 41 | help |
41 | Include support for phyCORE-i.MX27 (aka pcm038) platform. This | 42 | Include support for phyCORE-i.MX27 (aka pcm038) platform. This |
42 | includes specific configurations for the module and its peripherals. | 43 | includes specific configurations for the module and its peripherals. |
@@ -55,7 +56,7 @@ config MACH_PCM970_BASEBOARD | |||
55 | 56 | ||
56 | endchoice | 57 | endchoice |
57 | 58 | ||
58 | config MACH_EUKREA_CPUIMX27 | 59 | config MACH_CPUIMX27 |
59 | bool "Eukrea CPUIMX27 module" | 60 | bool "Eukrea CPUIMX27 module" |
60 | depends on MACH_MX27 | 61 | depends on MACH_MX27 |
61 | help | 62 | help |
@@ -64,14 +65,14 @@ config MACH_EUKREA_CPUIMX27 | |||
64 | 65 | ||
65 | config MACH_EUKREA_CPUIMX27_USESDHC2 | 66 | config MACH_EUKREA_CPUIMX27_USESDHC2 |
66 | bool "CPUIMX27 integrates SDHC2 module" | 67 | bool "CPUIMX27 integrates SDHC2 module" |
67 | depends on MACH_EUKREA_CPUIMX27 | 68 | depends on MACH_CPUIMX27 |
68 | help | 69 | help |
69 | This adds support for the internal SDHC2 used on CPUIMX27 used | 70 | This adds support for the internal SDHC2 used on CPUIMX27 used |
70 | for wifi or eMMC. | 71 | for wifi or eMMC. |
71 | 72 | ||
72 | choice | 73 | choice |
73 | prompt "Baseboard" | 74 | prompt "Baseboard" |
74 | depends on MACH_EUKREA_CPUIMX27 | 75 | depends on MACH_CPUIMX27 |
75 | default MACH_EUKREA_MBIMX27_BASEBOARD | 76 | default MACH_EUKREA_MBIMX27_BASEBOARD |
76 | 77 | ||
77 | config MACH_EUKREA_MBIMX27_BASEBOARD | 78 | config MACH_EUKREA_MBIMX27_BASEBOARD |
@@ -90,7 +91,7 @@ config MACH_MX27_3DS | |||
90 | Include support for MX27PDK platform. This includes specific | 91 | Include support for MX27PDK platform. This includes specific |
91 | configurations for the board and its peripherals. | 92 | configurations for the board and its peripherals. |
92 | 93 | ||
93 | config MACH_MX27LITE | 94 | config MACH_IMX27LITE |
94 | bool "LogicPD MX27 LITEKIT platform" | 95 | bool "LogicPD MX27 LITEKIT platform" |
95 | depends on MACH_MX27 | 96 | depends on MACH_MX27 |
96 | help | 97 | help |
@@ -100,6 +101,7 @@ config MACH_MX27LITE | |||
100 | config MACH_PCA100 | 101 | config MACH_PCA100 |
101 | bool "Phytec phyCARD-s (pca100)" | 102 | bool "Phytec phyCARD-s (pca100)" |
102 | depends on MACH_MX27 | 103 | depends on MACH_MX27 |
104 | select MXC_ULPI if USB_ULPI | ||
103 | help | 105 | help |
104 | Include support for phyCARD-s (aka pca100) platform. This | 106 | Include support for phyCARD-s (aka pca100) platform. This |
105 | includes specific configurations for the module and its peripherals. | 107 | includes specific configurations for the module and its peripherals. |
diff --git a/arch/arm/mach-mx2/Makefile b/arch/arm/mach-mx2/Makefile index 52aca0aaf9b..e3254faac82 100644 --- a/arch/arm/mach-mx2/Makefile +++ b/arch/arm/mach-mx2/Makefile | |||
@@ -4,21 +4,20 @@ | |||
4 | 4 | ||
5 | # Object file lists. | 5 | # Object file lists. |
6 | 6 | ||
7 | obj-y := generic.o devices.o serial.o | 7 | obj-y := devices.o serial.o |
8 | 8 | ||
9 | obj-$(CONFIG_MACH_MX21) += clock_imx21.o | 9 | obj-$(CONFIG_MACH_MX21) += clock_imx21.o mm-imx21.o |
10 | 10 | ||
11 | obj-$(CONFIG_MACH_MX27) += cpu_imx27.o | 11 | obj-$(CONFIG_MACH_MX27) += cpu_imx27.o |
12 | obj-$(CONFIG_MACH_MX27) += clock_imx27.o | 12 | obj-$(CONFIG_MACH_MX27) += clock_imx27.o mm-imx27.o |
13 | 13 | ||
14 | obj-$(CONFIG_MACH_MX21ADS) += mx21ads.o | 14 | obj-$(CONFIG_MACH_MX21ADS) += mach-mx21ads.o |
15 | obj-$(CONFIG_MACH_MX27ADS) += mx27ads.o | 15 | obj-$(CONFIG_MACH_MX27ADS) += mach-mx27ads.o |
16 | obj-$(CONFIG_MACH_PCM038) += pcm038.o | 16 | obj-$(CONFIG_MACH_PCM038) += mach-pcm038.o |
17 | obj-$(CONFIG_MACH_PCM970_BASEBOARD) += pcm970-baseboard.o | 17 | obj-$(CONFIG_MACH_PCM970_BASEBOARD) += pcm970-baseboard.o |
18 | obj-$(CONFIG_MACH_MX27_3DS) += mx27pdk.o | 18 | obj-$(CONFIG_MACH_MX27_3DS) += mach-mx27_3ds.o |
19 | obj-$(CONFIG_MACH_MX27LITE) += mx27lite.o | 19 | obj-$(CONFIG_MACH_IMX27LITE) += mach-imx27lite.o |
20 | obj-$(CONFIG_MACH_EUKREA_CPUIMX27) += eukrea_cpuimx27.o | 20 | obj-$(CONFIG_MACH_CPUIMX27) += mach-cpuimx27.o |
21 | obj-$(CONFIG_MACH_EUKREA_MBIMX27_BASEBOARD) += eukrea_mbimx27-baseboard.o | 21 | obj-$(CONFIG_MACH_EUKREA_MBIMX27_BASEBOARD) += eukrea_mbimx27-baseboard.o |
22 | obj-$(CONFIG_MACH_PCA100) += pca100.o | 22 | obj-$(CONFIG_MACH_PCA100) += mach-pca100.o |
23 | obj-$(CONFIG_MACH_MXT_TD60) += mxt_td60.o | 23 | obj-$(CONFIG_MACH_MXT_TD60) += mach-mxt_td60.o |
24 | |||
diff --git a/arch/arm/mach-mx2/clock_imx21.c b/arch/arm/mach-mx2/clock_imx21.c index 91901b5d56c..8974faf9cef 100644 --- a/arch/arm/mach-mx2/clock_imx21.c +++ b/arch/arm/mach-mx2/clock_imx21.c | |||
@@ -23,11 +23,242 @@ | |||
23 | #include <linux/module.h> | 23 | #include <linux/module.h> |
24 | 24 | ||
25 | #include <mach/clock.h> | 25 | #include <mach/clock.h> |
26 | #include <mach/hardware.h> | ||
26 | #include <mach/common.h> | 27 | #include <mach/common.h> |
27 | #include <asm/clkdev.h> | 28 | #include <asm/clkdev.h> |
28 | #include <asm/div64.h> | 29 | #include <asm/div64.h> |
29 | 30 | ||
30 | #include "crm_regs.h" | 31 | #define IO_ADDR_CCM(off) (MX21_IO_ADDRESS(MX21_CCM_BASE_ADDR + (off))) |
32 | |||
33 | /* Register offsets */ | ||
34 | #define CCM_CSCR IO_ADDR_CCM(0x0) | ||
35 | #define CCM_MPCTL0 IO_ADDR_CCM(0x4) | ||
36 | #define CCM_MPCTL1 IO_ADDR_CCM(0x8) | ||
37 | #define CCM_SPCTL0 IO_ADDR_CCM(0xc) | ||
38 | #define CCM_SPCTL1 IO_ADDR_CCM(0x10) | ||
39 | #define CCM_OSC26MCTL IO_ADDR_CCM(0x14) | ||
40 | #define CCM_PCDR0 IO_ADDR_CCM(0x18) | ||
41 | #define CCM_PCDR1 IO_ADDR_CCM(0x1c) | ||
42 | #define CCM_PCCR0 IO_ADDR_CCM(0x20) | ||
43 | #define CCM_PCCR1 IO_ADDR_CCM(0x24) | ||
44 | #define CCM_CCSR IO_ADDR_CCM(0x28) | ||
45 | #define CCM_PMCTL IO_ADDR_CCM(0x2c) | ||
46 | #define CCM_PMCOUNT IO_ADDR_CCM(0x30) | ||
47 | #define CCM_WKGDCTL IO_ADDR_CCM(0x34) | ||
48 | |||
49 | #define CCM_CSCR_PRESC_OFFSET 29 | ||
50 | #define CCM_CSCR_PRESC_MASK (0x7 << CCM_CSCR_PRESC_OFFSET) | ||
51 | |||
52 | #define CCM_CSCR_USB_OFFSET 26 | ||
53 | #define CCM_CSCR_USB_MASK (0x7 << CCM_CSCR_USB_OFFSET) | ||
54 | #define CCM_CSCR_SD_OFFSET 24 | ||
55 | #define CCM_CSCR_SD_MASK (0x3 << CCM_CSCR_SD_OFFSET) | ||
56 | #define CCM_CSCR_SPLLRES (1 << 22) | ||
57 | #define CCM_CSCR_MPLLRES (1 << 21) | ||
58 | #define CCM_CSCR_SSI2_OFFSET 20 | ||
59 | #define CCM_CSCR_SSI2 (1 << CCM_CSCR_SSI2_OFFSET) | ||
60 | #define CCM_CSCR_SSI1_OFFSET 19 | ||
61 | #define CCM_CSCR_SSI1 (1 << CCM_CSCR_SSI1_OFFSET) | ||
62 | #define CCM_CSCR_FIR_OFFSET 18 | ||
63 | #define CCM_CSCR_FIR (1 << CCM_CSCR_FIR_OFFSET) | ||
64 | #define CCM_CSCR_SP (1 << 17) | ||
65 | #define CCM_CSCR_MCU (1 << 16) | ||
66 | #define CCM_CSCR_BCLK_OFFSET 10 | ||
67 | #define CCM_CSCR_BCLK_MASK (0xf << CCM_CSCR_BCLK_OFFSET) | ||
68 | #define CCM_CSCR_IPDIV_OFFSET 9 | ||
69 | #define CCM_CSCR_IPDIV (1 << CCM_CSCR_IPDIV_OFFSET) | ||
70 | |||
71 | #define CCM_CSCR_OSC26MDIV (1 << 4) | ||
72 | #define CCM_CSCR_OSC26M (1 << 3) | ||
73 | #define CCM_CSCR_FPM (1 << 2) | ||
74 | #define CCM_CSCR_SPEN (1 << 1) | ||
75 | #define CCM_CSCR_MPEN 1 | ||
76 | |||
77 | #define CCM_MPCTL0_CPLM (1 << 31) | ||
78 | #define CCM_MPCTL0_PD_OFFSET 26 | ||
79 | #define CCM_MPCTL0_PD_MASK (0xf << 26) | ||
80 | #define CCM_MPCTL0_MFD_OFFSET 16 | ||
81 | #define CCM_MPCTL0_MFD_MASK (0x3ff << 16) | ||
82 | #define CCM_MPCTL0_MFI_OFFSET 10 | ||
83 | #define CCM_MPCTL0_MFI_MASK (0xf << 10) | ||
84 | #define CCM_MPCTL0_MFN_OFFSET 0 | ||
85 | #define CCM_MPCTL0_MFN_MASK 0x3ff | ||
86 | |||
87 | #define CCM_MPCTL1_LF (1 << 15) | ||
88 | #define CCM_MPCTL1_BRMO (1 << 6) | ||
89 | |||
90 | #define CCM_SPCTL0_CPLM (1 << 31) | ||
91 | #define CCM_SPCTL0_PD_OFFSET 26 | ||
92 | #define CCM_SPCTL0_PD_MASK (0xf << 26) | ||
93 | #define CCM_SPCTL0_MFD_OFFSET 16 | ||
94 | #define CCM_SPCTL0_MFD_MASK (0x3ff << 16) | ||
95 | #define CCM_SPCTL0_MFI_OFFSET 10 | ||
96 | #define CCM_SPCTL0_MFI_MASK (0xf << 10) | ||
97 | #define CCM_SPCTL0_MFN_OFFSET 0 | ||
98 | #define CCM_SPCTL0_MFN_MASK 0x3ff | ||
99 | |||
100 | #define CCM_SPCTL1_LF (1 << 15) | ||
101 | #define CCM_SPCTL1_BRMO (1 << 6) | ||
102 | |||
103 | #define CCM_OSC26MCTL_PEAK_OFFSET 16 | ||
104 | #define CCM_OSC26MCTL_PEAK_MASK (0x3 << 16) | ||
105 | #define CCM_OSC26MCTL_AGC_OFFSET 8 | ||
106 | #define CCM_OSC26MCTL_AGC_MASK (0x3f << 8) | ||
107 | #define CCM_OSC26MCTL_ANATEST_OFFSET 0 | ||
108 | #define CCM_OSC26MCTL_ANATEST_MASK 0x3f | ||
109 | |||
110 | #define CCM_PCDR0_SSI2BAUDDIV_OFFSET 26 | ||
111 | #define CCM_PCDR0_SSI2BAUDDIV_MASK (0x3f << 26) | ||
112 | #define CCM_PCDR0_SSI1BAUDDIV_OFFSET 16 | ||
113 | #define CCM_PCDR0_SSI1BAUDDIV_MASK (0x3f << 16) | ||
114 | #define CCM_PCDR0_NFCDIV_OFFSET 12 | ||
115 | #define CCM_PCDR0_NFCDIV_MASK (0xf << 12) | ||
116 | #define CCM_PCDR0_48MDIV_OFFSET 5 | ||
117 | #define CCM_PCDR0_48MDIV_MASK (0x7 << CCM_PCDR0_48MDIV_OFFSET) | ||
118 | #define CCM_PCDR0_FIRIDIV_OFFSET 0 | ||
119 | #define CCM_PCDR0_FIRIDIV_MASK 0x1f | ||
120 | #define CCM_PCDR1_PERDIV4_OFFSET 24 | ||
121 | #define CCM_PCDR1_PERDIV4_MASK (0x3f << 24) | ||
122 | #define CCM_PCDR1_PERDIV3_OFFSET 16 | ||
123 | #define CCM_PCDR1_PERDIV3_MASK (0x3f << 16) | ||
124 | #define CCM_PCDR1_PERDIV2_OFFSET 8 | ||
125 | #define CCM_PCDR1_PERDIV2_MASK (0x3f << 8) | ||
126 | #define CCM_PCDR1_PERDIV1_OFFSET 0 | ||
127 | #define CCM_PCDR1_PERDIV1_MASK 0x3f | ||
128 | |||
129 | #define CCM_PCCR_HCLK_CSI_OFFSET 31 | ||
130 | #define CCM_PCCR_HCLK_CSI_REG CCM_PCCR0 | ||
131 | #define CCM_PCCR_HCLK_DMA_OFFSET 30 | ||
132 | #define CCM_PCCR_HCLK_DMA_REG CCM_PCCR0 | ||
133 | #define CCM_PCCR_HCLK_BROM_OFFSET 28 | ||
134 | #define CCM_PCCR_HCLK_BROM_REG CCM_PCCR0 | ||
135 | #define CCM_PCCR_HCLK_EMMA_OFFSET 27 | ||
136 | #define CCM_PCCR_HCLK_EMMA_REG CCM_PCCR0 | ||
137 | #define CCM_PCCR_HCLK_LCDC_OFFSET 26 | ||
138 | #define CCM_PCCR_HCLK_LCDC_REG CCM_PCCR0 | ||
139 | #define CCM_PCCR_HCLK_SLCDC_OFFSET 25 | ||
140 | #define CCM_PCCR_HCLK_SLCDC_REG CCM_PCCR0 | ||
141 | #define CCM_PCCR_HCLK_USBOTG_OFFSET 24 | ||
142 | #define CCM_PCCR_HCLK_USBOTG_REG CCM_PCCR0 | ||
143 | #define CCM_PCCR_HCLK_BMI_OFFSET 23 | ||
144 | #define CCM_PCCR_BMI_MASK (1 << CCM_PCCR_BMI_MASK) | ||
145 | #define CCM_PCCR_HCLK_BMI_REG CCM_PCCR0 | ||
146 | #define CCM_PCCR_PERCLK4_OFFSET 22 | ||
147 | #define CCM_PCCR_PERCLK4_REG CCM_PCCR0 | ||
148 | #define CCM_PCCR_SLCDC_OFFSET 21 | ||
149 | #define CCM_PCCR_SLCDC_REG CCM_PCCR0 | ||
150 | #define CCM_PCCR_FIRI_BAUD_OFFSET 20 | ||
151 | #define CCM_PCCR_FIRI_BAUD_MASK (1 << CCM_PCCR_FIRI_BAUD_MASK) | ||
152 | #define CCM_PCCR_FIRI_BAUD_REG CCM_PCCR0 | ||
153 | #define CCM_PCCR_NFC_OFFSET 19 | ||
154 | #define CCM_PCCR_NFC_REG CCM_PCCR0 | ||
155 | #define CCM_PCCR_LCDC_OFFSET 18 | ||
156 | #define CCM_PCCR_LCDC_REG CCM_PCCR0 | ||
157 | #define CCM_PCCR_SSI1_BAUD_OFFSET 17 | ||
158 | #define CCM_PCCR_SSI1_BAUD_REG CCM_PCCR0 | ||
159 | #define CCM_PCCR_SSI2_BAUD_OFFSET 16 | ||
160 | #define CCM_PCCR_SSI2_BAUD_REG CCM_PCCR0 | ||
161 | #define CCM_PCCR_EMMA_OFFSET 15 | ||
162 | #define CCM_PCCR_EMMA_REG CCM_PCCR0 | ||
163 | #define CCM_PCCR_USBOTG_OFFSET 14 | ||
164 | #define CCM_PCCR_USBOTG_REG CCM_PCCR0 | ||
165 | #define CCM_PCCR_DMA_OFFSET 13 | ||
166 | #define CCM_PCCR_DMA_REG CCM_PCCR0 | ||
167 | #define CCM_PCCR_I2C1_OFFSET 12 | ||
168 | #define CCM_PCCR_I2C1_REG CCM_PCCR0 | ||
169 | #define CCM_PCCR_GPIO_OFFSET 11 | ||
170 | #define CCM_PCCR_GPIO_REG CCM_PCCR0 | ||
171 | #define CCM_PCCR_SDHC2_OFFSET 10 | ||
172 | #define CCM_PCCR_SDHC2_REG CCM_PCCR0 | ||
173 | #define CCM_PCCR_SDHC1_OFFSET 9 | ||
174 | #define CCM_PCCR_SDHC1_REG CCM_PCCR0 | ||
175 | #define CCM_PCCR_FIRI_OFFSET 8 | ||
176 | #define CCM_PCCR_FIRI_MASK (1 << CCM_PCCR_BAUD_MASK) | ||
177 | #define CCM_PCCR_FIRI_REG CCM_PCCR0 | ||
178 | #define CCM_PCCR_SSI2_IPG_OFFSET 7 | ||
179 | #define CCM_PCCR_SSI2_REG CCM_PCCR0 | ||
180 | #define CCM_PCCR_SSI1_IPG_OFFSET 6 | ||
181 | #define CCM_PCCR_SSI1_REG CCM_PCCR0 | ||
182 | #define CCM_PCCR_CSPI2_OFFSET 5 | ||
183 | #define CCM_PCCR_CSPI2_REG CCM_PCCR0 | ||
184 | #define CCM_PCCR_CSPI1_OFFSET 4 | ||
185 | #define CCM_PCCR_CSPI1_REG CCM_PCCR0 | ||
186 | #define CCM_PCCR_UART4_OFFSET 3 | ||
187 | #define CCM_PCCR_UART4_REG CCM_PCCR0 | ||
188 | #define CCM_PCCR_UART3_OFFSET 2 | ||
189 | #define CCM_PCCR_UART3_REG CCM_PCCR0 | ||
190 | #define CCM_PCCR_UART2_OFFSET 1 | ||
191 | #define CCM_PCCR_UART2_REG CCM_PCCR0 | ||
192 | #define CCM_PCCR_UART1_OFFSET 0 | ||
193 | #define CCM_PCCR_UART1_REG CCM_PCCR0 | ||
194 | |||
195 | #define CCM_PCCR_OWIRE_OFFSET 31 | ||
196 | #define CCM_PCCR_OWIRE_REG CCM_PCCR1 | ||
197 | #define CCM_PCCR_KPP_OFFSET 30 | ||
198 | #define CCM_PCCR_KPP_REG CCM_PCCR1 | ||
199 | #define CCM_PCCR_RTC_OFFSET 29 | ||
200 | #define CCM_PCCR_RTC_REG CCM_PCCR1 | ||
201 | #define CCM_PCCR_PWM_OFFSET 28 | ||
202 | #define CCM_PCCR_PWM_REG CCM_PCCR1 | ||
203 | #define CCM_PCCR_GPT3_OFFSET 27 | ||
204 | #define CCM_PCCR_GPT3_REG CCM_PCCR1 | ||
205 | #define CCM_PCCR_GPT2_OFFSET 26 | ||
206 | #define CCM_PCCR_GPT2_REG CCM_PCCR1 | ||
207 | #define CCM_PCCR_GPT1_OFFSET 25 | ||
208 | #define CCM_PCCR_GPT1_REG CCM_PCCR1 | ||
209 | #define CCM_PCCR_WDT_OFFSET 24 | ||
210 | #define CCM_PCCR_WDT_REG CCM_PCCR1 | ||
211 | #define CCM_PCCR_CSPI3_OFFSET 23 | ||
212 | #define CCM_PCCR_CSPI3_REG CCM_PCCR1 | ||
213 | |||
214 | #define CCM_PCCR_CSPI1_MASK (1 << CCM_PCCR_CSPI1_OFFSET) | ||
215 | #define CCM_PCCR_CSPI2_MASK (1 << CCM_PCCR_CSPI2_OFFSET) | ||
216 | #define CCM_PCCR_CSPI3_MASK (1 << CCM_PCCR_CSPI3_OFFSET) | ||
217 | #define CCM_PCCR_DMA_MASK (1 << CCM_PCCR_DMA_OFFSET) | ||
218 | #define CCM_PCCR_EMMA_MASK (1 << CCM_PCCR_EMMA_OFFSET) | ||
219 | #define CCM_PCCR_GPIO_MASK (1 << CCM_PCCR_GPIO_OFFSET) | ||
220 | #define CCM_PCCR_GPT1_MASK (1 << CCM_PCCR_GPT1_OFFSET) | ||
221 | #define CCM_PCCR_GPT2_MASK (1 << CCM_PCCR_GPT2_OFFSET) | ||
222 | #define CCM_PCCR_GPT3_MASK (1 << CCM_PCCR_GPT3_OFFSET) | ||
223 | #define CCM_PCCR_HCLK_BROM_MASK (1 << CCM_PCCR_HCLK_BROM_OFFSET) | ||
224 | #define CCM_PCCR_HCLK_CSI_MASK (1 << CCM_PCCR_HCLK_CSI_OFFSET) | ||
225 | #define CCM_PCCR_HCLK_DMA_MASK (1 << CCM_PCCR_HCLK_DMA_OFFSET) | ||
226 | #define CCM_PCCR_HCLK_EMMA_MASK (1 << CCM_PCCR_HCLK_EMMA_OFFSET) | ||
227 | #define CCM_PCCR_HCLK_LCDC_MASK (1 << CCM_PCCR_HCLK_LCDC_OFFSET) | ||
228 | #define CCM_PCCR_HCLK_SLCDC_MASK (1 << CCM_PCCR_HCLK_SLCDC_OFFSET) | ||
229 | #define CCM_PCCR_HCLK_USBOTG_MASK (1 << CCM_PCCR_HCLK_USBOTG_OFFSET) | ||
230 | #define CCM_PCCR_I2C1_MASK (1 << CCM_PCCR_I2C1_OFFSET) | ||
231 | #define CCM_PCCR_KPP_MASK (1 << CCM_PCCR_KPP_OFFSET) | ||
232 | #define CCM_PCCR_LCDC_MASK (1 << CCM_PCCR_LCDC_OFFSET) | ||
233 | #define CCM_PCCR_NFC_MASK (1 << CCM_PCCR_NFC_OFFSET) | ||
234 | #define CCM_PCCR_OWIRE_MASK (1 << CCM_PCCR_OWIRE_OFFSET) | ||
235 | #define CCM_PCCR_PERCLK4_MASK (1 << CCM_PCCR_PERCLK4_OFFSET) | ||
236 | #define CCM_PCCR_PWM_MASK (1 << CCM_PCCR_PWM_OFFSET) | ||
237 | #define CCM_PCCR_RTC_MASK (1 << CCM_PCCR_RTC_OFFSET) | ||
238 | #define CCM_PCCR_SDHC1_MASK (1 << CCM_PCCR_SDHC1_OFFSET) | ||
239 | #define CCM_PCCR_SDHC2_MASK (1 << CCM_PCCR_SDHC2_OFFSET) | ||
240 | #define CCM_PCCR_SLCDC_MASK (1 << CCM_PCCR_SLCDC_OFFSET) | ||
241 | #define CCM_PCCR_SSI1_BAUD_MASK (1 << CCM_PCCR_SSI1_BAUD_OFFSET) | ||
242 | #define CCM_PCCR_SSI1_IPG_MASK (1 << CCM_PCCR_SSI1_IPG_OFFSET) | ||
243 | #define CCM_PCCR_SSI2_BAUD_MASK (1 << CCM_PCCR_SSI2_BAUD_OFFSET) | ||
244 | #define CCM_PCCR_SSI2_IPG_MASK (1 << CCM_PCCR_SSI2_IPG_OFFSET) | ||
245 | #define CCM_PCCR_UART1_MASK (1 << CCM_PCCR_UART1_OFFSET) | ||
246 | #define CCM_PCCR_UART2_MASK (1 << CCM_PCCR_UART2_OFFSET) | ||
247 | #define CCM_PCCR_UART3_MASK (1 << CCM_PCCR_UART3_OFFSET) | ||
248 | #define CCM_PCCR_UART4_MASK (1 << CCM_PCCR_UART4_OFFSET) | ||
249 | #define CCM_PCCR_USBOTG_MASK (1 << CCM_PCCR_USBOTG_OFFSET) | ||
250 | #define CCM_PCCR_WDT_MASK (1 << CCM_PCCR_WDT_OFFSET) | ||
251 | |||
252 | #define CCM_CCSR_32KSR (1 << 15) | ||
253 | |||
254 | #define CCM_CCSR_CLKMODE1 (1 << 9) | ||
255 | #define CCM_CCSR_CLKMODE0 (1 << 8) | ||
256 | |||
257 | #define CCM_CCSR_CLKOSEL_OFFSET 0 | ||
258 | #define CCM_CCSR_CLKOSEL_MASK 0x1f | ||
259 | |||
260 | #define SYS_FMCR 0x14 /* Functional Muxing Control Reg */ | ||
261 | #define SYS_CHIP_ID 0x00 /* The offset of CHIP ID register */ | ||
31 | 262 | ||
32 | static int _clk_enable(struct clk *clk) | 263 | static int _clk_enable(struct clk *clk) |
33 | { | 264 | { |
@@ -1004,6 +1235,7 @@ int __init mx21_clocks_init(unsigned long lref, unsigned long href) | |||
1004 | clk_enable(&uart_clk[0]); | 1235 | clk_enable(&uart_clk[0]); |
1005 | #endif | 1236 | #endif |
1006 | 1237 | ||
1007 | mxc_timer_init(&gpt_clk[0], IO_ADDRESS(GPT1_BASE_ADDR), MXC_INT_GPT1); | 1238 | mxc_timer_init(&gpt_clk[0], MX21_IO_ADDRESS(MX21_GPT1_BASE_ADDR), |
1239 | MX21_INT_GPT1); | ||
1008 | return 0; | 1240 | return 0; |
1009 | } | 1241 | } |
diff --git a/arch/arm/mach-mx2/clock_imx27.c b/arch/arm/mach-mx2/clock_imx27.c index b010bf9ceaa..68bf93e6e90 100644 --- a/arch/arm/mach-mx2/clock_imx27.c +++ b/arch/arm/mach-mx2/clock_imx27.c | |||
@@ -29,21 +29,23 @@ | |||
29 | #include <mach/common.h> | 29 | #include <mach/common.h> |
30 | #include <mach/hardware.h> | 30 | #include <mach/hardware.h> |
31 | 31 | ||
32 | #define IO_ADDR_CCM(off) (MX27_IO_ADDRESS(MX27_CCM_BASE_ADDR + (off))) | ||
33 | |||
32 | /* Register offsets */ | 34 | /* Register offsets */ |
33 | #define CCM_CSCR (IO_ADDRESS(CCM_BASE_ADDR) + 0x0) | 35 | #define CCM_CSCR IO_ADDR_CCM(0x0) |
34 | #define CCM_MPCTL0 (IO_ADDRESS(CCM_BASE_ADDR) + 0x4) | 36 | #define CCM_MPCTL0 IO_ADDR_CCM(0x4) |
35 | #define CCM_MPCTL1 (IO_ADDRESS(CCM_BASE_ADDR) + 0x8) | 37 | #define CCM_MPCTL1 IO_ADDR_CCM(0x8) |
36 | #define CCM_SPCTL0 (IO_ADDRESS(CCM_BASE_ADDR) + 0xC) | 38 | #define CCM_SPCTL0 IO_ADDR_CCM(0xc) |
37 | #define CCM_SPCTL1 (IO_ADDRESS(CCM_BASE_ADDR) + 0x10) | 39 | #define CCM_SPCTL1 IO_ADDR_CCM(0x10) |
38 | #define CCM_OSC26MCTL (IO_ADDRESS(CCM_BASE_ADDR) + 0x14) | 40 | #define CCM_OSC26MCTL IO_ADDR_CCM(0x14) |
39 | #define CCM_PCDR0 (IO_ADDRESS(CCM_BASE_ADDR) + 0x18) | 41 | #define CCM_PCDR0 IO_ADDR_CCM(0x18) |
40 | #define CCM_PCDR1 (IO_ADDRESS(CCM_BASE_ADDR) + 0x1c) | 42 | #define CCM_PCDR1 IO_ADDR_CCM(0x1c) |
41 | #define CCM_PCCR0 (IO_ADDRESS(CCM_BASE_ADDR) + 0x20) | 43 | #define CCM_PCCR0 IO_ADDR_CCM(0x20) |
42 | #define CCM_PCCR1 (IO_ADDRESS(CCM_BASE_ADDR) + 0x24) | 44 | #define CCM_PCCR1 IO_ADDR_CCM(0x24) |
43 | #define CCM_CCSR (IO_ADDRESS(CCM_BASE_ADDR) + 0x28) | 45 | #define CCM_CCSR IO_ADDR_CCM(0x28) |
44 | #define CCM_PMCTL (IO_ADDRESS(CCM_BASE_ADDR) + 0x2c) | 46 | #define CCM_PMCTL IO_ADDR_CCM(0x2c) |
45 | #define CCM_PMCOUNT (IO_ADDRESS(CCM_BASE_ADDR) + 0x30) | 47 | #define CCM_PMCOUNT IO_ADDR_CCM(0x30) |
46 | #define CCM_WKGDCTL (IO_ADDRESS(CCM_BASE_ADDR) + 0x34) | 48 | #define CCM_WKGDCTL IO_ADDR_CCM(0x34) |
47 | 49 | ||
48 | #define CCM_CSCR_UPDATE_DIS (1 << 31) | 50 | #define CCM_CSCR_UPDATE_DIS (1 << 31) |
49 | #define CCM_CSCR_SSI2 (1 << 23) | 51 | #define CCM_CSCR_SSI2 (1 << 23) |
@@ -755,7 +757,8 @@ int __init mx27_clocks_init(unsigned long fref) | |||
755 | clk_enable(&uart1_clk); | 757 | clk_enable(&uart1_clk); |
756 | #endif | 758 | #endif |
757 | 759 | ||
758 | mxc_timer_init(&gpt1_clk, IO_ADDRESS(GPT1_BASE_ADDR), MXC_INT_GPT1); | 760 | mxc_timer_init(&gpt1_clk, MX27_IO_ADDRESS(MX27_GPT1_BASE_ADDR), |
761 | MX27_INT_GPT1); | ||
759 | 762 | ||
760 | return 0; | 763 | return 0; |
761 | } | 764 | } |
diff --git a/arch/arm/mach-mx2/cpu_imx27.c b/arch/arm/mach-mx2/cpu_imx27.c index d9e3bf9644c..d8d3b2d84dc 100644 --- a/arch/arm/mach-mx2/cpu_imx27.c +++ b/arch/arm/mach-mx2/cpu_imx27.c | |||
@@ -39,7 +39,8 @@ static void query_silicon_parameter(void) | |||
39 | * the silicon revision very early we read it here to | 39 | * the silicon revision very early we read it here to |
40 | * avoid any further hooks | 40 | * avoid any further hooks |
41 | */ | 41 | */ |
42 | val = __raw_readl(IO_ADDRESS(SYSCTRL_BASE_ADDR) + SYS_CHIP_ID); | 42 | val = __raw_readl(MX27_IO_ADDRESS(MX27_SYSCTRL_BASE_ADDR |
43 | + SYS_CHIP_ID)); | ||
43 | 44 | ||
44 | cpu_silicon_rev = (int)(val >> 28); | 45 | cpu_silicon_rev = (int)(val >> 28); |
45 | cpu_partnumber = (int)((val >> 12) & 0xFFFF); | 46 | cpu_partnumber = (int)((val >> 12) & 0xFFFF); |
diff --git a/arch/arm/mach-mx2/crm_regs.h b/arch/arm/mach-mx2/crm_regs.h deleted file mode 100644 index 749de76b3f9..00000000000 --- a/arch/arm/mach-mx2/crm_regs.h +++ /dev/null | |||
@@ -1,258 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved. | ||
3 | * Copyright 2008 Juergen Beisert, kernel@pengutronix.de | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or | ||
6 | * modify it under the terms of the GNU General Public License | ||
7 | * as published by the Free Software Foundation; either version 2 | ||
8 | * of the License, or (at your option) any later version. | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | ||
17 | * MA 02110-1301, USA. | ||
18 | */ | ||
19 | |||
20 | #ifndef __ARCH_ARM_MACH_MX2_CRM_REGS_H__ | ||
21 | #define __ARCH_ARM_MACH_MX2_CRM_REGS_H__ | ||
22 | |||
23 | #include <mach/hardware.h> | ||
24 | |||
25 | /* Register offsets */ | ||
26 | #define CCM_CSCR (IO_ADDRESS(CCM_BASE_ADDR) + 0x0) | ||
27 | #define CCM_MPCTL0 (IO_ADDRESS(CCM_BASE_ADDR) + 0x4) | ||
28 | #define CCM_MPCTL1 (IO_ADDRESS(CCM_BASE_ADDR) + 0x8) | ||
29 | #define CCM_SPCTL0 (IO_ADDRESS(CCM_BASE_ADDR) + 0xC) | ||
30 | #define CCM_SPCTL1 (IO_ADDRESS(CCM_BASE_ADDR) + 0x10) | ||
31 | #define CCM_OSC26MCTL (IO_ADDRESS(CCM_BASE_ADDR) + 0x14) | ||
32 | #define CCM_PCDR0 (IO_ADDRESS(CCM_BASE_ADDR) + 0x18) | ||
33 | #define CCM_PCDR1 (IO_ADDRESS(CCM_BASE_ADDR) + 0x1c) | ||
34 | #define CCM_PCCR0 (IO_ADDRESS(CCM_BASE_ADDR) + 0x20) | ||
35 | #define CCM_PCCR1 (IO_ADDRESS(CCM_BASE_ADDR) + 0x24) | ||
36 | #define CCM_CCSR (IO_ADDRESS(CCM_BASE_ADDR) + 0x28) | ||
37 | #define CCM_PMCTL (IO_ADDRESS(CCM_BASE_ADDR) + 0x2c) | ||
38 | #define CCM_PMCOUNT (IO_ADDRESS(CCM_BASE_ADDR) + 0x30) | ||
39 | #define CCM_WKGDCTL (IO_ADDRESS(CCM_BASE_ADDR) + 0x34) | ||
40 | |||
41 | #define CCM_CSCR_PRESC_OFFSET 29 | ||
42 | #define CCM_CSCR_PRESC_MASK (0x7 << CCM_CSCR_PRESC_OFFSET) | ||
43 | |||
44 | #define CCM_CSCR_USB_OFFSET 26 | ||
45 | #define CCM_CSCR_USB_MASK (0x7 << CCM_CSCR_USB_OFFSET) | ||
46 | #define CCM_CSCR_SD_OFFSET 24 | ||
47 | #define CCM_CSCR_SD_MASK (0x3 << CCM_CSCR_SD_OFFSET) | ||
48 | #define CCM_CSCR_SPLLRES (1 << 22) | ||
49 | #define CCM_CSCR_MPLLRES (1 << 21) | ||
50 | #define CCM_CSCR_SSI2_OFFSET 20 | ||
51 | #define CCM_CSCR_SSI2 (1 << CCM_CSCR_SSI2_OFFSET) | ||
52 | #define CCM_CSCR_SSI1_OFFSET 19 | ||
53 | #define CCM_CSCR_SSI1 (1 << CCM_CSCR_SSI1_OFFSET) | ||
54 | #define CCM_CSCR_FIR_OFFSET 18 | ||
55 | #define CCM_CSCR_FIR (1 << CCM_CSCR_FIR_OFFSET) | ||
56 | #define CCM_CSCR_SP (1 << 17) | ||
57 | #define CCM_CSCR_MCU (1 << 16) | ||
58 | #define CCM_CSCR_BCLK_OFFSET 10 | ||
59 | #define CCM_CSCR_BCLK_MASK (0xf << CCM_CSCR_BCLK_OFFSET) | ||
60 | #define CCM_CSCR_IPDIV_OFFSET 9 | ||
61 | #define CCM_CSCR_IPDIV (1 << CCM_CSCR_IPDIV_OFFSET) | ||
62 | |||
63 | #define CCM_CSCR_OSC26MDIV (1 << 4) | ||
64 | #define CCM_CSCR_OSC26M (1 << 3) | ||
65 | #define CCM_CSCR_FPM (1 << 2) | ||
66 | #define CCM_CSCR_SPEN (1 << 1) | ||
67 | #define CCM_CSCR_MPEN 1 | ||
68 | |||
69 | |||
70 | |||
71 | #define CCM_MPCTL0_CPLM (1 << 31) | ||
72 | #define CCM_MPCTL0_PD_OFFSET 26 | ||
73 | #define CCM_MPCTL0_PD_MASK (0xf << 26) | ||
74 | #define CCM_MPCTL0_MFD_OFFSET 16 | ||
75 | #define CCM_MPCTL0_MFD_MASK (0x3ff << 16) | ||
76 | #define CCM_MPCTL0_MFI_OFFSET 10 | ||
77 | #define CCM_MPCTL0_MFI_MASK (0xf << 10) | ||
78 | #define CCM_MPCTL0_MFN_OFFSET 0 | ||
79 | #define CCM_MPCTL0_MFN_MASK 0x3ff | ||
80 | |||
81 | #define CCM_MPCTL1_LF (1 << 15) | ||
82 | #define CCM_MPCTL1_BRMO (1 << 6) | ||
83 | |||
84 | #define CCM_SPCTL0_CPLM (1 << 31) | ||
85 | #define CCM_SPCTL0_PD_OFFSET 26 | ||
86 | #define CCM_SPCTL0_PD_MASK (0xf << 26) | ||
87 | #define CCM_SPCTL0_MFD_OFFSET 16 | ||
88 | #define CCM_SPCTL0_MFD_MASK (0x3ff << 16) | ||
89 | #define CCM_SPCTL0_MFI_OFFSET 10 | ||
90 | #define CCM_SPCTL0_MFI_MASK (0xf << 10) | ||
91 | #define CCM_SPCTL0_MFN_OFFSET 0 | ||
92 | #define CCM_SPCTL0_MFN_MASK 0x3ff | ||
93 | |||
94 | #define CCM_SPCTL1_LF (1 << 15) | ||
95 | #define CCM_SPCTL1_BRMO (1 << 6) | ||
96 | |||
97 | #define CCM_OSC26MCTL_PEAK_OFFSET 16 | ||
98 | #define CCM_OSC26MCTL_PEAK_MASK (0x3 << 16) | ||
99 | #define CCM_OSC26MCTL_AGC_OFFSET 8 | ||
100 | #define CCM_OSC26MCTL_AGC_MASK (0x3f << 8) | ||
101 | #define CCM_OSC26MCTL_ANATEST_OFFSET 0 | ||
102 | #define CCM_OSC26MCTL_ANATEST_MASK 0x3f | ||
103 | |||
104 | #define CCM_PCDR0_SSI2BAUDDIV_OFFSET 26 | ||
105 | #define CCM_PCDR0_SSI2BAUDDIV_MASK (0x3f << 26) | ||
106 | #define CCM_PCDR0_SSI1BAUDDIV_OFFSET 16 | ||
107 | #define CCM_PCDR0_SSI1BAUDDIV_MASK (0x3f << 16) | ||
108 | #define CCM_PCDR0_NFCDIV_OFFSET 12 | ||
109 | #define CCM_PCDR0_NFCDIV_MASK (0xf << 12) | ||
110 | #define CCM_PCDR0_48MDIV_OFFSET 5 | ||
111 | #define CCM_PCDR0_48MDIV_MASK (0x7 << CCM_PCDR0_48MDIV_OFFSET) | ||
112 | #define CCM_PCDR0_FIRIDIV_OFFSET 0 | ||
113 | #define CCM_PCDR0_FIRIDIV_MASK 0x1f | ||
114 | #define CCM_PCDR1_PERDIV4_OFFSET 24 | ||
115 | #define CCM_PCDR1_PERDIV4_MASK (0x3f << 24) | ||
116 | #define CCM_PCDR1_PERDIV3_OFFSET 16 | ||
117 | #define CCM_PCDR1_PERDIV3_MASK (0x3f << 16) | ||
118 | #define CCM_PCDR1_PERDIV2_OFFSET 8 | ||
119 | #define CCM_PCDR1_PERDIV2_MASK (0x3f << 8) | ||
120 | #define CCM_PCDR1_PERDIV1_OFFSET 0 | ||
121 | #define CCM_PCDR1_PERDIV1_MASK 0x3f | ||
122 | |||
123 | #define CCM_PCCR_HCLK_CSI_OFFSET 31 | ||
124 | #define CCM_PCCR_HCLK_CSI_REG CCM_PCCR0 | ||
125 | #define CCM_PCCR_HCLK_DMA_OFFSET 30 | ||
126 | #define CCM_PCCR_HCLK_DMA_REG CCM_PCCR0 | ||
127 | #define CCM_PCCR_HCLK_BROM_OFFSET 28 | ||
128 | #define CCM_PCCR_HCLK_BROM_REG CCM_PCCR0 | ||
129 | #define CCM_PCCR_HCLK_EMMA_OFFSET 27 | ||
130 | #define CCM_PCCR_HCLK_EMMA_REG CCM_PCCR0 | ||
131 | #define CCM_PCCR_HCLK_LCDC_OFFSET 26 | ||
132 | #define CCM_PCCR_HCLK_LCDC_REG CCM_PCCR0 | ||
133 | #define CCM_PCCR_HCLK_SLCDC_OFFSET 25 | ||
134 | #define CCM_PCCR_HCLK_SLCDC_REG CCM_PCCR0 | ||
135 | #define CCM_PCCR_HCLK_USBOTG_OFFSET 24 | ||
136 | #define CCM_PCCR_HCLK_USBOTG_REG CCM_PCCR0 | ||
137 | #define CCM_PCCR_HCLK_BMI_OFFSET 23 | ||
138 | #define CCM_PCCR_BMI_MASK (1 << CCM_PCCR_BMI_MASK) | ||
139 | #define CCM_PCCR_HCLK_BMI_REG CCM_PCCR0 | ||
140 | #define CCM_PCCR_PERCLK4_OFFSET 22 | ||
141 | #define CCM_PCCR_PERCLK4_REG CCM_PCCR0 | ||
142 | #define CCM_PCCR_SLCDC_OFFSET 21 | ||
143 | #define CCM_PCCR_SLCDC_REG CCM_PCCR0 | ||
144 | #define CCM_PCCR_FIRI_BAUD_OFFSET 20 | ||
145 | #define CCM_PCCR_FIRI_BAUD_MASK (1 << CCM_PCCR_FIRI_BAUD_MASK) | ||
146 | #define CCM_PCCR_FIRI_BAUD_REG CCM_PCCR0 | ||
147 | #define CCM_PCCR_NFC_OFFSET 19 | ||
148 | #define CCM_PCCR_NFC_REG CCM_PCCR0 | ||
149 | #define CCM_PCCR_LCDC_OFFSET 18 | ||
150 | #define CCM_PCCR_LCDC_REG CCM_PCCR0 | ||
151 | #define CCM_PCCR_SSI1_BAUD_OFFSET 17 | ||
152 | #define CCM_PCCR_SSI1_BAUD_REG CCM_PCCR0 | ||
153 | #define CCM_PCCR_SSI2_BAUD_OFFSET 16 | ||
154 | #define CCM_PCCR_SSI2_BAUD_REG CCM_PCCR0 | ||
155 | #define CCM_PCCR_EMMA_OFFSET 15 | ||
156 | #define CCM_PCCR_EMMA_REG CCM_PCCR0 | ||
157 | #define CCM_PCCR_USBOTG_OFFSET 14 | ||
158 | #define CCM_PCCR_USBOTG_REG CCM_PCCR0 | ||
159 | #define CCM_PCCR_DMA_OFFSET 13 | ||
160 | #define CCM_PCCR_DMA_REG CCM_PCCR0 | ||
161 | #define CCM_PCCR_I2C1_OFFSET 12 | ||
162 | #define CCM_PCCR_I2C1_REG CCM_PCCR0 | ||
163 | #define CCM_PCCR_GPIO_OFFSET 11 | ||
164 | #define CCM_PCCR_GPIO_REG CCM_PCCR0 | ||
165 | #define CCM_PCCR_SDHC2_OFFSET 10 | ||
166 | #define CCM_PCCR_SDHC2_REG CCM_PCCR0 | ||
167 | #define CCM_PCCR_SDHC1_OFFSET 9 | ||
168 | #define CCM_PCCR_SDHC1_REG CCM_PCCR0 | ||
169 | #define CCM_PCCR_FIRI_OFFSET 8 | ||
170 | #define CCM_PCCR_FIRI_MASK (1 << CCM_PCCR_BAUD_MASK) | ||
171 | #define CCM_PCCR_FIRI_REG CCM_PCCR0 | ||
172 | #define CCM_PCCR_SSI2_IPG_OFFSET 7 | ||
173 | #define CCM_PCCR_SSI2_REG CCM_PCCR0 | ||
174 | #define CCM_PCCR_SSI1_IPG_OFFSET 6 | ||
175 | #define CCM_PCCR_SSI1_REG CCM_PCCR0 | ||
176 | #define CCM_PCCR_CSPI2_OFFSET 5 | ||
177 | #define CCM_PCCR_CSPI2_REG CCM_PCCR0 | ||
178 | #define CCM_PCCR_CSPI1_OFFSET 4 | ||
179 | #define CCM_PCCR_CSPI1_REG CCM_PCCR0 | ||
180 | #define CCM_PCCR_UART4_OFFSET 3 | ||
181 | #define CCM_PCCR_UART4_REG CCM_PCCR0 | ||
182 | #define CCM_PCCR_UART3_OFFSET 2 | ||
183 | #define CCM_PCCR_UART3_REG CCM_PCCR0 | ||
184 | #define CCM_PCCR_UART2_OFFSET 1 | ||
185 | #define CCM_PCCR_UART2_REG CCM_PCCR0 | ||
186 | #define CCM_PCCR_UART1_OFFSET 0 | ||
187 | #define CCM_PCCR_UART1_REG CCM_PCCR0 | ||
188 | |||
189 | #define CCM_PCCR_OWIRE_OFFSET 31 | ||
190 | #define CCM_PCCR_OWIRE_REG CCM_PCCR1 | ||
191 | #define CCM_PCCR_KPP_OFFSET 30 | ||
192 | #define CCM_PCCR_KPP_REG CCM_PCCR1 | ||
193 | #define CCM_PCCR_RTC_OFFSET 29 | ||
194 | #define CCM_PCCR_RTC_REG CCM_PCCR1 | ||
195 | #define CCM_PCCR_PWM_OFFSET 28 | ||
196 | #define CCM_PCCR_PWM_REG CCM_PCCR1 | ||
197 | #define CCM_PCCR_GPT3_OFFSET 27 | ||
198 | #define CCM_PCCR_GPT3_REG CCM_PCCR1 | ||
199 | #define CCM_PCCR_GPT2_OFFSET 26 | ||
200 | #define CCM_PCCR_GPT2_REG CCM_PCCR1 | ||
201 | #define CCM_PCCR_GPT1_OFFSET 25 | ||
202 | #define CCM_PCCR_GPT1_REG CCM_PCCR1 | ||
203 | #define CCM_PCCR_WDT_OFFSET 24 | ||
204 | #define CCM_PCCR_WDT_REG CCM_PCCR1 | ||
205 | #define CCM_PCCR_CSPI3_OFFSET 23 | ||
206 | #define CCM_PCCR_CSPI3_REG CCM_PCCR1 | ||
207 | |||
208 | #define CCM_PCCR_CSPI1_MASK (1 << CCM_PCCR_CSPI1_OFFSET) | ||
209 | #define CCM_PCCR_CSPI2_MASK (1 << CCM_PCCR_CSPI2_OFFSET) | ||
210 | #define CCM_PCCR_CSPI3_MASK (1 << CCM_PCCR_CSPI3_OFFSET) | ||
211 | #define CCM_PCCR_DMA_MASK (1 << CCM_PCCR_DMA_OFFSET) | ||
212 | #define CCM_PCCR_EMMA_MASK (1 << CCM_PCCR_EMMA_OFFSET) | ||
213 | #define CCM_PCCR_GPIO_MASK (1 << CCM_PCCR_GPIO_OFFSET) | ||
214 | #define CCM_PCCR_GPT1_MASK (1 << CCM_PCCR_GPT1_OFFSET) | ||
215 | #define CCM_PCCR_GPT2_MASK (1 << CCM_PCCR_GPT2_OFFSET) | ||
216 | #define CCM_PCCR_GPT3_MASK (1 << CCM_PCCR_GPT3_OFFSET) | ||
217 | #define CCM_PCCR_HCLK_BROM_MASK (1 << CCM_PCCR_HCLK_BROM_OFFSET) | ||
218 | #define CCM_PCCR_HCLK_CSI_MASK (1 << CCM_PCCR_HCLK_CSI_OFFSET) | ||
219 | #define CCM_PCCR_HCLK_DMA_MASK (1 << CCM_PCCR_HCLK_DMA_OFFSET) | ||
220 | #define CCM_PCCR_HCLK_EMMA_MASK (1 << CCM_PCCR_HCLK_EMMA_OFFSET) | ||
221 | #define CCM_PCCR_HCLK_LCDC_MASK (1 << CCM_PCCR_HCLK_LCDC_OFFSET) | ||
222 | #define CCM_PCCR_HCLK_SLCDC_MASK (1 << CCM_PCCR_HCLK_SLCDC_OFFSET) | ||
223 | #define CCM_PCCR_HCLK_USBOTG_MASK (1 << CCM_PCCR_HCLK_USBOTG_OFFSET) | ||
224 | #define CCM_PCCR_I2C1_MASK (1 << CCM_PCCR_I2C1_OFFSET) | ||
225 | #define CCM_PCCR_KPP_MASK (1 << CCM_PCCR_KPP_OFFSET) | ||
226 | #define CCM_PCCR_LCDC_MASK (1 << CCM_PCCR_LCDC_OFFSET) | ||
227 | #define CCM_PCCR_NFC_MASK (1 << CCM_PCCR_NFC_OFFSET) | ||
228 | #define CCM_PCCR_OWIRE_MASK (1 << CCM_PCCR_OWIRE_OFFSET) | ||
229 | #define CCM_PCCR_PERCLK4_MASK (1 << CCM_PCCR_PERCLK4_OFFSET) | ||
230 | #define CCM_PCCR_PWM_MASK (1 << CCM_PCCR_PWM_OFFSET) | ||
231 | #define CCM_PCCR_RTC_MASK (1 << CCM_PCCR_RTC_OFFSET) | ||
232 | #define CCM_PCCR_SDHC1_MASK (1 << CCM_PCCR_SDHC1_OFFSET) | ||
233 | #define CCM_PCCR_SDHC2_MASK (1 << CCM_PCCR_SDHC2_OFFSET) | ||
234 | #define CCM_PCCR_SLCDC_MASK (1 << CCM_PCCR_SLCDC_OFFSET) | ||
235 | #define CCM_PCCR_SSI1_BAUD_MASK (1 << CCM_PCCR_SSI1_BAUD_OFFSET) | ||
236 | #define CCM_PCCR_SSI1_IPG_MASK (1 << CCM_PCCR_SSI1_IPG_OFFSET) | ||
237 | #define CCM_PCCR_SSI2_BAUD_MASK (1 << CCM_PCCR_SSI2_BAUD_OFFSET) | ||
238 | #define CCM_PCCR_SSI2_IPG_MASK (1 << CCM_PCCR_SSI2_IPG_OFFSET) | ||
239 | #define CCM_PCCR_UART1_MASK (1 << CCM_PCCR_UART1_OFFSET) | ||
240 | #define CCM_PCCR_UART2_MASK (1 << CCM_PCCR_UART2_OFFSET) | ||
241 | #define CCM_PCCR_UART3_MASK (1 << CCM_PCCR_UART3_OFFSET) | ||
242 | #define CCM_PCCR_UART4_MASK (1 << CCM_PCCR_UART4_OFFSET) | ||
243 | #define CCM_PCCR_USBOTG_MASK (1 << CCM_PCCR_USBOTG_OFFSET) | ||
244 | #define CCM_PCCR_WDT_MASK (1 << CCM_PCCR_WDT_OFFSET) | ||
245 | |||
246 | |||
247 | #define CCM_CCSR_32KSR (1 << 15) | ||
248 | |||
249 | #define CCM_CCSR_CLKMODE1 (1 << 9) | ||
250 | #define CCM_CCSR_CLKMODE0 (1 << 8) | ||
251 | |||
252 | #define CCM_CCSR_CLKOSEL_OFFSET 0 | ||
253 | #define CCM_CCSR_CLKOSEL_MASK 0x1f | ||
254 | |||
255 | #define SYS_FMCR 0x14 /* Functional Muxing Control Reg */ | ||
256 | #define SYS_CHIP_ID 0x00 /* The offset of CHIP ID register */ | ||
257 | |||
258 | #endif /* __ARCH_ARM_MACH_MX2_CRM_REGS_H__ */ | ||
diff --git a/arch/arm/mach-mx2/devices.c b/arch/arm/mach-mx2/devices.c index 3d398ce09b3..a4b809b82fa 100644 --- a/arch/arm/mach-mx2/devices.c +++ b/arch/arm/mach-mx2/devices.c | |||
@@ -46,65 +46,31 @@ | |||
46 | * - i.MX21: 2 channel | 46 | * - i.MX21: 2 channel |
47 | * - i.MX27: 3 channel | 47 | * - i.MX27: 3 channel |
48 | */ | 48 | */ |
49 | static struct resource mxc_spi_resources0[] = { | 49 | #define DEFINE_IMX_SPI_DEVICE(n, baseaddr, irq) \ |
50 | { | 50 | static struct resource mxc_spi_resources ## n[] = { \ |
51 | .start = CSPI1_BASE_ADDR, | 51 | { \ |
52 | .end = CSPI1_BASE_ADDR + SZ_4K - 1, | 52 | .start = baseaddr, \ |
53 | .flags = IORESOURCE_MEM, | 53 | .end = baseaddr + SZ_4K - 1, \ |
54 | }, { | 54 | .flags = IORESOURCE_MEM, \ |
55 | .start = MXC_INT_CSPI1, | 55 | }, { \ |
56 | .end = MXC_INT_CSPI1, | 56 | .start = irq, \ |
57 | .flags = IORESOURCE_IRQ, | 57 | .end = irq, \ |
58 | }, | 58 | .flags = IORESOURCE_IRQ, \ |
59 | }; | 59 | }, \ |
60 | 60 | }; \ | |
61 | static struct resource mxc_spi_resources1[] = { | 61 | \ |
62 | { | 62 | struct platform_device mxc_spi_device ## n = { \ |
63 | .start = CSPI2_BASE_ADDR, | 63 | .name = "spi_imx", \ |
64 | .end = CSPI2_BASE_ADDR + SZ_4K - 1, | 64 | .id = n, \ |
65 | .flags = IORESOURCE_MEM, | 65 | .num_resources = ARRAY_SIZE(mxc_spi_resources ## n), \ |
66 | }, { | 66 | .resource = mxc_spi_resources ## n, \ |
67 | .start = MXC_INT_CSPI2, | 67 | } |
68 | .end = MXC_INT_CSPI2, | ||
69 | .flags = IORESOURCE_IRQ, | ||
70 | }, | ||
71 | }; | ||
72 | |||
73 | #ifdef CONFIG_MACH_MX27 | ||
74 | static struct resource mxc_spi_resources2[] = { | ||
75 | { | ||
76 | .start = CSPI3_BASE_ADDR, | ||
77 | .end = CSPI3_BASE_ADDR + SZ_4K - 1, | ||
78 | .flags = IORESOURCE_MEM, | ||
79 | }, { | ||
80 | .start = MXC_INT_CSPI3, | ||
81 | .end = MXC_INT_CSPI3, | ||
82 | .flags = IORESOURCE_IRQ, | ||
83 | }, | ||
84 | }; | ||
85 | #endif | ||
86 | |||
87 | struct platform_device mxc_spi_device0 = { | ||
88 | .name = "spi_imx", | ||
89 | .id = 0, | ||
90 | .num_resources = ARRAY_SIZE(mxc_spi_resources0), | ||
91 | .resource = mxc_spi_resources0, | ||
92 | }; | ||
93 | 68 | ||
94 | struct platform_device mxc_spi_device1 = { | 69 | DEFINE_IMX_SPI_DEVICE(0, MX2x_CSPI1_BASE_ADDR, MX2x_INT_CSPI1); |
95 | .name = "spi_imx", | 70 | DEFINE_IMX_SPI_DEVICE(1, MX2x_CSPI2_BASE_ADDR, MX2x_INT_CSPI2); |
96 | .id = 1, | ||
97 | .num_resources = ARRAY_SIZE(mxc_spi_resources1), | ||
98 | .resource = mxc_spi_resources1, | ||
99 | }; | ||
100 | 71 | ||
101 | #ifdef CONFIG_MACH_MX27 | 72 | #ifdef CONFIG_MACH_MX27 |
102 | struct platform_device mxc_spi_device2 = { | 73 | DEFINE_IMX_SPI_DEVICE(2, MX27_CSPI3_BASE_ADDR, MX27_INT_CSPI3); |
103 | .name = "spi_imx", | ||
104 | .id = 2, | ||
105 | .num_resources = ARRAY_SIZE(mxc_spi_resources2), | ||
106 | .resource = mxc_spi_resources2, | ||
107 | }; | ||
108 | #endif | 74 | #endif |
109 | 75 | ||
110 | /* | 76 | /* |
@@ -112,104 +78,34 @@ struct platform_device mxc_spi_device2 = { | |||
112 | * - i.MX21: 3 timers | 78 | * - i.MX21: 3 timers |
113 | * - i.MX27: 6 timers | 79 | * - i.MX27: 6 timers |
114 | */ | 80 | */ |
115 | 81 | #define DEFINE_IMX_GPT_DEVICE(n, baseaddr, irq) \ | |
116 | /* We use gpt0 as system timer, so do not add a device for this one */ | 82 | static struct resource timer ## n ##_resources[] = { \ |
117 | 83 | { \ | |
118 | static struct resource timer1_resources[] = { | 84 | .start = baseaddr, \ |
119 | { | 85 | .end = baseaddr + SZ_4K - 1, \ |
120 | .start = GPT2_BASE_ADDR, | 86 | .flags = IORESOURCE_MEM, \ |
121 | .end = GPT2_BASE_ADDR + 0x17, | 87 | }, { \ |
122 | .flags = IORESOURCE_MEM, | 88 | .start = irq, \ |
123 | }, { | 89 | .end = irq, \ |
124 | .start = MXC_INT_GPT2, | 90 | .flags = IORESOURCE_IRQ, \ |
125 | .end = MXC_INT_GPT2, | 91 | } \ |
126 | .flags = IORESOURCE_IRQ, | 92 | }; \ |
93 | \ | ||
94 | struct platform_device mxc_gpt ## n = { \ | ||
95 | .name = "imx_gpt", \ | ||
96 | .id = n, \ | ||
97 | .num_resources = ARRAY_SIZE(timer ## n ## _resources), \ | ||
98 | .resource = timer ## n ## _resources, \ | ||
127 | } | 99 | } |
128 | }; | ||
129 | |||
130 | struct platform_device mxc_gpt1 = { | ||
131 | .name = "imx_gpt", | ||
132 | .id = 1, | ||
133 | .num_resources = ARRAY_SIZE(timer1_resources), | ||
134 | .resource = timer1_resources, | ||
135 | }; | ||
136 | 100 | ||
137 | static struct resource timer2_resources[] = { | 101 | /* We use gpt1 as system timer, so do not add a device for this one */ |
138 | { | 102 | DEFINE_IMX_GPT_DEVICE(1, MX2x_GPT2_BASE_ADDR, MX2x_INT_GPT2); |
139 | .start = GPT3_BASE_ADDR, | 103 | DEFINE_IMX_GPT_DEVICE(2, MX2x_GPT3_BASE_ADDR, MX2x_INT_GPT3); |
140 | .end = GPT3_BASE_ADDR + 0x17, | ||
141 | .flags = IORESOURCE_MEM, | ||
142 | }, { | ||
143 | .start = MXC_INT_GPT3, | ||
144 | .end = MXC_INT_GPT3, | ||
145 | .flags = IORESOURCE_IRQ, | ||
146 | } | ||
147 | }; | ||
148 | |||
149 | struct platform_device mxc_gpt2 = { | ||
150 | .name = "imx_gpt", | ||
151 | .id = 2, | ||
152 | .num_resources = ARRAY_SIZE(timer2_resources), | ||
153 | .resource = timer2_resources, | ||
154 | }; | ||
155 | 104 | ||
156 | #ifdef CONFIG_MACH_MX27 | 105 | #ifdef CONFIG_MACH_MX27 |
157 | static struct resource timer3_resources[] = { | 106 | DEFINE_IMX_GPT_DEVICE(3, MX27_GPT4_BASE_ADDR, MX27_INT_GPT4); |
158 | { | 107 | DEFINE_IMX_GPT_DEVICE(4, MX27_GPT5_BASE_ADDR, MX27_INT_GPT5); |
159 | .start = GPT4_BASE_ADDR, | 108 | DEFINE_IMX_GPT_DEVICE(5, MX27_GPT6_BASE_ADDR, MX27_INT_GPT6); |
160 | .end = GPT4_BASE_ADDR + 0x17, | ||
161 | .flags = IORESOURCE_MEM, | ||
162 | }, { | ||
163 | .start = MXC_INT_GPT4, | ||
164 | .end = MXC_INT_GPT4, | ||
165 | .flags = IORESOURCE_IRQ, | ||
166 | } | ||
167 | }; | ||
168 | |||
169 | struct platform_device mxc_gpt3 = { | ||
170 | .name = "imx_gpt", | ||
171 | .id = 3, | ||
172 | .num_resources = ARRAY_SIZE(timer3_resources), | ||
173 | .resource = timer3_resources, | ||
174 | }; | ||
175 | |||
176 | static struct resource timer4_resources[] = { | ||
177 | { | ||
178 | .start = GPT5_BASE_ADDR, | ||
179 | .end = GPT5_BASE_ADDR + 0x17, | ||
180 | .flags = IORESOURCE_MEM, | ||
181 | }, { | ||
182 | .start = MXC_INT_GPT5, | ||
183 | .end = MXC_INT_GPT5, | ||
184 | .flags = IORESOURCE_IRQ, | ||
185 | } | ||
186 | }; | ||
187 | |||
188 | struct platform_device mxc_gpt4 = { | ||
189 | .name = "imx_gpt", | ||
190 | .id = 4, | ||
191 | .num_resources = ARRAY_SIZE(timer4_resources), | ||
192 | .resource = timer4_resources, | ||
193 | }; | ||
194 | |||
195 | static struct resource timer5_resources[] = { | ||
196 | { | ||
197 | .start = GPT6_BASE_ADDR, | ||
198 | .end = GPT6_BASE_ADDR + 0x17, | ||
199 | .flags = IORESOURCE_MEM, | ||
200 | }, { | ||
201 | .start = MXC_INT_GPT6, | ||
202 | .end = MXC_INT_GPT6, | ||
203 | .flags = IORESOURCE_IRQ, | ||
204 | } | ||
205 | }; | ||
206 | |||
207 | struct platform_device mxc_gpt5 = { | ||
208 | .name = "imx_gpt", | ||
209 | .id = 5, | ||
210 | .num_resources = ARRAY_SIZE(timer5_resources), | ||
211 | .resource = timer5_resources, | ||
212 | }; | ||
213 | #endif | 109 | #endif |
214 | 110 | ||
215 | /* | 111 | /* |
@@ -220,9 +116,9 @@ struct platform_device mxc_gpt5 = { | |||
220 | */ | 116 | */ |
221 | static struct resource mxc_wdt_resources[] = { | 117 | static struct resource mxc_wdt_resources[] = { |
222 | { | 118 | { |
223 | .start = WDOG_BASE_ADDR, | 119 | .start = MX2x_WDOG_BASE_ADDR, |
224 | .end = WDOG_BASE_ADDR + 0x30, | 120 | .end = MX2x_WDOG_BASE_ADDR + SZ_4K - 1, |
225 | .flags = IORESOURCE_MEM, | 121 | .flags = IORESOURCE_MEM, |
226 | }, | 122 | }, |
227 | }; | 123 | }; |
228 | 124 | ||
@@ -235,8 +131,8 @@ struct platform_device mxc_wdt = { | |||
235 | 131 | ||
236 | static struct resource mxc_w1_master_resources[] = { | 132 | static struct resource mxc_w1_master_resources[] = { |
237 | { | 133 | { |
238 | .start = OWIRE_BASE_ADDR, | 134 | .start = MX2x_OWIRE_BASE_ADDR, |
239 | .end = OWIRE_BASE_ADDR + SZ_4K - 1, | 135 | .end = MX2x_OWIRE_BASE_ADDR + SZ_4K - 1, |
240 | .flags = IORESOURCE_MEM, | 136 | .flags = IORESOURCE_MEM, |
241 | }, | 137 | }, |
242 | }; | 138 | }; |
@@ -248,24 +144,33 @@ struct platform_device mxc_w1_master_device = { | |||
248 | .resource = mxc_w1_master_resources, | 144 | .resource = mxc_w1_master_resources, |
249 | }; | 145 | }; |
250 | 146 | ||
251 | static struct resource mxc_nand_resources[] = { | 147 | #define DEFINE_MXC_NAND_DEVICE(pfx, baseaddr, irq) \ |
252 | { | 148 | static struct resource pfx ## _nand_resources[] = { \ |
253 | .start = NFC_BASE_ADDR, | 149 | { \ |
254 | .end = NFC_BASE_ADDR + 0xfff, | 150 | .start = baseaddr, \ |
255 | .flags = IORESOURCE_MEM, | 151 | .end = baseaddr + SZ_4K - 1, \ |
256 | }, { | 152 | .flags = IORESOURCE_MEM, \ |
257 | .start = MXC_INT_NANDFC, | 153 | }, { \ |
258 | .end = MXC_INT_NANDFC, | 154 | .start = irq, \ |
259 | .flags = IORESOURCE_IRQ, | 155 | .end = irq, \ |
260 | }, | 156 | .flags = IORESOURCE_IRQ, \ |
261 | }; | 157 | }, \ |
158 | }; \ | ||
159 | \ | ||
160 | struct platform_device pfx ## _nand_device = { \ | ||
161 | .name = "mxc_nand", \ | ||
162 | .id = 0, \ | ||
163 | .num_resources = ARRAY_SIZE(pfx ## _nand_resources), \ | ||
164 | .resource = pfx ## _nand_resources, \ | ||
165 | } | ||
262 | 166 | ||
263 | struct platform_device mxc_nand_device = { | 167 | #ifdef CONFIG_MACH_MX21 |
264 | .name = "mxc_nand", | 168 | DEFINE_MXC_NAND_DEVICE(imx21, MX21_NFC_BASE_ADDR, MX21_INT_NANDFC); |
265 | .id = 0, | 169 | #endif |
266 | .num_resources = ARRAY_SIZE(mxc_nand_resources), | 170 | |
267 | .resource = mxc_nand_resources, | 171 | #ifdef CONFIG_MACH_MX27 |
268 | }; | 172 | DEFINE_MXC_NAND_DEVICE(imx27, MX27_NFC_BASE_ADDR, MX27_INT_NANDFC); |
173 | #endif | ||
269 | 174 | ||
270 | /* | 175 | /* |
271 | * lcdc: | 176 | * lcdc: |
@@ -275,12 +180,12 @@ struct platform_device mxc_nand_device = { | |||
275 | */ | 180 | */ |
276 | static struct resource mxc_fb[] = { | 181 | static struct resource mxc_fb[] = { |
277 | { | 182 | { |
278 | .start = LCDC_BASE_ADDR, | 183 | .start = MX2x_LCDC_BASE_ADDR, |
279 | .end = LCDC_BASE_ADDR + 0xFFF, | 184 | .end = MX2x_LCDC_BASE_ADDR + SZ_4K - 1, |
280 | .flags = IORESOURCE_MEM, | 185 | .flags = IORESOURCE_MEM, |
281 | }, { | 186 | }, { |
282 | .start = MXC_INT_LCDC, | 187 | .start = MX2x_INT_LCDC, |
283 | .end = MXC_INT_LCDC, | 188 | .end = MX2x_INT_LCDC, |
284 | .flags = IORESOURCE_IRQ, | 189 | .flags = IORESOURCE_IRQ, |
285 | } | 190 | } |
286 | }; | 191 | }; |
@@ -299,13 +204,13 @@ struct platform_device mxc_fb_device = { | |||
299 | #ifdef CONFIG_MACH_MX27 | 204 | #ifdef CONFIG_MACH_MX27 |
300 | static struct resource mxc_fec_resources[] = { | 205 | static struct resource mxc_fec_resources[] = { |
301 | { | 206 | { |
302 | .start = FEC_BASE_ADDR, | 207 | .start = MX27_FEC_BASE_ADDR, |
303 | .end = FEC_BASE_ADDR + 0xfff, | 208 | .end = MX27_FEC_BASE_ADDR + SZ_4K - 1, |
304 | .flags = IORESOURCE_MEM, | 209 | .flags = IORESOURCE_MEM, |
305 | }, { | 210 | }, { |
306 | .start = MXC_INT_FEC, | 211 | .start = MX27_INT_FEC, |
307 | .end = MXC_INT_FEC, | 212 | .end = MX27_INT_FEC, |
308 | .flags = IORESOURCE_IRQ, | 213 | .flags = IORESOURCE_IRQ, |
309 | }, | 214 | }, |
310 | }; | 215 | }; |
311 | 216 | ||
@@ -317,55 +222,41 @@ struct platform_device mxc_fec_device = { | |||
317 | }; | 222 | }; |
318 | #endif | 223 | #endif |
319 | 224 | ||
320 | static struct resource mxc_i2c_1_resources[] = { | 225 | #define DEFINE_IMX_I2C_DEVICE(n, baseaddr, irq) \ |
321 | { | 226 | static struct resource mxc_i2c_resources ## n[] = { \ |
322 | .start = I2C_BASE_ADDR, | 227 | { \ |
323 | .end = I2C_BASE_ADDR + 0x0fff, | 228 | .start = baseaddr, \ |
324 | .flags = IORESOURCE_MEM, | 229 | .end = baseaddr + SZ_4K - 1, \ |
325 | }, { | 230 | .flags = IORESOURCE_MEM, \ |
326 | .start = MXC_INT_I2C, | 231 | }, { \ |
327 | .end = MXC_INT_I2C, | 232 | .start = irq, \ |
328 | .flags = IORESOURCE_IRQ, | 233 | .end = irq, \ |
234 | .flags = IORESOURCE_IRQ, \ | ||
235 | } \ | ||
236 | }; \ | ||
237 | \ | ||
238 | struct platform_device mxc_i2c_device ## n = { \ | ||
239 | .name = "imx-i2c", \ | ||
240 | .id = n, \ | ||
241 | .num_resources = ARRAY_SIZE(mxc_i2c_resources ## n), \ | ||
242 | .resource = mxc_i2c_resources ## n, \ | ||
329 | } | 243 | } |
330 | }; | ||
331 | 244 | ||
332 | struct platform_device mxc_i2c_device0 = { | 245 | DEFINE_IMX_I2C_DEVICE(0, MX2x_I2C_BASE_ADDR, MX2x_INT_I2C); |
333 | .name = "imx-i2c", | ||
334 | .id = 0, | ||
335 | .num_resources = ARRAY_SIZE(mxc_i2c_1_resources), | ||
336 | .resource = mxc_i2c_1_resources, | ||
337 | }; | ||
338 | 246 | ||
339 | #ifdef CONFIG_MACH_MX27 | 247 | #ifdef CONFIG_MACH_MX27 |
340 | static struct resource mxc_i2c_2_resources[] = { | 248 | DEFINE_IMX_I2C_DEVICE(1, MX27_I2C2_BASE_ADDR, MX27_INT_I2C2); |
341 | { | ||
342 | .start = I2C2_BASE_ADDR, | ||
343 | .end = I2C2_BASE_ADDR + 0x0fff, | ||
344 | .flags = IORESOURCE_MEM, | ||
345 | }, { | ||
346 | .start = MXC_INT_I2C2, | ||
347 | .end = MXC_INT_I2C2, | ||
348 | .flags = IORESOURCE_IRQ, | ||
349 | } | ||
350 | }; | ||
351 | |||
352 | struct platform_device mxc_i2c_device1 = { | ||
353 | .name = "imx-i2c", | ||
354 | .id = 1, | ||
355 | .num_resources = ARRAY_SIZE(mxc_i2c_2_resources), | ||
356 | .resource = mxc_i2c_2_resources, | ||
357 | }; | ||
358 | #endif | 249 | #endif |
359 | 250 | ||
360 | static struct resource mxc_pwm_resources[] = { | 251 | static struct resource mxc_pwm_resources[] = { |
361 | { | 252 | { |
362 | .start = PWM_BASE_ADDR, | 253 | .start = MX2x_PWM_BASE_ADDR, |
363 | .end = PWM_BASE_ADDR + 0x0fff, | 254 | .end = MX2x_PWM_BASE_ADDR + SZ_4K - 1, |
364 | .flags = IORESOURCE_MEM, | 255 | .flags = IORESOURCE_MEM, |
365 | }, { | 256 | }, { |
366 | .start = MXC_INT_PWM, | 257 | .start = MX2x_INT_PWM, |
367 | .end = MXC_INT_PWM, | 258 | .end = MX2x_INT_PWM, |
368 | .flags = IORESOURCE_IRQ, | 259 | .flags = IORESOURCE_IRQ, |
369 | } | 260 | } |
370 | }; | 261 | }; |
371 | 262 | ||
@@ -379,74 +270,49 @@ struct platform_device mxc_pwm_device = { | |||
379 | /* | 270 | /* |
380 | * Resource definition for the MXC SDHC | 271 | * Resource definition for the MXC SDHC |
381 | */ | 272 | */ |
382 | static struct resource mxc_sdhc1_resources[] = { | 273 | #define DEFINE_MXC_MMC_DEVICE(n, baseaddr, irq, dmareq) \ |
383 | { | 274 | static struct resource mxc_sdhc_resources ## n[] = { \ |
384 | .start = SDHC1_BASE_ADDR, | 275 | { \ |
385 | .end = SDHC1_BASE_ADDR + SZ_4K - 1, | 276 | .start = baseaddr, \ |
386 | .flags = IORESOURCE_MEM, | 277 | .end = baseaddr + SZ_4K - 1, \ |
387 | }, { | 278 | .flags = IORESOURCE_MEM, \ |
388 | .start = MXC_INT_SDHC1, | 279 | }, { \ |
389 | .end = MXC_INT_SDHC1, | 280 | .start = irq, \ |
390 | .flags = IORESOURCE_IRQ, | 281 | .end = irq, \ |
391 | }, { | 282 | .flags = IORESOURCE_IRQ, \ |
392 | .start = DMA_REQ_SDHC1, | 283 | }, { \ |
393 | .end = DMA_REQ_SDHC1, | 284 | .start = dmareq, \ |
394 | .flags = IORESOURCE_DMA, | 285 | .end = dmareq, \ |
395 | }, | 286 | .flags = IORESOURCE_DMA, \ |
396 | }; | 287 | }, \ |
397 | 288 | }; \ | |
398 | static u64 mxc_sdhc1_dmamask = 0xffffffffUL; | 289 | \ |
399 | 290 | static u64 mxc_sdhc ## n ## _dmamask = 0xffffffffUL; \ | |
400 | struct platform_device mxc_sdhc_device0 = { | 291 | \ |
401 | .name = "mxc-mmc", | 292 | struct platform_device mxc_sdhc_device ## n = { \ |
402 | .id = 0, | 293 | .name = "mxc-mmc", \ |
403 | .dev = { | 294 | .id = n, \ |
404 | .dma_mask = &mxc_sdhc1_dmamask, | 295 | .dev = { \ |
405 | .coherent_dma_mask = 0xffffffff, | 296 | .dma_mask = &mxc_sdhc ## n ## _dmamask, \ |
406 | }, | 297 | .coherent_dma_mask = 0xffffffff, \ |
407 | .num_resources = ARRAY_SIZE(mxc_sdhc1_resources), | 298 | }, \ |
408 | .resource = mxc_sdhc1_resources, | 299 | .num_resources = ARRAY_SIZE(mxc_sdhc_resources ## n), \ |
409 | }; | 300 | .resource = mxc_sdhc_resources ## n, \ |
410 | 301 | } | |
411 | static struct resource mxc_sdhc2_resources[] = { | ||
412 | { | ||
413 | .start = SDHC2_BASE_ADDR, | ||
414 | .end = SDHC2_BASE_ADDR + SZ_4K - 1, | ||
415 | .flags = IORESOURCE_MEM, | ||
416 | }, { | ||
417 | .start = MXC_INT_SDHC2, | ||
418 | .end = MXC_INT_SDHC2, | ||
419 | .flags = IORESOURCE_IRQ, | ||
420 | }, { | ||
421 | .start = DMA_REQ_SDHC2, | ||
422 | .end = DMA_REQ_SDHC2, | ||
423 | .flags = IORESOURCE_DMA, | ||
424 | }, | ||
425 | }; | ||
426 | 302 | ||
427 | static u64 mxc_sdhc2_dmamask = 0xffffffffUL; | 303 | DEFINE_MXC_MMC_DEVICE(0, MX2x_SDHC1_BASE_ADDR, MX2x_INT_SDHC1, MX2x_DMA_REQ_SDHC1); |
428 | 304 | DEFINE_MXC_MMC_DEVICE(1, MX2x_SDHC2_BASE_ADDR, MX2x_INT_SDHC2, MX2x_DMA_REQ_SDHC2); | |
429 | struct platform_device mxc_sdhc_device1 = { | ||
430 | .name = "mxc-mmc", | ||
431 | .id = 1, | ||
432 | .dev = { | ||
433 | .dma_mask = &mxc_sdhc2_dmamask, | ||
434 | .coherent_dma_mask = 0xffffffff, | ||
435 | }, | ||
436 | .num_resources = ARRAY_SIZE(mxc_sdhc2_resources), | ||
437 | .resource = mxc_sdhc2_resources, | ||
438 | }; | ||
439 | 305 | ||
440 | #ifdef CONFIG_MACH_MX27 | 306 | #ifdef CONFIG_MACH_MX27 |
441 | static struct resource otg_resources[] = { | 307 | static struct resource otg_resources[] = { |
442 | { | 308 | { |
443 | .start = OTG_BASE_ADDR, | 309 | .start = MX27_USBOTG_BASE_ADDR, |
444 | .end = OTG_BASE_ADDR + 0x1ff, | 310 | .end = MX27_USBOTG_BASE_ADDR + 0x1ff, |
445 | .flags = IORESOURCE_MEM, | 311 | .flags = IORESOURCE_MEM, |
446 | }, { | 312 | }, { |
447 | .start = MXC_INT_USB3, | 313 | .start = MX27_INT_USB3, |
448 | .end = MXC_INT_USB3, | 314 | .end = MX27_INT_USB3, |
449 | .flags = IORESOURCE_IRQ, | 315 | .flags = IORESOURCE_IRQ, |
450 | }, | 316 | }, |
451 | }; | 317 | }; |
452 | 318 | ||
@@ -454,14 +320,14 @@ static u64 otg_dmamask = 0xffffffffUL; | |||
454 | 320 | ||
455 | /* OTG gadget device */ | 321 | /* OTG gadget device */ |
456 | struct platform_device mxc_otg_udc_device = { | 322 | struct platform_device mxc_otg_udc_device = { |
457 | .name = "fsl-usb2-udc", | 323 | .name = "fsl-usb2-udc", |
458 | .id = -1, | 324 | .id = -1, |
459 | .dev = { | 325 | .dev = { |
460 | .dma_mask = &otg_dmamask, | 326 | .dma_mask = &otg_dmamask, |
461 | .coherent_dma_mask = 0xffffffffUL, | 327 | .coherent_dma_mask = 0xffffffffUL, |
462 | }, | 328 | }, |
463 | .resource = otg_resources, | 329 | .resource = otg_resources, |
464 | .num_resources = ARRAY_SIZE(otg_resources), | 330 | .num_resources = ARRAY_SIZE(otg_resources), |
465 | }; | 331 | }; |
466 | 332 | ||
467 | /* OTG host */ | 333 | /* OTG host */ |
@@ -482,12 +348,12 @@ static u64 usbh1_dmamask = 0xffffffffUL; | |||
482 | 348 | ||
483 | static struct resource mxc_usbh1_resources[] = { | 349 | static struct resource mxc_usbh1_resources[] = { |
484 | { | 350 | { |
485 | .start = OTG_BASE_ADDR + 0x200, | 351 | .start = MX27_USBOTG_BASE_ADDR + 0x200, |
486 | .end = OTG_BASE_ADDR + 0x3ff, | 352 | .end = MX27_USBOTG_BASE_ADDR + 0x3ff, |
487 | .flags = IORESOURCE_MEM, | 353 | .flags = IORESOURCE_MEM, |
488 | }, { | 354 | }, { |
489 | .start = MXC_INT_USB1, | 355 | .start = MX27_INT_USB1, |
490 | .end = MXC_INT_USB1, | 356 | .end = MX27_INT_USB1, |
491 | .flags = IORESOURCE_IRQ, | 357 | .flags = IORESOURCE_IRQ, |
492 | }, | 358 | }, |
493 | }; | 359 | }; |
@@ -508,12 +374,12 @@ static u64 usbh2_dmamask = 0xffffffffUL; | |||
508 | 374 | ||
509 | static struct resource mxc_usbh2_resources[] = { | 375 | static struct resource mxc_usbh2_resources[] = { |
510 | { | 376 | { |
511 | .start = OTG_BASE_ADDR + 0x400, | 377 | .start = MX27_USBOTG_BASE_ADDR + 0x400, |
512 | .end = OTG_BASE_ADDR + 0x5ff, | 378 | .end = MX27_USBOTG_BASE_ADDR + 0x5ff, |
513 | .flags = IORESOURCE_MEM, | 379 | .flags = IORESOURCE_MEM, |
514 | }, { | 380 | }, { |
515 | .start = MXC_INT_USB2, | 381 | .start = MX27_INT_USB2, |
516 | .end = MXC_INT_USB2, | 382 | .end = MX27_INT_USB2, |
517 | .flags = IORESOURCE_IRQ, | 383 | .flags = IORESOURCE_IRQ, |
518 | }, | 384 | }, |
519 | }; | 385 | }; |
@@ -530,115 +396,88 @@ struct platform_device mxc_usbh2 = { | |||
530 | }; | 396 | }; |
531 | #endif | 397 | #endif |
532 | 398 | ||
533 | static struct resource imx_ssi_resources0[] = { | 399 | #define DEFINE_IMX_SSI_DMARES(_name, ssin, suffix) \ |
534 | { | 400 | { \ |
535 | .start = SSI1_BASE_ADDR, | 401 | .name = _name, \ |
536 | .end = SSI1_BASE_ADDR + 0x6F, | 402 | .start = MX2x_DMA_REQ_SSI ## ssin ## _ ## suffix, \ |
537 | .flags = IORESOURCE_MEM, | 403 | .end = MX2x_DMA_REQ_SSI ## ssin ## _ ## suffix, \ |
538 | }, { | 404 | .flags = IORESOURCE_DMA, \ |
539 | .start = MXC_INT_SSI1, | 405 | } |
540 | .end = MXC_INT_SSI1, | ||
541 | .flags = IORESOURCE_IRQ, | ||
542 | }, { | ||
543 | .name = "tx0", | ||
544 | .start = DMA_REQ_SSI1_TX0, | ||
545 | .end = DMA_REQ_SSI1_TX0, | ||
546 | .flags = IORESOURCE_DMA, | ||
547 | }, { | ||
548 | .name = "rx0", | ||
549 | .start = DMA_REQ_SSI1_RX0, | ||
550 | .end = DMA_REQ_SSI1_RX0, | ||
551 | .flags = IORESOURCE_DMA, | ||
552 | }, { | ||
553 | .name = "tx1", | ||
554 | .start = DMA_REQ_SSI1_TX1, | ||
555 | .end = DMA_REQ_SSI1_TX1, | ||
556 | .flags = IORESOURCE_DMA, | ||
557 | }, { | ||
558 | .name = "rx1", | ||
559 | .start = DMA_REQ_SSI1_RX1, | ||
560 | .end = DMA_REQ_SSI1_RX1, | ||
561 | .flags = IORESOURCE_DMA, | ||
562 | }, | ||
563 | }; | ||
564 | |||
565 | static struct resource imx_ssi_resources1[] = { | ||
566 | { | ||
567 | .start = SSI2_BASE_ADDR, | ||
568 | .end = SSI2_BASE_ADDR + 0x6F, | ||
569 | .flags = IORESOURCE_MEM, | ||
570 | }, { | ||
571 | .start = MXC_INT_SSI2, | ||
572 | .end = MXC_INT_SSI2, | ||
573 | .flags = IORESOURCE_IRQ, | ||
574 | }, { | ||
575 | .name = "tx0", | ||
576 | .start = DMA_REQ_SSI2_TX0, | ||
577 | .end = DMA_REQ_SSI2_TX0, | ||
578 | .flags = IORESOURCE_DMA, | ||
579 | }, { | ||
580 | .name = "rx0", | ||
581 | .start = DMA_REQ_SSI2_RX0, | ||
582 | .end = DMA_REQ_SSI2_RX0, | ||
583 | .flags = IORESOURCE_DMA, | ||
584 | }, { | ||
585 | .name = "tx1", | ||
586 | .start = DMA_REQ_SSI2_TX1, | ||
587 | .end = DMA_REQ_SSI2_TX1, | ||
588 | .flags = IORESOURCE_DMA, | ||
589 | }, { | ||
590 | .name = "rx1", | ||
591 | .start = DMA_REQ_SSI2_RX1, | ||
592 | .end = DMA_REQ_SSI2_RX1, | ||
593 | .flags = IORESOURCE_DMA, | ||
594 | }, | ||
595 | }; | ||
596 | 406 | ||
597 | struct platform_device imx_ssi_device0 = { | 407 | #define DEFINE_IMX_SSI_DEVICE(n, ssin, baseaddr, irq) \ |
598 | .name = "imx-ssi", | 408 | static struct resource imx_ssi_resources ## n[] = { \ |
599 | .id = 0, | 409 | { \ |
600 | .num_resources = ARRAY_SIZE(imx_ssi_resources0), | 410 | .start = MX2x_SSI ## ssin ## _BASE_ADDR, \ |
601 | .resource = imx_ssi_resources0, | 411 | .end = MX2x_SSI ## ssin ## _BASE_ADDR + 0x6f, \ |
602 | }; | 412 | .flags = IORESOURCE_MEM, \ |
413 | }, { \ | ||
414 | .start = MX2x_INT_SSI1, \ | ||
415 | .end = MX2x_INT_SSI1, \ | ||
416 | .flags = IORESOURCE_IRQ, \ | ||
417 | }, \ | ||
418 | DEFINE_IMX_SSI_DMARES("tx0", ssin, TX0), \ | ||
419 | DEFINE_IMX_SSI_DMARES("rx0", ssin, RX0), \ | ||
420 | DEFINE_IMX_SSI_DMARES("tx1", ssin, TX1), \ | ||
421 | DEFINE_IMX_SSI_DMARES("rx1", ssin, RX1), \ | ||
422 | }; \ | ||
423 | \ | ||
424 | struct platform_device imx_ssi_device ## n = { \ | ||
425 | .name = "imx-ssi", \ | ||
426 | .id = n, \ | ||
427 | .num_resources = ARRAY_SIZE(imx_ssi_resources ## n), \ | ||
428 | .resource = imx_ssi_resources ## n, \ | ||
429 | } | ||
603 | 430 | ||
604 | struct platform_device imx_ssi_device1 = { | 431 | DEFINE_IMX_SSI_DEVICE(0, 1, MX2x_SSI1_BASE_ADDR, MX2x_INT_SSI1); |
605 | .name = "imx-ssi", | 432 | DEFINE_IMX_SSI_DEVICE(1, 2, MX2x_SSI1_BASE_ADDR, MX2x_INT_SSI1); |
606 | .id = 1, | ||
607 | .num_resources = ARRAY_SIZE(imx_ssi_resources1), | ||
608 | .resource = imx_ssi_resources1, | ||
609 | }; | ||
610 | 433 | ||
611 | /* GPIO port description */ | 434 | /* GPIO port description */ |
612 | static struct mxc_gpio_port imx_gpio_ports[] = { | 435 | #define DEFINE_MXC_GPIO_PORT_IRQ(SOC, n, _irq) \ |
613 | { | 436 | { \ |
614 | .chip.label = "gpio-0", | 437 | .chip.label = "gpio-" #n, \ |
615 | .irq = MXC_INT_GPIO, | 438 | .irq = _irq, \ |
616 | .base = IO_ADDRESS(GPIO_BASE_ADDR), | 439 | .base = SOC ## _IO_ADDRESS(MX2x_GPIO_BASE_ADDR + \ |
617 | .virtual_irq_start = MXC_GPIO_IRQ_START, | 440 | n * 0x100), \ |
618 | }, { | 441 | .virtual_irq_start = MXC_GPIO_IRQ_START + n * 32, \ |
619 | .chip.label = "gpio-1", | ||
620 | .base = IO_ADDRESS(GPIO_BASE_ADDR + 0x100), | ||
621 | .virtual_irq_start = MXC_GPIO_IRQ_START + 32, | ||
622 | }, { | ||
623 | .chip.label = "gpio-2", | ||
624 | .base = IO_ADDRESS(GPIO_BASE_ADDR + 0x200), | ||
625 | .virtual_irq_start = MXC_GPIO_IRQ_START + 64, | ||
626 | }, { | ||
627 | .chip.label = "gpio-3", | ||
628 | .base = IO_ADDRESS(GPIO_BASE_ADDR + 0x300), | ||
629 | .virtual_irq_start = MXC_GPIO_IRQ_START + 96, | ||
630 | }, { | ||
631 | .chip.label = "gpio-4", | ||
632 | .base = IO_ADDRESS(GPIO_BASE_ADDR + 0x400), | ||
633 | .virtual_irq_start = MXC_GPIO_IRQ_START + 128, | ||
634 | }, { | ||
635 | .chip.label = "gpio-5", | ||
636 | .base = IO_ADDRESS(GPIO_BASE_ADDR + 0x500), | ||
637 | .virtual_irq_start = MXC_GPIO_IRQ_START + 160, | ||
638 | } | 442 | } |
639 | }; | 443 | |
444 | #define DEFINE_MXC_GPIO_PORT(SOC, n) \ | ||
445 | { \ | ||
446 | .chip.label = "gpio-" #n, \ | ||
447 | .base = SOC ## _IO_ADDRESS(MX2x_GPIO_BASE_ADDR + \ | ||
448 | n * 0x100), \ | ||
449 | .virtual_irq_start = MXC_GPIO_IRQ_START + n * 32, \ | ||
450 | } | ||
451 | |||
452 | #define DEFINE_MXC_GPIO_PORTS(SOC, pfx) \ | ||
453 | static struct mxc_gpio_port pfx ## _gpio_ports[] = { \ | ||
454 | DEFINE_MXC_GPIO_PORT_IRQ(SOC, 0, SOC ## _INT_GPIO), \ | ||
455 | DEFINE_MXC_GPIO_PORT(SOC, 1), \ | ||
456 | DEFINE_MXC_GPIO_PORT(SOC, 2), \ | ||
457 | DEFINE_MXC_GPIO_PORT(SOC, 3), \ | ||
458 | DEFINE_MXC_GPIO_PORT(SOC, 4), \ | ||
459 | DEFINE_MXC_GPIO_PORT(SOC, 5), \ | ||
460 | } | ||
461 | |||
462 | #ifdef CONFIG_MACH_MX21 | ||
463 | DEFINE_MXC_GPIO_PORTS(MX21, imx21); | ||
464 | #endif | ||
465 | |||
466 | #ifdef CONFIG_MACH_MX27 | ||
467 | DEFINE_MXC_GPIO_PORTS(MX27, imx27); | ||
468 | #endif | ||
640 | 469 | ||
641 | int __init mxc_register_gpios(void) | 470 | int __init mxc_register_gpios(void) |
642 | { | 471 | { |
643 | return mxc_gpio_init(imx_gpio_ports, ARRAY_SIZE(imx_gpio_ports)); | 472 | #ifdef CONFIG_MACH_MX21 |
473 | if (cpu_is_mx21()) | ||
474 | return mxc_gpio_init(imx21_gpio_ports, ARRAY_SIZE(imx21_gpio_ports)); | ||
475 | else | ||
476 | #endif | ||
477 | #ifdef CONFIG_MACH_MX27 | ||
478 | if (cpu_is_mx27()) | ||
479 | return mxc_gpio_init(imx27_gpio_ports, ARRAY_SIZE(imx27_gpio_ports)); | ||
480 | else | ||
481 | #endif | ||
482 | return 0; | ||
644 | } | 483 | } |
diff --git a/arch/arm/mach-mx2/devices.h b/arch/arm/mach-mx2/devices.h index 97306aa18f1..f15df2aaae4 100644 --- a/arch/arm/mach-mx2/devices.h +++ b/arch/arm/mach-mx2/devices.h | |||
@@ -1,8 +1,10 @@ | |||
1 | extern struct platform_device mxc_gpt1; | 1 | extern struct platform_device mxc_gpt1; |
2 | extern struct platform_device mxc_gpt2; | 2 | extern struct platform_device mxc_gpt2; |
3 | #ifdef CONFIG_MACH_MX27 | ||
3 | extern struct platform_device mxc_gpt3; | 4 | extern struct platform_device mxc_gpt3; |
4 | extern struct platform_device mxc_gpt4; | 5 | extern struct platform_device mxc_gpt4; |
5 | extern struct platform_device mxc_gpt5; | 6 | extern struct platform_device mxc_gpt5; |
7 | #endif | ||
6 | extern struct platform_device mxc_wdt; | 8 | extern struct platform_device mxc_wdt; |
7 | extern struct platform_device mxc_uart_device0; | 9 | extern struct platform_device mxc_uart_device0; |
8 | extern struct platform_device mxc_uart_device1; | 10 | extern struct platform_device mxc_uart_device1; |
@@ -11,12 +13,19 @@ extern struct platform_device mxc_uart_device3; | |||
11 | extern struct platform_device mxc_uart_device4; | 13 | extern struct platform_device mxc_uart_device4; |
12 | extern struct platform_device mxc_uart_device5; | 14 | extern struct platform_device mxc_uart_device5; |
13 | extern struct platform_device mxc_w1_master_device; | 15 | extern struct platform_device mxc_w1_master_device; |
14 | extern struct platform_device mxc_nand_device; | 16 | #ifdef CONFIG_MACH_MX21 |
17 | extern struct platform_device imx21_nand_device; | ||
18 | #endif | ||
19 | #ifdef CONFIG_MACH_MX27 | ||
20 | extern struct platform_device imx27_nand_device; | ||
21 | #endif | ||
15 | extern struct platform_device mxc_fb_device; | 22 | extern struct platform_device mxc_fb_device; |
16 | extern struct platform_device mxc_fec_device; | 23 | extern struct platform_device mxc_fec_device; |
17 | extern struct platform_device mxc_pwm_device; | 24 | extern struct platform_device mxc_pwm_device; |
18 | extern struct platform_device mxc_i2c_device0; | 25 | extern struct platform_device mxc_i2c_device0; |
26 | #ifdef CONFIG_MACH_MX27 | ||
19 | extern struct platform_device mxc_i2c_device1; | 27 | extern struct platform_device mxc_i2c_device1; |
28 | #endif | ||
20 | extern struct platform_device mxc_sdhc_device0; | 29 | extern struct platform_device mxc_sdhc_device0; |
21 | extern struct platform_device mxc_sdhc_device1; | 30 | extern struct platform_device mxc_sdhc_device1; |
22 | extern struct platform_device mxc_otg_udc_device; | 31 | extern struct platform_device mxc_otg_udc_device; |
@@ -25,6 +34,8 @@ extern struct platform_device mxc_usbh1; | |||
25 | extern struct platform_device mxc_usbh2; | 34 | extern struct platform_device mxc_usbh2; |
26 | extern struct platform_device mxc_spi_device0; | 35 | extern struct platform_device mxc_spi_device0; |
27 | extern struct platform_device mxc_spi_device1; | 36 | extern struct platform_device mxc_spi_device1; |
37 | #ifdef CONFIG_MACH_MX27 | ||
28 | extern struct platform_device mxc_spi_device2; | 38 | extern struct platform_device mxc_spi_device2; |
39 | #endif | ||
29 | extern struct platform_device imx_ssi_device0; | 40 | extern struct platform_device imx_ssi_device0; |
30 | extern struct platform_device imx_ssi_device1; | 41 | extern struct platform_device imx_ssi_device1; |
diff --git a/arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c b/arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c index 7382b6d27ee..f3b169d5245 100644 --- a/arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c +++ b/arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <asm/mach/arch.h> | 28 | #include <asm/mach/arch.h> |
29 | 29 | ||
30 | #include <mach/common.h> | 30 | #include <mach/common.h> |
31 | #include <mach/iomux.h> | 31 | #include <mach/iomux-mx27.h> |
32 | #include <mach/imxfb.h> | 32 | #include <mach/imxfb.h> |
33 | #include <mach/hardware.h> | 33 | #include <mach/hardware.h> |
34 | #include <mach/mmc.h> | 34 | #include <mach/mmc.h> |
diff --git a/arch/arm/mach-mx2/eukrea_cpuimx27.c b/arch/arm/mach-mx2/mach-cpuimx27.c index 7b187606682..1f616dcaabc 100644 --- a/arch/arm/mach-mx2/eukrea_cpuimx27.c +++ b/arch/arm/mach-mx2/mach-cpuimx27.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include <mach/common.h> | 36 | #include <mach/common.h> |
37 | #include <mach/hardware.h> | 37 | #include <mach/hardware.h> |
38 | #include <mach/i2c.h> | 38 | #include <mach/i2c.h> |
39 | #include <mach/iomux.h> | 39 | #include <mach/iomux-mx27.h> |
40 | #include <mach/imx-uart.h> | 40 | #include <mach/imx-uart.h> |
41 | #include <mach/mxc_nand.h> | 41 | #include <mach/mxc_nand.h> |
42 | 42 | ||
@@ -142,28 +142,28 @@ static struct i2c_board_info eukrea_cpuimx27_i2c_devices[] = { | |||
142 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) | 142 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) |
143 | static struct plat_serial8250_port serial_platform_data[] = { | 143 | static struct plat_serial8250_port serial_platform_data[] = { |
144 | { | 144 | { |
145 | .mapbase = (unsigned long)(CS3_BASE_ADDR + 0x200000), | 145 | .mapbase = (unsigned long)(MX27_CS3_BASE_ADDR + 0x200000), |
146 | .irq = IRQ_GPIOB(23), | 146 | .irq = IRQ_GPIOB(23), |
147 | .uartclk = 14745600, | 147 | .uartclk = 14745600, |
148 | .regshift = 1, | 148 | .regshift = 1, |
149 | .iotype = UPIO_MEM, | 149 | .iotype = UPIO_MEM, |
150 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP, | 150 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP, |
151 | }, { | 151 | }, { |
152 | .mapbase = (unsigned long)(CS3_BASE_ADDR + 0x400000), | 152 | .mapbase = (unsigned long)(MX27_CS3_BASE_ADDR + 0x400000), |
153 | .irq = IRQ_GPIOB(22), | 153 | .irq = IRQ_GPIOB(22), |
154 | .uartclk = 14745600, | 154 | .uartclk = 14745600, |
155 | .regshift = 1, | 155 | .regshift = 1, |
156 | .iotype = UPIO_MEM, | 156 | .iotype = UPIO_MEM, |
157 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP, | 157 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP, |
158 | }, { | 158 | }, { |
159 | .mapbase = (unsigned long)(CS3_BASE_ADDR + 0x800000), | 159 | .mapbase = (unsigned long)(MX27_CS3_BASE_ADDR + 0x800000), |
160 | .irq = IRQ_GPIOB(27), | 160 | .irq = IRQ_GPIOB(27), |
161 | .uartclk = 14745600, | 161 | .uartclk = 14745600, |
162 | .regshift = 1, | 162 | .regshift = 1, |
163 | .iotype = UPIO_MEM, | 163 | .iotype = UPIO_MEM, |
164 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP, | 164 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP, |
165 | }, { | 165 | }, { |
166 | .mapbase = (unsigned long)(CS3_BASE_ADDR + 0x1000000), | 166 | .mapbase = (unsigned long)(MX27_CS3_BASE_ADDR + 0x1000000), |
167 | .irq = IRQ_GPIOB(30), | 167 | .irq = IRQ_GPIOB(30), |
168 | .uartclk = 14745600, | 168 | .uartclk = 14745600, |
169 | .regshift = 1, | 169 | .regshift = 1, |
@@ -189,7 +189,8 @@ static void __init eukrea_cpuimx27_init(void) | |||
189 | 189 | ||
190 | mxc_register_device(&mxc_uart_device0, &uart_pdata[0]); | 190 | mxc_register_device(&mxc_uart_device0, &uart_pdata[0]); |
191 | 191 | ||
192 | mxc_register_device(&mxc_nand_device, &eukrea_cpuimx27_nand_board_info); | 192 | mxc_register_device(&imx27_nand_device, |
193 | &eukrea_cpuimx27_nand_board_info); | ||
193 | 194 | ||
194 | i2c_register_board_info(0, eukrea_cpuimx27_i2c_devices, | 195 | i2c_register_board_info(0, eukrea_cpuimx27_i2c_devices, |
195 | ARRAY_SIZE(eukrea_cpuimx27_i2c_devices)); | 196 | ARRAY_SIZE(eukrea_cpuimx27_i2c_devices)); |
@@ -224,9 +225,9 @@ static struct sys_timer eukrea_cpuimx27_timer = { | |||
224 | }; | 225 | }; |
225 | 226 | ||
226 | MACHINE_START(CPUIMX27, "EUKREA CPUIMX27") | 227 | MACHINE_START(CPUIMX27, "EUKREA CPUIMX27") |
227 | .phys_io = AIPI_BASE_ADDR, | 228 | .phys_io = MX27_AIPI_BASE_ADDR, |
228 | .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 229 | .io_pg_offst = ((MX27_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
229 | .boot_params = PHYS_OFFSET + 0x100, | 230 | .boot_params = MX27_PHYS_OFFSET + 0x100, |
230 | .map_io = mx27_map_io, | 231 | .map_io = mx27_map_io, |
231 | .init_irq = mx27_init_irq, | 232 | .init_irq = mx27_init_irq, |
232 | .init_machine = eukrea_cpuimx27_init, | 233 | .init_machine = eukrea_cpuimx27_init, |
diff --git a/arch/arm/mach-mx2/mx27lite.c b/arch/arm/mach-mx2/mach-imx27lite.c index 82ea227ea0c..b5710bf18b9 100644 --- a/arch/arm/mach-mx2/mx27lite.c +++ b/arch/arm/mach-mx2/mach-imx27lite.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <mach/hardware.h> | 27 | #include <mach/hardware.h> |
28 | #include <mach/common.h> | 28 | #include <mach/common.h> |
29 | #include <mach/imx-uart.h> | 29 | #include <mach/imx-uart.h> |
30 | #include <mach/iomux.h> | 30 | #include <mach/iomux-mx27.h> |
31 | #include <mach/board-mx27lite.h> | 31 | #include <mach/board-mx27lite.h> |
32 | 32 | ||
33 | #include "devices.h" | 33 | #include "devices.h" |
@@ -85,9 +85,9 @@ static struct sys_timer mx27lite_timer = { | |||
85 | }; | 85 | }; |
86 | 86 | ||
87 | MACHINE_START(IMX27LITE, "LogicPD i.MX27LITE") | 87 | MACHINE_START(IMX27LITE, "LogicPD i.MX27LITE") |
88 | .phys_io = AIPI_BASE_ADDR, | 88 | .phys_io = MX27_AIPI_BASE_ADDR, |
89 | .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 89 | .io_pg_offst = ((MX27_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
90 | .boot_params = PHYS_OFFSET + 0x100, | 90 | .boot_params = MX27_PHYS_OFFSET + 0x100, |
91 | .map_io = mx27_map_io, | 91 | .map_io = mx27_map_io, |
92 | .init_irq = mx27_init_irq, | 92 | .init_irq = mx27_init_irq, |
93 | .init_machine = mx27lite_init, | 93 | .init_machine = mx27lite_init, |
diff --git a/arch/arm/mach-mx2/mx21ads.c b/arch/arm/mach-mx2/mach-mx21ads.c index cf5f77cbc2f..113e58d7cb4 100644 --- a/arch/arm/mach-mx2/mx21ads.c +++ b/arch/arm/mach-mx2/mach-mx21ads.c | |||
@@ -30,7 +30,7 @@ | |||
30 | #include <asm/mach/map.h> | 30 | #include <asm/mach/map.h> |
31 | #include <mach/imx-uart.h> | 31 | #include <mach/imx-uart.h> |
32 | #include <mach/imxfb.h> | 32 | #include <mach/imxfb.h> |
33 | #include <mach/iomux.h> | 33 | #include <mach/iomux-mx21.h> |
34 | #include <mach/mxc_nand.h> | 34 | #include <mach/mxc_nand.h> |
35 | #include <mach/mmc.h> | 35 | #include <mach/mmc.h> |
36 | #include <mach/board-mx21ads.h> | 36 | #include <mach/board-mx21ads.h> |
@@ -118,8 +118,8 @@ static struct physmap_flash_data mx21ads_flash_data = { | |||
118 | }; | 118 | }; |
119 | 119 | ||
120 | static struct resource mx21ads_flash_resource = { | 120 | static struct resource mx21ads_flash_resource = { |
121 | .start = CS0_BASE_ADDR, | 121 | .start = MX21_CS0_BASE_ADDR, |
122 | .end = CS0_BASE_ADDR + 0x02000000 - 1, | 122 | .end = MX21_CS0_BASE_ADDR + 0x02000000 - 1, |
123 | .flags = IORESOURCE_MEM, | 123 | .flags = IORESOURCE_MEM, |
124 | }; | 124 | }; |
125 | 125 | ||
@@ -242,7 +242,7 @@ static struct map_desc mx21ads_io_desc[] __initdata = { | |||
242 | */ | 242 | */ |
243 | { | 243 | { |
244 | .virtual = MX21ADS_MMIO_BASE_ADDR, | 244 | .virtual = MX21ADS_MMIO_BASE_ADDR, |
245 | .pfn = __phys_to_pfn(CS1_BASE_ADDR), | 245 | .pfn = __phys_to_pfn(MX21_CS1_BASE_ADDR), |
246 | .length = MX21ADS_MMIO_SIZE, | 246 | .length = MX21ADS_MMIO_SIZE, |
247 | .type = MT_DEVICE, | 247 | .type = MT_DEVICE, |
248 | }, | 248 | }, |
@@ -268,7 +268,7 @@ static void __init mx21ads_board_init(void) | |||
268 | mxc_register_device(&mxc_uart_device3, &uart_pdata); | 268 | mxc_register_device(&mxc_uart_device3, &uart_pdata); |
269 | mxc_register_device(&mxc_fb_device, &mx21ads_fb_data); | 269 | mxc_register_device(&mxc_fb_device, &mx21ads_fb_data); |
270 | mxc_register_device(&mxc_sdhc_device0, &mx21ads_sdhc_pdata); | 270 | mxc_register_device(&mxc_sdhc_device0, &mx21ads_sdhc_pdata); |
271 | mxc_register_device(&mxc_nand_device, &mx21ads_nand_board_info); | 271 | mxc_register_device(&imx21_nand_device, &mx21ads_nand_board_info); |
272 | 272 | ||
273 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 273 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |
274 | } | 274 | } |
@@ -284,9 +284,9 @@ static struct sys_timer mx21ads_timer = { | |||
284 | 284 | ||
285 | MACHINE_START(MX21ADS, "Freescale i.MX21ADS") | 285 | MACHINE_START(MX21ADS, "Freescale i.MX21ADS") |
286 | /* maintainer: Freescale Semiconductor, Inc. */ | 286 | /* maintainer: Freescale Semiconductor, Inc. */ |
287 | .phys_io = AIPI_BASE_ADDR, | 287 | .phys_io = MX21_AIPI_BASE_ADDR, |
288 | .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 288 | .io_pg_offst = ((MX21_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
289 | .boot_params = PHYS_OFFSET + 0x100, | 289 | .boot_params = MX21_PHYS_OFFSET + 0x100, |
290 | .map_io = mx21ads_map_io, | 290 | .map_io = mx21ads_map_io, |
291 | .init_irq = mx21_init_irq, | 291 | .init_irq = mx21_init_irq, |
292 | .init_machine = mx21ads_board_init, | 292 | .init_machine = mx21ads_board_init, |
diff --git a/arch/arm/mach-mx2/mx27pdk.c b/arch/arm/mach-mx2/mach-mx27_3ds.c index 6761d1b79e4..b2f4e0db3fb 100644 --- a/arch/arm/mach-mx2/mx27pdk.c +++ b/arch/arm/mach-mx2/mach-mx27_3ds.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #include <mach/hardware.h> | 26 | #include <mach/hardware.h> |
27 | #include <mach/common.h> | 27 | #include <mach/common.h> |
28 | #include <mach/imx-uart.h> | 28 | #include <mach/imx-uart.h> |
29 | #include <mach/iomux.h> | 29 | #include <mach/iomux-mx27.h> |
30 | #include <mach/board-mx27pdk.h> | 30 | #include <mach/board-mx27pdk.h> |
31 | 31 | ||
32 | #include "devices.h" | 32 | #include "devices.h" |
@@ -85,9 +85,9 @@ static struct sys_timer mx27pdk_timer = { | |||
85 | 85 | ||
86 | MACHINE_START(MX27_3DS, "Freescale MX27PDK") | 86 | MACHINE_START(MX27_3DS, "Freescale MX27PDK") |
87 | /* maintainer: Freescale Semiconductor, Inc. */ | 87 | /* maintainer: Freescale Semiconductor, Inc. */ |
88 | .phys_io = AIPI_BASE_ADDR, | 88 | .phys_io = MX27_AIPI_BASE_ADDR, |
89 | .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 89 | .io_pg_offst = ((MX27_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
90 | .boot_params = PHYS_OFFSET + 0x100, | 90 | .boot_params = MX27_PHYS_OFFSET + 0x100, |
91 | .map_io = mx27_map_io, | 91 | .map_io = mx27_map_io, |
92 | .init_irq = mx27_init_irq, | 92 | .init_irq = mx27_init_irq, |
93 | .init_machine = mx27pdk_init, | 93 | .init_machine = mx27pdk_init, |
diff --git a/arch/arm/mach-mx2/mx27ads.c b/arch/arm/mach-mx2/mach-mx27ads.c index 83e412b713e..6ce323669e5 100644 --- a/arch/arm/mach-mx2/mx27ads.c +++ b/arch/arm/mach-mx2/mach-mx27ads.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include <asm/mach/map.h> | 33 | #include <asm/mach/map.h> |
34 | #include <mach/gpio.h> | 34 | #include <mach/gpio.h> |
35 | #include <mach/imx-uart.h> | 35 | #include <mach/imx-uart.h> |
36 | #include <mach/iomux.h> | 36 | #include <mach/iomux-mx27.h> |
37 | #include <mach/board-mx27ads.h> | 37 | #include <mach/board-mx27ads.h> |
38 | #include <mach/mxc_nand.h> | 38 | #include <mach/mxc_nand.h> |
39 | #include <mach/i2c.h> | 39 | #include <mach/i2c.h> |
@@ -290,7 +290,7 @@ static void __init mx27ads_board_init(void) | |||
290 | mxc_register_device(&mxc_uart_device3, &uart_pdata[3]); | 290 | mxc_register_device(&mxc_uart_device3, &uart_pdata[3]); |
291 | mxc_register_device(&mxc_uart_device4, &uart_pdata[4]); | 291 | mxc_register_device(&mxc_uart_device4, &uart_pdata[4]); |
292 | mxc_register_device(&mxc_uart_device5, &uart_pdata[5]); | 292 | mxc_register_device(&mxc_uart_device5, &uart_pdata[5]); |
293 | mxc_register_device(&mxc_nand_device, &mx27ads_nand_board_info); | 293 | mxc_register_device(&imx27_nand_device, &mx27ads_nand_board_info); |
294 | 294 | ||
295 | /* only the i2c master 1 is used on this CPU card */ | 295 | /* only the i2c master 1 is used on this CPU card */ |
296 | i2c_register_board_info(1, mx27ads_i2c_devices, | 296 | i2c_register_board_info(1, mx27ads_i2c_devices, |
@@ -320,7 +320,7 @@ static struct sys_timer mx27ads_timer = { | |||
320 | static struct map_desc mx27ads_io_desc[] __initdata = { | 320 | static struct map_desc mx27ads_io_desc[] __initdata = { |
321 | { | 321 | { |
322 | .virtual = PBC_BASE_ADDRESS, | 322 | .virtual = PBC_BASE_ADDRESS, |
323 | .pfn = __phys_to_pfn(CS4_BASE_ADDR), | 323 | .pfn = __phys_to_pfn(MX27_CS4_BASE_ADDR), |
324 | .length = SZ_1M, | 324 | .length = SZ_1M, |
325 | .type = MT_DEVICE, | 325 | .type = MT_DEVICE, |
326 | }, | 326 | }, |
@@ -334,9 +334,9 @@ static void __init mx27ads_map_io(void) | |||
334 | 334 | ||
335 | MACHINE_START(MX27ADS, "Freescale i.MX27ADS") | 335 | MACHINE_START(MX27ADS, "Freescale i.MX27ADS") |
336 | /* maintainer: Freescale Semiconductor, Inc. */ | 336 | /* maintainer: Freescale Semiconductor, Inc. */ |
337 | .phys_io = AIPI_BASE_ADDR, | 337 | .phys_io = MX27_AIPI_BASE_ADDR, |
338 | .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 338 | .io_pg_offst = ((MX27_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
339 | .boot_params = PHYS_OFFSET + 0x100, | 339 | .boot_params = MX27_PHYS_OFFSET + 0x100, |
340 | .map_io = mx27ads_map_io, | 340 | .map_io = mx27ads_map_io, |
341 | .init_irq = mx27_init_irq, | 341 | .init_irq = mx27_init_irq, |
342 | .init_machine = mx27ads_board_init, | 342 | .init_machine = mx27ads_board_init, |
diff --git a/arch/arm/mach-mx2/mxt_td60.c b/arch/arm/mach-mx2/mach-mxt_td60.c index 8bcc1a5b882..bc385599267 100644 --- a/arch/arm/mach-mx2/mxt_td60.c +++ b/arch/arm/mach-mx2/mach-mxt_td60.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include <asm/mach/map.h> | 33 | #include <asm/mach/map.h> |
34 | #include <linux/gpio.h> | 34 | #include <linux/gpio.h> |
35 | #include <mach/imx-uart.h> | 35 | #include <mach/imx-uart.h> |
36 | #include <mach/iomux.h> | 36 | #include <mach/iomux-mx27.h> |
37 | #include <mach/mxc_nand.h> | 37 | #include <mach/mxc_nand.h> |
38 | #include <mach/i2c.h> | 38 | #include <mach/i2c.h> |
39 | #include <linux/i2c/pca953x.h> | 39 | #include <linux/i2c/pca953x.h> |
@@ -257,7 +257,7 @@ static void __init mxt_td60_board_init(void) | |||
257 | mxc_register_device(&mxc_uart_device0, &uart_pdata[0]); | 257 | mxc_register_device(&mxc_uart_device0, &uart_pdata[0]); |
258 | mxc_register_device(&mxc_uart_device1, &uart_pdata[1]); | 258 | mxc_register_device(&mxc_uart_device1, &uart_pdata[1]); |
259 | mxc_register_device(&mxc_uart_device2, &uart_pdata[2]); | 259 | mxc_register_device(&mxc_uart_device2, &uart_pdata[2]); |
260 | mxc_register_device(&mxc_nand_device, &mxt_td60_nand_board_info); | 260 | mxc_register_device(&imx27_nand_device, &mxt_td60_nand_board_info); |
261 | 261 | ||
262 | i2c_register_board_info(0, mxt_td60_i2c_devices, | 262 | i2c_register_board_info(0, mxt_td60_i2c_devices, |
263 | ARRAY_SIZE(mxt_td60_i2c_devices)); | 263 | ARRAY_SIZE(mxt_td60_i2c_devices)); |
@@ -284,9 +284,9 @@ static struct sys_timer mxt_td60_timer = { | |||
284 | 284 | ||
285 | MACHINE_START(MXT_TD60, "Maxtrack i-MXT TD60") | 285 | MACHINE_START(MXT_TD60, "Maxtrack i-MXT TD60") |
286 | /* maintainer: Maxtrack Industrial */ | 286 | /* maintainer: Maxtrack Industrial */ |
287 | .phys_io = AIPI_BASE_ADDR, | 287 | .phys_io = MX27_AIPI_BASE_ADDR, |
288 | .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 288 | .io_pg_offst = ((MX27_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
289 | .boot_params = PHYS_OFFSET + 0x100, | 289 | .boot_params = MX27_PHYS_OFFSET + 0x100, |
290 | .map_io = mx27_map_io, | 290 | .map_io = mx27_map_io, |
291 | .init_irq = mx27_init_irq, | 291 | .init_irq = mx27_init_irq, |
292 | .init_machine = mxt_td60_board_init, | 292 | .init_machine = mxt_td60_board_init, |
diff --git a/arch/arm/mach-mx2/pca100.c b/arch/arm/mach-mx2/mach-pca100.c index aea3d340d2e..778fff23091 100644 --- a/arch/arm/mach-mx2/pca100.c +++ b/arch/arm/mach-mx2/mach-pca100.c | |||
@@ -25,25 +25,36 @@ | |||
25 | #include <linux/spi/spi.h> | 25 | #include <linux/spi/spi.h> |
26 | #include <linux/spi/eeprom.h> | 26 | #include <linux/spi/eeprom.h> |
27 | #include <linux/irq.h> | 27 | #include <linux/irq.h> |
28 | #include <linux/delay.h> | ||
28 | #include <linux/gpio.h> | 29 | #include <linux/gpio.h> |
30 | #include <linux/usb/otg.h> | ||
31 | #include <linux/usb/ulpi.h> | ||
32 | #include <linux/fsl_devices.h> | ||
29 | 33 | ||
30 | #include <asm/mach/arch.h> | 34 | #include <asm/mach/arch.h> |
31 | #include <asm/mach-types.h> | 35 | #include <asm/mach-types.h> |
32 | #include <mach/common.h> | 36 | #include <mach/common.h> |
33 | #include <mach/hardware.h> | 37 | #include <mach/hardware.h> |
34 | #include <mach/iomux.h> | 38 | #include <mach/iomux-mx27.h> |
35 | #include <mach/i2c.h> | 39 | #include <mach/i2c.h> |
36 | #include <asm/mach/time.h> | 40 | #include <asm/mach/time.h> |
37 | #if defined(CONFIG_SPI_IMX) || defined(CONFIG_SPI_IMX_MODULE) | 41 | #if defined(CONFIG_SPI_IMX) || defined(CONFIG_SPI_IMX_MODULE) |
38 | #include <mach/spi.h> | 42 | #include <mach/spi.h> |
39 | #endif | 43 | #endif |
40 | #include <mach/imx-uart.h> | 44 | #include <mach/imx-uart.h> |
45 | #include <mach/audmux.h> | ||
46 | #include <mach/ssi.h> | ||
41 | #include <mach/mxc_nand.h> | 47 | #include <mach/mxc_nand.h> |
42 | #include <mach/irqs.h> | 48 | #include <mach/irqs.h> |
43 | #include <mach/mmc.h> | 49 | #include <mach/mmc.h> |
50 | #include <mach/mxc_ehci.h> | ||
51 | #include <mach/ulpi.h> | ||
44 | 52 | ||
45 | #include "devices.h" | 53 | #include "devices.h" |
46 | 54 | ||
55 | #define OTG_PHY_CS_GPIO (GPIO_PORTB + 23) | ||
56 | #define USBH2_PHY_CS_GPIO (GPIO_PORTB + 24) | ||
57 | |||
47 | static int pca100_pins[] = { | 58 | static int pca100_pins[] = { |
48 | /* UART1 */ | 59 | /* UART1 */ |
49 | PE12_PF_UART1_TXD, | 60 | PE12_PF_UART1_TXD, |
@@ -92,6 +103,34 @@ static int pca100_pins[] = { | |||
92 | PD29_PF_CSPI1_SCLK, | 103 | PD29_PF_CSPI1_SCLK, |
93 | PD30_PF_CSPI1_MISO, | 104 | PD30_PF_CSPI1_MISO, |
94 | PD31_PF_CSPI1_MOSI, | 105 | PD31_PF_CSPI1_MOSI, |
106 | /* OTG */ | ||
107 | OTG_PHY_CS_GPIO | GPIO_GPIO | GPIO_OUT, | ||
108 | PC7_PF_USBOTG_DATA5, | ||
109 | PC8_PF_USBOTG_DATA6, | ||
110 | PC9_PF_USBOTG_DATA0, | ||
111 | PC10_PF_USBOTG_DATA2, | ||
112 | PC11_PF_USBOTG_DATA1, | ||
113 | PC12_PF_USBOTG_DATA4, | ||
114 | PC13_PF_USBOTG_DATA3, | ||
115 | PE0_PF_USBOTG_NXT, | ||
116 | PE1_PF_USBOTG_STP, | ||
117 | PE2_PF_USBOTG_DIR, | ||
118 | PE24_PF_USBOTG_CLK, | ||
119 | PE25_PF_USBOTG_DATA7, | ||
120 | /* USBH2 */ | ||
121 | USBH2_PHY_CS_GPIO | GPIO_GPIO | GPIO_OUT, | ||
122 | PA0_PF_USBH2_CLK, | ||
123 | PA1_PF_USBH2_DIR, | ||
124 | PA2_PF_USBH2_DATA7, | ||
125 | PA3_PF_USBH2_NXT, | ||
126 | PA4_PF_USBH2_STP, | ||
127 | PD19_AF_USBH2_DATA4, | ||
128 | PD20_AF_USBH2_DATA3, | ||
129 | PD21_AF_USBH2_DATA6, | ||
130 | PD22_AF_USBH2_DATA0, | ||
131 | PD23_AF_USBH2_DATA2, | ||
132 | PD24_AF_USBH2_DATA1, | ||
133 | PD26_AF_USBH2_DATA5, | ||
95 | }; | 134 | }; |
96 | 135 | ||
97 | static struct imxuart_platform_data uart_pdata = { | 136 | static struct imxuart_platform_data uart_pdata = { |
@@ -157,6 +196,37 @@ static struct spi_imx_master pca100_spi_0_data = { | |||
157 | }; | 196 | }; |
158 | #endif | 197 | #endif |
159 | 198 | ||
199 | static void pca100_ac97_warm_reset(struct snd_ac97 *ac97) | ||
200 | { | ||
201 | mxc_gpio_mode(GPIO_PORTC | 20 | GPIO_GPIO | GPIO_OUT); | ||
202 | gpio_set_value(GPIO_PORTC + 20, 1); | ||
203 | udelay(2); | ||
204 | gpio_set_value(GPIO_PORTC + 20, 0); | ||
205 | mxc_gpio_mode(PC20_PF_SSI1_FS); | ||
206 | msleep(2); | ||
207 | } | ||
208 | |||
209 | static void pca100_ac97_cold_reset(struct snd_ac97 *ac97) | ||
210 | { | ||
211 | mxc_gpio_mode(GPIO_PORTC | 20 | GPIO_GPIO | GPIO_OUT); /* FS */ | ||
212 | gpio_set_value(GPIO_PORTC + 20, 0); | ||
213 | mxc_gpio_mode(GPIO_PORTC | 22 | GPIO_GPIO | GPIO_OUT); /* TX */ | ||
214 | gpio_set_value(GPIO_PORTC + 22, 0); | ||
215 | mxc_gpio_mode(GPIO_PORTC | 28 | GPIO_GPIO | GPIO_OUT); /* reset */ | ||
216 | gpio_set_value(GPIO_PORTC + 28, 0); | ||
217 | udelay(10); | ||
218 | gpio_set_value(GPIO_PORTC + 28, 1); | ||
219 | mxc_gpio_mode(PC20_PF_SSI1_FS); | ||
220 | mxc_gpio_mode(PC22_PF_SSI1_TXD); | ||
221 | msleep(2); | ||
222 | } | ||
223 | |||
224 | static struct imx_ssi_platform_data pca100_ssi_pdata = { | ||
225 | .ac97_reset = pca100_ac97_cold_reset, | ||
226 | .ac97_warm_reset = pca100_ac97_warm_reset, | ||
227 | .flags = IMX_SSI_USE_AC97, | ||
228 | }; | ||
229 | |||
160 | static int pca100_sdhc2_init(struct device *dev, irq_handler_t detect_irq, | 230 | static int pca100_sdhc2_init(struct device *dev, irq_handler_t detect_irq, |
161 | void *data) | 231 | void *data) |
162 | { | 232 | { |
@@ -182,21 +252,79 @@ static struct imxmmc_platform_data sdhc_pdata = { | |||
182 | .exit = pca100_sdhc2_exit, | 252 | .exit = pca100_sdhc2_exit, |
183 | }; | 253 | }; |
184 | 254 | ||
255 | static int otg_phy_init(struct platform_device *pdev) | ||
256 | { | ||
257 | gpio_set_value(OTG_PHY_CS_GPIO, 0); | ||
258 | return 0; | ||
259 | } | ||
260 | |||
261 | static struct mxc_usbh_platform_data otg_pdata = { | ||
262 | .init = otg_phy_init, | ||
263 | .portsc = MXC_EHCI_MODE_ULPI, | ||
264 | .flags = MXC_EHCI_INTERFACE_DIFF_UNI, | ||
265 | }; | ||
266 | |||
267 | static int usbh2_phy_init(struct platform_device *pdev) | ||
268 | { | ||
269 | gpio_set_value(USBH2_PHY_CS_GPIO, 0); | ||
270 | return 0; | ||
271 | } | ||
272 | |||
273 | static struct mxc_usbh_platform_data usbh2_pdata = { | ||
274 | .init = usbh2_phy_init, | ||
275 | .portsc = MXC_EHCI_MODE_ULPI, | ||
276 | .flags = MXC_EHCI_INTERFACE_DIFF_UNI, | ||
277 | }; | ||
278 | |||
279 | static struct fsl_usb2_platform_data otg_device_pdata = { | ||
280 | .operating_mode = FSL_USB2_DR_DEVICE, | ||
281 | .phy_mode = FSL_USB2_PHY_ULPI, | ||
282 | }; | ||
283 | |||
284 | static int otg_mode_host; | ||
285 | |||
286 | static int __init pca100_otg_mode(char *options) | ||
287 | { | ||
288 | if (!strcmp(options, "host")) | ||
289 | otg_mode_host = 1; | ||
290 | else if (!strcmp(options, "device")) | ||
291 | otg_mode_host = 0; | ||
292 | else | ||
293 | pr_info("otg_mode neither \"host\" nor \"device\". " | ||
294 | "Defaulting to device\n"); | ||
295 | return 0; | ||
296 | } | ||
297 | __setup("otg_mode=", pca100_otg_mode); | ||
298 | |||
185 | static void __init pca100_init(void) | 299 | static void __init pca100_init(void) |
186 | { | 300 | { |
187 | int ret; | 301 | int ret; |
188 | 302 | ||
303 | /* SSI unit */ | ||
304 | mxc_audmux_v1_configure_port(MX27_AUDMUX_HPCR1_SSI0, | ||
305 | MXC_AUDMUX_V1_PCR_SYN | /* 4wire mode */ | ||
306 | MXC_AUDMUX_V1_PCR_TFCSEL(3) | | ||
307 | MXC_AUDMUX_V1_PCR_TCLKDIR | /* clock is output */ | ||
308 | MXC_AUDMUX_V1_PCR_RXDSEL(3)); | ||
309 | mxc_audmux_v1_configure_port(3, | ||
310 | MXC_AUDMUX_V1_PCR_SYN | /* 4wire mode */ | ||
311 | MXC_AUDMUX_V1_PCR_TFCSEL(0) | | ||
312 | MXC_AUDMUX_V1_PCR_TFSDIR | | ||
313 | MXC_AUDMUX_V1_PCR_RXDSEL(0)); | ||
314 | |||
189 | ret = mxc_gpio_setup_multiple_pins(pca100_pins, | 315 | ret = mxc_gpio_setup_multiple_pins(pca100_pins, |
190 | ARRAY_SIZE(pca100_pins), "PCA100"); | 316 | ARRAY_SIZE(pca100_pins), "PCA100"); |
191 | if (ret) | 317 | if (ret) |
192 | printk(KERN_ERR "pca100: Failed to setup pins (%d)\n", ret); | 318 | printk(KERN_ERR "pca100: Failed to setup pins (%d)\n", ret); |
193 | 319 | ||
320 | mxc_register_device(&imx_ssi_device0, &pca100_ssi_pdata); | ||
321 | |||
194 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | 322 | mxc_register_device(&mxc_uart_device0, &uart_pdata); |
195 | 323 | ||
196 | mxc_gpio_mode(GPIO_PORTC | 29 | GPIO_GPIO | GPIO_IN); | 324 | mxc_gpio_mode(GPIO_PORTC | 29 | GPIO_GPIO | GPIO_IN); |
197 | mxc_register_device(&mxc_sdhc_device1, &sdhc_pdata); | 325 | mxc_register_device(&mxc_sdhc_device1, &sdhc_pdata); |
198 | 326 | ||
199 | mxc_register_device(&mxc_nand_device, &pca100_nand_board_info); | 327 | mxc_register_device(&imx27_nand_device, &pca100_nand_board_info); |
200 | 328 | ||
201 | /* only the i2c master 1 is used on this CPU card */ | 329 | /* only the i2c master 1 is used on this CPU card */ |
202 | i2c_register_board_info(1, pca100_i2c_devices, | 330 | i2c_register_board_info(1, pca100_i2c_devices, |
@@ -220,6 +348,29 @@ static void __init pca100_init(void) | |||
220 | mxc_register_device(&mxc_spi_device0, &pca100_spi_0_data); | 348 | mxc_register_device(&mxc_spi_device0, &pca100_spi_0_data); |
221 | #endif | 349 | #endif |
222 | 350 | ||
351 | gpio_request(OTG_PHY_CS_GPIO, "usb-otg-cs"); | ||
352 | gpio_direction_output(OTG_PHY_CS_GPIO, 1); | ||
353 | gpio_request(USBH2_PHY_CS_GPIO, "usb-host2-cs"); | ||
354 | gpio_direction_output(USBH2_PHY_CS_GPIO, 1); | ||
355 | |||
356 | #if defined(CONFIG_USB_ULPI) | ||
357 | if (otg_mode_host) { | ||
358 | otg_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops, | ||
359 | USB_OTG_DRV_VBUS | USB_OTG_DRV_VBUS_EXT); | ||
360 | |||
361 | mxc_register_device(&mxc_otg_host, &otg_pdata); | ||
362 | } | ||
363 | |||
364 | usbh2_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops, | ||
365 | USB_OTG_DRV_VBUS | USB_OTG_DRV_VBUS_EXT); | ||
366 | |||
367 | mxc_register_device(&mxc_usbh2, &usbh2_pdata); | ||
368 | #endif | ||
369 | if (!otg_mode_host) { | ||
370 | gpio_set_value(OTG_PHY_CS_GPIO, 0); | ||
371 | mxc_register_device(&mxc_otg_udc_device, &otg_device_pdata); | ||
372 | } | ||
373 | |||
223 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 374 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |
224 | } | 375 | } |
225 | 376 | ||
@@ -233,9 +384,9 @@ static struct sys_timer pca100_timer = { | |||
233 | }; | 384 | }; |
234 | 385 | ||
235 | MACHINE_START(PCA100, "phyCARD-i.MX27") | 386 | MACHINE_START(PCA100, "phyCARD-i.MX27") |
236 | .phys_io = AIPI_BASE_ADDR, | 387 | .phys_io = MX27_AIPI_BASE_ADDR, |
237 | .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 388 | .io_pg_offst = ((MX27_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
238 | .boot_params = PHYS_OFFSET + 0x100, | 389 | .boot_params = MX27_PHYS_OFFSET + 0x100, |
239 | .map_io = mx27_map_io, | 390 | .map_io = mx27_map_io, |
240 | .init_irq = mx27_init_irq, | 391 | .init_irq = mx27_init_irq, |
241 | .init_machine = pca100_init, | 392 | .init_machine = pca100_init, |
diff --git a/arch/arm/mach-mx2/pcm038.c b/arch/arm/mach-mx2/mach-pcm038.c index 906d59b0a7a..035fbe046ec 100644 --- a/arch/arm/mach-mx2/pcm038.c +++ b/arch/arm/mach-mx2/mach-pcm038.c | |||
@@ -36,10 +36,12 @@ | |||
36 | #include <mach/common.h> | 36 | #include <mach/common.h> |
37 | #include <mach/hardware.h> | 37 | #include <mach/hardware.h> |
38 | #include <mach/i2c.h> | 38 | #include <mach/i2c.h> |
39 | #include <mach/iomux.h> | 39 | #include <mach/iomux-mx27.h> |
40 | #include <mach/imx-uart.h> | 40 | #include <mach/imx-uart.h> |
41 | #include <mach/mxc_nand.h> | 41 | #include <mach/mxc_nand.h> |
42 | #include <mach/spi.h> | 42 | #include <mach/spi.h> |
43 | #include <mach/mxc_ehci.h> | ||
44 | #include <mach/ulpi.h> | ||
43 | 45 | ||
44 | #include "devices.h" | 46 | #include "devices.h" |
45 | 47 | ||
@@ -96,6 +98,19 @@ static int pcm038_pins[] = { | |||
96 | PC17_PF_SSI4_RXD, | 98 | PC17_PF_SSI4_RXD, |
97 | PC18_PF_SSI4_TXD, | 99 | PC18_PF_SSI4_TXD, |
98 | PC19_PF_SSI4_CLK, | 100 | PC19_PF_SSI4_CLK, |
101 | /* USB host */ | ||
102 | PA0_PF_USBH2_CLK, | ||
103 | PA1_PF_USBH2_DIR, | ||
104 | PA2_PF_USBH2_DATA7, | ||
105 | PA3_PF_USBH2_NXT, | ||
106 | PA4_PF_USBH2_STP, | ||
107 | PD19_AF_USBH2_DATA4, | ||
108 | PD20_AF_USBH2_DATA3, | ||
109 | PD21_AF_USBH2_DATA6, | ||
110 | PD22_AF_USBH2_DATA0, | ||
111 | PD23_AF_USBH2_DATA2, | ||
112 | PD24_AF_USBH2_DATA1, | ||
113 | PD26_AF_USBH2_DATA5, | ||
99 | }; | 114 | }; |
100 | 115 | ||
101 | /* | 116 | /* |
@@ -108,8 +123,8 @@ static struct platdata_mtd_ram pcm038_sram_data = { | |||
108 | }; | 123 | }; |
109 | 124 | ||
110 | static struct resource pcm038_sram_resource = { | 125 | static struct resource pcm038_sram_resource = { |
111 | .start = CS1_BASE_ADDR, | 126 | .start = MX27_CS1_BASE_ADDR, |
112 | .end = CS1_BASE_ADDR + 512 * 1024 - 1, | 127 | .end = MX27_CS1_BASE_ADDR + 512 * 1024 - 1, |
113 | .flags = IORESOURCE_MEM, | 128 | .flags = IORESOURCE_MEM, |
114 | }; | 129 | }; |
115 | 130 | ||
@@ -173,9 +188,7 @@ static struct platform_device *platform_devices[] __initdata = { | |||
173 | * setup other stuffs to access the sram. */ | 188 | * setup other stuffs to access the sram. */ |
174 | static void __init pcm038_init_sram(void) | 189 | static void __init pcm038_init_sram(void) |
175 | { | 190 | { |
176 | __raw_writel(0x0000d843, CSCR_U(1)); | 191 | mx27_setup_weimcs(1, 0x0000d843, 0x22252521, 0x22220a00); |
177 | __raw_writel(0x22252521, CSCR_L(1)); | ||
178 | __raw_writel(0x22220a00, CSCR_A(1)); | ||
179 | } | 192 | } |
180 | 193 | ||
181 | static struct imxi2c_platform_data pcm038_i2c_1_data = { | 194 | static struct imxi2c_platform_data pcm038_i2c_1_data = { |
@@ -279,6 +292,11 @@ static struct spi_board_info pcm038_spi_board_info[] __initdata = { | |||
279 | } | 292 | } |
280 | }; | 293 | }; |
281 | 294 | ||
295 | static struct mxc_usbh_platform_data usbh2_pdata = { | ||
296 | .portsc = MXC_EHCI_MODE_ULPI, | ||
297 | .flags = MXC_EHCI_POWER_PINS_ENABLED | MXC_EHCI_INTERFACE_DIFF_UNI, | ||
298 | }; | ||
299 | |||
282 | static void __init pcm038_init(void) | 300 | static void __init pcm038_init(void) |
283 | { | 301 | { |
284 | mxc_gpio_setup_multiple_pins(pcm038_pins, ARRAY_SIZE(pcm038_pins), | 302 | mxc_gpio_setup_multiple_pins(pcm038_pins, ARRAY_SIZE(pcm038_pins), |
@@ -291,7 +309,7 @@ static void __init pcm038_init(void) | |||
291 | mxc_register_device(&mxc_uart_device2, &uart_pdata[2]); | 309 | mxc_register_device(&mxc_uart_device2, &uart_pdata[2]); |
292 | 310 | ||
293 | mxc_gpio_mode(PE16_AF_OWIRE); | 311 | mxc_gpio_mode(PE16_AF_OWIRE); |
294 | mxc_register_device(&mxc_nand_device, &pcm038_nand_board_info); | 312 | mxc_register_device(&imx27_nand_device, &pcm038_nand_board_info); |
295 | 313 | ||
296 | /* only the i2c master 1 is used on this CPU card */ | 314 | /* only the i2c master 1 is used on this CPU card */ |
297 | i2c_register_board_info(1, pcm038_i2c_devices, | 315 | i2c_register_board_info(1, pcm038_i2c_devices, |
@@ -311,6 +329,8 @@ static void __init pcm038_init(void) | |||
311 | spi_register_board_info(pcm038_spi_board_info, | 329 | spi_register_board_info(pcm038_spi_board_info, |
312 | ARRAY_SIZE(pcm038_spi_board_info)); | 330 | ARRAY_SIZE(pcm038_spi_board_info)); |
313 | 331 | ||
332 | mxc_register_device(&mxc_usbh2, &usbh2_pdata); | ||
333 | |||
314 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 334 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |
315 | 335 | ||
316 | #ifdef CONFIG_MACH_PCM970_BASEBOARD | 336 | #ifdef CONFIG_MACH_PCM970_BASEBOARD |
@@ -328,9 +348,9 @@ static struct sys_timer pcm038_timer = { | |||
328 | }; | 348 | }; |
329 | 349 | ||
330 | MACHINE_START(PCM038, "phyCORE-i.MX27") | 350 | MACHINE_START(PCM038, "phyCORE-i.MX27") |
331 | .phys_io = AIPI_BASE_ADDR, | 351 | .phys_io = MX27_AIPI_BASE_ADDR, |
332 | .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 352 | .io_pg_offst = ((MX27_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
333 | .boot_params = PHYS_OFFSET + 0x100, | 353 | .boot_params = MX27_PHYS_OFFSET + 0x100, |
334 | .map_io = mx27_map_io, | 354 | .map_io = mx27_map_io, |
335 | .init_irq = mx27_init_irq, | 355 | .init_irq = mx27_init_irq, |
336 | .init_machine = pcm038_init, | 356 | .init_machine = pcm038_init, |
diff --git a/arch/arm/mach-mx2/mm-imx21.c b/arch/arm/mach-mx2/mm-imx21.c new file mode 100644 index 00000000000..64134314d01 --- /dev/null +++ b/arch/arm/mach-mx2/mm-imx21.c | |||
@@ -0,0 +1,83 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-mx2/mm-imx21.c | ||
3 | * | ||
4 | * Copyright (C) 2008 Juergen Beisert (kernel@pengutronix.de) | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU General Public License | ||
8 | * as published by the Free Software Foundation; either version 2 | ||
9 | * of the License, or (at your option) any later version. | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | ||
18 | * MA 02110-1301, USA. | ||
19 | */ | ||
20 | |||
21 | #include <linux/mm.h> | ||
22 | #include <linux/init.h> | ||
23 | #include <mach/hardware.h> | ||
24 | #include <mach/common.h> | ||
25 | #include <asm/pgtable.h> | ||
26 | #include <asm/mach/map.h> | ||
27 | |||
28 | /* MX21 memory map definition */ | ||
29 | static struct map_desc imx21_io_desc[] __initdata = { | ||
30 | /* | ||
31 | * this fixed mapping covers: | ||
32 | * - AIPI1 | ||
33 | * - AIPI2 | ||
34 | * - AITC | ||
35 | * - ROM Patch | ||
36 | * - and some reserved space | ||
37 | */ | ||
38 | { | ||
39 | .virtual = MX21_AIPI_BASE_ADDR_VIRT, | ||
40 | .pfn = __phys_to_pfn(MX21_AIPI_BASE_ADDR), | ||
41 | .length = MX21_AIPI_SIZE, | ||
42 | .type = MT_DEVICE | ||
43 | }, | ||
44 | /* | ||
45 | * this fixed mapping covers: | ||
46 | * - CSI | ||
47 | * - ATA | ||
48 | */ | ||
49 | { | ||
50 | .virtual = MX21_SAHB1_BASE_ADDR_VIRT, | ||
51 | .pfn = __phys_to_pfn(MX21_SAHB1_BASE_ADDR), | ||
52 | .length = MX21_SAHB1_SIZE, | ||
53 | .type = MT_DEVICE | ||
54 | }, | ||
55 | /* | ||
56 | * this fixed mapping covers: | ||
57 | * - EMI | ||
58 | */ | ||
59 | { | ||
60 | .virtual = MX21_X_MEMC_BASE_ADDR_VIRT, | ||
61 | .pfn = __phys_to_pfn(MX21_X_MEMC_BASE_ADDR), | ||
62 | .length = MX21_X_MEMC_SIZE, | ||
63 | .type = MT_DEVICE | ||
64 | }, | ||
65 | }; | ||
66 | |||
67 | /* | ||
68 | * Initialize the memory map. It is called during the | ||
69 | * system startup to create static physical to virtual | ||
70 | * memory map for the IO modules. | ||
71 | */ | ||
72 | void __init mx21_map_io(void) | ||
73 | { | ||
74 | mxc_set_cpu_type(MXC_CPU_MX21); | ||
75 | mxc_arch_reset_init(MX21_IO_ADDRESS(MX21_WDOG_BASE_ADDR)); | ||
76 | |||
77 | iotable_init(imx21_io_desc, ARRAY_SIZE(imx21_io_desc)); | ||
78 | } | ||
79 | |||
80 | void __init mx21_init_irq(void) | ||
81 | { | ||
82 | mxc_init_irq(MX21_IO_ADDRESS(MX21_AVIC_BASE_ADDR)); | ||
83 | } | ||
diff --git a/arch/arm/mach-mx2/generic.c b/arch/arm/mach-mx2/mm-imx27.c index ae8f759134d..3366ed44cfd 100644 --- a/arch/arm/mach-mx2/generic.c +++ b/arch/arm/mach-mx2/mm-imx27.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * generic.c | 2 | * arch/arm/mach-mx2/mm-imx27.c |
3 | * | 3 | * |
4 | * Copyright (C) 2008 Juergen Beisert (kernel@pengutronix.de) | 4 | * Copyright (C) 2008 Juergen Beisert (kernel@pengutronix.de) |
5 | * | 5 | * |
@@ -26,7 +26,7 @@ | |||
26 | #include <asm/mach/map.h> | 26 | #include <asm/mach/map.h> |
27 | 27 | ||
28 | /* MX27 memory map definition */ | 28 | /* MX27 memory map definition */ |
29 | static struct map_desc mxc_io_desc[] __initdata = { | 29 | static struct map_desc imx27_io_desc[] __initdata = { |
30 | /* | 30 | /* |
31 | * this fixed mapping covers: | 31 | * this fixed mapping covers: |
32 | * - AIPI1 | 32 | * - AIPI1 |
@@ -36,9 +36,9 @@ static struct map_desc mxc_io_desc[] __initdata = { | |||
36 | * - and some reserved space | 36 | * - and some reserved space |
37 | */ | 37 | */ |
38 | { | 38 | { |
39 | .virtual = AIPI_BASE_ADDR_VIRT, | 39 | .virtual = MX27_AIPI_BASE_ADDR_VIRT, |
40 | .pfn = __phys_to_pfn(AIPI_BASE_ADDR), | 40 | .pfn = __phys_to_pfn(MX27_AIPI_BASE_ADDR), |
41 | .length = AIPI_SIZE, | 41 | .length = MX27_AIPI_SIZE, |
42 | .type = MT_DEVICE | 42 | .type = MT_DEVICE |
43 | }, | 43 | }, |
44 | /* | 44 | /* |
@@ -47,9 +47,9 @@ static struct map_desc mxc_io_desc[] __initdata = { | |||
47 | * - ATA | 47 | * - ATA |
48 | */ | 48 | */ |
49 | { | 49 | { |
50 | .virtual = SAHB1_BASE_ADDR_VIRT, | 50 | .virtual = MX27_SAHB1_BASE_ADDR_VIRT, |
51 | .pfn = __phys_to_pfn(SAHB1_BASE_ADDR), | 51 | .pfn = __phys_to_pfn(MX27_SAHB1_BASE_ADDR), |
52 | .length = SAHB1_SIZE, | 52 | .length = MX27_SAHB1_SIZE, |
53 | .type = MT_DEVICE | 53 | .type = MT_DEVICE |
54 | }, | 54 | }, |
55 | /* | 55 | /* |
@@ -57,11 +57,11 @@ static struct map_desc mxc_io_desc[] __initdata = { | |||
57 | * - EMI | 57 | * - EMI |
58 | */ | 58 | */ |
59 | { | 59 | { |
60 | .virtual = X_MEMC_BASE_ADDR_VIRT, | 60 | .virtual = MX27_X_MEMC_BASE_ADDR_VIRT, |
61 | .pfn = __phys_to_pfn(X_MEMC_BASE_ADDR), | 61 | .pfn = __phys_to_pfn(MX27_X_MEMC_BASE_ADDR), |
62 | .length = X_MEMC_SIZE, | 62 | .length = MX27_X_MEMC_SIZE, |
63 | .type = MT_DEVICE | 63 | .type = MT_DEVICE |
64 | } | 64 | }, |
65 | }; | 65 | }; |
66 | 66 | ||
67 | /* | 67 | /* |
@@ -69,29 +69,15 @@ static struct map_desc mxc_io_desc[] __initdata = { | |||
69 | * system startup to create static physical to virtual | 69 | * system startup to create static physical to virtual |
70 | * memory map for the IO modules. | 70 | * memory map for the IO modules. |
71 | */ | 71 | */ |
72 | void __init mx21_map_io(void) | ||
73 | { | ||
74 | mxc_set_cpu_type(MXC_CPU_MX21); | ||
75 | mxc_arch_reset_init(IO_ADDRESS(WDOG_BASE_ADDR)); | ||
76 | |||
77 | iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc)); | ||
78 | } | ||
79 | |||
80 | void __init mx27_map_io(void) | 72 | void __init mx27_map_io(void) |
81 | { | 73 | { |
82 | mxc_set_cpu_type(MXC_CPU_MX27); | 74 | mxc_set_cpu_type(MXC_CPU_MX27); |
83 | mxc_arch_reset_init(IO_ADDRESS(WDOG_BASE_ADDR)); | 75 | mxc_arch_reset_init(MX27_IO_ADDRESS(MX27_WDOG_BASE_ADDR)); |
84 | 76 | ||
85 | iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc)); | 77 | iotable_init(imx27_io_desc, ARRAY_SIZE(imx27_io_desc)); |
86 | } | 78 | } |
87 | 79 | ||
88 | void __init mx27_init_irq(void) | 80 | void __init mx27_init_irq(void) |
89 | { | 81 | { |
90 | mxc_init_irq(IO_ADDRESS(AVIC_BASE_ADDR)); | 82 | mxc_init_irq(MX27_IO_ADDRESS(MX27_AVIC_BASE_ADDR)); |
91 | } | 83 | } |
92 | |||
93 | void __init mx21_init_irq(void) | ||
94 | { | ||
95 | mx27_init_irq(); | ||
96 | } | ||
97 | |||
diff --git a/arch/arm/mach-mx2/pcm970-baseboard.c b/arch/arm/mach-mx2/pcm970-baseboard.c index 3cb7f457e5d..4aafd5b8b85 100644 --- a/arch/arm/mach-mx2/pcm970-baseboard.c +++ b/arch/arm/mach-mx2/pcm970-baseboard.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include <asm/mach/arch.h> | 24 | #include <asm/mach/arch.h> |
25 | 25 | ||
26 | #include <mach/common.h> | 26 | #include <mach/common.h> |
27 | #include <mach/iomux.h> | 27 | #include <mach/iomux-mx27.h> |
28 | #include <mach/imxfb.h> | 28 | #include <mach/imxfb.h> |
29 | #include <mach/hardware.h> | 29 | #include <mach/hardware.h> |
30 | #include <mach/mmc.h> | 30 | #include <mach/mmc.h> |
@@ -190,8 +190,8 @@ static struct imx_fb_platform_data pcm038_fb_data = { | |||
190 | 190 | ||
191 | static struct resource pcm970_sja1000_resources[] = { | 191 | static struct resource pcm970_sja1000_resources[] = { |
192 | { | 192 | { |
193 | .start = CS4_BASE_ADDR, | 193 | .start = MX27_CS4_BASE_ADDR, |
194 | .end = CS4_BASE_ADDR + 0x100 - 1, | 194 | .end = MX27_CS4_BASE_ADDR + 0x100 - 1, |
195 | .flags = IORESOURCE_MEM, | 195 | .flags = IORESOURCE_MEM, |
196 | }, { | 196 | }, { |
197 | .start = IRQ_GPIOE(19), | 197 | .start = IRQ_GPIOE(19), |
diff --git a/arch/arm/mach-mx2/serial.c b/arch/arm/mach-mx2/serial.c index 40a485cdc10..1c0c835b225 100644 --- a/arch/arm/mach-mx2/serial.c +++ b/arch/arm/mach-mx2/serial.c | |||
@@ -26,12 +26,12 @@ | |||
26 | 26 | ||
27 | static struct resource uart0[] = { | 27 | static struct resource uart0[] = { |
28 | { | 28 | { |
29 | .start = UART1_BASE_ADDR, | 29 | .start = MX2x_UART1_BASE_ADDR, |
30 | .end = UART1_BASE_ADDR + 0x0B5, | 30 | .end = MX2x_UART1_BASE_ADDR + 0x0B5, |
31 | .flags = IORESOURCE_MEM, | 31 | .flags = IORESOURCE_MEM, |
32 | }, { | 32 | }, { |
33 | .start = MXC_INT_UART1, | 33 | .start = MX2x_INT_UART1, |
34 | .end = MXC_INT_UART1, | 34 | .end = MX2x_INT_UART1, |
35 | .flags = IORESOURCE_IRQ, | 35 | .flags = IORESOURCE_IRQ, |
36 | }, | 36 | }, |
37 | }; | 37 | }; |
@@ -45,12 +45,12 @@ struct platform_device mxc_uart_device0 = { | |||
45 | 45 | ||
46 | static struct resource uart1[] = { | 46 | static struct resource uart1[] = { |
47 | { | 47 | { |
48 | .start = UART2_BASE_ADDR, | 48 | .start = MX2x_UART2_BASE_ADDR, |
49 | .end = UART2_BASE_ADDR + 0x0B5, | 49 | .end = MX2x_UART2_BASE_ADDR + 0x0B5, |
50 | .flags = IORESOURCE_MEM, | 50 | .flags = IORESOURCE_MEM, |
51 | }, { | 51 | }, { |
52 | .start = MXC_INT_UART2, | 52 | .start = MX2x_INT_UART2, |
53 | .end = MXC_INT_UART2, | 53 | .end = MX2x_INT_UART2, |
54 | .flags = IORESOURCE_IRQ, | 54 | .flags = IORESOURCE_IRQ, |
55 | }, | 55 | }, |
56 | }; | 56 | }; |
@@ -64,12 +64,12 @@ struct platform_device mxc_uart_device1 = { | |||
64 | 64 | ||
65 | static struct resource uart2[] = { | 65 | static struct resource uart2[] = { |
66 | { | 66 | { |
67 | .start = UART3_BASE_ADDR, | 67 | .start = MX2x_UART3_BASE_ADDR, |
68 | .end = UART3_BASE_ADDR + 0x0B5, | 68 | .end = MX2x_UART3_BASE_ADDR + 0x0B5, |
69 | .flags = IORESOURCE_MEM, | 69 | .flags = IORESOURCE_MEM, |
70 | }, { | 70 | }, { |
71 | .start = MXC_INT_UART3, | 71 | .start = MX2x_INT_UART3, |
72 | .end = MXC_INT_UART3, | 72 | .end = MX2x_INT_UART3, |
73 | .flags = IORESOURCE_IRQ, | 73 | .flags = IORESOURCE_IRQ, |
74 | }, | 74 | }, |
75 | }; | 75 | }; |
@@ -83,12 +83,12 @@ struct platform_device mxc_uart_device2 = { | |||
83 | 83 | ||
84 | static struct resource uart3[] = { | 84 | static struct resource uart3[] = { |
85 | { | 85 | { |
86 | .start = UART4_BASE_ADDR, | 86 | .start = MX2x_UART4_BASE_ADDR, |
87 | .end = UART4_BASE_ADDR + 0x0B5, | 87 | .end = MX2x_UART4_BASE_ADDR + 0x0B5, |
88 | .flags = IORESOURCE_MEM, | 88 | .flags = IORESOURCE_MEM, |
89 | }, { | 89 | }, { |
90 | .start = MXC_INT_UART4, | 90 | .start = MX2x_INT_UART4, |
91 | .end = MXC_INT_UART4, | 91 | .end = MX2x_INT_UART4, |
92 | .flags = IORESOURCE_IRQ, | 92 | .flags = IORESOURCE_IRQ, |
93 | }, | 93 | }, |
94 | }; | 94 | }; |
@@ -103,12 +103,12 @@ struct platform_device mxc_uart_device3 = { | |||
103 | #ifdef CONFIG_MACH_MX27 | 103 | #ifdef CONFIG_MACH_MX27 |
104 | static struct resource uart4[] = { | 104 | static struct resource uart4[] = { |
105 | { | 105 | { |
106 | .start = UART5_BASE_ADDR, | 106 | .start = MX27_UART5_BASE_ADDR, |
107 | .end = UART5_BASE_ADDR + 0x0B5, | 107 | .end = MX27_UART5_BASE_ADDR + 0x0B5, |
108 | .flags = IORESOURCE_MEM, | 108 | .flags = IORESOURCE_MEM, |
109 | }, { | 109 | }, { |
110 | .start = MXC_INT_UART5, | 110 | .start = MX27_INT_UART5, |
111 | .end = MXC_INT_UART5, | 111 | .end = MX27_INT_UART5, |
112 | .flags = IORESOURCE_IRQ, | 112 | .flags = IORESOURCE_IRQ, |
113 | }, | 113 | }, |
114 | }; | 114 | }; |
@@ -122,12 +122,12 @@ struct platform_device mxc_uart_device4 = { | |||
122 | 122 | ||
123 | static struct resource uart5[] = { | 123 | static struct resource uart5[] = { |
124 | { | 124 | { |
125 | .start = UART6_BASE_ADDR, | 125 | .start = MX27_UART6_BASE_ADDR, |
126 | .end = UART6_BASE_ADDR + 0x0B5, | 126 | .end = MX27_UART6_BASE_ADDR + 0x0B5, |
127 | .flags = IORESOURCE_MEM, | 127 | .flags = IORESOURCE_MEM, |
128 | }, { | 128 | }, { |
129 | .start = MXC_INT_UART6, | 129 | .start = MX27_INT_UART6, |
130 | .end = MXC_INT_UART6, | 130 | .end = MX27_INT_UART6, |
131 | .flags = IORESOURCE_IRQ, | 131 | .flags = IORESOURCE_IRQ, |
132 | }, | 132 | }, |
133 | }; | 133 | }; |
diff --git a/arch/arm/mach-mx25/Kconfig b/arch/arm/mach-mx25/Kconfig index cc28f56eae8..54d217314ee 100644 --- a/arch/arm/mach-mx25/Kconfig +++ b/arch/arm/mach-mx25/Kconfig | |||
@@ -3,7 +3,6 @@ if ARCH_MX25 | |||
3 | comment "MX25 platforms:" | 3 | comment "MX25 platforms:" |
4 | 4 | ||
5 | config MACH_MX25_3DS | 5 | config MACH_MX25_3DS |
6 | select ARCH_MXC_IOMUX_V3 | ||
7 | bool "Support MX25PDK (3DS) Platform" | 6 | bool "Support MX25PDK (3DS) Platform" |
8 | 7 | ||
9 | endif | 8 | endif |
diff --git a/arch/arm/mach-mx25/Makefile b/arch/arm/mach-mx25/Makefile index fe23836a9f3..10cebc5ced8 100644 --- a/arch/arm/mach-mx25/Makefile +++ b/arch/arm/mach-mx25/Makefile | |||
@@ -1,3 +1,3 @@ | |||
1 | obj-y := mm.o devices.o | 1 | obj-y := mm.o devices.o |
2 | obj-$(CONFIG_ARCH_MX25) += clock.o | 2 | obj-$(CONFIG_ARCH_MX25) += clock.o |
3 | obj-$(CONFIG_MACH_MX25_3DS) += mx25pdk.o | 3 | obj-$(CONFIG_MACH_MX25_3DS) += mach-mx25pdk.o |
diff --git a/arch/arm/mach-mx25/clock.c b/arch/arm/mach-mx25/clock.c index 6e838b85771..56bf958d8c3 100644 --- a/arch/arm/mach-mx25/clock.c +++ b/arch/arm/mach-mx25/clock.c | |||
@@ -119,6 +119,16 @@ static unsigned long get_rate_nfc(struct clk *clk) | |||
119 | return get_rate_per(8); | 119 | return get_rate_per(8); |
120 | } | 120 | } |
121 | 121 | ||
122 | static unsigned long get_rate_gpt(struct clk *clk) | ||
123 | { | ||
124 | return get_rate_per(5); | ||
125 | } | ||
126 | |||
127 | static unsigned long get_rate_lcdc(struct clk *clk) | ||
128 | { | ||
129 | return get_rate_per(7); | ||
130 | } | ||
131 | |||
122 | static unsigned long get_rate_otg(struct clk *clk) | 132 | static unsigned long get_rate_otg(struct clk *clk) |
123 | { | 133 | { |
124 | return 48000000; /* FIXME */ | 134 | return 48000000; /* FIXME */ |
@@ -144,7 +154,7 @@ static void clk_cgcr_disable(struct clk *clk) | |||
144 | __raw_writel(reg, clk->enable_reg); | 154 | __raw_writel(reg, clk->enable_reg); |
145 | } | 155 | } |
146 | 156 | ||
147 | #define DEFINE_CLOCK(name, i, er, es, gr, sr) \ | 157 | #define DEFINE_CLOCK(name, i, er, es, gr, sr, s) \ |
148 | static struct clk name = { \ | 158 | static struct clk name = { \ |
149 | .id = i, \ | 159 | .id = i, \ |
150 | .enable_reg = CRM_BASE + er, \ | 160 | .enable_reg = CRM_BASE + er, \ |
@@ -153,27 +163,34 @@ static void clk_cgcr_disable(struct clk *clk) | |||
153 | .set_rate = sr, \ | 163 | .set_rate = sr, \ |
154 | .enable = clk_cgcr_enable, \ | 164 | .enable = clk_cgcr_enable, \ |
155 | .disable = clk_cgcr_disable, \ | 165 | .disable = clk_cgcr_disable, \ |
166 | .secondary = s, \ | ||
156 | } | 167 | } |
157 | 168 | ||
158 | DEFINE_CLOCK(gpt_clk, 0, CCM_CGCR0, 5, get_rate_ipg, NULL); | 169 | DEFINE_CLOCK(gpt_clk, 0, CCM_CGCR0, 5, get_rate_gpt, NULL, NULL); |
159 | DEFINE_CLOCK(cspi1_clk, 0, CCM_CGCR1, 5, get_rate_ipg, NULL); | 170 | DEFINE_CLOCK(uart_per_clk, 0, CCM_CGCR0, 15, get_rate_uart, NULL, NULL); |
160 | DEFINE_CLOCK(cspi2_clk, 0, CCM_CGCR1, 6, get_rate_ipg, NULL); | 171 | DEFINE_CLOCK(cspi1_clk, 0, CCM_CGCR1, 5, get_rate_ipg, NULL, NULL); |
161 | DEFINE_CLOCK(cspi3_clk, 0, CCM_CGCR1, 7, get_rate_ipg, NULL); | 172 | DEFINE_CLOCK(cspi2_clk, 0, CCM_CGCR1, 6, get_rate_ipg, NULL, NULL); |
162 | DEFINE_CLOCK(uart1_clk, 0, CCM_CGCR2, 14, get_rate_uart, NULL); | 173 | DEFINE_CLOCK(cspi3_clk, 0, CCM_CGCR1, 7, get_rate_ipg, NULL, NULL); |
163 | DEFINE_CLOCK(uart2_clk, 0, CCM_CGCR2, 15, get_rate_uart, NULL); | 174 | DEFINE_CLOCK(fec_ahb_clk, 0, CCM_CGCR0, 23, NULL, NULL, NULL); |
164 | DEFINE_CLOCK(uart3_clk, 0, CCM_CGCR2, 16, get_rate_uart, NULL); | 175 | DEFINE_CLOCK(lcdc_ahb_clk, 0, CCM_CGCR0, 24, NULL, NULL, NULL); |
165 | DEFINE_CLOCK(uart4_clk, 0, CCM_CGCR2, 17, get_rate_uart, NULL); | 176 | DEFINE_CLOCK(lcdc_per_clk, 0, CCM_CGCR0, 7, NULL, NULL, &lcdc_ahb_clk); |
166 | DEFINE_CLOCK(uart5_clk, 0, CCM_CGCR2, 18, get_rate_uart, NULL); | 177 | DEFINE_CLOCK(uart1_clk, 0, CCM_CGCR2, 14, get_rate_uart, NULL, &uart_per_clk); |
167 | DEFINE_CLOCK(nfc_clk, 0, CCM_CGCR0, 8, get_rate_nfc, NULL); | 178 | DEFINE_CLOCK(uart2_clk, 0, CCM_CGCR2, 15, get_rate_uart, NULL, &uart_per_clk); |
168 | DEFINE_CLOCK(usbotg_clk, 0, CCM_CGCR0, 28, get_rate_otg, NULL); | 179 | DEFINE_CLOCK(uart3_clk, 0, CCM_CGCR2, 16, get_rate_uart, NULL, &uart_per_clk); |
169 | DEFINE_CLOCK(pwm1_clk, 0, CCM_CGCR1, 31, get_rate_ipg, NULL); | 180 | DEFINE_CLOCK(uart4_clk, 0, CCM_CGCR2, 17, get_rate_uart, NULL, &uart_per_clk); |
170 | DEFINE_CLOCK(pwm2_clk, 0, CCM_CGCR2, 0, get_rate_ipg, NULL); | 181 | DEFINE_CLOCK(uart5_clk, 0, CCM_CGCR2, 18, get_rate_uart, NULL, &uart_per_clk); |
171 | DEFINE_CLOCK(pwm3_clk, 0, CCM_CGCR2, 1, get_rate_ipg, NULL); | 182 | DEFINE_CLOCK(nfc_clk, 0, CCM_CGCR0, 8, get_rate_nfc, NULL, NULL); |
172 | DEFINE_CLOCK(pwm4_clk, 0, CCM_CGCR2, 2, get_rate_ipg, NULL); | 183 | DEFINE_CLOCK(usbotg_clk, 0, CCM_CGCR0, 28, get_rate_otg, NULL, NULL); |
173 | DEFINE_CLOCK(kpp_clk, 0, CCM_CGCR1, 28, get_rate_ipg, NULL); | 184 | DEFINE_CLOCK(pwm1_clk, 0, CCM_CGCR1, 31, get_rate_ipg, NULL, NULL); |
174 | DEFINE_CLOCK(tsc_clk, 0, CCM_CGCR2, 13, get_rate_ipg, NULL); | 185 | DEFINE_CLOCK(pwm2_clk, 0, CCM_CGCR2, 0, get_rate_ipg, NULL, NULL); |
175 | DEFINE_CLOCK(i2c_clk, 0, CCM_CGCR0, 6, get_rate_i2c, NULL); | 186 | DEFINE_CLOCK(pwm3_clk, 0, CCM_CGCR2, 1, get_rate_ipg, NULL, NULL); |
176 | DEFINE_CLOCK(fec_clk, 0, CCM_CGCR0, 23, get_rate_ipg, NULL); | 187 | DEFINE_CLOCK(pwm4_clk, 0, CCM_CGCR2, 2, get_rate_ipg, NULL, NULL); |
188 | DEFINE_CLOCK(kpp_clk, 0, CCM_CGCR1, 28, get_rate_ipg, NULL, NULL); | ||
189 | DEFINE_CLOCK(tsc_clk, 0, CCM_CGCR2, 13, get_rate_ipg, NULL, NULL); | ||
190 | DEFINE_CLOCK(i2c_clk, 0, CCM_CGCR0, 6, get_rate_i2c, NULL, NULL); | ||
191 | DEFINE_CLOCK(fec_clk, 0, CCM_CGCR1, 15, get_rate_ipg, NULL, &fec_ahb_clk); | ||
192 | DEFINE_CLOCK(dryice_clk, 0, CCM_CGCR1, 8, get_rate_ipg, NULL, NULL); | ||
193 | DEFINE_CLOCK(lcdc_clk, 0, CCM_CGCR1, 29, get_rate_lcdc, NULL, &lcdc_per_clk); | ||
177 | 194 | ||
178 | #define _REGISTER_CLOCK(d, n, c) \ | 195 | #define _REGISTER_CLOCK(d, n, c) \ |
179 | { \ | 196 | { \ |
@@ -206,15 +223,28 @@ static struct clk_lookup lookups[] = { | |||
206 | _REGISTER_CLOCK("imx-i2c.1", NULL, i2c_clk) | 223 | _REGISTER_CLOCK("imx-i2c.1", NULL, i2c_clk) |
207 | _REGISTER_CLOCK("imx-i2c.2", NULL, i2c_clk) | 224 | _REGISTER_CLOCK("imx-i2c.2", NULL, i2c_clk) |
208 | _REGISTER_CLOCK("fec.0", NULL, fec_clk) | 225 | _REGISTER_CLOCK("fec.0", NULL, fec_clk) |
226 | _REGISTER_CLOCK("imxdi_rtc.0", NULL, dryice_clk) | ||
227 | _REGISTER_CLOCK("imx-fb.0", NULL, lcdc_clk) | ||
209 | }; | 228 | }; |
210 | 229 | ||
211 | int __init mx25_clocks_init(unsigned long fref) | 230 | int __init mx25_clocks_init(void) |
212 | { | 231 | { |
213 | int i; | 232 | int i; |
214 | 233 | ||
215 | for (i = 0; i < ARRAY_SIZE(lookups); i++) | 234 | for (i = 0; i < ARRAY_SIZE(lookups); i++) |
216 | clkdev_add(&lookups[i]); | 235 | clkdev_add(&lookups[i]); |
217 | 236 | ||
237 | /* Turn off all clocks except the ones we need to survive, namely: | ||
238 | * EMI, GPIO1-3 (CCM_CGCR1[18:16]), GPT1, IOMUXC (CCM_CGCR1[27]), IIM, | ||
239 | * SCC | ||
240 | */ | ||
241 | __raw_writel((1 << 19), CRM_BASE + CCM_CGCR0); | ||
242 | __raw_writel((0xf << 16) | (3 << 26), CRM_BASE + CCM_CGCR1); | ||
243 | __raw_writel((1 << 5), CRM_BASE + CCM_CGCR2); | ||
244 | |||
245 | /* Clock source for lcdc is upll */ | ||
246 | __raw_writel(__raw_readl(CRM_BASE+0x64) | (1 << 7), CRM_BASE + 0x64); | ||
247 | |||
218 | mxc_timer_init(&gpt_clk, MX25_IO_ADDRESS(MX25_GPT1_BASE_ADDR), 54); | 248 | mxc_timer_init(&gpt_clk, MX25_IO_ADDRESS(MX25_GPT1_BASE_ADDR), 54); |
219 | 249 | ||
220 | return 0; | 250 | return 0; |
diff --git a/arch/arm/mach-mx25/devices.c b/arch/arm/mach-mx25/devices.c index 9fdeea1c083..3f4b8a0b5fa 100644 --- a/arch/arm/mach-mx25/devices.c +++ b/arch/arm/mach-mx25/devices.c | |||
@@ -438,3 +438,65 @@ struct platform_device mx25_fec_device = { | |||
438 | .num_resources = ARRAY_SIZE(mx25_fec_resources), | 438 | .num_resources = ARRAY_SIZE(mx25_fec_resources), |
439 | .resource = mx25_fec_resources, | 439 | .resource = mx25_fec_resources, |
440 | }; | 440 | }; |
441 | |||
442 | static struct resource mxc_nand_resources[] = { | ||
443 | { | ||
444 | .start = MX25_NFC_BASE_ADDR, | ||
445 | .end = MX25_NFC_BASE_ADDR + 0x1fff, | ||
446 | .flags = IORESOURCE_MEM, | ||
447 | }, | ||
448 | { | ||
449 | .start = MX25_INT_NANDFC, | ||
450 | .end = MX25_INT_NANDFC, | ||
451 | .flags = IORESOURCE_IRQ, | ||
452 | }, | ||
453 | }; | ||
454 | |||
455 | struct platform_device mxc_nand_device = { | ||
456 | .name = "mxc_nand", | ||
457 | .id = 0, | ||
458 | .num_resources = ARRAY_SIZE(mxc_nand_resources), | ||
459 | .resource = mxc_nand_resources, | ||
460 | }; | ||
461 | |||
462 | static struct resource mx25_rtc_resources[] = { | ||
463 | { | ||
464 | .start = MX25_DRYICE_BASE_ADDR, | ||
465 | .end = MX25_DRYICE_BASE_ADDR + 0x40, | ||
466 | .flags = IORESOURCE_MEM, | ||
467 | }, | ||
468 | { | ||
469 | .start = MX25_INT_DRYICE, | ||
470 | .flags = IORESOURCE_IRQ | ||
471 | }, | ||
472 | }; | ||
473 | |||
474 | struct platform_device mx25_rtc_device = { | ||
475 | .name = "imxdi_rtc", | ||
476 | .id = 0, | ||
477 | .num_resources = ARRAY_SIZE(mx25_rtc_resources), | ||
478 | .resource = mx25_rtc_resources, | ||
479 | }; | ||
480 | |||
481 | static struct resource mx25_fb_resources[] = { | ||
482 | { | ||
483 | .start = MX25_LCDC_BASE_ADDR, | ||
484 | .end = MX25_LCDC_BASE_ADDR + 0xfff, | ||
485 | .flags = IORESOURCE_MEM, | ||
486 | }, | ||
487 | { | ||
488 | .start = MX25_INT_LCDC, | ||
489 | .end = MX25_INT_LCDC, | ||
490 | .flags = IORESOURCE_IRQ, | ||
491 | }, | ||
492 | }; | ||
493 | |||
494 | struct platform_device mx25_fb_device = { | ||
495 | .name = "imx-fb", | ||
496 | .id = 0, | ||
497 | .resource = mx25_fb_resources, | ||
498 | .num_resources = ARRAY_SIZE(mx25_fb_resources), | ||
499 | .dev = { | ||
500 | .coherent_dma_mask = 0xFFFFFFFF, | ||
501 | }, | ||
502 | }; | ||
diff --git a/arch/arm/mach-mx25/devices.h b/arch/arm/mach-mx25/devices.h index fe5420fcd11..39560e13bc0 100644 --- a/arch/arm/mach-mx25/devices.h +++ b/arch/arm/mach-mx25/devices.h | |||
@@ -18,3 +18,6 @@ extern struct platform_device mxc_i2c_device0; | |||
18 | extern struct platform_device mxc_i2c_device1; | 18 | extern struct platform_device mxc_i2c_device1; |
19 | extern struct platform_device mxc_i2c_device2; | 19 | extern struct platform_device mxc_i2c_device2; |
20 | extern struct platform_device mx25_fec_device; | 20 | extern struct platform_device mx25_fec_device; |
21 | extern struct platform_device mxc_nand_device; | ||
22 | extern struct platform_device mx25_rtc_device; | ||
23 | extern struct platform_device mx25_fb_device; | ||
diff --git a/arch/arm/mach-mx25/mx25pdk.c b/arch/arm/mach-mx25/mach-mx25pdk.c index 921bc99ea23..83d74109e7d 100644 --- a/arch/arm/mach-mx25/mx25pdk.c +++ b/arch/arm/mach-mx25/mach-mx25pdk.c | |||
@@ -35,8 +35,9 @@ | |||
35 | #include <mach/imx-uart.h> | 35 | #include <mach/imx-uart.h> |
36 | #include <mach/mx25.h> | 36 | #include <mach/mx25.h> |
37 | #include <mach/mxc_nand.h> | 37 | #include <mach/mxc_nand.h> |
38 | #include <mach/imxfb.h> | ||
38 | #include "devices.h" | 39 | #include "devices.h" |
39 | #include <mach/iomux.h> | 40 | #include <mach/iomux-mx25.h> |
40 | 41 | ||
41 | static struct imxuart_platform_data uart_pdata = { | 42 | static struct imxuart_platform_data uart_pdata = { |
42 | .flags = IMXUART_HAVE_RTSCTS, | 43 | .flags = IMXUART_HAVE_RTSCTS, |
@@ -54,6 +55,31 @@ static struct pad_desc mx25pdk_pads[] = { | |||
54 | MX25_PAD_FEC_TX_CLK__FEC_TX_CLK, | 55 | MX25_PAD_FEC_TX_CLK__FEC_TX_CLK, |
55 | MX25_PAD_A17__GPIO_2_3, /* FEC_EN, GPIO 35 */ | 56 | MX25_PAD_A17__GPIO_2_3, /* FEC_EN, GPIO 35 */ |
56 | MX25_PAD_D12__GPIO_4_8, /* FEC_RESET_B, GPIO 104 */ | 57 | MX25_PAD_D12__GPIO_4_8, /* FEC_RESET_B, GPIO 104 */ |
58 | |||
59 | /* LCD */ | ||
60 | MX25_PAD_LD0__LD0, | ||
61 | MX25_PAD_LD1__LD1, | ||
62 | MX25_PAD_LD2__LD2, | ||
63 | MX25_PAD_LD3__LD3, | ||
64 | MX25_PAD_LD4__LD4, | ||
65 | MX25_PAD_LD5__LD5, | ||
66 | MX25_PAD_LD6__LD6, | ||
67 | MX25_PAD_LD7__LD7, | ||
68 | MX25_PAD_LD8__LD8, | ||
69 | MX25_PAD_LD9__LD9, | ||
70 | MX25_PAD_LD10__LD10, | ||
71 | MX25_PAD_LD11__LD11, | ||
72 | MX25_PAD_LD12__LD12, | ||
73 | MX25_PAD_LD13__LD13, | ||
74 | MX25_PAD_LD14__LD14, | ||
75 | MX25_PAD_LD15__LD15, | ||
76 | MX25_PAD_GPIO_E__LD16, | ||
77 | MX25_PAD_GPIO_F__LD17, | ||
78 | MX25_PAD_HSYNC__HSYNC, | ||
79 | MX25_PAD_VSYNC__VSYNC, | ||
80 | MX25_PAD_LSCLK__LSCLK, | ||
81 | MX25_PAD_OE_ACD__OE_ACD, | ||
82 | MX25_PAD_CONTRAST__CONTRAST, | ||
57 | }; | 83 | }; |
58 | 84 | ||
59 | static struct fec_platform_data mx25_fec_pdata = { | 85 | static struct fec_platform_data mx25_fec_pdata = { |
@@ -77,6 +103,40 @@ static void __init mx25pdk_fec_reset(void) | |||
77 | gpio_set_value(FEC_RESET_B_GPIO, 1); | 103 | gpio_set_value(FEC_RESET_B_GPIO, 1); |
78 | } | 104 | } |
79 | 105 | ||
106 | static struct mxc_nand_platform_data mx25pdk_nand_board_info = { | ||
107 | .width = 1, | ||
108 | .hw_ecc = 1, | ||
109 | .flash_bbt = 1, | ||
110 | }; | ||
111 | |||
112 | static struct imx_fb_videomode mx25pdk_modes[] = { | ||
113 | { | ||
114 | .mode = { | ||
115 | .name = "CRT-VGA", | ||
116 | .refresh = 60, | ||
117 | .xres = 640, | ||
118 | .yres = 480, | ||
119 | .pixclock = 39683, | ||
120 | .left_margin = 45, | ||
121 | .right_margin = 114, | ||
122 | .upper_margin = 33, | ||
123 | .lower_margin = 11, | ||
124 | .hsync_len = 1, | ||
125 | .vsync_len = 1, | ||
126 | }, | ||
127 | .bpp = 16, | ||
128 | .pcr = 0xFA208B80, | ||
129 | }, | ||
130 | }; | ||
131 | |||
132 | static struct imx_fb_platform_data mx25pdk_fb_pdata = { | ||
133 | .mode = mx25pdk_modes, | ||
134 | .num_modes = ARRAY_SIZE(mx25pdk_modes), | ||
135 | .pwmr = 0x00A903FF, | ||
136 | .lscr1 = 0x00120300, | ||
137 | .dmacr = 0x00020010, | ||
138 | }; | ||
139 | |||
80 | static void __init mx25pdk_init(void) | 140 | static void __init mx25pdk_init(void) |
81 | { | 141 | { |
82 | mxc_iomux_v3_setup_multiple_pads(mx25pdk_pads, | 142 | mxc_iomux_v3_setup_multiple_pads(mx25pdk_pads, |
@@ -84,6 +144,9 @@ static void __init mx25pdk_init(void) | |||
84 | 144 | ||
85 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | 145 | mxc_register_device(&mxc_uart_device0, &uart_pdata); |
86 | mxc_register_device(&mxc_usbh2, NULL); | 146 | mxc_register_device(&mxc_usbh2, NULL); |
147 | mxc_register_device(&mxc_nand_device, &mx25pdk_nand_board_info); | ||
148 | mxc_register_device(&mx25_rtc_device, NULL); | ||
149 | mxc_register_device(&mx25_fb_device, &mx25pdk_fb_pdata); | ||
87 | 150 | ||
88 | mx25pdk_fec_reset(); | 151 | mx25pdk_fec_reset(); |
89 | mxc_register_device(&mx25_fec_device, &mx25_fec_pdata); | 152 | mxc_register_device(&mx25_fec_device, &mx25_fec_pdata); |
@@ -91,7 +154,7 @@ static void __init mx25pdk_init(void) | |||
91 | 154 | ||
92 | static void __init mx25pdk_timer_init(void) | 155 | static void __init mx25pdk_timer_init(void) |
93 | { | 156 | { |
94 | mx25_clocks_init(26000000); | 157 | mx25_clocks_init(); |
95 | } | 158 | } |
96 | 159 | ||
97 | static struct sys_timer mx25pdk_timer = { | 160 | static struct sys_timer mx25pdk_timer = { |
@@ -102,7 +165,7 @@ MACHINE_START(MX25_3DS, "Freescale MX25PDK (3DS)") | |||
102 | /* Maintainer: Freescale Semiconductor, Inc. */ | 165 | /* Maintainer: Freescale Semiconductor, Inc. */ |
103 | .phys_io = MX25_AIPS1_BASE_ADDR, | 166 | .phys_io = MX25_AIPS1_BASE_ADDR, |
104 | .io_pg_offst = ((MX25_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 167 | .io_pg_offst = ((MX25_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
105 | .boot_params = PHYS_OFFSET + 0x100, | 168 | .boot_params = MX25_PHYS_OFFSET + 0x100, |
106 | .map_io = mx25_map_io, | 169 | .map_io = mx25_map_io, |
107 | .init_irq = mx25_init_irq, | 170 | .init_irq = mx25_init_irq, |
108 | .init_machine = mx25pdk_init, | 171 | .init_machine = mx25pdk_init, |
diff --git a/arch/arm/mach-mx3/Kconfig b/arch/arm/mach-mx3/Kconfig index 28294416b0a..3872af1cf2c 100644 --- a/arch/arm/mach-mx3/Kconfig +++ b/arch/arm/mach-mx3/Kconfig | |||
@@ -34,6 +34,7 @@ config MACH_MX31ADS_WM1133_EV1 | |||
34 | config MACH_PCM037 | 34 | config MACH_PCM037 |
35 | bool "Support Phytec pcm037 (i.MX31) platforms" | 35 | bool "Support Phytec pcm037 (i.MX31) platforms" |
36 | select ARCH_MX31 | 36 | select ARCH_MX31 |
37 | select MXC_ULPI if USB_ULPI | ||
37 | help | 38 | help |
38 | Include support for Phytec pcm037 platform. This includes | 39 | Include support for Phytec pcm037 platform. This includes |
39 | specific configurations for the board and its peripherals. | 40 | specific configurations for the board and its peripherals. |
@@ -86,6 +87,7 @@ config MACH_QONG | |||
86 | config MACH_PCM043 | 87 | config MACH_PCM043 |
87 | bool "Support Phytec pcm043 (i.MX35) platforms" | 88 | bool "Support Phytec pcm043 (i.MX35) platforms" |
88 | select ARCH_MX35 | 89 | select ARCH_MX35 |
90 | select MXC_ULPI if USB_ULPI | ||
89 | help | 91 | help |
90 | Include support for Phytec pcm043 platform. This includes | 92 | Include support for Phytec pcm043 platform. This includes |
91 | specific configurations for the board and its peripherals. | 93 | specific configurations for the board and its peripherals. |
diff --git a/arch/arm/mach-mx3/Makefile b/arch/arm/mach-mx3/Makefile index 93c7b296be6..5d650fda5d5 100644 --- a/arch/arm/mach-mx3/Makefile +++ b/arch/arm/mach-mx3/Makefile | |||
@@ -5,18 +5,22 @@ | |||
5 | # Object file lists. | 5 | # Object file lists. |
6 | 6 | ||
7 | obj-y := mm.o devices.o cpu.o | 7 | obj-y := mm.o devices.o cpu.o |
8 | obj-$(CONFIG_ARCH_MX31) += clock.o iomux.o | 8 | CFLAGS_mm.o = -DIMX_NEEDS_DEPRECATED_SYMBOLS |
9 | CFLAGS_devices.o = -DIMX_NEEDS_DEPRECATED_SYMBOLS | ||
10 | CFLAGS_cpu.o = -DIMX_NEEDS_DEPRECATED_SYMBOLS | ||
11 | obj-$(CONFIG_ARCH_MX31) += clock-imx31.o iomux-imx31.o | ||
9 | obj-$(CONFIG_ARCH_MX35) += clock-imx35.o | 12 | obj-$(CONFIG_ARCH_MX35) += clock-imx35.o |
10 | obj-$(CONFIG_MACH_MX31ADS) += mx31ads.o | 13 | obj-$(CONFIG_MACH_MX31ADS) += mach-mx31ads.o |
11 | obj-$(CONFIG_MACH_MX31LILLY) += mx31lilly.o mx31lilly-db.o | 14 | obj-$(CONFIG_MACH_MX31LILLY) += mach-mx31lilly.o mx31lilly-db.o |
12 | obj-$(CONFIG_MACH_MX31LITE) += mx31lite.o mx31lite-db.o | 15 | obj-$(CONFIG_MACH_MX31LITE) += mach-mx31lite.o mx31lite-db.o |
13 | obj-$(CONFIG_MACH_PCM037) += pcm037.o | 16 | obj-$(CONFIG_MACH_PCM037) += mach-pcm037.o |
14 | obj-$(CONFIG_MACH_PCM037_EET) += pcm037_eet.o | 17 | obj-$(CONFIG_MACH_PCM037_EET) += mach-pcm037_eet.o |
15 | obj-$(CONFIG_MACH_MX31_3DS) += mx31pdk.o | 18 | obj-$(CONFIG_MACH_MX31_3DS) += mach-mx31_3ds.o |
16 | obj-$(CONFIG_MACH_MX31MOBOARD) += mx31moboard.o mx31moboard-devboard.o \ | 19 | CFLAGS_mach-mx31_3ds.o = -DIMX_NEEDS_DEPRECATED_SYMBOLS |
17 | mx31moboard-marxbot.o | 20 | obj-$(CONFIG_MACH_MX31MOBOARD) += mach-mx31moboard.o mx31moboard-devboard.o \ |
18 | obj-$(CONFIG_MACH_QONG) += qong.o | 21 | mx31moboard-marxbot.o mx31moboard-smartbot.o |
19 | obj-$(CONFIG_MACH_PCM043) += pcm043.o | 22 | obj-$(CONFIG_MACH_QONG) += mach-qong.o |
20 | obj-$(CONFIG_MACH_ARMADILLO5X0) += armadillo5x0.o | 23 | obj-$(CONFIG_MACH_PCM043) += mach-pcm043.o |
21 | obj-$(CONFIG_MACH_MX35_3DS) += mx35pdk.o | 24 | obj-$(CONFIG_MACH_ARMADILLO5X0) += mach-armadillo5x0.o |
22 | obj-$(CONFIG_MACH_KZM_ARM11_01) += kzmarm11.o | 25 | obj-$(CONFIG_MACH_MX35_3DS) += mach-mx35pdk.o |
26 | obj-$(CONFIG_MACH_KZM_ARM11_01) += mach-kzm_arm11_01.o | ||
diff --git a/arch/arm/mach-mx3/clock.c b/arch/arm/mach-mx3/clock-imx31.c index 27a318af0d2..d22a66f502a 100644 --- a/arch/arm/mach-mx3/clock.c +++ b/arch/arm/mach-mx3/clock-imx31.c | |||
@@ -618,14 +618,15 @@ int __init mx31_clocks_init(unsigned long fref) | |||
618 | 618 | ||
619 | mx31_read_cpu_rev(); | 619 | mx31_read_cpu_rev(); |
620 | 620 | ||
621 | if (mx31_revision() >= CHIP_REV_2_0) { | 621 | if (mx31_revision() >= MX31_CHIP_REV_2_0) { |
622 | reg = __raw_readl(MXC_CCM_PMCR1); | 622 | reg = __raw_readl(MXC_CCM_PMCR1); |
623 | /* No PLL restart on DVFS switch; enable auto EMI handshake */ | 623 | /* No PLL restart on DVFS switch; enable auto EMI handshake */ |
624 | reg |= MXC_CCM_PMCR1_PLLRDIS | MXC_CCM_PMCR1_EMIRQ_EN; | 624 | reg |= MXC_CCM_PMCR1_PLLRDIS | MXC_CCM_PMCR1_EMIRQ_EN; |
625 | __raw_writel(reg, MXC_CCM_PMCR1); | 625 | __raw_writel(reg, MXC_CCM_PMCR1); |
626 | } | 626 | } |
627 | 627 | ||
628 | mxc_timer_init(&ipg_clk, IO_ADDRESS(GPT1_BASE_ADDR), MXC_INT_GPT); | 628 | mxc_timer_init(&ipg_clk, MX31_IO_ADDRESS(MX31_GPT1_BASE_ADDR), |
629 | MX31_INT_GPT); | ||
629 | 630 | ||
630 | return 0; | 631 | return 0; |
631 | } | 632 | } |
diff --git a/arch/arm/mach-mx3/clock-imx35.c b/arch/arm/mach-mx3/clock-imx35.c index 7584b4c6c55..07d630ebc28 100644 --- a/arch/arm/mach-mx3/clock-imx35.c +++ b/arch/arm/mach-mx3/clock-imx35.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <mach/hardware.h> | 28 | #include <mach/hardware.h> |
29 | #include <mach/common.h> | 29 | #include <mach/common.h> |
30 | 30 | ||
31 | #define CCM_BASE IO_ADDRESS(CCM_BASE_ADDR) | 31 | #define CCM_BASE MX35_IO_ADDRESS(MX35_CCM_BASE_ADDR) |
32 | 32 | ||
33 | #define CCM_CCMR 0x00 | 33 | #define CCM_CCMR 0x00 |
34 | #define CCM_PDR0 0x04 | 34 | #define CCM_PDR0 0x04 |
@@ -504,7 +504,8 @@ int __init mx35_clocks_init() | |||
504 | __raw_writel((3 << 26) | ll, CCM_BASE + CCM_CGR2); | 504 | __raw_writel((3 << 26) | ll, CCM_BASE + CCM_CGR2); |
505 | __raw_writel(0, CCM_BASE + CCM_CGR3); | 505 | __raw_writel(0, CCM_BASE + CCM_CGR3); |
506 | 506 | ||
507 | mxc_timer_init(&gpt_clk, IO_ADDRESS(GPT1_BASE_ADDR), MXC_INT_GPT); | 507 | mxc_timer_init(&gpt_clk, |
508 | MX35_IO_ADDRESS(MX35_GPT1_BASE_ADDR), MX35_INT_GPT); | ||
508 | 509 | ||
509 | return 0; | 510 | return 0; |
510 | } | 511 | } |
diff --git a/arch/arm/mach-mx3/cpu.c b/arch/arm/mach-mx3/cpu.c index db828809c67..861afe0fe3a 100644 --- a/arch/arm/mach-mx3/cpu.c +++ b/arch/arm/mach-mx3/cpu.c | |||
@@ -41,7 +41,7 @@ void __init mx31_read_cpu_rev(void) | |||
41 | u32 i, srev; | 41 | u32 i, srev; |
42 | 42 | ||
43 | /* read SREV register from IIM module */ | 43 | /* read SREV register from IIM module */ |
44 | srev = __raw_readl(IO_ADDRESS(IIM_BASE_ADDR) + MXC_IIMSREV); | 44 | srev = __raw_readl(IO_ADDRESS(IIM_BASE_ADDR + MXC_IIMSREV)); |
45 | 45 | ||
46 | for (i = 0; i < ARRAY_SIZE(mx31_cpu_type); i++) | 46 | for (i = 0; i < ARRAY_SIZE(mx31_cpu_type); i++) |
47 | if (srev == mx31_cpu_type[i].srev) { | 47 | if (srev == mx31_cpu_type[i].srev) { |
diff --git a/arch/arm/mach-mx3/crm_regs.h b/arch/arm/mach-mx3/crm_regs.h index adfa3627ad8..37a8a07beda 100644 --- a/arch/arm/mach-mx3/crm_regs.h +++ b/arch/arm/mach-mx3/crm_regs.h | |||
@@ -24,7 +24,7 @@ | |||
24 | #define CKIH_CLK_FREQ_27MHZ 27000000 | 24 | #define CKIH_CLK_FREQ_27MHZ 27000000 |
25 | #define CKIL_CLK_FREQ 32768 | 25 | #define CKIL_CLK_FREQ 32768 |
26 | 26 | ||
27 | #define MXC_CCM_BASE IO_ADDRESS(CCM_BASE_ADDR) | 27 | #define MXC_CCM_BASE MX31_IO_ADDRESS(MX31_CCM_BASE_ADDR) |
28 | 28 | ||
29 | /* Register addresses */ | 29 | /* Register addresses */ |
30 | #define MXC_CCM_CCMR (MXC_CCM_BASE + 0x00) | 30 | #define MXC_CCM_CCMR (MXC_CCM_BASE + 0x00) |
diff --git a/arch/arm/mach-mx3/iomux.c b/arch/arm/mach-mx3/iomux-imx31.c index c66ccbcdc11..a1d7fa5123d 100644 --- a/arch/arm/mach-mx3/iomux.c +++ b/arch/arm/mach-mx3/iomux-imx31.c | |||
@@ -29,7 +29,7 @@ | |||
29 | /* | 29 | /* |
30 | * IOMUX register (base) addresses | 30 | * IOMUX register (base) addresses |
31 | */ | 31 | */ |
32 | #define IOMUX_BASE IO_ADDRESS(IOMUXC_BASE_ADDR) | 32 | #define IOMUX_BASE MX31_IO_ADDRESS(MX31_IOMUXC_BASE_ADDR) |
33 | #define IOMUXINT_OBS1 (IOMUX_BASE + 0x000) | 33 | #define IOMUXINT_OBS1 (IOMUX_BASE + 0x000) |
34 | #define IOMUXINT_OBS2 (IOMUX_BASE + 0x004) | 34 | #define IOMUXINT_OBS2 (IOMUX_BASE + 0x004) |
35 | #define IOMUXGPR (IOMUX_BASE + 0x008) | 35 | #define IOMUXGPR (IOMUX_BASE + 0x008) |
diff --git a/arch/arm/mach-mx3/armadillo5x0.c b/arch/arm/mach-mx3/mach-armadillo5x0.c index 54aab401dbd..3d72b0b8970 100644 --- a/arch/arm/mach-mx3/armadillo5x0.c +++ b/arch/arm/mach-mx3/mach-armadillo5x0.c | |||
@@ -182,8 +182,8 @@ static struct physmap_flash_data armadillo5x0_nor_flash_pdata = { | |||
182 | 182 | ||
183 | static struct resource armadillo5x0_nor_flash_resource = { | 183 | static struct resource armadillo5x0_nor_flash_resource = { |
184 | .flags = IORESOURCE_MEM, | 184 | .flags = IORESOURCE_MEM, |
185 | .start = CS0_BASE_ADDR, | 185 | .start = MX31_CS0_BASE_ADDR, |
186 | .end = CS0_BASE_ADDR + SZ_64M - 1, | 186 | .end = MX31_CS0_BASE_ADDR + SZ_64M - 1, |
187 | }; | 187 | }; |
188 | 188 | ||
189 | static struct platform_device armadillo5x0_nor_flash = { | 189 | static struct platform_device armadillo5x0_nor_flash = { |
@@ -311,8 +311,8 @@ static struct imxmmc_platform_data sdhc_pdata = { | |||
311 | */ | 311 | */ |
312 | static struct resource armadillo5x0_smc911x_resources[] = { | 312 | static struct resource armadillo5x0_smc911x_resources[] = { |
313 | { | 313 | { |
314 | .start = CS3_BASE_ADDR, | 314 | .start = MX31_CS3_BASE_ADDR, |
315 | .end = CS3_BASE_ADDR + SZ_32M - 1, | 315 | .end = MX31_CS3_BASE_ADDR + SZ_32M - 1, |
316 | .flags = IORESOURCE_MEM, | 316 | .flags = IORESOURCE_MEM, |
317 | }, { | 317 | }, { |
318 | .start = IOMUX_TO_IRQ(MX31_PIN_GPIO1_0), | 318 | .start = IOMUX_TO_IRQ(MX31_PIN_GPIO1_0), |
@@ -406,9 +406,9 @@ static struct sys_timer armadillo5x0_timer = { | |||
406 | 406 | ||
407 | MACHINE_START(ARMADILLO5X0, "Armadillo-500") | 407 | MACHINE_START(ARMADILLO5X0, "Armadillo-500") |
408 | /* Maintainer: Alberto Panizzo */ | 408 | /* Maintainer: Alberto Panizzo */ |
409 | .phys_io = AIPS1_BASE_ADDR, | 409 | .phys_io = MX31_AIPS1_BASE_ADDR, |
410 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 410 | .io_pg_offst = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc, |
411 | .boot_params = PHYS_OFFSET + 0x00000100, | 411 | .boot_params = MX3x_PHYS_OFFSET + 0x100, |
412 | .map_io = mx31_map_io, | 412 | .map_io = mx31_map_io, |
413 | .init_irq = mx31_init_irq, | 413 | .init_irq = mx31_init_irq, |
414 | .timer = &armadillo5x0_timer, | 414 | .timer = &armadillo5x0_timer, |
diff --git a/arch/arm/mach-mx3/kzmarm11.c b/arch/arm/mach-mx3/mach-kzm_arm11_01.c index 6fa99ce3008..f085d5d1a6d 100644 --- a/arch/arm/mach-mx3/kzmarm11.c +++ b/arch/arm/mach-mx3/mach-kzm_arm11_01.c | |||
@@ -46,13 +46,18 @@ | |||
46 | 46 | ||
47 | #include "devices.h" | 47 | #include "devices.h" |
48 | 48 | ||
49 | #define KZM_ARM11_IO_ADDRESS(x) ( \ | ||
50 | IMX_IO_ADDRESS(x, MX31_CS4) ?: \ | ||
51 | IMX_IO_ADDRESS(x, MX31_CS5) ?: \ | ||
52 | MX31_IO_ADDRESS(x)) | ||
53 | |||
49 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) | 54 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) |
50 | /* | 55 | /* |
51 | * KZM-ARM11-01 has an external UART on FPGA | 56 | * KZM-ARM11-01 has an external UART on FPGA |
52 | */ | 57 | */ |
53 | static struct plat_serial8250_port serial_platform_data[] = { | 58 | static struct plat_serial8250_port serial_platform_data[] = { |
54 | { | 59 | { |
55 | .membase = IO_ADDRESS(KZM_ARM11_16550), | 60 | .membase = KZM_ARM11_IO_ADDRESS(KZM_ARM11_16550), |
56 | .mapbase = KZM_ARM11_16550, | 61 | .mapbase = KZM_ARM11_16550, |
57 | .irq = IOMUX_TO_IRQ(MX31_PIN_GPIO1_1), | 62 | .irq = IOMUX_TO_IRQ(MX31_PIN_GPIO1_1), |
58 | .irqflags = IRQ_TYPE_EDGE_RISING, | 63 | .irqflags = IRQ_TYPE_EDGE_RISING, |
@@ -102,9 +107,9 @@ static int __init kzm_init_ext_uart(void) | |||
102 | /* | 107 | /* |
103 | * Unmask UART interrupt | 108 | * Unmask UART interrupt |
104 | */ | 109 | */ |
105 | tmp = __raw_readb(IO_ADDRESS(KZM_ARM11_CTL1)); | 110 | tmp = __raw_readb(KZM_ARM11_IO_ADDRESS(KZM_ARM11_CTL1)); |
106 | tmp |= 0x2; | 111 | tmp |= 0x2; |
107 | __raw_writeb(tmp, IO_ADDRESS(KZM_ARM11_CTL1)); | 112 | __raw_writeb(tmp, KZM_ARM11_IO_ADDRESS(KZM_ARM11_CTL1)); |
108 | 113 | ||
109 | return platform_device_register(&serial_device); | 114 | return platform_device_register(&serial_device); |
110 | } | 115 | } |
@@ -128,8 +133,8 @@ static struct smsc911x_platform_config kzm_smsc9118_config = { | |||
128 | 133 | ||
129 | static struct resource kzm_smsc9118_resources[] = { | 134 | static struct resource kzm_smsc9118_resources[] = { |
130 | { | 135 | { |
131 | .start = CS5_BASE_ADDR, | 136 | .start = MX31_CS5_BASE_ADDR, |
132 | .end = CS5_BASE_ADDR + SZ_128K - 1, | 137 | .end = MX31_CS5_BASE_ADDR + SZ_128K - 1, |
133 | .flags = IORESOURCE_MEM, | 138 | .flags = IORESOURCE_MEM, |
134 | }, | 139 | }, |
135 | { | 140 | { |
@@ -222,15 +227,15 @@ static void __init kzm_board_init(void) | |||
222 | */ | 227 | */ |
223 | static struct map_desc kzm_io_desc[] __initdata = { | 228 | static struct map_desc kzm_io_desc[] __initdata = { |
224 | { | 229 | { |
225 | .virtual = CS4_BASE_ADDR_VIRT, | 230 | .virtual = MX31_CS4_BASE_ADDR_VIRT, |
226 | .pfn = __phys_to_pfn(CS4_BASE_ADDR), | 231 | .pfn = __phys_to_pfn(MX31_CS4_BASE_ADDR), |
227 | .length = CS4_SIZE, | 232 | .length = MX31_CS4_SIZE, |
228 | .type = MT_DEVICE | 233 | .type = MT_DEVICE |
229 | }, | 234 | }, |
230 | { | 235 | { |
231 | .virtual = CS5_BASE_ADDR_VIRT, | 236 | .virtual = MX31_CS5_BASE_ADDR_VIRT, |
232 | .pfn = __phys_to_pfn(CS5_BASE_ADDR), | 237 | .pfn = __phys_to_pfn(MX31_CS5_BASE_ADDR), |
233 | .length = CS5_SIZE, | 238 | .length = MX31_CS5_SIZE, |
234 | .type = MT_DEVICE | 239 | .type = MT_DEVICE |
235 | }, | 240 | }, |
236 | }; | 241 | }; |
@@ -258,9 +263,9 @@ static struct sys_timer kzm_timer = { | |||
258 | * initialize __mach_desc_KZM_ARM11_01 data structure. | 263 | * initialize __mach_desc_KZM_ARM11_01 data structure. |
259 | */ | 264 | */ |
260 | MACHINE_START(KZM_ARM11_01, "Kyoto Microcomputer Co., Ltd. KZM-ARM11-01") | 265 | MACHINE_START(KZM_ARM11_01, "Kyoto Microcomputer Co., Ltd. KZM-ARM11-01") |
261 | .phys_io = AIPS1_BASE_ADDR, | 266 | .phys_io = MX31_AIPS1_BASE_ADDR, |
262 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 267 | .io_pg_offst = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc, |
263 | .boot_params = PHYS_OFFSET + 0x100, | 268 | .boot_params = MX3x_PHYS_OFFSET + 0x100, |
264 | .map_io = kzm_map_io, | 269 | .map_io = kzm_map_io, |
265 | .init_irq = mx31_init_irq, | 270 | .init_irq = mx31_init_irq, |
266 | .init_machine = kzm_board_init, | 271 | .init_machine = kzm_board_init, |
diff --git a/arch/arm/mach-mx3/mx31pdk.c b/arch/arm/mach-mx3/mach-mx31_3ds.c index 18715f1aa7e..b88c18ad769 100644 --- a/arch/arm/mach-mx3/mx31pdk.c +++ b/arch/arm/mach-mx3/mach-mx31_3ds.c | |||
@@ -211,9 +211,9 @@ static int __init mx31pdk_init_expio(void) | |||
211 | */ | 211 | */ |
212 | static struct map_desc mx31pdk_io_desc[] __initdata = { | 212 | static struct map_desc mx31pdk_io_desc[] __initdata = { |
213 | { | 213 | { |
214 | .virtual = CS5_BASE_ADDR_VIRT, | 214 | .virtual = MX31_CS5_BASE_ADDR_VIRT, |
215 | .pfn = __phys_to_pfn(CS5_BASE_ADDR), | 215 | .pfn = __phys_to_pfn(MX31_CS5_BASE_ADDR), |
216 | .length = CS5_SIZE, | 216 | .length = MX31_CS5_SIZE, |
217 | .type = MT_DEVICE, | 217 | .type = MT_DEVICE, |
218 | }, | 218 | }, |
219 | }; | 219 | }; |
@@ -256,9 +256,9 @@ static struct sys_timer mx31pdk_timer = { | |||
256 | */ | 256 | */ |
257 | MACHINE_START(MX31_3DS, "Freescale MX31PDK (3DS)") | 257 | MACHINE_START(MX31_3DS, "Freescale MX31PDK (3DS)") |
258 | /* Maintainer: Freescale Semiconductor, Inc. */ | 258 | /* Maintainer: Freescale Semiconductor, Inc. */ |
259 | .phys_io = AIPS1_BASE_ADDR, | 259 | .phys_io = MX31_AIPS1_BASE_ADDR, |
260 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 260 | .io_pg_offst = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc, |
261 | .boot_params = PHYS_OFFSET + 0x100, | 261 | .boot_params = MX3x_PHYS_OFFSET + 0x100, |
262 | .map_io = mx31pdk_map_io, | 262 | .map_io = mx31pdk_map_io, |
263 | .init_irq = mx31_init_irq, | 263 | .init_irq = mx31_init_irq, |
264 | .init_machine = mxc_board_init, | 264 | .init_machine = mxc_board_init, |
diff --git a/arch/arm/mach-mx3/mx31ads.c b/arch/arm/mach-mx3/mach-mx31ads.c index 3e7bafa2ddb..b3d1a1895c2 100644 --- a/arch/arm/mach-mx3/mx31ads.c +++ b/arch/arm/mach-mx3/mach-mx31ads.c | |||
@@ -60,7 +60,7 @@ | |||
60 | static struct plat_serial8250_port serial_platform_data[] = { | 60 | static struct plat_serial8250_port serial_platform_data[] = { |
61 | { | 61 | { |
62 | .membase = (void *)(PBC_BASE_ADDRESS + PBC_SC16C652_UARTA), | 62 | .membase = (void *)(PBC_BASE_ADDRESS + PBC_SC16C652_UARTA), |
63 | .mapbase = (unsigned long)(CS4_BASE_ADDR + PBC_SC16C652_UARTA), | 63 | .mapbase = (unsigned long)(MX31_CS4_BASE_ADDR + PBC_SC16C652_UARTA), |
64 | .irq = EXPIO_INT_XUART_INTA, | 64 | .irq = EXPIO_INT_XUART_INTA, |
65 | .uartclk = 14745600, | 65 | .uartclk = 14745600, |
66 | .regshift = 0, | 66 | .regshift = 0, |
@@ -68,7 +68,7 @@ static struct plat_serial8250_port serial_platform_data[] = { | |||
68 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_AUTO_IRQ, | 68 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_AUTO_IRQ, |
69 | }, { | 69 | }, { |
70 | .membase = (void *)(PBC_BASE_ADDRESS + PBC_SC16C652_UARTB), | 70 | .membase = (void *)(PBC_BASE_ADDRESS + PBC_SC16C652_UARTB), |
71 | .mapbase = (unsigned long)(CS4_BASE_ADDR + PBC_SC16C652_UARTB), | 71 | .mapbase = (unsigned long)(MX31_CS4_BASE_ADDR + PBC_SC16C652_UARTB), |
72 | .irq = EXPIO_INT_XUART_INTB, | 72 | .irq = EXPIO_INT_XUART_INTB, |
73 | .uartclk = 14745600, | 73 | .uartclk = 14745600, |
74 | .regshift = 0, | 74 | .regshift = 0, |
@@ -173,6 +173,7 @@ static void expio_unmask_irq(u32 irq) | |||
173 | } | 173 | } |
174 | 174 | ||
175 | static struct irq_chip expio_irq_chip = { | 175 | static struct irq_chip expio_irq_chip = { |
176 | .name = "EXPIO(CPLD)", | ||
176 | .ack = expio_ack_irq, | 177 | .ack = expio_ack_irq, |
177 | .mask = expio_mask_irq, | 178 | .mask = expio_mask_irq, |
178 | .unmask = expio_unmask_irq, | 179 | .unmask = expio_unmask_irq, |
@@ -302,17 +303,14 @@ static struct regulator_init_data ldo1_data = { | |||
302 | .min_uV = 2800000, | 303 | .min_uV = 2800000, |
303 | .max_uV = 2800000, | 304 | .max_uV = 2800000, |
304 | .valid_modes_mask = REGULATOR_MODE_NORMAL, | 305 | .valid_modes_mask = REGULATOR_MODE_NORMAL, |
306 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | ||
305 | .apply_uV = 1, | 307 | .apply_uV = 1, |
306 | }, | 308 | }, |
307 | }; | 309 | }; |
308 | 310 | ||
309 | static struct regulator_consumer_supply ldo2_consumers[] = { | 311 | static struct regulator_consumer_supply ldo2_consumers[] = { |
310 | { | 312 | { .supply = "AVDD", .dev_name = "1-001a" }, |
311 | .supply = "AVDD", | 313 | { .supply = "HPVDD", .dev_name = "1-001a" }, |
312 | }, | ||
313 | { | ||
314 | .supply = "HPVDD", | ||
315 | }, | ||
316 | }; | 314 | }; |
317 | 315 | ||
318 | /* CODEC and SIM */ | 316 | /* CODEC and SIM */ |
@@ -322,6 +320,7 @@ static struct regulator_init_data ldo2_data = { | |||
322 | .min_uV = 3300000, | 320 | .min_uV = 3300000, |
323 | .max_uV = 3300000, | 321 | .max_uV = 3300000, |
324 | .valid_modes_mask = REGULATOR_MODE_NORMAL, | 322 | .valid_modes_mask = REGULATOR_MODE_NORMAL, |
323 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | ||
325 | .apply_uV = 1, | 324 | .apply_uV = 1, |
326 | }, | 325 | }, |
327 | .num_consumer_supplies = ARRAY_SIZE(ldo2_consumers), | 326 | .num_consumer_supplies = ARRAY_SIZE(ldo2_consumers), |
@@ -382,8 +381,6 @@ static struct wm8350_audio_platform_data imx32ads_wm8350_setup = { | |||
382 | 381 | ||
383 | static int mx31_wm8350_init(struct wm8350 *wm8350) | 382 | static int mx31_wm8350_init(struct wm8350 *wm8350) |
384 | { | 383 | { |
385 | int i; | ||
386 | |||
387 | wm8350_gpio_config(wm8350, 0, WM8350_GPIO_DIR_IN, | 384 | wm8350_gpio_config(wm8350, 0, WM8350_GPIO_DIR_IN, |
388 | WM8350_GPIO0_PWR_ON_IN, WM8350_GPIO_ACTIVE_LOW, | 385 | WM8350_GPIO0_PWR_ON_IN, WM8350_GPIO_ACTIVE_LOW, |
389 | WM8350_GPIO_PULL_UP, WM8350_GPIO_INVERT_OFF, | 386 | WM8350_GPIO_PULL_UP, WM8350_GPIO_INVERT_OFF, |
@@ -419,10 +416,6 @@ static int mx31_wm8350_init(struct wm8350 *wm8350) | |||
419 | WM8350_GPIO_PULL_NONE, WM8350_GPIO_INVERT_OFF, | 416 | WM8350_GPIO_PULL_NONE, WM8350_GPIO_INVERT_OFF, |
420 | WM8350_GPIO_DEBOUNCE_OFF); | 417 | WM8350_GPIO_DEBOUNCE_OFF); |
421 | 418 | ||
422 | /* Fix up for our own supplies. */ | ||
423 | for (i = 0; i < ARRAY_SIZE(ldo2_consumers); i++) | ||
424 | ldo2_consumers[i].dev = wm8350->dev; | ||
425 | |||
426 | wm8350_register_regulator(wm8350, WM8350_DCDC_1, &sw1a_data); | 419 | wm8350_register_regulator(wm8350, WM8350_DCDC_1, &sw1a_data); |
427 | wm8350_register_regulator(wm8350, WM8350_DCDC_3, &viohi_data); | 420 | wm8350_register_regulator(wm8350, WM8350_DCDC_3, &viohi_data); |
428 | wm8350_register_regulator(wm8350, WM8350_DCDC_4, &violo_data); | 421 | wm8350_register_regulator(wm8350, WM8350_DCDC_4, &violo_data); |
@@ -459,6 +452,7 @@ static int mx31_wm8350_init(struct wm8350 *wm8350) | |||
459 | 452 | ||
460 | static struct wm8350_platform_data __initdata mx31_wm8350_pdata = { | 453 | static struct wm8350_platform_data __initdata mx31_wm8350_pdata = { |
461 | .init = mx31_wm8350_init, | 454 | .init = mx31_wm8350_init, |
455 | .irq_base = MXC_BOARD_IRQ_START + MXC_MAX_EXP_IO_LINES, | ||
462 | }; | 456 | }; |
463 | #endif | 457 | #endif |
464 | 458 | ||
@@ -489,14 +483,27 @@ static void mxc_init_i2c(void) | |||
489 | } | 483 | } |
490 | #endif | 484 | #endif |
491 | 485 | ||
486 | static unsigned int ssi_pins[] = { | ||
487 | MX31_PIN_SFS5__SFS5, | ||
488 | MX31_PIN_SCK5__SCK5, | ||
489 | MX31_PIN_SRXD5__SRXD5, | ||
490 | MX31_PIN_STXD5__STXD5, | ||
491 | }; | ||
492 | |||
493 | static void mxc_init_audio(void) | ||
494 | { | ||
495 | mxc_register_device(&imx_ssi_device0, NULL); | ||
496 | mxc_iomux_setup_multiple_pins(ssi_pins, ARRAY_SIZE(ssi_pins), "ssi"); | ||
497 | } | ||
498 | |||
492 | /*! | 499 | /*! |
493 | * This structure defines static mappings for the i.MX31ADS board. | 500 | * This structure defines static mappings for the i.MX31ADS board. |
494 | */ | 501 | */ |
495 | static struct map_desc mx31ads_io_desc[] __initdata = { | 502 | static struct map_desc mx31ads_io_desc[] __initdata = { |
496 | { | 503 | { |
497 | .virtual = CS4_BASE_ADDR_VIRT, | 504 | .virtual = MX31_CS4_BASE_ADDR_VIRT, |
498 | .pfn = __phys_to_pfn(CS4_BASE_ADDR), | 505 | .pfn = __phys_to_pfn(MX31_CS4_BASE_ADDR), |
499 | .length = CS4_SIZE / 2, | 506 | .length = MX31_CS4_SIZE / 2, |
500 | .type = MT_DEVICE | 507 | .type = MT_DEVICE |
501 | }, | 508 | }, |
502 | }; | 509 | }; |
@@ -524,6 +531,7 @@ static void __init mxc_board_init(void) | |||
524 | mxc_init_extuart(); | 531 | mxc_init_extuart(); |
525 | mxc_init_imx_uart(); | 532 | mxc_init_imx_uart(); |
526 | mxc_init_i2c(); | 533 | mxc_init_i2c(); |
534 | mxc_init_audio(); | ||
527 | } | 535 | } |
528 | 536 | ||
529 | static void __init mx31ads_timer_init(void) | 537 | static void __init mx31ads_timer_init(void) |
@@ -541,9 +549,9 @@ static struct sys_timer mx31ads_timer = { | |||
541 | */ | 549 | */ |
542 | MACHINE_START(MX31ADS, "Freescale MX31ADS") | 550 | MACHINE_START(MX31ADS, "Freescale MX31ADS") |
543 | /* Maintainer: Freescale Semiconductor, Inc. */ | 551 | /* Maintainer: Freescale Semiconductor, Inc. */ |
544 | .phys_io = AIPS1_BASE_ADDR, | 552 | .phys_io = MX31_AIPS1_BASE_ADDR, |
545 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 553 | .io_pg_offst = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc, |
546 | .boot_params = PHYS_OFFSET + 0x100, | 554 | .boot_params = MX3x_PHYS_OFFSET + 0x100, |
547 | .map_io = mx31ads_map_io, | 555 | .map_io = mx31ads_map_io, |
548 | .init_irq = mx31ads_init_irq, | 556 | .init_irq = mx31ads_init_irq, |
549 | .init_machine = mxc_board_init, | 557 | .init_machine = mxc_board_init, |
diff --git a/arch/arm/mach-mx3/mx31lilly.c b/arch/arm/mach-mx3/mach-mx31lilly.c index 9ce029f554b..80847b04c06 100644 --- a/arch/arm/mach-mx3/mx31lilly.c +++ b/arch/arm/mach-mx3/mach-mx31lilly.c | |||
@@ -57,8 +57,8 @@ | |||
57 | 57 | ||
58 | static struct resource smsc91x_resources[] = { | 58 | static struct resource smsc91x_resources[] = { |
59 | { | 59 | { |
60 | .start = CS4_BASE_ADDR, | 60 | .start = MX31_CS4_BASE_ADDR, |
61 | .end = CS4_BASE_ADDR + 0xffff, | 61 | .end = MX31_CS4_BASE_ADDR + 0xffff, |
62 | .flags = IORESOURCE_MEM, | 62 | .flags = IORESOURCE_MEM, |
63 | }, | 63 | }, |
64 | { | 64 | { |
@@ -195,9 +195,9 @@ static struct sys_timer mx31lilly_timer = { | |||
195 | }; | 195 | }; |
196 | 196 | ||
197 | MACHINE_START(LILLY1131, "INCO startec LILLY-1131") | 197 | MACHINE_START(LILLY1131, "INCO startec LILLY-1131") |
198 | .phys_io = AIPS1_BASE_ADDR, | 198 | .phys_io = MX31_AIPS1_BASE_ADDR, |
199 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 199 | .io_pg_offst = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc, |
200 | .boot_params = PHYS_OFFSET + 0x100, | 200 | .boot_params = MX3x_PHYS_OFFSET + 0x100, |
201 | .map_io = mx31_map_io, | 201 | .map_io = mx31_map_io, |
202 | .init_irq = mx31_init_irq, | 202 | .init_irq = mx31_init_irq, |
203 | .init_machine = mx31lilly_board_init, | 203 | .init_machine = mx31lilly_board_init, |
diff --git a/arch/arm/mach-mx3/mx31lite.c b/arch/arm/mach-mx3/mach-mx31lite.c index 789b20d1730..2b6d1140087 100644 --- a/arch/arm/mach-mx3/mx31lite.c +++ b/arch/arm/mach-mx3/mach-mx31lite.c | |||
@@ -82,8 +82,8 @@ static struct smsc911x_platform_config smsc911x_config = { | |||
82 | 82 | ||
83 | static struct resource smsc911x_resources[] = { | 83 | static struct resource smsc911x_resources[] = { |
84 | { | 84 | { |
85 | .start = CS4_BASE_ADDR, | 85 | .start = MX31_CS4_BASE_ADDR, |
86 | .end = CS4_BASE_ADDR + 0x100, | 86 | .end = MX31_CS4_BASE_ADDR + 0x100, |
87 | .flags = IORESOURCE_MEM, | 87 | .flags = IORESOURCE_MEM, |
88 | }, { | 88 | }, { |
89 | .start = IOMUX_TO_IRQ(MX31_PIN_SFS6), | 89 | .start = IOMUX_TO_IRQ(MX31_PIN_SFS6), |
@@ -214,9 +214,9 @@ static struct platform_device physmap_flash_device = { | |||
214 | */ | 214 | */ |
215 | static struct map_desc mx31lite_io_desc[] __initdata = { | 215 | static struct map_desc mx31lite_io_desc[] __initdata = { |
216 | { | 216 | { |
217 | .virtual = CS4_BASE_ADDR_VIRT, | 217 | .virtual = MX31_CS4_BASE_ADDR_VIRT, |
218 | .pfn = __phys_to_pfn(CS4_BASE_ADDR), | 218 | .pfn = __phys_to_pfn(MX31_CS4_BASE_ADDR), |
219 | .length = CS4_SIZE, | 219 | .length = MX31_CS4_SIZE, |
220 | .type = MT_DEVICE | 220 | .type = MT_DEVICE |
221 | } | 221 | } |
222 | }; | 222 | }; |
@@ -287,9 +287,9 @@ struct sys_timer mx31lite_timer = { | |||
287 | 287 | ||
288 | MACHINE_START(MX31LITE, "LogicPD i.MX31 SOM") | 288 | MACHINE_START(MX31LITE, "LogicPD i.MX31 SOM") |
289 | /* Maintainer: Freescale Semiconductor, Inc. */ | 289 | /* Maintainer: Freescale Semiconductor, Inc. */ |
290 | .phys_io = AIPS1_BASE_ADDR, | 290 | .phys_io = MX31_AIPS1_BASE_ADDR, |
291 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 291 | .io_pg_offst = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc, |
292 | .boot_params = PHYS_OFFSET + 0x100, | 292 | .boot_params = MX3x_PHYS_OFFSET + 0x100, |
293 | .map_io = mx31lite_map_io, | 293 | .map_io = mx31lite_map_io, |
294 | .init_irq = mx31_init_irq, | 294 | .init_irq = mx31_init_irq, |
295 | .init_machine = mxc_board_init, | 295 | .init_machine = mxc_board_init, |
diff --git a/arch/arm/mach-mx3/mx31moboard.c b/arch/arm/mach-mx3/mach-mx31moboard.c index cfd605d078e..a7dc5191bf5 100644 --- a/arch/arm/mach-mx3/mx31moboard.c +++ b/arch/arm/mach-mx3/mach-mx31moboard.c | |||
@@ -96,9 +96,6 @@ static unsigned int moboard_pins[] = { | |||
96 | /* LEDs */ | 96 | /* LEDs */ |
97 | MX31_PIN_SVEN0__GPIO2_0, MX31_PIN_STX0__GPIO2_1, | 97 | MX31_PIN_SVEN0__GPIO2_0, MX31_PIN_STX0__GPIO2_1, |
98 | MX31_PIN_SRX0__GPIO2_2, MX31_PIN_SIMPD0__GPIO2_3, | 98 | MX31_PIN_SRX0__GPIO2_2, MX31_PIN_SIMPD0__GPIO2_3, |
99 | /* SEL */ | ||
100 | MX31_PIN_DTR_DCE1__GPIO2_8, MX31_PIN_DSR_DCE1__GPIO2_9, | ||
101 | MX31_PIN_RI_DCE1__GPIO2_10, MX31_PIN_DCD_DCE1__GPIO2_11, | ||
102 | /* SPI1 */ | 99 | /* SPI1 */ |
103 | MX31_PIN_CSPI2_MOSI__MOSI, MX31_PIN_CSPI2_MISO__MISO, | 100 | MX31_PIN_CSPI2_MOSI__MOSI, MX31_PIN_CSPI2_MISO__MISO, |
104 | MX31_PIN_CSPI2_SCLK__SCLK, MX31_PIN_CSPI2_SPI_RDY__SPI_RDY, | 101 | MX31_PIN_CSPI2_SCLK__SCLK, MX31_PIN_CSPI2_SPI_RDY__SPI_RDY, |
@@ -352,9 +349,7 @@ static struct fsl_usb2_platform_data usb_pdata = { | |||
352 | 349 | ||
353 | static int moboard_usbh2_hw_init(struct platform_device *pdev) | 350 | static int moboard_usbh2_hw_init(struct platform_device *pdev) |
354 | { | 351 | { |
355 | int ret = gpio_request(USBH2_EN_B, "usbh2-en"); | 352 | int ret; |
356 | if (ret) | ||
357 | return ret; | ||
358 | 353 | ||
359 | mxc_iomux_set_gpr(MUX_PGP_UH2, true); | 354 | mxc_iomux_set_gpr(MUX_PGP_UH2, true); |
360 | 355 | ||
@@ -371,6 +366,9 @@ static int moboard_usbh2_hw_init(struct platform_device *pdev) | |||
371 | mxc_iomux_set_pad(MX31_PIN_SRXD3, USB_PAD_CFG); | 366 | mxc_iomux_set_pad(MX31_PIN_SRXD3, USB_PAD_CFG); |
372 | mxc_iomux_set_pad(MX31_PIN_STXD3, USB_PAD_CFG); | 367 | mxc_iomux_set_pad(MX31_PIN_STXD3, USB_PAD_CFG); |
373 | 368 | ||
369 | ret = gpio_request(USBH2_EN_B, "usbh2-en"); | ||
370 | if (ret) | ||
371 | return ret; | ||
374 | gpio_direction_output(USBH2_EN_B, 0); | 372 | gpio_direction_output(USBH2_EN_B, 0); |
375 | 373 | ||
376 | return 0; | 374 | return 0; |
@@ -431,34 +429,6 @@ static struct platform_device mx31moboard_leds_device = { | |||
431 | }, | 429 | }, |
432 | }; | 430 | }; |
433 | 431 | ||
434 | #define SEL0 IOMUX_TO_GPIO(MX31_PIN_DTR_DCE1) | ||
435 | #define SEL1 IOMUX_TO_GPIO(MX31_PIN_DSR_DCE1) | ||
436 | #define SEL2 IOMUX_TO_GPIO(MX31_PIN_RI_DCE1) | ||
437 | #define SEL3 IOMUX_TO_GPIO(MX31_PIN_DCD_DCE1) | ||
438 | |||
439 | static void mx31moboard_init_sel_gpios(void) | ||
440 | { | ||
441 | if (!gpio_request(SEL0, "sel0")) { | ||
442 | gpio_direction_input(SEL0); | ||
443 | gpio_export(SEL0, true); | ||
444 | } | ||
445 | |||
446 | if (!gpio_request(SEL1, "sel1")) { | ||
447 | gpio_direction_input(SEL1); | ||
448 | gpio_export(SEL1, true); | ||
449 | } | ||
450 | |||
451 | if (!gpio_request(SEL2, "sel2")) { | ||
452 | gpio_direction_input(SEL2); | ||
453 | gpio_export(SEL2, true); | ||
454 | } | ||
455 | |||
456 | if (!gpio_request(SEL3, "sel3")) { | ||
457 | gpio_direction_input(SEL3); | ||
458 | gpio_export(SEL3, true); | ||
459 | } | ||
460 | } | ||
461 | |||
462 | static struct ipu_platform_data mx3_ipu_data = { | 432 | static struct ipu_platform_data mx3_ipu_data = { |
463 | .irq_base = MXC_IPU_IRQ_START, | 433 | .irq_base = MXC_IPU_IRQ_START, |
464 | }; | 434 | }; |
@@ -518,8 +488,6 @@ static void __init mxc_board_init(void) | |||
518 | 488 | ||
519 | mxc_register_device(&mxc_uart_device4, &uart4_pdata); | 489 | mxc_register_device(&mxc_uart_device4, &uart4_pdata); |
520 | 490 | ||
521 | mx31moboard_init_sel_gpios(); | ||
522 | |||
523 | mxc_register_device(&mxc_i2c_device0, &moboard_i2c0_pdata); | 491 | mxc_register_device(&mxc_i2c_device0, &moboard_i2c0_pdata); |
524 | mxc_register_device(&mxc_i2c_device1, &moboard_i2c1_pdata); | 492 | mxc_register_device(&mxc_i2c_device1, &moboard_i2c1_pdata); |
525 | 493 | ||
@@ -552,6 +520,9 @@ static void __init mxc_board_init(void) | |||
552 | case MX31MARXBOT: | 520 | case MX31MARXBOT: |
553 | mx31moboard_marxbot_init(); | 521 | mx31moboard_marxbot_init(); |
554 | break; | 522 | break; |
523 | case MX31SMARTBOT: | ||
524 | mx31moboard_smartbot_init(); | ||
525 | break; | ||
555 | default: | 526 | default: |
556 | printk(KERN_ERR "Illegal mx31moboard_baseboard type %d\n", | 527 | printk(KERN_ERR "Illegal mx31moboard_baseboard type %d\n", |
557 | mx31moboard_baseboard); | 528 | mx31moboard_baseboard); |
@@ -569,9 +540,9 @@ struct sys_timer mx31moboard_timer = { | |||
569 | 540 | ||
570 | MACHINE_START(MX31MOBOARD, "EPFL Mobots mx31moboard") | 541 | MACHINE_START(MX31MOBOARD, "EPFL Mobots mx31moboard") |
571 | /* Maintainer: Valentin Longchamp, EPFL Mobots group */ | 542 | /* Maintainer: Valentin Longchamp, EPFL Mobots group */ |
572 | .phys_io = AIPS1_BASE_ADDR, | 543 | .phys_io = MX31_AIPS1_BASE_ADDR, |
573 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 544 | .io_pg_offst = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc, |
574 | .boot_params = PHYS_OFFSET + 0x100, | 545 | .boot_params = MX3x_PHYS_OFFSET + 0x100, |
575 | .map_io = mx31_map_io, | 546 | .map_io = mx31_map_io, |
576 | .init_irq = mx31_init_irq, | 547 | .init_irq = mx31_init_irq, |
577 | .init_machine = mxc_board_init, | 548 | .init_machine = mxc_board_init, |
diff --git a/arch/arm/mach-mx3/mx35pdk.c b/arch/arm/mach-mx3/mach-mx35pdk.c index 0bbc65ea23c..bcac84d4dca 100644 --- a/arch/arm/mach-mx3/mx35pdk.c +++ b/arch/arm/mach-mx3/mach-mx35pdk.c | |||
@@ -106,9 +106,9 @@ struct sys_timer mx35pdk_timer = { | |||
106 | 106 | ||
107 | MACHINE_START(MX35_3DS, "Freescale MX35PDK") | 107 | MACHINE_START(MX35_3DS, "Freescale MX35PDK") |
108 | /* Maintainer: Freescale Semiconductor, Inc */ | 108 | /* Maintainer: Freescale Semiconductor, Inc */ |
109 | .phys_io = AIPS1_BASE_ADDR, | 109 | .phys_io = MX35_AIPS1_BASE_ADDR, |
110 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 110 | .io_pg_offst = ((MX35_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
111 | .boot_params = PHYS_OFFSET + 0x100, | 111 | .boot_params = MX3x_PHYS_OFFSET + 0x100, |
112 | .map_io = mx35_map_io, | 112 | .map_io = mx35_map_io, |
113 | .init_irq = mx35_init_irq, | 113 | .init_irq = mx35_init_irq, |
114 | .init_machine = mxc_board_init, | 114 | .init_machine = mxc_board_init, |
diff --git a/arch/arm/mach-mx3/pcm037.c b/arch/arm/mach-mx3/mach-pcm037.c index 5be396917c9..11f53155916 100644 --- a/arch/arm/mach-mx3/pcm037.c +++ b/arch/arm/mach-mx3/mach-pcm037.c | |||
@@ -33,6 +33,9 @@ | |||
33 | #include <linux/irq.h> | 33 | #include <linux/irq.h> |
34 | #include <linux/fsl_devices.h> | 34 | #include <linux/fsl_devices.h> |
35 | #include <linux/can/platform/sja1000.h> | 35 | #include <linux/can/platform/sja1000.h> |
36 | #include <linux/usb/otg.h> | ||
37 | #include <linux/usb/ulpi.h> | ||
38 | #include <linux/fsl_devices.h> | ||
36 | 39 | ||
37 | #include <media/soc_camera.h> | 40 | #include <media/soc_camera.h> |
38 | 41 | ||
@@ -51,6 +54,8 @@ | |||
51 | #include <mach/mx3_camera.h> | 54 | #include <mach/mx3_camera.h> |
52 | #include <mach/mx3fb.h> | 55 | #include <mach/mx3fb.h> |
53 | #include <mach/mxc_nand.h> | 56 | #include <mach/mxc_nand.h> |
57 | #include <mach/mxc_ehci.h> | ||
58 | #include <mach/ulpi.h> | ||
54 | 59 | ||
55 | #include "devices.h" | 60 | #include "devices.h" |
56 | #include "pcm037.h" | 61 | #include "pcm037.h" |
@@ -172,19 +177,7 @@ static unsigned int pcm037_pins[] = { | |||
172 | MX31_PIN_CSI_VSYNC__CSI_VSYNC, | 177 | MX31_PIN_CSI_VSYNC__CSI_VSYNC, |
173 | /* GPIO */ | 178 | /* GPIO */ |
174 | IOMUX_MODE(MX31_PIN_ATA_DMACK, IOMUX_CONFIG_GPIO), | 179 | IOMUX_MODE(MX31_PIN_ATA_DMACK, IOMUX_CONFIG_GPIO), |
175 | }; | 180 | /* OTG */ |
176 | |||
177 | static struct physmap_flash_data pcm037_flash_data = { | ||
178 | .width = 2, | ||
179 | }; | ||
180 | |||
181 | static struct resource pcm037_flash_resource = { | ||
182 | .start = 0xa0000000, | ||
183 | .end = 0xa1ffffff, | ||
184 | .flags = IORESOURCE_MEM, | ||
185 | }; | ||
186 | |||
187 | static int usbotg_pins[] = { | ||
188 | MX31_PIN_USBOTG_DATA0__USBOTG_DATA0, | 181 | MX31_PIN_USBOTG_DATA0__USBOTG_DATA0, |
189 | MX31_PIN_USBOTG_DATA1__USBOTG_DATA1, | 182 | MX31_PIN_USBOTG_DATA1__USBOTG_DATA1, |
190 | MX31_PIN_USBOTG_DATA2__USBOTG_DATA2, | 183 | MX31_PIN_USBOTG_DATA2__USBOTG_DATA2, |
@@ -197,39 +190,29 @@ static int usbotg_pins[] = { | |||
197 | MX31_PIN_USBOTG_DIR__USBOTG_DIR, | 190 | MX31_PIN_USBOTG_DIR__USBOTG_DIR, |
198 | MX31_PIN_USBOTG_NXT__USBOTG_NXT, | 191 | MX31_PIN_USBOTG_NXT__USBOTG_NXT, |
199 | MX31_PIN_USBOTG_STP__USBOTG_STP, | 192 | MX31_PIN_USBOTG_STP__USBOTG_STP, |
193 | /* USB host 2 */ | ||
194 | IOMUX_MODE(MX31_PIN_USBH2_CLK, IOMUX_CONFIG_FUNC), | ||
195 | IOMUX_MODE(MX31_PIN_USBH2_DIR, IOMUX_CONFIG_FUNC), | ||
196 | IOMUX_MODE(MX31_PIN_USBH2_NXT, IOMUX_CONFIG_FUNC), | ||
197 | IOMUX_MODE(MX31_PIN_USBH2_STP, IOMUX_CONFIG_FUNC), | ||
198 | IOMUX_MODE(MX31_PIN_USBH2_DATA0, IOMUX_CONFIG_FUNC), | ||
199 | IOMUX_MODE(MX31_PIN_USBH2_DATA1, IOMUX_CONFIG_FUNC), | ||
200 | IOMUX_MODE(MX31_PIN_STXD3, IOMUX_CONFIG_FUNC), | ||
201 | IOMUX_MODE(MX31_PIN_SRXD3, IOMUX_CONFIG_FUNC), | ||
202 | IOMUX_MODE(MX31_PIN_SCK3, IOMUX_CONFIG_FUNC), | ||
203 | IOMUX_MODE(MX31_PIN_SFS3, IOMUX_CONFIG_FUNC), | ||
204 | IOMUX_MODE(MX31_PIN_STXD6, IOMUX_CONFIG_FUNC), | ||
205 | IOMUX_MODE(MX31_PIN_SRXD6, IOMUX_CONFIG_FUNC), | ||
200 | }; | 206 | }; |
201 | 207 | ||
202 | /* USB OTG HS port */ | 208 | static struct physmap_flash_data pcm037_flash_data = { |
203 | static int __init gpio_usbotg_hs_activate(void) | 209 | .width = 2, |
204 | { | 210 | }; |
205 | int ret = mxc_iomux_setup_multiple_pins(usbotg_pins, | ||
206 | ARRAY_SIZE(usbotg_pins), "usbotg"); | ||
207 | |||
208 | if (ret < 0) { | ||
209 | printk(KERN_ERR "Cannot set up OTG pins\n"); | ||
210 | return ret; | ||
211 | } | ||
212 | |||
213 | mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA0, PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST); | ||
214 | mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA1, PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST); | ||
215 | mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA2, PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST); | ||
216 | mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA3, PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST); | ||
217 | mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA4, PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST); | ||
218 | mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA5, PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST); | ||
219 | mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA6, PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST); | ||
220 | mxc_iomux_set_pad(MX31_PIN_USBOTG_DATA7, PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST); | ||
221 | mxc_iomux_set_pad(MX31_PIN_USBOTG_CLK, PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST); | ||
222 | mxc_iomux_set_pad(MX31_PIN_USBOTG_DIR, PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST); | ||
223 | mxc_iomux_set_pad(MX31_PIN_USBOTG_NXT, PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST); | ||
224 | mxc_iomux_set_pad(MX31_PIN_USBOTG_STP, PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST); | ||
225 | |||
226 | return 0; | ||
227 | } | ||
228 | 211 | ||
229 | /* OTG config */ | 212 | static struct resource pcm037_flash_resource = { |
230 | static struct fsl_usb2_platform_data usb_pdata = { | 213 | .start = 0xa0000000, |
231 | .operating_mode = FSL_USB2_DR_DEVICE, | 214 | .end = 0xa1ffffff, |
232 | .phy_mode = FSL_USB2_PHY_ULPI, | 215 | .flags = IORESOURCE_MEM, |
233 | }; | 216 | }; |
234 | 217 | ||
235 | static struct platform_device pcm037_flash = { | 218 | static struct platform_device pcm037_flash = { |
@@ -248,8 +231,8 @@ static struct imxuart_platform_data uart_pdata = { | |||
248 | 231 | ||
249 | static struct resource smsc911x_resources[] = { | 232 | static struct resource smsc911x_resources[] = { |
250 | { | 233 | { |
251 | .start = CS1_BASE_ADDR + 0x300, | 234 | .start = MX31_CS1_BASE_ADDR + 0x300, |
252 | .end = CS1_BASE_ADDR + 0x300 + SZ_64K - 1, | 235 | .end = MX31_CS1_BASE_ADDR + 0x300 + SZ_64K - 1, |
253 | .flags = IORESOURCE_MEM, | 236 | .flags = IORESOURCE_MEM, |
254 | }, { | 237 | }, { |
255 | .start = IOMUX_TO_IRQ(MX31_PIN_GPIO3_1), | 238 | .start = IOMUX_TO_IRQ(MX31_PIN_GPIO3_1), |
@@ -281,8 +264,8 @@ static struct platdata_mtd_ram pcm038_sram_data = { | |||
281 | }; | 264 | }; |
282 | 265 | ||
283 | static struct resource pcm038_sram_resource = { | 266 | static struct resource pcm038_sram_resource = { |
284 | .start = CS4_BASE_ADDR, | 267 | .start = MX31_CS4_BASE_ADDR, |
285 | .end = CS4_BASE_ADDR + 512 * 1024 - 1, | 268 | .end = MX31_CS4_BASE_ADDR + 512 * 1024 - 1, |
286 | .flags = IORESOURCE_MEM, | 269 | .flags = IORESOURCE_MEM, |
287 | }; | 270 | }; |
288 | 271 | ||
@@ -536,8 +519,8 @@ static struct mx3fb_platform_data mx3fb_pdata = { | |||
536 | 519 | ||
537 | static struct resource pcm970_sja1000_resources[] = { | 520 | static struct resource pcm970_sja1000_resources[] = { |
538 | { | 521 | { |
539 | .start = CS5_BASE_ADDR, | 522 | .start = MX31_CS5_BASE_ADDR, |
540 | .end = CS5_BASE_ADDR + 0x100 - 1, | 523 | .end = MX31_CS5_BASE_ADDR + 0x100 - 1, |
541 | .flags = IORESOURCE_MEM, | 524 | .flags = IORESOURCE_MEM, |
542 | }, { | 525 | }, { |
543 | .start = IOMUX_TO_IRQ(IOMUX_PIN(48, 105)), | 526 | .start = IOMUX_TO_IRQ(IOMUX_PIN(48, 105)), |
@@ -561,16 +544,65 @@ static struct platform_device pcm970_sja1000 = { | |||
561 | .num_resources = ARRAY_SIZE(pcm970_sja1000_resources), | 544 | .num_resources = ARRAY_SIZE(pcm970_sja1000_resources), |
562 | }; | 545 | }; |
563 | 546 | ||
547 | static struct mxc_usbh_platform_data otg_pdata = { | ||
548 | .portsc = MXC_EHCI_MODE_ULPI, | ||
549 | .flags = MXC_EHCI_INTERFACE_DIFF_UNI, | ||
550 | }; | ||
551 | |||
552 | static struct mxc_usbh_platform_data usbh2_pdata = { | ||
553 | .portsc = MXC_EHCI_MODE_ULPI, | ||
554 | .flags = MXC_EHCI_INTERFACE_DIFF_UNI, | ||
555 | }; | ||
556 | |||
557 | static struct fsl_usb2_platform_data otg_device_pdata = { | ||
558 | .operating_mode = FSL_USB2_DR_DEVICE, | ||
559 | .phy_mode = FSL_USB2_PHY_ULPI, | ||
560 | }; | ||
561 | |||
562 | static int otg_mode_host; | ||
563 | |||
564 | static int __init pcm037_otg_mode(char *options) | ||
565 | { | ||
566 | if (!strcmp(options, "host")) | ||
567 | otg_mode_host = 1; | ||
568 | else if (!strcmp(options, "device")) | ||
569 | otg_mode_host = 0; | ||
570 | else | ||
571 | pr_info("otg_mode neither \"host\" nor \"device\". " | ||
572 | "Defaulting to device\n"); | ||
573 | return 0; | ||
574 | } | ||
575 | __setup("otg_mode=", pcm037_otg_mode); | ||
576 | |||
564 | /* | 577 | /* |
565 | * Board specific initialization. | 578 | * Board specific initialization. |
566 | */ | 579 | */ |
567 | static void __init mxc_board_init(void) | 580 | static void __init mxc_board_init(void) |
568 | { | 581 | { |
569 | int ret; | 582 | int ret; |
583 | u32 tmp; | ||
584 | |||
585 | mxc_iomux_set_gpr(MUX_PGP_UH2, 1); | ||
570 | 586 | ||
571 | mxc_iomux_setup_multiple_pins(pcm037_pins, ARRAY_SIZE(pcm037_pins), | 587 | mxc_iomux_setup_multiple_pins(pcm037_pins, ARRAY_SIZE(pcm037_pins), |
572 | "pcm037"); | 588 | "pcm037"); |
573 | 589 | ||
590 | #define H2_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS \ | ||
591 | | PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU) | ||
592 | |||
593 | mxc_iomux_set_pad(MX31_PIN_USBH2_CLK, H2_PAD_CFG); | ||
594 | mxc_iomux_set_pad(MX31_PIN_USBH2_DIR, H2_PAD_CFG); | ||
595 | mxc_iomux_set_pad(MX31_PIN_USBH2_NXT, H2_PAD_CFG); | ||
596 | mxc_iomux_set_pad(MX31_PIN_USBH2_STP, H2_PAD_CFG); | ||
597 | mxc_iomux_set_pad(MX31_PIN_USBH2_DATA0, H2_PAD_CFG); /* USBH2_DATA0 */ | ||
598 | mxc_iomux_set_pad(MX31_PIN_USBH2_DATA1, H2_PAD_CFG); /* USBH2_DATA1 */ | ||
599 | mxc_iomux_set_pad(MX31_PIN_SRXD6, H2_PAD_CFG); /* USBH2_DATA2 */ | ||
600 | mxc_iomux_set_pad(MX31_PIN_STXD6, H2_PAD_CFG); /* USBH2_DATA3 */ | ||
601 | mxc_iomux_set_pad(MX31_PIN_SFS3, H2_PAD_CFG); /* USBH2_DATA4 */ | ||
602 | mxc_iomux_set_pad(MX31_PIN_SCK3, H2_PAD_CFG); /* USBH2_DATA5 */ | ||
603 | mxc_iomux_set_pad(MX31_PIN_SRXD3, H2_PAD_CFG); /* USBH2_DATA6 */ | ||
604 | mxc_iomux_set_pad(MX31_PIN_STXD3, H2_PAD_CFG); /* USBH2_DATA7 */ | ||
605 | |||
574 | if (pcm037_variant() == PCM037_EET) | 606 | if (pcm037_variant() == PCM037_EET) |
575 | mxc_iomux_setup_multiple_pins(pcm037_uart1_pins, | 607 | mxc_iomux_setup_multiple_pins(pcm037_uart1_pins, |
576 | ARRAY_SIZE(pcm037_uart1_pins), "pcm037_uart1"); | 608 | ARRAY_SIZE(pcm037_uart1_pins), "pcm037_uart1"); |
@@ -608,8 +640,6 @@ static void __init mxc_board_init(void) | |||
608 | mxc_register_device(&mxcsdhc_device0, &sdhc_pdata); | 640 | mxc_register_device(&mxcsdhc_device0, &sdhc_pdata); |
609 | mxc_register_device(&mx3_ipu, &mx3_ipu_data); | 641 | mxc_register_device(&mx3_ipu, &mx3_ipu_data); |
610 | mxc_register_device(&mx3_fb, &mx3fb_pdata); | 642 | mxc_register_device(&mx3_fb, &mx3fb_pdata); |
611 | if (!gpio_usbotg_hs_activate()) | ||
612 | mxc_register_device(&mxc_otg_udc_device, &usb_pdata); | ||
613 | 643 | ||
614 | /* CSI */ | 644 | /* CSI */ |
615 | /* Camera power: default - off */ | 645 | /* Camera power: default - off */ |
@@ -623,6 +653,23 @@ static void __init mxc_board_init(void) | |||
623 | mxc_register_device(&mx3_camera, &camera_pdata); | 653 | mxc_register_device(&mx3_camera, &camera_pdata); |
624 | 654 | ||
625 | platform_device_register(&pcm970_sja1000); | 655 | platform_device_register(&pcm970_sja1000); |
656 | |||
657 | #if defined(CONFIG_USB_ULPI) | ||
658 | if (otg_mode_host) { | ||
659 | otg_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops, | ||
660 | USB_OTG_DRV_VBUS | USB_OTG_DRV_VBUS_EXT); | ||
661 | |||
662 | mxc_register_device(&mxc_otg_host, &otg_pdata); | ||
663 | } | ||
664 | |||
665 | usbh2_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops, | ||
666 | USB_OTG_DRV_VBUS | USB_OTG_DRV_VBUS_EXT); | ||
667 | |||
668 | mxc_register_device(&mxc_usbh2, &usbh2_pdata); | ||
669 | #endif | ||
670 | if (!otg_mode_host) | ||
671 | mxc_register_device(&mxc_otg_udc_device, &otg_device_pdata); | ||
672 | |||
626 | } | 673 | } |
627 | 674 | ||
628 | static void __init pcm037_timer_init(void) | 675 | static void __init pcm037_timer_init(void) |
@@ -636,9 +683,9 @@ struct sys_timer pcm037_timer = { | |||
636 | 683 | ||
637 | MACHINE_START(PCM037, "Phytec Phycore pcm037") | 684 | MACHINE_START(PCM037, "Phytec Phycore pcm037") |
638 | /* Maintainer: Pengutronix */ | 685 | /* Maintainer: Pengutronix */ |
639 | .phys_io = AIPS1_BASE_ADDR, | 686 | .phys_io = MX31_AIPS1_BASE_ADDR, |
640 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 687 | .io_pg_offst = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc, |
641 | .boot_params = PHYS_OFFSET + 0x100, | 688 | .boot_params = MX3x_PHYS_OFFSET + 0x100, |
642 | .map_io = mx31_map_io, | 689 | .map_io = mx31_map_io, |
643 | .init_irq = mx31_init_irq, | 690 | .init_irq = mx31_init_irq, |
644 | .init_machine = mxc_board_init, | 691 | .init_machine = mxc_board_init, |
diff --git a/arch/arm/mach-mx3/pcm037_eet.c b/arch/arm/mach-mx3/mach-pcm037_eet.c index 8d386000fc4..8d386000fc4 100644 --- a/arch/arm/mach-mx3/pcm037_eet.c +++ b/arch/arm/mach-mx3/mach-pcm037_eet.c | |||
diff --git a/arch/arm/mach-mx3/pcm043.c b/arch/arm/mach-mx3/mach-pcm043.c index e3aa829be58..1bf1ec2eef5 100644 --- a/arch/arm/mach-mx3/pcm043.c +++ b/arch/arm/mach-mx3/mach-pcm043.c | |||
@@ -26,8 +26,12 @@ | |||
26 | #include <linux/gpio.h> | 26 | #include <linux/gpio.h> |
27 | #include <linux/smc911x.h> | 27 | #include <linux/smc911x.h> |
28 | #include <linux/interrupt.h> | 28 | #include <linux/interrupt.h> |
29 | #include <linux/delay.h> | ||
29 | #include <linux/i2c.h> | 30 | #include <linux/i2c.h> |
30 | #include <linux/i2c/at24.h> | 31 | #include <linux/i2c/at24.h> |
32 | #include <linux/usb/otg.h> | ||
33 | #include <linux/usb/ulpi.h> | ||
34 | #include <linux/fsl_devices.h> | ||
31 | 35 | ||
32 | #include <asm/mach-types.h> | 36 | #include <asm/mach-types.h> |
33 | #include <asm/mach/arch.h> | 37 | #include <asm/mach/arch.h> |
@@ -44,6 +48,10 @@ | |||
44 | #include <mach/ipu.h> | 48 | #include <mach/ipu.h> |
45 | #include <mach/mx3fb.h> | 49 | #include <mach/mx3fb.h> |
46 | #include <mach/mxc_nand.h> | 50 | #include <mach/mxc_nand.h> |
51 | #include <mach/mxc_ehci.h> | ||
52 | #include <mach/ulpi.h> | ||
53 | #include <mach/audmux.h> | ||
54 | #include <mach/ssi.h> | ||
47 | 55 | ||
48 | #include "devices.h" | 56 | #include "devices.h" |
49 | 57 | ||
@@ -205,6 +213,94 @@ static struct pad_desc pcm043_pads[] = { | |||
205 | MX35_PAD_D3_CLS__IPU_DISPB_D3_CLS, | 213 | MX35_PAD_D3_CLS__IPU_DISPB_D3_CLS, |
206 | /* gpio */ | 214 | /* gpio */ |
207 | MX35_PAD_ATA_CS0__GPIO2_6, | 215 | MX35_PAD_ATA_CS0__GPIO2_6, |
216 | /* USB host */ | ||
217 | MX35_PAD_I2C2_CLK__USB_TOP_USBH2_PWR, | ||
218 | MX35_PAD_I2C2_DAT__USB_TOP_USBH2_OC, | ||
219 | /* SSI */ | ||
220 | MX35_PAD_STXFS4__AUDMUX_AUD4_TXFS, | ||
221 | MX35_PAD_STXD4__AUDMUX_AUD4_TXD, | ||
222 | MX35_PAD_SRXD4__AUDMUX_AUD4_RXD, | ||
223 | MX35_PAD_SCK4__AUDMUX_AUD4_TXC, | ||
224 | }; | ||
225 | |||
226 | #define AC97_GPIO_TXFS (1 * 32 + 31) | ||
227 | #define AC97_GPIO_TXD (1 * 32 + 28) | ||
228 | #define AC97_GPIO_RESET (1 * 32 + 0) | ||
229 | |||
230 | static void pcm043_ac97_warm_reset(struct snd_ac97 *ac97) | ||
231 | { | ||
232 | struct pad_desc txfs_gpio = MX35_PAD_STXFS4__GPIO2_31; | ||
233 | struct pad_desc txfs = MX35_PAD_STXFS4__AUDMUX_AUD4_TXFS; | ||
234 | int ret; | ||
235 | |||
236 | ret = gpio_request(AC97_GPIO_TXFS, "SSI"); | ||
237 | if (ret) { | ||
238 | printk("failed to get GPIO_TXFS: %d\n", ret); | ||
239 | return; | ||
240 | } | ||
241 | |||
242 | mxc_iomux_v3_setup_pad(&txfs_gpio); | ||
243 | |||
244 | /* warm reset */ | ||
245 | gpio_direction_output(AC97_GPIO_TXFS, 1); | ||
246 | udelay(2); | ||
247 | gpio_set_value(AC97_GPIO_TXFS, 0); | ||
248 | |||
249 | gpio_free(AC97_GPIO_TXFS); | ||
250 | mxc_iomux_v3_setup_pad(&txfs); | ||
251 | } | ||
252 | |||
253 | static void pcm043_ac97_cold_reset(struct snd_ac97 *ac97) | ||
254 | { | ||
255 | struct pad_desc txfs_gpio = MX35_PAD_STXFS4__GPIO2_31; | ||
256 | struct pad_desc txfs = MX35_PAD_STXFS4__AUDMUX_AUD4_TXFS; | ||
257 | struct pad_desc txd_gpio = MX35_PAD_STXD4__GPIO2_28; | ||
258 | struct pad_desc txd = MX35_PAD_STXD4__AUDMUX_AUD4_TXD; | ||
259 | struct pad_desc reset_gpio = MX35_PAD_SD2_CMD__GPIO2_0; | ||
260 | int ret; | ||
261 | |||
262 | ret = gpio_request(AC97_GPIO_TXFS, "SSI"); | ||
263 | if (ret) | ||
264 | goto err1; | ||
265 | |||
266 | ret = gpio_request(AC97_GPIO_TXD, "SSI"); | ||
267 | if (ret) | ||
268 | goto err2; | ||
269 | |||
270 | ret = gpio_request(AC97_GPIO_RESET, "SSI"); | ||
271 | if (ret) | ||
272 | goto err3; | ||
273 | |||
274 | mxc_iomux_v3_setup_pad(&txfs_gpio); | ||
275 | mxc_iomux_v3_setup_pad(&txd_gpio); | ||
276 | mxc_iomux_v3_setup_pad(&reset_gpio); | ||
277 | |||
278 | gpio_direction_output(AC97_GPIO_TXFS, 0); | ||
279 | gpio_direction_output(AC97_GPIO_TXD, 0); | ||
280 | |||
281 | /* cold reset */ | ||
282 | gpio_direction_output(AC97_GPIO_RESET, 0); | ||
283 | udelay(10); | ||
284 | gpio_direction_output(AC97_GPIO_RESET, 1); | ||
285 | |||
286 | mxc_iomux_v3_setup_pad(&txd); | ||
287 | mxc_iomux_v3_setup_pad(&txfs); | ||
288 | |||
289 | gpio_free(AC97_GPIO_RESET); | ||
290 | err3: | ||
291 | gpio_free(AC97_GPIO_TXD); | ||
292 | err2: | ||
293 | gpio_free(AC97_GPIO_TXFS); | ||
294 | err1: | ||
295 | if (ret) | ||
296 | printk("%s failed with %d\n", __func__, ret); | ||
297 | mdelay(1); | ||
298 | } | ||
299 | |||
300 | static struct imx_ssi_platform_data pcm043_ssi_pdata = { | ||
301 | .ac97_reset = pcm043_ac97_cold_reset, | ||
302 | .ac97_warm_reset = pcm043_ac97_warm_reset, | ||
303 | .flags = IMX_SSI_USE_AC97, | ||
208 | }; | 304 | }; |
209 | 305 | ||
210 | static struct mxc_nand_platform_data pcm037_nand_board_info = { | 306 | static struct mxc_nand_platform_data pcm037_nand_board_info = { |
@@ -212,6 +308,37 @@ static struct mxc_nand_platform_data pcm037_nand_board_info = { | |||
212 | .hw_ecc = 1, | 308 | .hw_ecc = 1, |
213 | }; | 309 | }; |
214 | 310 | ||
311 | static struct mxc_usbh_platform_data otg_pdata = { | ||
312 | .portsc = MXC_EHCI_MODE_UTMI, | ||
313 | .flags = MXC_EHCI_INTERFACE_DIFF_UNI, | ||
314 | }; | ||
315 | |||
316 | static struct mxc_usbh_platform_data usbh1_pdata = { | ||
317 | .portsc = MXC_EHCI_MODE_SERIAL, | ||
318 | .flags = MXC_EHCI_INTERFACE_SINGLE_UNI | MXC_EHCI_INTERNAL_PHY | | ||
319 | MXC_EHCI_IPPUE_DOWN, | ||
320 | }; | ||
321 | |||
322 | static struct fsl_usb2_platform_data otg_device_pdata = { | ||
323 | .operating_mode = FSL_USB2_DR_DEVICE, | ||
324 | .phy_mode = FSL_USB2_PHY_UTMI, | ||
325 | }; | ||
326 | |||
327 | static int otg_mode_host; | ||
328 | |||
329 | static int __init pcm043_otg_mode(char *options) | ||
330 | { | ||
331 | if (!strcmp(options, "host")) | ||
332 | otg_mode_host = 1; | ||
333 | else if (!strcmp(options, "device")) | ||
334 | otg_mode_host = 0; | ||
335 | else | ||
336 | pr_info("otg_mode neither \"host\" nor \"device\". " | ||
337 | "Defaulting to device\n"); | ||
338 | return 0; | ||
339 | } | ||
340 | __setup("otg_mode=", pcm043_otg_mode); | ||
341 | |||
215 | /* | 342 | /* |
216 | * Board specific initialization. | 343 | * Board specific initialization. |
217 | */ | 344 | */ |
@@ -219,10 +346,23 @@ static void __init mxc_board_init(void) | |||
219 | { | 346 | { |
220 | mxc_iomux_v3_setup_multiple_pads(pcm043_pads, ARRAY_SIZE(pcm043_pads)); | 347 | mxc_iomux_v3_setup_multiple_pads(pcm043_pads, ARRAY_SIZE(pcm043_pads)); |
221 | 348 | ||
349 | mxc_audmux_v2_configure_port(3, | ||
350 | MXC_AUDMUX_V2_PTCR_SYN | /* 4wire mode */ | ||
351 | MXC_AUDMUX_V2_PTCR_TFSEL(0) | | ||
352 | MXC_AUDMUX_V2_PTCR_TFSDIR, | ||
353 | MXC_AUDMUX_V2_PDCR_RXDSEL(0)); | ||
354 | |||
355 | mxc_audmux_v2_configure_port(0, | ||
356 | MXC_AUDMUX_V2_PTCR_SYN | /* 4wire mode */ | ||
357 | MXC_AUDMUX_V2_PTCR_TCSEL(3) | | ||
358 | MXC_AUDMUX_V2_PTCR_TCLKDIR, /* clock is output */ | ||
359 | MXC_AUDMUX_V2_PDCR_RXDSEL(3)); | ||
360 | |||
222 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 361 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
223 | 362 | ||
224 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | 363 | mxc_register_device(&mxc_uart_device0, &uart_pdata); |
225 | mxc_register_device(&mxc_nand_device, &pcm037_nand_board_info); | 364 | mxc_register_device(&mxc_nand_device, &pcm037_nand_board_info); |
365 | mxc_register_device(&imx_ssi_device0, &pcm043_ssi_pdata); | ||
226 | 366 | ||
227 | mxc_register_device(&mxc_uart_device1, &uart_pdata); | 367 | mxc_register_device(&mxc_uart_device1, &uart_pdata); |
228 | 368 | ||
@@ -235,6 +375,20 @@ static void __init mxc_board_init(void) | |||
235 | 375 | ||
236 | mxc_register_device(&mx3_ipu, &mx3_ipu_data); | 376 | mxc_register_device(&mx3_ipu, &mx3_ipu_data); |
237 | mxc_register_device(&mx3_fb, &mx3fb_pdata); | 377 | mxc_register_device(&mx3_fb, &mx3fb_pdata); |
378 | |||
379 | #if defined(CONFIG_USB_ULPI) | ||
380 | if (otg_mode_host) { | ||
381 | otg_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops, | ||
382 | USB_OTG_DRV_VBUS | USB_OTG_DRV_VBUS_EXT); | ||
383 | |||
384 | mxc_register_device(&mxc_otg_host, &otg_pdata); | ||
385 | } | ||
386 | |||
387 | mxc_register_device(&mxc_usbh1, &usbh1_pdata); | ||
388 | #endif | ||
389 | if (!otg_mode_host) | ||
390 | mxc_register_device(&mxc_otg_udc_device, &otg_device_pdata); | ||
391 | |||
238 | } | 392 | } |
239 | 393 | ||
240 | static void __init pcm043_timer_init(void) | 394 | static void __init pcm043_timer_init(void) |
@@ -248,9 +402,9 @@ struct sys_timer pcm043_timer = { | |||
248 | 402 | ||
249 | MACHINE_START(PCM043, "Phytec Phycore pcm043") | 403 | MACHINE_START(PCM043, "Phytec Phycore pcm043") |
250 | /* Maintainer: Pengutronix */ | 404 | /* Maintainer: Pengutronix */ |
251 | .phys_io = AIPS1_BASE_ADDR, | 405 | .phys_io = MX35_AIPS1_BASE_ADDR, |
252 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 406 | .io_pg_offst = ((MX35_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
253 | .boot_params = PHYS_OFFSET + 0x100, | 407 | .boot_params = MX3x_PHYS_OFFSET + 0x100, |
254 | .map_io = mx35_map_io, | 408 | .map_io = mx35_map_io, |
255 | .init_irq = mx35_init_irq, | 409 | .init_irq = mx35_init_irq, |
256 | .init_machine = mxc_board_init, | 410 | .init_machine = mxc_board_init, |
diff --git a/arch/arm/mach-mx3/qong.c b/arch/arm/mach-mx3/mach-qong.c index 044511f1b9a..e5b5b8323a1 100644 --- a/arch/arm/mach-mx3/qong.c +++ b/arch/arm/mach-mx3/mach-qong.c | |||
@@ -43,7 +43,7 @@ | |||
43 | #define QONG_FPGA_VERSION(major, minor, rev) \ | 43 | #define QONG_FPGA_VERSION(major, minor, rev) \ |
44 | (((major & 0xF) << 12) | ((minor & 0xF) << 8) | (rev & 0xFF)) | 44 | (((major & 0xF) << 12) | ((minor & 0xF) << 8) | (rev & 0xFF)) |
45 | 45 | ||
46 | #define QONG_FPGA_BASEADDR CS1_BASE_ADDR | 46 | #define QONG_FPGA_BASEADDR MX31_CS1_BASE_ADDR |
47 | #define QONG_FPGA_PERIPH_SIZE (1 << 24) | 47 | #define QONG_FPGA_PERIPH_SIZE (1 << 24) |
48 | 48 | ||
49 | #define QONG_FPGA_CTRL_BASEADDR QONG_FPGA_BASEADDR | 49 | #define QONG_FPGA_CTRL_BASEADDR QONG_FPGA_BASEADDR |
@@ -115,8 +115,8 @@ static struct physmap_flash_data qong_flash_data = { | |||
115 | }; | 115 | }; |
116 | 116 | ||
117 | static struct resource qong_flash_resource = { | 117 | static struct resource qong_flash_resource = { |
118 | .start = CS0_BASE_ADDR, | 118 | .start = MX31_CS0_BASE_ADDR, |
119 | .end = CS0_BASE_ADDR + QONG_NOR_SIZE - 1, | 119 | .end = MX31_CS0_BASE_ADDR + QONG_NOR_SIZE - 1, |
120 | .flags = IORESOURCE_MEM, | 120 | .flags = IORESOURCE_MEM, |
121 | }; | 121 | }; |
122 | 122 | ||
@@ -180,8 +180,8 @@ static struct platform_nand_data qong_nand_data = { | |||
180 | }; | 180 | }; |
181 | 181 | ||
182 | static struct resource qong_nand_resource = { | 182 | static struct resource qong_nand_resource = { |
183 | .start = CS3_BASE_ADDR, | 183 | .start = MX31_CS3_BASE_ADDR, |
184 | .end = CS3_BASE_ADDR + SZ_32M - 1, | 184 | .end = MX31_CS3_BASE_ADDR + SZ_32M - 1, |
185 | .flags = IORESOURCE_MEM, | 185 | .flags = IORESOURCE_MEM, |
186 | }; | 186 | }; |
187 | 187 | ||
@@ -198,9 +198,7 @@ static struct platform_device qong_nand_device = { | |||
198 | static void __init qong_init_nand_mtd(void) | 198 | static void __init qong_init_nand_mtd(void) |
199 | { | 199 | { |
200 | /* init CS */ | 200 | /* init CS */ |
201 | __raw_writel(0x00004f00, CSCR_U(3)); | 201 | mx31_setup_weimcs(3, 0x00004f00, 0x20013b31, 0x00020800); |
202 | __raw_writel(0x20013b31, CSCR_L(3)); | ||
203 | __raw_writel(0x00020800, CSCR_A(3)); | ||
204 | mxc_iomux_set_gpr(MUX_SDCTL_CSD1_SEL, true); | 202 | mxc_iomux_set_gpr(MUX_SDCTL_CSD1_SEL, true); |
205 | 203 | ||
206 | /* enable pin */ | 204 | /* enable pin */ |
@@ -275,9 +273,9 @@ static struct sys_timer qong_timer = { | |||
275 | 273 | ||
276 | MACHINE_START(QONG, "Dave/DENX QongEVB-LITE") | 274 | MACHINE_START(QONG, "Dave/DENX QongEVB-LITE") |
277 | /* Maintainer: DENX Software Engineering GmbH */ | 275 | /* Maintainer: DENX Software Engineering GmbH */ |
278 | .phys_io = AIPS1_BASE_ADDR, | 276 | .phys_io = MX31_AIPS1_BASE_ADDR, |
279 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 277 | .io_pg_offst = (MX31_AIPS1_BASE_ADDR_VIRT >> 18) & 0xfffc, |
280 | .boot_params = PHYS_OFFSET + 0x100, | 278 | .boot_params = MX3x_PHYS_OFFSET + 0x100, |
281 | .map_io = mx31_map_io, | 279 | .map_io = mx31_map_io, |
282 | .init_irq = mx31_init_irq, | 280 | .init_irq = mx31_init_irq, |
283 | .init_machine = mxc_board_init, | 281 | .init_machine = mxc_board_init, |
diff --git a/arch/arm/mach-mx3/mx31lite-db.c b/arch/arm/mach-mx3/mx31lite-db.c index 694611d6b05..ccd874225c3 100644 --- a/arch/arm/mach-mx3/mx31lite-db.c +++ b/arch/arm/mach-mx3/mx31lite-db.c | |||
@@ -67,6 +67,13 @@ static unsigned int litekit_db_board_pins[] __initdata = { | |||
67 | MX31_PIN_CSPI1_SS0__SS0, | 67 | MX31_PIN_CSPI1_SS0__SS0, |
68 | MX31_PIN_CSPI1_SS1__SS1, | 68 | MX31_PIN_CSPI1_SS1__SS1, |
69 | MX31_PIN_CSPI1_SS2__SS2, | 69 | MX31_PIN_CSPI1_SS2__SS2, |
70 | /* SDHC1 */ | ||
71 | MX31_PIN_SD1_DATA0__SD1_DATA0, | ||
72 | MX31_PIN_SD1_DATA1__SD1_DATA1, | ||
73 | MX31_PIN_SD1_DATA2__SD1_DATA2, | ||
74 | MX31_PIN_SD1_DATA3__SD1_DATA3, | ||
75 | MX31_PIN_SD1_CLK__SD1_CLK, | ||
76 | MX31_PIN_SD1_CMD__SD1_CMD, | ||
70 | }; | 77 | }; |
71 | 78 | ||
72 | /* UART */ | 79 | /* UART */ |
@@ -79,11 +86,11 @@ static struct imxuart_platform_data uart_pdata __initdata = { | |||
79 | static int gpio_det, gpio_wp; | 86 | static int gpio_det, gpio_wp; |
80 | 87 | ||
81 | #define MMC_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \ | 88 | #define MMC_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \ |
82 | PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU) | 89 | PAD_CTL_ODE_CMOS) |
83 | 90 | ||
84 | static int mxc_mmc1_get_ro(struct device *dev) | 91 | static int mxc_mmc1_get_ro(struct device *dev) |
85 | { | 92 | { |
86 | return gpio_get_value(IOMUX_TO_GPIO(MX31_PIN_LCS0)); | 93 | return gpio_get_value(IOMUX_TO_GPIO(MX31_PIN_GPIO1_6)); |
87 | } | 94 | } |
88 | 95 | ||
89 | static int mxc_mmc1_init(struct device *dev, | 96 | static int mxc_mmc1_init(struct device *dev, |
@@ -94,12 +101,17 @@ static int mxc_mmc1_init(struct device *dev, | |||
94 | gpio_det = IOMUX_TO_GPIO(MX31_PIN_DCD_DCE1); | 101 | gpio_det = IOMUX_TO_GPIO(MX31_PIN_DCD_DCE1); |
95 | gpio_wp = IOMUX_TO_GPIO(MX31_PIN_GPIO1_6); | 102 | gpio_wp = IOMUX_TO_GPIO(MX31_PIN_GPIO1_6); |
96 | 103 | ||
97 | mxc_iomux_set_pad(MX31_PIN_SD1_DATA0, MMC_PAD_CFG); | 104 | mxc_iomux_set_pad(MX31_PIN_SD1_DATA0, |
98 | mxc_iomux_set_pad(MX31_PIN_SD1_DATA1, MMC_PAD_CFG); | 105 | MMC_PAD_CFG | PAD_CTL_PUE_PUD | PAD_CTL_100K_PU); |
99 | mxc_iomux_set_pad(MX31_PIN_SD1_DATA2, MMC_PAD_CFG); | 106 | mxc_iomux_set_pad(MX31_PIN_SD1_DATA1, |
100 | mxc_iomux_set_pad(MX31_PIN_SD1_DATA3, MMC_PAD_CFG); | 107 | MMC_PAD_CFG | PAD_CTL_PUE_PUD | PAD_CTL_100K_PU); |
108 | mxc_iomux_set_pad(MX31_PIN_SD1_DATA2, | ||
109 | MMC_PAD_CFG | PAD_CTL_PUE_PUD | PAD_CTL_100K_PU); | ||
110 | mxc_iomux_set_pad(MX31_PIN_SD1_DATA3, | ||
111 | MMC_PAD_CFG | PAD_CTL_PUE_PUD | PAD_CTL_100K_PU); | ||
112 | mxc_iomux_set_pad(MX31_PIN_SD1_CMD, | ||
113 | MMC_PAD_CFG | PAD_CTL_PUE_PUD | PAD_CTL_100K_PU); | ||
101 | mxc_iomux_set_pad(MX31_PIN_SD1_CLK, MMC_PAD_CFG); | 114 | mxc_iomux_set_pad(MX31_PIN_SD1_CLK, MMC_PAD_CFG); |
102 | mxc_iomux_set_pad(MX31_PIN_SD1_CMD, MMC_PAD_CFG); | ||
103 | 115 | ||
104 | ret = gpio_request(gpio_det, "MMC detect"); | 116 | ret = gpio_request(gpio_det, "MMC detect"); |
105 | if (ret) | 117 | if (ret) |
@@ -113,7 +125,7 @@ static int mxc_mmc1_init(struct device *dev, | |||
113 | gpio_direction_input(gpio_wp); | 125 | gpio_direction_input(gpio_wp); |
114 | 126 | ||
115 | ret = request_irq(IOMUX_TO_IRQ(MX31_PIN_DCD_DCE1), detect_irq, | 127 | ret = request_irq(IOMUX_TO_IRQ(MX31_PIN_DCD_DCE1), detect_irq, |
116 | IRQF_DISABLED | IRQF_TRIGGER_FALLING, | 128 | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, |
117 | "MMC detect", data); | 129 | "MMC detect", data); |
118 | if (ret) | 130 | if (ret) |
119 | goto exit_free_wp; | 131 | goto exit_free_wp; |
@@ -133,7 +145,7 @@ static void mxc_mmc1_exit(struct device *dev, void *data) | |||
133 | { | 145 | { |
134 | gpio_free(gpio_det); | 146 | gpio_free(gpio_det); |
135 | gpio_free(gpio_wp); | 147 | gpio_free(gpio_wp); |
136 | free_irq(IOMUX_TO_IRQ(MX31_PIN_GPIO1_1), data); | 148 | free_irq(IOMUX_TO_IRQ(MX31_PIN_DCD_DCE1), data); |
137 | } | 149 | } |
138 | 150 | ||
139 | static struct imxmmc_platform_data mmc_pdata = { | 151 | static struct imxmmc_platform_data mmc_pdata = { |
diff --git a/arch/arm/mach-mx3/mx31moboard-devboard.c b/arch/arm/mach-mx3/mx31moboard-devboard.c index 438428eaf76..9fbad2eb3a4 100644 --- a/arch/arm/mach-mx3/mx31moboard-devboard.c +++ b/arch/arm/mach-mx3/mx31moboard-devboard.c | |||
@@ -49,6 +49,9 @@ static unsigned int devboard_pins[] = { | |||
49 | MX31_PIN_CSPI1_SS2__USBH1_RCV, MX31_PIN_CSPI1_SCLK__USBH1_OEB, | 49 | MX31_PIN_CSPI1_SS2__USBH1_RCV, MX31_PIN_CSPI1_SCLK__USBH1_OEB, |
50 | MX31_PIN_CSPI1_SPI_RDY__USBH1_FS, MX31_PIN_SFS6__USBH1_SUSPEND, | 50 | MX31_PIN_CSPI1_SPI_RDY__USBH1_FS, MX31_PIN_SFS6__USBH1_SUSPEND, |
51 | MX31_PIN_NFRE_B__GPIO1_11, MX31_PIN_NFALE__GPIO1_12, | 51 | MX31_PIN_NFRE_B__GPIO1_11, MX31_PIN_NFALE__GPIO1_12, |
52 | /* SEL */ | ||
53 | MX31_PIN_DTR_DCE1__GPIO2_8, MX31_PIN_DSR_DCE1__GPIO2_9, | ||
54 | MX31_PIN_RI_DCE1__GPIO2_10, MX31_PIN_DCD_DCE1__GPIO2_11, | ||
52 | }; | 55 | }; |
53 | 56 | ||
54 | static struct imxuart_platform_data uart_pdata = { | 57 | static struct imxuart_platform_data uart_pdata = { |
@@ -108,6 +111,33 @@ static struct imxmmc_platform_data sdhc2_pdata = { | |||
108 | .exit = devboard_sdhc2_exit, | 111 | .exit = devboard_sdhc2_exit, |
109 | }; | 112 | }; |
110 | 113 | ||
114 | #define SEL0 IOMUX_TO_GPIO(MX31_PIN_DTR_DCE1) | ||
115 | #define SEL1 IOMUX_TO_GPIO(MX31_PIN_DSR_DCE1) | ||
116 | #define SEL2 IOMUX_TO_GPIO(MX31_PIN_RI_DCE1) | ||
117 | #define SEL3 IOMUX_TO_GPIO(MX31_PIN_DCD_DCE1) | ||
118 | |||
119 | static void devboard_init_sel_gpios(void) | ||
120 | { | ||
121 | if (!gpio_request(SEL0, "sel0")) { | ||
122 | gpio_direction_input(SEL0); | ||
123 | gpio_export(SEL0, true); | ||
124 | } | ||
125 | |||
126 | if (!gpio_request(SEL1, "sel1")) { | ||
127 | gpio_direction_input(SEL1); | ||
128 | gpio_export(SEL1, true); | ||
129 | } | ||
130 | |||
131 | if (!gpio_request(SEL2, "sel2")) { | ||
132 | gpio_direction_input(SEL2); | ||
133 | gpio_export(SEL2, true); | ||
134 | } | ||
135 | |||
136 | if (!gpio_request(SEL3, "sel3")) { | ||
137 | gpio_direction_input(SEL3); | ||
138 | gpio_export(SEL3, true); | ||
139 | } | ||
140 | } | ||
111 | #define USB_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \ | 141 | #define USB_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \ |
112 | PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU) | 142 | PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU) |
113 | 143 | ||
@@ -196,5 +226,7 @@ void __init mx31moboard_devboard_init(void) | |||
196 | 226 | ||
197 | mxc_register_device(&mxcsdhc_device1, &sdhc2_pdata); | 227 | mxc_register_device(&mxcsdhc_device1, &sdhc2_pdata); |
198 | 228 | ||
229 | devboard_init_sel_gpios(); | ||
230 | |||
199 | devboard_usbh1_init(); | 231 | devboard_usbh1_init(); |
200 | } | 232 | } |
diff --git a/arch/arm/mach-mx3/mx31moboard-marxbot.c b/arch/arm/mach-mx3/mx31moboard-marxbot.c index 1f44b9ccbb0..3958515d75b 100644 --- a/arch/arm/mach-mx3/mx31moboard-marxbot.c +++ b/arch/arm/mach-mx3/mx31moboard-marxbot.c | |||
@@ -66,6 +66,9 @@ static unsigned int marxbot_pins[] = { | |||
66 | MX31_PIN_CSPI1_SS2__USBH1_RCV, MX31_PIN_CSPI1_SCLK__USBH1_OEB, | 66 | MX31_PIN_CSPI1_SS2__USBH1_RCV, MX31_PIN_CSPI1_SCLK__USBH1_OEB, |
67 | MX31_PIN_CSPI1_SPI_RDY__USBH1_FS, MX31_PIN_SFS6__USBH1_SUSPEND, | 67 | MX31_PIN_CSPI1_SPI_RDY__USBH1_FS, MX31_PIN_SFS6__USBH1_SUSPEND, |
68 | MX31_PIN_NFRE_B__GPIO1_11, MX31_PIN_NFALE__GPIO1_12, | 68 | MX31_PIN_NFRE_B__GPIO1_11, MX31_PIN_NFALE__GPIO1_12, |
69 | /* SEL */ | ||
70 | MX31_PIN_DTR_DCE1__GPIO2_8, MX31_PIN_DSR_DCE1__GPIO2_9, | ||
71 | MX31_PIN_RI_DCE1__GPIO2_10, MX31_PIN_DCD_DCE1__GPIO2_11, | ||
69 | }; | 72 | }; |
70 | 73 | ||
71 | #define SDHC2_CD IOMUX_TO_GPIO(MX31_PIN_ATA_DIOR) | 74 | #define SDHC2_CD IOMUX_TO_GPIO(MX31_PIN_ATA_DIOR) |
@@ -127,12 +130,12 @@ static struct imxmmc_platform_data sdhc2_pdata = { | |||
127 | static void dspics_resets_init(void) | 130 | static void dspics_resets_init(void) |
128 | { | 131 | { |
129 | if (!gpio_request(TRSLAT_RST_B, "translator-rst")) { | 132 | if (!gpio_request(TRSLAT_RST_B, "translator-rst")) { |
130 | gpio_direction_output(TRSLAT_RST_B, 1); | 133 | gpio_direction_output(TRSLAT_RST_B, 0); |
131 | gpio_export(TRSLAT_RST_B, false); | 134 | gpio_export(TRSLAT_RST_B, false); |
132 | } | 135 | } |
133 | 136 | ||
134 | if (!gpio_request(DSPICS_RST_B, "dspics-rst")) { | 137 | if (!gpio_request(DSPICS_RST_B, "dspics-rst")) { |
135 | gpio_direction_output(DSPICS_RST_B, 1); | 138 | gpio_direction_output(DSPICS_RST_B, 0); |
136 | gpio_export(DSPICS_RST_B, false); | 139 | gpio_export(DSPICS_RST_B, false); |
137 | } | 140 | } |
138 | } | 141 | } |
@@ -200,7 +203,7 @@ static int __init marxbot_cam_init(void) | |||
200 | int ret = gpio_request(CAM_CHOICE, "cam-choice"); | 203 | int ret = gpio_request(CAM_CHOICE, "cam-choice"); |
201 | if (ret) | 204 | if (ret) |
202 | return ret; | 205 | return ret; |
203 | gpio_direction_output(CAM_CHOICE, 1); | 206 | gpio_direction_output(CAM_CHOICE, 0); |
204 | 207 | ||
205 | ret = gpio_request(BASECAM_RST_B, "basecam-reset"); | 208 | ret = gpio_request(BASECAM_RST_B, "basecam-reset"); |
206 | if (ret) | 209 | if (ret) |
@@ -223,6 +226,34 @@ static int __init marxbot_cam_init(void) | |||
223 | return 0; | 226 | return 0; |
224 | } | 227 | } |
225 | 228 | ||
229 | #define SEL0 IOMUX_TO_GPIO(MX31_PIN_DTR_DCE1) | ||
230 | #define SEL1 IOMUX_TO_GPIO(MX31_PIN_DSR_DCE1) | ||
231 | #define SEL2 IOMUX_TO_GPIO(MX31_PIN_RI_DCE1) | ||
232 | #define SEL3 IOMUX_TO_GPIO(MX31_PIN_DCD_DCE1) | ||
233 | |||
234 | static void marxbot_init_sel_gpios(void) | ||
235 | { | ||
236 | if (!gpio_request(SEL0, "sel0")) { | ||
237 | gpio_direction_input(SEL0); | ||
238 | gpio_export(SEL0, true); | ||
239 | } | ||
240 | |||
241 | if (!gpio_request(SEL1, "sel1")) { | ||
242 | gpio_direction_input(SEL1); | ||
243 | gpio_export(SEL1, true); | ||
244 | } | ||
245 | |||
246 | if (!gpio_request(SEL2, "sel2")) { | ||
247 | gpio_direction_input(SEL2); | ||
248 | gpio_export(SEL2, true); | ||
249 | } | ||
250 | |||
251 | if (!gpio_request(SEL3, "sel3")) { | ||
252 | gpio_direction_input(SEL3); | ||
253 | gpio_export(SEL3, true); | ||
254 | } | ||
255 | } | ||
256 | |||
226 | #define USB_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \ | 257 | #define USB_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \ |
227 | PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU) | 258 | PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU) |
228 | 259 | ||
@@ -307,6 +338,8 @@ void __init mx31moboard_marxbot_init(void) | |||
307 | mxc_iomux_setup_multiple_pins(marxbot_pins, ARRAY_SIZE(marxbot_pins), | 338 | mxc_iomux_setup_multiple_pins(marxbot_pins, ARRAY_SIZE(marxbot_pins), |
308 | "marxbot"); | 339 | "marxbot"); |
309 | 340 | ||
341 | marxbot_init_sel_gpios(); | ||
342 | |||
310 | dspics_resets_init(); | 343 | dspics_resets_init(); |
311 | 344 | ||
312 | mxc_register_device(&mxcsdhc_device1, &sdhc2_pdata); | 345 | mxc_register_device(&mxcsdhc_device1, &sdhc2_pdata); |
diff --git a/arch/arm/mach-mx3/mx31moboard-smartbot.c b/arch/arm/mach-mx3/mx31moboard-smartbot.c new file mode 100644 index 00000000000..52a69fc8b14 --- /dev/null +++ b/arch/arm/mach-mx3/mx31moboard-smartbot.c | |||
@@ -0,0 +1,162 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2009 Valentin Longchamp, EPFL Mobots group | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
17 | */ | ||
18 | |||
19 | #include <linux/delay.h> | ||
20 | #include <linux/gpio.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/interrupt.h> | ||
23 | #include <linux/i2c.h> | ||
24 | #include <linux/platform_device.h> | ||
25 | #include <linux/types.h> | ||
26 | |||
27 | #include <mach/common.h> | ||
28 | #include <mach/hardware.h> | ||
29 | #include <mach/imx-uart.h> | ||
30 | #include <mach/iomux-mx3.h> | ||
31 | |||
32 | #include <media/soc_camera.h> | ||
33 | |||
34 | #include "devices.h" | ||
35 | |||
36 | static unsigned int smartbot_pins[] = { | ||
37 | /* UART1 */ | ||
38 | MX31_PIN_CTS2__CTS2, MX31_PIN_RTS2__RTS2, | ||
39 | MX31_PIN_TXD2__TXD2, MX31_PIN_RXD2__RXD2, | ||
40 | /* CSI */ | ||
41 | MX31_PIN_CSI_D4__CSI_D4, MX31_PIN_CSI_D5__CSI_D5, | ||
42 | MX31_PIN_CSI_D6__CSI_D6, MX31_PIN_CSI_D7__CSI_D7, | ||
43 | MX31_PIN_CSI_D8__CSI_D8, MX31_PIN_CSI_D9__CSI_D9, | ||
44 | MX31_PIN_CSI_D10__CSI_D10, MX31_PIN_CSI_D11__CSI_D11, | ||
45 | MX31_PIN_CSI_D12__CSI_D12, MX31_PIN_CSI_D13__CSI_D13, | ||
46 | MX31_PIN_CSI_D14__CSI_D14, MX31_PIN_CSI_D15__CSI_D15, | ||
47 | MX31_PIN_CSI_HSYNC__CSI_HSYNC, MX31_PIN_CSI_MCLK__CSI_MCLK, | ||
48 | MX31_PIN_CSI_PIXCLK__CSI_PIXCLK, MX31_PIN_CSI_VSYNC__CSI_VSYNC, | ||
49 | MX31_PIN_GPIO3_0__GPIO3_0, MX31_PIN_GPIO3_1__GPIO3_1, | ||
50 | /* ENABLES */ | ||
51 | MX31_PIN_DTR_DCE1__GPIO2_8, MX31_PIN_DSR_DCE1__GPIO2_9, | ||
52 | MX31_PIN_RI_DCE1__GPIO2_10, MX31_PIN_DCD_DCE1__GPIO2_11, | ||
53 | }; | ||
54 | |||
55 | static struct imxuart_platform_data uart_pdata = { | ||
56 | .flags = IMXUART_HAVE_RTSCTS, | ||
57 | }; | ||
58 | |||
59 | #define CAM_POWER IOMUX_TO_GPIO(MX31_PIN_GPIO3_1) | ||
60 | #define CAM_RST_B IOMUX_TO_GPIO(MX31_PIN_GPIO3_0) | ||
61 | |||
62 | static int smartbot_cam_power(struct device *dev, int on) | ||
63 | { | ||
64 | gpio_set_value(CAM_POWER, !on); | ||
65 | return 0; | ||
66 | } | ||
67 | |||
68 | static int smartbot_cam_reset(struct device *dev) | ||
69 | { | ||
70 | gpio_set_value(CAM_RST_B, 0); | ||
71 | udelay(100); | ||
72 | gpio_set_value(CAM_RST_B, 1); | ||
73 | return 0; | ||
74 | } | ||
75 | |||
76 | static struct i2c_board_info smartbot_i2c_devices[] = { | ||
77 | { | ||
78 | I2C_BOARD_INFO("mt9t031", 0x5d), | ||
79 | }, | ||
80 | }; | ||
81 | |||
82 | static struct soc_camera_link base_iclink = { | ||
83 | .bus_id = 0, /* Must match with the camera ID */ | ||
84 | .power = smartbot_cam_power, | ||
85 | .reset = smartbot_cam_reset, | ||
86 | .board_info = &smartbot_i2c_devices[0], | ||
87 | .i2c_adapter_id = 0, | ||
88 | .module_name = "mt9t031", | ||
89 | }; | ||
90 | |||
91 | static struct platform_device smartbot_camera[] = { | ||
92 | { | ||
93 | .name = "soc-camera-pdrv", | ||
94 | .id = 0, | ||
95 | .dev = { | ||
96 | .platform_data = &base_iclink, | ||
97 | }, | ||
98 | }, | ||
99 | }; | ||
100 | |||
101 | static struct platform_device *smartbot_cameras[] __initdata = { | ||
102 | &smartbot_camera[0], | ||
103 | }; | ||
104 | |||
105 | static int __init smartbot_cam_init(void) | ||
106 | { | ||
107 | int ret = gpio_request(CAM_RST_B, "cam-reset"); | ||
108 | if (ret) | ||
109 | return ret; | ||
110 | gpio_direction_output(CAM_RST_B, 1); | ||
111 | ret = gpio_request(CAM_POWER, "cam-standby"); | ||
112 | if (ret) | ||
113 | return ret; | ||
114 | gpio_direction_output(CAM_POWER, 0); | ||
115 | |||
116 | return 0; | ||
117 | } | ||
118 | |||
119 | #define POWER_EN IOMUX_TO_GPIO(MX31_PIN_DTR_DCE1) | ||
120 | #define DSPIC_RST_B IOMUX_TO_GPIO(MX31_PIN_DSR_DCE1) | ||
121 | #define TRSLAT_RST_B IOMUX_TO_GPIO(MX31_PIN_RI_DCE1) | ||
122 | #define SEL3 IOMUX_TO_GPIO(MX31_PIN_DCD_DCE1) | ||
123 | |||
124 | static void smartbot_resets_init(void) | ||
125 | { | ||
126 | if (!gpio_request(POWER_EN, "power-enable")) { | ||
127 | gpio_direction_output(POWER_EN, 0); | ||
128 | gpio_export(POWER_EN, false); | ||
129 | } | ||
130 | |||
131 | if (!gpio_request(DSPIC_RST_B, "dspic-rst")) { | ||
132 | gpio_direction_output(DSPIC_RST_B, 0); | ||
133 | gpio_export(DSPIC_RST_B, false); | ||
134 | } | ||
135 | |||
136 | if (!gpio_request(TRSLAT_RST_B, "translator-rst")) { | ||
137 | gpio_direction_output(TRSLAT_RST_B, 0); | ||
138 | gpio_export(TRSLAT_RST_B, false); | ||
139 | } | ||
140 | |||
141 | if (!gpio_request(SEL3, "sel3")) { | ||
142 | gpio_direction_input(SEL3); | ||
143 | gpio_export(SEL3, true); | ||
144 | } | ||
145 | } | ||
146 | /* | ||
147 | * system init for baseboard usage. Will be called by mx31moboard init. | ||
148 | */ | ||
149 | void __init mx31moboard_smartbot_init(void) | ||
150 | { | ||
151 | printk(KERN_INFO "Initializing mx31smartbot peripherals\n"); | ||
152 | |||
153 | mxc_iomux_setup_multiple_pins(smartbot_pins, ARRAY_SIZE(smartbot_pins), | ||
154 | "smartbot"); | ||
155 | |||
156 | mxc_register_device(&mxc_uart_device1, &uart_pdata); | ||
157 | |||
158 | smartbot_resets_init(); | ||
159 | |||
160 | smartbot_cam_init(); | ||
161 | platform_add_devices(smartbot_cameras, ARRAY_SIZE(smartbot_cameras)); | ||
162 | } | ||
diff --git a/arch/arm/mach-mx5/Kconfig b/arch/arm/mach-mx5/Kconfig new file mode 100644 index 00000000000..1576d51e676 --- /dev/null +++ b/arch/arm/mach-mx5/Kconfig | |||
@@ -0,0 +1,18 @@ | |||
1 | if ARCH_MX5 | ||
2 | |||
3 | config ARCH_MX51 | ||
4 | bool | ||
5 | default y | ||
6 | select MXC_TZIC | ||
7 | select ARCH_MXC_IOMUX_V3 | ||
8 | |||
9 | comment "MX5 platforms:" | ||
10 | |||
11 | config MACH_MX51_BABBAGE | ||
12 | bool "Support MX51 BABBAGE platforms" | ||
13 | help | ||
14 | Include support for MX51 Babbage platform, also known as MX51EVK in | ||
15 | u-boot. This includes specific configurations for the board and its | ||
16 | peripherals. | ||
17 | |||
18 | endif | ||
diff --git a/arch/arm/mach-mx5/Makefile b/arch/arm/mach-mx5/Makefile new file mode 100644 index 00000000000..bf23f869ef5 --- /dev/null +++ b/arch/arm/mach-mx5/Makefile | |||
@@ -0,0 +1,9 @@ | |||
1 | # | ||
2 | # Makefile for the linux kernel. | ||
3 | # | ||
4 | |||
5 | # Object file lists. | ||
6 | obj-y := cpu.o mm.o clock-mx51.o devices.o | ||
7 | |||
8 | obj-$(CONFIG_MACH_MX51_BABBAGE) += board-mx51_babbage.o | ||
9 | |||
diff --git a/arch/arm/mach-mx5/Makefile.boot b/arch/arm/mach-mx5/Makefile.boot new file mode 100644 index 00000000000..9939a19d99a --- /dev/null +++ b/arch/arm/mach-mx5/Makefile.boot | |||
@@ -0,0 +1,3 @@ | |||
1 | zreladdr-y := 0x90008000 | ||
2 | params_phys-y := 0x90000100 | ||
3 | initrd_phys-y := 0x90800000 | ||
diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c new file mode 100644 index 00000000000..ee67a71db80 --- /dev/null +++ b/arch/arm/mach-mx5/board-mx51_babbage.c | |||
@@ -0,0 +1,98 @@ | |||
1 | /* | ||
2 | * Copyright 2009 Freescale Semiconductor, Inc. All Rights Reserved. | ||
3 | * Copyright (C) 2009-2010 Amit Kucheria <amit.kucheria@canonical.com> | ||
4 | * | ||
5 | * The code contained herein is licensed under the GNU General Public | ||
6 | * License. You may obtain a copy of the GNU General Public License | ||
7 | * Version 2 or later at the following locations: | ||
8 | * | ||
9 | * http://www.opensource.org/licenses/gpl-license.html | ||
10 | * http://www.gnu.org/copyleft/gpl.html | ||
11 | */ | ||
12 | |||
13 | #include <linux/init.h> | ||
14 | #include <linux/platform_device.h> | ||
15 | |||
16 | #include <mach/common.h> | ||
17 | #include <mach/hardware.h> | ||
18 | #include <mach/imx-uart.h> | ||
19 | #include <mach/iomux-mx51.h> | ||
20 | |||
21 | #include <asm/irq.h> | ||
22 | #include <asm/setup.h> | ||
23 | #include <asm/mach-types.h> | ||
24 | #include <asm/mach/arch.h> | ||
25 | #include <asm/mach/time.h> | ||
26 | |||
27 | #include "devices.h" | ||
28 | |||
29 | static struct platform_device *devices[] __initdata = { | ||
30 | &mxc_fec_device, | ||
31 | }; | ||
32 | |||
33 | static struct pad_desc mx51babbage_pads[] = { | ||
34 | /* UART1 */ | ||
35 | MX51_PAD_UART1_RXD__UART1_RXD, | ||
36 | MX51_PAD_UART1_TXD__UART1_TXD, | ||
37 | MX51_PAD_UART1_RTS__UART1_RTS, | ||
38 | MX51_PAD_UART1_CTS__UART1_CTS, | ||
39 | |||
40 | /* UART2 */ | ||
41 | MX51_PAD_UART2_RXD__UART2_RXD, | ||
42 | MX51_PAD_UART2_TXD__UART2_TXD, | ||
43 | |||
44 | /* UART3 */ | ||
45 | MX51_PAD_EIM_D25__UART3_RXD, | ||
46 | MX51_PAD_EIM_D26__UART3_TXD, | ||
47 | MX51_PAD_EIM_D27__UART3_RTS, | ||
48 | MX51_PAD_EIM_D24__UART3_CTS, | ||
49 | }; | ||
50 | |||
51 | /* Serial ports */ | ||
52 | #if defined(CONFIG_SERIAL_IMX) || defined(CONFIG_SERIAL_IMX_MODULE) | ||
53 | static struct imxuart_platform_data uart_pdata = { | ||
54 | .flags = IMXUART_HAVE_RTSCTS, | ||
55 | }; | ||
56 | |||
57 | static inline void mxc_init_imx_uart(void) | ||
58 | { | ||
59 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | ||
60 | mxc_register_device(&mxc_uart_device1, &uart_pdata); | ||
61 | mxc_register_device(&mxc_uart_device2, &uart_pdata); | ||
62 | } | ||
63 | #else /* !SERIAL_IMX */ | ||
64 | static inline void mxc_init_imx_uart(void) | ||
65 | { | ||
66 | } | ||
67 | #endif /* SERIAL_IMX */ | ||
68 | |||
69 | /* | ||
70 | * Board specific initialization. | ||
71 | */ | ||
72 | static void __init mxc_board_init(void) | ||
73 | { | ||
74 | mxc_iomux_v3_setup_multiple_pads(mx51babbage_pads, | ||
75 | ARRAY_SIZE(mx51babbage_pads)); | ||
76 | mxc_init_imx_uart(); | ||
77 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
78 | } | ||
79 | |||
80 | static void __init mx51_babbage_timer_init(void) | ||
81 | { | ||
82 | mx51_clocks_init(32768, 24000000, 22579200, 0); | ||
83 | } | ||
84 | |||
85 | static struct sys_timer mxc_timer = { | ||
86 | .init = mx51_babbage_timer_init, | ||
87 | }; | ||
88 | |||
89 | MACHINE_START(MX51_BABBAGE, "Freescale MX51 Babbage Board") | ||
90 | /* Maintainer: Amit Kucheria <amit.kucheria@canonical.com> */ | ||
91 | .phys_io = MX51_AIPS1_BASE_ADDR, | ||
92 | .io_pg_offst = ((MX51_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | ||
93 | .boot_params = PHYS_OFFSET + 0x100, | ||
94 | .map_io = mx51_map_io, | ||
95 | .init_irq = mx51_init_irq, | ||
96 | .init_machine = mxc_board_init, | ||
97 | .timer = &mxc_timer, | ||
98 | MACHINE_END | ||
diff --git a/arch/arm/mach-mx5/clock-mx51.c b/arch/arm/mach-mx5/clock-mx51.c new file mode 100644 index 00000000000..be90c03101c --- /dev/null +++ b/arch/arm/mach-mx5/clock-mx51.c | |||
@@ -0,0 +1,825 @@ | |||
1 | /* | ||
2 | * Copyright 2008-2010 Freescale Semiconductor, Inc. All Rights Reserved. | ||
3 | * Copyright (C) 2009-2010 Amit Kucheria <amit.kucheria@canonical.com> | ||
4 | * | ||
5 | * The code contained herein is licensed under the GNU General Public | ||
6 | * License. You may obtain a copy of the GNU General Public License | ||
7 | * Version 2 or later at the following locations: | ||
8 | * | ||
9 | * http://www.opensource.org/licenses/gpl-license.html | ||
10 | * http://www.gnu.org/copyleft/gpl.html | ||
11 | */ | ||
12 | |||
13 | #include <linux/mm.h> | ||
14 | #include <linux/delay.h> | ||
15 | #include <linux/clk.h> | ||
16 | #include <linux/io.h> | ||
17 | |||
18 | #include <asm/clkdev.h> | ||
19 | |||
20 | #include <mach/hardware.h> | ||
21 | #include <mach/common.h> | ||
22 | #include <mach/clock.h> | ||
23 | |||
24 | #include "crm_regs.h" | ||
25 | |||
26 | /* External clock values passed-in by the board code */ | ||
27 | static unsigned long external_high_reference, external_low_reference; | ||
28 | static unsigned long oscillator_reference, ckih2_reference; | ||
29 | |||
30 | static struct clk osc_clk; | ||
31 | static struct clk pll1_main_clk; | ||
32 | static struct clk pll1_sw_clk; | ||
33 | static struct clk pll2_sw_clk; | ||
34 | static struct clk pll3_sw_clk; | ||
35 | static struct clk lp_apm_clk; | ||
36 | static struct clk periph_apm_clk; | ||
37 | static struct clk ahb_clk; | ||
38 | static struct clk ipg_clk; | ||
39 | |||
40 | #define MAX_DPLL_WAIT_TRIES 1000 /* 1000 * udelay(1) = 1ms */ | ||
41 | |||
42 | static int _clk_ccgr_enable(struct clk *clk) | ||
43 | { | ||
44 | u32 reg; | ||
45 | |||
46 | reg = __raw_readl(clk->enable_reg); | ||
47 | reg |= MXC_CCM_CCGRx_MOD_ON << clk->enable_shift; | ||
48 | __raw_writel(reg, clk->enable_reg); | ||
49 | |||
50 | return 0; | ||
51 | } | ||
52 | |||
53 | static void _clk_ccgr_disable(struct clk *clk) | ||
54 | { | ||
55 | u32 reg; | ||
56 | reg = __raw_readl(clk->enable_reg); | ||
57 | reg &= ~(MXC_CCM_CCGRx_MOD_OFF << clk->enable_shift); | ||
58 | __raw_writel(reg, clk->enable_reg); | ||
59 | |||
60 | } | ||
61 | |||
62 | static void _clk_ccgr_disable_inwait(struct clk *clk) | ||
63 | { | ||
64 | u32 reg; | ||
65 | |||
66 | reg = __raw_readl(clk->enable_reg); | ||
67 | reg &= ~(MXC_CCM_CCGRx_CG_MASK << clk->enable_shift); | ||
68 | reg |= MXC_CCM_CCGRx_MOD_IDLE << clk->enable_shift; | ||
69 | __raw_writel(reg, clk->enable_reg); | ||
70 | } | ||
71 | |||
72 | /* | ||
73 | * For the 4-to-1 muxed input clock | ||
74 | */ | ||
75 | static inline u32 _get_mux(struct clk *parent, struct clk *m0, | ||
76 | struct clk *m1, struct clk *m2, struct clk *m3) | ||
77 | { | ||
78 | if (parent == m0) | ||
79 | return 0; | ||
80 | else if (parent == m1) | ||
81 | return 1; | ||
82 | else if (parent == m2) | ||
83 | return 2; | ||
84 | else if (parent == m3) | ||
85 | return 3; | ||
86 | else | ||
87 | BUG(); | ||
88 | |||
89 | return -EINVAL; | ||
90 | } | ||
91 | |||
92 | static inline void __iomem *_get_pll_base(struct clk *pll) | ||
93 | { | ||
94 | if (pll == &pll1_main_clk) | ||
95 | return MX51_DPLL1_BASE; | ||
96 | else if (pll == &pll2_sw_clk) | ||
97 | return MX51_DPLL2_BASE; | ||
98 | else if (pll == &pll3_sw_clk) | ||
99 | return MX51_DPLL3_BASE; | ||
100 | else | ||
101 | BUG(); | ||
102 | |||
103 | return NULL; | ||
104 | } | ||
105 | |||
106 | static unsigned long clk_pll_get_rate(struct clk *clk) | ||
107 | { | ||
108 | long mfi, mfn, mfd, pdf, ref_clk, mfn_abs; | ||
109 | unsigned long dp_op, dp_mfd, dp_mfn, dp_ctl, pll_hfsm, dbl; | ||
110 | void __iomem *pllbase; | ||
111 | s64 temp; | ||
112 | unsigned long parent_rate; | ||
113 | |||
114 | parent_rate = clk_get_rate(clk->parent); | ||
115 | |||
116 | pllbase = _get_pll_base(clk); | ||
117 | |||
118 | dp_ctl = __raw_readl(pllbase + MXC_PLL_DP_CTL); | ||
119 | pll_hfsm = dp_ctl & MXC_PLL_DP_CTL_HFSM; | ||
120 | dbl = dp_ctl & MXC_PLL_DP_CTL_DPDCK0_2_EN; | ||
121 | |||
122 | if (pll_hfsm == 0) { | ||
123 | dp_op = __raw_readl(pllbase + MXC_PLL_DP_OP); | ||
124 | dp_mfd = __raw_readl(pllbase + MXC_PLL_DP_MFD); | ||
125 | dp_mfn = __raw_readl(pllbase + MXC_PLL_DP_MFN); | ||
126 | } else { | ||
127 | dp_op = __raw_readl(pllbase + MXC_PLL_DP_HFS_OP); | ||
128 | dp_mfd = __raw_readl(pllbase + MXC_PLL_DP_HFS_MFD); | ||
129 | dp_mfn = __raw_readl(pllbase + MXC_PLL_DP_HFS_MFN); | ||
130 | } | ||
131 | pdf = dp_op & MXC_PLL_DP_OP_PDF_MASK; | ||
132 | mfi = (dp_op & MXC_PLL_DP_OP_MFI_MASK) >> MXC_PLL_DP_OP_MFI_OFFSET; | ||
133 | mfi = (mfi <= 5) ? 5 : mfi; | ||
134 | mfd = dp_mfd & MXC_PLL_DP_MFD_MASK; | ||
135 | mfn = mfn_abs = dp_mfn & MXC_PLL_DP_MFN_MASK; | ||
136 | /* Sign extend to 32-bits */ | ||
137 | if (mfn >= 0x04000000) { | ||
138 | mfn |= 0xFC000000; | ||
139 | mfn_abs = -mfn; | ||
140 | } | ||
141 | |||
142 | ref_clk = 2 * parent_rate; | ||
143 | if (dbl != 0) | ||
144 | ref_clk *= 2; | ||
145 | |||
146 | ref_clk /= (pdf + 1); | ||
147 | temp = (u64) ref_clk * mfn_abs; | ||
148 | do_div(temp, mfd + 1); | ||
149 | if (mfn < 0) | ||
150 | temp = -temp; | ||
151 | temp = (ref_clk * mfi) + temp; | ||
152 | |||
153 | return temp; | ||
154 | } | ||
155 | |||
156 | static int _clk_pll_set_rate(struct clk *clk, unsigned long rate) | ||
157 | { | ||
158 | u32 reg; | ||
159 | void __iomem *pllbase; | ||
160 | |||
161 | long mfi, pdf, mfn, mfd = 999999; | ||
162 | s64 temp64; | ||
163 | unsigned long quad_parent_rate; | ||
164 | unsigned long pll_hfsm, dp_ctl; | ||
165 | unsigned long parent_rate; | ||
166 | |||
167 | parent_rate = clk_get_rate(clk->parent); | ||
168 | |||
169 | pllbase = _get_pll_base(clk); | ||
170 | |||
171 | quad_parent_rate = 4 * parent_rate; | ||
172 | pdf = mfi = -1; | ||
173 | while (++pdf < 16 && mfi < 5) | ||
174 | mfi = rate * (pdf+1) / quad_parent_rate; | ||
175 | if (mfi > 15) | ||
176 | return -EINVAL; | ||
177 | pdf--; | ||
178 | |||
179 | temp64 = rate * (pdf+1) - quad_parent_rate * mfi; | ||
180 | do_div(temp64, quad_parent_rate/1000000); | ||
181 | mfn = (long)temp64; | ||
182 | |||
183 | dp_ctl = __raw_readl(pllbase + MXC_PLL_DP_CTL); | ||
184 | /* use dpdck0_2 */ | ||
185 | __raw_writel(dp_ctl | 0x1000L, pllbase + MXC_PLL_DP_CTL); | ||
186 | pll_hfsm = dp_ctl & MXC_PLL_DP_CTL_HFSM; | ||
187 | if (pll_hfsm == 0) { | ||
188 | reg = mfi << 4 | pdf; | ||
189 | __raw_writel(reg, pllbase + MXC_PLL_DP_OP); | ||
190 | __raw_writel(mfd, pllbase + MXC_PLL_DP_MFD); | ||
191 | __raw_writel(mfn, pllbase + MXC_PLL_DP_MFN); | ||
192 | } else { | ||
193 | reg = mfi << 4 | pdf; | ||
194 | __raw_writel(reg, pllbase + MXC_PLL_DP_HFS_OP); | ||
195 | __raw_writel(mfd, pllbase + MXC_PLL_DP_HFS_MFD); | ||
196 | __raw_writel(mfn, pllbase + MXC_PLL_DP_HFS_MFN); | ||
197 | } | ||
198 | |||
199 | return 0; | ||
200 | } | ||
201 | |||
202 | static int _clk_pll_enable(struct clk *clk) | ||
203 | { | ||
204 | u32 reg; | ||
205 | void __iomem *pllbase; | ||
206 | int i = 0; | ||
207 | |||
208 | pllbase = _get_pll_base(clk); | ||
209 | reg = __raw_readl(pllbase + MXC_PLL_DP_CTL) | MXC_PLL_DP_CTL_UPEN; | ||
210 | __raw_writel(reg, pllbase + MXC_PLL_DP_CTL); | ||
211 | |||
212 | /* Wait for lock */ | ||
213 | do { | ||
214 | reg = __raw_readl(pllbase + MXC_PLL_DP_CTL); | ||
215 | if (reg & MXC_PLL_DP_CTL_LRF) | ||
216 | break; | ||
217 | |||
218 | udelay(1); | ||
219 | } while (++i < MAX_DPLL_WAIT_TRIES); | ||
220 | |||
221 | if (i == MAX_DPLL_WAIT_TRIES) { | ||
222 | pr_err("MX5: pll locking failed\n"); | ||
223 | return -EINVAL; | ||
224 | } | ||
225 | |||
226 | return 0; | ||
227 | } | ||
228 | |||
229 | static void _clk_pll_disable(struct clk *clk) | ||
230 | { | ||
231 | u32 reg; | ||
232 | void __iomem *pllbase; | ||
233 | |||
234 | pllbase = _get_pll_base(clk); | ||
235 | reg = __raw_readl(pllbase + MXC_PLL_DP_CTL) & ~MXC_PLL_DP_CTL_UPEN; | ||
236 | __raw_writel(reg, pllbase + MXC_PLL_DP_CTL); | ||
237 | } | ||
238 | |||
239 | static int _clk_pll1_sw_set_parent(struct clk *clk, struct clk *parent) | ||
240 | { | ||
241 | u32 reg, step; | ||
242 | |||
243 | reg = __raw_readl(MXC_CCM_CCSR); | ||
244 | |||
245 | /* When switching from pll_main_clk to a bypass clock, first select a | ||
246 | * multiplexed clock in 'step_sel', then shift the glitchless mux | ||
247 | * 'pll1_sw_clk_sel'. | ||
248 | * | ||
249 | * When switching back, do it in reverse order | ||
250 | */ | ||
251 | if (parent == &pll1_main_clk) { | ||
252 | /* Switch to pll1_main_clk */ | ||
253 | reg &= ~MXC_CCM_CCSR_PLL1_SW_CLK_SEL; | ||
254 | __raw_writel(reg, MXC_CCM_CCSR); | ||
255 | /* step_clk mux switched to lp_apm, to save power. */ | ||
256 | reg = __raw_readl(MXC_CCM_CCSR); | ||
257 | reg &= ~MXC_CCM_CCSR_STEP_SEL_MASK; | ||
258 | reg |= (MXC_CCM_CCSR_STEP_SEL_LP_APM << | ||
259 | MXC_CCM_CCSR_STEP_SEL_OFFSET); | ||
260 | } else { | ||
261 | if (parent == &lp_apm_clk) { | ||
262 | step = MXC_CCM_CCSR_STEP_SEL_LP_APM; | ||
263 | } else if (parent == &pll2_sw_clk) { | ||
264 | step = MXC_CCM_CCSR_STEP_SEL_PLL2_DIVIDED; | ||
265 | } else if (parent == &pll3_sw_clk) { | ||
266 | step = MXC_CCM_CCSR_STEP_SEL_PLL3_DIVIDED; | ||
267 | } else | ||
268 | return -EINVAL; | ||
269 | |||
270 | reg &= ~MXC_CCM_CCSR_STEP_SEL_MASK; | ||
271 | reg |= (step << MXC_CCM_CCSR_STEP_SEL_OFFSET); | ||
272 | |||
273 | __raw_writel(reg, MXC_CCM_CCSR); | ||
274 | /* Switch to step_clk */ | ||
275 | reg = __raw_readl(MXC_CCM_CCSR); | ||
276 | reg |= MXC_CCM_CCSR_PLL1_SW_CLK_SEL; | ||
277 | } | ||
278 | __raw_writel(reg, MXC_CCM_CCSR); | ||
279 | return 0; | ||
280 | } | ||
281 | |||
282 | static unsigned long clk_pll1_sw_get_rate(struct clk *clk) | ||
283 | { | ||
284 | u32 reg, div; | ||
285 | unsigned long parent_rate; | ||
286 | |||
287 | parent_rate = clk_get_rate(clk->parent); | ||
288 | |||
289 | reg = __raw_readl(MXC_CCM_CCSR); | ||
290 | |||
291 | if (clk->parent == &pll2_sw_clk) { | ||
292 | div = ((reg & MXC_CCM_CCSR_PLL2_PODF_MASK) >> | ||
293 | MXC_CCM_CCSR_PLL2_PODF_OFFSET) + 1; | ||
294 | } else if (clk->parent == &pll3_sw_clk) { | ||
295 | div = ((reg & MXC_CCM_CCSR_PLL3_PODF_MASK) >> | ||
296 | MXC_CCM_CCSR_PLL3_PODF_OFFSET) + 1; | ||
297 | } else | ||
298 | div = 1; | ||
299 | return parent_rate / div; | ||
300 | } | ||
301 | |||
302 | static int _clk_pll2_sw_set_parent(struct clk *clk, struct clk *parent) | ||
303 | { | ||
304 | u32 reg; | ||
305 | |||
306 | reg = __raw_readl(MXC_CCM_CCSR); | ||
307 | |||
308 | if (parent == &pll2_sw_clk) | ||
309 | reg &= ~MXC_CCM_CCSR_PLL2_SW_CLK_SEL; | ||
310 | else | ||
311 | reg |= MXC_CCM_CCSR_PLL2_SW_CLK_SEL; | ||
312 | |||
313 | __raw_writel(reg, MXC_CCM_CCSR); | ||
314 | return 0; | ||
315 | } | ||
316 | |||
317 | static int _clk_lp_apm_set_parent(struct clk *clk, struct clk *parent) | ||
318 | { | ||
319 | u32 reg; | ||
320 | |||
321 | if (parent == &osc_clk) | ||
322 | reg = __raw_readl(MXC_CCM_CCSR) & ~MXC_CCM_CCSR_LP_APM_SEL; | ||
323 | else | ||
324 | return -EINVAL; | ||
325 | |||
326 | __raw_writel(reg, MXC_CCM_CCSR); | ||
327 | |||
328 | return 0; | ||
329 | } | ||
330 | |||
331 | static unsigned long clk_arm_get_rate(struct clk *clk) | ||
332 | { | ||
333 | u32 cacrr, div; | ||
334 | unsigned long parent_rate; | ||
335 | |||
336 | parent_rate = clk_get_rate(clk->parent); | ||
337 | cacrr = __raw_readl(MXC_CCM_CACRR); | ||
338 | div = (cacrr & MXC_CCM_CACRR_ARM_PODF_MASK) + 1; | ||
339 | |||
340 | return parent_rate / div; | ||
341 | } | ||
342 | |||
343 | static int _clk_periph_apm_set_parent(struct clk *clk, struct clk *parent) | ||
344 | { | ||
345 | u32 reg, mux; | ||
346 | int i = 0; | ||
347 | |||
348 | mux = _get_mux(parent, &pll1_sw_clk, &pll3_sw_clk, &lp_apm_clk, NULL); | ||
349 | |||
350 | reg = __raw_readl(MXC_CCM_CBCMR) & ~MXC_CCM_CBCMR_PERIPH_CLK_SEL_MASK; | ||
351 | reg |= mux << MXC_CCM_CBCMR_PERIPH_CLK_SEL_OFFSET; | ||
352 | __raw_writel(reg, MXC_CCM_CBCMR); | ||
353 | |||
354 | /* Wait for lock */ | ||
355 | do { | ||
356 | reg = __raw_readl(MXC_CCM_CDHIPR); | ||
357 | if (!(reg & MXC_CCM_CDHIPR_PERIPH_CLK_SEL_BUSY)) | ||
358 | break; | ||
359 | |||
360 | udelay(1); | ||
361 | } while (++i < MAX_DPLL_WAIT_TRIES); | ||
362 | |||
363 | if (i == MAX_DPLL_WAIT_TRIES) { | ||
364 | pr_err("MX5: Set parent for periph_apm clock failed\n"); | ||
365 | return -EINVAL; | ||
366 | } | ||
367 | |||
368 | return 0; | ||
369 | } | ||
370 | |||
371 | static int _clk_main_bus_set_parent(struct clk *clk, struct clk *parent) | ||
372 | { | ||
373 | u32 reg; | ||
374 | |||
375 | reg = __raw_readl(MXC_CCM_CBCDR); | ||
376 | |||
377 | if (parent == &pll2_sw_clk) | ||
378 | reg &= ~MXC_CCM_CBCDR_PERIPH_CLK_SEL; | ||
379 | else if (parent == &periph_apm_clk) | ||
380 | reg |= MXC_CCM_CBCDR_PERIPH_CLK_SEL; | ||
381 | else | ||
382 | return -EINVAL; | ||
383 | |||
384 | __raw_writel(reg, MXC_CCM_CBCDR); | ||
385 | |||
386 | return 0; | ||
387 | } | ||
388 | |||
389 | static struct clk main_bus_clk = { | ||
390 | .parent = &pll2_sw_clk, | ||
391 | .set_parent = _clk_main_bus_set_parent, | ||
392 | }; | ||
393 | |||
394 | static unsigned long clk_ahb_get_rate(struct clk *clk) | ||
395 | { | ||
396 | u32 reg, div; | ||
397 | unsigned long parent_rate; | ||
398 | |||
399 | parent_rate = clk_get_rate(clk->parent); | ||
400 | |||
401 | reg = __raw_readl(MXC_CCM_CBCDR); | ||
402 | div = ((reg & MXC_CCM_CBCDR_AHB_PODF_MASK) >> | ||
403 | MXC_CCM_CBCDR_AHB_PODF_OFFSET) + 1; | ||
404 | return parent_rate / div; | ||
405 | } | ||
406 | |||
407 | |||
408 | static int _clk_ahb_set_rate(struct clk *clk, unsigned long rate) | ||
409 | { | ||
410 | u32 reg, div; | ||
411 | unsigned long parent_rate; | ||
412 | int i = 0; | ||
413 | |||
414 | parent_rate = clk_get_rate(clk->parent); | ||
415 | |||
416 | div = parent_rate / rate; | ||
417 | if (div > 8 || div < 1 || ((parent_rate / div) != rate)) | ||
418 | return -EINVAL; | ||
419 | |||
420 | reg = __raw_readl(MXC_CCM_CBCDR); | ||
421 | reg &= ~MXC_CCM_CBCDR_AHB_PODF_MASK; | ||
422 | reg |= (div - 1) << MXC_CCM_CBCDR_AHB_PODF_OFFSET; | ||
423 | __raw_writel(reg, MXC_CCM_CBCDR); | ||
424 | |||
425 | /* Wait for lock */ | ||
426 | do { | ||
427 | reg = __raw_readl(MXC_CCM_CDHIPR); | ||
428 | if (!(reg & MXC_CCM_CDHIPR_AHB_PODF_BUSY)) | ||
429 | break; | ||
430 | |||
431 | udelay(1); | ||
432 | } while (++i < MAX_DPLL_WAIT_TRIES); | ||
433 | |||
434 | if (i == MAX_DPLL_WAIT_TRIES) { | ||
435 | pr_err("MX5: clk_ahb_set_rate failed\n"); | ||
436 | return -EINVAL; | ||
437 | } | ||
438 | |||
439 | return 0; | ||
440 | } | ||
441 | |||
442 | static unsigned long _clk_ahb_round_rate(struct clk *clk, | ||
443 | unsigned long rate) | ||
444 | { | ||
445 | u32 div; | ||
446 | unsigned long parent_rate; | ||
447 | |||
448 | parent_rate = clk_get_rate(clk->parent); | ||
449 | |||
450 | div = parent_rate / rate; | ||
451 | if (div > 8) | ||
452 | div = 8; | ||
453 | else if (div == 0) | ||
454 | div++; | ||
455 | return parent_rate / div; | ||
456 | } | ||
457 | |||
458 | |||
459 | static int _clk_max_enable(struct clk *clk) | ||
460 | { | ||
461 | u32 reg; | ||
462 | |||
463 | _clk_ccgr_enable(clk); | ||
464 | |||
465 | /* Handshake with MAX when LPM is entered. */ | ||
466 | reg = __raw_readl(MXC_CCM_CLPCR); | ||
467 | reg &= ~MXC_CCM_CLPCR_BYPASS_MAX_LPM_HS; | ||
468 | __raw_writel(reg, MXC_CCM_CLPCR); | ||
469 | |||
470 | return 0; | ||
471 | } | ||
472 | |||
473 | static void _clk_max_disable(struct clk *clk) | ||
474 | { | ||
475 | u32 reg; | ||
476 | |||
477 | _clk_ccgr_disable_inwait(clk); | ||
478 | |||
479 | /* No Handshake with MAX when LPM is entered as its disabled. */ | ||
480 | reg = __raw_readl(MXC_CCM_CLPCR); | ||
481 | reg |= MXC_CCM_CLPCR_BYPASS_MAX_LPM_HS; | ||
482 | __raw_writel(reg, MXC_CCM_CLPCR); | ||
483 | } | ||
484 | |||
485 | static unsigned long clk_ipg_get_rate(struct clk *clk) | ||
486 | { | ||
487 | u32 reg, div; | ||
488 | unsigned long parent_rate; | ||
489 | |||
490 | parent_rate = clk_get_rate(clk->parent); | ||
491 | |||
492 | reg = __raw_readl(MXC_CCM_CBCDR); | ||
493 | div = ((reg & MXC_CCM_CBCDR_IPG_PODF_MASK) >> | ||
494 | MXC_CCM_CBCDR_IPG_PODF_OFFSET) + 1; | ||
495 | |||
496 | return parent_rate / div; | ||
497 | } | ||
498 | |||
499 | static unsigned long clk_ipg_per_get_rate(struct clk *clk) | ||
500 | { | ||
501 | u32 reg, prediv1, prediv2, podf; | ||
502 | unsigned long parent_rate; | ||
503 | |||
504 | parent_rate = clk_get_rate(clk->parent); | ||
505 | |||
506 | if (clk->parent == &main_bus_clk || clk->parent == &lp_apm_clk) { | ||
507 | /* the main_bus_clk is the one before the DVFS engine */ | ||
508 | reg = __raw_readl(MXC_CCM_CBCDR); | ||
509 | prediv1 = ((reg & MXC_CCM_CBCDR_PERCLK_PRED1_MASK) >> | ||
510 | MXC_CCM_CBCDR_PERCLK_PRED1_OFFSET) + 1; | ||
511 | prediv2 = ((reg & MXC_CCM_CBCDR_PERCLK_PRED2_MASK) >> | ||
512 | MXC_CCM_CBCDR_PERCLK_PRED2_OFFSET) + 1; | ||
513 | podf = ((reg & MXC_CCM_CBCDR_PERCLK_PODF_MASK) >> | ||
514 | MXC_CCM_CBCDR_PERCLK_PODF_OFFSET) + 1; | ||
515 | return parent_rate / (prediv1 * prediv2 * podf); | ||
516 | } else if (clk->parent == &ipg_clk) | ||
517 | return parent_rate; | ||
518 | else | ||
519 | BUG(); | ||
520 | } | ||
521 | |||
522 | static int _clk_ipg_per_set_parent(struct clk *clk, struct clk *parent) | ||
523 | { | ||
524 | u32 reg; | ||
525 | |||
526 | reg = __raw_readl(MXC_CCM_CBCMR); | ||
527 | |||
528 | reg &= ~MXC_CCM_CBCMR_PERCLK_LP_APM_CLK_SEL; | ||
529 | reg &= ~MXC_CCM_CBCMR_PERCLK_IPG_CLK_SEL; | ||
530 | |||
531 | if (parent == &ipg_clk) | ||
532 | reg |= MXC_CCM_CBCMR_PERCLK_IPG_CLK_SEL; | ||
533 | else if (parent == &lp_apm_clk) | ||
534 | reg |= MXC_CCM_CBCMR_PERCLK_LP_APM_CLK_SEL; | ||
535 | else if (parent != &main_bus_clk) | ||
536 | return -EINVAL; | ||
537 | |||
538 | __raw_writel(reg, MXC_CCM_CBCMR); | ||
539 | |||
540 | return 0; | ||
541 | } | ||
542 | |||
543 | static unsigned long clk_uart_get_rate(struct clk *clk) | ||
544 | { | ||
545 | u32 reg, prediv, podf; | ||
546 | unsigned long parent_rate; | ||
547 | |||
548 | parent_rate = clk_get_rate(clk->parent); | ||
549 | |||
550 | reg = __raw_readl(MXC_CCM_CSCDR1); | ||
551 | prediv = ((reg & MXC_CCM_CSCDR1_UART_CLK_PRED_MASK) >> | ||
552 | MXC_CCM_CSCDR1_UART_CLK_PRED_OFFSET) + 1; | ||
553 | podf = ((reg & MXC_CCM_CSCDR1_UART_CLK_PODF_MASK) >> | ||
554 | MXC_CCM_CSCDR1_UART_CLK_PODF_OFFSET) + 1; | ||
555 | |||
556 | return parent_rate / (prediv * podf); | ||
557 | } | ||
558 | |||
559 | static int _clk_uart_set_parent(struct clk *clk, struct clk *parent) | ||
560 | { | ||
561 | u32 reg, mux; | ||
562 | |||
563 | mux = _get_mux(parent, &pll1_sw_clk, &pll2_sw_clk, &pll3_sw_clk, | ||
564 | &lp_apm_clk); | ||
565 | reg = __raw_readl(MXC_CCM_CSCMR1) & ~MXC_CCM_CSCMR1_UART_CLK_SEL_MASK; | ||
566 | reg |= mux << MXC_CCM_CSCMR1_UART_CLK_SEL_OFFSET; | ||
567 | __raw_writel(reg, MXC_CCM_CSCMR1); | ||
568 | |||
569 | return 0; | ||
570 | } | ||
571 | |||
572 | static unsigned long get_high_reference_clock_rate(struct clk *clk) | ||
573 | { | ||
574 | return external_high_reference; | ||
575 | } | ||
576 | |||
577 | static unsigned long get_low_reference_clock_rate(struct clk *clk) | ||
578 | { | ||
579 | return external_low_reference; | ||
580 | } | ||
581 | |||
582 | static unsigned long get_oscillator_reference_clock_rate(struct clk *clk) | ||
583 | { | ||
584 | return oscillator_reference; | ||
585 | } | ||
586 | |||
587 | static unsigned long get_ckih2_reference_clock_rate(struct clk *clk) | ||
588 | { | ||
589 | return ckih2_reference; | ||
590 | } | ||
591 | |||
592 | /* External high frequency clock */ | ||
593 | static struct clk ckih_clk = { | ||
594 | .get_rate = get_high_reference_clock_rate, | ||
595 | }; | ||
596 | |||
597 | static struct clk ckih2_clk = { | ||
598 | .get_rate = get_ckih2_reference_clock_rate, | ||
599 | }; | ||
600 | |||
601 | static struct clk osc_clk = { | ||
602 | .get_rate = get_oscillator_reference_clock_rate, | ||
603 | }; | ||
604 | |||
605 | /* External low frequency (32kHz) clock */ | ||
606 | static struct clk ckil_clk = { | ||
607 | .get_rate = get_low_reference_clock_rate, | ||
608 | }; | ||
609 | |||
610 | static struct clk pll1_main_clk = { | ||
611 | .parent = &osc_clk, | ||
612 | .get_rate = clk_pll_get_rate, | ||
613 | .enable = _clk_pll_enable, | ||
614 | .disable = _clk_pll_disable, | ||
615 | }; | ||
616 | |||
617 | /* Clock tree block diagram (WIP): | ||
618 | * CCM: Clock Controller Module | ||
619 | * | ||
620 | * PLL output -> | | ||
621 | * | CCM Switcher -> CCM_CLK_ROOT_GEN -> | ||
622 | * PLL bypass -> | | ||
623 | * | ||
624 | */ | ||
625 | |||
626 | /* PLL1 SW supplies to ARM core */ | ||
627 | static struct clk pll1_sw_clk = { | ||
628 | .parent = &pll1_main_clk, | ||
629 | .set_parent = _clk_pll1_sw_set_parent, | ||
630 | .get_rate = clk_pll1_sw_get_rate, | ||
631 | }; | ||
632 | |||
633 | /* PLL2 SW supplies to AXI/AHB/IP buses */ | ||
634 | static struct clk pll2_sw_clk = { | ||
635 | .parent = &osc_clk, | ||
636 | .get_rate = clk_pll_get_rate, | ||
637 | .set_rate = _clk_pll_set_rate, | ||
638 | .set_parent = _clk_pll2_sw_set_parent, | ||
639 | .enable = _clk_pll_enable, | ||
640 | .disable = _clk_pll_disable, | ||
641 | }; | ||
642 | |||
643 | /* PLL3 SW supplies to serial clocks like USB, SSI, etc. */ | ||
644 | static struct clk pll3_sw_clk = { | ||
645 | .parent = &osc_clk, | ||
646 | .set_rate = _clk_pll_set_rate, | ||
647 | .get_rate = clk_pll_get_rate, | ||
648 | .enable = _clk_pll_enable, | ||
649 | .disable = _clk_pll_disable, | ||
650 | }; | ||
651 | |||
652 | /* Low-power Audio Playback Mode clock */ | ||
653 | static struct clk lp_apm_clk = { | ||
654 | .parent = &osc_clk, | ||
655 | .set_parent = _clk_lp_apm_set_parent, | ||
656 | }; | ||
657 | |||
658 | static struct clk periph_apm_clk = { | ||
659 | .parent = &pll1_sw_clk, | ||
660 | .set_parent = _clk_periph_apm_set_parent, | ||
661 | }; | ||
662 | |||
663 | static struct clk cpu_clk = { | ||
664 | .parent = &pll1_sw_clk, | ||
665 | .get_rate = clk_arm_get_rate, | ||
666 | }; | ||
667 | |||
668 | static struct clk ahb_clk = { | ||
669 | .parent = &main_bus_clk, | ||
670 | .get_rate = clk_ahb_get_rate, | ||
671 | .set_rate = _clk_ahb_set_rate, | ||
672 | .round_rate = _clk_ahb_round_rate, | ||
673 | }; | ||
674 | |||
675 | /* Main IP interface clock for access to registers */ | ||
676 | static struct clk ipg_clk = { | ||
677 | .parent = &ahb_clk, | ||
678 | .get_rate = clk_ipg_get_rate, | ||
679 | }; | ||
680 | |||
681 | static struct clk ipg_perclk = { | ||
682 | .parent = &lp_apm_clk, | ||
683 | .get_rate = clk_ipg_per_get_rate, | ||
684 | .set_parent = _clk_ipg_per_set_parent, | ||
685 | }; | ||
686 | |||
687 | static struct clk uart_root_clk = { | ||
688 | .parent = &pll2_sw_clk, | ||
689 | .get_rate = clk_uart_get_rate, | ||
690 | .set_parent = _clk_uart_set_parent, | ||
691 | }; | ||
692 | |||
693 | static struct clk ahb_max_clk = { | ||
694 | .parent = &ahb_clk, | ||
695 | .enable_reg = MXC_CCM_CCGR0, | ||
696 | .enable_shift = MXC_CCM_CCGRx_CG14_OFFSET, | ||
697 | .enable = _clk_max_enable, | ||
698 | .disable = _clk_max_disable, | ||
699 | }; | ||
700 | |||
701 | static struct clk aips_tz1_clk = { | ||
702 | .parent = &ahb_clk, | ||
703 | .secondary = &ahb_max_clk, | ||
704 | .enable_reg = MXC_CCM_CCGR0, | ||
705 | .enable_shift = MXC_CCM_CCGRx_CG12_OFFSET, | ||
706 | .enable = _clk_ccgr_enable, | ||
707 | .disable = _clk_ccgr_disable_inwait, | ||
708 | }; | ||
709 | |||
710 | static struct clk aips_tz2_clk = { | ||
711 | .parent = &ahb_clk, | ||
712 | .secondary = &ahb_max_clk, | ||
713 | .enable_reg = MXC_CCM_CCGR0, | ||
714 | .enable_shift = MXC_CCM_CCGRx_CG13_OFFSET, | ||
715 | .enable = _clk_ccgr_enable, | ||
716 | .disable = _clk_ccgr_disable_inwait, | ||
717 | }; | ||
718 | |||
719 | static struct clk gpt_32k_clk = { | ||
720 | .id = 0, | ||
721 | .parent = &ckil_clk, | ||
722 | }; | ||
723 | |||
724 | #define DEFINE_CLOCK(name, i, er, es, gr, sr, p, s) \ | ||
725 | static struct clk name = { \ | ||
726 | .id = i, \ | ||
727 | .enable_reg = er, \ | ||
728 | .enable_shift = es, \ | ||
729 | .get_rate = gr, \ | ||
730 | .set_rate = sr, \ | ||
731 | .enable = _clk_ccgr_enable, \ | ||
732 | .disable = _clk_ccgr_disable, \ | ||
733 | .parent = p, \ | ||
734 | .secondary = s, \ | ||
735 | } | ||
736 | |||
737 | /* DEFINE_CLOCK(name, id, enable_reg, enable_shift, | ||
738 | get_rate, set_rate, parent, secondary); */ | ||
739 | |||
740 | /* Shared peripheral bus arbiter */ | ||
741 | DEFINE_CLOCK(spba_clk, 0, MXC_CCM_CCGR5, MXC_CCM_CCGRx_CG0_OFFSET, | ||
742 | NULL, NULL, &ipg_clk, NULL); | ||
743 | |||
744 | /* UART */ | ||
745 | DEFINE_CLOCK(uart1_clk, 0, MXC_CCM_CCGR1, MXC_CCM_CCGRx_CG4_OFFSET, | ||
746 | NULL, NULL, &uart_root_clk, NULL); | ||
747 | DEFINE_CLOCK(uart2_clk, 1, MXC_CCM_CCGR1, MXC_CCM_CCGRx_CG6_OFFSET, | ||
748 | NULL, NULL, &uart_root_clk, NULL); | ||
749 | DEFINE_CLOCK(uart3_clk, 2, MXC_CCM_CCGR1, MXC_CCM_CCGRx_CG8_OFFSET, | ||
750 | NULL, NULL, &uart_root_clk, NULL); | ||
751 | DEFINE_CLOCK(uart1_ipg_clk, 0, MXC_CCM_CCGR1, MXC_CCM_CCGRx_CG3_OFFSET, | ||
752 | NULL, NULL, &ipg_clk, &aips_tz1_clk); | ||
753 | DEFINE_CLOCK(uart2_ipg_clk, 1, MXC_CCM_CCGR1, MXC_CCM_CCGRx_CG5_OFFSET, | ||
754 | NULL, NULL, &ipg_clk, &aips_tz1_clk); | ||
755 | DEFINE_CLOCK(uart3_ipg_clk, 2, MXC_CCM_CCGR1, MXC_CCM_CCGRx_CG7_OFFSET, | ||
756 | NULL, NULL, &ipg_clk, &spba_clk); | ||
757 | |||
758 | /* GPT */ | ||
759 | DEFINE_CLOCK(gpt_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG9_OFFSET, | ||
760 | NULL, NULL, &ipg_perclk, NULL); | ||
761 | DEFINE_CLOCK(gpt_ipg_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG10_OFFSET, | ||
762 | NULL, NULL, &ipg_clk, NULL); | ||
763 | |||
764 | /* FEC */ | ||
765 | DEFINE_CLOCK(fec_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG12_OFFSET, | ||
766 | NULL, NULL, &ipg_clk, NULL); | ||
767 | |||
768 | #define _REGISTER_CLOCK(d, n, c) \ | ||
769 | { \ | ||
770 | .dev_id = d, \ | ||
771 | .con_id = n, \ | ||
772 | .clk = &c, \ | ||
773 | }, | ||
774 | |||
775 | static struct clk_lookup lookups[] = { | ||
776 | _REGISTER_CLOCK("imx-uart.0", NULL, uart1_clk) | ||
777 | _REGISTER_CLOCK("imx-uart.1", NULL, uart2_clk) | ||
778 | _REGISTER_CLOCK("imx-uart.2", NULL, uart3_clk) | ||
779 | _REGISTER_CLOCK(NULL, "gpt", gpt_clk) | ||
780 | _REGISTER_CLOCK("fec.0", NULL, fec_clk) | ||
781 | }; | ||
782 | |||
783 | static void clk_tree_init(void) | ||
784 | { | ||
785 | u32 reg; | ||
786 | |||
787 | ipg_perclk.set_parent(&ipg_perclk, &lp_apm_clk); | ||
788 | |||
789 | /* | ||
790 | * Initialise the IPG PER CLK dividers to 3. IPG_PER_CLK should be at | ||
791 | * 8MHz, its derived from lp_apm. | ||
792 | * | ||
793 | * FIXME: Verify if true for all boards | ||
794 | */ | ||
795 | reg = __raw_readl(MXC_CCM_CBCDR); | ||
796 | reg &= ~MXC_CCM_CBCDR_PERCLK_PRED1_MASK; | ||
797 | reg &= ~MXC_CCM_CBCDR_PERCLK_PRED2_MASK; | ||
798 | reg &= ~MXC_CCM_CBCDR_PERCLK_PODF_MASK; | ||
799 | reg |= (2 << MXC_CCM_CBCDR_PERCLK_PRED1_OFFSET); | ||
800 | __raw_writel(reg, MXC_CCM_CBCDR); | ||
801 | } | ||
802 | |||
803 | int __init mx51_clocks_init(unsigned long ckil, unsigned long osc, | ||
804 | unsigned long ckih1, unsigned long ckih2) | ||
805 | { | ||
806 | int i; | ||
807 | |||
808 | external_low_reference = ckil; | ||
809 | external_high_reference = ckih1; | ||
810 | ckih2_reference = ckih2; | ||
811 | oscillator_reference = osc; | ||
812 | |||
813 | for (i = 0; i < ARRAY_SIZE(lookups); i++) | ||
814 | clkdev_add(&lookups[i]); | ||
815 | |||
816 | clk_tree_init(); | ||
817 | |||
818 | clk_enable(&cpu_clk); | ||
819 | clk_enable(&main_bus_clk); | ||
820 | |||
821 | /* System timer */ | ||
822 | mxc_timer_init(&gpt_clk, MX51_IO_ADDRESS(MX51_GPT1_BASE_ADDR), | ||
823 | MX51_MXC_INT_GPT); | ||
824 | return 0; | ||
825 | } | ||
diff --git a/arch/arm/mach-mx5/cpu.c b/arch/arm/mach-mx5/cpu.c new file mode 100644 index 00000000000..41c769f08c4 --- /dev/null +++ b/arch/arm/mach-mx5/cpu.c | |||
@@ -0,0 +1,47 @@ | |||
1 | /* | ||
2 | * Copyright 2008-2009 Freescale Semiconductor, Inc. All Rights Reserved. | ||
3 | * | ||
4 | * The code contained herein is licensed under the GNU General Public | ||
5 | * License. You may obtain a copy of the GNU General Public License | ||
6 | * Version 2 or later at the following locations: | ||
7 | * | ||
8 | * http://www.opensource.org/licenses/gpl-license.html | ||
9 | * http://www.gnu.org/copyleft/gpl.html | ||
10 | * | ||
11 | * This file contains the CPU initialization code. | ||
12 | */ | ||
13 | |||
14 | #include <linux/types.h> | ||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/init.h> | ||
17 | #include <mach/hardware.h> | ||
18 | #include <asm/io.h> | ||
19 | |||
20 | static int __init post_cpu_init(void) | ||
21 | { | ||
22 | unsigned int reg; | ||
23 | void __iomem *base; | ||
24 | |||
25 | if (!cpu_is_mx51()) | ||
26 | return 0; | ||
27 | |||
28 | base = MX51_IO_ADDRESS(MX51_AIPS1_BASE_ADDR); | ||
29 | __raw_writel(0x0, base + 0x40); | ||
30 | __raw_writel(0x0, base + 0x44); | ||
31 | __raw_writel(0x0, base + 0x48); | ||
32 | __raw_writel(0x0, base + 0x4C); | ||
33 | reg = __raw_readl(base + 0x50) & 0x00FFFFFF; | ||
34 | __raw_writel(reg, base + 0x50); | ||
35 | |||
36 | base = MX51_IO_ADDRESS(MX51_AIPS2_BASE_ADDR); | ||
37 | __raw_writel(0x0, base + 0x40); | ||
38 | __raw_writel(0x0, base + 0x44); | ||
39 | __raw_writel(0x0, base + 0x48); | ||
40 | __raw_writel(0x0, base + 0x4C); | ||
41 | reg = __raw_readl(base + 0x50) & 0x00FFFFFF; | ||
42 | __raw_writel(reg, base + 0x50); | ||
43 | |||
44 | return 0; | ||
45 | } | ||
46 | |||
47 | postcore_initcall(post_cpu_init); | ||
diff --git a/arch/arm/mach-mx5/crm_regs.h b/arch/arm/mach-mx5/crm_regs.h new file mode 100644 index 00000000000..c776b9af062 --- /dev/null +++ b/arch/arm/mach-mx5/crm_regs.h | |||
@@ -0,0 +1,583 @@ | |||
1 | /* | ||
2 | * Copyright 2008-2009 Freescale Semiconductor, Inc. All Rights Reserved. | ||
3 | * | ||
4 | * The code contained herein is licensed under the GNU General Public | ||
5 | * License. You may obtain a copy of the GNU General Public License | ||
6 | * Version 2 or later at the following locations: | ||
7 | * | ||
8 | * http://www.opensource.org/licenses/gpl-license.html | ||
9 | * http://www.gnu.org/copyleft/gpl.html | ||
10 | */ | ||
11 | #ifndef __ARCH_ARM_MACH_MX51_CRM_REGS_H__ | ||
12 | #define __ARCH_ARM_MACH_MX51_CRM_REGS_H__ | ||
13 | |||
14 | #define MX51_CCM_BASE MX51_IO_ADDRESS(MX51_CCM_BASE_ADDR) | ||
15 | #define MX51_DPLL1_BASE MX51_IO_ADDRESS(MX51_PLL1_BASE_ADDR) | ||
16 | #define MX51_DPLL2_BASE MX51_IO_ADDRESS(MX51_PLL2_BASE_ADDR) | ||
17 | #define MX51_DPLL3_BASE MX51_IO_ADDRESS(MX51_PLL3_BASE_ADDR) | ||
18 | #define MX51_CORTEXA8_BASE MX51_IO_ADDRESS(MX51_ARM_BASE_ADDR) | ||
19 | #define MX51_GPC_BASE MX51_IO_ADDRESS(MX51_GPC_BASE_ADDR) | ||
20 | |||
21 | /* PLL Register Offsets */ | ||
22 | #define MXC_PLL_DP_CTL 0x00 | ||
23 | #define MXC_PLL_DP_CONFIG 0x04 | ||
24 | #define MXC_PLL_DP_OP 0x08 | ||
25 | #define MXC_PLL_DP_MFD 0x0C | ||
26 | #define MXC_PLL_DP_MFN 0x10 | ||
27 | #define MXC_PLL_DP_MFNMINUS 0x14 | ||
28 | #define MXC_PLL_DP_MFNPLUS 0x18 | ||
29 | #define MXC_PLL_DP_HFS_OP 0x1C | ||
30 | #define MXC_PLL_DP_HFS_MFD 0x20 | ||
31 | #define MXC_PLL_DP_HFS_MFN 0x24 | ||
32 | #define MXC_PLL_DP_MFN_TOGC 0x28 | ||
33 | #define MXC_PLL_DP_DESTAT 0x2c | ||
34 | |||
35 | /* PLL Register Bit definitions */ | ||
36 | #define MXC_PLL_DP_CTL_MUL_CTRL 0x2000 | ||
37 | #define MXC_PLL_DP_CTL_DPDCK0_2_EN 0x1000 | ||
38 | #define MXC_PLL_DP_CTL_DPDCK0_2_OFFSET 12 | ||
39 | #define MXC_PLL_DP_CTL_ADE 0x800 | ||
40 | #define MXC_PLL_DP_CTL_REF_CLK_DIV 0x400 | ||
41 | #define MXC_PLL_DP_CTL_REF_CLK_SEL_MASK (3 << 8) | ||
42 | #define MXC_PLL_DP_CTL_REF_CLK_SEL_OFFSET 8 | ||
43 | #define MXC_PLL_DP_CTL_HFSM 0x80 | ||
44 | #define MXC_PLL_DP_CTL_PRE 0x40 | ||
45 | #define MXC_PLL_DP_CTL_UPEN 0x20 | ||
46 | #define MXC_PLL_DP_CTL_RST 0x10 | ||
47 | #define MXC_PLL_DP_CTL_RCP 0x8 | ||
48 | #define MXC_PLL_DP_CTL_PLM 0x4 | ||
49 | #define MXC_PLL_DP_CTL_BRM0 0x2 | ||
50 | #define MXC_PLL_DP_CTL_LRF 0x1 | ||
51 | |||
52 | #define MXC_PLL_DP_CONFIG_BIST 0x8 | ||
53 | #define MXC_PLL_DP_CONFIG_SJC_CE 0x4 | ||
54 | #define MXC_PLL_DP_CONFIG_AREN 0x2 | ||
55 | #define MXC_PLL_DP_CONFIG_LDREQ 0x1 | ||
56 | |||
57 | #define MXC_PLL_DP_OP_MFI_OFFSET 4 | ||
58 | #define MXC_PLL_DP_OP_MFI_MASK (0xF << 4) | ||
59 | #define MXC_PLL_DP_OP_PDF_OFFSET 0 | ||
60 | #define MXC_PLL_DP_OP_PDF_MASK 0xF | ||
61 | |||
62 | #define MXC_PLL_DP_MFD_OFFSET 0 | ||
63 | #define MXC_PLL_DP_MFD_MASK 0x07FFFFFF | ||
64 | |||
65 | #define MXC_PLL_DP_MFN_OFFSET 0x0 | ||
66 | #define MXC_PLL_DP_MFN_MASK 0x07FFFFFF | ||
67 | |||
68 | #define MXC_PLL_DP_MFN_TOGC_TOG_DIS (1 << 17) | ||
69 | #define MXC_PLL_DP_MFN_TOGC_TOG_EN (1 << 16) | ||
70 | #define MXC_PLL_DP_MFN_TOGC_CNT_OFFSET 0x0 | ||
71 | #define MXC_PLL_DP_MFN_TOGC_CNT_MASK 0xFFFF | ||
72 | |||
73 | #define MXC_PLL_DP_DESTAT_TOG_SEL (1 << 31) | ||
74 | #define MXC_PLL_DP_DESTAT_MFN 0x07FFFFFF | ||
75 | |||
76 | /* Register addresses of CCM*/ | ||
77 | #define MXC_CCM_CCR (MX51_CCM_BASE + 0x00) | ||
78 | #define MXC_CCM_CCDR (MX51_CCM_BASE + 0x04) | ||
79 | #define MXC_CCM_CSR (MX51_CCM_BASE + 0x08) | ||
80 | #define MXC_CCM_CCSR (MX51_CCM_BASE + 0x0C) | ||
81 | #define MXC_CCM_CACRR (MX51_CCM_BASE + 0x10) | ||
82 | #define MXC_CCM_CBCDR (MX51_CCM_BASE + 0x14) | ||
83 | #define MXC_CCM_CBCMR (MX51_CCM_BASE + 0x18) | ||
84 | #define MXC_CCM_CSCMR1 (MX51_CCM_BASE + 0x1C) | ||
85 | #define MXC_CCM_CSCMR2 (MX51_CCM_BASE + 0x20) | ||
86 | #define MXC_CCM_CSCDR1 (MX51_CCM_BASE + 0x24) | ||
87 | #define MXC_CCM_CS1CDR (MX51_CCM_BASE + 0x28) | ||
88 | #define MXC_CCM_CS2CDR (MX51_CCM_BASE + 0x2C) | ||
89 | #define MXC_CCM_CDCDR (MX51_CCM_BASE + 0x30) | ||
90 | #define MXC_CCM_CHSCDR (MX51_CCM_BASE + 0x34) | ||
91 | #define MXC_CCM_CSCDR2 (MX51_CCM_BASE + 0x38) | ||
92 | #define MXC_CCM_CSCDR3 (MX51_CCM_BASE + 0x3C) | ||
93 | #define MXC_CCM_CSCDR4 (MX51_CCM_BASE + 0x40) | ||
94 | #define MXC_CCM_CWDR (MX51_CCM_BASE + 0x44) | ||
95 | #define MXC_CCM_CDHIPR (MX51_CCM_BASE + 0x48) | ||
96 | #define MXC_CCM_CDCR (MX51_CCM_BASE + 0x4C) | ||
97 | #define MXC_CCM_CTOR (MX51_CCM_BASE + 0x50) | ||
98 | #define MXC_CCM_CLPCR (MX51_CCM_BASE + 0x54) | ||
99 | #define MXC_CCM_CISR (MX51_CCM_BASE + 0x58) | ||
100 | #define MXC_CCM_CIMR (MX51_CCM_BASE + 0x5C) | ||
101 | #define MXC_CCM_CCOSR (MX51_CCM_BASE + 0x60) | ||
102 | #define MXC_CCM_CGPR (MX51_CCM_BASE + 0x64) | ||
103 | #define MXC_CCM_CCGR0 (MX51_CCM_BASE + 0x68) | ||
104 | #define MXC_CCM_CCGR1 (MX51_CCM_BASE + 0x6C) | ||
105 | #define MXC_CCM_CCGR2 (MX51_CCM_BASE + 0x70) | ||
106 | #define MXC_CCM_CCGR3 (MX51_CCM_BASE + 0x74) | ||
107 | #define MXC_CCM_CCGR4 (MX51_CCM_BASE + 0x78) | ||
108 | #define MXC_CCM_CCGR5 (MX51_CCM_BASE + 0x7C) | ||
109 | #define MXC_CCM_CCGR6 (MX51_CCM_BASE + 0x80) | ||
110 | #define MXC_CCM_CMEOR (MX51_CCM_BASE + 0x84) | ||
111 | |||
112 | /* Define the bits in register CCR */ | ||
113 | #define MXC_CCM_CCR_COSC_EN (1 << 12) | ||
114 | #define MXC_CCM_CCR_FPM_MULT_MASK (1 << 11) | ||
115 | #define MXC_CCM_CCR_CAMP2_EN (1 << 10) | ||
116 | #define MXC_CCM_CCR_CAMP1_EN (1 << 9) | ||
117 | #define MXC_CCM_CCR_FPM_EN (1 << 8) | ||
118 | #define MXC_CCM_CCR_OSCNT_OFFSET (0) | ||
119 | #define MXC_CCM_CCR_OSCNT_MASK (0xFF) | ||
120 | |||
121 | /* Define the bits in register CCDR */ | ||
122 | #define MXC_CCM_CCDR_HSC_HS_MASK (0x1 << 18) | ||
123 | #define MXC_CCM_CCDR_IPU_HS_MASK (0x1 << 17) | ||
124 | #define MXC_CCM_CCDR_EMI_HS_MASK (0x1 << 16) | ||
125 | |||
126 | /* Define the bits in register CSR */ | ||
127 | #define MXC_CCM_CSR_COSR_READY (1 << 5) | ||
128 | #define MXC_CCM_CSR_LVS_VALUE (1 << 4) | ||
129 | #define MXC_CCM_CSR_CAMP2_READY (1 << 3) | ||
130 | #define MXC_CCM_CSR_CAMP1_READY (1 << 2) | ||
131 | #define MXC_CCM_CSR_FPM_READY (1 << 1) | ||
132 | #define MXC_CCM_CSR_REF_EN_B (1 << 0) | ||
133 | |||
134 | /* Define the bits in register CCSR */ | ||
135 | #define MXC_CCM_CCSR_LP_APM_SEL (0x1 << 9) | ||
136 | #define MXC_CCM_CCSR_STEP_SEL_OFFSET (7) | ||
137 | #define MXC_CCM_CCSR_STEP_SEL_MASK (0x3 << 7) | ||
138 | #define MXC_CCM_CCSR_STEP_SEL_LP_APM 0 | ||
139 | #define MXC_CCM_CCSR_STEP_SEL_PLL1_BYPASS 1 /* Only when JTAG connected? */ | ||
140 | #define MXC_CCM_CCSR_STEP_SEL_PLL2_DIVIDED 2 | ||
141 | #define MXC_CCM_CCSR_STEP_SEL_PLL3_DIVIDED 3 | ||
142 | #define MXC_CCM_CCSR_PLL2_PODF_OFFSET (5) | ||
143 | #define MXC_CCM_CCSR_PLL2_PODF_MASK (0x3 << 5) | ||
144 | #define MXC_CCM_CCSR_PLL3_PODF_OFFSET (3) | ||
145 | #define MXC_CCM_CCSR_PLL3_PODF_MASK (0x3 << 3) | ||
146 | #define MXC_CCM_CCSR_PLL1_SW_CLK_SEL (1 << 2) /* 0: pll1_main_clk, | ||
147 | 1: step_clk */ | ||
148 | #define MXC_CCM_CCSR_PLL2_SW_CLK_SEL (1 << 1) | ||
149 | #define MXC_CCM_CCSR_PLL3_SW_CLK_SEL (1 << 0) | ||
150 | |||
151 | /* Define the bits in register CACRR */ | ||
152 | #define MXC_CCM_CACRR_ARM_PODF_OFFSET (0) | ||
153 | #define MXC_CCM_CACRR_ARM_PODF_MASK (0x7) | ||
154 | |||
155 | /* Define the bits in register CBCDR */ | ||
156 | #define MXC_CCM_CBCDR_EMI_CLK_SEL (0x1 << 26) | ||
157 | #define MXC_CCM_CBCDR_PERIPH_CLK_SEL (0x1 << 25) | ||
158 | #define MXC_CCM_CBCDR_DDR_HF_SEL_OFFSET (30) | ||
159 | #define MXC_CCM_CBCDR_DDR_HF_SEL (0x1 << 30) | ||
160 | #define MXC_CCM_CBCDR_DDR_PODF_OFFSET (27) | ||
161 | #define MXC_CCM_CBCDR_DDR_PODF_MASK (0x7 << 27) | ||
162 | #define MXC_CCM_CBCDR_EMI_PODF_OFFSET (22) | ||
163 | #define MXC_CCM_CBCDR_EMI_PODF_MASK (0x7 << 22) | ||
164 | #define MXC_CCM_CBCDR_AXI_B_PODF_OFFSET (19) | ||
165 | #define MXC_CCM_CBCDR_AXI_B_PODF_MASK (0x7 << 19) | ||
166 | #define MXC_CCM_CBCDR_AXI_A_PODF_OFFSET (16) | ||
167 | #define MXC_CCM_CBCDR_AXI_A_PODF_MASK (0x7 << 16) | ||
168 | #define MXC_CCM_CBCDR_NFC_PODF_OFFSET (13) | ||
169 | #define MXC_CCM_CBCDR_NFC_PODF_MASK (0x7 << 13) | ||
170 | #define MXC_CCM_CBCDR_AHB_PODF_OFFSET (10) | ||
171 | #define MXC_CCM_CBCDR_AHB_PODF_MASK (0x7 << 10) | ||
172 | #define MXC_CCM_CBCDR_IPG_PODF_OFFSET (8) | ||
173 | #define MXC_CCM_CBCDR_IPG_PODF_MASK (0x3 << 8) | ||
174 | #define MXC_CCM_CBCDR_PERCLK_PRED1_OFFSET (6) | ||
175 | #define MXC_CCM_CBCDR_PERCLK_PRED1_MASK (0x3 << 6) | ||
176 | #define MXC_CCM_CBCDR_PERCLK_PRED2_OFFSET (3) | ||
177 | #define MXC_CCM_CBCDR_PERCLK_PRED2_MASK (0x7 << 3) | ||
178 | #define MXC_CCM_CBCDR_PERCLK_PODF_OFFSET (0) | ||
179 | #define MXC_CCM_CBCDR_PERCLK_PODF_MASK (0x7) | ||
180 | |||
181 | /* Define the bits in register CBCMR */ | ||
182 | #define MXC_CCM_CBCMR_VPU_AXI_CLK_SEL_OFFSET (14) | ||
183 | #define MXC_CCM_CBCMR_VPU_AXI_CLK_SEL_MASK (0x3 << 14) | ||
184 | #define MXC_CCM_CBCMR_PERIPH_CLK_SEL_OFFSET (12) | ||
185 | #define MXC_CCM_CBCMR_PERIPH_CLK_SEL_MASK (0x3 << 12) | ||
186 | #define MXC_CCM_CBCMR_DDR_CLK_SEL_OFFSET (10) | ||
187 | #define MXC_CCM_CBCMR_DDR_CLK_SEL_MASK (0x3 << 10) | ||
188 | #define MXC_CCM_CBCMR_ARM_AXI_CLK_SEL_OFFSET (8) | ||
189 | #define MXC_CCM_CBCMR_ARM_AXI_CLK_SEL_MASK (0x3 << 8) | ||
190 | #define MXC_CCM_CBCMR_IPU_HSP_CLK_SEL_OFFSET (6) | ||
191 | #define MXC_CCM_CBCMR_IPU_HSP_CLK_SEL_MASK (0x3 << 6) | ||
192 | #define MXC_CCM_CBCMR_GPU_CLK_SEL_OFFSET (4) | ||
193 | #define MXC_CCM_CBCMR_GPU_CLK_SEL_MASK (0x3 << 4) | ||
194 | #define MXC_CCM_CBCMR_GPU2D_CLK_SEL_OFFSET (14) | ||
195 | #define MXC_CCM_CBCMR_GPU2D_CLK_SEL_MASK (0x3 << 14) | ||
196 | #define MXC_CCM_CBCMR_PERCLK_LP_APM_CLK_SEL (0x1 << 1) | ||
197 | #define MXC_CCM_CBCMR_PERCLK_IPG_CLK_SEL (0x1 << 0) | ||
198 | |||
199 | /* Define the bits in register CSCMR1 */ | ||
200 | #define MXC_CCM_CSCMR1_SSI_EXT2_CLK_SEL_OFFSET (30) | ||
201 | #define MXC_CCM_CSCMR1_SSI_EXT2_CLK_SEL_MASK (0x3 << 30) | ||
202 | #define MXC_CCM_CSCMR1_SSI_EXT1_CLK_SEL_OFFSET (28) | ||
203 | #define MXC_CCM_CSCMR1_SSI_EXT1_CLK_SEL_MASK (0x3 << 28) | ||
204 | #define MXC_CCM_CSCMR1_USB_PHY_CLK_SEL_OFFSET (26) | ||
205 | #define MXC_CCM_CSCMR1_USB_PHY_CLK_SEL (0x1 << 26) | ||
206 | #define MXC_CCM_CSCMR1_UART_CLK_SEL_OFFSET (24) | ||
207 | #define MXC_CCM_CSCMR1_UART_CLK_SEL_MASK (0x3 << 24) | ||
208 | #define MXC_CCM_CSCMR1_USBOH3_CLK_SEL_OFFSET (22) | ||
209 | #define MXC_CCM_CSCMR1_USBOH3_CLK_SEL_MASK (0x3 << 22) | ||
210 | #define MXC_CCM_CSCMR1_ESDHC1_MSHC1_CLK_SEL_OFFSET (20) | ||
211 | #define MXC_CCM_CSCMR1_ESDHC1_MSHC1_CLK_SEL_MASK (0x3 << 20) | ||
212 | #define MXC_CCM_CSCMR1_ESDHC3_CLK_SEL (0x1 << 19) | ||
213 | #define MXC_CCM_CSCMR1_ESDHC4_CLK_SEL (0x1 << 18) | ||
214 | #define MXC_CCM_CSCMR1_ESDHC2_MSHC2_CLK_SEL_OFFSET (16) | ||
215 | #define MXC_CCM_CSCMR1_ESDHC2_MSHC2_CLK_SEL_MASK (0x3 << 16) | ||
216 | #define MXC_CCM_CSCMR1_SSI1_CLK_SEL_OFFSET (14) | ||
217 | #define MXC_CCM_CSCMR1_SSI1_CLK_SEL_MASK (0x3 << 14) | ||
218 | #define MXC_CCM_CSCMR1_SSI2_CLK_SEL_OFFSET (12) | ||
219 | #define MXC_CCM_CSCMR1_SSI2_CLK_SEL_MASK (0x3 << 12) | ||
220 | #define MXC_CCM_CSCMR1_SSI3_CLK_SEL (0x1 << 11) | ||
221 | #define MXC_CCM_CSCMR1_VPU_RCLK_SEL (0x1 << 10) | ||
222 | #define MXC_CCM_CSCMR1_SSI_APM_CLK_SEL_OFFSET (8) | ||
223 | #define MXC_CCM_CSCMR1_SSI_APM_CLK_SEL_MASK (0x3 << 8) | ||
224 | #define MXC_CCM_CSCMR1_TVE_CLK_SEL (0x1 << 7) | ||
225 | #define MXC_CCM_CSCMR1_TVE_EXT_CLK_SEL (0x1 << 6) | ||
226 | #define MXC_CCM_CSCMR1_CSPI_CLK_SEL_OFFSET (4) | ||
227 | #define MXC_CCM_CSCMR1_CSPI_CLK_SEL_MASK (0x3 << 4) | ||
228 | #define MXC_CCM_CSCMR1_SPDIF_CLK_SEL_OFFSET (2) | ||
229 | #define MXC_CCM_CSCMR1_SPDIF_CLK_SEL_MASK (0x3 << 2) | ||
230 | #define MXC_CCM_CSCMR1_SSI_EXT2_COM_CLK_SEL (0x1 << 1) | ||
231 | #define MXC_CCM_CSCMR1_SSI_EXT1_COM_CLK_SEL (0x1) | ||
232 | |||
233 | /* Define the bits in register CSCMR2 */ | ||
234 | #define MXC_CCM_CSCMR2_DI_CLK_SEL_OFFSET(n) (26+n*3) | ||
235 | #define MXC_CCM_CSCMR2_DI_CLK_SEL_MASK(n) (0x7 << (26+n*3)) | ||
236 | #define MXC_CCM_CSCMR2_CSI_MCLK2_CLK_SEL_OFFSET (24) | ||
237 | #define MXC_CCM_CSCMR2_CSI_MCLK2_CLK_SEL_MASK (0x3 << 24) | ||
238 | #define MXC_CCM_CSCMR2_CSI_MCLK1_CLK_SEL_OFFSET (22) | ||
239 | #define MXC_CCM_CSCMR2_CSI_MCLK1_CLK_SEL_MASK (0x3 << 22) | ||
240 | #define MXC_CCM_CSCMR2_ESC_CLK_SEL_OFFSET (20) | ||
241 | #define MXC_CCM_CSCMR2_ESC_CLK_SEL_MASK (0x3 << 20) | ||
242 | #define MXC_CCM_CSCMR2_HSC2_CLK_SEL_OFFSET (18) | ||
243 | #define MXC_CCM_CSCMR2_HSC2_CLK_SEL_MASK (0x3 << 18) | ||
244 | #define MXC_CCM_CSCMR2_HSC1_CLK_SEL_OFFSET (16) | ||
245 | #define MXC_CCM_CSCMR2_HSC1_CLK_SEL_MASK (0x3 << 16) | ||
246 | #define MXC_CCM_CSCMR2_HSI2C_CLK_SEL_OFFSET (14) | ||
247 | #define MXC_CCM_CSCMR2_HSI2C_CLK_SEL_MASK (0x3 << 14) | ||
248 | #define MXC_CCM_CSCMR2_FIRI_CLK_SEL_OFFSET (12) | ||
249 | #define MXC_CCM_CSCMR2_FIRI_CLK_SEL_MASK (0x3 << 12) | ||
250 | #define MXC_CCM_CSCMR2_SIM_CLK_SEL_OFFSET (10) | ||
251 | #define MXC_CCM_CSCMR2_SIM_CLK_SEL_MASK (0x3 << 10) | ||
252 | #define MXC_CCM_CSCMR2_SLIMBUS_COM (0x1 << 9) | ||
253 | #define MXC_CCM_CSCMR2_SLIMBUS_CLK_SEL_OFFSET (6) | ||
254 | #define MXC_CCM_CSCMR2_SLIMBUS_CLK_SEL_MASK (0x7 << 6) | ||
255 | #define MXC_CCM_CSCMR2_SPDIF1_COM (1 << 5) | ||
256 | #define MXC_CCM_CSCMR2_SPDIF0_COM (1 << 4) | ||
257 | #define MXC_CCM_CSCMR2_SPDIF1_CLK_SEL_OFFSET (2) | ||
258 | #define MXC_CCM_CSCMR2_SPDIF1_CLK_SEL_MASK (0x3 << 2) | ||
259 | #define MXC_CCM_CSCMR2_SPDIF0_CLK_SEL_OFFSET (0) | ||
260 | #define MXC_CCM_CSCMR2_SPDIF0_CLK_SEL_MASK (0x3) | ||
261 | |||
262 | /* Define the bits in register CSCDR1 */ | ||
263 | #define MXC_CCM_CSCDR1_ESDHC2_MSHC2_CLK_PRED_OFFSET (22) | ||
264 | #define MXC_CCM_CSCDR1_ESDHC2_MSHC2_CLK_PRED_MASK (0x7 << 22) | ||
265 | #define MXC_CCM_CSCDR1_ESDHC2_MSHC2_CLK_PODF_OFFSET (19) | ||
266 | #define MXC_CCM_CSCDR1_ESDHC2_MSHC2_CLK_PODF_MASK (0x7 << 19) | ||
267 | #define MXC_CCM_CSCDR1_ESDHC1_MSHC1_CLK_PRED_OFFSET (16) | ||
268 | #define MXC_CCM_CSCDR1_ESDHC1_MSHC1_CLK_PRED_MASK (0x7 << 16) | ||
269 | #define MXC_CCM_CSCDR1_PGC_CLK_PODF_OFFSET (14) | ||
270 | #define MXC_CCM_CSCDR1_PGC_CLK_PODF_MASK (0x3 << 14) | ||
271 | #define MXC_CCM_CSCDR1_ESDHC1_MSHC1_CLK_PODF_OFFSET (11) | ||
272 | #define MXC_CCM_CSCDR1_ESDHC1_MSHC1_CLK_PODF_MASK (0x7 << 11) | ||
273 | #define MXC_CCM_CSCDR1_USBOH3_CLK_PRED_OFFSET (8) | ||
274 | #define MXC_CCM_CSCDR1_USBOH3_CLK_PRED_MASK (0x7 << 8) | ||
275 | #define MXC_CCM_CSCDR1_USBOH3_CLK_PODF_OFFSET (6) | ||
276 | #define MXC_CCM_CSCDR1_USBOH3_CLK_PODF_MASK (0x3 << 6) | ||
277 | #define MXC_CCM_CSCDR1_UART_CLK_PRED_OFFSET (3) | ||
278 | #define MXC_CCM_CSCDR1_UART_CLK_PRED_MASK (0x7 << 3) | ||
279 | #define MXC_CCM_CSCDR1_UART_CLK_PODF_OFFSET (0) | ||
280 | #define MXC_CCM_CSCDR1_UART_CLK_PODF_MASK (0x7) | ||
281 | |||
282 | /* Define the bits in register CS1CDR and CS2CDR */ | ||
283 | #define MXC_CCM_CS1CDR_SSI_EXT1_CLK_PRED_OFFSET (22) | ||
284 | #define MXC_CCM_CS1CDR_SSI_EXT1_CLK_PRED_MASK (0x7 << 22) | ||
285 | #define MXC_CCM_CS1CDR_SSI_EXT1_CLK_PODF_OFFSET (16) | ||
286 | #define MXC_CCM_CS1CDR_SSI_EXT1_CLK_PODF_MASK (0x3F << 16) | ||
287 | #define MXC_CCM_CS1CDR_SSI1_CLK_PRED_OFFSET (6) | ||
288 | #define MXC_CCM_CS1CDR_SSI1_CLK_PRED_MASK (0x7 << 6) | ||
289 | #define MXC_CCM_CS1CDR_SSI1_CLK_PODF_OFFSET (0) | ||
290 | #define MXC_CCM_CS1CDR_SSI1_CLK_PODF_MASK (0x3F) | ||
291 | |||
292 | #define MXC_CCM_CS2CDR_SSI_EXT2_CLK_PRED_OFFSET (22) | ||
293 | #define MXC_CCM_CS2CDR_SSI_EXT2_CLK_PRED_MASK (0x7 << 22) | ||
294 | #define MXC_CCM_CS2CDR_SSI_EXT2_CLK_PODF_OFFSET (16) | ||
295 | #define MXC_CCM_CS2CDR_SSI_EXT2_CLK_PODF_MASK (0x3F << 16) | ||
296 | #define MXC_CCM_CS2CDR_SSI2_CLK_PRED_OFFSET (6) | ||
297 | #define MXC_CCM_CS2CDR_SSI2_CLK_PRED_MASK (0x7 << 6) | ||
298 | #define MXC_CCM_CS2CDR_SSI2_CLK_PODF_OFFSET (0) | ||
299 | #define MXC_CCM_CS2CDR_SSI2_CLK_PODF_MASK (0x3F) | ||
300 | |||
301 | /* Define the bits in register CDCDR */ | ||
302 | #define MXC_CCM_CDCDR_TVE_CLK_PRED_OFFSET (28) | ||
303 | #define MXC_CCM_CDCDR_TVE_CLK_PRED_MASK (0x7 << 28) | ||
304 | #define MXC_CCM_CDCDR_SPDIF0_CLK_PRED_OFFSET (25) | ||
305 | #define MXC_CCM_CDCDR_SPDIF0_CLK_PRED_MASK (0x7 << 25) | ||
306 | #define MXC_CCM_CDCDR_SPDIF0_CLK_PODF_OFFSET (19) | ||
307 | #define MXC_CCM_CDCDR_SPDIF0_CLK_PODF_MASK (0x3F << 19) | ||
308 | #define MXC_CCM_CDCDR_SPDIF1_CLK_PRED_OFFSET (16) | ||
309 | #define MXC_CCM_CDCDR_SPDIF1_CLK_PRED_MASK (0x7 << 16) | ||
310 | #define MXC_CCM_CDCDR_SPDIF1_CLK_PODF_OFFSET (9) | ||
311 | #define MXC_CCM_CDCDR_SPDIF1_CLK_PODF_MASK (0x3F << 9) | ||
312 | #define MXC_CCM_CDCDR_DI_CLK_PRED_OFFSET (6) | ||
313 | #define MXC_CCM_CDCDR_DI_CLK_PRED_MASK (0x7 << 6) | ||
314 | #define MXC_CCM_CDCDR_USB_PHY_PRED_OFFSET (3) | ||
315 | #define MXC_CCM_CDCDR_USB_PHY_PRED_MASK (0x7 << 3) | ||
316 | #define MXC_CCM_CDCDR_USB_PHY_PODF_OFFSET (0) | ||
317 | #define MXC_CCM_CDCDR_USB_PHY_PODF_MASK (0x7) | ||
318 | |||
319 | /* Define the bits in register CHSCCDR */ | ||
320 | #define MXC_CCM_CHSCCDR_ESC_CLK_PRED_OFFSET (12) | ||
321 | #define MXC_CCM_CHSCCDR_ESC_CLK_PRED_MASK (0x7 << 12) | ||
322 | #define MXC_CCM_CHSCCDR_ESC_CLK_PODF_OFFSET (6) | ||
323 | #define MXC_CCM_CHSCCDR_ESC_CLK_PODF_MASK (0x3F << 6) | ||
324 | #define MXC_CCM_CHSCCDR_HSC2_CLK_PODF_OFFSET (3) | ||
325 | #define MXC_CCM_CHSCCDR_HSC2_CLK_PODF_MASK (0x7 << 3) | ||
326 | #define MXC_CCM_CHSCCDR_HSC1_CLK_PODF_OFFSET (0) | ||
327 | #define MXC_CCM_CHSCCDR_HSC1_CLK_PODF_MASK (0x7) | ||
328 | |||
329 | /* Define the bits in register CSCDR2 */ | ||
330 | #define MXC_CCM_CSCDR2_CSPI_CLK_PRED_OFFSET (25) | ||
331 | #define MXC_CCM_CSCDR2_CSPI_CLK_PRED_MASK (0x7 << 25) | ||
332 | #define MXC_CCM_CSCDR2_CSPI_CLK_PODF_OFFSET (19) | ||
333 | #define MXC_CCM_CSCDR2_CSPI_CLK_PODF_MASK (0x3F << 19) | ||
334 | #define MXC_CCM_CSCDR2_SIM_CLK_PRED_OFFSET (16) | ||
335 | #define MXC_CCM_CSCDR2_SIM_CLK_PRED_MASK (0x7 << 16) | ||
336 | #define MXC_CCM_CSCDR2_SIM_CLK_PODF_OFFSET (9) | ||
337 | #define MXC_CCM_CSCDR2_SIM_CLK_PODF_MASK (0x3F << 9) | ||
338 | #define MXC_CCM_CSCDR2_SLIMBUS_CLK_PRED_OFFSET (6) | ||
339 | #define MXC_CCM_CSCDR2_SLIMBUS_PRED_MASK (0x7 << 6) | ||
340 | #define MXC_CCM_CSCDR2_SLIMBUS_PODF_OFFSET (0) | ||
341 | #define MXC_CCM_CSCDR2_SLIMBUS_PODF_MASK (0x3F) | ||
342 | |||
343 | /* Define the bits in register CSCDR3 */ | ||
344 | #define MXC_CCM_CSCDR3_HSI2C_CLK_PRED_OFFSET (16) | ||
345 | #define MXC_CCM_CSCDR3_HSI2C_CLK_PRED_MASK (0x7 << 16) | ||
346 | #define MXC_CCM_CSCDR3_HSI2C_CLK_PODF_OFFSET (9) | ||
347 | #define MXC_CCM_CSCDR3_HSI2C_CLK_PODF_MASK (0x3F << 9) | ||
348 | #define MXC_CCM_CSCDR3_FIRI_CLK_PRED_OFFSET (6) | ||
349 | #define MXC_CCM_CSCDR3_FIRI_CLK_PRED_MASK (0x7 << 6) | ||
350 | #define MXC_CCM_CSCDR3_FIRI_CLK_PODF_OFFSET (0) | ||
351 | #define MXC_CCM_CSCDR3_FIRI_CLK_PODF_MASK (0x3F) | ||
352 | |||
353 | /* Define the bits in register CSCDR4 */ | ||
354 | #define MXC_CCM_CSCDR4_CSI_MCLK2_CLK_PRED_OFFSET (16) | ||
355 | #define MXC_CCM_CSCDR4_CSI_MCLK2_CLK_PRED_MASK (0x7 << 16) | ||
356 | #define MXC_CCM_CSCDR4_CSI_MCLK2_CLK_PODF_OFFSET (9) | ||
357 | #define MXC_CCM_CSCDR4_CSI_MCLK2_CLK_PODF_MASK (0x3F << 9) | ||
358 | #define MXC_CCM_CSCDR4_CSI_MCLK1_CLK_PRED_OFFSET (6) | ||
359 | #define MXC_CCM_CSCDR4_CSI_MCLK1_CLK_PRED_MASK (0x7 << 6) | ||
360 | #define MXC_CCM_CSCDR4_CSI_MCLK1_CLK_PODF_OFFSET (0) | ||
361 | #define MXC_CCM_CSCDR4_CSI_MCLK1_CLK_PODF_MASK (0x3F) | ||
362 | |||
363 | /* Define the bits in register CDHIPR */ | ||
364 | #define MXC_CCM_CDHIPR_ARM_PODF_BUSY (1 << 16) | ||
365 | #define MXC_CCM_CDHIPR_DDR_HF_CLK_SEL_BUSY (1 << 8) | ||
366 | #define MXC_CCM_CDHIPR_DDR_PODF_BUSY (1 << 7) | ||
367 | #define MXC_CCM_CDHIPR_EMI_CLK_SEL_BUSY (1 << 6) | ||
368 | #define MXC_CCM_CDHIPR_PERIPH_CLK_SEL_BUSY (1 << 5) | ||
369 | #define MXC_CCM_CDHIPR_NFC_IPG_INT_MEM_PODF_BUSY (1 << 4) | ||
370 | #define MXC_CCM_CDHIPR_AHB_PODF_BUSY (1 << 3) | ||
371 | #define MXC_CCM_CDHIPR_EMI_PODF_BUSY (1 << 2) | ||
372 | #define MXC_CCM_CDHIPR_AXI_B_PODF_BUSY (1 << 1) | ||
373 | #define MXC_CCM_CDHIPR_AXI_A_PODF_BUSY (1 << 0) | ||
374 | |||
375 | /* Define the bits in register CDCR */ | ||
376 | #define MXC_CCM_CDCR_ARM_FREQ_SHIFT_DIVIDER (0x1 << 2) | ||
377 | #define MXC_CCM_CDCR_PERIPH_CLK_DVFS_PODF_OFFSET (0) | ||
378 | #define MXC_CCM_CDCR_PERIPH_CLK_DVFS_PODF_MASK (0x3) | ||
379 | |||
380 | /* Define the bits in register CLPCR */ | ||
381 | #define MXC_CCM_CLPCR_BYPASS_HSC_LPM_HS (0x1 << 23) | ||
382 | #define MXC_CCM_CLPCR_BYPASS_SCC_LPM_HS (0x1 << 22) | ||
383 | #define MXC_CCM_CLPCR_BYPASS_MAX_LPM_HS (0x1 << 21) | ||
384 | #define MXC_CCM_CLPCR_BYPASS_SDMA_LPM_HS (0x1 << 20) | ||
385 | #define MXC_CCM_CLPCR_BYPASS_EMI_LPM_HS (0x1 << 19) | ||
386 | #define MXC_CCM_CLPCR_BYPASS_IPU_LPM_HS (0x1 << 18) | ||
387 | #define MXC_CCM_CLPCR_BYPASS_RTIC_LPM_HS (0x1 << 17) | ||
388 | #define MXC_CCM_CLPCR_BYPASS_RNGC_LPM_HS (0x1 << 16) | ||
389 | #define MXC_CCM_CLPCR_COSC_PWRDOWN (0x1 << 11) | ||
390 | #define MXC_CCM_CLPCR_STBY_COUNT_OFFSET (9) | ||
391 | #define MXC_CCM_CLPCR_STBY_COUNT_MASK (0x3 << 9) | ||
392 | #define MXC_CCM_CLPCR_VSTBY (0x1 << 8) | ||
393 | #define MXC_CCM_CLPCR_DIS_REF_OSC (0x1 << 7) | ||
394 | #define MXC_CCM_CLPCR_SBYOS (0x1 << 6) | ||
395 | #define MXC_CCM_CLPCR_ARM_CLK_DIS_ON_LPM (0x1 << 5) | ||
396 | #define MXC_CCM_CLPCR_LPSR_CLK_SEL_OFFSET (3) | ||
397 | #define MXC_CCM_CLPCR_LPSR_CLK_SEL_MASK (0x3 << 3) | ||
398 | #define MXC_CCM_CLPCR_LPM_OFFSET (0) | ||
399 | #define MXC_CCM_CLPCR_LPM_MASK (0x3) | ||
400 | |||
401 | /* Define the bits in register CISR */ | ||
402 | #define MXC_CCM_CISR_ARM_PODF_LOADED (0x1 << 25) | ||
403 | #define MXC_CCM_CISR_NFC_IPG_INT_MEM_PODF_LOADED (0x1 << 21) | ||
404 | #define MXC_CCM_CISR_AHB_PODF_LOADED (0x1 << 20) | ||
405 | #define MXC_CCM_CISR_EMI_PODF_LOADED (0x1 << 19) | ||
406 | #define MXC_CCM_CISR_AXI_B_PODF_LOADED (0x1 << 18) | ||
407 | #define MXC_CCM_CISR_AXI_A_PODF_LOADED (0x1 << 17) | ||
408 | #define MXC_CCM_CISR_DIVIDER_LOADED (0x1 << 16) | ||
409 | #define MXC_CCM_CISR_COSC_READY (0x1 << 6) | ||
410 | #define MXC_CCM_CISR_CKIH2_READY (0x1 << 5) | ||
411 | #define MXC_CCM_CISR_CKIH_READY (0x1 << 4) | ||
412 | #define MXC_CCM_CISR_FPM_READY (0x1 << 3) | ||
413 | #define MXC_CCM_CISR_LRF_PLL3 (0x1 << 2) | ||
414 | #define MXC_CCM_CISR_LRF_PLL2 (0x1 << 1) | ||
415 | #define MXC_CCM_CISR_LRF_PLL1 (0x1) | ||
416 | |||
417 | /* Define the bits in register CIMR */ | ||
418 | #define MXC_CCM_CIMR_MASK_ARM_PODF_LOADED (0x1 << 25) | ||
419 | #define MXC_CCM_CIMR_MASK_NFC_IPG_INT_MEM_PODF_LOADED (0x1 << 21) | ||
420 | #define MXC_CCM_CIMR_MASK_EMI_PODF_LOADED (0x1 << 20) | ||
421 | #define MXC_CCM_CIMR_MASK_AXI_C_PODF_LOADED (0x1 << 19) | ||
422 | #define MXC_CCM_CIMR_MASK_AXI_B_PODF_LOADED (0x1 << 18) | ||
423 | #define MXC_CCM_CIMR_MASK_AXI_A_PODF_LOADED (0x1 << 17) | ||
424 | #define MXC_CCM_CIMR_MASK_DIVIDER_LOADED (0x1 << 16) | ||
425 | #define MXC_CCM_CIMR_MASK_COSC_READY (0x1 << 5) | ||
426 | #define MXC_CCM_CIMR_MASK_CKIH_READY (0x1 << 4) | ||
427 | #define MXC_CCM_CIMR_MASK_FPM_READY (0x1 << 3) | ||
428 | #define MXC_CCM_CIMR_MASK_LRF_PLL3 (0x1 << 2) | ||
429 | #define MXC_CCM_CIMR_MASK_LRF_PLL2 (0x1 << 1) | ||
430 | #define MXC_CCM_CIMR_MASK_LRF_PLL1 (0x1) | ||
431 | |||
432 | /* Define the bits in register CCOSR */ | ||
433 | #define MXC_CCM_CCOSR_CKO2_EN_OFFSET (0x1 << 24) | ||
434 | #define MXC_CCM_CCOSR_CKO2_DIV_OFFSET (21) | ||
435 | #define MXC_CCM_CCOSR_CKO2_DIV_MASK (0x7 << 21) | ||
436 | #define MXC_CCM_CCOSR_CKO2_SEL_OFFSET (16) | ||
437 | #define MXC_CCM_CCOSR_CKO2_SEL_MASK (0x1F << 16) | ||
438 | #define MXC_CCM_CCOSR_CKOL_EN (0x1 << 7) | ||
439 | #define MXC_CCM_CCOSR_CKOL_DIV_OFFSET (4) | ||
440 | #define MXC_CCM_CCOSR_CKOL_DIV_MASK (0x7 << 4) | ||
441 | #define MXC_CCM_CCOSR_CKOL_SEL_OFFSET (0) | ||
442 | #define MXC_CCM_CCOSR_CKOL_SEL_MASK (0xF) | ||
443 | |||
444 | /* Define the bits in registers CGPR */ | ||
445 | #define MXC_CCM_CGPR_EFUSE_PROG_SUPPLY_GATE (0x1 << 4) | ||
446 | #define MXC_CCM_CGPR_FPM_SEL (0x1 << 3) | ||
447 | #define MXC_CCM_CGPR_VL_L2BIST_CLKDIV_OFFSET (0) | ||
448 | #define MXC_CCM_CGPR_VL_L2BIST_CLKDIV_MASK (0x7) | ||
449 | |||
450 | /* Define the bits in registers CCGRx */ | ||
451 | #define MXC_CCM_CCGRx_CG_MASK 0x3 | ||
452 | #define MXC_CCM_CCGRx_MOD_OFF 0x0 | ||
453 | #define MXC_CCM_CCGRx_MOD_ON 0x3 | ||
454 | #define MXC_CCM_CCGRx_MOD_IDLE 0x1 | ||
455 | |||
456 | #define MXC_CCM_CCGRx_CG15_MASK (0x3 << 30) | ||
457 | #define MXC_CCM_CCGRx_CG14_MASK (0x3 << 28) | ||
458 | #define MXC_CCM_CCGRx_CG13_MASK (0x3 << 26) | ||
459 | #define MXC_CCM_CCGRx_CG12_MASK (0x3 << 24) | ||
460 | #define MXC_CCM_CCGRx_CG11_MASK (0x3 << 22) | ||
461 | #define MXC_CCM_CCGRx_CG10_MASK (0x3 << 20) | ||
462 | #define MXC_CCM_CCGRx_CG9_MASK (0x3 << 18) | ||
463 | #define MXC_CCM_CCGRx_CG8_MASK (0x3 << 16) | ||
464 | #define MXC_CCM_CCGRx_CG5_MASK (0x3 << 10) | ||
465 | #define MXC_CCM_CCGRx_CG4_MASK (0x3 << 8) | ||
466 | #define MXC_CCM_CCGRx_CG3_MASK (0x3 << 6) | ||
467 | #define MXC_CCM_CCGRx_CG2_MASK (0x3 << 4) | ||
468 | #define MXC_CCM_CCGRx_CG1_MASK (0x3 << 2) | ||
469 | #define MXC_CCM_CCGRx_CG0_MASK (0x3 << 0) | ||
470 | |||
471 | #define MXC_CCM_CCGRx_CG15_OFFSET 30 | ||
472 | #define MXC_CCM_CCGRx_CG14_OFFSET 28 | ||
473 | #define MXC_CCM_CCGRx_CG13_OFFSET 26 | ||
474 | #define MXC_CCM_CCGRx_CG12_OFFSET 24 | ||
475 | #define MXC_CCM_CCGRx_CG11_OFFSET 22 | ||
476 | #define MXC_CCM_CCGRx_CG10_OFFSET 20 | ||
477 | #define MXC_CCM_CCGRx_CG9_OFFSET 18 | ||
478 | #define MXC_CCM_CCGRx_CG8_OFFSET 16 | ||
479 | #define MXC_CCM_CCGRx_CG7_OFFSET 14 | ||
480 | #define MXC_CCM_CCGRx_CG6_OFFSET 12 | ||
481 | #define MXC_CCM_CCGRx_CG5_OFFSET 10 | ||
482 | #define MXC_CCM_CCGRx_CG4_OFFSET 8 | ||
483 | #define MXC_CCM_CCGRx_CG3_OFFSET 6 | ||
484 | #define MXC_CCM_CCGRx_CG2_OFFSET 4 | ||
485 | #define MXC_CCM_CCGRx_CG1_OFFSET 2 | ||
486 | #define MXC_CCM_CCGRx_CG0_OFFSET 0 | ||
487 | |||
488 | #define MXC_DPTC_LP_BASE (MX51_GPC_BASE + 0x80) | ||
489 | #define MXC_DPTC_GP_BASE (MX51_GPC_BASE + 0x100) | ||
490 | #define MXC_DVFS_CORE_BASE (MX51_GPC_BASE + 0x180) | ||
491 | #define MXC_DPTC_PER_BASE (MX51_GPC_BASE + 0x1C0) | ||
492 | #define MXC_PGC_IPU_BASE (MX51_GPC_BASE + 0x220) | ||
493 | #define MXC_PGC_VPU_BASE (MX51_GPC_BASE + 0x240) | ||
494 | #define MXC_PGC_GPU_BASE (MX51_GPC_BASE + 0x260) | ||
495 | #define MXC_SRPG_NEON_BASE (MX51_GPC_BASE + 0x280) | ||
496 | #define MXC_SRPG_ARM_BASE (MX51_GPC_BASE + 0x2A0) | ||
497 | #define MXC_SRPG_EMPGC0_BASE (MX51_GPC_BASE + 0x2C0) | ||
498 | #define MXC_SRPG_EMPGC1_BASE (MX51_GPC_BASE + 0x2D0) | ||
499 | #define MXC_SRPG_MEGAMIX_BASE (MX51_GPC_BASE + 0x2E0) | ||
500 | #define MXC_SRPG_EMI_BASE (MX51_GPC_BASE + 0x300) | ||
501 | |||
502 | /* CORTEXA8 platform */ | ||
503 | #define MXC_CORTEXA8_PLAT_PVID (MX51_CORTEXA8_BASE + 0x0) | ||
504 | #define MXC_CORTEXA8_PLAT_GPC (MX51_CORTEXA8_BASE + 0x4) | ||
505 | #define MXC_CORTEXA8_PLAT_PIC (MX51_CORTEXA8_BASE + 0x8) | ||
506 | #define MXC_CORTEXA8_PLAT_LPC (MX51_CORTEXA8_BASE + 0xC) | ||
507 | #define MXC_CORTEXA8_PLAT_NEON_LPC (MX51_CORTEXA8_BASE + 0x10) | ||
508 | #define MXC_CORTEXA8_PLAT_ICGC (MX51_CORTEXA8_BASE + 0x14) | ||
509 | #define MXC_CORTEXA8_PLAT_AMC (MX51_CORTEXA8_BASE + 0x18) | ||
510 | #define MXC_CORTEXA8_PLAT_NMC (MX51_CORTEXA8_BASE + 0x20) | ||
511 | #define MXC_CORTEXA8_PLAT_NMS (MX51_CORTEXA8_BASE + 0x24) | ||
512 | |||
513 | /* DVFS CORE */ | ||
514 | #define MXC_DVFSTHRS (MXC_DVFS_CORE_BASE + 0x00) | ||
515 | #define MXC_DVFSCOUN (MXC_DVFS_CORE_BASE + 0x04) | ||
516 | #define MXC_DVFSSIG1 (MXC_DVFS_CORE_BASE + 0x08) | ||
517 | #define MXC_DVFSSIG0 (MXC_DVFS_CORE_BASE + 0x0C) | ||
518 | #define MXC_DVFSGPC0 (MXC_DVFS_CORE_BASE + 0x10) | ||
519 | #define MXC_DVFSGPC1 (MXC_DVFS_CORE_BASE + 0x14) | ||
520 | #define MXC_DVFSGPBT (MXC_DVFS_CORE_BASE + 0x18) | ||
521 | #define MXC_DVFSEMAC (MXC_DVFS_CORE_BASE + 0x1C) | ||
522 | #define MXC_DVFSCNTR (MXC_DVFS_CORE_BASE + 0x20) | ||
523 | #define MXC_DVFSLTR0_0 (MXC_DVFS_CORE_BASE + 0x24) | ||
524 | #define MXC_DVFSLTR0_1 (MXC_DVFS_CORE_BASE + 0x28) | ||
525 | #define MXC_DVFSLTR1_0 (MXC_DVFS_CORE_BASE + 0x2C) | ||
526 | #define MXC_DVFSLTR1_1 (MXC_DVFS_CORE_BASE + 0x30) | ||
527 | #define MXC_DVFSPT0 (MXC_DVFS_CORE_BASE + 0x34) | ||
528 | #define MXC_DVFSPT1 (MXC_DVFS_CORE_BASE + 0x38) | ||
529 | #define MXC_DVFSPT2 (MXC_DVFS_CORE_BASE + 0x3C) | ||
530 | #define MXC_DVFSPT3 (MXC_DVFS_CORE_BASE + 0x40) | ||
531 | |||
532 | /* GPC */ | ||
533 | #define MXC_GPC_CNTR (MX51_GPC_BASE + 0x0) | ||
534 | #define MXC_GPC_PGR (MX51_GPC_BASE + 0x4) | ||
535 | #define MXC_GPC_VCR (MX51_GPC_BASE + 0x8) | ||
536 | #define MXC_GPC_ALL_PU (MX51_GPC_BASE + 0xC) | ||
537 | #define MXC_GPC_NEON (MX51_GPC_BASE + 0x10) | ||
538 | #define MXC_GPC_PGR_ARMPG_OFFSET 8 | ||
539 | #define MXC_GPC_PGR_ARMPG_MASK (3 << 8) | ||
540 | |||
541 | /* PGC */ | ||
542 | #define MXC_PGC_IPU_PGCR (MXC_PGC_IPU_BASE + 0x0) | ||
543 | #define MXC_PGC_IPU_PGSR (MXC_PGC_IPU_BASE + 0xC) | ||
544 | #define MXC_PGC_VPU_PGCR (MXC_PGC_VPU_BASE + 0x0) | ||
545 | #define MXC_PGC_VPU_PGSR (MXC_PGC_VPU_BASE + 0xC) | ||
546 | #define MXC_PGC_GPU_PGCR (MXC_PGC_GPU_BASE + 0x0) | ||
547 | #define MXC_PGC_GPU_PGSR (MXC_PGC_GPU_BASE + 0xC) | ||
548 | |||
549 | #define MXC_PGCR_PCR 1 | ||
550 | #define MXC_SRPGCR_PCR 1 | ||
551 | #define MXC_EMPGCR_PCR 1 | ||
552 | #define MXC_PGSR_PSR 1 | ||
553 | |||
554 | |||
555 | #define MXC_CORTEXA8_PLAT_LPC_DSM (1 << 0) | ||
556 | #define MXC_CORTEXA8_PLAT_LPC_DBG_DSM (1 << 1) | ||
557 | |||
558 | /* SRPG */ | ||
559 | #define MXC_SRPG_NEON_SRPGCR (MXC_SRPG_NEON_BASE + 0x0) | ||
560 | #define MXC_SRPG_NEON_PUPSCR (MXC_SRPG_NEON_BASE + 0x4) | ||
561 | #define MXC_SRPG_NEON_PDNSCR (MXC_SRPG_NEON_BASE + 0x8) | ||
562 | |||
563 | #define MXC_SRPG_ARM_SRPGCR (MXC_SRPG_ARM_BASE + 0x0) | ||
564 | #define MXC_SRPG_ARM_PUPSCR (MXC_SRPG_ARM_BASE + 0x4) | ||
565 | #define MXC_SRPG_ARM_PDNSCR (MXC_SRPG_ARM_BASE + 0x8) | ||
566 | |||
567 | #define MXC_SRPG_EMPGC0_SRPGCR (MXC_SRPG_EMPGC0_BASE + 0x0) | ||
568 | #define MXC_SRPG_EMPGC0_PUPSCR (MXC_SRPG_EMPGC0_BASE + 0x4) | ||
569 | #define MXC_SRPG_EMPGC0_PDNSCR (MXC_SRPG_EMPGC0_BASE + 0x8) | ||
570 | |||
571 | #define MXC_SRPG_EMPGC1_SRPGCR (MXC_SRPG_EMPGC1_BASE + 0x0) | ||
572 | #define MXC_SRPG_EMPGC1_PUPSCR (MXC_SRPG_EMPGC1_BASE + 0x4) | ||
573 | #define MXC_SRPG_EMPGC1_PDNSCR (MXC_SRPG_EMPGC1_BASE + 0x8) | ||
574 | |||
575 | #define MXC_SRPG_MEGAMIX_SRPGCR (MXC_SRPG_MEGAMIX_BASE + 0x0) | ||
576 | #define MXC_SRPG_MEGAMIX_PUPSCR (MXC_SRPG_MEGAMIX_BASE + 0x4) | ||
577 | #define MXC_SRPG_MEGAMIX_PDNSCR (MXC_SRPG_MEGAMIX_BASE + 0x8) | ||
578 | |||
579 | #define MXC_SRPGC_EMI_SRPGCR (MXC_SRPGC_EMI_BASE + 0x0) | ||
580 | #define MXC_SRPGC_EMI_PUPSCR (MXC_SRPGC_EMI_BASE + 0x4) | ||
581 | #define MXC_SRPGC_EMI_PDNSCR (MXC_SRPGC_EMI_BASE + 0x8) | ||
582 | |||
583 | #endif /* __ARCH_ARM_MACH_MX51_CRM_REGS_H__ */ | ||
diff --git a/arch/arm/mach-mx5/devices.c b/arch/arm/mach-mx5/devices.c new file mode 100644 index 00000000000..d6fd3961ade --- /dev/null +++ b/arch/arm/mach-mx5/devices.c | |||
@@ -0,0 +1,96 @@ | |||
1 | /* | ||
2 | * Copyright 2009 Amit Kucheria <amit.kucheria@canonical.com> | ||
3 | * | ||
4 | * The code contained herein is licensed under the GNU General Public | ||
5 | * License. You may obtain a copy of the GNU General Public License | ||
6 | * Version 2 or later at the following locations: | ||
7 | * | ||
8 | * http://www.opensource.org/licenses/gpl-license.html | ||
9 | * http://www.gnu.org/copyleft/gpl.html | ||
10 | */ | ||
11 | |||
12 | #include <linux/platform_device.h> | ||
13 | #include <mach/hardware.h> | ||
14 | #include <mach/imx-uart.h> | ||
15 | |||
16 | static struct resource uart0[] = { | ||
17 | { | ||
18 | .start = MX51_UART1_BASE_ADDR, | ||
19 | .end = MX51_UART1_BASE_ADDR + 0xfff, | ||
20 | .flags = IORESOURCE_MEM, | ||
21 | }, { | ||
22 | .start = MX51_MXC_INT_UART1, | ||
23 | .end = MX51_MXC_INT_UART1, | ||
24 | .flags = IORESOURCE_IRQ, | ||
25 | }, | ||
26 | }; | ||
27 | |||
28 | struct platform_device mxc_uart_device0 = { | ||
29 | .name = "imx-uart", | ||
30 | .id = 0, | ||
31 | .resource = uart0, | ||
32 | .num_resources = ARRAY_SIZE(uart0), | ||
33 | }; | ||
34 | |||
35 | static struct resource uart1[] = { | ||
36 | { | ||
37 | .start = MX51_UART2_BASE_ADDR, | ||
38 | .end = MX51_UART2_BASE_ADDR + 0xfff, | ||
39 | .flags = IORESOURCE_MEM, | ||
40 | }, { | ||
41 | .start = MX51_MXC_INT_UART2, | ||
42 | .end = MX51_MXC_INT_UART2, | ||
43 | .flags = IORESOURCE_IRQ, | ||
44 | }, | ||
45 | }; | ||
46 | |||
47 | struct platform_device mxc_uart_device1 = { | ||
48 | .name = "imx-uart", | ||
49 | .id = 1, | ||
50 | .resource = uart1, | ||
51 | .num_resources = ARRAY_SIZE(uart1), | ||
52 | }; | ||
53 | |||
54 | static struct resource uart2[] = { | ||
55 | { | ||
56 | .start = MX51_UART3_BASE_ADDR, | ||
57 | .end = MX51_UART3_BASE_ADDR + 0xfff, | ||
58 | .flags = IORESOURCE_MEM, | ||
59 | }, { | ||
60 | .start = MX51_MXC_INT_UART3, | ||
61 | .end = MX51_MXC_INT_UART3, | ||
62 | .flags = IORESOURCE_IRQ, | ||
63 | }, | ||
64 | }; | ||
65 | |||
66 | struct platform_device mxc_uart_device2 = { | ||
67 | .name = "imx-uart", | ||
68 | .id = 2, | ||
69 | .resource = uart2, | ||
70 | .num_resources = ARRAY_SIZE(uart2), | ||
71 | }; | ||
72 | |||
73 | static struct resource mxc_fec_resources[] = { | ||
74 | { | ||
75 | .start = MX51_MXC_FEC_BASE_ADDR, | ||
76 | .end = MX51_MXC_FEC_BASE_ADDR + 0xfff, | ||
77 | .flags = IORESOURCE_MEM, | ||
78 | }, { | ||
79 | .start = MX51_MXC_INT_FEC, | ||
80 | .end = MX51_MXC_INT_FEC, | ||
81 | .flags = IORESOURCE_IRQ, | ||
82 | }, | ||
83 | }; | ||
84 | |||
85 | struct platform_device mxc_fec_device = { | ||
86 | .name = "fec", | ||
87 | .id = 0, | ||
88 | .num_resources = ARRAY_SIZE(mxc_fec_resources), | ||
89 | .resource = mxc_fec_resources, | ||
90 | }; | ||
91 | |||
92 | /* Dummy definition to allow compiling in AVIC and TZIC simultaneously */ | ||
93 | int __init mxc_register_gpios(void) | ||
94 | { | ||
95 | return 0; | ||
96 | } | ||
diff --git a/arch/arm/mach-mx5/devices.h b/arch/arm/mach-mx5/devices.h new file mode 100644 index 00000000000..f339ab8c19b --- /dev/null +++ b/arch/arm/mach-mx5/devices.h | |||
@@ -0,0 +1,4 @@ | |||
1 | extern struct platform_device mxc_uart_device0; | ||
2 | extern struct platform_device mxc_uart_device1; | ||
3 | extern struct platform_device mxc_uart_device2; | ||
4 | extern struct platform_device mxc_fec_device; | ||
diff --git a/arch/arm/mach-mx5/mm.c b/arch/arm/mach-mx5/mm.c new file mode 100644 index 00000000000..c21e18be7af --- /dev/null +++ b/arch/arm/mach-mx5/mm.c | |||
@@ -0,0 +1,89 @@ | |||
1 | /* | ||
2 | * Copyright 2008-2009 Freescale Semiconductor, Inc. All Rights Reserved. | ||
3 | * | ||
4 | * The code contained herein is licensed under the GNU General Public | ||
5 | * License. You may obtain a copy of the GNU General Public License | ||
6 | * Version 2 or later at the following locations: | ||
7 | * | ||
8 | * http://www.opensource.org/licenses/gpl-license.html | ||
9 | * http://www.gnu.org/copyleft/gpl.html | ||
10 | * | ||
11 | * Create static mapping between physical to virtual memory. | ||
12 | */ | ||
13 | |||
14 | #include <linux/mm.h> | ||
15 | #include <linux/init.h> | ||
16 | |||
17 | #include <asm/mach/map.h> | ||
18 | |||
19 | #include <mach/hardware.h> | ||
20 | #include <mach/common.h> | ||
21 | #include <mach/iomux-v3.h> | ||
22 | |||
23 | /* | ||
24 | * Define the MX51 memory map. | ||
25 | */ | ||
26 | static struct map_desc mxc_io_desc[] __initdata = { | ||
27 | { | ||
28 | .virtual = MX51_IRAM_BASE_ADDR_VIRT, | ||
29 | .pfn = __phys_to_pfn(MX51_IRAM_BASE_ADDR), | ||
30 | .length = MX51_IRAM_SIZE, | ||
31 | .type = MT_DEVICE | ||
32 | }, { | ||
33 | .virtual = MX51_DEBUG_BASE_ADDR_VIRT, | ||
34 | .pfn = __phys_to_pfn(MX51_DEBUG_BASE_ADDR), | ||
35 | .length = MX51_DEBUG_SIZE, | ||
36 | .type = MT_DEVICE | ||
37 | }, { | ||
38 | .virtual = MX51_TZIC_BASE_ADDR_VIRT, | ||
39 | .pfn = __phys_to_pfn(MX51_TZIC_BASE_ADDR), | ||
40 | .length = MX51_TZIC_SIZE, | ||
41 | .type = MT_DEVICE | ||
42 | }, { | ||
43 | .virtual = MX51_AIPS1_BASE_ADDR_VIRT, | ||
44 | .pfn = __phys_to_pfn(MX51_AIPS1_BASE_ADDR), | ||
45 | .length = MX51_AIPS1_SIZE, | ||
46 | .type = MT_DEVICE | ||
47 | }, { | ||
48 | .virtual = MX51_SPBA0_BASE_ADDR_VIRT, | ||
49 | .pfn = __phys_to_pfn(MX51_SPBA0_BASE_ADDR), | ||
50 | .length = MX51_SPBA0_SIZE, | ||
51 | .type = MT_DEVICE | ||
52 | }, { | ||
53 | .virtual = MX51_AIPS2_BASE_ADDR_VIRT, | ||
54 | .pfn = __phys_to_pfn(MX51_AIPS2_BASE_ADDR), | ||
55 | .length = MX51_AIPS2_SIZE, | ||
56 | .type = MT_DEVICE | ||
57 | }, { | ||
58 | .virtual = MX51_NFC_AXI_BASE_ADDR_VIRT, | ||
59 | .pfn = __phys_to_pfn(MX51_NFC_AXI_BASE_ADDR), | ||
60 | .length = MX51_NFC_AXI_SIZE, | ||
61 | .type = MT_DEVICE | ||
62 | }, | ||
63 | }; | ||
64 | |||
65 | /* | ||
66 | * This function initializes the memory map. It is called during the | ||
67 | * system startup to create static physical to virtual memory mappings | ||
68 | * for the IO modules. | ||
69 | */ | ||
70 | void __init mx51_map_io(void) | ||
71 | { | ||
72 | u32 tzic_addr; | ||
73 | |||
74 | if (mx51_revision() < MX51_CHIP_REV_2_0) | ||
75 | tzic_addr = 0x8FFFC000; | ||
76 | else | ||
77 | tzic_addr = 0xE0003000; | ||
78 | mxc_io_desc[2].pfn = __phys_to_pfn(tzic_addr); | ||
79 | |||
80 | mxc_set_cpu_type(MXC_CPU_MX51); | ||
81 | mxc_iomux_v3_init(MX51_IO_ADDRESS(MX51_IOMUXC_BASE_ADDR)); | ||
82 | mxc_arch_reset_init(MX51_IO_ADDRESS(MX51_WDOG_BASE_ADDR)); | ||
83 | iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc)); | ||
84 | } | ||
85 | |||
86 | void __init mx51_init_irq(void) | ||
87 | { | ||
88 | tzic_init_irq(MX51_IO_ADDRESS(MX51_TZIC_BASE_ADDR)); | ||
89 | } | ||
diff --git a/arch/arm/mach-mxc91231/magx-zn5.c b/arch/arm/mach-mxc91231/magx-zn5.c index 7dbe4ca12ef..69816ba8293 100644 --- a/arch/arm/mach-mxc91231/magx-zn5.c +++ b/arch/arm/mach-mxc91231/magx-zn5.c | |||
@@ -55,7 +55,7 @@ struct sys_timer zn5_timer = { | |||
55 | MACHINE_START(MAGX_ZN5, "Motorola Zn5") | 55 | MACHINE_START(MAGX_ZN5, "Motorola Zn5") |
56 | .phys_io = MXC91231_AIPS1_BASE_ADDR, | 56 | .phys_io = MXC91231_AIPS1_BASE_ADDR, |
57 | .io_pg_offst = ((MXC91231_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 57 | .io_pg_offst = ((MXC91231_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
58 | .boot_params = PHYS_OFFSET + 0x100, | 58 | .boot_params = MXC91231_PHYS_OFFSET + 0x100, |
59 | .map_io = mxc91231_map_io, | 59 | .map_io = mxc91231_map_io, |
60 | .init_irq = mxc91231_init_irq, | 60 | .init_irq = mxc91231_init_irq, |
61 | .timer = &zn5_timer, | 61 | .timer = &zn5_timer, |
diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c index 2ba9ab95373..04f1d29cba2 100644 --- a/arch/arm/mach-omap1/clock.c +++ b/arch/arm/mach-omap1/clock.c | |||
@@ -214,8 +214,8 @@ int omap1_select_table_rate(struct clk *clk, unsigned long rate) | |||
214 | struct mpu_rate * ptr; | 214 | struct mpu_rate * ptr; |
215 | unsigned long dpll1_rate, ref_rate; | 215 | unsigned long dpll1_rate, ref_rate; |
216 | 216 | ||
217 | dpll1_rate = clk_get_rate(ck_dpll1_p); | 217 | dpll1_rate = ck_dpll1_p->rate; |
218 | ref_rate = clk_get_rate(ck_ref_p); | 218 | ref_rate = ck_ref_p->rate; |
219 | 219 | ||
220 | for (ptr = omap1_rate_table; ptr->rate; ptr++) { | 220 | for (ptr = omap1_rate_table; ptr->rate; ptr++) { |
221 | if (ptr->xtal != ref_rate) | 221 | if (ptr->xtal != ref_rate) |
@@ -306,7 +306,7 @@ long omap1_round_to_table_rate(struct clk *clk, unsigned long rate) | |||
306 | long highest_rate; | 306 | long highest_rate; |
307 | unsigned long ref_rate; | 307 | unsigned long ref_rate; |
308 | 308 | ||
309 | ref_rate = clk_get_rate(ck_ref_p); | 309 | ref_rate = ck_ref_p->rate; |
310 | 310 | ||
311 | highest_rate = -EINVAL; | 311 | highest_rate = -EINVAL; |
312 | 312 | ||
diff --git a/arch/arm/mach-omap2/clock34xx_data.c b/arch/arm/mach-omap2/clock34xx_data.c index c6031d74d6f..74930e3158e 100644 --- a/arch/arm/mach-omap2/clock34xx_data.c +++ b/arch/arm/mach-omap2/clock34xx_data.c | |||
@@ -671,7 +671,6 @@ static struct clk dpll4_m3x2_ck = { | |||
671 | .name = "dpll4_m3x2_ck", | 671 | .name = "dpll4_m3x2_ck", |
672 | .ops = &clkops_omap2_dflt_wait, | 672 | .ops = &clkops_omap2_dflt_wait, |
673 | .parent = &dpll4_m3_ck, | 673 | .parent = &dpll4_m3_ck, |
674 | .init = &omap2_init_clksel_parent, | ||
675 | .enable_reg = OMAP_CM_REGADDR(PLL_MOD, CM_CLKEN), | 674 | .enable_reg = OMAP_CM_REGADDR(PLL_MOD, CM_CLKEN), |
676 | .enable_bit = OMAP3430_PWRDN_TV_SHIFT, | 675 | .enable_bit = OMAP3430_PWRDN_TV_SHIFT, |
677 | .flags = INVERT_ENABLE, | 676 | .flags = INVERT_ENABLE, |
@@ -811,7 +810,6 @@ static struct clk dpll4_m6x2_ck = { | |||
811 | .name = "dpll4_m6x2_ck", | 810 | .name = "dpll4_m6x2_ck", |
812 | .ops = &clkops_omap2_dflt_wait, | 811 | .ops = &clkops_omap2_dflt_wait, |
813 | .parent = &dpll4_m6_ck, | 812 | .parent = &dpll4_m6_ck, |
814 | .init = &omap2_init_clksel_parent, | ||
815 | .enable_reg = OMAP_CM_REGADDR(PLL_MOD, CM_CLKEN), | 813 | .enable_reg = OMAP_CM_REGADDR(PLL_MOD, CM_CLKEN), |
816 | .enable_bit = OMAP3430_PWRDN_EMU_PERIPH_SHIFT, | 814 | .enable_bit = OMAP3430_PWRDN_EMU_PERIPH_SHIFT, |
817 | .flags = INVERT_ENABLE, | 815 | .flags = INVERT_ENABLE, |
@@ -1047,7 +1045,6 @@ static struct clk iva2_ck = { | |||
1047 | .name = "iva2_ck", | 1045 | .name = "iva2_ck", |
1048 | .ops = &clkops_omap2_dflt_wait, | 1046 | .ops = &clkops_omap2_dflt_wait, |
1049 | .parent = &dpll2_m2_ck, | 1047 | .parent = &dpll2_m2_ck, |
1050 | .init = &omap2_init_clksel_parent, | ||
1051 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_IVA2_MOD, CM_FCLKEN), | 1048 | .enable_reg = OMAP_CM_REGADDR(OMAP3430_IVA2_MOD, CM_FCLKEN), |
1052 | .enable_bit = OMAP3430_CM_FCLKEN_IVA2_EN_IVA2_SHIFT, | 1049 | .enable_bit = OMAP3430_CM_FCLKEN_IVA2_EN_IVA2_SHIFT, |
1053 | .clkdm_name = "iva2_clkdm", | 1050 | .clkdm_name = "iva2_clkdm", |
@@ -1121,7 +1118,6 @@ static struct clk gfx_l3_ck = { | |||
1121 | .name = "gfx_l3_ck", | 1118 | .name = "gfx_l3_ck", |
1122 | .ops = &clkops_omap2_dflt_wait, | 1119 | .ops = &clkops_omap2_dflt_wait, |
1123 | .parent = &l3_ick, | 1120 | .parent = &l3_ick, |
1124 | .init = &omap2_init_clksel_parent, | ||
1125 | .enable_reg = OMAP_CM_REGADDR(GFX_MOD, CM_ICLKEN), | 1121 | .enable_reg = OMAP_CM_REGADDR(GFX_MOD, CM_ICLKEN), |
1126 | .enable_bit = OMAP_EN_GFX_SHIFT, | 1122 | .enable_bit = OMAP_EN_GFX_SHIFT, |
1127 | .recalc = &followparent_recalc, | 1123 | .recalc = &followparent_recalc, |
diff --git a/arch/arm/mach-omap2/clock44xx_data.c b/arch/arm/mach-omap2/clock44xx_data.c index 2210e227d78..9d882bcb56e 100644 --- a/arch/arm/mach-omap2/clock44xx_data.c +++ b/arch/arm/mach-omap2/clock44xx_data.c | |||
@@ -346,37 +346,37 @@ static struct clk aess_fclk = { | |||
346 | }; | 346 | }; |
347 | 347 | ||
348 | static const struct clksel_rate div31_1to31_rates[] = { | 348 | static const struct clksel_rate div31_1to31_rates[] = { |
349 | { .div = 1, .val = 0, .flags = RATE_IN_4430 }, | 349 | { .div = 1, .val = 1, .flags = RATE_IN_4430 }, |
350 | { .div = 2, .val = 1, .flags = RATE_IN_4430 }, | 350 | { .div = 2, .val = 2, .flags = RATE_IN_4430 }, |
351 | { .div = 3, .val = 2, .flags = RATE_IN_4430 }, | 351 | { .div = 3, .val = 3, .flags = RATE_IN_4430 }, |
352 | { .div = 4, .val = 3, .flags = RATE_IN_4430 }, | 352 | { .div = 4, .val = 4, .flags = RATE_IN_4430 }, |
353 | { .div = 5, .val = 4, .flags = RATE_IN_4430 }, | 353 | { .div = 5, .val = 5, .flags = RATE_IN_4430 }, |
354 | { .div = 6, .val = 5, .flags = RATE_IN_4430 }, | 354 | { .div = 6, .val = 6, .flags = RATE_IN_4430 }, |
355 | { .div = 7, .val = 6, .flags = RATE_IN_4430 }, | 355 | { .div = 7, .val = 7, .flags = RATE_IN_4430 }, |
356 | { .div = 8, .val = 7, .flags = RATE_IN_4430 }, | 356 | { .div = 8, .val = 8, .flags = RATE_IN_4430 }, |
357 | { .div = 9, .val = 8, .flags = RATE_IN_4430 }, | 357 | { .div = 9, .val = 9, .flags = RATE_IN_4430 }, |
358 | { .div = 10, .val = 9, .flags = RATE_IN_4430 }, | 358 | { .div = 10, .val = 10, .flags = RATE_IN_4430 }, |
359 | { .div = 11, .val = 10, .flags = RATE_IN_4430 }, | 359 | { .div = 11, .val = 11, .flags = RATE_IN_4430 }, |
360 | { .div = 12, .val = 11, .flags = RATE_IN_4430 }, | 360 | { .div = 12, .val = 12, .flags = RATE_IN_4430 }, |
361 | { .div = 13, .val = 12, .flags = RATE_IN_4430 }, | 361 | { .div = 13, .val = 13, .flags = RATE_IN_4430 }, |
362 | { .div = 14, .val = 13, .flags = RATE_IN_4430 }, | 362 | { .div = 14, .val = 14, .flags = RATE_IN_4430 }, |
363 | { .div = 15, .val = 14, .flags = RATE_IN_4430 }, | 363 | { .div = 15, .val = 15, .flags = RATE_IN_4430 }, |
364 | { .div = 16, .val = 15, .flags = RATE_IN_4430 }, | 364 | { .div = 16, .val = 16, .flags = RATE_IN_4430 }, |
365 | { .div = 17, .val = 16, .flags = RATE_IN_4430 }, | 365 | { .div = 17, .val = 17, .flags = RATE_IN_4430 }, |
366 | { .div = 18, .val = 17, .flags = RATE_IN_4430 }, | 366 | { .div = 18, .val = 18, .flags = RATE_IN_4430 }, |
367 | { .div = 19, .val = 18, .flags = RATE_IN_4430 }, | 367 | { .div = 19, .val = 19, .flags = RATE_IN_4430 }, |
368 | { .div = 20, .val = 19, .flags = RATE_IN_4430 }, | 368 | { .div = 20, .val = 20, .flags = RATE_IN_4430 }, |
369 | { .div = 21, .val = 20, .flags = RATE_IN_4430 }, | 369 | { .div = 21, .val = 21, .flags = RATE_IN_4430 }, |
370 | { .div = 22, .val = 21, .flags = RATE_IN_4430 }, | 370 | { .div = 22, .val = 22, .flags = RATE_IN_4430 }, |
371 | { .div = 23, .val = 22, .flags = RATE_IN_4430 }, | 371 | { .div = 23, .val = 23, .flags = RATE_IN_4430 }, |
372 | { .div = 24, .val = 23, .flags = RATE_IN_4430 }, | 372 | { .div = 24, .val = 24, .flags = RATE_IN_4430 }, |
373 | { .div = 25, .val = 24, .flags = RATE_IN_4430 }, | 373 | { .div = 25, .val = 25, .flags = RATE_IN_4430 }, |
374 | { .div = 26, .val = 25, .flags = RATE_IN_4430 }, | 374 | { .div = 26, .val = 26, .flags = RATE_IN_4430 }, |
375 | { .div = 27, .val = 26, .flags = RATE_IN_4430 }, | 375 | { .div = 27, .val = 27, .flags = RATE_IN_4430 }, |
376 | { .div = 28, .val = 27, .flags = RATE_IN_4430 }, | 376 | { .div = 28, .val = 28, .flags = RATE_IN_4430 }, |
377 | { .div = 29, .val = 28, .flags = RATE_IN_4430 }, | 377 | { .div = 29, .val = 29, .flags = RATE_IN_4430 }, |
378 | { .div = 30, .val = 29, .flags = RATE_IN_4430 }, | 378 | { .div = 30, .val = 30, .flags = RATE_IN_4430 }, |
379 | { .div = 31, .val = 30, .flags = RATE_IN_4430 }, | 379 | { .div = 31, .val = 31, .flags = RATE_IN_4430 }, |
380 | { .div = 0 }, | 380 | { .div = 0 }, |
381 | }; | 381 | }; |
382 | 382 | ||
diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b/arch/arm/mach-omap2/cpuidle34xx.c index a26d6a08ae3..12f0cbfc289 100644 --- a/arch/arm/mach-omap2/cpuidle34xx.c +++ b/arch/arm/mach-omap2/cpuidle34xx.c | |||
@@ -137,7 +137,7 @@ return_sleep_time: | |||
137 | local_irq_enable(); | 137 | local_irq_enable(); |
138 | local_fiq_enable(); | 138 | local_fiq_enable(); |
139 | 139 | ||
140 | return (u32)timespec_to_ns(&ts_idle)/1000; | 140 | return ts_idle.tv_nsec / NSEC_PER_USEC + ts_idle.tv_sec * USEC_PER_SEC; |
141 | } | 141 | } |
142 | 142 | ||
143 | /** | 143 | /** |
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index bd8cb597472..7027cdc1ba4 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c | |||
@@ -505,7 +505,7 @@ static void __init gpmc_mem_init(void) | |||
505 | void __init gpmc_init(void) | 505 | void __init gpmc_init(void) |
506 | { | 506 | { |
507 | u32 l; | 507 | u32 l; |
508 | char *ck; | 508 | char *ck = NULL; |
509 | 509 | ||
510 | if (cpu_is_omap24xx()) { | 510 | if (cpu_is_omap24xx()) { |
511 | ck = "core_l3_ck"; | 511 | ck = "core_l3_ck"; |
@@ -521,6 +521,9 @@ void __init gpmc_init(void) | |||
521 | l = OMAP44XX_GPMC_BASE; | 521 | l = OMAP44XX_GPMC_BASE; |
522 | } | 522 | } |
523 | 523 | ||
524 | if (WARN_ON(!ck)) | ||
525 | return; | ||
526 | |||
524 | gpmc_l3_clk = clk_get(NULL, ck); | 527 | gpmc_l3_clk = clk_get(NULL, ck); |
525 | if (IS_ERR(gpmc_l3_clk)) { | 528 | if (IS_ERR(gpmc_l3_clk)) { |
526 | printk(KERN_ERR "Could not get GPMC clock %s\n", ck); | 529 | printk(KERN_ERR "Could not get GPMC clock %s\n", ck); |
@@ -534,6 +537,8 @@ void __init gpmc_init(void) | |||
534 | BUG(); | 537 | BUG(); |
535 | } | 538 | } |
536 | 539 | ||
540 | clk_enable(gpmc_l3_clk); | ||
541 | |||
537 | l = gpmc_read_reg(GPMC_REVISION); | 542 | l = gpmc_read_reg(GPMC_REVISION); |
538 | printk(KERN_INFO "GPMC revision %d.%d\n", (l >> 4) & 0x0f, l & 0x0f); | 543 | printk(KERN_INFO "GPMC revision %d.%d\n", (l >> 4) & 0x0f, l & 0x0f); |
539 | /* Set smart idle mode and automatic L3 clock gating */ | 544 | /* Set smart idle mode and automatic L3 clock gating */ |
diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index a091b53657b..3d65c50bd01 100644 --- a/arch/arm/mach-omap2/id.c +++ b/arch/arm/mach-omap2/id.c | |||
@@ -188,6 +188,8 @@ void __init omap3_check_revision(void) | |||
188 | u16 hawkeye; | 188 | u16 hawkeye; |
189 | u8 rev; | 189 | u8 rev; |
190 | 190 | ||
191 | omap_chip.oc = CHIP_IS_OMAP3430; | ||
192 | |||
191 | /* | 193 | /* |
192 | * We cannot access revision registers on ES1.0. | 194 | * We cannot access revision registers on ES1.0. |
193 | * If the processor type is Cortex-A8 and the revision is 0x0 | 195 | * If the processor type is Cortex-A8 and the revision is 0x0 |
@@ -196,6 +198,7 @@ void __init omap3_check_revision(void) | |||
196 | cpuid = read_cpuid(CPUID_ID); | 198 | cpuid = read_cpuid(CPUID_ID); |
197 | if ((((cpuid >> 4) & 0xfff) == 0xc08) && ((cpuid & 0xf) == 0x0)) { | 199 | if ((((cpuid >> 4) & 0xfff) == 0xc08) && ((cpuid & 0xf) == 0x0)) { |
198 | omap_revision = OMAP3430_REV_ES1_0; | 200 | omap_revision = OMAP3430_REV_ES1_0; |
201 | omap_chip.oc |= CHIP_IS_OMAP3430ES1; | ||
199 | return; | 202 | return; |
200 | } | 203 | } |
201 | 204 | ||
@@ -216,18 +219,28 @@ void __init omap3_check_revision(void) | |||
216 | case 0: /* Take care of early samples */ | 219 | case 0: /* Take care of early samples */ |
217 | case 1: | 220 | case 1: |
218 | omap_revision = OMAP3430_REV_ES2_0; | 221 | omap_revision = OMAP3430_REV_ES2_0; |
222 | omap_chip.oc |= CHIP_IS_OMAP3430ES2; | ||
219 | break; | 223 | break; |
220 | case 2: | 224 | case 2: |
221 | omap_revision = OMAP3430_REV_ES2_1; | 225 | omap_revision = OMAP3430_REV_ES2_1; |
226 | omap_chip.oc |= CHIP_IS_OMAP3430ES2; | ||
222 | break; | 227 | break; |
223 | case 3: | 228 | case 3: |
224 | omap_revision = OMAP3430_REV_ES3_0; | 229 | omap_revision = OMAP3430_REV_ES3_0; |
230 | omap_chip.oc |= CHIP_IS_OMAP3430ES3_0; | ||
225 | break; | 231 | break; |
226 | case 4: | 232 | case 4: |
233 | omap_revision = OMAP3430_REV_ES3_1; | ||
234 | omap_chip.oc |= CHIP_IS_OMAP3430ES3_1; | ||
235 | break; | ||
236 | case 7: | ||
227 | /* FALLTHROUGH */ | 237 | /* FALLTHROUGH */ |
228 | default: | 238 | default: |
229 | /* Use the latest known revision as default */ | 239 | /* Use the latest known revision as default */ |
230 | omap_revision = OMAP3430_REV_ES3_1; | 240 | omap_revision = OMAP3430_REV_ES3_1_2; |
241 | |||
242 | /* REVISIT: Add CHIP_IS_OMAP3430ES3_1_2? */ | ||
243 | omap_chip.oc |= CHIP_IS_OMAP3430ES3_1; | ||
231 | } | 244 | } |
232 | break; | 245 | break; |
233 | case 0xb868: | 246 | case 0xb868: |
@@ -235,14 +248,18 @@ void __init omap3_check_revision(void) | |||
235 | * | 248 | * |
236 | * Set the device to be OMAP3505 here. Actual device | 249 | * Set the device to be OMAP3505 here. Actual device |
237 | * is identified later based on the features. | 250 | * is identified later based on the features. |
251 | * | ||
252 | * REVISIT: AM3505/AM3517 should have their own CHIP_IS | ||
238 | */ | 253 | */ |
239 | omap_revision = OMAP3505_REV(rev); | 254 | omap_revision = OMAP3505_REV(rev); |
255 | omap_chip.oc |= CHIP_IS_OMAP3430ES3_1; | ||
240 | break; | 256 | break; |
241 | case 0xb891: | 257 | case 0xb891: |
242 | /* FALLTHROUGH */ | 258 | /* FALLTHROUGH */ |
243 | default: | 259 | default: |
244 | /* Unknown default to latest silicon rev as default*/ | 260 | /* Unknown default to latest silicon rev as default*/ |
245 | omap_revision = OMAP3630_REV_ES1_0; | 261 | omap_revision = OMAP3630_REV_ES1_0; |
262 | omap_chip.oc |= CHIP_IS_OMAP3630ES1; | ||
246 | } | 263 | } |
247 | } | 264 | } |
248 | 265 | ||
@@ -360,6 +377,7 @@ void __init omap2_check_revision(void) | |||
360 | omap3_check_revision(); | 377 | omap3_check_revision(); |
361 | omap3_check_features(); | 378 | omap3_check_features(); |
362 | omap3_cpuinfo(); | 379 | omap3_cpuinfo(); |
380 | return; | ||
363 | } else if (cpu_is_omap44xx()) { | 381 | } else if (cpu_is_omap44xx()) { |
364 | omap4_check_revision(); | 382 | omap4_check_revision(); |
365 | return; | 383 | return; |
@@ -374,27 +392,14 @@ void __init omap2_check_revision(void) | |||
374 | if (cpu_is_omap243x()) { | 392 | if (cpu_is_omap243x()) { |
375 | /* Currently only supports 2430ES2.1 and 2430-all */ | 393 | /* Currently only supports 2430ES2.1 and 2430-all */ |
376 | omap_chip.oc |= CHIP_IS_OMAP2430; | 394 | omap_chip.oc |= CHIP_IS_OMAP2430; |
395 | return; | ||
377 | } else if (cpu_is_omap242x()) { | 396 | } else if (cpu_is_omap242x()) { |
378 | /* Currently only supports 2420ES2.1.1 and 2420-all */ | 397 | /* Currently only supports 2420ES2.1.1 and 2420-all */ |
379 | omap_chip.oc |= CHIP_IS_OMAP2420; | 398 | omap_chip.oc |= CHIP_IS_OMAP2420; |
380 | } else if (cpu_is_omap3505() || cpu_is_omap3517()) { | 399 | return; |
381 | omap_chip.oc = CHIP_IS_OMAP3430 | CHIP_IS_OMAP3430ES3_1; | ||
382 | } else if (cpu_is_omap343x()) { | ||
383 | omap_chip.oc = CHIP_IS_OMAP3430; | ||
384 | if (omap_rev() == OMAP3430_REV_ES1_0) | ||
385 | omap_chip.oc |= CHIP_IS_OMAP3430ES1; | ||
386 | else if (omap_rev() >= OMAP3430_REV_ES2_0 && | ||
387 | omap_rev() <= OMAP3430_REV_ES2_1) | ||
388 | omap_chip.oc |= CHIP_IS_OMAP3430ES2; | ||
389 | else if (omap_rev() == OMAP3430_REV_ES3_0) | ||
390 | omap_chip.oc |= CHIP_IS_OMAP3430ES3_0; | ||
391 | else if (omap_rev() == OMAP3430_REV_ES3_1) | ||
392 | omap_chip.oc |= CHIP_IS_OMAP3430ES3_1; | ||
393 | else if (omap_rev() == OMAP3630_REV_ES1_0) | ||
394 | omap_chip.oc |= CHIP_IS_OMAP3630ES1; | ||
395 | } else { | ||
396 | pr_err("Uninitialized omap_chip, please fix!\n"); | ||
397 | } | 400 | } |
401 | |||
402 | pr_err("Uninitialized omap_chip, please fix!\n"); | ||
398 | } | 403 | } |
399 | 404 | ||
400 | /* | 405 | /* |
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c index e9bc782fa41..26aeef560aa 100644 --- a/arch/arm/mach-omap2/irq.c +++ b/arch/arm/mach-omap2/irq.c | |||
@@ -194,7 +194,7 @@ void __init omap_init_irq(void) | |||
194 | int i; | 194 | int i; |
195 | 195 | ||
196 | for (i = 0; i < ARRAY_SIZE(irq_banks); i++) { | 196 | for (i = 0; i < ARRAY_SIZE(irq_banks); i++) { |
197 | unsigned long base; | 197 | unsigned long base = 0; |
198 | struct omap_irq_bank *bank = irq_banks + i; | 198 | struct omap_irq_bank *bank = irq_banks + i; |
199 | 199 | ||
200 | if (cpu_is_omap24xx()) | 200 | if (cpu_is_omap24xx()) |
@@ -202,6 +202,8 @@ void __init omap_init_irq(void) | |||
202 | else if (cpu_is_omap34xx()) | 202 | else if (cpu_is_omap34xx()) |
203 | base = OMAP34XX_IC_BASE; | 203 | base = OMAP34XX_IC_BASE; |
204 | 204 | ||
205 | BUG_ON(!base); | ||
206 | |||
205 | /* Static mapping, never released */ | 207 | /* Static mapping, never released */ |
206 | bank->base_reg = ioremap(base, SZ_4K); | 208 | bank->base_reg = ioremap(base, SZ_4K); |
207 | if (!bank->base_reg) { | 209 | if (!bank->base_reg) { |
@@ -274,4 +276,22 @@ void omap_intc_restore_context(void) | |||
274 | } | 276 | } |
275 | /* MIRs are saved and restore with other PRCM registers */ | 277 | /* MIRs are saved and restore with other PRCM registers */ |
276 | } | 278 | } |
279 | |||
280 | void omap3_intc_suspend(void) | ||
281 | { | ||
282 | /* A pending interrupt would prevent OMAP from entering suspend */ | ||
283 | omap_ack_irq(0); | ||
284 | } | ||
285 | |||
286 | void omap3_intc_prepare_idle(void) | ||
287 | { | ||
288 | /* Disable autoidle as it can stall interrupt controller */ | ||
289 | intc_bank_write_reg(0, &irq_banks[0], INTC_SYSCONFIG); | ||
290 | } | ||
291 | |||
292 | void omap3_intc_resume_idle(void) | ||
293 | { | ||
294 | /* Re-enable autoidle */ | ||
295 | intc_bank_write_reg(1, &irq_banks[0], INTC_SYSCONFIG); | ||
296 | } | ||
277 | #endif /* CONFIG_ARCH_OMAP3 */ | 297 | #endif /* CONFIG_ARCH_OMAP3 */ |
diff --git a/arch/arm/mach-omap2/mmc-twl4030.c b/arch/arm/mach-omap2/mmc-twl4030.c index 0c3c72d934b..8afe9dd3f15 100644 --- a/arch/arm/mach-omap2/mmc-twl4030.c +++ b/arch/arm/mach-omap2/mmc-twl4030.c | |||
@@ -408,6 +408,7 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers) | |||
408 | { | 408 | { |
409 | struct twl4030_hsmmc_info *c; | 409 | struct twl4030_hsmmc_info *c; |
410 | int nr_hsmmc = ARRAY_SIZE(hsmmc_data); | 410 | int nr_hsmmc = ARRAY_SIZE(hsmmc_data); |
411 | int i; | ||
411 | 412 | ||
412 | if (cpu_is_omap2430()) { | 413 | if (cpu_is_omap2430()) { |
413 | control_pbias_offset = OMAP243X_CONTROL_PBIAS_LITE; | 414 | control_pbias_offset = OMAP243X_CONTROL_PBIAS_LITE; |
@@ -434,7 +435,7 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers) | |||
434 | mmc = kzalloc(sizeof(struct omap_mmc_platform_data), GFP_KERNEL); | 435 | mmc = kzalloc(sizeof(struct omap_mmc_platform_data), GFP_KERNEL); |
435 | if (!mmc) { | 436 | if (!mmc) { |
436 | pr_err("Cannot allocate memory for mmc device!\n"); | 437 | pr_err("Cannot allocate memory for mmc device!\n"); |
437 | return; | 438 | goto done; |
438 | } | 439 | } |
439 | 440 | ||
440 | if (c->name) | 441 | if (c->name) |
@@ -532,6 +533,10 @@ void __init twl4030_mmc_init(struct twl4030_hsmmc_info *controllers) | |||
532 | continue; | 533 | continue; |
533 | c->dev = mmc->dev; | 534 | c->dev = mmc->dev; |
534 | } | 535 | } |
536 | |||
537 | done: | ||
538 | for (i = 0; i < nr_hsmmc; i++) | ||
539 | kfree(hsmmc_data[i]); | ||
535 | } | 540 | } |
536 | 541 | ||
537 | #endif | 542 | #endif |
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index 459ef23ab8a..5fedc50c58e 100644 --- a/arch/arm/mach-omap2/mux.c +++ b/arch/arm/mach-omap2/mux.c | |||
@@ -51,7 +51,7 @@ struct omap_mux_entry { | |||
51 | static unsigned long mux_phys; | 51 | static unsigned long mux_phys; |
52 | static void __iomem *mux_base; | 52 | static void __iomem *mux_base; |
53 | 53 | ||
54 | static inline u16 omap_mux_read(u16 reg) | 54 | u16 omap_mux_read(u16 reg) |
55 | { | 55 | { |
56 | if (cpu_is_omap24xx()) | 56 | if (cpu_is_omap24xx()) |
57 | return __raw_readb(mux_base + reg); | 57 | return __raw_readb(mux_base + reg); |
@@ -59,7 +59,7 @@ static inline u16 omap_mux_read(u16 reg) | |||
59 | return __raw_readw(mux_base + reg); | 59 | return __raw_readw(mux_base + reg); |
60 | } | 60 | } |
61 | 61 | ||
62 | static inline void omap_mux_write(u16 val, u16 reg) | 62 | void omap_mux_write(u16 val, u16 reg) |
63 | { | 63 | { |
64 | if (cpu_is_omap24xx()) | 64 | if (cpu_is_omap24xx()) |
65 | __raw_writeb(val, mux_base + reg); | 65 | __raw_writeb(val, mux_base + reg); |
@@ -67,6 +67,14 @@ static inline void omap_mux_write(u16 val, u16 reg) | |||
67 | __raw_writew(val, mux_base + reg); | 67 | __raw_writew(val, mux_base + reg); |
68 | } | 68 | } |
69 | 69 | ||
70 | void omap_mux_write_array(struct omap_board_mux *board_mux) | ||
71 | { | ||
72 | while (board_mux->reg_offset != OMAP_MUX_TERMINATOR) { | ||
73 | omap_mux_write(board_mux->value, board_mux->reg_offset); | ||
74 | board_mux++; | ||
75 | } | ||
76 | } | ||
77 | |||
70 | #if defined(CONFIG_ARCH_OMAP24XX) && defined(CONFIG_OMAP_MUX) | 78 | #if defined(CONFIG_ARCH_OMAP24XX) && defined(CONFIG_OMAP_MUX) |
71 | 79 | ||
72 | static struct omap_mux_cfg arch_mux_cfg; | 80 | static struct omap_mux_cfg arch_mux_cfg; |
@@ -478,7 +486,7 @@ int __init omap_mux_init_signal(char *muxname, int val) | |||
478 | static inline void omap_mux_decode(struct seq_file *s, u16 val) | 486 | static inline void omap_mux_decode(struct seq_file *s, u16 val) |
479 | { | 487 | { |
480 | char *flags[OMAP_MUX_MAX_NR_FLAGS]; | 488 | char *flags[OMAP_MUX_MAX_NR_FLAGS]; |
481 | char mode[14]; | 489 | char mode[sizeof("OMAP_MUX_MODE") + 1]; |
482 | int i = -1; | 490 | int i = -1; |
483 | 491 | ||
484 | sprintf(mode, "OMAP_MUX_MODE%d", val & 0x7); | 492 | sprintf(mode, "OMAP_MUX_MODE%d", val & 0x7); |
@@ -545,6 +553,7 @@ static int omap_mux_dbg_board_show(struct seq_file *s, void *unused) | |||
545 | if (!m0_name) | 553 | if (!m0_name) |
546 | continue; | 554 | continue; |
547 | 555 | ||
556 | /* REVISIT: Needs to be updated if mode0 names get longer */ | ||
548 | for (i = 0; i < OMAP_MUX_DEFNAME_LEN; i++) { | 557 | for (i = 0; i < OMAP_MUX_DEFNAME_LEN; i++) { |
549 | if (m0_name[i] == '\0') { | 558 | if (m0_name[i] == '\0') { |
550 | m0_def[i] = m0_name[i]; | 559 | m0_def[i] = m0_name[i]; |
@@ -833,14 +842,6 @@ static void __init omap_mux_set_cmdline_signals(void) | |||
833 | kfree(options); | 842 | kfree(options); |
834 | } | 843 | } |
835 | 844 | ||
836 | static void __init omap_mux_set_board_signals(struct omap_board_mux *board_mux) | ||
837 | { | ||
838 | while (board_mux->reg_offset != OMAP_MUX_TERMINATOR) { | ||
839 | omap_mux_write(board_mux->value, board_mux->reg_offset); | ||
840 | board_mux++; | ||
841 | } | ||
842 | } | ||
843 | |||
844 | static int __init omap_mux_copy_names(struct omap_mux *src, | 845 | static int __init omap_mux_copy_names(struct omap_mux *src, |
845 | struct omap_mux *dst) | 846 | struct omap_mux *dst) |
846 | { | 847 | { |
@@ -968,6 +969,13 @@ static void __init omap_mux_init_list(struct omap_mux *superset) | |||
968 | } | 969 | } |
969 | #endif | 970 | #endif |
970 | 971 | ||
972 | #if defined(CONFIG_OMAP_MUX) && defined(CONFIG_DEBUG_FS) | ||
973 | if (!superset->muxnames || !superset->muxnames[0]) { | ||
974 | superset++; | ||
975 | continue; | ||
976 | } | ||
977 | #endif | ||
978 | |||
971 | entry = omap_mux_list_add(superset); | 979 | entry = omap_mux_list_add(superset); |
972 | if (!entry) { | 980 | if (!entry) { |
973 | printk(KERN_ERR "mux: Could not add entry\n"); | 981 | printk(KERN_ERR "mux: Could not add entry\n"); |
@@ -998,12 +1006,15 @@ int __init omap_mux_init(u32 mux_pbase, u32 mux_size, | |||
998 | omap_mux_package_fixup(package_subset, superset); | 1006 | omap_mux_package_fixup(package_subset, superset); |
999 | if (package_balls) | 1007 | if (package_balls) |
1000 | omap_mux_package_init_balls(package_balls, superset); | 1008 | omap_mux_package_init_balls(package_balls, superset); |
1001 | omap_mux_set_cmdline_signals(); | ||
1002 | omap_mux_set_board_signals(board_mux); | ||
1003 | #endif | 1009 | #endif |
1004 | 1010 | ||
1005 | omap_mux_init_list(superset); | 1011 | omap_mux_init_list(superset); |
1006 | 1012 | ||
1013 | #ifdef CONFIG_OMAP_MUX | ||
1014 | omap_mux_set_cmdline_signals(); | ||
1015 | omap_mux_write_array(board_mux); | ||
1016 | #endif | ||
1017 | |||
1007 | return 0; | 1018 | return 0; |
1008 | } | 1019 | } |
1009 | 1020 | ||
diff --git a/arch/arm/mach-omap2/mux.h b/arch/arm/mach-omap2/mux.h index d8b4d5ad227..f8c2e7a8f06 100644 --- a/arch/arm/mach-omap2/mux.h +++ b/arch/arm/mach-omap2/mux.h | |||
@@ -147,6 +147,30 @@ u16 omap_mux_get_gpio(int gpio); | |||
147 | void omap_mux_set_gpio(u16 val, int gpio); | 147 | void omap_mux_set_gpio(u16 val, int gpio); |
148 | 148 | ||
149 | /** | 149 | /** |
150 | * omap_mux_read() - read mux register | ||
151 | * @mux_offset: Offset of the mux register | ||
152 | * | ||
153 | */ | ||
154 | u16 omap_mux_read(u16 mux_offset); | ||
155 | |||
156 | /** | ||
157 | * omap_mux_write() - write mux register | ||
158 | * @val: New mux register value | ||
159 | * @mux_offset: Offset of the mux register | ||
160 | * | ||
161 | * This should be only needed for dynamic remuxing of non-gpio signals. | ||
162 | */ | ||
163 | void omap_mux_write(u16 val, u16 mux_offset); | ||
164 | |||
165 | /** | ||
166 | * omap_mux_write_array() - write an array of mux registers | ||
167 | * @board_mux: Array of mux registers terminated by MAP_MUX_TERMINATOR | ||
168 | * | ||
169 | * This should be only needed for dynamic remuxing of non-gpio signals. | ||
170 | */ | ||
171 | void omap_mux_write_array(struct omap_board_mux *board_mux); | ||
172 | |||
173 | /** | ||
150 | * omap3_mux_init() - initialize mux system with board specific set | 174 | * omap3_mux_init() - initialize mux system with board specific set |
151 | * @board_mux: Board specific mux table | 175 | * @board_mux: Board specific mux table |
152 | * @flags: OMAP package type used for the board | 176 | * @flags: OMAP package type used for the board |
diff --git a/arch/arm/mach-omap2/mux34xx.c b/arch/arm/mach-omap2/mux34xx.c index 68e0a595f9a..07aa7b3c95f 100644 --- a/arch/arm/mach-omap2/mux34xx.c +++ b/arch/arm/mach-omap2/mux34xx.c | |||
@@ -649,6 +649,53 @@ static struct omap_mux __initdata omap3_muxmodes[] = { | |||
649 | _OMAP3_MUXENTRY(UART3_TX_IRTX, 166, | 649 | _OMAP3_MUXENTRY(UART3_TX_IRTX, 166, |
650 | "uart3_tx_irtx", NULL, NULL, NULL, | 650 | "uart3_tx_irtx", NULL, NULL, NULL, |
651 | "gpio_166", NULL, NULL, "safe_mode"), | 651 | "gpio_166", NULL, NULL, "safe_mode"), |
652 | |||
653 | /* Only on 3630, see omap36xx_cbp_subset for the signals */ | ||
654 | _OMAP3_MUXENTRY(GPMC_A11, 0, | ||
655 | NULL, NULL, NULL, NULL, | ||
656 | NULL, NULL, NULL, NULL), | ||
657 | _OMAP3_MUXENTRY(SAD2D_MBUSFLAG, 0, | ||
658 | NULL, NULL, NULL, NULL, | ||
659 | NULL, NULL, NULL, NULL), | ||
660 | _OMAP3_MUXENTRY(SAD2D_MREAD, 0, | ||
661 | NULL, NULL, NULL, NULL, | ||
662 | NULL, NULL, NULL, NULL), | ||
663 | _OMAP3_MUXENTRY(SAD2D_MWRITE, 0, | ||
664 | NULL, NULL, NULL, NULL, | ||
665 | NULL, NULL, NULL, NULL), | ||
666 | _OMAP3_MUXENTRY(SAD2D_SBUSFLAG, 0, | ||
667 | NULL, NULL, NULL, NULL, | ||
668 | NULL, NULL, NULL, NULL), | ||
669 | _OMAP3_MUXENTRY(SAD2D_SREAD, 0, | ||
670 | NULL, NULL, NULL, NULL, | ||
671 | NULL, NULL, NULL, NULL), | ||
672 | _OMAP3_MUXENTRY(SAD2D_SWRITE, 0, | ||
673 | NULL, NULL, NULL, NULL, | ||
674 | NULL, NULL, NULL, NULL), | ||
675 | _OMAP3_MUXENTRY(GPMC_A11, 0, | ||
676 | NULL, NULL, NULL, NULL, | ||
677 | NULL, NULL, NULL, NULL), | ||
678 | _OMAP3_MUXENTRY(SAD2D_MCAD28, 0, | ||
679 | NULL, NULL, NULL, NULL, | ||
680 | NULL, NULL, NULL, NULL), | ||
681 | _OMAP3_MUXENTRY(SAD2D_MCAD29, 0, | ||
682 | NULL, NULL, NULL, NULL, | ||
683 | NULL, NULL, NULL, NULL), | ||
684 | _OMAP3_MUXENTRY(SAD2D_MCAD32, 0, | ||
685 | NULL, NULL, NULL, NULL, | ||
686 | NULL, NULL, NULL, NULL), | ||
687 | _OMAP3_MUXENTRY(SAD2D_MCAD33, 0, | ||
688 | NULL, NULL, NULL, NULL, | ||
689 | NULL, NULL, NULL, NULL), | ||
690 | _OMAP3_MUXENTRY(SAD2D_MCAD34, 0, | ||
691 | NULL, NULL, NULL, NULL, | ||
692 | NULL, NULL, NULL, NULL), | ||
693 | _OMAP3_MUXENTRY(SAD2D_MCAD35, 0, | ||
694 | NULL, NULL, NULL, NULL, | ||
695 | NULL, NULL, NULL, NULL), | ||
696 | _OMAP3_MUXENTRY(SAD2D_MCAD36, 0, | ||
697 | NULL, NULL, NULL, NULL, | ||
698 | NULL, NULL, NULL, NULL), | ||
652 | { .reg_offset = OMAP_MUX_TERMINATOR }, | 699 | { .reg_offset = OMAP_MUX_TERMINATOR }, |
653 | }; | 700 | }; |
654 | 701 | ||
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index d8c8545875b..478ae585ca3 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c | |||
@@ -94,7 +94,8 @@ static int _update_sysc_cache(struct omap_hwmod *oh) | |||
94 | 94 | ||
95 | oh->_sysc_cache = omap_hwmod_readl(oh, oh->sysconfig->sysc_offs); | 95 | oh->_sysc_cache = omap_hwmod_readl(oh, oh->sysconfig->sysc_offs); |
96 | 96 | ||
97 | oh->_int_flags |= _HWMOD_SYSCONFIG_LOADED; | 97 | if (!(oh->sysconfig->sysc_flags & SYSC_NO_CACHE)) |
98 | oh->_int_flags |= _HWMOD_SYSCONFIG_LOADED; | ||
98 | 99 | ||
99 | return 0; | 100 | return 0; |
100 | } | 101 | } |
diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c index 860b755d222..a0866268aa4 100644 --- a/arch/arm/mach-omap2/pm-debug.c +++ b/arch/arm/mach-omap2/pm-debug.c | |||
@@ -54,8 +54,6 @@ int omap2_pm_debug; | |||
54 | regs[reg_count++].val = \ | 54 | regs[reg_count++].val = \ |
55 | __raw_readl(OMAP2_L4_IO_ADDRESS(0x480fe000 + (off))) | 55 | __raw_readl(OMAP2_L4_IO_ADDRESS(0x480fe000 + (off))) |
56 | 56 | ||
57 | static int __init pm_dbg_init(void); | ||
58 | |||
59 | void omap2_pm_dump(int mode, int resume, unsigned int us) | 57 | void omap2_pm_dump(int mode, int resume, unsigned int us) |
60 | { | 58 | { |
61 | struct reg { | 59 | struct reg { |
@@ -167,6 +165,8 @@ struct dentry *pm_dbg_dir; | |||
167 | 165 | ||
168 | static int pm_dbg_init_done; | 166 | static int pm_dbg_init_done; |
169 | 167 | ||
168 | static int __init pm_dbg_init(void); | ||
169 | |||
170 | enum { | 170 | enum { |
171 | DEBUG_FILE_COUNTERS = 0, | 171 | DEBUG_FILE_COUNTERS = 0, |
172 | DEBUG_FILE_TIMERS, | 172 | DEBUG_FILE_TIMERS, |
@@ -488,9 +488,11 @@ int pm_dbg_regset_init(int reg_set) | |||
488 | 488 | ||
489 | static int pwrdm_suspend_get(void *data, u64 *val) | 489 | static int pwrdm_suspend_get(void *data, u64 *val) |
490 | { | 490 | { |
491 | *val = omap3_pm_get_suspend_state((struct powerdomain *)data); | 491 | int ret; |
492 | ret = omap3_pm_get_suspend_state((struct powerdomain *)data); | ||
493 | *val = ret; | ||
492 | 494 | ||
493 | if (*val >= 0) | 495 | if (ret >= 0) |
494 | return 0; | 496 | return 0; |
495 | return *val; | 497 | return *val; |
496 | } | 498 | } |
@@ -604,6 +606,4 @@ static int __init pm_dbg_init(void) | |||
604 | } | 606 | } |
605 | arch_initcall(pm_dbg_init); | 607 | arch_initcall(pm_dbg_init); |
606 | 608 | ||
607 | #else | ||
608 | void pm_dbg_update_time(struct powerdomain *pwrdm, int prev) {} | ||
609 | #endif | 609 | #endif |
diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h index 0bf345db714..7a9c2d00451 100644 --- a/arch/arm/mach-omap2/pm.h +++ b/arch/arm/mach-omap2/pm.h | |||
@@ -32,12 +32,16 @@ extern struct omap_dm_timer *gptimer_wakeup; | |||
32 | #ifdef CONFIG_PM_DEBUG | 32 | #ifdef CONFIG_PM_DEBUG |
33 | extern void omap2_pm_dump(int mode, int resume, unsigned int us); | 33 | extern void omap2_pm_dump(int mode, int resume, unsigned int us); |
34 | extern int omap2_pm_debug; | 34 | extern int omap2_pm_debug; |
35 | #else | ||
36 | #define omap2_pm_dump(mode, resume, us) do {} while (0); | ||
37 | #define omap2_pm_debug 0 | ||
38 | #endif | ||
39 | |||
40 | #if defined(CONFIG_PM_DEBUG) && defined(CONFIG_DEBUG_FS) | ||
35 | extern void pm_dbg_update_time(struct powerdomain *pwrdm, int prev); | 41 | extern void pm_dbg_update_time(struct powerdomain *pwrdm, int prev); |
36 | extern int pm_dbg_regset_save(int reg_set); | 42 | extern int pm_dbg_regset_save(int reg_set); |
37 | extern int pm_dbg_regset_init(int reg_set); | 43 | extern int pm_dbg_regset_init(int reg_set); |
38 | #else | 44 | #else |
39 | #define omap2_pm_dump(mode, resume, us) do {} while (0); | ||
40 | #define omap2_pm_debug 0 | ||
41 | #define pm_dbg_update_time(pwrdm, prev) do {} while (0); | 45 | #define pm_dbg_update_time(pwrdm, prev) do {} while (0); |
42 | #define pm_dbg_regset_save(reg_set) do {} while (0); | 46 | #define pm_dbg_regset_save(reg_set) do {} while (0); |
43 | #define pm_dbg_regset_init(reg_set) do {} while (0); | 47 | #define pm_dbg_regset_init(reg_set) do {} while (0); |
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index c6cc809afb7..910a7acf542 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/err.h> | 26 | #include <linux/err.h> |
27 | #include <linux/gpio.h> | 27 | #include <linux/gpio.h> |
28 | #include <linux/clk.h> | 28 | #include <linux/clk.h> |
29 | #include <linux/delay.h> | ||
29 | 30 | ||
30 | #include <plat/sram.h> | 31 | #include <plat/sram.h> |
31 | #include <plat/clockdomain.h> | 32 | #include <plat/clockdomain.h> |
@@ -126,7 +127,15 @@ static void omap3_core_save_context(void) | |||
126 | /* wait for the save to complete */ | 127 | /* wait for the save to complete */ |
127 | while (!(omap_ctrl_readl(OMAP343X_CONTROL_GENERAL_PURPOSE_STATUS) | 128 | while (!(omap_ctrl_readl(OMAP343X_CONTROL_GENERAL_PURPOSE_STATUS) |
128 | & PADCONF_SAVE_DONE)) | 129 | & PADCONF_SAVE_DONE)) |
129 | ; | 130 | udelay(1); |
131 | |||
132 | /* | ||
133 | * Force write last pad into memory, as this can fail in some | ||
134 | * cases according to erratas 1.157, 1.185 | ||
135 | */ | ||
136 | omap_ctrl_writel(omap_ctrl_readl(OMAP343X_PADCONF_ETK_D14), | ||
137 | OMAP343X_CONTROL_MEM_WKUP + 0x2a0); | ||
138 | |||
130 | /* Save the Interrupt controller context */ | 139 | /* Save the Interrupt controller context */ |
131 | omap_intc_save_context(); | 140 | omap_intc_save_context(); |
132 | /* Save the GPMC context */ | 141 | /* Save the GPMC context */ |
@@ -392,6 +401,7 @@ void omap_sram_idle(void) | |||
392 | prm_set_mod_reg_bits(OMAP3430_EN_IO, WKUP_MOD, PM_WKEN); | 401 | prm_set_mod_reg_bits(OMAP3430_EN_IO, WKUP_MOD, PM_WKEN); |
393 | omap3_enable_io_chain(); | 402 | omap3_enable_io_chain(); |
394 | } | 403 | } |
404 | omap3_intc_prepare_idle(); | ||
395 | 405 | ||
396 | /* | 406 | /* |
397 | * On EMU/HS devices ROM code restores a SRDC value | 407 | * On EMU/HS devices ROM code restores a SRDC value |
@@ -438,6 +448,7 @@ void omap_sram_idle(void) | |||
438 | OMAP3430_GR_MOD, | 448 | OMAP3430_GR_MOD, |
439 | OMAP3_PRM_VOLTCTRL_OFFSET); | 449 | OMAP3_PRM_VOLTCTRL_OFFSET); |
440 | } | 450 | } |
451 | omap3_intc_resume_idle(); | ||
441 | 452 | ||
442 | /* PER */ | 453 | /* PER */ |
443 | if (per_next_state < PWRDM_POWER_ON) { | 454 | if (per_next_state < PWRDM_POWER_ON) { |
@@ -578,6 +589,8 @@ static int omap3_pm_suspend(void) | |||
578 | } | 589 | } |
579 | 590 | ||
580 | omap_uart_prepare_suspend(); | 591 | omap_uart_prepare_suspend(); |
592 | omap3_intc_suspend(); | ||
593 | |||
581 | omap_sram_idle(); | 594 | omap_sram_idle(); |
582 | 595 | ||
583 | restore: | 596 | restore: |
@@ -835,6 +848,8 @@ static void __init prcm_setup_regs(void) | |||
835 | CM_AUTOIDLE); | 848 | CM_AUTOIDLE); |
836 | } | 849 | } |
837 | 850 | ||
851 | omap_ctrl_writel(OMAP3430_AUTOIDLE, OMAP2_CONTROL_SYSCONFIG); | ||
852 | |||
838 | /* | 853 | /* |
839 | * Set all plls to autoidle. This is needed until autoidle is | 854 | * Set all plls to autoidle. This is needed until autoidle is |
840 | * enabled by clockfw | 855 | * enabled by clockfw |
@@ -875,15 +890,23 @@ static void __init prcm_setup_regs(void) | |||
875 | prm_write_mod_reg(OMAP3430_IO_EN | OMAP3430_WKUP_EN, | 890 | prm_write_mod_reg(OMAP3430_IO_EN | OMAP3430_WKUP_EN, |
876 | OCP_MOD, OMAP3_PRM_IRQENABLE_MPU_OFFSET); | 891 | OCP_MOD, OMAP3_PRM_IRQENABLE_MPU_OFFSET); |
877 | 892 | ||
893 | /* Enable PM_WKEN to support DSS LPR */ | ||
894 | prm_write_mod_reg(OMAP3430_PM_WKEN_DSS_EN_DSS, | ||
895 | OMAP3430_DSS_MOD, PM_WKEN); | ||
896 | |||
878 | /* Enable wakeups in PER */ | 897 | /* Enable wakeups in PER */ |
879 | prm_write_mod_reg(OMAP3430_EN_GPIO2 | OMAP3430_EN_GPIO3 | | 898 | prm_write_mod_reg(OMAP3430_EN_GPIO2 | OMAP3430_EN_GPIO3 | |
880 | OMAP3430_EN_GPIO4 | OMAP3430_EN_GPIO5 | | 899 | OMAP3430_EN_GPIO4 | OMAP3430_EN_GPIO5 | |
881 | OMAP3430_EN_GPIO6 | OMAP3430_EN_UART3, | 900 | OMAP3430_EN_GPIO6 | OMAP3430_EN_UART3 | |
901 | OMAP3430_EN_MCBSP2 | OMAP3430_EN_MCBSP3 | | ||
902 | OMAP3430_EN_MCBSP4, | ||
882 | OMAP3430_PER_MOD, PM_WKEN); | 903 | OMAP3430_PER_MOD, PM_WKEN); |
883 | /* and allow them to wake up MPU */ | 904 | /* and allow them to wake up MPU */ |
884 | prm_write_mod_reg(OMAP3430_GRPSEL_GPIO2 | OMAP3430_EN_GPIO3 | | 905 | prm_write_mod_reg(OMAP3430_GRPSEL_GPIO2 | OMAP3430_EN_GPIO3 | |
885 | OMAP3430_GRPSEL_GPIO4 | OMAP3430_EN_GPIO5 | | 906 | OMAP3430_GRPSEL_GPIO4 | OMAP3430_EN_GPIO5 | |
886 | OMAP3430_GRPSEL_GPIO6 | OMAP3430_EN_UART3, | 907 | OMAP3430_GRPSEL_GPIO6 | OMAP3430_EN_UART3 | |
908 | OMAP3430_EN_MCBSP2 | OMAP3430_EN_MCBSP3 | | ||
909 | OMAP3430_EN_MCBSP4, | ||
887 | OMAP3430_PER_MOD, OMAP3430_PM_MPUGRPSEL); | 910 | OMAP3430_PER_MOD, OMAP3430_PM_MPUGRPSEL); |
888 | 911 | ||
889 | /* Don't attach IVA interrupts */ | 912 | /* Don't attach IVA interrupts */ |
@@ -904,24 +927,6 @@ static void __init prcm_setup_regs(void) | |||
904 | /* Clear any pending PRCM interrupts */ | 927 | /* Clear any pending PRCM interrupts */ |
905 | prm_write_mod_reg(0, OCP_MOD, OMAP3_PRM_IRQSTATUS_MPU_OFFSET); | 928 | prm_write_mod_reg(0, OCP_MOD, OMAP3_PRM_IRQSTATUS_MPU_OFFSET); |
906 | 929 | ||
907 | /* Don't attach IVA interrupts */ | ||
908 | prm_write_mod_reg(0, WKUP_MOD, OMAP3430_PM_IVAGRPSEL); | ||
909 | prm_write_mod_reg(0, CORE_MOD, OMAP3430_PM_IVAGRPSEL1); | ||
910 | prm_write_mod_reg(0, CORE_MOD, OMAP3430ES2_PM_IVAGRPSEL3); | ||
911 | prm_write_mod_reg(0, OMAP3430_PER_MOD, OMAP3430_PM_IVAGRPSEL); | ||
912 | |||
913 | /* Clear any pending 'reset' flags */ | ||
914 | prm_write_mod_reg(0xffffffff, MPU_MOD, RM_RSTST); | ||
915 | prm_write_mod_reg(0xffffffff, CORE_MOD, RM_RSTST); | ||
916 | prm_write_mod_reg(0xffffffff, OMAP3430_PER_MOD, RM_RSTST); | ||
917 | prm_write_mod_reg(0xffffffff, OMAP3430_EMU_MOD, RM_RSTST); | ||
918 | prm_write_mod_reg(0xffffffff, OMAP3430_NEON_MOD, RM_RSTST); | ||
919 | prm_write_mod_reg(0xffffffff, OMAP3430_DSS_MOD, RM_RSTST); | ||
920 | prm_write_mod_reg(0xffffffff, OMAP3430ES2_USBHOST_MOD, RM_RSTST); | ||
921 | |||
922 | /* Clear any pending PRCM interrupts */ | ||
923 | prm_write_mod_reg(0, OCP_MOD, OMAP3_PRM_IRQSTATUS_MPU_OFFSET); | ||
924 | |||
925 | omap3_iva_idle(); | 930 | omap3_iva_idle(); |
926 | omap3_d2d_idle(); | 931 | omap3_d2d_idle(); |
927 | } | 932 | } |
diff --git a/arch/arm/mach-omap2/prcm.c b/arch/arm/mach-omap2/prcm.c index 3ea8177ffb2..cf466ea1dff 100644 --- a/arch/arm/mach-omap2/prcm.c +++ b/arch/arm/mach-omap2/prcm.c | |||
@@ -44,7 +44,6 @@ struct omap3_prcm_regs { | |||
44 | u32 iva2_cm_clksel2; | 44 | u32 iva2_cm_clksel2; |
45 | u32 cm_sysconfig; | 45 | u32 cm_sysconfig; |
46 | u32 sgx_cm_clksel; | 46 | u32 sgx_cm_clksel; |
47 | u32 wkup_cm_clksel; | ||
48 | u32 dss_cm_clksel; | 47 | u32 dss_cm_clksel; |
49 | u32 cam_cm_clksel; | 48 | u32 cam_cm_clksel; |
50 | u32 per_cm_clksel; | 49 | u32 per_cm_clksel; |
@@ -53,7 +52,6 @@ struct omap3_prcm_regs { | |||
53 | u32 pll_cm_autoidle2; | 52 | u32 pll_cm_autoidle2; |
54 | u32 pll_cm_clksel4; | 53 | u32 pll_cm_clksel4; |
55 | u32 pll_cm_clksel5; | 54 | u32 pll_cm_clksel5; |
56 | u32 pll_cm_clken; | ||
57 | u32 pll_cm_clken2; | 55 | u32 pll_cm_clken2; |
58 | u32 cm_polctrl; | 56 | u32 cm_polctrl; |
59 | u32 iva2_cm_fclken; | 57 | u32 iva2_cm_fclken; |
@@ -77,7 +75,6 @@ struct omap3_prcm_regs { | |||
77 | u32 usbhost_cm_iclken; | 75 | u32 usbhost_cm_iclken; |
78 | u32 iva2_cm_autiidle2; | 76 | u32 iva2_cm_autiidle2; |
79 | u32 mpu_cm_autoidle2; | 77 | u32 mpu_cm_autoidle2; |
80 | u32 pll_cm_autoidle; | ||
81 | u32 iva2_cm_clkstctrl; | 78 | u32 iva2_cm_clkstctrl; |
82 | u32 mpu_cm_clkstctrl; | 79 | u32 mpu_cm_clkstctrl; |
83 | u32 core_cm_clkstctrl; | 80 | u32 core_cm_clkstctrl; |
@@ -274,7 +271,6 @@ void omap3_prcm_save_context(void) | |||
274 | prcm_context.cm_sysconfig = __raw_readl(OMAP3430_CM_SYSCONFIG); | 271 | prcm_context.cm_sysconfig = __raw_readl(OMAP3430_CM_SYSCONFIG); |
275 | prcm_context.sgx_cm_clksel = | 272 | prcm_context.sgx_cm_clksel = |
276 | cm_read_mod_reg(OMAP3430ES2_SGX_MOD, CM_CLKSEL); | 273 | cm_read_mod_reg(OMAP3430ES2_SGX_MOD, CM_CLKSEL); |
277 | prcm_context.wkup_cm_clksel = cm_read_mod_reg(WKUP_MOD, CM_CLKSEL); | ||
278 | prcm_context.dss_cm_clksel = | 274 | prcm_context.dss_cm_clksel = |
279 | cm_read_mod_reg(OMAP3430_DSS_MOD, CM_CLKSEL); | 275 | cm_read_mod_reg(OMAP3430_DSS_MOD, CM_CLKSEL); |
280 | prcm_context.cam_cm_clksel = | 276 | prcm_context.cam_cm_clksel = |
@@ -291,8 +287,6 @@ void omap3_prcm_save_context(void) | |||
291 | cm_read_mod_reg(PLL_MOD, OMAP3430ES2_CM_CLKSEL4); | 287 | cm_read_mod_reg(PLL_MOD, OMAP3430ES2_CM_CLKSEL4); |
292 | prcm_context.pll_cm_clksel5 = | 288 | prcm_context.pll_cm_clksel5 = |
293 | cm_read_mod_reg(PLL_MOD, OMAP3430ES2_CM_CLKSEL5); | 289 | cm_read_mod_reg(PLL_MOD, OMAP3430ES2_CM_CLKSEL5); |
294 | prcm_context.pll_cm_clken = | ||
295 | cm_read_mod_reg(PLL_MOD, CM_CLKEN); | ||
296 | prcm_context.pll_cm_clken2 = | 290 | prcm_context.pll_cm_clken2 = |
297 | cm_read_mod_reg(PLL_MOD, OMAP3430ES2_CM_CLKEN2); | 291 | cm_read_mod_reg(PLL_MOD, OMAP3430ES2_CM_CLKEN2); |
298 | prcm_context.cm_polctrl = __raw_readl(OMAP3430_CM_POLCTRL); | 292 | prcm_context.cm_polctrl = __raw_readl(OMAP3430_CM_POLCTRL); |
@@ -338,8 +332,6 @@ void omap3_prcm_save_context(void) | |||
338 | cm_read_mod_reg(OMAP3430_IVA2_MOD, CM_AUTOIDLE2); | 332 | cm_read_mod_reg(OMAP3430_IVA2_MOD, CM_AUTOIDLE2); |
339 | prcm_context.mpu_cm_autoidle2 = | 333 | prcm_context.mpu_cm_autoidle2 = |
340 | cm_read_mod_reg(MPU_MOD, CM_AUTOIDLE2); | 334 | cm_read_mod_reg(MPU_MOD, CM_AUTOIDLE2); |
341 | prcm_context.pll_cm_autoidle = | ||
342 | cm_read_mod_reg(PLL_MOD, CM_AUTOIDLE); | ||
343 | prcm_context.iva2_cm_clkstctrl = | 335 | prcm_context.iva2_cm_clkstctrl = |
344 | cm_read_mod_reg(OMAP3430_IVA2_MOD, CM_CLKSTCTRL); | 336 | cm_read_mod_reg(OMAP3430_IVA2_MOD, CM_CLKSTCTRL); |
345 | prcm_context.mpu_cm_clkstctrl = | 337 | prcm_context.mpu_cm_clkstctrl = |
@@ -431,7 +423,6 @@ void omap3_prcm_restore_context(void) | |||
431 | __raw_writel(prcm_context.cm_sysconfig, OMAP3430_CM_SYSCONFIG); | 423 | __raw_writel(prcm_context.cm_sysconfig, OMAP3430_CM_SYSCONFIG); |
432 | cm_write_mod_reg(prcm_context.sgx_cm_clksel, OMAP3430ES2_SGX_MOD, | 424 | cm_write_mod_reg(prcm_context.sgx_cm_clksel, OMAP3430ES2_SGX_MOD, |
433 | CM_CLKSEL); | 425 | CM_CLKSEL); |
434 | cm_write_mod_reg(prcm_context.wkup_cm_clksel, WKUP_MOD, CM_CLKSEL); | ||
435 | cm_write_mod_reg(prcm_context.dss_cm_clksel, OMAP3430_DSS_MOD, | 426 | cm_write_mod_reg(prcm_context.dss_cm_clksel, OMAP3430_DSS_MOD, |
436 | CM_CLKSEL); | 427 | CM_CLKSEL); |
437 | cm_write_mod_reg(prcm_context.cam_cm_clksel, OMAP3430_CAM_MOD, | 428 | cm_write_mod_reg(prcm_context.cam_cm_clksel, OMAP3430_CAM_MOD, |
@@ -448,7 +439,6 @@ void omap3_prcm_restore_context(void) | |||
448 | OMAP3430ES2_CM_CLKSEL4); | 439 | OMAP3430ES2_CM_CLKSEL4); |
449 | cm_write_mod_reg(prcm_context.pll_cm_clksel5, PLL_MOD, | 440 | cm_write_mod_reg(prcm_context.pll_cm_clksel5, PLL_MOD, |
450 | OMAP3430ES2_CM_CLKSEL5); | 441 | OMAP3430ES2_CM_CLKSEL5); |
451 | cm_write_mod_reg(prcm_context.pll_cm_clken, PLL_MOD, CM_CLKEN); | ||
452 | cm_write_mod_reg(prcm_context.pll_cm_clken2, PLL_MOD, | 442 | cm_write_mod_reg(prcm_context.pll_cm_clken2, PLL_MOD, |
453 | OMAP3430ES2_CM_CLKEN2); | 443 | OMAP3430ES2_CM_CLKEN2); |
454 | __raw_writel(prcm_context.cm_polctrl, OMAP3430_CM_POLCTRL); | 444 | __raw_writel(prcm_context.cm_polctrl, OMAP3430_CM_POLCTRL); |
@@ -487,7 +477,6 @@ void omap3_prcm_restore_context(void) | |||
487 | cm_write_mod_reg(prcm_context.iva2_cm_autiidle2, OMAP3430_IVA2_MOD, | 477 | cm_write_mod_reg(prcm_context.iva2_cm_autiidle2, OMAP3430_IVA2_MOD, |
488 | CM_AUTOIDLE2); | 478 | CM_AUTOIDLE2); |
489 | cm_write_mod_reg(prcm_context.mpu_cm_autoidle2, MPU_MOD, CM_AUTOIDLE2); | 479 | cm_write_mod_reg(prcm_context.mpu_cm_autoidle2, MPU_MOD, CM_AUTOIDLE2); |
490 | cm_write_mod_reg(prcm_context.pll_cm_autoidle, PLL_MOD, CM_AUTOIDLE); | ||
491 | cm_write_mod_reg(prcm_context.iva2_cm_clkstctrl, OMAP3430_IVA2_MOD, | 480 | cm_write_mod_reg(prcm_context.iva2_cm_clkstctrl, OMAP3430_IVA2_MOD, |
492 | CM_CLKSTCTRL); | 481 | CM_CLKSTCTRL); |
493 | cm_write_mod_reg(prcm_context.mpu_cm_clkstctrl, MPU_MOD, CM_CLKSTCTRL); | 482 | cm_write_mod_reg(prcm_context.mpu_cm_clkstctrl, MPU_MOD, CM_CLKSTCTRL); |
diff --git a/arch/arm/mach-omap2/prm.h b/arch/arm/mach-omap2/prm.h index ea050ce188a..40f00628516 100644 --- a/arch/arm/mach-omap2/prm.h +++ b/arch/arm/mach-omap2/prm.h | |||
@@ -24,6 +24,8 @@ | |||
24 | OMAP2_L4_IO_ADDRESS(OMAP3430_PRM_BASE + (module) + (reg)) | 24 | OMAP2_L4_IO_ADDRESS(OMAP3430_PRM_BASE + (module) + (reg)) |
25 | #define OMAP44XX_PRM_REGADDR(module, reg) \ | 25 | #define OMAP44XX_PRM_REGADDR(module, reg) \ |
26 | OMAP2_L4_IO_ADDRESS(OMAP4430_PRM_BASE + (module) + (reg)) | 26 | OMAP2_L4_IO_ADDRESS(OMAP4430_PRM_BASE + (module) + (reg)) |
27 | #define OMAP44XX_CHIRONSS_REGADDR(module, reg) \ | ||
28 | OMAP2_L4_IO_ADDRESS(OMAP4430_CHIRONSS_BASE + (module) + (reg)) | ||
27 | 29 | ||
28 | #include "prm44xx.h" | 30 | #include "prm44xx.h" |
29 | 31 | ||
diff --git a/arch/arm/mach-omap2/prm44xx.h b/arch/arm/mach-omap2/prm44xx.h index 89be97f0589..adb2558bb12 100644 --- a/arch/arm/mach-omap2/prm44xx.h +++ b/arch/arm/mach-omap2/prm44xx.h | |||
@@ -386,26 +386,26 @@ | |||
386 | 386 | ||
387 | 387 | ||
388 | /* CHIRON_PRCM.CHIRONSS_OCP_SOCKET_PRCM register offsets */ | 388 | /* CHIRON_PRCM.CHIRONSS_OCP_SOCKET_PRCM register offsets */ |
389 | #define OMAP4430_REVISION_PRCM OMAP44XX_PRM_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_OCP_SOCKET_PRCM_MOD, 0x0000) | 389 | #define OMAP4430_REVISION_PRCM OMAP44XX_CHIRONSS_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_OCP_SOCKET_PRCM_MOD, 0x0000) |
390 | 390 | ||
391 | /* CHIRON_PRCM.CHIRONSS_DEVICE_PRM register offsets */ | 391 | /* CHIRON_PRCM.CHIRONSS_DEVICE_PRM register offsets */ |
392 | #define OMAP4430_CHIRON_PRCM_PRM_RSTST OMAP44XX_PRM_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_DEVICE_PRM_MOD, 0x0000) | 392 | #define OMAP4430_CHIRON_PRCM_PRM_RSTST OMAP44XX_CHIRONSS_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_DEVICE_PRM_MOD, 0x0000) |
393 | 393 | ||
394 | /* CHIRON_PRCM.CHIRONSS_CPU0 register offsets */ | 394 | /* CHIRON_PRCM.CHIRONSS_CPU0 register offsets */ |
395 | #define OMAP4430_PM_PDA_CPU0_PWRSTCTRL OMAP44XX_PRM_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU0_MOD, 0x0000) | 395 | #define OMAP4430_PM_PDA_CPU0_PWRSTCTRL OMAP44XX_CHIRONSS_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU0_MOD, 0x0000) |
396 | #define OMAP4430_PM_PDA_CPU0_PWRSTST OMAP44XX_PRM_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU0_MOD, 0x0004) | 396 | #define OMAP4430_PM_PDA_CPU0_PWRSTST OMAP44XX_CHIRONSS_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU0_MOD, 0x0004) |
397 | #define OMAP4430_RM_PDA_CPU0_CPU0_CONTEXT OMAP44XX_PRM_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU0_MOD, 0x0008) | 397 | #define OMAP4430_RM_PDA_CPU0_CPU0_CONTEXT OMAP44XX_CHIRONSS_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU0_MOD, 0x0008) |
398 | #define OMAP4430_RM_PDA_CPU0_CPU0_RSTCTRL OMAP44XX_PRM_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU0_MOD, 0x000c) | 398 | #define OMAP4430_RM_PDA_CPU0_CPU0_RSTCTRL OMAP44XX_CHIRONSS_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU0_MOD, 0x000c) |
399 | #define OMAP4430_RM_PDA_CPU0_CPU0_RSTST OMAP44XX_PRM_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU0_MOD, 0x0010) | 399 | #define OMAP4430_RM_PDA_CPU0_CPU0_RSTST OMAP44XX_CHIRONSS_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU0_MOD, 0x0010) |
400 | #define OMAP4430_CM_PDA_CPU0_CPU0_CLKCTRL OMAP44XX_PRM_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU0_MOD, 0x0014) | 400 | #define OMAP4430_CM_PDA_CPU0_CPU0_CLKCTRL OMAP44XX_CHIRONSS_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU0_MOD, 0x0014) |
401 | #define OMAP4430_CM_PDA_CPU0_CLKSTCTRL OMAP44XX_PRM_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU0_MOD, 0x0018) | 401 | #define OMAP4430_CM_PDA_CPU0_CLKSTCTRL OMAP44XX_CHIRONSS_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU0_MOD, 0x0018) |
402 | 402 | ||
403 | /* CHIRON_PRCM.CHIRONSS_CPU1 register offsets */ | 403 | /* CHIRON_PRCM.CHIRONSS_CPU1 register offsets */ |
404 | #define OMAP4430_PM_PDA_CPU1_PWRSTCTRL OMAP44XX_PRM_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU1_MOD, 0x0000) | 404 | #define OMAP4430_PM_PDA_CPU1_PWRSTCTRL OMAP44XX_CHIRONSS_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU1_MOD, 0x0000) |
405 | #define OMAP4430_PM_PDA_CPU1_PWRSTST OMAP44XX_PRM_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU1_MOD, 0x0004) | 405 | #define OMAP4430_PM_PDA_CPU1_PWRSTST OMAP44XX_CHIRONSS_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU1_MOD, 0x0004) |
406 | #define OMAP4430_RM_PDA_CPU1_CPU1_CONTEXT OMAP44XX_PRM_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU1_MOD, 0x0008) | 406 | #define OMAP4430_RM_PDA_CPU1_CPU1_CONTEXT OMAP44XX_CHIRONSS_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU1_MOD, 0x0008) |
407 | #define OMAP4430_RM_PDA_CPU1_CPU1_RSTCTRL OMAP44XX_PRM_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU1_MOD, 0x000c) | 407 | #define OMAP4430_RM_PDA_CPU1_CPU1_RSTCTRL OMAP44XX_CHIRONSS_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU1_MOD, 0x000c) |
408 | #define OMAP4430_RM_PDA_CPU1_CPU1_RSTST OMAP44XX_PRM_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU1_MOD, 0x0010) | 408 | #define OMAP4430_RM_PDA_CPU1_CPU1_RSTST OMAP44XX_CHIRONSS_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU1_MOD, 0x0010) |
409 | #define OMAP4430_CM_PDA_CPU1_CPU1_CLKCTRL OMAP44XX_PRM_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU1_MOD, 0x0014) | 409 | #define OMAP4430_CM_PDA_CPU1_CPU1_CLKCTRL OMAP44XX_CHIRONSS_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU1_MOD, 0x0014) |
410 | #define OMAP4430_CM_PDA_CPU1_CLKSTCTRL OMAP44XX_PRM_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU1_MOD, 0x0018) | 410 | #define OMAP4430_CM_PDA_CPU1_CLKSTCTRL OMAP44XX_CHIRONSS_REGADDR(OMAP4430_CHIRONSS_CHIRONSS_CPU1_MOD, 0x0018) |
411 | #endif | 411 | #endif |
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 8c964bec815..e10a02df6e1 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c | |||
@@ -36,7 +36,13 @@ | |||
36 | #define UART_OMAP_NO_EMPTY_FIFO_READ_IP_REV 0x52 | 36 | #define UART_OMAP_NO_EMPTY_FIFO_READ_IP_REV 0x52 |
37 | #define UART_OMAP_WER 0x17 /* Wake-up enable register */ | 37 | #define UART_OMAP_WER 0x17 /* Wake-up enable register */ |
38 | 38 | ||
39 | #define DEFAULT_TIMEOUT (5 * HZ) | 39 | /* |
40 | * NOTE: By default the serial timeout is disabled as it causes lost characters | ||
41 | * over the serial ports. This means that the UART clocks will stay on until | ||
42 | * disabled via sysfs. This also causes that any deeper omap sleep states are | ||
43 | * blocked. | ||
44 | */ | ||
45 | #define DEFAULT_TIMEOUT 0 | ||
40 | 46 | ||
41 | struct omap_uart_state { | 47 | struct omap_uart_state { |
42 | int num; | 48 | int num; |
@@ -422,7 +428,8 @@ static void omap_uart_idle_init(struct omap_uart_state *uart) | |||
422 | uart->timeout = DEFAULT_TIMEOUT; | 428 | uart->timeout = DEFAULT_TIMEOUT; |
423 | setup_timer(&uart->timer, omap_uart_idle_timer, | 429 | setup_timer(&uart->timer, omap_uart_idle_timer, |
424 | (unsigned long) uart); | 430 | (unsigned long) uart); |
425 | mod_timer(&uart->timer, jiffies + uart->timeout); | 431 | if (uart->timeout) |
432 | mod_timer(&uart->timer, jiffies + uart->timeout); | ||
426 | omap_uart_smart_idle_enable(uart, 0); | 433 | omap_uart_smart_idle_enable(uart, 0); |
427 | 434 | ||
428 | if (cpu_is_omap34xx()) { | 435 | if (cpu_is_omap34xx()) { |
diff --git a/arch/arm/mach-omap2/sleep34xx.S b/arch/arm/mach-omap2/sleep34xx.S index 15268f8b61d..c3626ea4814 100644 --- a/arch/arm/mach-omap2/sleep34xx.S +++ b/arch/arm/mach-omap2/sleep34xx.S | |||
@@ -245,7 +245,8 @@ restore: | |||
245 | mov r1, #0 @ set task id for ROM code in r1 | 245 | mov r1, #0 @ set task id for ROM code in r1 |
246 | mov r2, #4 @ set some flags in r2, r6 | 246 | mov r2, #4 @ set some flags in r2, r6 |
247 | mov r6, #0xff | 247 | mov r6, #0xff |
248 | adr r3, write_aux_control_params @ r3 points to parameters | 248 | ldr r4, scratchpad_base |
249 | ldr r3, [r4, #0xBC] @ r3 points to parameters | ||
249 | mcr p15, 0, r0, c7, c10, 4 @ data write barrier | 250 | mcr p15, 0, r0, c7, c10, 4 @ data write barrier |
250 | mcr p15, 0, r0, c7, c10, 5 @ data memory barrier | 251 | mcr p15, 0, r0, c7, c10, 5 @ data memory barrier |
251 | .word 0xE1600071 @ call SMI monitor (smi #1) | 252 | .word 0xE1600071 @ call SMI monitor (smi #1) |
@@ -253,14 +254,14 @@ restore: | |||
253 | b logic_l1_restore | 254 | b logic_l1_restore |
254 | l2_inv_api_params: | 255 | l2_inv_api_params: |
255 | .word 0x1, 0x00 | 256 | .word 0x1, 0x00 |
256 | write_aux_control_params: | ||
257 | .word 0x1, 0x72 | ||
258 | l2_inv_gp: | 257 | l2_inv_gp: |
259 | /* Execute smi to invalidate L2 cache */ | 258 | /* Execute smi to invalidate L2 cache */ |
260 | mov r12, #0x1 @ set up to invalide L2 | 259 | mov r12, #0x1 @ set up to invalide L2 |
261 | smi: .word 0xE1600070 @ Call SMI monitor (smieq) | 260 | smi: .word 0xE1600070 @ Call SMI monitor (smieq) |
262 | /* Write to Aux control register to set some bits */ | 261 | /* Write to Aux control register to set some bits */ |
263 | mov r0, #0x72 | 262 | ldr r4, scratchpad_base |
263 | ldr r3, [r4,#0xBC] | ||
264 | ldr r0, [r3,#4] | ||
264 | mov r12, #0x3 | 265 | mov r12, #0x3 |
265 | .word 0xE1600070 @ Call SMI monitor (smieq) | 266 | .word 0xE1600070 @ Call SMI monitor (smieq) |
266 | logic_l1_restore: | 267 | logic_l1_restore: |
@@ -271,6 +272,7 @@ logic_l1_restore: | |||
271 | 272 | ||
272 | ldr r4, scratchpad_base | 273 | ldr r4, scratchpad_base |
273 | ldr r3, [r4,#0xBC] | 274 | ldr r3, [r4,#0xBC] |
275 | adds r3, r3, #8 | ||
274 | ldmia r3!, {r4-r6} | 276 | ldmia r3!, {r4-r6} |
275 | mov sp, r4 | 277 | mov sp, r4 |
276 | msr spsr_cxsf, r5 | 278 | msr spsr_cxsf, r5 |
@@ -387,6 +389,9 @@ usettbr0: | |||
387 | save_context_wfi: | 389 | save_context_wfi: |
388 | /*b save_context_wfi*/ @ enable to debug save code | 390 | /*b save_context_wfi*/ @ enable to debug save code |
389 | mov r8, r0 /* Store SDRAM address in r8 */ | 391 | mov r8, r0 /* Store SDRAM address in r8 */ |
392 | mrc p15, 0, r5, c1, c0, 1 @ Read Auxiliary Control Register | ||
393 | mov r4, #0x1 @ Number of parameters for restore call | ||
394 | stmia r8!, {r4-r5} | ||
390 | /* Check what that target sleep state is:stored in r1*/ | 395 | /* Check what that target sleep state is:stored in r1*/ |
391 | /* 1 - Only L1 and logic lost */ | 396 | /* 1 - Only L1 and logic lost */ |
392 | /* 2 - Only L2 lost */ | 397 | /* 2 - Only L2 lost */ |
diff --git a/arch/arm/mach-orion5x/Kconfig b/arch/arm/mach-orion5x/Kconfig index c3d513cad5a..905719a677a 100644 --- a/arch/arm/mach-orion5x/Kconfig +++ b/arch/arm/mach-orion5x/Kconfig | |||
@@ -57,6 +57,13 @@ config MACH_LINKSTATION_MINI | |||
57 | Say 'Y' here if you want your kernel to support the | 57 | Say 'Y' here if you want your kernel to support the |
58 | Buffalo Linkstation Mini platform. | 58 | Buffalo Linkstation Mini platform. |
59 | 59 | ||
60 | config MACH_LINKSTATION_LS_HGL | ||
61 | bool "Buffalo Linkstation LS-HGL" | ||
62 | select I2C_BOARDINFO | ||
63 | help | ||
64 | Say 'Y' here if you want your kernel to support the | ||
65 | Buffalo Linkstation LS-HGL platform. | ||
66 | |||
60 | config MACH_TS409 | 67 | config MACH_TS409 |
61 | bool "QNAP TS-409" | 68 | bool "QNAP TS-409" |
62 | help | 69 | help |
diff --git a/arch/arm/mach-orion5x/Makefile b/arch/arm/mach-orion5x/Makefile index 89772fcd65c..eb6eabcb41e 100644 --- a/arch/arm/mach-orion5x/Makefile +++ b/arch/arm/mach-orion5x/Makefile | |||
@@ -5,6 +5,7 @@ obj-$(CONFIG_MACH_KUROBOX_PRO) += kurobox_pro-setup.o | |||
5 | obj-$(CONFIG_MACH_TERASTATION_PRO2) += terastation_pro2-setup.o | 5 | obj-$(CONFIG_MACH_TERASTATION_PRO2) += terastation_pro2-setup.o |
6 | obj-$(CONFIG_MACH_LINKSTATION_PRO) += kurobox_pro-setup.o | 6 | obj-$(CONFIG_MACH_LINKSTATION_PRO) += kurobox_pro-setup.o |
7 | obj-$(CONFIG_MACH_LINKSTATION_MINI) += lsmini-setup.o | 7 | obj-$(CONFIG_MACH_LINKSTATION_MINI) += lsmini-setup.o |
8 | obj-$(CONFIG_MACH_LINKSTATION_LS_HGL) += ls_hgl-setup.o | ||
8 | obj-$(CONFIG_MACH_DNS323) += dns323-setup.o | 9 | obj-$(CONFIG_MACH_DNS323) += dns323-setup.o |
9 | obj-$(CONFIG_MACH_TS209) += ts209-setup.o tsx09-common.o | 10 | obj-$(CONFIG_MACH_TS209) += ts209-setup.o tsx09-common.o |
10 | obj-$(CONFIG_MACH_TS409) += ts409-setup.o tsx09-common.o | 11 | obj-$(CONFIG_MACH_TS409) += ts409-setup.o tsx09-common.o |
diff --git a/arch/arm/mach-orion5x/common.c b/arch/arm/mach-orion5x/common.c index f87fa125380..8dc2c76d226 100644 --- a/arch/arm/mach-orion5x/common.c +++ b/arch/arm/mach-orion5x/common.c | |||
@@ -488,7 +488,7 @@ static struct platform_device orion5x_xor0_channel = { | |||
488 | .dev = { | 488 | .dev = { |
489 | .dma_mask = &orion5x_xor_dmamask, | 489 | .dma_mask = &orion5x_xor_dmamask, |
490 | .coherent_dma_mask = DMA_BIT_MASK(64), | 490 | .coherent_dma_mask = DMA_BIT_MASK(64), |
491 | .platform_data = (void *)&orion5x_xor0_data, | 491 | .platform_data = &orion5x_xor0_data, |
492 | }, | 492 | }, |
493 | }; | 493 | }; |
494 | 494 | ||
@@ -514,7 +514,7 @@ static struct platform_device orion5x_xor1_channel = { | |||
514 | .dev = { | 514 | .dev = { |
515 | .dma_mask = &orion5x_xor_dmamask, | 515 | .dma_mask = &orion5x_xor_dmamask, |
516 | .coherent_dma_mask = DMA_BIT_MASK(64), | 516 | .coherent_dma_mask = DMA_BIT_MASK(64), |
517 | .platform_data = (void *)&orion5x_xor1_data, | 517 | .platform_data = &orion5x_xor1_data, |
518 | }, | 518 | }, |
519 | }; | 519 | }; |
520 | 520 | ||
diff --git a/arch/arm/mach-orion5x/d2net-setup.c b/arch/arm/mach-orion5x/d2net-setup.c index 9d4bf763f25..7130904ad99 100644 --- a/arch/arm/mach-orion5x/d2net-setup.c +++ b/arch/arm/mach-orion5x/d2net-setup.c | |||
@@ -149,10 +149,7 @@ static void __init d2net_sata_power_init(void) | |||
149 | 149 | ||
150 | /* | 150 | /* |
151 | * The blue front LED is wired to the CPLD and can blink in relation with the | 151 | * The blue front LED is wired to the CPLD and can blink in relation with the |
152 | * SATA activity. This feature is disabled to make this LED compatible with | 152 | * SATA activity. |
153 | * the leds-gpio driver: MPP14 and MPP15 are configured to act like output | ||
154 | * GPIO's and have to stay in an active state. This is needed to set the blue | ||
155 | * LED in a "fix on" state regardless of the SATA activity. | ||
156 | * | 153 | * |
157 | * The following array detail the different LED registers and the combination | 154 | * The following array detail the different LED registers and the combination |
158 | * of their possible values: | 155 | * of their possible values: |
@@ -171,12 +168,11 @@ static void __init d2net_sata_power_init(void) | |||
171 | #define D2NET_GPIO_RED_LED 6 | 168 | #define D2NET_GPIO_RED_LED 6 |
172 | #define D2NET_GPIO_BLUE_LED_BLINK_CTRL 16 | 169 | #define D2NET_GPIO_BLUE_LED_BLINK_CTRL 16 |
173 | #define D2NET_GPIO_BLUE_LED_OFF 23 | 170 | #define D2NET_GPIO_BLUE_LED_OFF 23 |
174 | #define D2NET_GPIO_SATA0_ACT 14 | ||
175 | #define D2NET_GPIO_SATA1_ACT 15 | ||
176 | 171 | ||
177 | static struct gpio_led d2net_leds[] = { | 172 | static struct gpio_led d2net_leds[] = { |
178 | { | 173 | { |
179 | .name = "d2net:blue:power", | 174 | .name = "d2net:blue:sata", |
175 | .default_trigger = "default-on", | ||
180 | .gpio = D2NET_GPIO_BLUE_LED_OFF, | 176 | .gpio = D2NET_GPIO_BLUE_LED_OFF, |
181 | .active_low = 1, | 177 | .active_low = 1, |
182 | }, | 178 | }, |
@@ -201,25 +197,22 @@ static struct platform_device d2net_gpio_leds = { | |||
201 | 197 | ||
202 | static void __init d2net_gpio_leds_init(void) | 198 | static void __init d2net_gpio_leds_init(void) |
203 | { | 199 | { |
200 | int err; | ||
201 | |||
204 | /* Configure GPIO over MPP max number. */ | 202 | /* Configure GPIO over MPP max number. */ |
205 | orion_gpio_set_valid(D2NET_GPIO_BLUE_LED_OFF, 1); | 203 | orion_gpio_set_valid(D2NET_GPIO_BLUE_LED_OFF, 1); |
206 | 204 | ||
207 | if (gpio_request(D2NET_GPIO_SATA0_ACT, "LED SATA0 activity") != 0) | 205 | /* Configure register blink_ctrl to allow SATA activity LED blinking. */ |
208 | return; | 206 | err = gpio_request(D2NET_GPIO_BLUE_LED_BLINK_CTRL, "blue LED blink"); |
209 | if (gpio_direction_output(D2NET_GPIO_SATA0_ACT, 1) != 0) | 207 | if (err == 0) { |
210 | goto err_free_1; | 208 | err = gpio_direction_output(D2NET_GPIO_BLUE_LED_BLINK_CTRL, 1); |
211 | if (gpio_request(D2NET_GPIO_SATA1_ACT, "LED SATA1 activity") != 0) | 209 | if (err) |
212 | goto err_free_1; | 210 | gpio_free(D2NET_GPIO_BLUE_LED_BLINK_CTRL); |
213 | if (gpio_direction_output(D2NET_GPIO_SATA1_ACT, 1) != 0) | 211 | } |
214 | goto err_free_2; | 212 | if (err) |
215 | platform_device_register(&d2net_gpio_leds); | 213 | pr_err("d2net: failed to configure blue LED blink GPIO\n"); |
216 | return; | ||
217 | 214 | ||
218 | err_free_2: | 215 | platform_device_register(&d2net_gpio_leds); |
219 | gpio_free(D2NET_GPIO_SATA1_ACT); | ||
220 | err_free_1: | ||
221 | gpio_free(D2NET_GPIO_SATA0_ACT); | ||
222 | return; | ||
223 | } | 216 | } |
224 | 217 | ||
225 | /**************************************************************************** | 218 | /**************************************************************************** |
@@ -289,8 +282,8 @@ static struct orion5x_mpp_mode d2net_mpp_modes[] __initdata = { | |||
289 | { 11, MPP_UNUSED }, | 282 | { 11, MPP_UNUSED }, |
290 | { 12, MPP_GPIO }, /* SATA 1 power */ | 283 | { 12, MPP_GPIO }, /* SATA 1 power */ |
291 | { 13, MPP_UNUSED }, | 284 | { 13, MPP_UNUSED }, |
292 | { 14, MPP_GPIO }, /* SATA 0 active */ | 285 | { 14, MPP_SATA_LED }, /* SATA 0 active */ |
293 | { 15, MPP_GPIO }, /* SATA 1 active */ | 286 | { 15, MPP_SATA_LED }, /* SATA 1 active */ |
294 | { 16, MPP_GPIO }, /* Blue front LED blink control */ | 287 | { 16, MPP_GPIO }, /* Blue front LED blink control */ |
295 | { 17, MPP_UNUSED }, | 288 | { 17, MPP_UNUSED }, |
296 | { 18, MPP_GPIO }, /* Front button (0 = Released, 1 = Pushed ) */ | 289 | { 18, MPP_GPIO }, /* Front button (0 = Released, 1 = Pushed ) */ |
@@ -301,6 +294,8 @@ static struct orion5x_mpp_mode d2net_mpp_modes[] __initdata = { | |||
301 | /* 24: Inhibit board power off (0 = Disabled, 1 = Enabled) */ | 294 | /* 24: Inhibit board power off (0 = Disabled, 1 = Enabled) */ |
302 | }; | 295 | }; |
303 | 296 | ||
297 | #define D2NET_GPIO_INHIBIT_POWER_OFF 24 | ||
298 | |||
304 | static void __init d2net_init(void) | 299 | static void __init d2net_init(void) |
305 | { | 300 | { |
306 | /* | 301 | /* |
@@ -333,6 +328,8 @@ static void __init d2net_init(void) | |||
333 | 328 | ||
334 | i2c_register_board_info(0, d2net_i2c_devices, | 329 | i2c_register_board_info(0, d2net_i2c_devices, |
335 | ARRAY_SIZE(d2net_i2c_devices)); | 330 | ARRAY_SIZE(d2net_i2c_devices)); |
331 | |||
332 | orion_gpio_set_valid(D2NET_GPIO_INHIBIT_POWER_OFF, 1); | ||
336 | } | 333 | } |
337 | 334 | ||
338 | /* Warning: LaCie use a wrong mach-type (0x20e=526) in their bootloader. */ | 335 | /* Warning: LaCie use a wrong mach-type (0x20e=526) in their bootloader. */ |
diff --git a/arch/arm/mach-orion5x/dns323-setup.c b/arch/arm/mach-orion5x/dns323-setup.c index b31ca4cef36..421b82f7c63 100644 --- a/arch/arm/mach-orion5x/dns323-setup.c +++ b/arch/arm/mach-orion5x/dns323-setup.c | |||
@@ -12,6 +12,7 @@ | |||
12 | 12 | ||
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/init.h> | 14 | #include <linux/init.h> |
15 | #include <linux/delay.h> | ||
15 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
16 | #include <linux/pci.h> | 17 | #include <linux/pci.h> |
17 | #include <linux/irq.h> | 18 | #include <linux/irq.h> |
@@ -32,7 +33,9 @@ | |||
32 | 33 | ||
33 | #define DNS323_GPIO_LED_RIGHT_AMBER 1 | 34 | #define DNS323_GPIO_LED_RIGHT_AMBER 1 |
34 | #define DNS323_GPIO_LED_LEFT_AMBER 2 | 35 | #define DNS323_GPIO_LED_LEFT_AMBER 2 |
35 | #define DNS323_GPIO_LED_POWER 5 | 36 | #define DNS323_GPIO_SYSTEM_UP 3 |
37 | #define DNS323_GPIO_LED_POWER1 4 | ||
38 | #define DNS323_GPIO_LED_POWER2 5 | ||
36 | #define DNS323_GPIO_OVERTEMP 6 | 39 | #define DNS323_GPIO_OVERTEMP 6 |
37 | #define DNS323_GPIO_RTC 7 | 40 | #define DNS323_GPIO_RTC 7 |
38 | #define DNS323_GPIO_POWER_OFF 8 | 41 | #define DNS323_GPIO_POWER_OFF 8 |
@@ -235,11 +238,31 @@ error_fail: | |||
235 | * GPIO LEDs (simple - doesn't use hardware blinking support) | 238 | * GPIO LEDs (simple - doesn't use hardware blinking support) |
236 | */ | 239 | */ |
237 | 240 | ||
241 | #define ORION_BLINK_HALF_PERIOD 100 /* ms */ | ||
242 | |||
243 | static int dns323_gpio_blink_set(unsigned gpio, | ||
244 | unsigned long *delay_on, unsigned long *delay_off) | ||
245 | { | ||
246 | static int value = 0; | ||
247 | |||
248 | if (!*delay_on && !*delay_off) | ||
249 | *delay_on = *delay_off = ORION_BLINK_HALF_PERIOD; | ||
250 | |||
251 | if (ORION_BLINK_HALF_PERIOD == *delay_on | ||
252 | && ORION_BLINK_HALF_PERIOD == *delay_off) { | ||
253 | value = !value; | ||
254 | orion_gpio_set_blink(gpio, value); | ||
255 | return 0; | ||
256 | } | ||
257 | |||
258 | return -EINVAL; | ||
259 | } | ||
260 | |||
238 | static struct gpio_led dns323_leds[] = { | 261 | static struct gpio_led dns323_leds[] = { |
239 | { | 262 | { |
240 | .name = "power:blue", | 263 | .name = "power:blue", |
241 | .gpio = DNS323_GPIO_LED_POWER, | 264 | .gpio = DNS323_GPIO_LED_POWER2, |
242 | .active_low = 1, | 265 | .default_trigger = "timer", |
243 | }, { | 266 | }, { |
244 | .name = "right:amber", | 267 | .name = "right:amber", |
245 | .gpio = DNS323_GPIO_LED_RIGHT_AMBER, | 268 | .gpio = DNS323_GPIO_LED_RIGHT_AMBER, |
@@ -254,6 +277,7 @@ static struct gpio_led dns323_leds[] = { | |||
254 | static struct gpio_led_platform_data dns323_led_data = { | 277 | static struct gpio_led_platform_data dns323_led_data = { |
255 | .num_leds = ARRAY_SIZE(dns323_leds), | 278 | .num_leds = ARRAY_SIZE(dns323_leds), |
256 | .leds = dns323_leds, | 279 | .leds = dns323_leds, |
280 | .gpio_blink_set = dns323_gpio_blink_set, | ||
257 | }; | 281 | }; |
258 | 282 | ||
259 | static struct platform_device dns323_gpio_leds = { | 283 | static struct platform_device dns323_gpio_leds = { |
@@ -334,7 +358,7 @@ static struct orion5x_mpp_mode dns323_mv88f5182_mpp_modes[] __initdata = { | |||
334 | { 0, MPP_UNUSED }, | 358 | { 0, MPP_UNUSED }, |
335 | { 1, MPP_GPIO }, /* right amber LED (sata ch0) */ | 359 | { 1, MPP_GPIO }, /* right amber LED (sata ch0) */ |
336 | { 2, MPP_GPIO }, /* left amber LED (sata ch1) */ | 360 | { 2, MPP_GPIO }, /* left amber LED (sata ch1) */ |
337 | { 3, MPP_UNUSED }, | 361 | { 3, MPP_GPIO }, /* system up flag */ |
338 | { 4, MPP_GPIO }, /* power button LED */ | 362 | { 4, MPP_GPIO }, /* power button LED */ |
339 | { 5, MPP_GPIO }, /* power button LED */ | 363 | { 5, MPP_GPIO }, /* power button LED */ |
340 | { 6, MPP_GPIO }, /* GMT G751-2f overtemp */ | 364 | { 6, MPP_GPIO }, /* GMT G751-2f overtemp */ |
@@ -372,13 +396,23 @@ static struct i2c_board_info __initdata dns323_i2c_devices[] = { | |||
372 | }, | 396 | }, |
373 | }; | 397 | }; |
374 | 398 | ||
375 | /* DNS-323 specific power off method */ | 399 | /* DNS-323 rev. A specific power off method */ |
376 | static void dns323_power_off(void) | 400 | static void dns323a_power_off(void) |
377 | { | 401 | { |
378 | pr_info("%s: triggering power-off...\n", __func__); | 402 | pr_info("%s: triggering power-off...\n", __func__); |
379 | gpio_set_value(DNS323_GPIO_POWER_OFF, 1); | 403 | gpio_set_value(DNS323_GPIO_POWER_OFF, 1); |
380 | } | 404 | } |
381 | 405 | ||
406 | /* DNS-323 rev B specific power off method */ | ||
407 | static void dns323b_power_off(void) | ||
408 | { | ||
409 | pr_info("%s: triggering power-off...\n", __func__); | ||
410 | /* Pin has to be changed to 1 and back to 0 to do actual power off. */ | ||
411 | gpio_set_value(DNS323_GPIO_POWER_OFF, 1); | ||
412 | mdelay(100); | ||
413 | gpio_set_value(DNS323_GPIO_POWER_OFF, 0); | ||
414 | } | ||
415 | |||
382 | static void __init dns323_init(void) | 416 | static void __init dns323_init(void) |
383 | { | 417 | { |
384 | /* Setup basic Orion functions. Need to be called early. */ | 418 | /* Setup basic Orion functions. Need to be called early. */ |
@@ -400,6 +434,14 @@ static void __init dns323_init(void) | |||
400 | orion5x_setup_dev_boot_win(DNS323_NOR_BOOT_BASE, DNS323_NOR_BOOT_SIZE); | 434 | orion5x_setup_dev_boot_win(DNS323_NOR_BOOT_BASE, DNS323_NOR_BOOT_SIZE); |
401 | platform_device_register(&dns323_nor_flash); | 435 | platform_device_register(&dns323_nor_flash); |
402 | 436 | ||
437 | /* The 5181 power LED is active low and requires | ||
438 | * DNS323_GPIO_LED_POWER1 to also be low. | ||
439 | */ | ||
440 | if (dns323_dev_id() == MV88F5181_DEV_ID) { | ||
441 | dns323_leds[0].active_low = 1; | ||
442 | gpio_direction_output(DNS323_GPIO_LED_POWER1, 0); | ||
443 | } | ||
444 | |||
403 | platform_device_register(&dns323_gpio_leds); | 445 | platform_device_register(&dns323_gpio_leds); |
404 | 446 | ||
405 | platform_device_register(&dns323_button_device); | 447 | platform_device_register(&dns323_button_device); |
@@ -424,11 +466,20 @@ static void __init dns323_init(void) | |||
424 | if (dns323_dev_id() == MV88F5182_DEV_ID) | 466 | if (dns323_dev_id() == MV88F5182_DEV_ID) |
425 | orion5x_sata_init(&dns323_sata_data); | 467 | orion5x_sata_init(&dns323_sata_data); |
426 | 468 | ||
427 | /* register dns323 specific power-off method */ | 469 | /* The 5182 has flag to indicate the system is up. Without this flag |
470 | * set, power LED will flash and cannot be controlled via leds-gpio. | ||
471 | */ | ||
472 | if (dns323_dev_id() == MV88F5182_DEV_ID) | ||
473 | gpio_set_value(DNS323_GPIO_SYSTEM_UP, 1); | ||
474 | |||
475 | /* Register dns323 specific power-off method */ | ||
428 | if (gpio_request(DNS323_GPIO_POWER_OFF, "POWEROFF") != 0 || | 476 | if (gpio_request(DNS323_GPIO_POWER_OFF, "POWEROFF") != 0 || |
429 | gpio_direction_output(DNS323_GPIO_POWER_OFF, 0) != 0) | 477 | gpio_direction_output(DNS323_GPIO_POWER_OFF, 0) != 0) |
430 | pr_err("DNS323: failed to setup power-off GPIO\n"); | 478 | pr_err("DNS323: failed to setup power-off GPIO\n"); |
431 | pm_power_off = dns323_power_off; | 479 | if (dns323_dev_id() == MV88F5182_DEV_ID) |
480 | pm_power_off = dns323b_power_off; | ||
481 | else | ||
482 | pm_power_off = dns323a_power_off; | ||
432 | } | 483 | } |
433 | 484 | ||
434 | /* Warning: D-Link uses a wrong mach-type (=526) in their bootloader */ | 485 | /* Warning: D-Link uses a wrong mach-type (=526) in their bootloader */ |
diff --git a/arch/arm/mach-orion5x/ls_hgl-setup.c b/arch/arm/mach-orion5x/ls_hgl-setup.c new file mode 100644 index 00000000000..8e569be6e2c --- /dev/null +++ b/arch/arm/mach-orion5x/ls_hgl-setup.c | |||
@@ -0,0 +1,276 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-orion5x/ls_hgl-setup.c | ||
3 | * | ||
4 | * Maintainer: Zhu Qingsen <zhuqs@cn.fujitsu.com> | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public | ||
7 | * License version 2. This program is licensed "as is" without any | ||
8 | * warranty of any kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | #include <linux/kernel.h> | ||
12 | #include <linux/init.h> | ||
13 | #include <linux/platform_device.h> | ||
14 | #include <linux/mtd/physmap.h> | ||
15 | #include <linux/mv643xx_eth.h> | ||
16 | #include <linux/leds.h> | ||
17 | #include <linux/gpio_keys.h> | ||
18 | #include <linux/input.h> | ||
19 | #include <linux/i2c.h> | ||
20 | #include <linux/ata_platform.h> | ||
21 | #include <linux/gpio.h> | ||
22 | #include <asm/mach-types.h> | ||
23 | #include <asm/mach/arch.h> | ||
24 | #include <asm/system.h> | ||
25 | #include <mach/orion5x.h> | ||
26 | #include "common.h" | ||
27 | #include "mpp.h" | ||
28 | |||
29 | /***************************************************************************** | ||
30 | * Linkstation LS-HGL Info | ||
31 | ****************************************************************************/ | ||
32 | |||
33 | /* | ||
34 | * 256K NOR flash Device bus boot chip select | ||
35 | */ | ||
36 | |||
37 | #define LS_HGL_NOR_BOOT_BASE 0xf4000000 | ||
38 | #define LS_HGL_NOR_BOOT_SIZE SZ_256K | ||
39 | |||
40 | /***************************************************************************** | ||
41 | * 256KB NOR Flash on BOOT Device | ||
42 | ****************************************************************************/ | ||
43 | |||
44 | static struct physmap_flash_data ls_hgl_nor_flash_data = { | ||
45 | .width = 1, | ||
46 | }; | ||
47 | |||
48 | static struct resource ls_hgl_nor_flash_resource = { | ||
49 | .flags = IORESOURCE_MEM, | ||
50 | .start = LS_HGL_NOR_BOOT_BASE, | ||
51 | .end = LS_HGL_NOR_BOOT_BASE + LS_HGL_NOR_BOOT_SIZE - 1, | ||
52 | }; | ||
53 | |||
54 | static struct platform_device ls_hgl_nor_flash = { | ||
55 | .name = "physmap-flash", | ||
56 | .id = 0, | ||
57 | .dev = { | ||
58 | .platform_data = &ls_hgl_nor_flash_data, | ||
59 | }, | ||
60 | .num_resources = 1, | ||
61 | .resource = &ls_hgl_nor_flash_resource, | ||
62 | }; | ||
63 | |||
64 | /***************************************************************************** | ||
65 | * Ethernet | ||
66 | ****************************************************************************/ | ||
67 | |||
68 | static struct mv643xx_eth_platform_data ls_hgl_eth_data = { | ||
69 | .phy_addr = 8, | ||
70 | }; | ||
71 | |||
72 | /***************************************************************************** | ||
73 | * RTC 5C372a on I2C bus | ||
74 | ****************************************************************************/ | ||
75 | |||
76 | static struct i2c_board_info __initdata ls_hgl_i2c_rtc = { | ||
77 | I2C_BOARD_INFO("rs5c372a", 0x32), | ||
78 | }; | ||
79 | |||
80 | /***************************************************************************** | ||
81 | * LEDs attached to GPIO | ||
82 | ****************************************************************************/ | ||
83 | |||
84 | #define LS_HGL_GPIO_LED_ALARM 2 | ||
85 | #define LS_HGL_GPIO_LED_INFO 3 | ||
86 | #define LS_HGL_GPIO_LED_FUNC 17 | ||
87 | #define LS_HGL_GPIO_LED_PWR 0 | ||
88 | |||
89 | |||
90 | static struct gpio_led ls_hgl_led_pins[] = { | ||
91 | { | ||
92 | .name = "alarm:red", | ||
93 | .gpio = LS_HGL_GPIO_LED_ALARM, | ||
94 | .active_low = 1, | ||
95 | }, { | ||
96 | .name = "info:amber", | ||
97 | .gpio = LS_HGL_GPIO_LED_INFO, | ||
98 | .active_low = 1, | ||
99 | }, { | ||
100 | .name = "func:blue:top", | ||
101 | .gpio = LS_HGL_GPIO_LED_FUNC, | ||
102 | .active_low = 1, | ||
103 | }, { | ||
104 | .name = "power:blue:bottom", | ||
105 | .gpio = LS_HGL_GPIO_LED_PWR, | ||
106 | }, | ||
107 | }; | ||
108 | |||
109 | static struct gpio_led_platform_data ls_hgl_led_data = { | ||
110 | .leds = ls_hgl_led_pins, | ||
111 | .num_leds = ARRAY_SIZE(ls_hgl_led_pins), | ||
112 | }; | ||
113 | |||
114 | static struct platform_device ls_hgl_leds = { | ||
115 | .name = "leds-gpio", | ||
116 | .id = -1, | ||
117 | .dev = { | ||
118 | .platform_data = &ls_hgl_led_data, | ||
119 | }, | ||
120 | }; | ||
121 | |||
122 | /**************************************************************************** | ||
123 | * GPIO Attached Keys | ||
124 | ****************************************************************************/ | ||
125 | #define LS_HGL_GPIO_KEY_FUNC 15 | ||
126 | #define LS_HGL_GPIO_KEY_POWER 8 | ||
127 | #define LS_HGL_GPIO_KEY_AUTOPOWER 10 | ||
128 | |||
129 | #define LS_HGL_SW_POWER 0x00 | ||
130 | #define LS_HGL_SW_AUTOPOWER 0x01 | ||
131 | |||
132 | static struct gpio_keys_button ls_hgl_buttons[] = { | ||
133 | { | ||
134 | .code = KEY_OPTION, | ||
135 | .gpio = LS_HGL_GPIO_KEY_FUNC, | ||
136 | .desc = "Function Button", | ||
137 | .active_low = 1, | ||
138 | }, { | ||
139 | .type = EV_SW, | ||
140 | .code = LS_HGL_SW_POWER, | ||
141 | .gpio = LS_HGL_GPIO_KEY_POWER, | ||
142 | .desc = "Power-on Switch", | ||
143 | .active_low = 1, | ||
144 | }, { | ||
145 | .type = EV_SW, | ||
146 | .code = LS_HGL_SW_AUTOPOWER, | ||
147 | .gpio = LS_HGL_GPIO_KEY_AUTOPOWER, | ||
148 | .desc = "Power-auto Switch", | ||
149 | .active_low = 1, | ||
150 | }, | ||
151 | }; | ||
152 | |||
153 | static struct gpio_keys_platform_data ls_hgl_button_data = { | ||
154 | .buttons = ls_hgl_buttons, | ||
155 | .nbuttons = ARRAY_SIZE(ls_hgl_buttons), | ||
156 | }; | ||
157 | |||
158 | static struct platform_device ls_hgl_button_device = { | ||
159 | .name = "gpio-keys", | ||
160 | .id = -1, | ||
161 | .num_resources = 0, | ||
162 | .dev = { | ||
163 | .platform_data = &ls_hgl_button_data, | ||
164 | }, | ||
165 | }; | ||
166 | |||
167 | |||
168 | /***************************************************************************** | ||
169 | * SATA | ||
170 | ****************************************************************************/ | ||
171 | static struct mv_sata_platform_data ls_hgl_sata_data = { | ||
172 | .n_ports = 2, | ||
173 | }; | ||
174 | |||
175 | |||
176 | /***************************************************************************** | ||
177 | * Linkstation LS-HGL specific power off method: reboot | ||
178 | ****************************************************************************/ | ||
179 | /* | ||
180 | * On the Linkstation LS-HGL, the shutdown process is following: | ||
181 | * - Userland monitors key events until the power switch goes to off position | ||
182 | * - The board reboots | ||
183 | * - U-boot starts and goes into an idle mode waiting for the user | ||
184 | * to move the switch to ON position | ||
185 | */ | ||
186 | |||
187 | static void ls_hgl_power_off(void) | ||
188 | { | ||
189 | arm_machine_restart('h', NULL); | ||
190 | } | ||
191 | |||
192 | |||
193 | /***************************************************************************** | ||
194 | * General Setup | ||
195 | ****************************************************************************/ | ||
196 | |||
197 | #define LS_HGL_GPIO_USB_POWER 9 | ||
198 | #define LS_HGL_GPIO_AUTO_POWER 10 | ||
199 | #define LS_HGL_GPIO_POWER 8 | ||
200 | |||
201 | #define LS_HGL_GPIO_HDD_POWER 1 | ||
202 | |||
203 | static struct orion5x_mpp_mode ls_hgl_mpp_modes[] __initdata = { | ||
204 | { 0, MPP_GPIO }, /* LED_PWR */ | ||
205 | { 1, MPP_GPIO }, /* HDD_PWR */ | ||
206 | { 2, MPP_GPIO }, /* LED_ALARM */ | ||
207 | { 3, MPP_GPIO }, /* LED_INFO */ | ||
208 | { 4, MPP_UNUSED }, | ||
209 | { 5, MPP_UNUSED }, | ||
210 | { 6, MPP_GPIO }, /* FAN_LCK */ | ||
211 | { 7, MPP_GPIO }, /* INIT */ | ||
212 | { 8, MPP_GPIO }, /* POWER */ | ||
213 | { 9, MPP_GPIO }, /* USB_PWR */ | ||
214 | { 10, MPP_GPIO }, /* AUTO_POWER */ | ||
215 | { 11, MPP_UNUSED }, /* LED_ETH (dummy) */ | ||
216 | { 12, MPP_UNUSED }, | ||
217 | { 13, MPP_UNUSED }, | ||
218 | { 14, MPP_UNUSED }, | ||
219 | { 15, MPP_GPIO }, /* FUNC */ | ||
220 | { 16, MPP_UNUSED }, | ||
221 | { 17, MPP_GPIO }, /* LED_FUNC */ | ||
222 | { 18, MPP_UNUSED }, | ||
223 | { 19, MPP_UNUSED }, | ||
224 | { -1 }, | ||
225 | }; | ||
226 | |||
227 | static void __init ls_hgl_init(void) | ||
228 | { | ||
229 | /* | ||
230 | * Setup basic Orion functions. Need to be called early. | ||
231 | */ | ||
232 | orion5x_init(); | ||
233 | |||
234 | orion5x_mpp_conf(ls_hgl_mpp_modes); | ||
235 | |||
236 | /* | ||
237 | * Configure peripherals. | ||
238 | */ | ||
239 | orion5x_ehci0_init(); | ||
240 | orion5x_ehci1_init(); | ||
241 | orion5x_eth_init(&ls_hgl_eth_data); | ||
242 | orion5x_i2c_init(); | ||
243 | orion5x_sata_init(&ls_hgl_sata_data); | ||
244 | orion5x_uart0_init(); | ||
245 | orion5x_xor_init(); | ||
246 | |||
247 | orion5x_setup_dev_boot_win(LS_HGL_NOR_BOOT_BASE, | ||
248 | LS_HGL_NOR_BOOT_SIZE); | ||
249 | platform_device_register(&ls_hgl_nor_flash); | ||
250 | |||
251 | platform_device_register(&ls_hgl_button_device); | ||
252 | |||
253 | platform_device_register(&ls_hgl_leds); | ||
254 | |||
255 | i2c_register_board_info(0, &ls_hgl_i2c_rtc, 1); | ||
256 | |||
257 | /* enable USB power */ | ||
258 | gpio_set_value(LS_HGL_GPIO_USB_POWER, 1); | ||
259 | |||
260 | /* register power-off method */ | ||
261 | pm_power_off = ls_hgl_power_off; | ||
262 | |||
263 | pr_info("%s: finished\n", __func__); | ||
264 | } | ||
265 | |||
266 | MACHINE_START(LINKSTATION_LS_HGL, "Buffalo Linkstation LS-HGL") | ||
267 | /* Maintainer: Zhu Qingsen <zhuqs@cn.fujistu.com> */ | ||
268 | .phys_io = ORION5X_REGS_PHYS_BASE, | ||
269 | .io_pg_offst = ((ORION5X_REGS_VIRT_BASE) >> 18) & 0xFFFC, | ||
270 | .boot_params = 0x00000100, | ||
271 | .init_machine = ls_hgl_init, | ||
272 | .map_io = orion5x_map_io, | ||
273 | .init_irq = orion5x_init_irq, | ||
274 | .timer = &orion5x_timer, | ||
275 | .fixup = tag_fixup_mem32, | ||
276 | MACHINE_END | ||
diff --git a/arch/arm/mach-orion5x/lsmini-setup.c b/arch/arm/mach-orion5x/lsmini-setup.c index c9bf6b81a80..c704f056de1 100644 --- a/arch/arm/mach-orion5x/lsmini-setup.c +++ b/arch/arm/mach-orion5x/lsmini-setup.c | |||
@@ -11,7 +11,6 @@ | |||
11 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
12 | #include <linux/init.h> | 12 | #include <linux/init.h> |
13 | #include <linux/platform_device.h> | 13 | #include <linux/platform_device.h> |
14 | #include <linux/pci.h> | ||
15 | #include <linux/mtd/physmap.h> | 14 | #include <linux/mtd/physmap.h> |
16 | #include <linux/mv643xx_eth.h> | 15 | #include <linux/mv643xx_eth.h> |
17 | #include <linux/leds.h> | 16 | #include <linux/leds.h> |
@@ -19,12 +18,13 @@ | |||
19 | #include <linux/input.h> | 18 | #include <linux/input.h> |
20 | #include <linux/i2c.h> | 19 | #include <linux/i2c.h> |
21 | #include <linux/ata_platform.h> | 20 | #include <linux/ata_platform.h> |
22 | #include <asm/mach-types.h> | ||
23 | #include <linux/gpio.h> | 21 | #include <linux/gpio.h> |
22 | #include <asm/mach-types.h> | ||
24 | #include <asm/mach/arch.h> | 23 | #include <asm/mach/arch.h> |
24 | #include <asm/system.h> | ||
25 | #include <mach/orion5x.h> | ||
25 | #include "common.h" | 26 | #include "common.h" |
26 | #include "mpp.h" | 27 | #include "mpp.h" |
27 | #include "include/mach/system.h" | ||
28 | 28 | ||
29 | /***************************************************************************** | 29 | /***************************************************************************** |
30 | * Linkstation Mini Info | 30 | * Linkstation Mini Info |
@@ -186,7 +186,7 @@ static struct mv_sata_platform_data lsmini_sata_data = { | |||
186 | 186 | ||
187 | static void lsmini_power_off(void) | 187 | static void lsmini_power_off(void) |
188 | { | 188 | { |
189 | arch_reset(0, NULL); | 189 | arm_machine_restart('h', NULL); |
190 | } | 190 | } |
191 | 191 | ||
192 | 192 | ||
diff --git a/arch/arm/mach-orion5x/wrt350n-v2-setup.c b/arch/arm/mach-orion5x/wrt350n-v2-setup.c index 1b4ad9d5e2e..cb0feca193d 100644 --- a/arch/arm/mach-orion5x/wrt350n-v2-setup.c +++ b/arch/arm/mach-orion5x/wrt350n-v2-setup.c | |||
@@ -15,6 +15,9 @@ | |||
15 | #include <linux/mtd/physmap.h> | 15 | #include <linux/mtd/physmap.h> |
16 | #include <linux/mv643xx_eth.h> | 16 | #include <linux/mv643xx_eth.h> |
17 | #include <linux/ethtool.h> | 17 | #include <linux/ethtool.h> |
18 | #include <linux/leds.h> | ||
19 | #include <linux/gpio_keys.h> | ||
20 | #include <linux/input.h> | ||
18 | #include <net/dsa.h> | 21 | #include <net/dsa.h> |
19 | #include <asm/mach-types.h> | 22 | #include <asm/mach-types.h> |
20 | #include <asm/gpio.h> | 23 | #include <asm/gpio.h> |
@@ -24,6 +27,80 @@ | |||
24 | #include "common.h" | 27 | #include "common.h" |
25 | #include "mpp.h" | 28 | #include "mpp.h" |
26 | 29 | ||
30 | /* | ||
31 | * LEDs attached to GPIO | ||
32 | */ | ||
33 | static struct gpio_led wrt350n_v2_led_pins[] = { | ||
34 | { | ||
35 | .name = "wrt350nv2:green:power", | ||
36 | .gpio = 0, | ||
37 | .active_low = 1, | ||
38 | }, { | ||
39 | .name = "wrt350nv2:green:security", | ||
40 | .gpio = 1, | ||
41 | .active_low = 1, | ||
42 | }, { | ||
43 | .name = "wrt350nv2:orange:power", | ||
44 | .gpio = 5, | ||
45 | .active_low = 1, | ||
46 | }, { | ||
47 | .name = "wrt350nv2:green:usb", | ||
48 | .gpio = 6, | ||
49 | .active_low = 1, | ||
50 | }, { | ||
51 | .name = "wrt350nv2:green:wireless", | ||
52 | .gpio = 7, | ||
53 | .active_low = 1, | ||
54 | }, | ||
55 | }; | ||
56 | |||
57 | static struct gpio_led_platform_data wrt350n_v2_led_data = { | ||
58 | .leds = wrt350n_v2_led_pins, | ||
59 | .num_leds = ARRAY_SIZE(wrt350n_v2_led_pins), | ||
60 | }; | ||
61 | |||
62 | static struct platform_device wrt350n_v2_leds = { | ||
63 | .name = "leds-gpio", | ||
64 | .id = -1, | ||
65 | .dev = { | ||
66 | .platform_data = &wrt350n_v2_led_data, | ||
67 | }, | ||
68 | }; | ||
69 | |||
70 | /* | ||
71 | * Buttons attached to GPIO | ||
72 | */ | ||
73 | static struct gpio_keys_button wrt350n_v2_buttons[] = { | ||
74 | { | ||
75 | .code = KEY_RESTART, | ||
76 | .gpio = 3, | ||
77 | .desc = "Reset Button", | ||
78 | .active_low = 1, | ||
79 | }, { | ||
80 | .code = KEY_WLAN, | ||
81 | .gpio = 2, | ||
82 | .desc = "WPS Button", | ||
83 | .active_low = 1, | ||
84 | }, | ||
85 | }; | ||
86 | |||
87 | static struct gpio_keys_platform_data wrt350n_v2_button_data = { | ||
88 | .buttons = wrt350n_v2_buttons, | ||
89 | .nbuttons = ARRAY_SIZE(wrt350n_v2_buttons), | ||
90 | }; | ||
91 | |||
92 | static struct platform_device wrt350n_v2_button_device = { | ||
93 | .name = "gpio-keys", | ||
94 | .id = -1, | ||
95 | .num_resources = 0, | ||
96 | .dev = { | ||
97 | .platform_data = &wrt350n_v2_button_data, | ||
98 | }, | ||
99 | }; | ||
100 | |||
101 | /* | ||
102 | * General setup | ||
103 | */ | ||
27 | static struct orion5x_mpp_mode wrt350n_v2_mpp_modes[] __initdata = { | 104 | static struct orion5x_mpp_mode wrt350n_v2_mpp_modes[] __initdata = { |
28 | { 0, MPP_GPIO }, /* Power LED green (0=on) */ | 105 | { 0, MPP_GPIO }, /* Power LED green (0=on) */ |
29 | { 1, MPP_GPIO }, /* Security LED (0=on) */ | 106 | { 1, MPP_GPIO }, /* Security LED (0=on) */ |
@@ -140,6 +217,8 @@ static void __init wrt350n_v2_init(void) | |||
140 | orion5x_setup_dev_boot_win(WRT350N_V2_NOR_BOOT_BASE, | 217 | orion5x_setup_dev_boot_win(WRT350N_V2_NOR_BOOT_BASE, |
141 | WRT350N_V2_NOR_BOOT_SIZE); | 218 | WRT350N_V2_NOR_BOOT_SIZE); |
142 | platform_device_register(&wrt350n_v2_nor_flash); | 219 | platform_device_register(&wrt350n_v2_nor_flash); |
220 | platform_device_register(&wrt350n_v2_leds); | ||
221 | platform_device_register(&wrt350n_v2_button_device); | ||
143 | } | 222 | } |
144 | 223 | ||
145 | static int __init wrt350n_v2_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 224 | static int __init wrt350n_v2_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) |
diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig index dee92182749..38fbd0a0e40 100644 --- a/arch/arm/mach-pxa/Kconfig +++ b/arch/arm/mach-pxa/Kconfig | |||
@@ -115,6 +115,11 @@ config MACH_CM_X300 | |||
115 | select CPU_PXA310 | 115 | select CPU_PXA310 |
116 | select HAVE_PWM | 116 | select HAVE_PWM |
117 | 117 | ||
118 | config MACH_CAPC7117 | ||
119 | bool "Embedian CAPC-7117 evaluation kit based on the MXM-8x10 CoM" | ||
120 | select CPU_PXA320 | ||
121 | select PXA3xx | ||
122 | |||
118 | config ARCH_GUMSTIX | 123 | config ARCH_GUMSTIX |
119 | bool "Gumstix XScale 255 boards" | 124 | bool "Gumstix XScale 255 boards" |
120 | select PXA25x | 125 | select PXA25x |
@@ -417,6 +422,24 @@ config MACH_TREO680 | |||
417 | Say Y here if you intend to run this kernel on Palm Treo 680 | 422 | Say Y here if you intend to run this kernel on Palm Treo 680 |
418 | smartphone. | 423 | smartphone. |
419 | 424 | ||
425 | config MACH_RAUMFELD_RC | ||
426 | bool "Raumfeld Controller" | ||
427 | select PXA3xx | ||
428 | select CPU_PXA300 | ||
429 | select HAVE_PWM | ||
430 | |||
431 | config MACH_RAUMFELD_CONNECTOR | ||
432 | bool "Raumfeld Connector" | ||
433 | select PXA3xx | ||
434 | select CPU_PXA300 | ||
435 | select PXA_SSP | ||
436 | |||
437 | config MACH_RAUMFELD_SPEAKER | ||
438 | bool "Raumfeld Speaker" | ||
439 | select PXA3xx | ||
440 | select CPU_PXA300 | ||
441 | select PXA_SSP | ||
442 | |||
420 | config PXA_SHARPSL | 443 | config PXA_SHARPSL |
421 | bool "SHARP Zaurus SL-5600, SL-C7xx and SL-Cxx00 Models" | 444 | bool "SHARP Zaurus SL-5600, SL-C7xx and SL-Cxx00 Models" |
422 | select SHARP_SCOOP | 445 | select SHARP_SCOOP |
@@ -435,6 +458,7 @@ config SHARPSL_PM | |||
435 | config CORGI_SSP_DEPRECATED | 458 | config CORGI_SSP_DEPRECATED |
436 | bool | 459 | bool |
437 | select PXA_SSP | 460 | select PXA_SSP |
461 | select PXA_SSP_LEGACY | ||
438 | help | 462 | help |
439 | This option will include corgi_ssp.c and corgi_lcd.c | 463 | This option will include corgi_ssp.c and corgi_lcd.c |
440 | that corgi_ts.c and other legacy drivers (corgi_bl.c | 464 | that corgi_ts.c and other legacy drivers (corgi_bl.c |
@@ -446,6 +470,7 @@ config MACH_POODLE | |||
446 | select PXA25x | 470 | select PXA25x |
447 | select SHARP_LOCOMO | 471 | select SHARP_LOCOMO |
448 | select PXA_SSP | 472 | select PXA_SSP |
473 | select PXA_HAVE_BOARD_IRQS | ||
449 | 474 | ||
450 | config MACH_CORGI | 475 | config MACH_CORGI |
451 | bool "Enable Sharp SL-C700 (Corgi) Support" | 476 | bool "Enable Sharp SL-C700 (Corgi) Support" |
@@ -492,6 +517,11 @@ config MACH_TOSA | |||
492 | select PXA25x | 517 | select PXA25x |
493 | select PXA_HAVE_BOARD_IRQS | 518 | select PXA_HAVE_BOARD_IRQS |
494 | 519 | ||
520 | config MACH_ICONTROL | ||
521 | bool "TMT iControl/SafeTCam based on the MXM-8x10 CoM" | ||
522 | select CPU_PXA320 | ||
523 | select PXA3xx | ||
524 | |||
495 | config ARCH_PXA_ESERIES | 525 | config ARCH_PXA_ESERIES |
496 | bool "PXA based Toshiba e-series PDAs" | 526 | bool "PXA based Toshiba e-series PDAs" |
497 | select PXA25x | 527 | select PXA25x |
@@ -629,6 +659,11 @@ config PXA_SSP | |||
629 | help | 659 | help |
630 | Enable support for PXA2xx SSP ports | 660 | Enable support for PXA2xx SSP ports |
631 | 661 | ||
662 | config PXA_SSP_LEGACY | ||
663 | bool | ||
664 | help | ||
665 | Support of legacy SSP API | ||
666 | |||
632 | config TOSA_BT | 667 | config TOSA_BT |
633 | tristate "Control the state of built-in bluetooth chip on Sharp SL-6000" | 668 | tristate "Control the state of built-in bluetooth chip on Sharp SL-6000" |
634 | depends on MACH_TOSA | 669 | depends on MACH_TOSA |
diff --git a/arch/arm/mach-pxa/Makefile b/arch/arm/mach-pxa/Makefile index f64afda7e6f..86bc87b7f2d 100644 --- a/arch/arm/mach-pxa/Makefile +++ b/arch/arm/mach-pxa/Makefile | |||
@@ -48,6 +48,7 @@ obj-$(CONFIG_MACH_ARMCORE) += cm-x2xx-pci.o | |||
48 | endif | 48 | endif |
49 | obj-$(CONFIG_MACH_EM_X270) += em-x270.o | 49 | obj-$(CONFIG_MACH_EM_X270) += em-x270.o |
50 | obj-$(CONFIG_MACH_CM_X300) += cm-x300.o | 50 | obj-$(CONFIG_MACH_CM_X300) += cm-x300.o |
51 | obj-$(CONFIG_MACH_CAPC7117) += capc7117.o mxm8x10.o | ||
51 | obj-$(CONFIG_ARCH_GUMSTIX) += gumstix.o | 52 | obj-$(CONFIG_ARCH_GUMSTIX) += gumstix.o |
52 | obj-$(CONFIG_GUMSTIX_AM200EPD) += am200epd.o | 53 | obj-$(CONFIG_GUMSTIX_AM200EPD) += am200epd.o |
53 | obj-$(CONFIG_GUMSTIX_AM300EPD) += am300epd.o | 54 | obj-$(CONFIG_GUMSTIX_AM300EPD) += am300epd.o |
@@ -82,6 +83,7 @@ obj-$(CONFIG_PXA_SHARP_Cxx00) += spitz.o sharpsl_pm.o spitz_pm.o | |||
82 | obj-$(CONFIG_CORGI_SSP_DEPRECATED) += corgi_ssp.o corgi_lcd.o | 83 | obj-$(CONFIG_CORGI_SSP_DEPRECATED) += corgi_ssp.o corgi_lcd.o |
83 | obj-$(CONFIG_MACH_POODLE) += poodle.o | 84 | obj-$(CONFIG_MACH_POODLE) += poodle.o |
84 | obj-$(CONFIG_MACH_TOSA) += tosa.o | 85 | obj-$(CONFIG_MACH_TOSA) += tosa.o |
86 | obj-$(CONFIG_MACH_ICONTROL) += icontrol.o mxm8x10.o | ||
85 | obj-$(CONFIG_ARCH_PXA_ESERIES) += eseries.o | 87 | obj-$(CONFIG_ARCH_PXA_ESERIES) += eseries.o |
86 | obj-$(CONFIG_MACH_E330) += e330.o | 88 | obj-$(CONFIG_MACH_E330) += e330.o |
87 | obj-$(CONFIG_MACH_E350) += e350.o | 89 | obj-$(CONFIG_MACH_E350) += e350.o |
@@ -89,6 +91,9 @@ obj-$(CONFIG_MACH_E740) += e740.o | |||
89 | obj-$(CONFIG_MACH_E750) += e750.o | 91 | obj-$(CONFIG_MACH_E750) += e750.o |
90 | obj-$(CONFIG_MACH_E400) += e400.o | 92 | obj-$(CONFIG_MACH_E400) += e400.o |
91 | obj-$(CONFIG_MACH_E800) += e800.o | 93 | obj-$(CONFIG_MACH_E800) += e800.o |
94 | obj-$(CONFIG_MACH_RAUMFELD_RC) += raumfeld.o | ||
95 | obj-$(CONFIG_MACH_RAUMFELD_CONNECTOR) += raumfeld.o | ||
96 | obj-$(CONFIG_MACH_RAUMFELD_SPEAKER) += raumfeld.o | ||
92 | 97 | ||
93 | # Support for blinky lights | 98 | # Support for blinky lights |
94 | led-y := leds.o | 99 | led-y := leds.o |
diff --git a/arch/arm/mach-pxa/balloon3.c b/arch/arm/mach-pxa/balloon3.c index b8cd07ca938..f3b5ace815e 100644 --- a/arch/arm/mach-pxa/balloon3.c +++ b/arch/arm/mach-pxa/balloon3.c | |||
@@ -132,6 +132,14 @@ static void __init balloon3_init_irq(void) | |||
132 | "enabled\n", __func__, BALLOON3_AUX_NIRQ); | 132 | "enabled\n", __func__, BALLOON3_AUX_NIRQ); |
133 | } | 133 | } |
134 | 134 | ||
135 | static unsigned long balloon3_ac97_pin_config[] = { | ||
136 | GPIO28_AC97_BITCLK, | ||
137 | GPIO29_AC97_SDATA_IN_0, | ||
138 | GPIO30_AC97_SDATA_OUT, | ||
139 | GPIO31_AC97_SYNC, | ||
140 | GPIO113_AC97_nRESET, | ||
141 | }; | ||
142 | |||
135 | static void balloon3_backlight_power(int on) | 143 | static void balloon3_backlight_power(int on) |
136 | { | 144 | { |
137 | pr_debug("%s: power is %s\n", __func__, on ? "on" : "off"); | 145 | pr_debug("%s: power is %s\n", __func__, on ? "on" : "off"); |
@@ -140,26 +148,7 @@ static void balloon3_backlight_power(int on) | |||
140 | 148 | ||
141 | static unsigned long balloon3_lcd_pin_config[] = { | 149 | static unsigned long balloon3_lcd_pin_config[] = { |
142 | /* LCD - 16bpp Active TFT */ | 150 | /* LCD - 16bpp Active TFT */ |
143 | GPIO58_LCD_LDD_0, | 151 | GPIOxx_LCD_TFT_16BPP, |
144 | GPIO59_LCD_LDD_1, | ||
145 | GPIO60_LCD_LDD_2, | ||
146 | GPIO61_LCD_LDD_3, | ||
147 | GPIO62_LCD_LDD_4, | ||
148 | GPIO63_LCD_LDD_5, | ||
149 | GPIO64_LCD_LDD_6, | ||
150 | GPIO65_LCD_LDD_7, | ||
151 | GPIO66_LCD_LDD_8, | ||
152 | GPIO67_LCD_LDD_9, | ||
153 | GPIO68_LCD_LDD_10, | ||
154 | GPIO69_LCD_LDD_11, | ||
155 | GPIO70_LCD_LDD_12, | ||
156 | GPIO71_LCD_LDD_13, | ||
157 | GPIO72_LCD_LDD_14, | ||
158 | GPIO73_LCD_LDD_15, | ||
159 | GPIO74_LCD_FCLK, | ||
160 | GPIO75_LCD_LCLK, | ||
161 | GPIO76_LCD_PCLK, | ||
162 | GPIO77_LCD_BIAS, | ||
163 | 152 | ||
164 | GPIO99_GPIO, /* Backlight */ | 153 | GPIO99_GPIO, /* Backlight */ |
165 | }; | 154 | }; |
@@ -311,8 +300,10 @@ static void __init balloon3_init(void) | |||
311 | pxa_set_stuart_info(NULL); | 300 | pxa_set_stuart_info(NULL); |
312 | 301 | ||
313 | pxa_set_i2c_info(NULL); | 302 | pxa_set_i2c_info(NULL); |
314 | if (balloon3_has(BALLOON3_FEATURE_AUDIO)) | 303 | if (balloon3_has(BALLOON3_FEATURE_AUDIO)) { |
304 | pxa2xx_mfp_config(ARRAY_AND_SIZE(balloon3_ac97_pin_config)); | ||
315 | pxa_set_ac97_info(NULL); | 305 | pxa_set_ac97_info(NULL); |
306 | } | ||
316 | 307 | ||
317 | if (balloon3_has(BALLOON3_FEATURE_TOPPOLY)) { | 308 | if (balloon3_has(BALLOON3_FEATURE_TOPPOLY)) { |
318 | pxa2xx_mfp_config(ARRAY_AND_SIZE(balloon3_lcd_pin_config)); | 309 | pxa2xx_mfp_config(ARRAY_AND_SIZE(balloon3_lcd_pin_config)); |
diff --git a/arch/arm/mach-pxa/capc7117.c b/arch/arm/mach-pxa/capc7117.c new file mode 100644 index 00000000000..aae544631a8 --- /dev/null +++ b/arch/arm/mach-pxa/capc7117.c | |||
@@ -0,0 +1,158 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pxa/capc7117.c | ||
3 | * | ||
4 | * Support for the Embedian CAPC-7117 Evaluation Kit | ||
5 | * based on the Embedian MXM-8x10 Computer on Module | ||
6 | * | ||
7 | * Copyright (C) 2009 Embedian Inc. | ||
8 | * Copyright (C) 2009 TMT Services & Supplies (Pty) Ltd. | ||
9 | * | ||
10 | * 2007-09-04: eric miao <eric.y.miao@gmail.com> | ||
11 | * rewrite to align with latest kernel | ||
12 | * | ||
13 | * 2010-01-09: Edwin Peer <epeer@tmtservices.co.za> | ||
14 | * Hennie van der Merwe <hvdmerwe@tmtservices.co.za> | ||
15 | * rework for upstream merge | ||
16 | * | ||
17 | * This program is free software; you can redistribute it and/or modify | ||
18 | * it under the terms of the GNU General Public License version 2 as | ||
19 | * published by the Free Software Foundation. | ||
20 | */ | ||
21 | |||
22 | #include <linux/irq.h> | ||
23 | #include <linux/platform_device.h> | ||
24 | #include <linux/ata_platform.h> | ||
25 | #include <linux/serial_8250.h> | ||
26 | #include <linux/gpio.h> | ||
27 | |||
28 | #include <asm/mach-types.h> | ||
29 | #include <asm/mach/arch.h> | ||
30 | |||
31 | #include <mach/pxa320.h> | ||
32 | #include <mach/mxm8x10.h> | ||
33 | |||
34 | #include "generic.h" | ||
35 | |||
36 | /* IDE (PATA) Support */ | ||
37 | static struct pata_platform_info pata_platform_data = { | ||
38 | .ioport_shift = 1 | ||
39 | }; | ||
40 | |||
41 | static struct resource capc7117_ide_resources[] = { | ||
42 | [0] = { | ||
43 | .start = 0x11000020, | ||
44 | .end = 0x1100003f, | ||
45 | .flags = IORESOURCE_MEM | ||
46 | }, | ||
47 | [1] = { | ||
48 | .start = 0x1100001c, | ||
49 | .end = 0x1100001c, | ||
50 | .flags = IORESOURCE_MEM | ||
51 | }, | ||
52 | [2] = { | ||
53 | .start = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO76)), | ||
54 | .end = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO76)), | ||
55 | .flags = IORESOURCE_IRQ | IRQF_TRIGGER_RISING | ||
56 | } | ||
57 | }; | ||
58 | |||
59 | static struct platform_device capc7117_ide_device = { | ||
60 | .name = "pata_platform", | ||
61 | .num_resources = ARRAY_SIZE(capc7117_ide_resources), | ||
62 | .resource = capc7117_ide_resources, | ||
63 | .dev = { | ||
64 | .platform_data = &pata_platform_data, | ||
65 | .coherent_dma_mask = ~0 /* grumble */ | ||
66 | } | ||
67 | }; | ||
68 | |||
69 | static void __init capc7117_ide_init(void) | ||
70 | { | ||
71 | platform_device_register(&capc7117_ide_device); | ||
72 | } | ||
73 | |||
74 | /* TI16C752 UART support */ | ||
75 | #define TI16C752_FLAGS (UPF_BOOT_AUTOCONF | \ | ||
76 | UPF_IOREMAP | \ | ||
77 | UPF_BUGGY_UART | \ | ||
78 | UPF_SKIP_TEST) | ||
79 | #define TI16C752_UARTCLK (22118400) | ||
80 | static struct plat_serial8250_port ti16c752_platform_data[] = { | ||
81 | [0] = { | ||
82 | .mapbase = 0x14000000, | ||
83 | .irq = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO78)), | ||
84 | .irqflags = IRQF_TRIGGER_RISING, | ||
85 | .flags = TI16C752_FLAGS, | ||
86 | .iotype = UPIO_MEM, | ||
87 | .regshift = 1, | ||
88 | .uartclk = TI16C752_UARTCLK | ||
89 | }, | ||
90 | [1] = { | ||
91 | .mapbase = 0x14000040, | ||
92 | .irq = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO79)), | ||
93 | .irqflags = IRQF_TRIGGER_RISING, | ||
94 | .flags = TI16C752_FLAGS, | ||
95 | .iotype = UPIO_MEM, | ||
96 | .regshift = 1, | ||
97 | .uartclk = TI16C752_UARTCLK | ||
98 | }, | ||
99 | [2] = { | ||
100 | .mapbase = 0x14000080, | ||
101 | .irq = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO80)), | ||
102 | .irqflags = IRQF_TRIGGER_RISING, | ||
103 | .flags = TI16C752_FLAGS, | ||
104 | .iotype = UPIO_MEM, | ||
105 | .regshift = 1, | ||
106 | .uartclk = TI16C752_UARTCLK | ||
107 | }, | ||
108 | [3] = { | ||
109 | .mapbase = 0x140000c0, | ||
110 | .irq = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO81)), | ||
111 | .irqflags = IRQF_TRIGGER_RISING, | ||
112 | .flags = TI16C752_FLAGS, | ||
113 | .iotype = UPIO_MEM, | ||
114 | .regshift = 1, | ||
115 | .uartclk = TI16C752_UARTCLK | ||
116 | }, | ||
117 | [4] = { | ||
118 | /* end of array */ | ||
119 | } | ||
120 | }; | ||
121 | |||
122 | static struct platform_device ti16c752_device = { | ||
123 | .name = "serial8250", | ||
124 | .id = PLAT8250_DEV_PLATFORM, | ||
125 | .dev = { | ||
126 | .platform_data = ti16c752_platform_data | ||
127 | } | ||
128 | }; | ||
129 | |||
130 | static void __init capc7117_uarts_init(void) | ||
131 | { | ||
132 | platform_device_register(&ti16c752_device); | ||
133 | } | ||
134 | |||
135 | static void __init capc7117_init(void) | ||
136 | { | ||
137 | /* Init CoM */ | ||
138 | mxm_8x10_barebones_init(); | ||
139 | |||
140 | /* Init evaluation board peripherals */ | ||
141 | mxm_8x10_ac97_init(); | ||
142 | mxm_8x10_usb_host_init(); | ||
143 | mxm_8x10_mmc_init(); | ||
144 | |||
145 | capc7117_uarts_init(); | ||
146 | capc7117_ide_init(); | ||
147 | } | ||
148 | |||
149 | MACHINE_START(CAPC7117, | ||
150 | "Embedian CAPC-7117 evaluation kit based on the MXM-8x10 CoM") | ||
151 | .phys_io = 0x40000000, | ||
152 | .boot_params = 0xa0000100, | ||
153 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
154 | .map_io = pxa_map_io, | ||
155 | .init_irq = pxa3xx_init_irq, | ||
156 | .timer = &pxa_timer, | ||
157 | .init_machine = capc7117_init | ||
158 | MACHINE_END | ||
diff --git a/arch/arm/mach-pxa/cm-x255.c b/arch/arm/mach-pxa/cm-x255.c index 253fd76142d..f1a7703d771 100644 --- a/arch/arm/mach-pxa/cm-x255.c +++ b/arch/arm/mach-pxa/cm-x255.c | |||
@@ -50,26 +50,7 @@ static unsigned long cmx255_pin_config[] = { | |||
50 | GPIO47_STUART_TXD, | 50 | GPIO47_STUART_TXD, |
51 | 51 | ||
52 | /* LCD */ | 52 | /* LCD */ |
53 | GPIO58_LCD_LDD_0, | 53 | GPIOxx_LCD_TFT_16BPP, |
54 | GPIO59_LCD_LDD_1, | ||
55 | GPIO60_LCD_LDD_2, | ||
56 | GPIO61_LCD_LDD_3, | ||
57 | GPIO62_LCD_LDD_4, | ||
58 | GPIO63_LCD_LDD_5, | ||
59 | GPIO64_LCD_LDD_6, | ||
60 | GPIO65_LCD_LDD_7, | ||
61 | GPIO66_LCD_LDD_8, | ||
62 | GPIO67_LCD_LDD_9, | ||
63 | GPIO68_LCD_LDD_10, | ||
64 | GPIO69_LCD_LDD_11, | ||
65 | GPIO70_LCD_LDD_12, | ||
66 | GPIO71_LCD_LDD_13, | ||
67 | GPIO72_LCD_LDD_14, | ||
68 | GPIO73_LCD_LDD_15, | ||
69 | GPIO74_LCD_FCLK, | ||
70 | GPIO75_LCD_LCLK, | ||
71 | GPIO76_LCD_PCLK, | ||
72 | GPIO77_LCD_BIAS, | ||
73 | 54 | ||
74 | /* SSP1 */ | 55 | /* SSP1 */ |
75 | GPIO23_SSP1_SCLK, | 56 | GPIO23_SSP1_SCLK, |
diff --git a/arch/arm/mach-pxa/cm-x270.c b/arch/arm/mach-pxa/cm-x270.c index eea78b6c2bc..a9926bb7592 100644 --- a/arch/arm/mach-pxa/cm-x270.c +++ b/arch/arm/mach-pxa/cm-x270.c | |||
@@ -71,26 +71,7 @@ static unsigned long cmx270_pin_config[] = { | |||
71 | GPIO111_MMC_DAT_3, | 71 | GPIO111_MMC_DAT_3, |
72 | 72 | ||
73 | /* LCD */ | 73 | /* LCD */ |
74 | GPIO58_LCD_LDD_0, | 74 | GPIOxx_LCD_TFT_16BPP, |
75 | GPIO59_LCD_LDD_1, | ||
76 | GPIO60_LCD_LDD_2, | ||
77 | GPIO61_LCD_LDD_3, | ||
78 | GPIO62_LCD_LDD_4, | ||
79 | GPIO63_LCD_LDD_5, | ||
80 | GPIO64_LCD_LDD_6, | ||
81 | GPIO65_LCD_LDD_7, | ||
82 | GPIO66_LCD_LDD_8, | ||
83 | GPIO67_LCD_LDD_9, | ||
84 | GPIO68_LCD_LDD_10, | ||
85 | GPIO69_LCD_LDD_11, | ||
86 | GPIO70_LCD_LDD_12, | ||
87 | GPIO71_LCD_LDD_13, | ||
88 | GPIO72_LCD_LDD_14, | ||
89 | GPIO73_LCD_LDD_15, | ||
90 | GPIO74_LCD_FCLK, | ||
91 | GPIO75_LCD_LCLK, | ||
92 | GPIO76_LCD_PCLK, | ||
93 | GPIO77_LCD_BIAS, | ||
94 | 75 | ||
95 | /* I2C */ | 76 | /* I2C */ |
96 | GPIO117_I2C_SCL, | 77 | GPIO117_I2C_SCL, |
@@ -195,33 +176,57 @@ static struct resource cmx270_2700G_resource[] = { | |||
195 | }, | 176 | }, |
196 | }; | 177 | }; |
197 | 178 | ||
198 | static unsigned long save_lcd_regs[10]; | 179 | static unsigned long cmx270_marathon_on[] = { |
180 | GPIO58_GPIO, | ||
181 | GPIO59_GPIO, | ||
182 | GPIO60_GPIO, | ||
183 | GPIO61_GPIO, | ||
184 | GPIO62_GPIO, | ||
185 | GPIO63_GPIO, | ||
186 | GPIO64_GPIO, | ||
187 | GPIO65_GPIO, | ||
188 | GPIO66_GPIO, | ||
189 | GPIO67_GPIO, | ||
190 | GPIO68_GPIO, | ||
191 | GPIO69_GPIO, | ||
192 | GPIO70_GPIO, | ||
193 | GPIO71_GPIO, | ||
194 | GPIO72_GPIO, | ||
195 | GPIO73_GPIO, | ||
196 | GPIO74_GPIO, | ||
197 | GPIO75_GPIO, | ||
198 | GPIO76_GPIO, | ||
199 | GPIO77_GPIO, | ||
200 | }; | ||
201 | |||
202 | static unsigned long cmx270_marathon_off[] = { | ||
203 | GPIOxx_LCD_TFT_16BPP, | ||
204 | }; | ||
199 | 205 | ||
200 | static int cmx270_marathon_probe(struct fb_info *fb) | 206 | static int cmx270_marathon_probe(struct fb_info *fb) |
201 | { | 207 | { |
202 | /* save PXA-270 pin settings before enabling 2700G */ | 208 | int gpio, err; |
203 | save_lcd_regs[0] = GPDR1; | 209 | |
204 | save_lcd_regs[1] = GPDR2; | 210 | for (gpio = 58; gpio <= 77; gpio++) { |
205 | save_lcd_regs[2] = GAFR1_U; | 211 | err = gpio_request(gpio, "LCD"); |
206 | save_lcd_regs[3] = GAFR2_L; | 212 | if (err) |
207 | save_lcd_regs[4] = GAFR2_U; | 213 | return err; |
208 | 214 | gpio_direction_input(gpio); | |
209 | /* Disable PXA-270 on-chip controller driving pins */ | 215 | } |
210 | GPDR1 &= ~(0xfc000000); | 216 | |
211 | GPDR2 &= ~(0x00c03fff); | 217 | pxa2xx_mfp_config(ARRAY_AND_SIZE(cmx270_marathon_on)); |
212 | GAFR1_U &= ~(0xfff00000); | ||
213 | GAFR2_L &= ~(0x0fffffff); | ||
214 | GAFR2_U &= ~(0x0000f000); | ||
215 | return 0; | 218 | return 0; |
216 | } | 219 | } |
217 | 220 | ||
218 | static int cmx270_marathon_remove(struct fb_info *fb) | 221 | static int cmx270_marathon_remove(struct fb_info *fb) |
219 | { | 222 | { |
220 | GPDR1 = save_lcd_regs[0]; | 223 | int gpio; |
221 | GPDR2 = save_lcd_regs[1]; | 224 | |
222 | GAFR1_U = save_lcd_regs[2]; | 225 | pxa2xx_mfp_config(ARRAY_AND_SIZE(cmx270_marathon_off)); |
223 | GAFR2_L = save_lcd_regs[3]; | 226 | |
224 | GAFR2_U = save_lcd_regs[4]; | 227 | for (gpio = 58; gpio <= 77; gpio++) |
228 | gpio_free(gpio); | ||
229 | |||
225 | return 0; | 230 | return 0; |
226 | } | 231 | } |
227 | 232 | ||
diff --git a/arch/arm/mach-pxa/cm-x2xx-pci.c b/arch/arm/mach-pxa/cm-x2xx-pci.c index 7873fa3d8fa..161fc2d6120 100644 --- a/arch/arm/mach-pxa/cm-x2xx-pci.c +++ b/arch/arm/mach-pxa/cm-x2xx-pci.c | |||
@@ -59,7 +59,7 @@ void __init cmx2xx_pci_adjust_zones(int node, unsigned long *zone_size, | |||
59 | static void cmx2xx_it8152_irq_demux(unsigned int irq, struct irq_desc *desc) | 59 | static void cmx2xx_it8152_irq_demux(unsigned int irq, struct irq_desc *desc) |
60 | { | 60 | { |
61 | /* clear our parent irq */ | 61 | /* clear our parent irq */ |
62 | GEDR(cmx2xx_it8152_irq_gpio) = GPIO_bit(cmx2xx_it8152_irq_gpio); | 62 | desc->chip->ack(irq); |
63 | 63 | ||
64 | it8152_irq_demux(irq, desc); | 64 | it8152_irq_demux(irq, desc); |
65 | } | 65 | } |
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index 74446cf8ae6..da3156d8690 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c | |||
@@ -457,6 +457,7 @@ static struct pxaficp_platform_data corgi_ficp_platform_data = { | |||
457 | * USB Device Controller | 457 | * USB Device Controller |
458 | */ | 458 | */ |
459 | static struct pxa2xx_udc_mach_info udc_info __initdata = { | 459 | static struct pxa2xx_udc_mach_info udc_info __initdata = { |
460 | .gpio_vbus = -1, | ||
460 | /* no connect GPIO; corgi can't tell connection status */ | 461 | /* no connect GPIO; corgi can't tell connection status */ |
461 | .gpio_pullup = CORGI_GPIO_USB_PULLUP, | 462 | .gpio_pullup = CORGI_GPIO_USB_PULLUP, |
462 | }; | 463 | }; |
diff --git a/arch/arm/mach-pxa/e740.c b/arch/arm/mach-pxa/e740.c index 94b23a9e387..d578021d1a1 100644 --- a/arch/arm/mach-pxa/e740.c +++ b/arch/arm/mach-pxa/e740.c | |||
@@ -134,6 +134,12 @@ static unsigned long e740_pin_config[] __initdata = { | |||
134 | /* IrDA */ | 134 | /* IrDA */ |
135 | GPIO38_GPIO | MFP_LPM_DRIVE_HIGH, | 135 | GPIO38_GPIO | MFP_LPM_DRIVE_HIGH, |
136 | 136 | ||
137 | /* AC97 */ | ||
138 | GPIO28_AC97_BITCLK, | ||
139 | GPIO29_AC97_SDATA_IN_0, | ||
140 | GPIO30_AC97_SDATA_OUT, | ||
141 | GPIO31_AC97_SYNC, | ||
142 | |||
137 | /* Audio power control */ | 143 | /* Audio power control */ |
138 | GPIO16_GPIO, /* AC97 codec AVDD2 supply (analogue power) */ | 144 | GPIO16_GPIO, /* AC97 codec AVDD2 supply (analogue power) */ |
139 | GPIO40_GPIO, /* Mic amp power */ | 145 | GPIO40_GPIO, /* Mic amp power */ |
diff --git a/arch/arm/mach-pxa/e750.c b/arch/arm/mach-pxa/e750.c index 5eccbce73a3..af83caa52dd 100644 --- a/arch/arm/mach-pxa/e750.c +++ b/arch/arm/mach-pxa/e750.c | |||
@@ -132,6 +132,12 @@ static unsigned long e750_pin_config[] __initdata = { | |||
132 | /* IrDA */ | 132 | /* IrDA */ |
133 | GPIO38_GPIO | MFP_LPM_DRIVE_HIGH, | 133 | GPIO38_GPIO | MFP_LPM_DRIVE_HIGH, |
134 | 134 | ||
135 | /* AC97 */ | ||
136 | GPIO28_AC97_BITCLK, | ||
137 | GPIO29_AC97_SDATA_IN_0, | ||
138 | GPIO30_AC97_SDATA_OUT, | ||
139 | GPIO31_AC97_SYNC, | ||
140 | |||
135 | /* Audio power control */ | 141 | /* Audio power control */ |
136 | GPIO4_GPIO, /* Headphone amp power */ | 142 | GPIO4_GPIO, /* Headphone amp power */ |
137 | GPIO7_GPIO, /* Speaker amp power */ | 143 | GPIO7_GPIO, /* Speaker amp power */ |
diff --git a/arch/arm/mach-pxa/e800.c b/arch/arm/mach-pxa/e800.c index aad129bed19..8ea97bf53fe 100644 --- a/arch/arm/mach-pxa/e800.c +++ b/arch/arm/mach-pxa/e800.c | |||
@@ -35,6 +35,14 @@ | |||
35 | 35 | ||
36 | /* ------------------------ e800 LCD definitions ------------------------- */ | 36 | /* ------------------------ e800 LCD definitions ------------------------- */ |
37 | 37 | ||
38 | static unsigned long e800_pin_config[] __initdata = { | ||
39 | /* AC97 */ | ||
40 | GPIO28_AC97_BITCLK, | ||
41 | GPIO29_AC97_SDATA_IN_0, | ||
42 | GPIO30_AC97_SDATA_OUT, | ||
43 | GPIO31_AC97_SYNC, | ||
44 | }; | ||
45 | |||
38 | static struct w100_gen_regs e800_lcd_regs = { | 46 | static struct w100_gen_regs e800_lcd_regs = { |
39 | .lcd_format = 0x00008003, | 47 | .lcd_format = 0x00008003, |
40 | .lcdd_cntl1 = 0x02a00000, | 48 | .lcdd_cntl1 = 0x02a00000, |
@@ -195,6 +203,7 @@ static struct platform_device *devices[] __initdata = { | |||
195 | 203 | ||
196 | static void __init e800_init(void) | 204 | static void __init e800_init(void) |
197 | { | 205 | { |
206 | pxa2xx_mfp_config(ARRAY_AND_SIZE(e800_pin_config)); | ||
198 | pxa_set_ffuart_info(NULL); | 207 | pxa_set_ffuart_info(NULL); |
199 | pxa_set_btuart_info(NULL); | 208 | pxa_set_btuart_info(NULL); |
200 | pxa_set_stuart_info(NULL); | 209 | pxa_set_stuart_info(NULL); |
diff --git a/arch/arm/mach-pxa/em-x270.c b/arch/arm/mach-pxa/em-x270.c index c8a01bc85fd..aab04f33e49 100644 --- a/arch/arm/mach-pxa/em-x270.c +++ b/arch/arm/mach-pxa/em-x270.c | |||
@@ -109,26 +109,7 @@ static unsigned long common_pin_config[] = { | |||
109 | GPIO111_MMC_DAT_3, | 109 | GPIO111_MMC_DAT_3, |
110 | 110 | ||
111 | /* LCD */ | 111 | /* LCD */ |
112 | GPIO58_LCD_LDD_0, | 112 | GPIOxx_LCD_TFT_16BPP, |
113 | GPIO59_LCD_LDD_1, | ||
114 | GPIO60_LCD_LDD_2, | ||
115 | GPIO61_LCD_LDD_3, | ||
116 | GPIO62_LCD_LDD_4, | ||
117 | GPIO63_LCD_LDD_5, | ||
118 | GPIO64_LCD_LDD_6, | ||
119 | GPIO65_LCD_LDD_7, | ||
120 | GPIO66_LCD_LDD_8, | ||
121 | GPIO67_LCD_LDD_9, | ||
122 | GPIO68_LCD_LDD_10, | ||
123 | GPIO69_LCD_LDD_11, | ||
124 | GPIO70_LCD_LDD_12, | ||
125 | GPIO71_LCD_LDD_13, | ||
126 | GPIO72_LCD_LDD_14, | ||
127 | GPIO73_LCD_LDD_15, | ||
128 | GPIO74_LCD_FCLK, | ||
129 | GPIO75_LCD_LCLK, | ||
130 | GPIO76_LCD_PCLK, | ||
131 | GPIO77_LCD_BIAS, | ||
132 | 113 | ||
133 | /* QCI */ | 114 | /* QCI */ |
134 | GPIO84_CIF_FV, | 115 | GPIO84_CIF_FV, |
diff --git a/arch/arm/mach-pxa/icontrol.c b/arch/arm/mach-pxa/icontrol.c new file mode 100644 index 00000000000..771137fc1a8 --- /dev/null +++ b/arch/arm/mach-pxa/icontrol.c | |||
@@ -0,0 +1,202 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pxa/icontrol.c | ||
3 | * | ||
4 | * Support for the iControl and SafeTcam platforms from TMT Services | ||
5 | * using the Embedian MXM-8x10 Computer on Module | ||
6 | * | ||
7 | * Copyright (C) 2009 TMT Services & Supplies (Pty) Ltd. | ||
8 | * | ||
9 | * 2010-01-21 Hennie van der Merve <hvdmerwe@tmtservies.co.za> | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU General Public License version 2 as | ||
13 | * published by the Free Software Foundation. | ||
14 | */ | ||
15 | |||
16 | #include <linux/irq.h> | ||
17 | #include <linux/platform_device.h> | ||
18 | #include <linux/gpio.h> | ||
19 | |||
20 | #include <asm/mach-types.h> | ||
21 | #include <asm/mach/arch.h> | ||
22 | |||
23 | #include <mach/pxa320.h> | ||
24 | #include <mach/mxm8x10.h> | ||
25 | |||
26 | #include <linux/spi/spi.h> | ||
27 | #include <mach/pxa2xx_spi.h> | ||
28 | #include <linux/can/platform/mcp251x.h> | ||
29 | |||
30 | #include "generic.h" | ||
31 | |||
32 | #define ICONTROL_MCP251x_nCS1 (15) | ||
33 | #define ICONTROL_MCP251x_nCS2 (16) | ||
34 | #define ICONTROL_MCP251x_nCS3 (17) | ||
35 | #define ICONTROL_MCP251x_nCS4 (24) | ||
36 | |||
37 | #define ICONTROL_MCP251x_nIRQ1 (74) | ||
38 | #define ICONTROL_MCP251x_nIRQ2 (75) | ||
39 | #define ICONTROL_MCP251x_nIRQ3 (76) | ||
40 | #define ICONTROL_MCP251x_nIRQ4 (77) | ||
41 | |||
42 | static struct pxa2xx_spi_chip mcp251x_chip_info1 = { | ||
43 | .tx_threshold = 8, | ||
44 | .rx_threshold = 128, | ||
45 | .dma_burst_size = 8, | ||
46 | .timeout = 235, | ||
47 | .gpio_cs = ICONTROL_MCP251x_nCS1 | ||
48 | }; | ||
49 | |||
50 | static struct pxa2xx_spi_chip mcp251x_chip_info2 = { | ||
51 | .tx_threshold = 8, | ||
52 | .rx_threshold = 128, | ||
53 | .dma_burst_size = 8, | ||
54 | .timeout = 235, | ||
55 | .gpio_cs = ICONTROL_MCP251x_nCS2 | ||
56 | }; | ||
57 | |||
58 | static struct pxa2xx_spi_chip mcp251x_chip_info3 = { | ||
59 | .tx_threshold = 8, | ||
60 | .rx_threshold = 128, | ||
61 | .dma_burst_size = 8, | ||
62 | .timeout = 235, | ||
63 | .gpio_cs = ICONTROL_MCP251x_nCS3 | ||
64 | }; | ||
65 | |||
66 | static struct pxa2xx_spi_chip mcp251x_chip_info4 = { | ||
67 | .tx_threshold = 8, | ||
68 | .rx_threshold = 128, | ||
69 | .dma_burst_size = 8, | ||
70 | .timeout = 235, | ||
71 | .gpio_cs = ICONTROL_MCP251x_nCS4 | ||
72 | }; | ||
73 | |||
74 | static struct mcp251x_platform_data mcp251x_info = { | ||
75 | .oscillator_frequency = 16E6, | ||
76 | .model = CAN_MCP251X_MCP2515, | ||
77 | .board_specific_setup = NULL, | ||
78 | .power_enable = NULL, | ||
79 | .transceiver_enable = NULL | ||
80 | }; | ||
81 | |||
82 | static struct spi_board_info mcp251x_board_info[] = { | ||
83 | { | ||
84 | .modalias = "mcp251x", | ||
85 | .max_speed_hz = 6500000, | ||
86 | .bus_num = 3, | ||
87 | .chip_select = 0, | ||
88 | .platform_data = &mcp251x_info, | ||
89 | .controller_data = &mcp251x_chip_info1, | ||
90 | .irq = gpio_to_irq(ICONTROL_MCP251x_nIRQ1) | ||
91 | }, | ||
92 | { | ||
93 | .modalias = "mcp251x", | ||
94 | .max_speed_hz = 6500000, | ||
95 | .bus_num = 3, | ||
96 | .chip_select = 1, | ||
97 | .platform_data = &mcp251x_info, | ||
98 | .controller_data = &mcp251x_chip_info2, | ||
99 | .irq = gpio_to_irq(ICONTROL_MCP251x_nIRQ2) | ||
100 | }, | ||
101 | { | ||
102 | .modalias = "mcp251x", | ||
103 | .max_speed_hz = 6500000, | ||
104 | .bus_num = 4, | ||
105 | .chip_select = 0, | ||
106 | .platform_data = &mcp251x_info, | ||
107 | .controller_data = &mcp251x_chip_info3, | ||
108 | .irq = gpio_to_irq(ICONTROL_MCP251x_nIRQ3) | ||
109 | }, | ||
110 | { | ||
111 | .modalias = "mcp251x", | ||
112 | .max_speed_hz = 6500000, | ||
113 | .bus_num = 4, | ||
114 | .chip_select = 1, | ||
115 | .platform_data = &mcp251x_info, | ||
116 | .controller_data = &mcp251x_chip_info4, | ||
117 | .irq = gpio_to_irq(ICONTROL_MCP251x_nIRQ4) | ||
118 | } | ||
119 | }; | ||
120 | |||
121 | static struct pxa2xx_spi_master pxa_ssp3_spi_master_info = { | ||
122 | .clock_enable = CKEN_SSP3, | ||
123 | .num_chipselect = 2, | ||
124 | .enable_dma = 1 | ||
125 | }; | ||
126 | |||
127 | static struct pxa2xx_spi_master pxa_ssp4_spi_master_info = { | ||
128 | .clock_enable = CKEN_SSP4, | ||
129 | .num_chipselect = 2, | ||
130 | .enable_dma = 1 | ||
131 | }; | ||
132 | |||
133 | struct platform_device pxa_spi_ssp3 = { | ||
134 | .name = "pxa2xx-spi", | ||
135 | .id = 3, | ||
136 | .dev = { | ||
137 | .platform_data = &pxa_ssp3_spi_master_info, | ||
138 | } | ||
139 | }; | ||
140 | |||
141 | struct platform_device pxa_spi_ssp4 = { | ||
142 | .name = "pxa2xx-spi", | ||
143 | .id = 4, | ||
144 | .dev = { | ||
145 | .platform_data = &pxa_ssp4_spi_master_info, | ||
146 | } | ||
147 | }; | ||
148 | |||
149 | static struct platform_device *icontrol_spi_devices[] __initdata = { | ||
150 | &pxa_spi_ssp3, | ||
151 | &pxa_spi_ssp4, | ||
152 | }; | ||
153 | |||
154 | static mfp_cfg_t mfp_can_cfg[] __initdata = { | ||
155 | /* CAN CS lines */ | ||
156 | GPIO15_GPIO, | ||
157 | GPIO16_GPIO, | ||
158 | GPIO17_GPIO, | ||
159 | GPIO24_GPIO, | ||
160 | |||
161 | /* SPI (SSP3) lines */ | ||
162 | GPIO89_SSP3_SCLK, | ||
163 | GPIO91_SSP3_TXD, | ||
164 | GPIO92_SSP3_RXD, | ||
165 | |||
166 | /* SPI (SSP4) lines */ | ||
167 | GPIO93_SSP4_SCLK, | ||
168 | GPIO95_SSP4_TXD, | ||
169 | GPIO96_SSP4_RXD, | ||
170 | |||
171 | /* CAN nIRQ lines */ | ||
172 | GPIO74_GPIO | MFP_LPM_EDGE_RISE, | ||
173 | GPIO75_GPIO | MFP_LPM_EDGE_RISE, | ||
174 | GPIO76_GPIO | MFP_LPM_EDGE_RISE, | ||
175 | GPIO77_GPIO | MFP_LPM_EDGE_RISE | ||
176 | }; | ||
177 | |||
178 | static void __init icontrol_can_init(void) | ||
179 | { | ||
180 | pxa3xx_mfp_config(ARRAY_AND_SIZE(mfp_can_cfg)); | ||
181 | platform_add_devices(ARRAY_AND_SIZE(icontrol_spi_devices)); | ||
182 | spi_register_board_info(ARRAY_AND_SIZE(mcp251x_board_info)); | ||
183 | } | ||
184 | |||
185 | static void __init icontrol_init(void) | ||
186 | { | ||
187 | mxm_8x10_barebones_init(); | ||
188 | mxm_8x10_usb_host_init(); | ||
189 | mxm_8x10_mmc_init(); | ||
190 | |||
191 | icontrol_can_init(); | ||
192 | } | ||
193 | |||
194 | MACHINE_START(ICONTROL, "iControl/SafeTcam boards using Embedian MXM-8x10 CoM") | ||
195 | .phys_io = 0x40000000, | ||
196 | .boot_params = 0xa0000100, | ||
197 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
198 | .map_io = pxa_map_io, | ||
199 | .init_irq = pxa3xx_init_irq, | ||
200 | .timer = &pxa_timer, | ||
201 | .init_machine = icontrol_init | ||
202 | MACHINE_END | ||
diff --git a/arch/arm/mach-pxa/idp.c b/arch/arm/mach-pxa/idp.c index 5c9e11d74f4..bc78c4dc0c6 100644 --- a/arch/arm/mach-pxa/idp.c +++ b/arch/arm/mach-pxa/idp.c | |||
@@ -47,25 +47,7 @@ | |||
47 | 47 | ||
48 | static unsigned long idp_pin_config[] __initdata = { | 48 | static unsigned long idp_pin_config[] __initdata = { |
49 | /* LCD */ | 49 | /* LCD */ |
50 | GPIO58_LCD_LDD_0, | 50 | GPIOxx_LCD_DSTN_16BPP, |
51 | GPIO59_LCD_LDD_1, | ||
52 | GPIO60_LCD_LDD_2, | ||
53 | GPIO61_LCD_LDD_3, | ||
54 | GPIO62_LCD_LDD_4, | ||
55 | GPIO63_LCD_LDD_5, | ||
56 | GPIO64_LCD_LDD_6, | ||
57 | GPIO65_LCD_LDD_7, | ||
58 | GPIO66_LCD_LDD_8, | ||
59 | GPIO67_LCD_LDD_9, | ||
60 | GPIO68_LCD_LDD_10, | ||
61 | GPIO69_LCD_LDD_11, | ||
62 | GPIO70_LCD_LDD_12, | ||
63 | GPIO71_LCD_LDD_13, | ||
64 | GPIO72_LCD_LDD_14, | ||
65 | GPIO73_LCD_LDD_15, | ||
66 | GPIO74_LCD_FCLK, | ||
67 | GPIO75_LCD_LCLK, | ||
68 | GPIO76_LCD_PCLK, | ||
69 | 51 | ||
70 | /* BTUART */ | 52 | /* BTUART */ |
71 | GPIO42_BTUART_RXD, | 53 | GPIO42_BTUART_RXD, |
diff --git a/arch/arm/mach-pxa/imote2.c b/arch/arm/mach-pxa/imote2.c index 5b0862df61a..b2f878bd460 100644 --- a/arch/arm/mach-pxa/imote2.c +++ b/arch/arm/mach-pxa/imote2.c | |||
@@ -64,7 +64,6 @@ static unsigned long imote2_pin_config[] __initdata = { | |||
64 | GPIO116_GPIO, /* CC_CCA */ | 64 | GPIO116_GPIO, /* CC_CCA */ |
65 | GPIO0_GPIO, /* CC_FIFOP */ | 65 | GPIO0_GPIO, /* CC_FIFOP */ |
66 | GPIO16_GPIO, /* CCSFD */ | 66 | GPIO16_GPIO, /* CCSFD */ |
67 | GPIO39_GPIO, /* CSn */ | ||
68 | GPIO115_GPIO, /* Power enable */ | 67 | GPIO115_GPIO, /* Power enable */ |
69 | 68 | ||
70 | /* I2C */ | 69 | /* I2C */ |
@@ -72,7 +71,7 @@ static unsigned long imote2_pin_config[] __initdata = { | |||
72 | GPIO118_I2C_SDA, | 71 | GPIO118_I2C_SDA, |
73 | 72 | ||
74 | /* SSP 3 - 802.15.4 radio */ | 73 | /* SSP 3 - 802.15.4 radio */ |
75 | GPIO39_GPIO, /* Chip Select */ | 74 | GPIO39_GPIO, /* Chip Select */ |
76 | GPIO34_SSP3_SCLK, | 75 | GPIO34_SSP3_SCLK, |
77 | GPIO35_SSP3_TXD, | 76 | GPIO35_SSP3_TXD, |
78 | GPIO41_SSP3_RXD, | 77 | GPIO41_SSP3_RXD, |
diff --git a/arch/arm/mach-pxa/include/mach/balloon3.h b/arch/arm/mach-pxa/include/mach/balloon3.h index bfec09b1814..1a741065045 100644 --- a/arch/arm/mach-pxa/include/mach/balloon3.h +++ b/arch/arm/mach-pxa/include/mach/balloon3.h | |||
@@ -129,6 +129,16 @@ enum balloon3_features { | |||
129 | #define CPLD_AROUTING_LOONR2INT_BIT 6 | 129 | #define CPLD_AROUTING_LOONR2INT_BIT 6 |
130 | #define CPLD_AROUTING_LOONR2EXT_BIT 7 | 130 | #define CPLD_AROUTING_LOONR2EXT_BIT 7 |
131 | 131 | ||
132 | /* Balloon3 Interrupts */ | ||
133 | #define BALLOON3_IRQ(x) (IRQ_BOARD_START + (x)) | ||
134 | |||
135 | #define BALLOON3_BP_CF_NRDY_IRQ BALLOON3_IRQ(0) | ||
136 | #define BALLOON3_BP_NSTSCHG_IRQ BALLOON3_IRQ(1) | ||
137 | |||
138 | #define BALLOON3_AUX_NIRQ IRQ_GPIO(BALLOON3_GPIO_AUX_NIRQ) | ||
139 | #define BALLOON3_CODEC_IRQ IRQ_GPIO(BALLOON3_GPIO_CODEC_IRQ) | ||
140 | #define BALLOON3_S0_CD_IRQ IRQ_GPIO(BALLOON3_GPIO_S0_CD) | ||
141 | |||
132 | extern int balloon3_has(enum balloon3_features feature); | 142 | extern int balloon3_has(enum balloon3_features feature); |
133 | 143 | ||
134 | #endif | 144 | #endif |
diff --git a/arch/arm/mach-pxa/include/mach/irqs.h b/arch/arm/mach-pxa/include/mach/irqs.h index 3677a9af9c8..ffc8314520f 100644 --- a/arch/arm/mach-pxa/include/mach/irqs.h +++ b/arch/arm/mach-pxa/include/mach/irqs.h | |||
@@ -135,82 +135,6 @@ | |||
135 | #define IRQ_BOARD_END (IRQ_BOARD_START + 16) | 135 | #define IRQ_BOARD_END (IRQ_BOARD_START + 16) |
136 | #endif | 136 | #endif |
137 | 137 | ||
138 | #define IRQ_SA1111_START (IRQ_BOARD_END) | ||
139 | #define IRQ_GPAIN0 (IRQ_BOARD_END + 0) | ||
140 | #define IRQ_GPAIN1 (IRQ_BOARD_END + 1) | ||
141 | #define IRQ_GPAIN2 (IRQ_BOARD_END + 2) | ||
142 | #define IRQ_GPAIN3 (IRQ_BOARD_END + 3) | ||
143 | #define IRQ_GPBIN0 (IRQ_BOARD_END + 4) | ||
144 | #define IRQ_GPBIN1 (IRQ_BOARD_END + 5) | ||
145 | #define IRQ_GPBIN2 (IRQ_BOARD_END + 6) | ||
146 | #define IRQ_GPBIN3 (IRQ_BOARD_END + 7) | ||
147 | #define IRQ_GPBIN4 (IRQ_BOARD_END + 8) | ||
148 | #define IRQ_GPBIN5 (IRQ_BOARD_END + 9) | ||
149 | #define IRQ_GPCIN0 (IRQ_BOARD_END + 10) | ||
150 | #define IRQ_GPCIN1 (IRQ_BOARD_END + 11) | ||
151 | #define IRQ_GPCIN2 (IRQ_BOARD_END + 12) | ||
152 | #define IRQ_GPCIN3 (IRQ_BOARD_END + 13) | ||
153 | #define IRQ_GPCIN4 (IRQ_BOARD_END + 14) | ||
154 | #define IRQ_GPCIN5 (IRQ_BOARD_END + 15) | ||
155 | #define IRQ_GPCIN6 (IRQ_BOARD_END + 16) | ||
156 | #define IRQ_GPCIN7 (IRQ_BOARD_END + 17) | ||
157 | #define IRQ_MSTXINT (IRQ_BOARD_END + 18) | ||
158 | #define IRQ_MSRXINT (IRQ_BOARD_END + 19) | ||
159 | #define IRQ_MSSTOPERRINT (IRQ_BOARD_END + 20) | ||
160 | #define IRQ_TPTXINT (IRQ_BOARD_END + 21) | ||
161 | #define IRQ_TPRXINT (IRQ_BOARD_END + 22) | ||
162 | #define IRQ_TPSTOPERRINT (IRQ_BOARD_END + 23) | ||
163 | #define SSPXMTINT (IRQ_BOARD_END + 24) | ||
164 | #define SSPRCVINT (IRQ_BOARD_END + 25) | ||
165 | #define SSPROR (IRQ_BOARD_END + 26) | ||
166 | #define AUDXMTDMADONEA (IRQ_BOARD_END + 32) | ||
167 | #define AUDRCVDMADONEA (IRQ_BOARD_END + 33) | ||
168 | #define AUDXMTDMADONEB (IRQ_BOARD_END + 34) | ||
169 | #define AUDRCVDMADONEB (IRQ_BOARD_END + 35) | ||
170 | #define AUDTFSR (IRQ_BOARD_END + 36) | ||
171 | #define AUDRFSR (IRQ_BOARD_END + 37) | ||
172 | #define AUDTUR (IRQ_BOARD_END + 38) | ||
173 | #define AUDROR (IRQ_BOARD_END + 39) | ||
174 | #define AUDDTS (IRQ_BOARD_END + 40) | ||
175 | #define AUDRDD (IRQ_BOARD_END + 41) | ||
176 | #define AUDSTO (IRQ_BOARD_END + 42) | ||
177 | #define IRQ_USBPWR (IRQ_BOARD_END + 43) | ||
178 | #define IRQ_HCIM (IRQ_BOARD_END + 44) | ||
179 | #define IRQ_HCIBUFFACC (IRQ_BOARD_END + 45) | ||
180 | #define IRQ_HCIRMTWKP (IRQ_BOARD_END + 46) | ||
181 | #define IRQ_NHCIMFCIR (IRQ_BOARD_END + 47) | ||
182 | #define IRQ_USB_PORT_RESUME (IRQ_BOARD_END + 48) | ||
183 | #define IRQ_S0_READY_NINT (IRQ_BOARD_END + 49) | ||
184 | #define IRQ_S1_READY_NINT (IRQ_BOARD_END + 50) | ||
185 | #define IRQ_S0_CD_VALID (IRQ_BOARD_END + 51) | ||
186 | #define IRQ_S1_CD_VALID (IRQ_BOARD_END + 52) | ||
187 | #define IRQ_S0_BVD1_STSCHG (IRQ_BOARD_END + 53) | ||
188 | #define IRQ_S1_BVD1_STSCHG (IRQ_BOARD_END + 54) | ||
189 | |||
190 | #define IRQ_LOCOMO_START (IRQ_BOARD_END) | ||
191 | #define IRQ_LOCOMO_KEY (IRQ_BOARD_END + 0) | ||
192 | #define IRQ_LOCOMO_GPIO0 (IRQ_BOARD_END + 1) | ||
193 | #define IRQ_LOCOMO_GPIO1 (IRQ_BOARD_END + 2) | ||
194 | #define IRQ_LOCOMO_GPIO2 (IRQ_BOARD_END + 3) | ||
195 | #define IRQ_LOCOMO_GPIO3 (IRQ_BOARD_END + 4) | ||
196 | #define IRQ_LOCOMO_GPIO4 (IRQ_BOARD_END + 5) | ||
197 | #define IRQ_LOCOMO_GPIO5 (IRQ_BOARD_END + 6) | ||
198 | #define IRQ_LOCOMO_GPIO6 (IRQ_BOARD_END + 7) | ||
199 | #define IRQ_LOCOMO_GPIO7 (IRQ_BOARD_END + 8) | ||
200 | #define IRQ_LOCOMO_GPIO8 (IRQ_BOARD_END + 9) | ||
201 | #define IRQ_LOCOMO_GPIO9 (IRQ_BOARD_END + 10) | ||
202 | #define IRQ_LOCOMO_GPIO10 (IRQ_BOARD_END + 11) | ||
203 | #define IRQ_LOCOMO_GPIO11 (IRQ_BOARD_END + 12) | ||
204 | #define IRQ_LOCOMO_GPIO12 (IRQ_BOARD_END + 13) | ||
205 | #define IRQ_LOCOMO_GPIO13 (IRQ_BOARD_END + 14) | ||
206 | #define IRQ_LOCOMO_GPIO14 (IRQ_BOARD_END + 15) | ||
207 | #define IRQ_LOCOMO_GPIO15 (IRQ_BOARD_END + 16) | ||
208 | #define IRQ_LOCOMO_LT (IRQ_BOARD_END + 17) | ||
209 | #define IRQ_LOCOMO_SPI_RFR (IRQ_BOARD_END + 18) | ||
210 | #define IRQ_LOCOMO_SPI_RFW (IRQ_BOARD_END + 19) | ||
211 | #define IRQ_LOCOMO_SPI_OVRN (IRQ_BOARD_END + 20) | ||
212 | #define IRQ_LOCOMO_SPI_TEND (IRQ_BOARD_END + 21) | ||
213 | |||
214 | /* | 138 | /* |
215 | * Figure out the MAX IRQ number. | 139 | * Figure out the MAX IRQ number. |
216 | * | 140 | * |
@@ -219,89 +143,16 @@ | |||
219 | * Otherwise, we have the standard IRQs only. | 143 | * Otherwise, we have the standard IRQs only. |
220 | */ | 144 | */ |
221 | #ifdef CONFIG_SA1111 | 145 | #ifdef CONFIG_SA1111 |
222 | #define NR_IRQS (IRQ_S1_BVD1_STSCHG + 1) | 146 | #define NR_IRQS (IRQ_BOARD_END + 55) |
223 | #elif defined(CONFIG_SHARP_LOCOMO) | ||
224 | #define NR_IRQS (IRQ_LOCOMO_SPI_TEND + 1) | ||
225 | #elif defined(CONFIG_PXA_HAVE_BOARD_IRQS) | 147 | #elif defined(CONFIG_PXA_HAVE_BOARD_IRQS) |
226 | #define NR_IRQS (IRQ_BOARD_END) | 148 | #define NR_IRQS (IRQ_BOARD_END) |
227 | #else | 149 | #else |
228 | #define NR_IRQS (IRQ_BOARD_START) | 150 | #define NR_IRQS (IRQ_BOARD_START) |
229 | #endif | 151 | #endif |
230 | 152 | ||
231 | /* | ||
232 | * Board specific IRQs. Define them here. | ||
233 | * Do not surround them with ifdefs. | ||
234 | */ | ||
235 | #define LUBBOCK_IRQ(x) (IRQ_BOARD_START + (x)) | ||
236 | #define LUBBOCK_SD_IRQ LUBBOCK_IRQ(0) | ||
237 | #define LUBBOCK_SA1111_IRQ LUBBOCK_IRQ(1) | ||
238 | #define LUBBOCK_USB_IRQ LUBBOCK_IRQ(2) /* usb connect */ | ||
239 | #define LUBBOCK_ETH_IRQ LUBBOCK_IRQ(3) | ||
240 | #define LUBBOCK_UCB1400_IRQ LUBBOCK_IRQ(4) | ||
241 | #define LUBBOCK_BB_IRQ LUBBOCK_IRQ(5) | ||
242 | #define LUBBOCK_USB_DISC_IRQ LUBBOCK_IRQ(6) /* usb disconnect */ | ||
243 | #define LUBBOCK_LAST_IRQ LUBBOCK_IRQ(6) | ||
244 | |||
245 | #define LPD270_IRQ(x) (IRQ_BOARD_START + (x)) | ||
246 | #define LPD270_USBC_IRQ LPD270_IRQ(2) | ||
247 | #define LPD270_ETHERNET_IRQ LPD270_IRQ(3) | ||
248 | #define LPD270_AC97_IRQ LPD270_IRQ(4) | ||
249 | |||
250 | #define MAINSTONE_IRQ(x) (IRQ_BOARD_START + (x)) | ||
251 | #define MAINSTONE_MMC_IRQ MAINSTONE_IRQ(0) | ||
252 | #define MAINSTONE_USIM_IRQ MAINSTONE_IRQ(1) | ||
253 | #define MAINSTONE_USBC_IRQ MAINSTONE_IRQ(2) | ||
254 | #define MAINSTONE_ETHERNET_IRQ MAINSTONE_IRQ(3) | ||
255 | #define MAINSTONE_AC97_IRQ MAINSTONE_IRQ(4) | ||
256 | #define MAINSTONE_PEN_IRQ MAINSTONE_IRQ(5) | ||
257 | #define MAINSTONE_MSINS_IRQ MAINSTONE_IRQ(6) | ||
258 | #define MAINSTONE_EXBRD_IRQ MAINSTONE_IRQ(7) | ||
259 | #define MAINSTONE_S0_CD_IRQ MAINSTONE_IRQ(9) | ||
260 | #define MAINSTONE_S0_STSCHG_IRQ MAINSTONE_IRQ(10) | ||
261 | #define MAINSTONE_S0_IRQ MAINSTONE_IRQ(11) | ||
262 | #define MAINSTONE_S1_CD_IRQ MAINSTONE_IRQ(13) | ||
263 | #define MAINSTONE_S1_STSCHG_IRQ MAINSTONE_IRQ(14) | ||
264 | #define MAINSTONE_S1_IRQ MAINSTONE_IRQ(15) | ||
265 | |||
266 | /* Balloon3 Interrupts */ | ||
267 | #define BALLOON3_IRQ(x) (IRQ_BOARD_START + (x)) | ||
268 | |||
269 | #define BALLOON3_BP_CF_NRDY_IRQ BALLOON3_IRQ(0) | ||
270 | #define BALLOON3_BP_NSTSCHG_IRQ BALLOON3_IRQ(1) | ||
271 | |||
272 | #define BALLOON3_AUX_NIRQ IRQ_GPIO(BALLOON3_GPIO_AUX_NIRQ) | ||
273 | #define BALLOON3_CODEC_IRQ IRQ_GPIO(BALLOON3_GPIO_CODEC_IRQ) | ||
274 | #define BALLOON3_S0_CD_IRQ IRQ_GPIO(BALLOON3_GPIO_S0_CD) | ||
275 | |||
276 | /* LoCoMo Interrupts (CONFIG_SHARP_LOCOMO) */ | ||
277 | #define IRQ_LOCOMO_KEY_BASE (IRQ_BOARD_START + 0) | ||
278 | #define IRQ_LOCOMO_GPIO_BASE (IRQ_BOARD_START + 1) | ||
279 | #define IRQ_LOCOMO_LT_BASE (IRQ_BOARD_START + 2) | ||
280 | #define IRQ_LOCOMO_SPI_BASE (IRQ_BOARD_START + 3) | ||
281 | |||
282 | /* phyCORE-PXA270 (PCM027) Interrupts */ | ||
283 | #define PCM027_IRQ(x) (IRQ_BOARD_START + (x)) | ||
284 | #define PCM027_BTDET_IRQ PCM027_IRQ(0) | ||
285 | #define PCM027_FF_RI_IRQ PCM027_IRQ(1) | ||
286 | #define PCM027_MMCDET_IRQ PCM027_IRQ(2) | ||
287 | #define PCM027_PM_5V_IRQ PCM027_IRQ(3) | ||
288 | |||
289 | /* ITE8152 irqs */ | ||
290 | /* add IT8152 IRQs beyond BOARD_END */ | 153 | /* add IT8152 IRQs beyond BOARD_END */ |
291 | #ifdef CONFIG_PCI_HOST_ITE8152 | 154 | #ifdef CONFIG_PCI_HOST_ITE8152 |
292 | #define IT8152_IRQ(x) (IRQ_BOARD_END + (x)) | 155 | #define IT8152_LAST_IRQ (IRQ_BOARD_END + 40) |
293 | |||
294 | /* IRQ-sources in 3 groups - local devices, LPC (serial), and external PCI */ | ||
295 | #define IT8152_LD_IRQ_COUNT 9 | ||
296 | #define IT8152_LP_IRQ_COUNT 16 | ||
297 | #define IT8152_PD_IRQ_COUNT 15 | ||
298 | |||
299 | /* Priorities: */ | ||
300 | #define IT8152_PD_IRQ(i) IT8152_IRQ(i) | ||
301 | #define IT8152_LP_IRQ(i) (IT8152_IRQ(i) + IT8152_PD_IRQ_COUNT) | ||
302 | #define IT8152_LD_IRQ(i) (IT8152_IRQ(i) + IT8152_PD_IRQ_COUNT + IT8152_LP_IRQ_COUNT) | ||
303 | |||
304 | #define IT8152_LAST_IRQ IT8152_LD_IRQ(IT8152_LD_IRQ_COUNT - 1) | ||
305 | 156 | ||
306 | #if NR_IRQS < (IT8152_LAST_IRQ+1) | 157 | #if NR_IRQS < (IT8152_LAST_IRQ+1) |
307 | #undef NR_IRQS | 158 | #undef NR_IRQS |
diff --git a/arch/arm/mach-pxa/include/mach/lpd270.h b/arch/arm/mach-pxa/include/mach/lpd270.h index f89fb715266..0e6440c8168 100644 --- a/arch/arm/mach-pxa/include/mach/lpd270.h +++ b/arch/arm/mach-pxa/include/mach/lpd270.h | |||
@@ -34,5 +34,9 @@ | |||
34 | #define LPD270_INT_ETHERNET (1 << 3) /* Ethernet controller IRQ */ | 34 | #define LPD270_INT_ETHERNET (1 << 3) /* Ethernet controller IRQ */ |
35 | #define LPD270_INT_USBC (1 << 2) /* USB client cable detection IRQ */ | 35 | #define LPD270_INT_USBC (1 << 2) /* USB client cable detection IRQ */ |
36 | 36 | ||
37 | #define LPD270_IRQ(x) (IRQ_BOARD_START + (x)) | ||
38 | #define LPD270_USBC_IRQ LPD270_IRQ(2) | ||
39 | #define LPD270_ETHERNET_IRQ LPD270_IRQ(3) | ||
40 | #define LPD270_AC97_IRQ LPD270_IRQ(4) | ||
37 | 41 | ||
38 | #endif | 42 | #endif |
diff --git a/arch/arm/mach-pxa/include/mach/lubbock.h b/arch/arm/mach-pxa/include/mach/lubbock.h index 751b74811d0..a0d4247f08f 100644 --- a/arch/arm/mach-pxa/include/mach/lubbock.h +++ b/arch/arm/mach-pxa/include/mach/lubbock.h | |||
@@ -34,6 +34,17 @@ | |||
34 | #define LUB_IRQ_SET_CLR __LUB_REG(LUBBOCK_FPGA_PHYS + 0x0d0) | 34 | #define LUB_IRQ_SET_CLR __LUB_REG(LUBBOCK_FPGA_PHYS + 0x0d0) |
35 | #define LUB_GP __LUB_REG(LUBBOCK_FPGA_PHYS + 0x100) | 35 | #define LUB_GP __LUB_REG(LUBBOCK_FPGA_PHYS + 0x100) |
36 | 36 | ||
37 | /* Board specific IRQs */ | ||
38 | #define LUBBOCK_IRQ(x) (IRQ_BOARD_START + (x)) | ||
39 | #define LUBBOCK_SD_IRQ LUBBOCK_IRQ(0) | ||
40 | #define LUBBOCK_SA1111_IRQ LUBBOCK_IRQ(1) | ||
41 | #define LUBBOCK_USB_IRQ LUBBOCK_IRQ(2) /* usb connect */ | ||
42 | #define LUBBOCK_ETH_IRQ LUBBOCK_IRQ(3) | ||
43 | #define LUBBOCK_UCB1400_IRQ LUBBOCK_IRQ(4) | ||
44 | #define LUBBOCK_BB_IRQ LUBBOCK_IRQ(5) | ||
45 | #define LUBBOCK_USB_DISC_IRQ LUBBOCK_IRQ(6) /* usb disconnect */ | ||
46 | #define LUBBOCK_LAST_IRQ LUBBOCK_IRQ(6) | ||
47 | |||
37 | #ifndef __ASSEMBLY__ | 48 | #ifndef __ASSEMBLY__ |
38 | extern void lubbock_set_misc_wr(unsigned int mask, unsigned int set); | 49 | extern void lubbock_set_misc_wr(unsigned int mask, unsigned int set); |
39 | #endif | 50 | #endif |
diff --git a/arch/arm/mach-pxa/include/mach/mainstone.h b/arch/arm/mach-pxa/include/mach/mainstone.h index 3461c4302ff..86e623abd64 100644 --- a/arch/arm/mach-pxa/include/mach/mainstone.h +++ b/arch/arm/mach-pxa/include/mach/mainstone.h | |||
@@ -117,4 +117,21 @@ | |||
117 | #define MST_PCMCIA_PWR_VCC_33 0x8 /* voltage VCC = 3.3V */ | 117 | #define MST_PCMCIA_PWR_VCC_33 0x8 /* voltage VCC = 3.3V */ |
118 | #define MST_PCMCIA_PWR_VCC_50 0x4 /* voltage VCC = 5.0V */ | 118 | #define MST_PCMCIA_PWR_VCC_50 0x4 /* voltage VCC = 5.0V */ |
119 | 119 | ||
120 | /* board specific IRQs */ | ||
121 | #define MAINSTONE_IRQ(x) (IRQ_BOARD_START + (x)) | ||
122 | #define MAINSTONE_MMC_IRQ MAINSTONE_IRQ(0) | ||
123 | #define MAINSTONE_USIM_IRQ MAINSTONE_IRQ(1) | ||
124 | #define MAINSTONE_USBC_IRQ MAINSTONE_IRQ(2) | ||
125 | #define MAINSTONE_ETHERNET_IRQ MAINSTONE_IRQ(3) | ||
126 | #define MAINSTONE_AC97_IRQ MAINSTONE_IRQ(4) | ||
127 | #define MAINSTONE_PEN_IRQ MAINSTONE_IRQ(5) | ||
128 | #define MAINSTONE_MSINS_IRQ MAINSTONE_IRQ(6) | ||
129 | #define MAINSTONE_EXBRD_IRQ MAINSTONE_IRQ(7) | ||
130 | #define MAINSTONE_S0_CD_IRQ MAINSTONE_IRQ(9) | ||
131 | #define MAINSTONE_S0_STSCHG_IRQ MAINSTONE_IRQ(10) | ||
132 | #define MAINSTONE_S0_IRQ MAINSTONE_IRQ(11) | ||
133 | #define MAINSTONE_S1_CD_IRQ MAINSTONE_IRQ(13) | ||
134 | #define MAINSTONE_S1_STSCHG_IRQ MAINSTONE_IRQ(14) | ||
135 | #define MAINSTONE_S1_IRQ MAINSTONE_IRQ(15) | ||
136 | |||
120 | #endif | 137 | #endif |
diff --git a/arch/arm/mach-pxa/include/mach/mfp-pxa25x.h b/arch/arm/mach-pxa/include/mach/mfp-pxa25x.h index b13dc0269a6..cafadc33dfd 100644 --- a/arch/arm/mach-pxa/include/mach/mfp-pxa25x.h +++ b/arch/arm/mach-pxa/include/mach/mfp-pxa25x.h | |||
@@ -169,7 +169,6 @@ | |||
169 | #define GPIO86_nSDCS2 MFP_CFG_OUT(GPIO86, AF0, DRIVE_HIGH) | 169 | #define GPIO86_nSDCS2 MFP_CFG_OUT(GPIO86, AF0, DRIVE_HIGH) |
170 | #define GPIO87_nSDCS3 MFP_CFG_OUT(GPIO87, AF0, DRIVE_HIGH) | 170 | #define GPIO87_nSDCS3 MFP_CFG_OUT(GPIO87, AF0, DRIVE_HIGH) |
171 | #define GPIO88_RDnWR MFP_CFG_OUT(GPIO88, AF0, DRIVE_HIGH) | 171 | #define GPIO88_RDnWR MFP_CFG_OUT(GPIO88, AF0, DRIVE_HIGH) |
172 | #define GPIO89_nACRESET MFP_CFG_OUT(GPIO89, AF0, DRIVE_HIGH) | ||
173 | 172 | ||
174 | /* USB */ | 173 | /* USB */ |
175 | #define GPIO9_USB_RCV MFP_CFG_IN(GPIO9, AF1) | 174 | #define GPIO9_USB_RCV MFP_CFG_IN(GPIO9, AF1) |
@@ -186,6 +185,41 @@ | |||
186 | #define GPIO30_ASSP_TXD MFP_CFG_OUT(GPIO30, AF3, DRIVE_LOW) | 185 | #define GPIO30_ASSP_TXD MFP_CFG_OUT(GPIO30, AF3, DRIVE_LOW) |
187 | #define GPIO31_ASSP_SFRM_IN MFP_CFG_IN(GPIO31, AF1) | 186 | #define GPIO31_ASSP_SFRM_IN MFP_CFG_IN(GPIO31, AF1) |
188 | #define GPIO31_ASSP_SFRM_OUT MFP_CFG_OUT(GPIO31, AF3, DRIVE_LOW) | 187 | #define GPIO31_ASSP_SFRM_OUT MFP_CFG_OUT(GPIO31, AF3, DRIVE_LOW) |
189 | #endif | 188 | |
189 | /* AC97 */ | ||
190 | #define GPIO89_AC97_nRESET MFP_CFG_OUT(GPIO89, AF0, DRIVE_HIGH) | ||
191 | #endif /* CONFIG_CPU_PXA26x */ | ||
192 | |||
193 | /* commonly used pin configurations */ | ||
194 | #define GPIOxx_LCD_16BPP \ | ||
195 | GPIO58_LCD_LDD_0, \ | ||
196 | GPIO59_LCD_LDD_1, \ | ||
197 | GPIO60_LCD_LDD_2, \ | ||
198 | GPIO61_LCD_LDD_3, \ | ||
199 | GPIO62_LCD_LDD_4, \ | ||
200 | GPIO63_LCD_LDD_5, \ | ||
201 | GPIO64_LCD_LDD_6, \ | ||
202 | GPIO65_LCD_LDD_7, \ | ||
203 | GPIO66_LCD_LDD_8, \ | ||
204 | GPIO67_LCD_LDD_9, \ | ||
205 | GPIO68_LCD_LDD_10, \ | ||
206 | GPIO69_LCD_LDD_11, \ | ||
207 | GPIO70_LCD_LDD_12, \ | ||
208 | GPIO71_LCD_LDD_13, \ | ||
209 | GPIO72_LCD_LDD_14, \ | ||
210 | GPIO73_LCD_LDD_15 | ||
211 | |||
212 | #define GPIOxx_LCD_DSTN_16BPP \ | ||
213 | GPIOxx_LCD_16BPP, \ | ||
214 | GPIO74_LCD_FCLK, \ | ||
215 | GPIO75_LCD_LCLK, \ | ||
216 | GPIO76_LCD_PCLK | ||
217 | |||
218 | #define GPIOxx_LCD_TFT_16BPP \ | ||
219 | GPIOxx_LCD_16BPP, \ | ||
220 | GPIO74_LCD_FCLK, \ | ||
221 | GPIO75_LCD_LCLK, \ | ||
222 | GPIO76_LCD_PCLK, \ | ||
223 | GPIO77_LCD_BIAS | ||
190 | 224 | ||
191 | #endif /* __ASM_ARCH_MFP_PXA25X_H */ | 225 | #endif /* __ASM_ARCH_MFP_PXA25X_H */ |
diff --git a/arch/arm/mach-pxa/include/mach/mfp-pxa27x.h b/arch/arm/mach-pxa/include/mach/mfp-pxa27x.h index 6543c05f47e..ec0f0b0b674 100644 --- a/arch/arm/mach-pxa/include/mach/mfp-pxa27x.h +++ b/arch/arm/mach-pxa/include/mach/mfp-pxa27x.h | |||
@@ -434,5 +434,32 @@ | |||
434 | #define GPIO112_nMSINS MFP_CFG_IN(GPIO112, AF2) | 434 | #define GPIO112_nMSINS MFP_CFG_IN(GPIO112, AF2) |
435 | #define GPIO32_MSSCLK MFP_CFG_OUT(GPIO32, AF1, DRIVE_LOW) | 435 | #define GPIO32_MSSCLK MFP_CFG_OUT(GPIO32, AF1, DRIVE_LOW) |
436 | 436 | ||
437 | /* commonly used pin configurations */ | ||
438 | #define GPIOxx_LCD_16BPP \ | ||
439 | GPIO58_LCD_LDD_0, \ | ||
440 | GPIO59_LCD_LDD_1, \ | ||
441 | GPIO60_LCD_LDD_2, \ | ||
442 | GPIO61_LCD_LDD_3, \ | ||
443 | GPIO62_LCD_LDD_4, \ | ||
444 | GPIO63_LCD_LDD_5, \ | ||
445 | GPIO64_LCD_LDD_6, \ | ||
446 | GPIO65_LCD_LDD_7, \ | ||
447 | GPIO66_LCD_LDD_8, \ | ||
448 | GPIO67_LCD_LDD_9, \ | ||
449 | GPIO68_LCD_LDD_10, \ | ||
450 | GPIO69_LCD_LDD_11, \ | ||
451 | GPIO70_LCD_LDD_12, \ | ||
452 | GPIO71_LCD_LDD_13, \ | ||
453 | GPIO72_LCD_LDD_14, \ | ||
454 | GPIO73_LCD_LDD_15 | ||
455 | |||
456 | #define GPIOxx_LCD_TFT_16BPP \ | ||
457 | GPIOxx_LCD_16BPP, \ | ||
458 | GPIO74_LCD_FCLK, \ | ||
459 | GPIO75_LCD_LCLK, \ | ||
460 | GPIO76_LCD_PCLK, \ | ||
461 | GPIO77_LCD_BIAS | ||
462 | |||
463 | |||
437 | extern int keypad_set_wake(unsigned int on); | 464 | extern int keypad_set_wake(unsigned int on); |
438 | #endif /* __ASM_ARCH_MFP_PXA27X_H */ | 465 | #endif /* __ASM_ARCH_MFP_PXA27X_H */ |
diff --git a/arch/arm/mach-pxa/include/mach/mxm8x10.h b/arch/arm/mach-pxa/include/mach/mxm8x10.h new file mode 100644 index 00000000000..ffa15665a41 --- /dev/null +++ b/arch/arm/mach-pxa/include/mach/mxm8x10.h | |||
@@ -0,0 +1,21 @@ | |||
1 | #ifndef __MACH_MXM_8X10_H | ||
2 | #define __MACH_MXM_8X10_H | ||
3 | |||
4 | #define MXM_8X10_ETH_PHYS 0x13000000 | ||
5 | |||
6 | #if defined(CONFIG_MMC) | ||
7 | |||
8 | #define MXM_8X10_SD_nCD (72) | ||
9 | #define MXM_8X10_SD_WP (84) | ||
10 | |||
11 | extern void mxm_8x10_mmc_init(void); | ||
12 | #else | ||
13 | static inline void mxm_8x10_mmc_init(void) {} | ||
14 | #endif | ||
15 | |||
16 | extern void mxm_8x10_usb_host_init(void); | ||
17 | extern void mxm_8x10_ac97_init(void); | ||
18 | |||
19 | extern void mxm_8x10_barebones_init(void); | ||
20 | |||
21 | #endif /* __MACH_MXM_8X10_H */ | ||
diff --git a/arch/arm/mach-pxa/include/mach/pcm027.h b/arch/arm/mach-pxa/include/mach/pcm027.h index 4dcd2e8baa6..04083263167 100644 --- a/arch/arm/mach-pxa/include/mach/pcm027.h +++ b/arch/arm/mach-pxa/include/mach/pcm027.h | |||
@@ -23,6 +23,13 @@ | |||
23 | * Definitions of CPU card resources only | 23 | * Definitions of CPU card resources only |
24 | */ | 24 | */ |
25 | 25 | ||
26 | /* phyCORE-PXA270 (PCM027) Interrupts */ | ||
27 | #define PCM027_IRQ(x) (IRQ_BOARD_START + (x)) | ||
28 | #define PCM027_BTDET_IRQ PCM027_IRQ(0) | ||
29 | #define PCM027_FF_RI_IRQ PCM027_IRQ(1) | ||
30 | #define PCM027_MMCDET_IRQ PCM027_IRQ(2) | ||
31 | #define PCM027_PM_5V_IRQ PCM027_IRQ(3) | ||
32 | |||
26 | /* I2C RTC */ | 33 | /* I2C RTC */ |
27 | #define PCM027_RTC_IRQ_GPIO 0 | 34 | #define PCM027_RTC_IRQ_GPIO 0 |
28 | #define PCM027_RTC_IRQ IRQ_GPIO(PCM027_RTC_IRQ_GPIO) | 35 | #define PCM027_RTC_IRQ IRQ_GPIO(PCM027_RTC_IRQ_GPIO) |
diff --git a/arch/arm/mach-pxa/include/mach/ssp.h b/arch/arm/mach-pxa/include/mach/ssp.h index cb5cb766f0f..be1be5b6db5 100644 --- a/arch/arm/mach-pxa/include/mach/ssp.h +++ b/arch/arm/mach-pxa/include/mach/ssp.h | |||
@@ -46,6 +46,7 @@ struct ssp_device { | |||
46 | int drcmr_tx; | 46 | int drcmr_tx; |
47 | }; | 47 | }; |
48 | 48 | ||
49 | #ifdef CONFIG_PXA_SSP_LEGACY | ||
49 | /* | 50 | /* |
50 | * SSP initialisation flags | 51 | * SSP initialisation flags |
51 | */ | 52 | */ |
@@ -78,6 +79,7 @@ void ssp_restore_state(struct ssp_dev *dev, struct ssp_state *ssp); | |||
78 | int ssp_init(struct ssp_dev *dev, u32 port, u32 init_flags); | 79 | int ssp_init(struct ssp_dev *dev, u32 port, u32 init_flags); |
79 | int ssp_config(struct ssp_dev *dev, u32 mode, u32 flags, u32 psp_flags, u32 speed); | 80 | int ssp_config(struct ssp_dev *dev, u32 mode, u32 flags, u32 psp_flags, u32 speed); |
80 | void ssp_exit(struct ssp_dev *dev); | 81 | void ssp_exit(struct ssp_dev *dev); |
82 | #endif /* CONFIG_PXA_SSP_LEGACY */ | ||
81 | 83 | ||
82 | /** | 84 | /** |
83 | * ssp_write_reg - Write to a SSP register | 85 | * ssp_write_reg - Write to a SSP register |
diff --git a/arch/arm/mach-pxa/include/mach/uncompress.h b/arch/arm/mach-pxa/include/mach/uncompress.h index 237734b5b1b..5ef91d9d17e 100644 --- a/arch/arm/mach-pxa/include/mach/uncompress.h +++ b/arch/arm/mach-pxa/include/mach/uncompress.h | |||
@@ -10,20 +10,41 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/serial_reg.h> | 12 | #include <linux/serial_reg.h> |
13 | #include <mach/regs-uart.h> | ||
14 | #include <asm/mach-types.h> | 13 | #include <asm/mach-types.h> |
15 | 14 | ||
16 | #define __REG(x) ((volatile unsigned long *)x) | 15 | #define FFUART_BASE (0x40100000) |
16 | #define BTUART_BASE (0x40200000) | ||
17 | #define STUART_BASE (0x40700000) | ||
17 | 18 | ||
18 | static volatile unsigned long *UART = FFUART; | 19 | static unsigned long uart_base = FFUART_BASE; |
20 | static unsigned int uart_shift = 2; | ||
21 | static unsigned int uart_is_pxa = 1; | ||
22 | |||
23 | static inline unsigned char uart_read(int offset) | ||
24 | { | ||
25 | return *(volatile unsigned char *)(uart_base + (offset << uart_shift)); | ||
26 | } | ||
27 | |||
28 | static inline void uart_write(unsigned char val, int offset) | ||
29 | { | ||
30 | *(volatile unsigned char *)(uart_base + (offset << uart_shift)) = val; | ||
31 | } | ||
32 | |||
33 | static inline int uart_is_enabled(void) | ||
34 | { | ||
35 | /* assume enabled by default for non-PXA uarts */ | ||
36 | return uart_is_pxa ? uart_read(UART_IER) & UART_IER_UUE : 1; | ||
37 | } | ||
19 | 38 | ||
20 | static inline void putc(char c) | 39 | static inline void putc(char c) |
21 | { | 40 | { |
22 | if (!(UART[UART_IER] & IER_UUE)) | 41 | if (!uart_is_enabled()) |
23 | return; | 42 | return; |
24 | while (!(UART[UART_LSR] & LSR_TDRQ)) | 43 | |
44 | while (!(uart_read(UART_LSR) & UART_LSR_THRE)) | ||
25 | barrier(); | 45 | barrier(); |
26 | UART[UART_TX] = c; | 46 | |
47 | uart_write(c, UART_TX); | ||
27 | } | 48 | } |
28 | 49 | ||
29 | /* | 50 | /* |
@@ -38,7 +59,13 @@ static inline void arch_decomp_setup(void) | |||
38 | if (machine_is_littleton() || machine_is_intelmote2() | 59 | if (machine_is_littleton() || machine_is_intelmote2() |
39 | || machine_is_csb726() || machine_is_stargate2() | 60 | || machine_is_csb726() || machine_is_stargate2() |
40 | || machine_is_cm_x300() || machine_is_balloon3()) | 61 | || machine_is_cm_x300() || machine_is_balloon3()) |
41 | UART = STUART; | 62 | uart_base = STUART_BASE; |
63 | |||
64 | if (machine_is_arcom_zeus()) { | ||
65 | uart_base = 0x10000000; /* nCS4 */ | ||
66 | uart_shift = 1; | ||
67 | uart_is_pxa = 0; | ||
68 | } | ||
42 | } | 69 | } |
43 | 70 | ||
44 | /* | 71 | /* |
diff --git a/arch/arm/mach-pxa/include/mach/zeus.h b/arch/arm/mach-pxa/include/mach/zeus.h index c387046d2f2..6e119976003 100644 --- a/arch/arm/mach-pxa/include/mach/zeus.h +++ b/arch/arm/mach-pxa/include/mach/zeus.h | |||
@@ -58,6 +58,8 @@ | |||
58 | #define ZEUS_EXT1_GPIO(x) (ZEUS_EXT1_GPIO_BASE + (x)) | 58 | #define ZEUS_EXT1_GPIO(x) (ZEUS_EXT1_GPIO_BASE + (x)) |
59 | #define ZEUS_USER_GPIO(x) (ZEUS_USER_GPIO_BASE + (x)) | 59 | #define ZEUS_USER_GPIO(x) (ZEUS_USER_GPIO_BASE + (x)) |
60 | 60 | ||
61 | #define ZEUS_CAN_SHDN_GPIO ZEUS_EXT1_GPIO(2) | ||
62 | |||
61 | /* | 63 | /* |
62 | * CPLD registers: | 64 | * CPLD registers: |
63 | * Only 4 registers, but spreaded over a 32MB address space. | 65 | * Only 4 registers, but spreaded over a 32MB address space. |
@@ -68,7 +70,6 @@ | |||
68 | #define ZEUS_CPLD_VERSION (ZEUS_CPLD + 0x0000) | 70 | #define ZEUS_CPLD_VERSION (ZEUS_CPLD + 0x0000) |
69 | #define ZEUS_CPLD_ISA_IRQ (ZEUS_CPLD + 0x1000) | 71 | #define ZEUS_CPLD_ISA_IRQ (ZEUS_CPLD + 0x1000) |
70 | #define ZEUS_CPLD_CONTROL (ZEUS_CPLD + 0x2000) | 72 | #define ZEUS_CPLD_CONTROL (ZEUS_CPLD + 0x2000) |
71 | #define ZEUS_CPLD_EXTWDOG (ZEUS_CPLD + 0x3000) | ||
72 | 73 | ||
73 | /* CPLD register bits */ | 74 | /* CPLD register bits */ |
74 | #define ZEUS_CPLD_CONTROL_CF_RST 0x01 | 75 | #define ZEUS_CPLD_CONTROL_CF_RST 0x01 |
diff --git a/arch/arm/mach-pxa/irq.c b/arch/arm/mach-pxa/irq.c index 6112af431fa..1beb40f692f 100644 --- a/arch/arm/mach-pxa/irq.c +++ b/arch/arm/mach-pxa/irq.c | |||
@@ -164,8 +164,11 @@ static int pxa_irq_suspend(struct sys_device *dev, pm_message_t state) | |||
164 | saved_icmr[i] = _ICMR(irq); | 164 | saved_icmr[i] = _ICMR(irq); |
165 | _ICMR(irq) = 0; | 165 | _ICMR(irq) = 0; |
166 | } | 166 | } |
167 | for (i = 0; i < pxa_internal_irq_nr; i++) | 167 | |
168 | saved_ipr[i] = IPR(i); | 168 | if (cpu_is_pxa27x() || cpu_is_pxa3xx()) { |
169 | for (i = 0; i < pxa_internal_irq_nr; i++) | ||
170 | saved_ipr[i] = IPR(i); | ||
171 | } | ||
169 | 172 | ||
170 | return 0; | 173 | return 0; |
171 | } | 174 | } |
@@ -174,12 +177,15 @@ static int pxa_irq_resume(struct sys_device *dev) | |||
174 | { | 177 | { |
175 | int i, irq = PXA_IRQ(0); | 178 | int i, irq = PXA_IRQ(0); |
176 | 179 | ||
180 | if (cpu_is_pxa27x() || cpu_is_pxa3xx()) { | ||
181 | for (i = 0; i < pxa_internal_irq_nr; i++) | ||
182 | IPR(i) = saved_ipr[i]; | ||
183 | } | ||
184 | |||
177 | for (i = 0; irq < PXA_IRQ(pxa_internal_irq_nr); i++, irq += 32) { | 185 | for (i = 0; irq < PXA_IRQ(pxa_internal_irq_nr); i++, irq += 32) { |
178 | _ICMR(irq) = saved_icmr[i]; | 186 | _ICMR(irq) = saved_icmr[i]; |
179 | _ICLR(irq) = 0; | 187 | _ICLR(irq) = 0; |
180 | } | 188 | } |
181 | for (i = 0; i < pxa_internal_irq_nr; i++) | ||
182 | IPR(i) = saved_ipr[i]; | ||
183 | 189 | ||
184 | ICCR = 1; | 190 | ICCR = 1; |
185 | return 0; | 191 | return 0; |
diff --git a/arch/arm/mach-pxa/lpd270.c b/arch/arm/mach-pxa/lpd270.c index 1373c22dbb8..d279507fc74 100644 --- a/arch/arm/mach-pxa/lpd270.c +++ b/arch/arm/mach-pxa/lpd270.c | |||
@@ -83,6 +83,10 @@ static unsigned long lpd270_pin_config[] __initdata = { | |||
83 | GPIO89_USBH1_PEN, | 83 | GPIO89_USBH1_PEN, |
84 | 84 | ||
85 | /* AC97 */ | 85 | /* AC97 */ |
86 | GPIO28_AC97_BITCLK, | ||
87 | GPIO29_AC97_SDATA_IN_0, | ||
88 | GPIO30_AC97_SDATA_OUT, | ||
89 | GPIO31_AC97_SYNC, | ||
86 | GPIO45_AC97_SYSCLK, | 90 | GPIO45_AC97_SYSCLK, |
87 | 91 | ||
88 | GPIO1_GPIO | WAKEUP_ON_EDGE_BOTH, | 92 | GPIO1_GPIO | WAKEUP_ON_EDGE_BOTH, |
@@ -121,7 +125,7 @@ static void lpd270_irq_handler(unsigned int irq, struct irq_desc *desc) | |||
121 | 125 | ||
122 | pending = __raw_readw(LPD270_INT_STATUS) & lpd270_irq_enabled; | 126 | pending = __raw_readw(LPD270_INT_STATUS) & lpd270_irq_enabled; |
123 | do { | 127 | do { |
124 | GEDR(0) = GPIO_bit(0); /* clear useless edge notification */ | 128 | desc->chip->ack(irq); /* clear useless edge notification */ |
125 | if (likely(pending)) { | 129 | if (likely(pending)) { |
126 | irq = LPD270_IRQ(0) + __ffs(pending); | 130 | irq = LPD270_IRQ(0) + __ffs(pending); |
127 | generic_handle_irq(irq); | 131 | generic_handle_irq(irq); |
diff --git a/arch/arm/mach-pxa/lubbock.c b/arch/arm/mach-pxa/lubbock.c index 98ee7e59029..63d65a2a038 100644 --- a/arch/arm/mach-pxa/lubbock.c +++ b/arch/arm/mach-pxa/lubbock.c | |||
@@ -66,26 +66,14 @@ static unsigned long lubbock_pin_config[] __initdata = { | |||
66 | GPIO25_SSP1_TXD, | 66 | GPIO25_SSP1_TXD, |
67 | GPIO26_SSP1_RXD, | 67 | GPIO26_SSP1_RXD, |
68 | 68 | ||
69 | /* AC97 */ | ||
70 | GPIO28_AC97_BITCLK, | ||
71 | GPIO29_AC97_SDATA_IN_0, | ||
72 | GPIO30_AC97_SDATA_OUT, | ||
73 | GPIO31_AC97_SYNC, | ||
74 | |||
69 | /* LCD - 16bpp DSTN */ | 75 | /* LCD - 16bpp DSTN */ |
70 | GPIO58_LCD_LDD_0, | 76 | GPIOxx_LCD_DSTN_16BPP, |
71 | GPIO59_LCD_LDD_1, | ||
72 | GPIO60_LCD_LDD_2, | ||
73 | GPIO61_LCD_LDD_3, | ||
74 | GPIO62_LCD_LDD_4, | ||
75 | GPIO63_LCD_LDD_5, | ||
76 | GPIO64_LCD_LDD_6, | ||
77 | GPIO65_LCD_LDD_7, | ||
78 | GPIO66_LCD_LDD_8, | ||
79 | GPIO67_LCD_LDD_9, | ||
80 | GPIO68_LCD_LDD_10, | ||
81 | GPIO69_LCD_LDD_11, | ||
82 | GPIO70_LCD_LDD_12, | ||
83 | GPIO71_LCD_LDD_13, | ||
84 | GPIO72_LCD_LDD_14, | ||
85 | GPIO73_LCD_LDD_15, | ||
86 | GPIO74_LCD_FCLK, | ||
87 | GPIO75_LCD_LCLK, | ||
88 | GPIO76_LCD_PCLK, | ||
89 | 77 | ||
90 | /* BTUART */ | 78 | /* BTUART */ |
91 | GPIO42_BTUART_RXD, | 79 | GPIO42_BTUART_RXD, |
@@ -158,7 +146,7 @@ static void lubbock_irq_handler(unsigned int irq, struct irq_desc *desc) | |||
158 | { | 146 | { |
159 | unsigned long pending = LUB_IRQ_SET_CLR & lubbock_irq_enabled; | 147 | unsigned long pending = LUB_IRQ_SET_CLR & lubbock_irq_enabled; |
160 | do { | 148 | do { |
161 | GEDR(0) = GPIO_bit(0); /* clear our parent irq */ | 149 | desc->chip->ack(irq); /* clear our parent irq */ |
162 | if (likely(pending)) { | 150 | if (likely(pending)) { |
163 | irq = LUBBOCK_IRQ(0) + __ffs(pending); | 151 | irq = LUBBOCK_IRQ(0) + __ffs(pending); |
164 | generic_handle_irq(irq); | 152 | generic_handle_irq(irq); |
@@ -240,11 +228,18 @@ static struct resource sa1111_resources[] = { | |||
240 | }, | 228 | }, |
241 | }; | 229 | }; |
242 | 230 | ||
231 | static struct sa1111_platform_data sa1111_info = { | ||
232 | .irq_base = IRQ_BOARD_END, | ||
233 | }; | ||
234 | |||
243 | static struct platform_device sa1111_device = { | 235 | static struct platform_device sa1111_device = { |
244 | .name = "sa1111", | 236 | .name = "sa1111", |
245 | .id = -1, | 237 | .id = -1, |
246 | .num_resources = ARRAY_SIZE(sa1111_resources), | 238 | .num_resources = ARRAY_SIZE(sa1111_resources), |
247 | .resource = sa1111_resources, | 239 | .resource = sa1111_resources, |
240 | .dev = { | ||
241 | .platform_data = &sa1111_info, | ||
242 | }, | ||
248 | }; | 243 | }; |
249 | 244 | ||
250 | /* ADS7846 is connected through SSP ... and if your board has J5 populated, | 245 | /* ADS7846 is connected through SSP ... and if your board has J5 populated, |
diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c index 189f330719a..e81dd0c8e40 100644 --- a/arch/arm/mach-pxa/magician.c +++ b/arch/arm/mach-pxa/magician.c | |||
@@ -88,26 +88,7 @@ static unsigned long magician_pin_config[] __initdata = { | |||
88 | GPIO112_MMC_CMD, | 88 | GPIO112_MMC_CMD, |
89 | 89 | ||
90 | /* LCD */ | 90 | /* LCD */ |
91 | GPIO58_LCD_LDD_0, | 91 | GPIOxx_LCD_TFT_16BPP, |
92 | GPIO59_LCD_LDD_1, | ||
93 | GPIO60_LCD_LDD_2, | ||
94 | GPIO61_LCD_LDD_3, | ||
95 | GPIO62_LCD_LDD_4, | ||
96 | GPIO63_LCD_LDD_5, | ||
97 | GPIO64_LCD_LDD_6, | ||
98 | GPIO65_LCD_LDD_7, | ||
99 | GPIO66_LCD_LDD_8, | ||
100 | GPIO67_LCD_LDD_9, | ||
101 | GPIO68_LCD_LDD_10, | ||
102 | GPIO69_LCD_LDD_11, | ||
103 | GPIO70_LCD_LDD_12, | ||
104 | GPIO71_LCD_LDD_13, | ||
105 | GPIO72_LCD_LDD_14, | ||
106 | GPIO73_LCD_LDD_15, | ||
107 | GPIO74_LCD_FCLK, | ||
108 | GPIO75_LCD_LCLK, | ||
109 | GPIO76_LCD_PCLK, | ||
110 | GPIO77_LCD_BIAS, | ||
111 | 92 | ||
112 | /* QCI */ | 93 | /* QCI */ |
113 | GPIO12_CIF_DD_7, | 94 | GPIO12_CIF_DD_7, |
diff --git a/arch/arm/mach-pxa/mainstone.c b/arch/arm/mach-pxa/mainstone.c index 851ee0fc32e..5543c64da9e 100644 --- a/arch/arm/mach-pxa/mainstone.c +++ b/arch/arm/mach-pxa/mainstone.c | |||
@@ -60,26 +60,7 @@ static unsigned long mainstone_pin_config[] = { | |||
60 | GPIO15_nCS_1, | 60 | GPIO15_nCS_1, |
61 | 61 | ||
62 | /* LCD - 16bpp Active TFT */ | 62 | /* LCD - 16bpp Active TFT */ |
63 | GPIO58_LCD_LDD_0, | 63 | GPIOxx_LCD_TFT_16BPP, |
64 | GPIO59_LCD_LDD_1, | ||
65 | GPIO60_LCD_LDD_2, | ||
66 | GPIO61_LCD_LDD_3, | ||
67 | GPIO62_LCD_LDD_4, | ||
68 | GPIO63_LCD_LDD_5, | ||
69 | GPIO64_LCD_LDD_6, | ||
70 | GPIO65_LCD_LDD_7, | ||
71 | GPIO66_LCD_LDD_8, | ||
72 | GPIO67_LCD_LDD_9, | ||
73 | GPIO68_LCD_LDD_10, | ||
74 | GPIO69_LCD_LDD_11, | ||
75 | GPIO70_LCD_LDD_12, | ||
76 | GPIO71_LCD_LDD_13, | ||
77 | GPIO72_LCD_LDD_14, | ||
78 | GPIO73_LCD_LDD_15, | ||
79 | GPIO74_LCD_FCLK, | ||
80 | GPIO75_LCD_LCLK, | ||
81 | GPIO76_LCD_PCLK, | ||
82 | GPIO77_LCD_BIAS, | ||
83 | GPIO16_PWM0_OUT, /* Backlight */ | 64 | GPIO16_PWM0_OUT, /* Backlight */ |
84 | 65 | ||
85 | /* MMC */ | 66 | /* MMC */ |
@@ -107,6 +88,10 @@ static unsigned long mainstone_pin_config[] = { | |||
107 | GPIO57_nIOIS16, | 88 | GPIO57_nIOIS16, |
108 | 89 | ||
109 | /* AC97 */ | 90 | /* AC97 */ |
91 | GPIO28_AC97_BITCLK, | ||
92 | GPIO29_AC97_SDATA_IN_0, | ||
93 | GPIO30_AC97_SDATA_OUT, | ||
94 | GPIO31_AC97_SYNC, | ||
110 | GPIO45_AC97_SYSCLK, | 95 | GPIO45_AC97_SYSCLK, |
111 | 96 | ||
112 | /* Keypad */ | 97 | /* Keypad */ |
@@ -162,7 +147,7 @@ static void mainstone_irq_handler(unsigned int irq, struct irq_desc *desc) | |||
162 | { | 147 | { |
163 | unsigned long pending = MST_INTSETCLR & mainstone_irq_enabled; | 148 | unsigned long pending = MST_INTSETCLR & mainstone_irq_enabled; |
164 | do { | 149 | do { |
165 | GEDR(0) = GPIO_bit(0); /* clear useless edge notification */ | 150 | desc->chip->ack(irq); /* clear useless edge notification */ |
166 | if (likely(pending)) { | 151 | if (likely(pending)) { |
167 | irq = MAINSTONE_IRQ(0) + __ffs(pending); | 152 | irq = MAINSTONE_IRQ(0) + __ffs(pending); |
168 | generic_handle_irq(irq); | 153 | generic_handle_irq(irq); |
diff --git a/arch/arm/mach-pxa/mioa701.c b/arch/arm/mach-pxa/mioa701.c index 2466a44d8fd..843fcca76e2 100644 --- a/arch/arm/mach-pxa/mioa701.c +++ b/arch/arm/mach-pxa/mioa701.c | |||
@@ -86,25 +86,7 @@ static unsigned long mioa701_pin_config[] = { | |||
86 | MIO_CFG_OUT(GPIO22_USB_ENABLE, AF0, DRIVE_LOW), | 86 | MIO_CFG_OUT(GPIO22_USB_ENABLE, AF0, DRIVE_LOW), |
87 | 87 | ||
88 | /* LCD */ | 88 | /* LCD */ |
89 | GPIO58_LCD_LDD_0, | 89 | GPIOxx_LCD_TFT_16BPP, |
90 | GPIO59_LCD_LDD_1, | ||
91 | GPIO60_LCD_LDD_2, | ||
92 | GPIO61_LCD_LDD_3, | ||
93 | GPIO62_LCD_LDD_4, | ||
94 | GPIO63_LCD_LDD_5, | ||
95 | GPIO64_LCD_LDD_6, | ||
96 | GPIO65_LCD_LDD_7, | ||
97 | GPIO66_LCD_LDD_8, | ||
98 | GPIO67_LCD_LDD_9, | ||
99 | GPIO68_LCD_LDD_10, | ||
100 | GPIO69_LCD_LDD_11, | ||
101 | GPIO70_LCD_LDD_12, | ||
102 | GPIO71_LCD_LDD_13, | ||
103 | GPIO72_LCD_LDD_14, | ||
104 | GPIO73_LCD_LDD_15, | ||
105 | GPIO74_LCD_FCLK, | ||
106 | GPIO75_LCD_LCLK, | ||
107 | GPIO76_LCD_PCLK, | ||
108 | 90 | ||
109 | /* QCI */ | 91 | /* QCI */ |
110 | GPIO12_CIF_DD_7, | 92 | GPIO12_CIF_DD_7, |
@@ -155,6 +137,10 @@ static unsigned long mioa701_pin_config[] = { | |||
155 | GPIO41_FFUART_RTS, | 137 | GPIO41_FFUART_RTS, |
156 | 138 | ||
157 | /* Sound */ | 139 | /* Sound */ |
140 | GPIO28_AC97_BITCLK, | ||
141 | GPIO29_AC97_SDATA_IN_0, | ||
142 | GPIO30_AC97_SDATA_OUT, | ||
143 | GPIO31_AC97_SYNC, | ||
158 | GPIO89_AC97_SYSCLK, | 144 | GPIO89_AC97_SYSCLK, |
159 | MIO_CFG_IN(GPIO12_HPJACK_INSERT, AF0), | 145 | MIO_CFG_IN(GPIO12_HPJACK_INSERT, AF0), |
160 | 146 | ||
diff --git a/arch/arm/mach-pxa/mxm8x10.c b/arch/arm/mach-pxa/mxm8x10.c new file mode 100644 index 00000000000..8c9c6f0d56b --- /dev/null +++ b/arch/arm/mach-pxa/mxm8x10.c | |||
@@ -0,0 +1,474 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pxa/mxm8x10.c | ||
3 | * | ||
4 | * Support for the Embedian MXM-8x10 Computer on Module | ||
5 | * | ||
6 | * Copyright (C) 2006 Marvell International Ltd. | ||
7 | * Copyright (C) 2009 Embedian Inc. | ||
8 | * Copyright (C) 2009 TMT Services & Supplies (Pty) Ltd. | ||
9 | * | ||
10 | * 2007-09-04: eric miao <eric.y.miao@gmail.com> | ||
11 | * rewrite to align with latest kernel | ||
12 | * | ||
13 | * 2010-01-09: Edwin Peer <epeer@tmtservices.co.za> | ||
14 | * Hennie van der Merwe <hvdmerwe@tmtservices.co.za> | ||
15 | * rework for upstream merge | ||
16 | * | ||
17 | * This program is free software; you can redistribute it and/or modify | ||
18 | * it under the terms of the GNU General Public License version 2 as | ||
19 | * published by the Free Software Foundation. | ||
20 | */ | ||
21 | |||
22 | #include <linux/serial_8250.h> | ||
23 | #include <linux/dm9000.h> | ||
24 | #include <linux/gpio.h> | ||
25 | |||
26 | #include <plat/i2c.h> | ||
27 | #include <plat/pxa3xx_nand.h> | ||
28 | |||
29 | #include <mach/pxafb.h> | ||
30 | #include <mach/mmc.h> | ||
31 | #include <mach/ohci.h> | ||
32 | #include <mach/pxa320.h> | ||
33 | |||
34 | #include <mach/mxm8x10.h> | ||
35 | |||
36 | #include "devices.h" | ||
37 | #include "generic.h" | ||
38 | |||
39 | /* GPIO pin definition | ||
40 | |||
41 | External device stuff - Leave unconfigured for now... | ||
42 | --------------------- | ||
43 | GPIO0 - DREQ (External DMA Request) | ||
44 | GPIO3 - nGCS2 (External Chip Select) Where is nGCS0; nGCS1; nGCS4; nGCS5 ? | ||
45 | GPIO4 - nGCS3 | ||
46 | GPIO15 - EXT_GPIO1 | ||
47 | GPIO16 - EXT_GPIO2 | ||
48 | GPIO17 - EXT_GPIO3 | ||
49 | GPIO24 - EXT_GPIO4 | ||
50 | GPIO25 - EXT_GPIO5 | ||
51 | GPIO26 - EXT_GPIO6 | ||
52 | GPIO27 - EXT_GPIO7 | ||
53 | GPIO28 - EXT_GPIO8 | ||
54 | GPIO29 - EXT_GPIO9 | ||
55 | GPIO30 - EXT_GPIO10 | ||
56 | GPIO31 - EXT_GPIO11 | ||
57 | GPIO57 - EXT_GPIO12 | ||
58 | GPIO74 - EXT_IRQ1 | ||
59 | GPIO75 - EXT_IRQ2 | ||
60 | GPIO76 - EXT_IRQ3 | ||
61 | GPIO77 - EXT_IRQ4 | ||
62 | GPIO78 - EXT_IRQ5 | ||
63 | GPIO79 - EXT_IRQ6 | ||
64 | GPIO80 - EXT_IRQ7 | ||
65 | GPIO81 - EXT_IRQ8 | ||
66 | GPIO87 - VCCIO_PWREN (External Device PWREN) | ||
67 | |||
68 | Dallas 1-Wire - Leave unconfigured for now... | ||
69 | ------------- | ||
70 | GPIO0_2 - DS - 1Wire | ||
71 | |||
72 | Ethernet | ||
73 | -------- | ||
74 | GPIO1 - DM9000 PWR | ||
75 | GPIO9 - DM9K_nIRQ | ||
76 | GPIO36 - DM9K_RESET | ||
77 | |||
78 | Keypad - Leave unconfigured by for now... | ||
79 | ------ | ||
80 | GPIO1_2 - KP_DKIN0 | ||
81 | GPIO5_2 - KP_MKOUT7 | ||
82 | GPIO82 - KP_DKIN1 | ||
83 | GPIO85 - KP_DKIN2 | ||
84 | GPIO86 - KP_DKIN3 | ||
85 | GPIO113 - KP_MKIN0 | ||
86 | GPIO114 - KP_MKIN1 | ||
87 | GPIO115 - KP_MKIN2 | ||
88 | GPIO116 - KP_MKIN3 | ||
89 | GPIO117 - KP_MKIN4 | ||
90 | GPIO118 - KP_MKIN5 | ||
91 | GPIO119 - KP_MKIN6 | ||
92 | GPIO120 - KP_MKIN7 | ||
93 | GPIO121 - KP_MKOUT0 | ||
94 | GPIO122 - KP_MKOUT1 | ||
95 | GPIO122 - KP_MKOUT2 | ||
96 | GPIO123 - KP_MKOUT3 | ||
97 | GPIO124 - KP_MKOUT4 | ||
98 | GPIO125 - KP_MKOUT5 | ||
99 | GPIO127 - KP_MKOUT6 | ||
100 | |||
101 | Data Bus - Leave unconfigured for now... | ||
102 | -------- | ||
103 | GPIO2 - nWait (Data Bus) | ||
104 | |||
105 | USB Device | ||
106 | ---------- | ||
107 | GPIO4_2 - USBD_PULLUP | ||
108 | GPIO10 - UTM_CLK (USB Device UTM Clk) | ||
109 | GPIO49 - USB 2.0 Device UTM_DATA0 | ||
110 | GPIO50 - USB 2.0 Device UTM_DATA1 | ||
111 | GPIO51 - USB 2.0 Device UTM_DATA2 | ||
112 | GPIO52 - USB 2.0 Device UTM_DATA3 | ||
113 | GPIO53 - USB 2.0 Device UTM_DATA4 | ||
114 | GPIO54 - USB 2.0 Device UTM_DATA5 | ||
115 | GPIO55 - USB 2.0 Device UTM_DATA6 | ||
116 | GPIO56 - USB 2.0 Device UTM_DATA7 | ||
117 | GPIO58 - UTM_RXVALID (USB 2.0 Device) | ||
118 | GPIO59 - UTM_RXACTIVE (USB 2.0 Device) | ||
119 | GPIO60 - UTM_RXERROR | ||
120 | GPIO61 - UTM_OPMODE0 | ||
121 | GPIO62 - UTM_OPMODE1 | ||
122 | GPIO71 - USBD_INT (USB Device?) | ||
123 | GPIO73 - UTM_TXREADY (USB 2.0 Device) | ||
124 | GPIO83 - UTM_TXVALID (USB 2.0 Device) | ||
125 | GPIO98 - UTM_RESET (USB 2.0 device) | ||
126 | GPIO99 - UTM_XCVR_SELECT | ||
127 | GPIO100 - UTM_TERM_SELECT | ||
128 | GPIO101 - UTM_SUSPENDM_X | ||
129 | GPIO102 - UTM_LINESTATE0 | ||
130 | GPIO103 - UTM_LINESTATE1 | ||
131 | |||
132 | Card-Bus Interface - Leave unconfigured for now... | ||
133 | ------------------ | ||
134 | GPIO5 - nPIOR (I/O space output enable) | ||
135 | GPIO6 - nPIOW (I/O space write enable) | ||
136 | GPIO7 - nIOS16 (Input from I/O space telling size of data bus) | ||
137 | GPIO8 - nPWAIT (Input for inserting wait states) | ||
138 | |||
139 | LCD | ||
140 | --- | ||
141 | GPIO6_2 - LDD0 | ||
142 | GPIO7_2 - LDD1 | ||
143 | GPIO8_2 - LDD2 | ||
144 | GPIO9_2 - LDD3 | ||
145 | GPIO11_2 - LDD5 | ||
146 | GPIO12_2 - LDD6 | ||
147 | GPIO13_2 - LDD7 | ||
148 | GPIO14_2 - VSYNC | ||
149 | GPIO15_2 - HSYNC | ||
150 | GPIO16_2 - VCLK | ||
151 | GPIO17_2 - HCLK | ||
152 | GPIO18_2 - VDEN | ||
153 | GPIO63 - LDD8 (CPU LCD) | ||
154 | GPIO64 - LDD9 (CPU LCD) | ||
155 | GPIO65 - LDD10 (CPU LCD) | ||
156 | GPIO66 - LDD11 (CPU LCD) | ||
157 | GPIO67 - LDD12 (CPU LCD) | ||
158 | GPIO68 - LDD13 (CPU LCD) | ||
159 | GPIO69 - LDD14 (CPU LCD) | ||
160 | GPIO70 - LDD15 (CPU LCD) | ||
161 | GPIO88 - VCCLCD_PWREN (LCD Panel PWREN) | ||
162 | GPIO97 - BACKLIGHT_EN | ||
163 | GPIO104 - LCD_PWREN | ||
164 | |||
165 | PWM - Leave unconfigured for now... | ||
166 | --- | ||
167 | GPIO11 - PWM0 | ||
168 | GPIO12 - PWM1 | ||
169 | GPIO13 - PWM2 | ||
170 | GPIO14 - PWM3 | ||
171 | |||
172 | SD-CARD | ||
173 | ------- | ||
174 | GPIO18 - SDDATA0 | ||
175 | GPIO19 - SDDATA1 | ||
176 | GPIO20 - SDDATA2 | ||
177 | GPIO21 - SDDATA3 | ||
178 | GPIO22 - SDCLK | ||
179 | GPIO23 - SDCMD | ||
180 | GPIO72 - SD_WP | ||
181 | GPIO84 - SD_nIRQ_CD (SD-Card) | ||
182 | |||
183 | I2C | ||
184 | --- | ||
185 | GPIO32 - I2CSCL | ||
186 | GPIO33 - I2CSDA | ||
187 | |||
188 | AC97 | ||
189 | ---- | ||
190 | GPIO35 - AC97_SDATA_IN | ||
191 | GPIO37 - AC97_SDATA_OUT | ||
192 | GPIO38 - AC97_SYNC | ||
193 | GPIO39 - AC97_BITCLK | ||
194 | GPIO40 - AC97_nRESET | ||
195 | |||
196 | UART1 | ||
197 | ----- | ||
198 | GPIO41 - UART_RXD1 | ||
199 | GPIO42 - UART_TXD1 | ||
200 | GPIO43 - UART_CTS1 | ||
201 | GPIO44 - UART_DCD1 | ||
202 | GPIO45 - UART_DSR1 | ||
203 | GPIO46 - UART_nRI1 | ||
204 | GPIO47 - UART_DTR1 | ||
205 | GPIO48 - UART_RTS1 | ||
206 | |||
207 | UART2 | ||
208 | ----- | ||
209 | GPIO109 - RTS2 | ||
210 | GPIO110 - RXD2 | ||
211 | GPIO111 - TXD2 | ||
212 | GPIO112 - nCTS2 | ||
213 | |||
214 | UART3 | ||
215 | ----- | ||
216 | GPIO105 - nCTS3 | ||
217 | GPIO106 - nRTS3 | ||
218 | GPIO107 - TXD3 | ||
219 | GPIO108 - RXD3 | ||
220 | |||
221 | SSP3 - Leave unconfigured for now... | ||
222 | ---- | ||
223 | GPIO89 - SSP3_CLK | ||
224 | GPIO90 - SSP3_SFRM | ||
225 | GPIO91 - SSP3_TXD | ||
226 | GPIO92 - SSP3_RXD | ||
227 | |||
228 | SSP4 | ||
229 | GPIO93 - SSP4_CLK | ||
230 | GPIO94 - SSP4_SFRM | ||
231 | GPIO95 - SSP4_TXD | ||
232 | GPIO96 - SSP4_RXD | ||
233 | */ | ||
234 | |||
235 | static mfp_cfg_t mfp_cfg[] __initdata = { | ||
236 | /* USB */ | ||
237 | GPIO10_UTM_CLK, | ||
238 | GPIO49_U2D_PHYDATA_0, | ||
239 | GPIO50_U2D_PHYDATA_1, | ||
240 | GPIO51_U2D_PHYDATA_2, | ||
241 | GPIO52_U2D_PHYDATA_3, | ||
242 | GPIO53_U2D_PHYDATA_4, | ||
243 | GPIO54_U2D_PHYDATA_5, | ||
244 | GPIO55_U2D_PHYDATA_6, | ||
245 | GPIO56_U2D_PHYDATA_7, | ||
246 | GPIO58_UTM_RXVALID, | ||
247 | GPIO59_UTM_RXACTIVE, | ||
248 | GPIO60_U2D_RXERROR, | ||
249 | GPIO61_U2D_OPMODE0, | ||
250 | GPIO62_U2D_OPMODE1, | ||
251 | GPIO71_GPIO, /* USBD_INT */ | ||
252 | GPIO73_UTM_TXREADY, | ||
253 | GPIO83_U2D_TXVALID, | ||
254 | GPIO98_U2D_RESET, | ||
255 | GPIO99_U2D_XCVR_SEL, | ||
256 | GPIO100_U2D_TERM_SEL, | ||
257 | GPIO101_U2D_SUSPEND, | ||
258 | GPIO102_UTM_LINESTATE_0, | ||
259 | GPIO103_UTM_LINESTATE_1, | ||
260 | GPIO4_2_GPIO | MFP_PULL_HIGH, /* UTM_PULLUP */ | ||
261 | |||
262 | /* DM9000 */ | ||
263 | GPIO1_GPIO, | ||
264 | GPIO9_GPIO, | ||
265 | GPIO36_GPIO, | ||
266 | |||
267 | /* AC97 */ | ||
268 | GPIO35_AC97_SDATA_IN_0, | ||
269 | GPIO37_AC97_SDATA_OUT, | ||
270 | GPIO38_AC97_SYNC, | ||
271 | GPIO39_AC97_BITCLK, | ||
272 | GPIO40_AC97_nACRESET, | ||
273 | |||
274 | /* UARTS */ | ||
275 | GPIO41_UART1_RXD, | ||
276 | GPIO42_UART1_TXD, | ||
277 | GPIO43_UART1_CTS, | ||
278 | GPIO44_UART1_DCD, | ||
279 | GPIO45_UART1_DSR, | ||
280 | GPIO46_UART1_RI, | ||
281 | GPIO47_UART1_DTR, | ||
282 | GPIO48_UART1_RTS, | ||
283 | |||
284 | GPIO109_UART2_RTS, | ||
285 | GPIO110_UART2_RXD, | ||
286 | GPIO111_UART2_TXD, | ||
287 | GPIO112_UART2_CTS, | ||
288 | |||
289 | GPIO105_UART3_CTS, | ||
290 | GPIO106_UART3_RTS, | ||
291 | GPIO107_UART3_TXD, | ||
292 | GPIO108_UART3_RXD, | ||
293 | |||
294 | GPIO78_GPIO, | ||
295 | GPIO79_GPIO, | ||
296 | GPIO80_GPIO, | ||
297 | GPIO81_GPIO, | ||
298 | |||
299 | /* I2C */ | ||
300 | GPIO32_I2C_SCL, | ||
301 | GPIO33_I2C_SDA, | ||
302 | |||
303 | /* MMC */ | ||
304 | GPIO18_MMC1_DAT0, | ||
305 | GPIO19_MMC1_DAT1, | ||
306 | GPIO20_MMC1_DAT2, | ||
307 | GPIO21_MMC1_DAT3, | ||
308 | GPIO22_MMC1_CLK, | ||
309 | GPIO23_MMC1_CMD, | ||
310 | GPIO72_GPIO | MFP_PULL_HIGH, /* Card Detect */ | ||
311 | GPIO84_GPIO | MFP_PULL_LOW, /* Write Protect */ | ||
312 | |||
313 | /* IRQ */ | ||
314 | GPIO74_GPIO | MFP_LPM_EDGE_RISE, /* EXT_IRQ1 */ | ||
315 | GPIO75_GPIO | MFP_LPM_EDGE_RISE, /* EXT_IRQ2 */ | ||
316 | GPIO76_GPIO | MFP_LPM_EDGE_RISE, /* EXT_IRQ3 */ | ||
317 | GPIO77_GPIO | MFP_LPM_EDGE_RISE, /* EXT_IRQ4 */ | ||
318 | GPIO78_GPIO | MFP_LPM_EDGE_RISE, /* EXT_IRQ5 */ | ||
319 | GPIO79_GPIO | MFP_LPM_EDGE_RISE, /* EXT_IRQ6 */ | ||
320 | GPIO80_GPIO | MFP_LPM_EDGE_RISE, /* EXT_IRQ7 */ | ||
321 | GPIO81_GPIO | MFP_LPM_EDGE_RISE /* EXT_IRQ8 */ | ||
322 | }; | ||
323 | |||
324 | /* MMC/MCI Support */ | ||
325 | #if defined(CONFIG_MMC) | ||
326 | static struct pxamci_platform_data mxm_8x10_mci_platform_data = { | ||
327 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, | ||
328 | .detect_delay = 1, | ||
329 | .gpio_card_detect = MXM_8X10_SD_nCD, | ||
330 | .gpio_card_ro = MXM_8X10_SD_WP, | ||
331 | .gpio_power = -1 | ||
332 | }; | ||
333 | |||
334 | void __init mxm_8x10_mmc_init(void) | ||
335 | { | ||
336 | pxa_set_mci_info(&mxm_8x10_mci_platform_data); | ||
337 | } | ||
338 | #endif | ||
339 | |||
340 | /* USB Open Host Controler Interface */ | ||
341 | static struct pxaohci_platform_data mxm_8x10_ohci_platform_data = { | ||
342 | .port_mode = PMM_NPS_MODE, | ||
343 | .flags = ENABLE_PORT_ALL | ||
344 | }; | ||
345 | |||
346 | void __init mxm_8x10_usb_host_init(void) | ||
347 | { | ||
348 | pxa_set_ohci_info(&mxm_8x10_ohci_platform_data); | ||
349 | } | ||
350 | |||
351 | /* AC97 Sound Support */ | ||
352 | static struct platform_device mxm_8x10_ac97_device = { | ||
353 | .name = "pxa2xx-ac97" | ||
354 | }; | ||
355 | |||
356 | void __init mxm_8x10_ac97_init(void) | ||
357 | { | ||
358 | platform_device_register(&mxm_8x10_ac97_device); | ||
359 | } | ||
360 | |||
361 | /* NAND flash Support */ | ||
362 | #if defined(CONFIG_MTD_NAND_PXA3xx) || defined(CONFIG_MTD_NAND_PXA3xx_MODULE) | ||
363 | #define NAND_BLOCK_SIZE SZ_128K | ||
364 | #define NB(x) (NAND_BLOCK_SIZE * (x)) | ||
365 | static struct mtd_partition mxm_8x10_nand_partitions[] = { | ||
366 | [0] = { | ||
367 | .name = "boot", | ||
368 | .size = NB(0x002), | ||
369 | .offset = NB(0x000), | ||
370 | .mask_flags = MTD_WRITEABLE | ||
371 | }, | ||
372 | [1] = { | ||
373 | .name = "kernel", | ||
374 | .size = NB(0x010), | ||
375 | .offset = NB(0x002), | ||
376 | .mask_flags = MTD_WRITEABLE | ||
377 | }, | ||
378 | [2] = { | ||
379 | .name = "root", | ||
380 | .size = NB(0x36c), | ||
381 | .offset = NB(0x012) | ||
382 | }, | ||
383 | [3] = { | ||
384 | .name = "bbt", | ||
385 | .size = NB(0x082), | ||
386 | .offset = NB(0x37e), | ||
387 | .mask_flags = MTD_WRITEABLE | ||
388 | } | ||
389 | }; | ||
390 | |||
391 | static struct pxa3xx_nand_platform_data mxm_8x10_nand_info = { | ||
392 | .enable_arbiter = 1, | ||
393 | .keep_config = 1, | ||
394 | .parts = mxm_8x10_nand_partitions, | ||
395 | .nr_parts = ARRAY_SIZE(mxm_8x10_nand_partitions) | ||
396 | }; | ||
397 | |||
398 | static void __init mxm_8x10_nand_init(void) | ||
399 | { | ||
400 | pxa3xx_set_nand_info(&mxm_8x10_nand_info); | ||
401 | } | ||
402 | #else | ||
403 | static inline void mxm_8x10_nand_init(void) {} | ||
404 | #endif /* CONFIG_MTD_NAND_PXA3xx || CONFIG_MTD_NAND_PXA3xx_MODULE */ | ||
405 | |||
406 | /* Ethernet support: Davicom DM9000 */ | ||
407 | static struct resource dm9k_resources[] = { | ||
408 | [0] = { | ||
409 | .start = MXM_8X10_ETH_PHYS + 0x300, | ||
410 | .end = MXM_8X10_ETH_PHYS + 0x300, | ||
411 | .flags = IORESOURCE_MEM | ||
412 | }, | ||
413 | [1] = { | ||
414 | .start = MXM_8X10_ETH_PHYS + 0x308, | ||
415 | .end = MXM_8X10_ETH_PHYS + 0x308, | ||
416 | .flags = IORESOURCE_MEM | ||
417 | }, | ||
418 | [2] = { | ||
419 | .start = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO9)), | ||
420 | .end = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO9)), | ||
421 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE | ||
422 | } | ||
423 | }; | ||
424 | |||
425 | static struct dm9000_plat_data dm9k_plat_data = { | ||
426 | .flags = DM9000_PLATF_16BITONLY | ||
427 | }; | ||
428 | |||
429 | static struct platform_device dm9k_device = { | ||
430 | .name = "dm9000", | ||
431 | .id = 0, | ||
432 | .num_resources = ARRAY_SIZE(dm9k_resources), | ||
433 | .resource = dm9k_resources, | ||
434 | .dev = { | ||
435 | .platform_data = &dm9k_plat_data | ||
436 | } | ||
437 | }; | ||
438 | |||
439 | static void __init mxm_8x10_ethernet_init(void) | ||
440 | { | ||
441 | platform_device_register(&dm9k_device); | ||
442 | } | ||
443 | |||
444 | /* PXA UARTs */ | ||
445 | static void __init mxm_8x10_uarts_init(void) | ||
446 | { | ||
447 | pxa_set_ffuart_info(NULL); | ||
448 | pxa_set_btuart_info(NULL); | ||
449 | pxa_set_stuart_info(NULL); | ||
450 | } | ||
451 | |||
452 | /* I2C and Real Time Clock */ | ||
453 | static struct i2c_board_info __initdata mxm_8x10_i2c_devices[] = { | ||
454 | { | ||
455 | I2C_BOARD_INFO("ds1337", 0x68) | ||
456 | } | ||
457 | }; | ||
458 | |||
459 | static void __init mxm_8x10_i2c_init(void) | ||
460 | { | ||
461 | i2c_register_board_info(0, mxm_8x10_i2c_devices, | ||
462 | ARRAY_SIZE(mxm_8x10_i2c_devices)); | ||
463 | pxa_set_i2c_info(NULL); | ||
464 | } | ||
465 | |||
466 | void __init mxm_8x10_barebones_init(void) | ||
467 | { | ||
468 | pxa3xx_mfp_config(ARRAY_AND_SIZE(mfp_cfg)); | ||
469 | |||
470 | mxm_8x10_uarts_init(); | ||
471 | mxm_8x10_nand_init(); | ||
472 | mxm_8x10_i2c_init(); | ||
473 | mxm_8x10_ethernet_init(); | ||
474 | } | ||
diff --git a/arch/arm/mach-pxa/palmld.c b/arch/arm/mach-pxa/palmld.c index e100af78b16..f70c75b3876 100644 --- a/arch/arm/mach-pxa/palmld.c +++ b/arch/arm/mach-pxa/palmld.c | |||
@@ -83,26 +83,7 @@ static unsigned long palmld_pin_config[] __initdata = { | |||
83 | GPIO105_KP_MKOUT_2, | 83 | GPIO105_KP_MKOUT_2, |
84 | 84 | ||
85 | /* LCD */ | 85 | /* LCD */ |
86 | GPIO58_LCD_LDD_0, | 86 | GPIOxx_LCD_TFT_16BPP, |
87 | GPIO59_LCD_LDD_1, | ||
88 | GPIO60_LCD_LDD_2, | ||
89 | GPIO61_LCD_LDD_3, | ||
90 | GPIO62_LCD_LDD_4, | ||
91 | GPIO63_LCD_LDD_5, | ||
92 | GPIO64_LCD_LDD_6, | ||
93 | GPIO65_LCD_LDD_7, | ||
94 | GPIO66_LCD_LDD_8, | ||
95 | GPIO67_LCD_LDD_9, | ||
96 | GPIO68_LCD_LDD_10, | ||
97 | GPIO69_LCD_LDD_11, | ||
98 | GPIO70_LCD_LDD_12, | ||
99 | GPIO71_LCD_LDD_13, | ||
100 | GPIO72_LCD_LDD_14, | ||
101 | GPIO73_LCD_LDD_15, | ||
102 | GPIO74_LCD_FCLK, | ||
103 | GPIO75_LCD_LCLK, | ||
104 | GPIO76_LCD_PCLK, | ||
105 | GPIO77_LCD_BIAS, | ||
106 | 87 | ||
107 | /* PWM */ | 88 | /* PWM */ |
108 | GPIO16_PWM0_OUT, | 89 | GPIO16_PWM0_OUT, |
diff --git a/arch/arm/mach-pxa/palmt5.c b/arch/arm/mach-pxa/palmt5.c index 8fe3ec27568..d902a813aae 100644 --- a/arch/arm/mach-pxa/palmt5.c +++ b/arch/arm/mach-pxa/palmt5.c | |||
@@ -87,26 +87,7 @@ static unsigned long palmt5_pin_config[] __initdata = { | |||
87 | GPIO105_KP_MKOUT_2, | 87 | GPIO105_KP_MKOUT_2, |
88 | 88 | ||
89 | /* LCD */ | 89 | /* LCD */ |
90 | GPIO58_LCD_LDD_0, | 90 | GPIOxx_LCD_TFT_16BPP, |
91 | GPIO59_LCD_LDD_1, | ||
92 | GPIO60_LCD_LDD_2, | ||
93 | GPIO61_LCD_LDD_3, | ||
94 | GPIO62_LCD_LDD_4, | ||
95 | GPIO63_LCD_LDD_5, | ||
96 | GPIO64_LCD_LDD_6, | ||
97 | GPIO65_LCD_LDD_7, | ||
98 | GPIO66_LCD_LDD_8, | ||
99 | GPIO67_LCD_LDD_9, | ||
100 | GPIO68_LCD_LDD_10, | ||
101 | GPIO69_LCD_LDD_11, | ||
102 | GPIO70_LCD_LDD_12, | ||
103 | GPIO71_LCD_LDD_13, | ||
104 | GPIO72_LCD_LDD_14, | ||
105 | GPIO73_LCD_LDD_15, | ||
106 | GPIO74_LCD_FCLK, | ||
107 | GPIO75_LCD_LCLK, | ||
108 | GPIO76_LCD_PCLK, | ||
109 | GPIO77_LCD_BIAS, | ||
110 | 91 | ||
111 | /* PWM */ | 92 | /* PWM */ |
112 | GPIO16_PWM0_OUT, | 93 | GPIO16_PWM0_OUT, |
diff --git a/arch/arm/mach-pxa/palmtc.c b/arch/arm/mach-pxa/palmtc.c index b992f07ece2..717d7a63867 100644 --- a/arch/arm/mach-pxa/palmtc.c +++ b/arch/arm/mach-pxa/palmtc.c | |||
@@ -84,26 +84,7 @@ static unsigned long palmtc_pin_config[] __initdata = { | |||
84 | GPIO36_GPIO, /* pullup */ | 84 | GPIO36_GPIO, /* pullup */ |
85 | 85 | ||
86 | /* LCD */ | 86 | /* LCD */ |
87 | GPIO58_LCD_LDD_0, | 87 | GPIOxx_LCD_TFT_16BPP, |
88 | GPIO59_LCD_LDD_1, | ||
89 | GPIO60_LCD_LDD_2, | ||
90 | GPIO61_LCD_LDD_3, | ||
91 | GPIO62_LCD_LDD_4, | ||
92 | GPIO63_LCD_LDD_5, | ||
93 | GPIO64_LCD_LDD_6, | ||
94 | GPIO65_LCD_LDD_7, | ||
95 | GPIO66_LCD_LDD_8, | ||
96 | GPIO67_LCD_LDD_9, | ||
97 | GPIO68_LCD_LDD_10, | ||
98 | GPIO69_LCD_LDD_11, | ||
99 | GPIO70_LCD_LDD_12, | ||
100 | GPIO71_LCD_LDD_13, | ||
101 | GPIO72_LCD_LDD_14, | ||
102 | GPIO73_LCD_LDD_15, | ||
103 | GPIO74_LCD_FCLK, | ||
104 | GPIO75_LCD_LCLK, | ||
105 | GPIO76_LCD_PCLK, | ||
106 | GPIO77_LCD_BIAS, | ||
107 | 88 | ||
108 | /* MATRIX KEYPAD */ | 89 | /* MATRIX KEYPAD */ |
109 | GPIO0_GPIO | WAKEUP_ON_EDGE_BOTH, /* in 0 */ | 90 | GPIO0_GPIO | WAKEUP_ON_EDGE_BOTH, /* in 0 */ |
diff --git a/arch/arm/mach-pxa/palmte2.c b/arch/arm/mach-pxa/palmte2.c index dc728d6ab94..3d284ff1a64 100644 --- a/arch/arm/mach-pxa/palmte2.c +++ b/arch/arm/mach-pxa/palmte2.c | |||
@@ -73,26 +73,7 @@ static unsigned long palmte2_pin_config[] __initdata = { | |||
73 | GPIO47_FICP_TXD, | 73 | GPIO47_FICP_TXD, |
74 | 74 | ||
75 | /* LCD */ | 75 | /* LCD */ |
76 | GPIO58_LCD_LDD_0, | 76 | GPIOxx_LCD_TFT_16BPP, |
77 | GPIO59_LCD_LDD_1, | ||
78 | GPIO60_LCD_LDD_2, | ||
79 | GPIO61_LCD_LDD_3, | ||
80 | GPIO62_LCD_LDD_4, | ||
81 | GPIO63_LCD_LDD_5, | ||
82 | GPIO64_LCD_LDD_6, | ||
83 | GPIO65_LCD_LDD_7, | ||
84 | GPIO66_LCD_LDD_8, | ||
85 | GPIO67_LCD_LDD_9, | ||
86 | GPIO68_LCD_LDD_10, | ||
87 | GPIO69_LCD_LDD_11, | ||
88 | GPIO70_LCD_LDD_12, | ||
89 | GPIO71_LCD_LDD_13, | ||
90 | GPIO72_LCD_LDD_14, | ||
91 | GPIO73_LCD_LDD_15, | ||
92 | GPIO74_LCD_FCLK, | ||
93 | GPIO75_LCD_LCLK, | ||
94 | GPIO76_LCD_PCLK, | ||
95 | GPIO77_LCD_BIAS, | ||
96 | 77 | ||
97 | /* GPIO KEYS */ | 78 | /* GPIO KEYS */ |
98 | GPIO5_GPIO, /* notes */ | 79 | GPIO5_GPIO, /* notes */ |
diff --git a/arch/arm/mach-pxa/palmtreo.c b/arch/arm/mach-pxa/palmtreo.c index b433bb49671..d8b4469607a 100644 --- a/arch/arm/mach-pxa/palmtreo.c +++ b/arch/arm/mach-pxa/palmtreo.c | |||
@@ -99,25 +99,7 @@ static unsigned long treo_pin_config[] __initdata = { | |||
99 | GPIO93_KP_DKIN_0 | WAKEUP_ON_LEVEL_HIGH, /* Hotsync button */ | 99 | GPIO93_KP_DKIN_0 | WAKEUP_ON_LEVEL_HIGH, /* Hotsync button */ |
100 | 100 | ||
101 | /* LCD */ | 101 | /* LCD */ |
102 | GPIO58_LCD_LDD_0, | 102 | GPIOxx_LCD_TFT_16BPP, |
103 | GPIO59_LCD_LDD_1, | ||
104 | GPIO60_LCD_LDD_2, | ||
105 | GPIO61_LCD_LDD_3, | ||
106 | GPIO62_LCD_LDD_4, | ||
107 | GPIO63_LCD_LDD_5, | ||
108 | GPIO64_LCD_LDD_6, | ||
109 | GPIO65_LCD_LDD_7, | ||
110 | GPIO66_LCD_LDD_8, | ||
111 | GPIO67_LCD_LDD_9, | ||
112 | GPIO68_LCD_LDD_10, | ||
113 | GPIO69_LCD_LDD_11, | ||
114 | GPIO70_LCD_LDD_12, | ||
115 | GPIO71_LCD_LDD_13, | ||
116 | GPIO72_LCD_LDD_14, | ||
117 | GPIO73_LCD_LDD_15, | ||
118 | GPIO74_LCD_FCLK, | ||
119 | GPIO75_LCD_LCLK, | ||
120 | GPIO76_LCD_PCLK, | ||
121 | 103 | ||
122 | /* Quick Capture Interface */ | 104 | /* Quick Capture Interface */ |
123 | GPIO84_CIF_FV, | 105 | GPIO84_CIF_FV, |
diff --git a/arch/arm/mach-pxa/palmtx.c b/arch/arm/mach-pxa/palmtx.c index b37a025c0b7..007b58c11f8 100644 --- a/arch/arm/mach-pxa/palmtx.c +++ b/arch/arm/mach-pxa/palmtx.c | |||
@@ -110,26 +110,7 @@ static unsigned long palmtx_pin_config[] __initdata = { | |||
110 | GPIO105_KP_MKOUT_2, | 110 | GPIO105_KP_MKOUT_2, |
111 | 111 | ||
112 | /* LCD */ | 112 | /* LCD */ |
113 | GPIO58_LCD_LDD_0, | 113 | GPIOxx_LCD_TFT_16BPP, |
114 | GPIO59_LCD_LDD_1, | ||
115 | GPIO60_LCD_LDD_2, | ||
116 | GPIO61_LCD_LDD_3, | ||
117 | GPIO62_LCD_LDD_4, | ||
118 | GPIO63_LCD_LDD_5, | ||
119 | GPIO64_LCD_LDD_6, | ||
120 | GPIO65_LCD_LDD_7, | ||
121 | GPIO66_LCD_LDD_8, | ||
122 | GPIO67_LCD_LDD_9, | ||
123 | GPIO68_LCD_LDD_10, | ||
124 | GPIO69_LCD_LDD_11, | ||
125 | GPIO70_LCD_LDD_12, | ||
126 | GPIO71_LCD_LDD_13, | ||
127 | GPIO72_LCD_LDD_14, | ||
128 | GPIO73_LCD_LDD_15, | ||
129 | GPIO74_LCD_FCLK, | ||
130 | GPIO75_LCD_LCLK, | ||
131 | GPIO76_LCD_PCLK, | ||
132 | GPIO77_LCD_BIAS, | ||
133 | 114 | ||
134 | /* FFUART */ | 115 | /* FFUART */ |
135 | GPIO34_FFUART_RXD, | 116 | GPIO34_FFUART_RXD, |
diff --git a/arch/arm/mach-pxa/palmz72.c b/arch/arm/mach-pxa/palmz72.c index 1c5d68a9451..3a7925ca394 100644 --- a/arch/arm/mach-pxa/palmz72.c +++ b/arch/arm/mach-pxa/palmz72.c | |||
@@ -95,26 +95,8 @@ static unsigned long palmz72_pin_config[] __initdata = { | |||
95 | GPIO105_KP_MKOUT_2, | 95 | GPIO105_KP_MKOUT_2, |
96 | 96 | ||
97 | /* LCD */ | 97 | /* LCD */ |
98 | GPIO58_LCD_LDD_0, | 98 | GPIOxx_LCD_TFT_16BPP, |
99 | GPIO59_LCD_LDD_1, | 99 | |
100 | GPIO60_LCD_LDD_2, | ||
101 | GPIO61_LCD_LDD_3, | ||
102 | GPIO62_LCD_LDD_4, | ||
103 | GPIO63_LCD_LDD_5, | ||
104 | GPIO64_LCD_LDD_6, | ||
105 | GPIO65_LCD_LDD_7, | ||
106 | GPIO66_LCD_LDD_8, | ||
107 | GPIO67_LCD_LDD_9, | ||
108 | GPIO68_LCD_LDD_10, | ||
109 | GPIO69_LCD_LDD_11, | ||
110 | GPIO70_LCD_LDD_12, | ||
111 | GPIO71_LCD_LDD_13, | ||
112 | GPIO72_LCD_LDD_14, | ||
113 | GPIO73_LCD_LDD_15, | ||
114 | GPIO74_LCD_FCLK, | ||
115 | GPIO75_LCD_LCLK, | ||
116 | GPIO76_LCD_PCLK, | ||
117 | GPIO77_LCD_BIAS, | ||
118 | GPIO20_GPIO, /* bl power */ | 100 | GPIO20_GPIO, /* bl power */ |
119 | GPIO21_GPIO, /* LCD border switch */ | 101 | GPIO21_GPIO, /* LCD border switch */ |
120 | GPIO22_GPIO, /* LCD border color */ | 102 | GPIO22_GPIO, /* LCD border color */ |
diff --git a/arch/arm/mach-pxa/pcm990-baseboard.c b/arch/arm/mach-pxa/pcm990-baseboard.c index d5255ae74fe..9d0ecea1760 100644 --- a/arch/arm/mach-pxa/pcm990-baseboard.c +++ b/arch/arm/mach-pxa/pcm990-baseboard.c | |||
@@ -58,6 +58,12 @@ static unsigned long pcm990_pin_config[] __initdata = { | |||
58 | /* I2C */ | 58 | /* I2C */ |
59 | GPIO117_I2C_SCL, | 59 | GPIO117_I2C_SCL, |
60 | GPIO118_I2C_SDA, | 60 | GPIO118_I2C_SDA, |
61 | |||
62 | /* AC97 */ | ||
63 | GPIO28_AC97_BITCLK, | ||
64 | GPIO29_AC97_SDATA_IN_0, | ||
65 | GPIO30_AC97_SDATA_OUT, | ||
66 | GPIO31_AC97_SYNC, | ||
61 | }; | 67 | }; |
62 | 68 | ||
63 | /* | 69 | /* |
@@ -259,8 +265,7 @@ static void pcm990_irq_handler(unsigned int irq, struct irq_desc *desc) | |||
259 | unsigned long pending = (~PCM990_INTSETCLR) & pcm990_irq_enabled; | 265 | unsigned long pending = (~PCM990_INTSETCLR) & pcm990_irq_enabled; |
260 | 266 | ||
261 | do { | 267 | do { |
262 | GEDR(PCM990_CTRL_INT_IRQ_GPIO) = | 268 | desc->chip->ack(irq); /* clear our parent IRQ */ |
263 | GPIO_bit(PCM990_CTRL_INT_IRQ_GPIO); | ||
264 | if (likely(pending)) { | 269 | if (likely(pending)) { |
265 | irq = PCM027_IRQ(0) + __ffs(pending); | 270 | irq = PCM027_IRQ(0) + __ffs(pending); |
266 | generic_handle_irq(irq); | 271 | generic_handle_irq(irq); |
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index c2b938a4d5c..d58a52415d7 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach-pxa/poodle.c | |||
@@ -91,26 +91,7 @@ static unsigned long poodle_pin_config[] __initdata = { | |||
91 | GPIO35_FFUART_CTS, | 91 | GPIO35_FFUART_CTS, |
92 | 92 | ||
93 | /* LCD */ | 93 | /* LCD */ |
94 | GPIO58_LCD_LDD_0, | 94 | GPIOxx_LCD_TFT_16BPP, |
95 | GPIO59_LCD_LDD_1, | ||
96 | GPIO60_LCD_LDD_2, | ||
97 | GPIO61_LCD_LDD_3, | ||
98 | GPIO62_LCD_LDD_4, | ||
99 | GPIO63_LCD_LDD_5, | ||
100 | GPIO64_LCD_LDD_6, | ||
101 | GPIO65_LCD_LDD_7, | ||
102 | GPIO66_LCD_LDD_8, | ||
103 | GPIO67_LCD_LDD_9, | ||
104 | GPIO68_LCD_LDD_10, | ||
105 | GPIO69_LCD_LDD_11, | ||
106 | GPIO70_LCD_LDD_12, | ||
107 | GPIO71_LCD_LDD_13, | ||
108 | GPIO72_LCD_LDD_14, | ||
109 | GPIO73_LCD_LDD_15, | ||
110 | GPIO74_LCD_FCLK, | ||
111 | GPIO75_LCD_LCLK, | ||
112 | GPIO76_LCD_PCLK, | ||
113 | GPIO77_LCD_BIAS, | ||
114 | 95 | ||
115 | /* PC Card */ | 96 | /* PC Card */ |
116 | GPIO48_nPOE, | 97 | GPIO48_nPOE, |
@@ -193,11 +174,18 @@ static struct resource locomo_resources[] = { | |||
193 | }, | 174 | }, |
194 | }; | 175 | }; |
195 | 176 | ||
177 | static struct locomo_platform_data locomo_info = { | ||
178 | .irq_base = IRQ_BOARD_START, | ||
179 | }; | ||
180 | |||
196 | struct platform_device poodle_locomo_device = { | 181 | struct platform_device poodle_locomo_device = { |
197 | .name = "locomo", | 182 | .name = "locomo", |
198 | .id = 0, | 183 | .id = 0, |
199 | .num_resources = ARRAY_SIZE(locomo_resources), | 184 | .num_resources = ARRAY_SIZE(locomo_resources), |
200 | .resource = locomo_resources, | 185 | .resource = locomo_resources, |
186 | .dev = { | ||
187 | .platform_data = &locomo_info, | ||
188 | }, | ||
201 | }; | 189 | }; |
202 | 190 | ||
203 | EXPORT_SYMBOL(poodle_locomo_device); | 191 | EXPORT_SYMBOL(poodle_locomo_device); |
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c index 6a0b73167e0..7c53543ba2d 100644 --- a/arch/arm/mach-pxa/pxa27x.c +++ b/arch/arm/mach-pxa/pxa27x.c | |||
@@ -40,6 +40,25 @@ void pxa27x_clear_otgph(void) | |||
40 | } | 40 | } |
41 | EXPORT_SYMBOL(pxa27x_clear_otgph); | 41 | EXPORT_SYMBOL(pxa27x_clear_otgph); |
42 | 42 | ||
43 | static unsigned long ac97_reset_config[] = { | ||
44 | GPIO95_AC97_nRESET, | ||
45 | GPIO95_GPIO, | ||
46 | GPIO113_AC97_nRESET, | ||
47 | GPIO113_GPIO, | ||
48 | }; | ||
49 | |||
50 | void pxa27x_assert_ac97reset(int reset_gpio, int on) | ||
51 | { | ||
52 | if (reset_gpio == 113) | ||
53 | pxa2xx_mfp_config(on ? &ac97_reset_config[0] : | ||
54 | &ac97_reset_config[1], 1); | ||
55 | |||
56 | if (reset_gpio == 95) | ||
57 | pxa2xx_mfp_config(on ? &ac97_reset_config[2] : | ||
58 | &ac97_reset_config[3], 1); | ||
59 | } | ||
60 | EXPORT_SYMBOL_GPL(pxa27x_assert_ac97reset); | ||
61 | |||
43 | /* Crystal clock: 13MHz */ | 62 | /* Crystal clock: 13MHz */ |
44 | #define BASE_CLK 13000000 | 63 | #define BASE_CLK 13000000 |
45 | 64 | ||
diff --git a/arch/arm/mach-pxa/raumfeld.c b/arch/arm/mach-pxa/raumfeld.c new file mode 100644 index 00000000000..3184bdc1452 --- /dev/null +++ b/arch/arm/mach-pxa/raumfeld.c | |||
@@ -0,0 +1,1108 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pxa/raumfeld.c | ||
3 | * | ||
4 | * Support for the following Raumfeld devices: | ||
5 | * | ||
6 | * * Controller | ||
7 | * * Connector | ||
8 | * * Speaker S/M | ||
9 | * | ||
10 | * See http://www.raumfeld.com for details. | ||
11 | * | ||
12 | * Copyright (c) 2009 Daniel Mack <daniel@caiaq.de> | ||
13 | * | ||
14 | * This program is free software; you can redistribute it and/or modify | ||
15 | * it under the terms of the GNU General Public License version 2 as | ||
16 | * published by the Free Software Foundation. | ||
17 | */ | ||
18 | |||
19 | #include <linux/init.h> | ||
20 | #include <linux/kernel.h> | ||
21 | #include <linux/sysdev.h> | ||
22 | #include <linux/platform_device.h> | ||
23 | #include <linux/interrupt.h> | ||
24 | #include <linux/gpio.h> | ||
25 | #include <linux/smsc911x.h> | ||
26 | #include <linux/input.h> | ||
27 | #include <linux/rotary_encoder.h> | ||
28 | #include <linux/gpio_keys.h> | ||
29 | #include <linux/input/eeti_ts.h> | ||
30 | #include <linux/leds.h> | ||
31 | #include <linux/w1-gpio.h> | ||
32 | #include <linux/sched.h> | ||
33 | #include <linux/pwm_backlight.h> | ||
34 | #include <linux/i2c.h> | ||
35 | #include <linux/spi/spi.h> | ||
36 | #include <linux/spi/spi_gpio.h> | ||
37 | #include <linux/lis3lv02d.h> | ||
38 | #include <linux/pda_power.h> | ||
39 | #include <linux/power_supply.h> | ||
40 | #include <linux/pda_power.h> | ||
41 | #include <linux/power_supply.h> | ||
42 | #include <linux/regulator/max8660.h> | ||
43 | #include <linux/regulator/machine.h> | ||
44 | #include <linux/regulator/fixed.h> | ||
45 | #include <linux/regulator/consumer.h> | ||
46 | #include <linux/delay.h> | ||
47 | |||
48 | #include <asm/mach-types.h> | ||
49 | #include <asm/mach/arch.h> | ||
50 | |||
51 | #include <mach/hardware.h> | ||
52 | #include <mach/pxa3xx-regs.h> | ||
53 | #include <mach/mfp-pxa3xx.h> | ||
54 | #include <mach/mfp-pxa300.h> | ||
55 | #include <mach/ohci.h> | ||
56 | #include <mach/pxafb.h> | ||
57 | #include <mach/mmc.h> | ||
58 | #include <plat/i2c.h> | ||
59 | #include <plat/pxa3xx_nand.h> | ||
60 | |||
61 | #include "generic.h" | ||
62 | #include "devices.h" | ||
63 | #include "clock.h" | ||
64 | |||
65 | /* common GPIO definitions */ | ||
66 | |||
67 | /* inputs */ | ||
68 | #define GPIO_ON_OFF (14) | ||
69 | #define GPIO_VOLENC_A (19) | ||
70 | #define GPIO_VOLENC_B (20) | ||
71 | #define GPIO_CHARGE_DONE (23) | ||
72 | #define GPIO_CHARGE_IND (27) | ||
73 | #define GPIO_TOUCH_IRQ (32) | ||
74 | #define GPIO_ETH_IRQ (40) | ||
75 | #define GPIO_SPI_MISO (98) | ||
76 | #define GPIO_ACCEL_IRQ (104) | ||
77 | #define GPIO_RESCUE_BOOT (115) | ||
78 | #define GPIO_DOCK_DETECT (116) | ||
79 | #define GPIO_KEY1 (117) | ||
80 | #define GPIO_KEY2 (118) | ||
81 | #define GPIO_KEY3 (119) | ||
82 | #define GPIO_CHARGE_USB_OK (112) | ||
83 | #define GPIO_CHARGE_DC_OK (101) | ||
84 | #define GPIO_CHARGE_USB_SUSP (102) | ||
85 | |||
86 | /* outputs */ | ||
87 | #define GPIO_SHUTDOWN_SUPPLY (16) | ||
88 | #define GPIO_SHUTDOWN_BATT (18) | ||
89 | #define GPIO_CHRG_PEN2 (31) | ||
90 | #define GPIO_TFT_VA_EN (33) | ||
91 | #define GPIO_SPDIF_CS (34) | ||
92 | #define GPIO_LED2 (35) | ||
93 | #define GPIO_LED1 (36) | ||
94 | #define GPIO_SPDIF_RESET (38) | ||
95 | #define GPIO_SPI_CLK (95) | ||
96 | #define GPIO_MCLK_DAC_CS (96) | ||
97 | #define GPIO_SPI_MOSI (97) | ||
98 | #define GPIO_W1_PULLUP_ENABLE (105) | ||
99 | #define GPIO_DISPLAY_ENABLE (106) | ||
100 | #define GPIO_MCLK_RESET (111) | ||
101 | #define GPIO_W2W_RESET (113) | ||
102 | #define GPIO_W2W_PDN (114) | ||
103 | #define GPIO_CODEC_RESET (120) | ||
104 | #define GPIO_AUDIO_VA_ENABLE (124) | ||
105 | #define GPIO_ACCEL_CS (125) | ||
106 | #define GPIO_ONE_WIRE (126) | ||
107 | |||
108 | /* | ||
109 | * GPIO configurations | ||
110 | */ | ||
111 | static mfp_cfg_t raumfeld_controller_pin_config[] __initdata = { | ||
112 | /* UART1 */ | ||
113 | GPIO77_UART1_RXD, | ||
114 | GPIO78_UART1_TXD, | ||
115 | GPIO79_UART1_CTS, | ||
116 | GPIO81_UART1_DSR, | ||
117 | GPIO83_UART1_DTR, | ||
118 | GPIO84_UART1_RTS, | ||
119 | |||
120 | /* UART3 */ | ||
121 | GPIO110_UART3_RXD, | ||
122 | |||
123 | /* USB Host */ | ||
124 | GPIO0_2_USBH_PEN, | ||
125 | GPIO1_2_USBH_PWR, | ||
126 | |||
127 | /* I2C */ | ||
128 | GPIO21_I2C_SCL | MFP_LPM_FLOAT | MFP_PULL_FLOAT, | ||
129 | GPIO22_I2C_SDA | MFP_LPM_FLOAT | MFP_PULL_FLOAT, | ||
130 | |||
131 | /* SPI */ | ||
132 | GPIO34_GPIO, /* SPDIF_CS */ | ||
133 | GPIO96_GPIO, /* MCLK_CS */ | ||
134 | GPIO125_GPIO, /* ACCEL_CS */ | ||
135 | |||
136 | /* MMC */ | ||
137 | GPIO3_MMC1_DAT0, | ||
138 | GPIO4_MMC1_DAT1, | ||
139 | GPIO5_MMC1_DAT2, | ||
140 | GPIO6_MMC1_DAT3, | ||
141 | GPIO7_MMC1_CLK, | ||
142 | GPIO8_MMC1_CMD, | ||
143 | |||
144 | /* One-wire */ | ||
145 | GPIO126_GPIO | MFP_LPM_FLOAT, | ||
146 | GPIO105_GPIO | MFP_PULL_LOW | MFP_LPM_PULL_LOW, | ||
147 | |||
148 | /* CHRG_USB_OK */ | ||
149 | GPIO101_GPIO | MFP_PULL_HIGH, | ||
150 | /* CHRG_USB_OK */ | ||
151 | GPIO112_GPIO | MFP_PULL_HIGH, | ||
152 | /* CHRG_USB_SUSP */ | ||
153 | GPIO102_GPIO, | ||
154 | /* DISPLAY_ENABLE */ | ||
155 | GPIO106_GPIO, | ||
156 | /* DOCK_DETECT */ | ||
157 | GPIO116_GPIO | MFP_LPM_FLOAT | MFP_PULL_FLOAT, | ||
158 | |||
159 | /* LCD */ | ||
160 | GPIO54_LCD_LDD_0, | ||
161 | GPIO55_LCD_LDD_1, | ||
162 | GPIO56_LCD_LDD_2, | ||
163 | GPIO57_LCD_LDD_3, | ||
164 | GPIO58_LCD_LDD_4, | ||
165 | GPIO59_LCD_LDD_5, | ||
166 | GPIO60_LCD_LDD_6, | ||
167 | GPIO61_LCD_LDD_7, | ||
168 | GPIO62_LCD_LDD_8, | ||
169 | GPIO63_LCD_LDD_9, | ||
170 | GPIO64_LCD_LDD_10, | ||
171 | GPIO65_LCD_LDD_11, | ||
172 | GPIO66_LCD_LDD_12, | ||
173 | GPIO67_LCD_LDD_13, | ||
174 | GPIO68_LCD_LDD_14, | ||
175 | GPIO69_LCD_LDD_15, | ||
176 | GPIO70_LCD_LDD_16, | ||
177 | GPIO71_LCD_LDD_17, | ||
178 | GPIO72_LCD_FCLK, | ||
179 | GPIO73_LCD_LCLK, | ||
180 | GPIO74_LCD_PCLK, | ||
181 | GPIO75_LCD_BIAS, | ||
182 | }; | ||
183 | |||
184 | static mfp_cfg_t raumfeld_connector_pin_config[] __initdata = { | ||
185 | /* UART1 */ | ||
186 | GPIO77_UART1_RXD, | ||
187 | GPIO78_UART1_TXD, | ||
188 | GPIO79_UART1_CTS, | ||
189 | GPIO81_UART1_DSR, | ||
190 | GPIO83_UART1_DTR, | ||
191 | GPIO84_UART1_RTS, | ||
192 | |||
193 | /* UART3 */ | ||
194 | GPIO110_UART3_RXD, | ||
195 | |||
196 | /* USB Host */ | ||
197 | GPIO0_2_USBH_PEN, | ||
198 | GPIO1_2_USBH_PWR, | ||
199 | |||
200 | /* I2C */ | ||
201 | GPIO21_I2C_SCL | MFP_LPM_FLOAT | MFP_PULL_FLOAT, | ||
202 | GPIO22_I2C_SDA | MFP_LPM_FLOAT | MFP_PULL_FLOAT, | ||
203 | |||
204 | /* SPI */ | ||
205 | GPIO34_GPIO, /* SPDIF_CS */ | ||
206 | GPIO96_GPIO, /* MCLK_CS */ | ||
207 | GPIO125_GPIO, /* ACCEL_CS */ | ||
208 | |||
209 | /* MMC */ | ||
210 | GPIO3_MMC1_DAT0, | ||
211 | GPIO4_MMC1_DAT1, | ||
212 | GPIO5_MMC1_DAT2, | ||
213 | GPIO6_MMC1_DAT3, | ||
214 | GPIO7_MMC1_CLK, | ||
215 | GPIO8_MMC1_CMD, | ||
216 | |||
217 | /* Ethernet */ | ||
218 | GPIO1_nCS2, /* CS */ | ||
219 | GPIO40_GPIO | MFP_PULL_HIGH, /* IRQ */ | ||
220 | |||
221 | /* SSP for I2S */ | ||
222 | GPIO85_SSP1_SCLK, | ||
223 | GPIO89_SSP1_EXTCLK, | ||
224 | GPIO86_SSP1_FRM, | ||
225 | GPIO87_SSP1_TXD, | ||
226 | GPIO88_SSP1_RXD, | ||
227 | GPIO90_SSP1_SYSCLK, | ||
228 | |||
229 | /* SSP2 for S/PDIF */ | ||
230 | GPIO25_SSP2_SCLK, | ||
231 | GPIO26_SSP2_FRM, | ||
232 | GPIO27_SSP2_TXD, | ||
233 | GPIO29_SSP2_EXTCLK, | ||
234 | |||
235 | /* LEDs */ | ||
236 | GPIO35_GPIO | MFP_LPM_PULL_LOW, | ||
237 | GPIO36_GPIO | MFP_LPM_DRIVE_HIGH, | ||
238 | }; | ||
239 | |||
240 | static mfp_cfg_t raumfeld_speaker_pin_config[] __initdata = { | ||
241 | /* UART1 */ | ||
242 | GPIO77_UART1_RXD, | ||
243 | GPIO78_UART1_TXD, | ||
244 | GPIO79_UART1_CTS, | ||
245 | GPIO81_UART1_DSR, | ||
246 | GPIO83_UART1_DTR, | ||
247 | GPIO84_UART1_RTS, | ||
248 | |||
249 | /* UART3 */ | ||
250 | GPIO110_UART3_RXD, | ||
251 | |||
252 | /* USB Host */ | ||
253 | GPIO0_2_USBH_PEN, | ||
254 | GPIO1_2_USBH_PWR, | ||
255 | |||
256 | /* I2C */ | ||
257 | GPIO21_I2C_SCL | MFP_LPM_FLOAT | MFP_PULL_FLOAT, | ||
258 | GPIO22_I2C_SDA | MFP_LPM_FLOAT | MFP_PULL_FLOAT, | ||
259 | |||
260 | /* SPI */ | ||
261 | GPIO34_GPIO, /* SPDIF_CS */ | ||
262 | GPIO96_GPIO, /* MCLK_CS */ | ||
263 | GPIO125_GPIO, /* ACCEL_CS */ | ||
264 | |||
265 | /* MMC */ | ||
266 | GPIO3_MMC1_DAT0, | ||
267 | GPIO4_MMC1_DAT1, | ||
268 | GPIO5_MMC1_DAT2, | ||
269 | GPIO6_MMC1_DAT3, | ||
270 | GPIO7_MMC1_CLK, | ||
271 | GPIO8_MMC1_CMD, | ||
272 | |||
273 | /* Ethernet */ | ||
274 | GPIO1_nCS2, /* CS */ | ||
275 | GPIO40_GPIO | MFP_PULL_HIGH, /* IRQ */ | ||
276 | |||
277 | /* SSP for I2S */ | ||
278 | GPIO85_SSP1_SCLK, | ||
279 | GPIO89_SSP1_EXTCLK, | ||
280 | GPIO86_SSP1_FRM, | ||
281 | GPIO87_SSP1_TXD, | ||
282 | GPIO88_SSP1_RXD, | ||
283 | GPIO90_SSP1_SYSCLK, | ||
284 | |||
285 | /* LEDs */ | ||
286 | GPIO35_GPIO | MFP_LPM_PULL_LOW, | ||
287 | GPIO36_GPIO | MFP_LPM_DRIVE_HIGH, | ||
288 | }; | ||
289 | |||
290 | /* | ||
291 | * SMSC LAN9220 Ethernet | ||
292 | */ | ||
293 | |||
294 | static struct resource smc91x_resources[] = { | ||
295 | { | ||
296 | .start = PXA3xx_CS2_PHYS, | ||
297 | .end = PXA3xx_CS2_PHYS + 0xfffff, | ||
298 | .flags = IORESOURCE_MEM, | ||
299 | }, | ||
300 | { | ||
301 | .start = gpio_to_irq(GPIO_ETH_IRQ), | ||
302 | .end = gpio_to_irq(GPIO_ETH_IRQ), | ||
303 | .flags = IORESOURCE_IRQ | IRQF_TRIGGER_FALLING, | ||
304 | } | ||
305 | }; | ||
306 | |||
307 | static struct smsc911x_platform_config raumfeld_smsc911x_config = { | ||
308 | .phy_interface = PHY_INTERFACE_MODE_MII, | ||
309 | .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, | ||
310 | .irq_type = SMSC911X_IRQ_TYPE_OPEN_DRAIN, | ||
311 | .flags = SMSC911X_USE_32BIT | SMSC911X_SAVE_MAC_ADDRESS, | ||
312 | }; | ||
313 | |||
314 | static struct platform_device smc91x_device = { | ||
315 | .name = "smsc911x", | ||
316 | .id = -1, | ||
317 | .num_resources = ARRAY_SIZE(smc91x_resources), | ||
318 | .resource = smc91x_resources, | ||
319 | .dev = { | ||
320 | .platform_data = &raumfeld_smsc911x_config, | ||
321 | } | ||
322 | }; | ||
323 | |||
324 | /** | ||
325 | * NAND | ||
326 | */ | ||
327 | |||
328 | static struct mtd_partition raumfeld_nand_partitions[] = { | ||
329 | { | ||
330 | .name = "Bootloader", | ||
331 | .offset = 0, | ||
332 | .size = 0xa0000, | ||
333 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
334 | }, | ||
335 | { | ||
336 | .name = "BootloaderEnvironment", | ||
337 | .offset = 0xa0000, | ||
338 | .size = 0x20000, | ||
339 | }, | ||
340 | { | ||
341 | .name = "BootloaderSplashScreen", | ||
342 | .offset = 0xc0000, | ||
343 | .size = 0x60000, | ||
344 | }, | ||
345 | { | ||
346 | .name = "UBI", | ||
347 | .offset = 0x120000, | ||
348 | .size = MTDPART_SIZ_FULL, | ||
349 | }, | ||
350 | }; | ||
351 | |||
352 | static struct pxa3xx_nand_platform_data raumfeld_nand_info = { | ||
353 | .enable_arbiter = 1, | ||
354 | .keep_config = 1, | ||
355 | .parts = raumfeld_nand_partitions, | ||
356 | .nr_parts = ARRAY_SIZE(raumfeld_nand_partitions), | ||
357 | }; | ||
358 | |||
359 | /** | ||
360 | * USB (OHCI) support | ||
361 | */ | ||
362 | |||
363 | static struct pxaohci_platform_data raumfeld_ohci_info = { | ||
364 | .port_mode = PMM_GLOBAL_MODE, | ||
365 | .flags = ENABLE_PORT1, | ||
366 | }; | ||
367 | |||
368 | /** | ||
369 | * Rotary encoder input device | ||
370 | */ | ||
371 | |||
372 | static struct rotary_encoder_platform_data raumfeld_rotary_encoder_info = { | ||
373 | .steps = 24, | ||
374 | .axis = REL_X, | ||
375 | .relative_axis = 1, | ||
376 | .gpio_a = GPIO_VOLENC_A, | ||
377 | .gpio_b = GPIO_VOLENC_B, | ||
378 | .inverted_a = 1, | ||
379 | .inverted_b = 0, | ||
380 | }; | ||
381 | |||
382 | static struct platform_device rotary_encoder_device = { | ||
383 | .name = "rotary-encoder", | ||
384 | .id = 0, | ||
385 | .dev = { | ||
386 | .platform_data = &raumfeld_rotary_encoder_info, | ||
387 | } | ||
388 | }; | ||
389 | |||
390 | /** | ||
391 | * GPIO buttons | ||
392 | */ | ||
393 | |||
394 | static struct gpio_keys_button gpio_keys_button[] = { | ||
395 | { | ||
396 | .code = KEY_F1, | ||
397 | .type = EV_KEY, | ||
398 | .gpio = GPIO_KEY1, | ||
399 | .active_low = 1, | ||
400 | .wakeup = 0, | ||
401 | .debounce_interval = 5, /* ms */ | ||
402 | .desc = "Button 1", | ||
403 | }, | ||
404 | { | ||
405 | .code = KEY_F2, | ||
406 | .type = EV_KEY, | ||
407 | .gpio = GPIO_KEY2, | ||
408 | .active_low = 1, | ||
409 | .wakeup = 0, | ||
410 | .debounce_interval = 5, /* ms */ | ||
411 | .desc = "Button 2", | ||
412 | }, | ||
413 | { | ||
414 | .code = KEY_F3, | ||
415 | .type = EV_KEY, | ||
416 | .gpio = GPIO_KEY3, | ||
417 | .active_low = 1, | ||
418 | .wakeup = 0, | ||
419 | .debounce_interval = 5, /* ms */ | ||
420 | .desc = "Button 3", | ||
421 | }, | ||
422 | { | ||
423 | .code = KEY_F4, | ||
424 | .type = EV_KEY, | ||
425 | .gpio = GPIO_RESCUE_BOOT, | ||
426 | .active_low = 0, | ||
427 | .wakeup = 0, | ||
428 | .debounce_interval = 5, /* ms */ | ||
429 | .desc = "rescue boot button", | ||
430 | }, | ||
431 | { | ||
432 | .code = KEY_F5, | ||
433 | .type = EV_KEY, | ||
434 | .gpio = GPIO_DOCK_DETECT, | ||
435 | .active_low = 1, | ||
436 | .wakeup = 0, | ||
437 | .debounce_interval = 5, /* ms */ | ||
438 | .desc = "dock detect", | ||
439 | }, | ||
440 | { | ||
441 | .code = KEY_F6, | ||
442 | .type = EV_KEY, | ||
443 | .gpio = GPIO_ON_OFF, | ||
444 | .active_low = 0, | ||
445 | .wakeup = 0, | ||
446 | .debounce_interval = 5, /* ms */ | ||
447 | .desc = "on/off button", | ||
448 | }, | ||
449 | }; | ||
450 | |||
451 | static struct gpio_keys_platform_data gpio_keys_platform_data = { | ||
452 | .buttons = gpio_keys_button, | ||
453 | .nbuttons = ARRAY_SIZE(gpio_keys_button), | ||
454 | .rep = 0, | ||
455 | }; | ||
456 | |||
457 | static struct platform_device raumfeld_gpio_keys_device = { | ||
458 | .name = "gpio-keys", | ||
459 | .id = -1, | ||
460 | .dev = { | ||
461 | .platform_data = &gpio_keys_platform_data, | ||
462 | } | ||
463 | }; | ||
464 | |||
465 | /** | ||
466 | * GPIO LEDs | ||
467 | */ | ||
468 | |||
469 | static struct gpio_led raumfeld_leds[] = { | ||
470 | { | ||
471 | .name = "raumfeld:1", | ||
472 | .gpio = GPIO_LED1, | ||
473 | .active_low = 1, | ||
474 | .default_state = LEDS_GPIO_DEFSTATE_ON, | ||
475 | }, | ||
476 | { | ||
477 | .name = "raumfeld:2", | ||
478 | .gpio = GPIO_LED2, | ||
479 | .active_low = 0, | ||
480 | .default_state = LEDS_GPIO_DEFSTATE_OFF, | ||
481 | } | ||
482 | }; | ||
483 | |||
484 | static struct gpio_led_platform_data raumfeld_led_platform_data = { | ||
485 | .leds = raumfeld_leds, | ||
486 | .num_leds = ARRAY_SIZE(raumfeld_leds), | ||
487 | }; | ||
488 | |||
489 | static struct platform_device raumfeld_led_device = { | ||
490 | .name = "leds-gpio", | ||
491 | .id = -1, | ||
492 | .dev = { | ||
493 | .platform_data = &raumfeld_led_platform_data, | ||
494 | }, | ||
495 | }; | ||
496 | |||
497 | /** | ||
498 | * One-wire (W1 bus) support | ||
499 | */ | ||
500 | |||
501 | static void w1_enable_external_pullup(int enable) | ||
502 | { | ||
503 | gpio_set_value(GPIO_W1_PULLUP_ENABLE, enable); | ||
504 | msleep(100); | ||
505 | } | ||
506 | |||
507 | static struct w1_gpio_platform_data w1_gpio_platform_data = { | ||
508 | .pin = GPIO_ONE_WIRE, | ||
509 | .is_open_drain = 0, | ||
510 | .enable_external_pullup = w1_enable_external_pullup, | ||
511 | }; | ||
512 | |||
513 | struct platform_device raumfeld_w1_gpio_device = { | ||
514 | .name = "w1-gpio", | ||
515 | .dev = { | ||
516 | .platform_data = &w1_gpio_platform_data | ||
517 | } | ||
518 | }; | ||
519 | |||
520 | static void __init raumfeld_w1_init(void) | ||
521 | { | ||
522 | int ret = gpio_request(GPIO_W1_PULLUP_ENABLE, | ||
523 | "W1 external pullup enable"); | ||
524 | |||
525 | if (ret < 0) | ||
526 | pr_warning("Unable to request GPIO_W1_PULLUP_ENABLE\n"); | ||
527 | else | ||
528 | gpio_direction_output(GPIO_W1_PULLUP_ENABLE, 0); | ||
529 | |||
530 | platform_device_register(&raumfeld_w1_gpio_device); | ||
531 | } | ||
532 | |||
533 | /** | ||
534 | * Framebuffer device | ||
535 | */ | ||
536 | |||
537 | /* PWM controlled backlight */ | ||
538 | static struct platform_pwm_backlight_data raumfeld_pwm_backlight_data = { | ||
539 | .pwm_id = 0, | ||
540 | .max_brightness = 100, | ||
541 | .dft_brightness = 100, | ||
542 | /* 10000 ns = 10 ms ^= 100 kHz */ | ||
543 | .pwm_period_ns = 10000, | ||
544 | }; | ||
545 | |||
546 | static struct platform_device raumfeld_pwm_backlight_device = { | ||
547 | .name = "pwm-backlight", | ||
548 | .dev = { | ||
549 | .parent = &pxa27x_device_pwm0.dev, | ||
550 | .platform_data = &raumfeld_pwm_backlight_data, | ||
551 | } | ||
552 | }; | ||
553 | |||
554 | /* LT3593 controlled backlight */ | ||
555 | static struct gpio_led raumfeld_lt3593_led = { | ||
556 | .name = "backlight", | ||
557 | .gpio = mfp_to_gpio(MFP_PIN_GPIO17), | ||
558 | .default_state = LEDS_GPIO_DEFSTATE_ON, | ||
559 | }; | ||
560 | |||
561 | static struct gpio_led_platform_data raumfeld_lt3593_platform_data = { | ||
562 | .leds = &raumfeld_lt3593_led, | ||
563 | .num_leds = 1, | ||
564 | }; | ||
565 | |||
566 | static struct platform_device raumfeld_lt3593_device = { | ||
567 | .name = "leds-lt3593", | ||
568 | .id = -1, | ||
569 | .dev = { | ||
570 | .platform_data = &raumfeld_lt3593_platform_data, | ||
571 | }, | ||
572 | }; | ||
573 | |||
574 | static struct pxafb_mode_info sharp_lq043t3dx02_mode = { | ||
575 | .pixclock = 111000, | ||
576 | .xres = 480, | ||
577 | .yres = 272, | ||
578 | .bpp = 16, | ||
579 | .hsync_len = 4, | ||
580 | .left_margin = 2, | ||
581 | .right_margin = 1, | ||
582 | .vsync_len = 1, | ||
583 | .upper_margin = 3, | ||
584 | .lower_margin = 1, | ||
585 | .sync = 0, | ||
586 | }; | ||
587 | |||
588 | static struct pxafb_mach_info raumfeld_sharp_lcd_info = { | ||
589 | .modes = &sharp_lq043t3dx02_mode, | ||
590 | .num_modes = 1, | ||
591 | .video_mem_size = 0x400000, | ||
592 | .lcd_conn = LCD_COLOR_TFT_16BPP | LCD_PCLK_EDGE_FALL, | ||
593 | }; | ||
594 | |||
595 | static void __init raumfeld_lcd_init(void) | ||
596 | { | ||
597 | int ret; | ||
598 | |||
599 | set_pxa_fb_info(&raumfeld_sharp_lcd_info); | ||
600 | |||
601 | /* Earlier devices had the backlight regulator controlled | ||
602 | * via PWM, later versions use another controller for that */ | ||
603 | if ((system_rev & 0xff) < 2) { | ||
604 | mfp_cfg_t raumfeld_pwm_pin_config = GPIO17_PWM0_OUT; | ||
605 | pxa3xx_mfp_config(&raumfeld_pwm_pin_config, 1); | ||
606 | platform_device_register(&raumfeld_pwm_backlight_device); | ||
607 | } else | ||
608 | platform_device_register(&raumfeld_lt3593_device); | ||
609 | |||
610 | ret = gpio_request(GPIO_TFT_VA_EN, "display VA enable"); | ||
611 | if (ret < 0) | ||
612 | pr_warning("Unable to request GPIO_TFT_VA_EN\n"); | ||
613 | else | ||
614 | gpio_direction_output(GPIO_TFT_VA_EN, 1); | ||
615 | |||
616 | ret = gpio_request(GPIO_DISPLAY_ENABLE, "display enable"); | ||
617 | if (ret < 0) | ||
618 | pr_warning("Unable to request GPIO_DISPLAY_ENABLE\n"); | ||
619 | else | ||
620 | gpio_direction_output(GPIO_DISPLAY_ENABLE, 1); | ||
621 | } | ||
622 | |||
623 | /** | ||
624 | * SPI devices | ||
625 | */ | ||
626 | |||
627 | struct spi_gpio_platform_data raumfeld_spi_platform_data = { | ||
628 | .sck = GPIO_SPI_CLK, | ||
629 | .mosi = GPIO_SPI_MOSI, | ||
630 | .miso = GPIO_SPI_MISO, | ||
631 | .num_chipselect = 3, | ||
632 | }; | ||
633 | |||
634 | static struct platform_device raumfeld_spi_device = { | ||
635 | .name = "spi_gpio", | ||
636 | .id = 0, | ||
637 | .dev = { | ||
638 | .platform_data = &raumfeld_spi_platform_data, | ||
639 | } | ||
640 | }; | ||
641 | |||
642 | static struct lis3lv02d_platform_data lis3_pdata = { | ||
643 | .click_flags = LIS3_CLICK_SINGLE_X | | ||
644 | LIS3_CLICK_SINGLE_Y | | ||
645 | LIS3_CLICK_SINGLE_Z, | ||
646 | .irq_cfg = LIS3_IRQ1_CLICK | LIS3_IRQ2_CLICK, | ||
647 | .wakeup_flags = LIS3_WAKEUP_X_LO | LIS3_WAKEUP_X_HI | | ||
648 | LIS3_WAKEUP_Y_LO | LIS3_WAKEUP_Y_HI | | ||
649 | LIS3_WAKEUP_Z_LO | LIS3_WAKEUP_Z_HI, | ||
650 | .wakeup_thresh = 10, | ||
651 | .click_thresh_x = 10, | ||
652 | .click_thresh_y = 10, | ||
653 | .click_thresh_z = 10, | ||
654 | }; | ||
655 | |||
656 | #define SPI_AK4104 \ | ||
657 | { \ | ||
658 | .modalias = "ak4104", \ | ||
659 | .max_speed_hz = 10000, \ | ||
660 | .bus_num = 0, \ | ||
661 | .chip_select = 0, \ | ||
662 | .controller_data = (void *) GPIO_SPDIF_CS, \ | ||
663 | } | ||
664 | |||
665 | #define SPI_LIS3 \ | ||
666 | { \ | ||
667 | .modalias = "lis3lv02d_spi", \ | ||
668 | .max_speed_hz = 1000000, \ | ||
669 | .bus_num = 0, \ | ||
670 | .chip_select = 1, \ | ||
671 | .controller_data = (void *) GPIO_ACCEL_CS, \ | ||
672 | .platform_data = &lis3_pdata, \ | ||
673 | .irq = gpio_to_irq(GPIO_ACCEL_IRQ), \ | ||
674 | } | ||
675 | |||
676 | #define SPI_DAC7512 \ | ||
677 | { \ | ||
678 | .modalias = "dac7512", \ | ||
679 | .max_speed_hz = 1000000, \ | ||
680 | .bus_num = 0, \ | ||
681 | .chip_select = 2, \ | ||
682 | .controller_data = (void *) GPIO_MCLK_DAC_CS, \ | ||
683 | } | ||
684 | |||
685 | static struct spi_board_info connector_spi_devices[] __initdata = { | ||
686 | SPI_AK4104, | ||
687 | SPI_DAC7512, | ||
688 | }; | ||
689 | |||
690 | static struct spi_board_info speaker_spi_devices[] __initdata = { | ||
691 | SPI_DAC7512, | ||
692 | }; | ||
693 | |||
694 | static struct spi_board_info controller_spi_devices[] __initdata = { | ||
695 | SPI_LIS3, | ||
696 | }; | ||
697 | |||
698 | /** | ||
699 | * MMC for Marvell Libertas 8688 via SDIO | ||
700 | */ | ||
701 | |||
702 | static int raumfeld_mci_init(struct device *dev, irq_handler_t isr, void *data) | ||
703 | { | ||
704 | gpio_set_value(GPIO_W2W_RESET, 1); | ||
705 | gpio_set_value(GPIO_W2W_PDN, 1); | ||
706 | |||
707 | return 0; | ||
708 | } | ||
709 | |||
710 | static void raumfeld_mci_exit(struct device *dev, void *data) | ||
711 | { | ||
712 | gpio_set_value(GPIO_W2W_RESET, 0); | ||
713 | gpio_set_value(GPIO_W2W_PDN, 0); | ||
714 | } | ||
715 | |||
716 | static struct pxamci_platform_data raumfeld_mci_platform_data = { | ||
717 | .init = raumfeld_mci_init, | ||
718 | .exit = raumfeld_mci_exit, | ||
719 | .detect_delay = 20, | ||
720 | .gpio_card_detect = -1, | ||
721 | .gpio_card_ro = -1, | ||
722 | .gpio_power = -1, | ||
723 | }; | ||
724 | |||
725 | /* | ||
726 | * External power / charge logic | ||
727 | */ | ||
728 | |||
729 | static int power_supply_init(struct device *dev) | ||
730 | { | ||
731 | return 0; | ||
732 | } | ||
733 | |||
734 | static void power_supply_exit(struct device *dev) | ||
735 | { | ||
736 | } | ||
737 | |||
738 | static int raumfeld_is_ac_online(void) | ||
739 | { | ||
740 | return !gpio_get_value(GPIO_CHARGE_DC_OK); | ||
741 | } | ||
742 | |||
743 | static int raumfeld_is_usb_online(void) | ||
744 | { | ||
745 | return 0; | ||
746 | } | ||
747 | |||
748 | static char *raumfeld_power_supplicants[] = { "ds2760-battery.0" }; | ||
749 | |||
750 | static struct pda_power_pdata power_supply_info = { | ||
751 | .init = power_supply_init, | ||
752 | .is_ac_online = raumfeld_is_ac_online, | ||
753 | .is_usb_online = raumfeld_is_usb_online, | ||
754 | .exit = power_supply_exit, | ||
755 | .supplied_to = raumfeld_power_supplicants, | ||
756 | .num_supplicants = ARRAY_SIZE(raumfeld_power_supplicants) | ||
757 | }; | ||
758 | |||
759 | static struct resource power_supply_resources[] = { | ||
760 | { | ||
761 | .name = "ac", | ||
762 | .flags = IORESOURCE_IRQ | | ||
763 | IORESOURCE_IRQ_HIGHEDGE | IORESOURCE_IRQ_LOWEDGE, | ||
764 | .start = GPIO_CHARGE_DC_OK, | ||
765 | .end = GPIO_CHARGE_DC_OK, | ||
766 | }, | ||
767 | }; | ||
768 | |||
769 | static irqreturn_t charge_done_irq(int irq, void *dev_id) | ||
770 | { | ||
771 | struct power_supply *psy; | ||
772 | |||
773 | psy = power_supply_get_by_name("ds2760-battery.0"); | ||
774 | |||
775 | if (psy) | ||
776 | power_supply_set_battery_charged(psy); | ||
777 | |||
778 | return IRQ_HANDLED; | ||
779 | } | ||
780 | |||
781 | static struct platform_device raumfeld_power_supply = { | ||
782 | .name = "pda-power", | ||
783 | .id = -1, | ||
784 | .dev = { | ||
785 | .platform_data = &power_supply_info, | ||
786 | }, | ||
787 | .resource = power_supply_resources, | ||
788 | .num_resources = ARRAY_SIZE(power_supply_resources), | ||
789 | }; | ||
790 | |||
791 | static void __init raumfeld_power_init(void) | ||
792 | { | ||
793 | int ret; | ||
794 | |||
795 | /* Set PEN2 high to enable maximum charge current */ | ||
796 | ret = gpio_request(GPIO_CHRG_PEN2, "CHRG_PEN2"); | ||
797 | if (ret < 0) | ||
798 | pr_warning("Unable to request GPIO_CHRG_PEN2\n"); | ||
799 | else | ||
800 | gpio_direction_output(GPIO_CHRG_PEN2, 1); | ||
801 | |||
802 | ret = gpio_request(GPIO_CHARGE_DC_OK, "CABLE_DC_OK"); | ||
803 | if (ret < 0) | ||
804 | pr_warning("Unable to request GPIO_CHARGE_DC_OK\n"); | ||
805 | |||
806 | ret = gpio_request(GPIO_CHARGE_USB_SUSP, "CHARGE_USB_SUSP"); | ||
807 | if (ret < 0) | ||
808 | pr_warning("Unable to request GPIO_CHARGE_USB_SUSP\n"); | ||
809 | else | ||
810 | gpio_direction_output(GPIO_CHARGE_USB_SUSP, 0); | ||
811 | |||
812 | power_supply_resources[0].start = gpio_to_irq(GPIO_CHARGE_DC_OK); | ||
813 | power_supply_resources[0].end = gpio_to_irq(GPIO_CHARGE_DC_OK); | ||
814 | |||
815 | ret = request_irq(gpio_to_irq(GPIO_CHARGE_DONE), | ||
816 | &charge_done_irq, IORESOURCE_IRQ_LOWEDGE, | ||
817 | "charge_done", NULL); | ||
818 | |||
819 | if (ret < 0) | ||
820 | printk(KERN_ERR "%s: unable to register irq %d\n", __func__, | ||
821 | GPIO_CHARGE_DONE); | ||
822 | else | ||
823 | platform_device_register(&raumfeld_power_supply); | ||
824 | } | ||
825 | |||
826 | /* Fixed regulator for AUDIO_VA, 0-0048 maps to the cs4270 codec device */ | ||
827 | |||
828 | static struct regulator_consumer_supply audio_va_consumer_supply = | ||
829 | REGULATOR_SUPPLY("va", "0-0048"); | ||
830 | |||
831 | struct regulator_init_data audio_va_initdata = { | ||
832 | .consumer_supplies = &audio_va_consumer_supply, | ||
833 | .num_consumer_supplies = 1, | ||
834 | .constraints = { | ||
835 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | ||
836 | }, | ||
837 | }; | ||
838 | |||
839 | static struct fixed_voltage_config audio_va_config = { | ||
840 | .supply_name = "audio_va", | ||
841 | .microvolts = 5000000, | ||
842 | .gpio = GPIO_AUDIO_VA_ENABLE, | ||
843 | .enable_high = 1, | ||
844 | .enabled_at_boot = 0, | ||
845 | .init_data = &audio_va_initdata, | ||
846 | }; | ||
847 | |||
848 | static struct platform_device audio_va_device = { | ||
849 | .name = "reg-fixed-voltage", | ||
850 | .id = 0, | ||
851 | .dev = { | ||
852 | .platform_data = &audio_va_config, | ||
853 | }, | ||
854 | }; | ||
855 | |||
856 | /* Dummy supplies for Codec's VD/VLC */ | ||
857 | |||
858 | static struct regulator_consumer_supply audio_dummy_supplies[] = { | ||
859 | REGULATOR_SUPPLY("vd", "0-0048"), | ||
860 | REGULATOR_SUPPLY("vlc", "0-0048"), | ||
861 | }; | ||
862 | |||
863 | struct regulator_init_data audio_dummy_initdata = { | ||
864 | .consumer_supplies = audio_dummy_supplies, | ||
865 | .num_consumer_supplies = ARRAY_SIZE(audio_dummy_supplies), | ||
866 | .constraints = { | ||
867 | .valid_ops_mask = REGULATOR_CHANGE_STATUS, | ||
868 | }, | ||
869 | }; | ||
870 | |||
871 | static struct fixed_voltage_config audio_dummy_config = { | ||
872 | .supply_name = "audio_vd", | ||
873 | .microvolts = 3300000, | ||
874 | .gpio = -1, | ||
875 | .init_data = &audio_dummy_initdata, | ||
876 | }; | ||
877 | |||
878 | static struct platform_device audio_supply_dummy_device = { | ||
879 | .name = "reg-fixed-voltage", | ||
880 | .id = 1, | ||
881 | .dev = { | ||
882 | .platform_data = &audio_dummy_config, | ||
883 | }, | ||
884 | }; | ||
885 | |||
886 | static struct platform_device *audio_regulator_devices[] = { | ||
887 | &audio_va_device, | ||
888 | &audio_supply_dummy_device, | ||
889 | }; | ||
890 | |||
891 | /** | ||
892 | * Regulator support via MAX8660 | ||
893 | */ | ||
894 | |||
895 | static struct regulator_consumer_supply vcc_mmc_supply = | ||
896 | REGULATOR_SUPPLY("vmmc", "pxa2xx-mci.0"); | ||
897 | |||
898 | static struct regulator_init_data vcc_mmc_init_data = { | ||
899 | .constraints = { | ||
900 | .min_uV = 3300000, | ||
901 | .max_uV = 3300000, | ||
902 | .valid_modes_mask = REGULATOR_MODE_NORMAL, | ||
903 | .valid_ops_mask = REGULATOR_CHANGE_STATUS | | ||
904 | REGULATOR_CHANGE_VOLTAGE | | ||
905 | REGULATOR_CHANGE_MODE, | ||
906 | }, | ||
907 | .consumer_supplies = &vcc_mmc_supply, | ||
908 | .num_consumer_supplies = 1, | ||
909 | }; | ||
910 | |||
911 | struct max8660_subdev_data max8660_v6_subdev_data = { | ||
912 | .id = MAX8660_V6, | ||
913 | .name = "vmmc", | ||
914 | .platform_data = &vcc_mmc_init_data, | ||
915 | }; | ||
916 | |||
917 | static struct max8660_platform_data max8660_pdata = { | ||
918 | .subdevs = &max8660_v6_subdev_data, | ||
919 | .num_subdevs = 1, | ||
920 | }; | ||
921 | |||
922 | /** | ||
923 | * I2C devices | ||
924 | */ | ||
925 | |||
926 | static struct i2c_board_info raumfeld_pwri2c_board_info = { | ||
927 | .type = "max8660", | ||
928 | .addr = 0x34, | ||
929 | .platform_data = &max8660_pdata, | ||
930 | }; | ||
931 | |||
932 | static struct i2c_board_info raumfeld_connector_i2c_board_info __initdata = { | ||
933 | .type = "cs4270", | ||
934 | .addr = 0x48, | ||
935 | }; | ||
936 | |||
937 | static struct eeti_ts_platform_data eeti_ts_pdata = { | ||
938 | .irq_active_high = 1, | ||
939 | }; | ||
940 | |||
941 | static struct i2c_board_info raumfeld_controller_i2c_board_info __initdata = { | ||
942 | .type = "eeti_ts", | ||
943 | .addr = 0x0a, | ||
944 | .irq = gpio_to_irq(GPIO_TOUCH_IRQ), | ||
945 | .platform_data = &eeti_ts_pdata, | ||
946 | }; | ||
947 | |||
948 | static struct platform_device *raumfeld_common_devices[] = { | ||
949 | &raumfeld_gpio_keys_device, | ||
950 | &raumfeld_led_device, | ||
951 | &raumfeld_spi_device, | ||
952 | }; | ||
953 | |||
954 | static void __init raumfeld_audio_init(void) | ||
955 | { | ||
956 | int ret; | ||
957 | |||
958 | ret = gpio_request(GPIO_CODEC_RESET, "cs4270 reset"); | ||
959 | if (ret < 0) | ||
960 | pr_warning("unable to request GPIO_CODEC_RESET\n"); | ||
961 | else | ||
962 | gpio_direction_output(GPIO_CODEC_RESET, 1); | ||
963 | |||
964 | ret = gpio_request(GPIO_SPDIF_RESET, "ak4104 s/pdif reset"); | ||
965 | if (ret < 0) | ||
966 | pr_warning("unable to request GPIO_SPDIF_RESET\n"); | ||
967 | else | ||
968 | gpio_direction_output(GPIO_SPDIF_RESET, 1); | ||
969 | |||
970 | ret = gpio_request(GPIO_MCLK_RESET, "MCLK reset"); | ||
971 | if (ret < 0) | ||
972 | pr_warning("unable to request GPIO_MCLK_RESET\n"); | ||
973 | else | ||
974 | gpio_direction_output(GPIO_MCLK_RESET, 1); | ||
975 | |||
976 | platform_add_devices(ARRAY_AND_SIZE(audio_regulator_devices)); | ||
977 | } | ||
978 | |||
979 | static void __init raumfeld_common_init(void) | ||
980 | { | ||
981 | int ret; | ||
982 | |||
983 | /* The on/off button polarity has changed after revision 1 */ | ||
984 | if ((system_rev & 0xff) > 1) { | ||
985 | int i; | ||
986 | |||
987 | for (i = 0; i < ARRAY_SIZE(gpio_keys_button); i++) | ||
988 | if (!strcmp(gpio_keys_button[i].desc, "on/off button")) | ||
989 | gpio_keys_button[i].active_low = 1; | ||
990 | } | ||
991 | |||
992 | enable_irq_wake(IRQ_WAKEUP0); | ||
993 | |||
994 | pxa3xx_set_nand_info(&raumfeld_nand_info); | ||
995 | pxa3xx_set_i2c_power_info(NULL); | ||
996 | pxa_set_ohci_info(&raumfeld_ohci_info); | ||
997 | pxa_set_mci_info(&raumfeld_mci_platform_data); | ||
998 | pxa_set_i2c_info(NULL); | ||
999 | pxa_set_ffuart_info(NULL); | ||
1000 | |||
1001 | ret = gpio_request(GPIO_W2W_RESET, "Wi2Wi reset"); | ||
1002 | if (ret < 0) | ||
1003 | pr_warning("Unable to request GPIO_W2W_RESET\n"); | ||
1004 | else | ||
1005 | gpio_direction_output(GPIO_W2W_RESET, 0); | ||
1006 | |||
1007 | ret = gpio_request(GPIO_W2W_PDN, "Wi2Wi powerup"); | ||
1008 | if (ret < 0) | ||
1009 | pr_warning("Unable to request GPIO_W2W_PDN\n"); | ||
1010 | else | ||
1011 | gpio_direction_output(GPIO_W2W_PDN, 0); | ||
1012 | |||
1013 | /* this can be used to switch off the device */ | ||
1014 | ret = gpio_request(GPIO_SHUTDOWN_SUPPLY, | ||
1015 | "supply shutdown"); | ||
1016 | if (ret < 0) | ||
1017 | pr_warning("Unable to request GPIO_SHUTDOWN_SUPPLY\n"); | ||
1018 | else | ||
1019 | gpio_direction_output(GPIO_SHUTDOWN_SUPPLY, 0); | ||
1020 | |||
1021 | platform_add_devices(ARRAY_AND_SIZE(raumfeld_common_devices)); | ||
1022 | i2c_register_board_info(1, &raumfeld_pwri2c_board_info, 1); | ||
1023 | } | ||
1024 | |||
1025 | static void __init raumfeld_controller_init(void) | ||
1026 | { | ||
1027 | int ret; | ||
1028 | |||
1029 | pxa3xx_mfp_config(ARRAY_AND_SIZE(raumfeld_controller_pin_config)); | ||
1030 | platform_device_register(&rotary_encoder_device); | ||
1031 | spi_register_board_info(ARRAY_AND_SIZE(controller_spi_devices)); | ||
1032 | i2c_register_board_info(0, &raumfeld_controller_i2c_board_info, 1); | ||
1033 | |||
1034 | ret = gpio_request(GPIO_SHUTDOWN_BATT, "battery shutdown"); | ||
1035 | if (ret < 0) | ||
1036 | pr_warning("Unable to request GPIO_SHUTDOWN_BATT\n"); | ||
1037 | else | ||
1038 | gpio_direction_output(GPIO_SHUTDOWN_BATT, 0); | ||
1039 | |||
1040 | raumfeld_common_init(); | ||
1041 | raumfeld_power_init(); | ||
1042 | raumfeld_lcd_init(); | ||
1043 | raumfeld_w1_init(); | ||
1044 | } | ||
1045 | |||
1046 | static void __init raumfeld_connector_init(void) | ||
1047 | { | ||
1048 | pxa3xx_mfp_config(ARRAY_AND_SIZE(raumfeld_connector_pin_config)); | ||
1049 | spi_register_board_info(ARRAY_AND_SIZE(connector_spi_devices)); | ||
1050 | i2c_register_board_info(0, &raumfeld_connector_i2c_board_info, 1); | ||
1051 | |||
1052 | platform_device_register(&smc91x_device); | ||
1053 | |||
1054 | raumfeld_audio_init(); | ||
1055 | raumfeld_common_init(); | ||
1056 | } | ||
1057 | |||
1058 | static void __init raumfeld_speaker_init(void) | ||
1059 | { | ||
1060 | pxa3xx_mfp_config(ARRAY_AND_SIZE(raumfeld_speaker_pin_config)); | ||
1061 | spi_register_board_info(ARRAY_AND_SIZE(speaker_spi_devices)); | ||
1062 | i2c_register_board_info(0, &raumfeld_connector_i2c_board_info, 1); | ||
1063 | |||
1064 | platform_device_register(&smc91x_device); | ||
1065 | platform_device_register(&rotary_encoder_device); | ||
1066 | |||
1067 | raumfeld_audio_init(); | ||
1068 | raumfeld_common_init(); | ||
1069 | } | ||
1070 | |||
1071 | /* physical memory regions */ | ||
1072 | #define RAUMFELD_SDRAM_BASE 0xa0000000 /* SDRAM region */ | ||
1073 | |||
1074 | #ifdef CONFIG_MACH_RAUMFELD_RC | ||
1075 | MACHINE_START(RAUMFELD_RC, "Raumfeld Controller") | ||
1076 | .phys_io = 0x40000000, | ||
1077 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
1078 | .boot_params = RAUMFELD_SDRAM_BASE + 0x100, | ||
1079 | .init_machine = raumfeld_controller_init, | ||
1080 | .map_io = pxa_map_io, | ||
1081 | .init_irq = pxa3xx_init_irq, | ||
1082 | .timer = &pxa_timer, | ||
1083 | MACHINE_END | ||
1084 | #endif | ||
1085 | |||
1086 | #ifdef CONFIG_MACH_RAUMFELD_CONNECTOR | ||
1087 | MACHINE_START(RAUMFELD_CONNECTOR, "Raumfeld Connector") | ||
1088 | .phys_io = 0x40000000, | ||
1089 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
1090 | .boot_params = RAUMFELD_SDRAM_BASE + 0x100, | ||
1091 | .init_machine = raumfeld_connector_init, | ||
1092 | .map_io = pxa_map_io, | ||
1093 | .init_irq = pxa3xx_init_irq, | ||
1094 | .timer = &pxa_timer, | ||
1095 | MACHINE_END | ||
1096 | #endif | ||
1097 | |||
1098 | #ifdef CONFIG_MACH_RAUMFELD_SPEAKER | ||
1099 | MACHINE_START(RAUMFELD_SPEAKER, "Raumfeld Speaker") | ||
1100 | .phys_io = 0x40000000, | ||
1101 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
1102 | .boot_params = RAUMFELD_SDRAM_BASE + 0x100, | ||
1103 | .init_machine = raumfeld_speaker_init, | ||
1104 | .map_io = pxa_map_io, | ||
1105 | .init_irq = pxa3xx_init_irq, | ||
1106 | .timer = &pxa_timer, | ||
1107 | MACHINE_END | ||
1108 | #endif | ||
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 28352c0b8c3..19b5109d980 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c | |||
@@ -56,25 +56,7 @@ static unsigned long spitz_pin_config[] __initdata = { | |||
56 | GPIO80_nCS_4, /* SCOOP #1 */ | 56 | GPIO80_nCS_4, /* SCOOP #1 */ |
57 | 57 | ||
58 | /* LCD - 16bpp Active TFT */ | 58 | /* LCD - 16bpp Active TFT */ |
59 | GPIO58_LCD_LDD_0, | 59 | GPIOxx_LCD_TFT_16BPP, |
60 | GPIO59_LCD_LDD_1, | ||
61 | GPIO60_LCD_LDD_2, | ||
62 | GPIO61_LCD_LDD_3, | ||
63 | GPIO62_LCD_LDD_4, | ||
64 | GPIO63_LCD_LDD_5, | ||
65 | GPIO64_LCD_LDD_6, | ||
66 | GPIO65_LCD_LDD_7, | ||
67 | GPIO66_LCD_LDD_8, | ||
68 | GPIO67_LCD_LDD_9, | ||
69 | GPIO68_LCD_LDD_10, | ||
70 | GPIO69_LCD_LDD_11, | ||
71 | GPIO70_LCD_LDD_12, | ||
72 | GPIO71_LCD_LDD_13, | ||
73 | GPIO72_LCD_LDD_14, | ||
74 | GPIO73_LCD_LDD_15, | ||
75 | GPIO74_LCD_FCLK, | ||
76 | GPIO75_LCD_LCLK, | ||
77 | GPIO76_LCD_PCLK, | ||
78 | 60 | ||
79 | /* PC Card */ | 61 | /* PC Card */ |
80 | GPIO48_nPOE, | 62 | GPIO48_nPOE, |
diff --git a/arch/arm/mach-pxa/ssp.c b/arch/arm/mach-pxa/ssp.c index 9ebe658590f..a81d6dbf662 100644 --- a/arch/arm/mach-pxa/ssp.c +++ b/arch/arm/mach-pxa/ssp.c | |||
@@ -35,6 +35,8 @@ | |||
35 | #include <mach/ssp.h> | 35 | #include <mach/ssp.h> |
36 | #include <mach/regs-ssp.h> | 36 | #include <mach/regs-ssp.h> |
37 | 37 | ||
38 | #ifdef CONFIG_PXA_SSP_LEGACY | ||
39 | |||
38 | #define TIMEOUT 100000 | 40 | #define TIMEOUT 100000 |
39 | 41 | ||
40 | static irqreturn_t ssp_interrupt(int irq, void *dev_id) | 42 | static irqreturn_t ssp_interrupt(int irq, void *dev_id) |
@@ -303,6 +305,7 @@ void ssp_exit(struct ssp_dev *dev) | |||
303 | clk_disable(ssp->clk); | 305 | clk_disable(ssp->clk); |
304 | ssp_free(ssp); | 306 | ssp_free(ssp); |
305 | } | 307 | } |
308 | #endif /* CONFIG_PXA_SSP_LEGACY */ | ||
306 | 309 | ||
307 | static DEFINE_MUTEX(ssp_lock); | 310 | static DEFINE_MUTEX(ssp_lock); |
308 | static LIST_HEAD(ssp_list); | 311 | static LIST_HEAD(ssp_list); |
@@ -488,6 +491,7 @@ static void __exit pxa_ssp_exit(void) | |||
488 | arch_initcall(pxa_ssp_init); | 491 | arch_initcall(pxa_ssp_init); |
489 | module_exit(pxa_ssp_exit); | 492 | module_exit(pxa_ssp_exit); |
490 | 493 | ||
494 | #ifdef CONFIG_PXA_SSP_LEGACY | ||
491 | EXPORT_SYMBOL(ssp_write_word); | 495 | EXPORT_SYMBOL(ssp_write_word); |
492 | EXPORT_SYMBOL(ssp_read_word); | 496 | EXPORT_SYMBOL(ssp_read_word); |
493 | EXPORT_SYMBOL(ssp_flush); | 497 | EXPORT_SYMBOL(ssp_flush); |
@@ -498,6 +502,7 @@ EXPORT_SYMBOL(ssp_restore_state); | |||
498 | EXPORT_SYMBOL(ssp_init); | 502 | EXPORT_SYMBOL(ssp_init); |
499 | EXPORT_SYMBOL(ssp_exit); | 503 | EXPORT_SYMBOL(ssp_exit); |
500 | EXPORT_SYMBOL(ssp_config); | 504 | EXPORT_SYMBOL(ssp_config); |
505 | #endif | ||
501 | 506 | ||
502 | MODULE_DESCRIPTION("PXA SSP driver"); | 507 | MODULE_DESCRIPTION("PXA SSP driver"); |
503 | MODULE_AUTHOR("Liam Girdwood"); | 508 | MODULE_AUTHOR("Liam Girdwood"); |
diff --git a/arch/arm/mach-pxa/time.c b/arch/arm/mach-pxa/time.c index 750c448db67..293e40aeaf2 100644 --- a/arch/arm/mach-pxa/time.c +++ b/arch/arm/mach-pxa/time.c | |||
@@ -76,14 +76,12 @@ pxa_ost0_interrupt(int irq, void *dev_id) | |||
76 | static int | 76 | static int |
77 | pxa_osmr0_set_next_event(unsigned long delta, struct clock_event_device *dev) | 77 | pxa_osmr0_set_next_event(unsigned long delta, struct clock_event_device *dev) |
78 | { | 78 | { |
79 | unsigned long flags, next, oscr; | 79 | unsigned long next, oscr; |
80 | 80 | ||
81 | raw_local_irq_save(flags); | ||
82 | OIER |= OIER_E0; | 81 | OIER |= OIER_E0; |
83 | next = OSCR + delta; | 82 | next = OSCR + delta; |
84 | OSMR0 = next; | 83 | OSMR0 = next; |
85 | oscr = OSCR; | 84 | oscr = OSCR; |
86 | raw_local_irq_restore(flags); | ||
87 | 85 | ||
88 | return (signed)(next - oscr) <= MIN_OSCR_DELTA ? -ETIME : 0; | 86 | return (signed)(next - oscr) <= MIN_OSCR_DELTA ? -ETIME : 0; |
89 | } | 87 | } |
@@ -91,23 +89,17 @@ pxa_osmr0_set_next_event(unsigned long delta, struct clock_event_device *dev) | |||
91 | static void | 89 | static void |
92 | pxa_osmr0_set_mode(enum clock_event_mode mode, struct clock_event_device *dev) | 90 | pxa_osmr0_set_mode(enum clock_event_mode mode, struct clock_event_device *dev) |
93 | { | 91 | { |
94 | unsigned long irqflags; | ||
95 | |||
96 | switch (mode) { | 92 | switch (mode) { |
97 | case CLOCK_EVT_MODE_ONESHOT: | 93 | case CLOCK_EVT_MODE_ONESHOT: |
98 | raw_local_irq_save(irqflags); | ||
99 | OIER &= ~OIER_E0; | 94 | OIER &= ~OIER_E0; |
100 | OSSR = OSSR_M0; | 95 | OSSR = OSSR_M0; |
101 | raw_local_irq_restore(irqflags); | ||
102 | break; | 96 | break; |
103 | 97 | ||
104 | case CLOCK_EVT_MODE_UNUSED: | 98 | case CLOCK_EVT_MODE_UNUSED: |
105 | case CLOCK_EVT_MODE_SHUTDOWN: | 99 | case CLOCK_EVT_MODE_SHUTDOWN: |
106 | /* initializing, released, or preparing for suspend */ | 100 | /* initializing, released, or preparing for suspend */ |
107 | raw_local_irq_save(irqflags); | ||
108 | OIER &= ~OIER_E0; | 101 | OIER &= ~OIER_E0; |
109 | OSSR = OSSR_M0; | 102 | OSSR = OSSR_M0; |
110 | raw_local_irq_restore(irqflags); | ||
111 | break; | 103 | break; |
112 | 104 | ||
113 | case CLOCK_EVT_MODE_RESUME: | 105 | case CLOCK_EVT_MODE_RESUME: |
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index c854c168a45..ad552791c4c 100644 --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/mach-pxa/tosa.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/gpio.h> | 32 | #include <linux/gpio.h> |
33 | #include <linux/pda_power.h> | 33 | #include <linux/pda_power.h> |
34 | #include <linux/spi/spi.h> | 34 | #include <linux/spi/spi.h> |
35 | #include <linux/input/matrix_keypad.h> | ||
35 | 36 | ||
36 | #include <asm/setup.h> | 37 | #include <asm/setup.h> |
37 | #include <asm/mach-types.h> | 38 | #include <asm/mach-types.h> |
@@ -131,24 +132,24 @@ static unsigned long tosa_pin_config[] = { | |||
131 | GPIO45_BTUART_RTS, | 132 | GPIO45_BTUART_RTS, |
132 | 133 | ||
133 | /* Keybd */ | 134 | /* Keybd */ |
134 | GPIO58_GPIO | MFP_LPM_DRIVE_LOW, | 135 | GPIO58_GPIO | MFP_LPM_DRIVE_LOW, /* Column 0 */ |
135 | GPIO59_GPIO | MFP_LPM_DRIVE_LOW, | 136 | GPIO59_GPIO | MFP_LPM_DRIVE_LOW, /* Column 1 */ |
136 | GPIO60_GPIO | MFP_LPM_DRIVE_LOW, | 137 | GPIO60_GPIO | MFP_LPM_DRIVE_LOW, /* Column 2 */ |
137 | GPIO61_GPIO | MFP_LPM_DRIVE_LOW, | 138 | GPIO61_GPIO | MFP_LPM_DRIVE_LOW, /* Column 3 */ |
138 | GPIO62_GPIO | MFP_LPM_DRIVE_LOW, | 139 | GPIO62_GPIO | MFP_LPM_DRIVE_LOW, /* Column 4 */ |
139 | GPIO63_GPIO | MFP_LPM_DRIVE_LOW, | 140 | GPIO63_GPIO | MFP_LPM_DRIVE_LOW, /* Column 5 */ |
140 | GPIO64_GPIO | MFP_LPM_DRIVE_LOW, | 141 | GPIO64_GPIO | MFP_LPM_DRIVE_LOW, /* Column 6 */ |
141 | GPIO65_GPIO | MFP_LPM_DRIVE_LOW, | 142 | GPIO65_GPIO | MFP_LPM_DRIVE_LOW, /* Column 7 */ |
142 | GPIO66_GPIO | MFP_LPM_DRIVE_LOW, | 143 | GPIO66_GPIO | MFP_LPM_DRIVE_LOW, /* Column 8 */ |
143 | GPIO67_GPIO | MFP_LPM_DRIVE_LOW, | 144 | GPIO67_GPIO | MFP_LPM_DRIVE_LOW, /* Column 9 */ |
144 | GPIO68_GPIO | MFP_LPM_DRIVE_LOW, | 145 | GPIO68_GPIO | MFP_LPM_DRIVE_LOW, /* Column 10 */ |
145 | GPIO69_GPIO | MFP_LPM_DRIVE_LOW, | 146 | GPIO69_GPIO | MFP_LPM_DRIVE_LOW, /* Row 0 */ |
146 | GPIO70_GPIO | MFP_LPM_DRIVE_LOW, | 147 | GPIO70_GPIO | MFP_LPM_DRIVE_LOW, /* Row 1 */ |
147 | GPIO71_GPIO | MFP_LPM_DRIVE_LOW, | 148 | GPIO71_GPIO | MFP_LPM_DRIVE_LOW, /* Row 2 */ |
148 | GPIO72_GPIO | MFP_LPM_DRIVE_LOW, | 149 | GPIO72_GPIO | MFP_LPM_DRIVE_LOW, /* Row 3 */ |
149 | GPIO73_GPIO | MFP_LPM_DRIVE_LOW, | 150 | GPIO73_GPIO | MFP_LPM_DRIVE_LOW, /* Row 4 */ |
150 | GPIO74_GPIO | MFP_LPM_DRIVE_LOW, | 151 | GPIO74_GPIO | MFP_LPM_DRIVE_LOW, /* Row 5 */ |
151 | GPIO75_GPIO | MFP_LPM_DRIVE_LOW, | 152 | GPIO75_GPIO | MFP_LPM_DRIVE_LOW, /* Row 6 */ |
152 | 153 | ||
153 | /* SPI */ | 154 | /* SPI */ |
154 | GPIO81_SSP2_CLK_OUT, | 155 | GPIO81_SSP2_CLK_OUT, |
@@ -411,9 +412,87 @@ static struct platform_device tosa_power_device = { | |||
411 | /* | 412 | /* |
412 | * Tosa Keyboard | 413 | * Tosa Keyboard |
413 | */ | 414 | */ |
415 | static const uint32_t tosakbd_keymap[] = { | ||
416 | KEY(0, 2, KEY_W), | ||
417 | KEY(0, 6, KEY_K), | ||
418 | KEY(0, 7, KEY_BACKSPACE), | ||
419 | KEY(0, 8, KEY_P), | ||
420 | KEY(1, 1, KEY_Q), | ||
421 | KEY(1, 2, KEY_E), | ||
422 | KEY(1, 3, KEY_T), | ||
423 | KEY(1, 4, KEY_Y), | ||
424 | KEY(1, 6, KEY_O), | ||
425 | KEY(1, 7, KEY_I), | ||
426 | KEY(1, 8, KEY_COMMA), | ||
427 | KEY(2, 1, KEY_A), | ||
428 | KEY(2, 2, KEY_D), | ||
429 | KEY(2, 3, KEY_G), | ||
430 | KEY(2, 4, KEY_U), | ||
431 | KEY(2, 6, KEY_L), | ||
432 | KEY(2, 7, KEY_ENTER), | ||
433 | KEY(2, 8, KEY_DOT), | ||
434 | KEY(3, 1, KEY_Z), | ||
435 | KEY(3, 2, KEY_C), | ||
436 | KEY(3, 3, KEY_V), | ||
437 | KEY(3, 4, KEY_J), | ||
438 | KEY(3, 5, TOSA_KEY_ADDRESSBOOK), | ||
439 | KEY(3, 6, TOSA_KEY_CANCEL), | ||
440 | KEY(3, 7, TOSA_KEY_CENTER), | ||
441 | KEY(3, 8, TOSA_KEY_OK), | ||
442 | KEY(3, 9, KEY_LEFTSHIFT), | ||
443 | KEY(4, 1, KEY_S), | ||
444 | KEY(4, 2, KEY_R), | ||
445 | KEY(4, 3, KEY_B), | ||
446 | KEY(4, 4, KEY_N), | ||
447 | KEY(4, 5, TOSA_KEY_CALENDAR), | ||
448 | KEY(4, 6, TOSA_KEY_HOMEPAGE), | ||
449 | KEY(4, 7, KEY_LEFTCTRL), | ||
450 | KEY(4, 8, TOSA_KEY_LIGHT), | ||
451 | KEY(4, 10, KEY_RIGHTSHIFT), | ||
452 | KEY(5, 1, KEY_TAB), | ||
453 | KEY(5, 2, KEY_SLASH), | ||
454 | KEY(5, 3, KEY_H), | ||
455 | KEY(5, 4, KEY_M), | ||
456 | KEY(5, 5, TOSA_KEY_MENU), | ||
457 | KEY(5, 7, KEY_UP), | ||
458 | KEY(5, 11, TOSA_KEY_FN), | ||
459 | KEY(6, 1, KEY_X), | ||
460 | KEY(6, 2, KEY_F), | ||
461 | KEY(6, 3, KEY_SPACE), | ||
462 | KEY(6, 4, KEY_APOSTROPHE), | ||
463 | KEY(6, 5, TOSA_KEY_MAIL), | ||
464 | KEY(6, 6, KEY_LEFT), | ||
465 | KEY(6, 7, KEY_DOWN), | ||
466 | KEY(6, 8, KEY_RIGHT), | ||
467 | }; | ||
468 | |||
469 | static struct matrix_keymap_data tosakbd_keymap_data = { | ||
470 | .keymap = tosakbd_keymap, | ||
471 | .keymap_size = ARRAY_SIZE(tosakbd_keymap), | ||
472 | }; | ||
473 | |||
474 | static const int tosakbd_col_gpios[] = | ||
475 | { 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68 }; | ||
476 | static const int tosakbd_row_gpios[] = | ||
477 | { 69, 70, 71, 72, 73, 74, 75 }; | ||
478 | |||
479 | static struct matrix_keypad_platform_data tosakbd_pdata = { | ||
480 | .keymap_data = &tosakbd_keymap_data, | ||
481 | .row_gpios = tosakbd_row_gpios, | ||
482 | .col_gpios = tosakbd_col_gpios, | ||
483 | .num_row_gpios = ARRAY_SIZE(tosakbd_row_gpios), | ||
484 | .num_col_gpios = ARRAY_SIZE(tosakbd_col_gpios), | ||
485 | .col_scan_delay_us = 10, | ||
486 | .debounce_ms = 10, | ||
487 | .wakeup = 1, | ||
488 | }; | ||
489 | |||
414 | static struct platform_device tosakbd_device = { | 490 | static struct platform_device tosakbd_device = { |
415 | .name = "tosa-keyboard", | 491 | .name = "matrix-keypad", |
416 | .id = -1, | 492 | .id = -1, |
493 | .dev = { | ||
494 | .platform_data = &tosakbd_pdata, | ||
495 | }, | ||
417 | }; | 496 | }; |
418 | 497 | ||
419 | static struct gpio_keys_button tosa_gpio_keys[] = { | 498 | static struct gpio_keys_button tosa_gpio_keys[] = { |
diff --git a/arch/arm/mach-pxa/trizeps4.c b/arch/arm/mach-pxa/trizeps4.c index 0aa858ebc57..797f2544d0c 100644 --- a/arch/arm/mach-pxa/trizeps4.c +++ b/arch/arm/mach-pxa/trizeps4.c | |||
@@ -72,27 +72,14 @@ static unsigned long trizeps4_pin_config[] __initdata = { | |||
72 | GPIO79_nCS_3, /* Logic CS */ | 72 | GPIO79_nCS_3, /* Logic CS */ |
73 | GPIO0_GPIO | WAKEUP_ON_EDGE_RISE, /* Logic irq */ | 73 | GPIO0_GPIO | WAKEUP_ON_EDGE_RISE, /* Logic irq */ |
74 | 74 | ||
75 | /* AC97 */ | ||
76 | GPIO28_AC97_BITCLK, | ||
77 | GPIO29_AC97_SDATA_IN_0, | ||
78 | GPIO30_AC97_SDATA_OUT, | ||
79 | GPIO31_AC97_SYNC, | ||
80 | |||
75 | /* LCD - 16bpp Active TFT */ | 81 | /* LCD - 16bpp Active TFT */ |
76 | GPIO58_LCD_LDD_0, | 82 | GPIOxx_LCD_TFT_16BPP, |
77 | GPIO59_LCD_LDD_1, | ||
78 | GPIO60_LCD_LDD_2, | ||
79 | GPIO61_LCD_LDD_3, | ||
80 | GPIO62_LCD_LDD_4, | ||
81 | GPIO63_LCD_LDD_5, | ||
82 | GPIO64_LCD_LDD_6, | ||
83 | GPIO65_LCD_LDD_7, | ||
84 | GPIO66_LCD_LDD_8, | ||
85 | GPIO67_LCD_LDD_9, | ||
86 | GPIO68_LCD_LDD_10, | ||
87 | GPIO69_LCD_LDD_11, | ||
88 | GPIO70_LCD_LDD_12, | ||
89 | GPIO71_LCD_LDD_13, | ||
90 | GPIO72_LCD_LDD_14, | ||
91 | GPIO73_LCD_LDD_15, | ||
92 | GPIO74_LCD_FCLK, | ||
93 | GPIO75_LCD_LCLK, | ||
94 | GPIO76_LCD_PCLK, | ||
95 | GPIO77_LCD_BIAS, | ||
96 | 83 | ||
97 | /* UART */ | 84 | /* UART */ |
98 | GPIO9_FFUART_CTS, | 85 | GPIO9_FFUART_CTS, |
diff --git a/arch/arm/mach-pxa/viper.c b/arch/arm/mach-pxa/viper.c index 89f258c9e12..1dd13346f97 100644 --- a/arch/arm/mach-pxa/viper.c +++ b/arch/arm/mach-pxa/viper.c | |||
@@ -281,7 +281,7 @@ static void viper_irq_handler(unsigned int irq, struct irq_desc *desc) | |||
281 | do { | 281 | do { |
282 | /* we're in a chained irq handler, | 282 | /* we're in a chained irq handler, |
283 | * so ack the interrupt by hand */ | 283 | * so ack the interrupt by hand */ |
284 | GEDR(VIPER_CPLD_GPIO) = GPIO_bit(VIPER_CPLD_GPIO); | 284 | desc->chip->ack(irq); |
285 | 285 | ||
286 | if (likely(pending)) { | 286 | if (likely(pending)) { |
287 | irq = viper_bit_to_irq(__ffs(pending)); | 287 | irq = viper_bit_to_irq(__ffs(pending)); |
@@ -711,6 +711,12 @@ static mfp_cfg_t viper_pin_config[] __initdata = { | |||
711 | GPIO80_nCS_4, | 711 | GPIO80_nCS_4, |
712 | GPIO33_nCS_5, | 712 | GPIO33_nCS_5, |
713 | 713 | ||
714 | /* AC97 */ | ||
715 | GPIO28_AC97_BITCLK, | ||
716 | GPIO29_AC97_SDATA_IN_0, | ||
717 | GPIO30_AC97_SDATA_OUT, | ||
718 | GPIO31_AC97_SYNC, | ||
719 | |||
714 | /* FP Backlight */ | 720 | /* FP Backlight */ |
715 | GPIO9_GPIO, /* VIPER_BCKLIGHT_EN_GPIO */ | 721 | GPIO9_GPIO, /* VIPER_BCKLIGHT_EN_GPIO */ |
716 | GPIO10_GPIO, /* VIPER_LCD_EN_GPIO */ | 722 | GPIO10_GPIO, /* VIPER_LCD_EN_GPIO */ |
diff --git a/arch/arm/mach-pxa/zeus.c b/arch/arm/mach-pxa/zeus.c index 75f2a37f945..39896d88358 100644 --- a/arch/arm/mach-pxa/zeus.c +++ b/arch/arm/mach-pxa/zeus.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/i2c.h> | 26 | #include <linux/i2c.h> |
27 | #include <linux/i2c/pca953x.h> | 27 | #include <linux/i2c/pca953x.h> |
28 | #include <linux/apm-emulation.h> | 28 | #include <linux/apm-emulation.h> |
29 | #include <linux/can/platform/mcp251x.h> | ||
29 | 30 | ||
30 | #include <asm/mach-types.h> | 31 | #include <asm/mach-types.h> |
31 | #include <asm/mach/arch.h> | 32 | #include <asm/mach/arch.h> |
@@ -387,11 +388,47 @@ static struct pxa2xx_spi_master pxa2xx_spi_ssp3_master_info = { | |||
387 | .enable_dma = 1, | 388 | .enable_dma = 1, |
388 | }; | 389 | }; |
389 | 390 | ||
390 | static struct platform_device pxa2xx_spi_ssp3_device = { | 391 | /* CAN bus on SPI */ |
391 | .name = "pxa2xx-spi", | 392 | static int zeus_mcp2515_setup(struct spi_device *sdev) |
392 | .id = 3, | 393 | { |
393 | .dev = { | 394 | int err; |
394 | .platform_data = &pxa2xx_spi_ssp3_master_info, | 395 | |
396 | err = gpio_request(ZEUS_CAN_SHDN_GPIO, "CAN shutdown"); | ||
397 | if (err) | ||
398 | return err; | ||
399 | |||
400 | err = gpio_direction_output(ZEUS_CAN_SHDN_GPIO, 1); | ||
401 | if (err) { | ||
402 | gpio_free(ZEUS_CAN_SHDN_GPIO); | ||
403 | return err; | ||
404 | } | ||
405 | |||
406 | return 0; | ||
407 | } | ||
408 | |||
409 | static int zeus_mcp2515_transceiver_enable(int enable) | ||
410 | { | ||
411 | gpio_set_value(ZEUS_CAN_SHDN_GPIO, !enable); | ||
412 | return 0; | ||
413 | } | ||
414 | |||
415 | static struct mcp251x_platform_data zeus_mcp2515_pdata = { | ||
416 | .oscillator_frequency = 16*1000*1000, | ||
417 | .model = CAN_MCP251X_MCP2515, | ||
418 | .board_specific_setup = zeus_mcp2515_setup, | ||
419 | .transceiver_enable = zeus_mcp2515_transceiver_enable, | ||
420 | .power_enable = zeus_mcp2515_transceiver_enable, | ||
421 | }; | ||
422 | |||
423 | static struct spi_board_info zeus_spi_board_info[] = { | ||
424 | [0] = { | ||
425 | .modalias = "mcp251x", | ||
426 | .platform_data = &zeus_mcp2515_pdata, | ||
427 | .irq = gpio_to_irq(ZEUS_CAN_GPIO), | ||
428 | .max_speed_hz = 1*1000*1000, | ||
429 | .bus_num = 3, | ||
430 | .mode = SPI_MODE_0, | ||
431 | .chip_select = 0, | ||
395 | }, | 432 | }, |
396 | }; | 433 | }; |
397 | 434 | ||
@@ -457,15 +494,28 @@ static struct platform_device zeus_pcmcia_device = { | |||
457 | }, | 494 | }, |
458 | }; | 495 | }; |
459 | 496 | ||
497 | static struct resource zeus_max6369_resource = { | ||
498 | .start = ZEUS_CPLD_EXTWDOG_PHYS, | ||
499 | .end = ZEUS_CPLD_EXTWDOG_PHYS, | ||
500 | .flags = IORESOURCE_MEM, | ||
501 | }; | ||
502 | |||
503 | struct platform_device zeus_max6369_device = { | ||
504 | .name = "max6369_wdt", | ||
505 | .id = -1, | ||
506 | .resource = &zeus_max6369_resource, | ||
507 | .num_resources = 1, | ||
508 | }; | ||
509 | |||
460 | static struct platform_device *zeus_devices[] __initdata = { | 510 | static struct platform_device *zeus_devices[] __initdata = { |
461 | &zeus_serial_device, | 511 | &zeus_serial_device, |
462 | &zeus_mtd_devices[0], | 512 | &zeus_mtd_devices[0], |
463 | &zeus_dm9k0_device, | 513 | &zeus_dm9k0_device, |
464 | &zeus_dm9k1_device, | 514 | &zeus_dm9k1_device, |
465 | &zeus_sram_device, | 515 | &zeus_sram_device, |
466 | &pxa2xx_spi_ssp3_device, | ||
467 | &zeus_leds_device, | 516 | &zeus_leds_device, |
468 | &zeus_pcmcia_device, | 517 | &zeus_pcmcia_device, |
518 | &zeus_max6369_device, | ||
469 | }; | 519 | }; |
470 | 520 | ||
471 | /* AC'97 */ | 521 | /* AC'97 */ |
@@ -509,7 +559,9 @@ static void zeus_ohci_exit(struct device *dev) | |||
509 | 559 | ||
510 | static struct pxaohci_platform_data zeus_ohci_platform_data = { | 560 | static struct pxaohci_platform_data zeus_ohci_platform_data = { |
511 | .port_mode = PMM_NPS_MODE, | 561 | .port_mode = PMM_NPS_MODE, |
512 | .flags = ENABLE_PORT_ALL | POWER_CONTROL_LOW | POWER_SENSE_LOW, | 562 | /* Clear Power Control Polarity Low and set Power Sense |
563 | * Polarity Low. Supply power to USB ports. */ | ||
564 | .flags = ENABLE_PORT_ALL | POWER_SENSE_LOW, | ||
513 | .init = zeus_ohci_init, | 565 | .init = zeus_ohci_init, |
514 | .exit = zeus_ohci_exit, | 566 | .exit = zeus_ohci_exit, |
515 | }; | 567 | }; |
@@ -621,11 +673,15 @@ static struct pxa2xx_udc_mach_info zeus_udc_info = { | |||
621 | .udc_command = zeus_udc_command, | 673 | .udc_command = zeus_udc_command, |
622 | }; | 674 | }; |
623 | 675 | ||
676 | #ifdef CONFIG_PM | ||
624 | static void zeus_power_off(void) | 677 | static void zeus_power_off(void) |
625 | { | 678 | { |
626 | local_irq_disable(); | 679 | local_irq_disable(); |
627 | pxa27x_cpu_suspend(PWRMODE_DEEPSLEEP); | 680 | pxa27x_cpu_suspend(PWRMODE_DEEPSLEEP); |
628 | } | 681 | } |
682 | #else | ||
683 | #define zeus_power_off NULL | ||
684 | #endif | ||
629 | 685 | ||
630 | #ifdef CONFIG_APM_EMULATION | 686 | #ifdef CONFIG_APM_EMULATION |
631 | static void zeus_get_power_status(struct apm_power_info *info) | 687 | static void zeus_get_power_status(struct apm_power_info *info) |
@@ -706,6 +762,12 @@ static struct i2c_board_info __initdata zeus_i2c_devices[] = { | |||
706 | }; | 762 | }; |
707 | 763 | ||
708 | static mfp_cfg_t zeus_pin_config[] __initdata = { | 764 | static mfp_cfg_t zeus_pin_config[] __initdata = { |
765 | /* AC97 */ | ||
766 | GPIO28_AC97_BITCLK, | ||
767 | GPIO29_AC97_SDATA_IN_0, | ||
768 | GPIO30_AC97_SDATA_OUT, | ||
769 | GPIO31_AC97_SYNC, | ||
770 | |||
709 | GPIO15_nCS_1, | 771 | GPIO15_nCS_1, |
710 | GPIO78_nCS_2, | 772 | GPIO78_nCS_2, |
711 | GPIO80_nCS_4, | 773 | GPIO80_nCS_4, |
@@ -731,6 +793,11 @@ static mfp_cfg_t zeus_pin_config[] __initdata = { | |||
731 | GPIO104_CIF_DD_2, | 793 | GPIO104_CIF_DD_2, |
732 | GPIO105_CIF_DD_1, | 794 | GPIO105_CIF_DD_1, |
733 | 795 | ||
796 | GPIO81_SSP3_TXD, | ||
797 | GPIO82_SSP3_RXD, | ||
798 | GPIO83_SSP3_SFRM, | ||
799 | GPIO84_SSP3_SCLK, | ||
800 | |||
734 | GPIO48_nPOE, | 801 | GPIO48_nPOE, |
735 | GPIO49_nPWE, | 802 | GPIO49_nPWE, |
736 | GPIO50_nPIOR, | 803 | GPIO50_nPIOR, |
@@ -785,6 +852,8 @@ static void __init zeus_init(void) | |||
785 | pxa_set_ac97_info(&zeus_ac97_info); | 852 | pxa_set_ac97_info(&zeus_ac97_info); |
786 | pxa_set_i2c_info(NULL); | 853 | pxa_set_i2c_info(NULL); |
787 | i2c_register_board_info(0, ARRAY_AND_SIZE(zeus_i2c_devices)); | 854 | i2c_register_board_info(0, ARRAY_AND_SIZE(zeus_i2c_devices)); |
855 | pxa2xx_set_spi_info(3, &pxa2xx_spi_ssp3_master_info); | ||
856 | spi_register_board_info(zeus_spi_board_info, ARRAY_SIZE(zeus_spi_board_info)); | ||
788 | } | 857 | } |
789 | 858 | ||
790 | static struct map_desc zeus_io_desc[] __initdata = { | 859 | static struct map_desc zeus_io_desc[] __initdata = { |
@@ -807,12 +876,6 @@ static struct map_desc zeus_io_desc[] __initdata = { | |||
807 | .type = MT_DEVICE, | 876 | .type = MT_DEVICE, |
808 | }, | 877 | }, |
809 | { | 878 | { |
810 | .virtual = ZEUS_CPLD_EXTWDOG, | ||
811 | .pfn = __phys_to_pfn(ZEUS_CPLD_EXTWDOG_PHYS), | ||
812 | .length = 0x1000, | ||
813 | .type = MT_DEVICE, | ||
814 | }, | ||
815 | { | ||
816 | .virtual = ZEUS_PC104IO, | 879 | .virtual = ZEUS_PC104IO, |
817 | .pfn = __phys_to_pfn(ZEUS_PC104IO_PHYS), | 880 | .pfn = __phys_to_pfn(ZEUS_PC104IO_PHYS), |
818 | .length = 0x00800000, | 881 | .length = 0x00800000, |
@@ -837,7 +900,7 @@ static void __init zeus_map_io(void) | |||
837 | PCFR = PCFR_OPDE | PCFR_DC_EN | PCFR_FS | PCFR_FP; | 900 | PCFR = PCFR_OPDE | PCFR_DC_EN | PCFR_FS | PCFR_FP; |
838 | } | 901 | } |
839 | 902 | ||
840 | MACHINE_START(ARCOM_ZEUS, "Arcom ZEUS") | 903 | MACHINE_START(ARCOM_ZEUS, "Arcom/Eurotech ZEUS") |
841 | /* Maintainer: Marc Zyngier <maz@misterjones.org> */ | 904 | /* Maintainer: Marc Zyngier <maz@misterjones.org> */ |
842 | .phys_io = 0x40000000, | 905 | .phys_io = 0x40000000, |
843 | .io_pg_offst = ((io_p2v(0x40000000) >> 18) & 0xfffc), | 906 | .io_pg_offst = ((io_p2v(0x40000000) >> 18) & 0xfffc), |
diff --git a/arch/arm/mach-realview/realview_pbx.c b/arch/arm/mach-realview/realview_pbx.c index a21a4b395f7..d94857eb069 100644 --- a/arch/arm/mach-realview/realview_pbx.c +++ b/arch/arm/mach-realview/realview_pbx.c | |||
@@ -334,8 +334,8 @@ static void realview_pbx_reset(char mode) | |||
334 | * in the system FPGA | 334 | * in the system FPGA |
335 | */ | 335 | */ |
336 | __raw_writel(REALVIEW_SYS_LOCK_VAL, lock_ctrl); | 336 | __raw_writel(REALVIEW_SYS_LOCK_VAL, lock_ctrl); |
337 | __raw_writel(0x0000, reset_ctrl); | 337 | __raw_writel(0x00F0, reset_ctrl); |
338 | __raw_writel(0x0004, reset_ctrl); | 338 | __raw_writel(0x00F4, reset_ctrl); |
339 | } | 339 | } |
340 | 340 | ||
341 | static void __init realview_pbx_init(void) | 341 | static void __init realview_pbx_init(void) |
diff --git a/arch/arm/mach-s3c64xx/mach-hmt.c b/arch/arm/mach-s3c64xx/mach-hmt.c index a6d91c39f22..187441a78dd 100644 --- a/arch/arm/mach-s3c64xx/mach-hmt.c +++ b/arch/arm/mach-s3c64xx/mach-hmt.c | |||
@@ -82,7 +82,7 @@ static int hmt_bl_init(struct device *dev) | |||
82 | return ret; | 82 | return ret; |
83 | } | 83 | } |
84 | 84 | ||
85 | static int hmt_bl_notify(int brightness) | 85 | static int hmt_bl_notify(struct device *dev, int brightness) |
86 | { | 86 | { |
87 | /* | 87 | /* |
88 | * translate from CIELUV/CIELAB L*->brightness, E.G. from | 88 | * translate from CIELUV/CIELAB L*->brightness, E.G. from |
diff --git a/arch/arm/mach-sa1100/badge4.c b/arch/arm/mach-sa1100/badge4.c index 051ec0f0023..259cb2c15ff 100644 --- a/arch/arm/mach-sa1100/badge4.c +++ b/arch/arm/mach-sa1100/badge4.c | |||
@@ -51,6 +51,10 @@ static struct resource sa1111_resources[] = { | |||
51 | }, | 51 | }, |
52 | }; | 52 | }; |
53 | 53 | ||
54 | static struct sa1111_platform_data sa1111_info = { | ||
55 | .irq_base = IRQ_BOARD_END, | ||
56 | }; | ||
57 | |||
54 | static u64 sa1111_dmamask = 0xffffffffUL; | 58 | static u64 sa1111_dmamask = 0xffffffffUL; |
55 | 59 | ||
56 | static struct platform_device sa1111_device = { | 60 | static struct platform_device sa1111_device = { |
@@ -59,6 +63,7 @@ static struct platform_device sa1111_device = { | |||
59 | .dev = { | 63 | .dev = { |
60 | .dma_mask = &sa1111_dmamask, | 64 | .dma_mask = &sa1111_dmamask, |
61 | .coherent_dma_mask = 0xffffffff, | 65 | .coherent_dma_mask = 0xffffffff, |
66 | .platform_data = &sa1111_info, | ||
62 | }, | 67 | }, |
63 | .num_resources = ARRAY_SIZE(sa1111_resources), | 68 | .num_resources = ARRAY_SIZE(sa1111_resources), |
64 | .resource = sa1111_resources, | 69 | .resource = sa1111_resources, |
diff --git a/arch/arm/mach-sa1100/collie.c b/arch/arm/mach-sa1100/collie.c index 9982c5c28ed..5d5f330c5d9 100644 --- a/arch/arm/mach-sa1100/collie.c +++ b/arch/arm/mach-sa1100/collie.c | |||
@@ -234,6 +234,10 @@ static struct resource locomo_resources[] = { | |||
234 | }, | 234 | }, |
235 | }; | 235 | }; |
236 | 236 | ||
237 | static struct locomo_platform_data locomo_info = { | ||
238 | .irq_base = IRQ_BOARD_START, | ||
239 | }; | ||
240 | |||
237 | struct platform_device collie_locomo_device = { | 241 | struct platform_device collie_locomo_device = { |
238 | .name = "locomo", | 242 | .name = "locomo", |
239 | .id = 0, | 243 | .id = 0, |
diff --git a/arch/arm/mach-sa1100/include/mach/collie.h b/arch/arm/mach-sa1100/include/mach/collie.h index 71a0b3fdcc8..52acda7061b 100644 --- a/arch/arm/mach-sa1100/include/mach/collie.h +++ b/arch/arm/mach-sa1100/include/mach/collie.h | |||
@@ -72,13 +72,6 @@ | |||
72 | #define COLLIE_IRQ_GPIO_GA_INT IRQ_GPIO25 | 72 | #define COLLIE_IRQ_GPIO_GA_INT IRQ_GPIO25 |
73 | #define COLLIE_IRQ_GPIO_MAIN_BAT_LOW IRQ_GPIO26 | 73 | #define COLLIE_IRQ_GPIO_MAIN_BAT_LOW IRQ_GPIO26 |
74 | 74 | ||
75 | #define COLLIE_LCM_IRQ_GPIO_RTS IRQ_LOCOMO_GPIO0 | ||
76 | #define COLLIE_LCM_IRQ_GPIO_CTS IRQ_LOCOMO_GPIO1 | ||
77 | #define COLLIE_LCM_IRQ_GPIO_DSR IRQ_LOCOMO_GPIO2 | ||
78 | #define COLLIE_LCM_IRQ_GPIO_DTR IRQ_LOCOMO_GPIO3 | ||
79 | #define COLLIE_LCM_IRQ_GPIO_nSD_DETECT IRQ_LOCOMO_GPIO13 | ||
80 | #define COLLIE_LCM_IRQ_GPIO_nSD_WP IRQ_LOCOMO_GPIO14 | ||
81 | |||
82 | /* GPIO's on the TC35143AF (Toshiba Analog Frontend) */ | 75 | /* GPIO's on the TC35143AF (Toshiba Analog Frontend) */ |
83 | #define COLLIE_TC35143_GPIO_BASE (GPIO_MAX + 13) | 76 | #define COLLIE_TC35143_GPIO_BASE (GPIO_MAX + 13) |
84 | #define COLLIE_TC35143_GPIO_VERSION0 UCB_IO_0 | 77 | #define COLLIE_TC35143_GPIO_VERSION0 UCB_IO_0 |
diff --git a/arch/arm/mach-sa1100/include/mach/irqs.h b/arch/arm/mach-sa1100/include/mach/irqs.h index ae81f80b0cf..8c8845b5ae5 100644 --- a/arch/arm/mach-sa1100/include/mach/irqs.h +++ b/arch/arm/mach-sa1100/include/mach/irqs.h | |||
@@ -68,93 +68,17 @@ | |||
68 | #define IRQ_BOARD_START 49 | 68 | #define IRQ_BOARD_START 49 |
69 | #define IRQ_BOARD_END 65 | 69 | #define IRQ_BOARD_END 65 |
70 | 70 | ||
71 | #define IRQ_SA1111_START (IRQ_BOARD_END) | ||
72 | #define IRQ_GPAIN0 (IRQ_BOARD_END + 0) | ||
73 | #define IRQ_GPAIN1 (IRQ_BOARD_END + 1) | ||
74 | #define IRQ_GPAIN2 (IRQ_BOARD_END + 2) | ||
75 | #define IRQ_GPAIN3 (IRQ_BOARD_END + 3) | ||
76 | #define IRQ_GPBIN0 (IRQ_BOARD_END + 4) | ||
77 | #define IRQ_GPBIN1 (IRQ_BOARD_END + 5) | ||
78 | #define IRQ_GPBIN2 (IRQ_BOARD_END + 6) | ||
79 | #define IRQ_GPBIN3 (IRQ_BOARD_END + 7) | ||
80 | #define IRQ_GPBIN4 (IRQ_BOARD_END + 8) | ||
81 | #define IRQ_GPBIN5 (IRQ_BOARD_END + 9) | ||
82 | #define IRQ_GPCIN0 (IRQ_BOARD_END + 10) | ||
83 | #define IRQ_GPCIN1 (IRQ_BOARD_END + 11) | ||
84 | #define IRQ_GPCIN2 (IRQ_BOARD_END + 12) | ||
85 | #define IRQ_GPCIN3 (IRQ_BOARD_END + 13) | ||
86 | #define IRQ_GPCIN4 (IRQ_BOARD_END + 14) | ||
87 | #define IRQ_GPCIN5 (IRQ_BOARD_END + 15) | ||
88 | #define IRQ_GPCIN6 (IRQ_BOARD_END + 16) | ||
89 | #define IRQ_GPCIN7 (IRQ_BOARD_END + 17) | ||
90 | #define IRQ_MSTXINT (IRQ_BOARD_END + 18) | ||
91 | #define IRQ_MSRXINT (IRQ_BOARD_END + 19) | ||
92 | #define IRQ_MSSTOPERRINT (IRQ_BOARD_END + 20) | ||
93 | #define IRQ_TPTXINT (IRQ_BOARD_END + 21) | ||
94 | #define IRQ_TPRXINT (IRQ_BOARD_END + 22) | ||
95 | #define IRQ_TPSTOPERRINT (IRQ_BOARD_END + 23) | ||
96 | #define SSPXMTINT (IRQ_BOARD_END + 24) | ||
97 | #define SSPRCVINT (IRQ_BOARD_END + 25) | ||
98 | #define SSPROR (IRQ_BOARD_END + 26) | ||
99 | #define AUDXMTDMADONEA (IRQ_BOARD_END + 32) | ||
100 | #define AUDRCVDMADONEA (IRQ_BOARD_END + 33) | ||
101 | #define AUDXMTDMADONEB (IRQ_BOARD_END + 34) | ||
102 | #define AUDRCVDMADONEB (IRQ_BOARD_END + 35) | ||
103 | #define AUDTFSR (IRQ_BOARD_END + 36) | ||
104 | #define AUDRFSR (IRQ_BOARD_END + 37) | ||
105 | #define AUDTUR (IRQ_BOARD_END + 38) | ||
106 | #define AUDROR (IRQ_BOARD_END + 39) | ||
107 | #define AUDDTS (IRQ_BOARD_END + 40) | ||
108 | #define AUDRDD (IRQ_BOARD_END + 41) | ||
109 | #define AUDSTO (IRQ_BOARD_END + 42) | ||
110 | #define IRQ_USBPWR (IRQ_BOARD_END + 43) | ||
111 | #define IRQ_HCIM (IRQ_BOARD_END + 44) | ||
112 | #define IRQ_HCIBUFFACC (IRQ_BOARD_END + 45) | ||
113 | #define IRQ_HCIRMTWKP (IRQ_BOARD_END + 46) | ||
114 | #define IRQ_NHCIMFCIR (IRQ_BOARD_END + 47) | ||
115 | #define IRQ_USB_PORT_RESUME (IRQ_BOARD_END + 48) | ||
116 | #define IRQ_S0_READY_NINT (IRQ_BOARD_END + 49) | ||
117 | #define IRQ_S1_READY_NINT (IRQ_BOARD_END + 50) | ||
118 | #define IRQ_S0_CD_VALID (IRQ_BOARD_END + 51) | ||
119 | #define IRQ_S1_CD_VALID (IRQ_BOARD_END + 52) | ||
120 | #define IRQ_S0_BVD1_STSCHG (IRQ_BOARD_END + 53) | ||
121 | #define IRQ_S1_BVD1_STSCHG (IRQ_BOARD_END + 54) | ||
122 | |||
123 | #define IRQ_LOCOMO_START (IRQ_BOARD_END) | ||
124 | #define IRQ_LOCOMO_KEY (IRQ_BOARD_END + 0) | ||
125 | #define IRQ_LOCOMO_GPIO0 (IRQ_BOARD_END + 1) | ||
126 | #define IRQ_LOCOMO_GPIO1 (IRQ_BOARD_END + 2) | ||
127 | #define IRQ_LOCOMO_GPIO2 (IRQ_BOARD_END + 3) | ||
128 | #define IRQ_LOCOMO_GPIO3 (IRQ_BOARD_END + 4) | ||
129 | #define IRQ_LOCOMO_GPIO4 (IRQ_BOARD_END + 5) | ||
130 | #define IRQ_LOCOMO_GPIO5 (IRQ_BOARD_END + 6) | ||
131 | #define IRQ_LOCOMO_GPIO6 (IRQ_BOARD_END + 7) | ||
132 | #define IRQ_LOCOMO_GPIO7 (IRQ_BOARD_END + 8) | ||
133 | #define IRQ_LOCOMO_GPIO8 (IRQ_BOARD_END + 9) | ||
134 | #define IRQ_LOCOMO_GPIO9 (IRQ_BOARD_END + 10) | ||
135 | #define IRQ_LOCOMO_GPIO10 (IRQ_BOARD_END + 11) | ||
136 | #define IRQ_LOCOMO_GPIO11 (IRQ_BOARD_END + 12) | ||
137 | #define IRQ_LOCOMO_GPIO12 (IRQ_BOARD_END + 13) | ||
138 | #define IRQ_LOCOMO_GPIO13 (IRQ_BOARD_END + 14) | ||
139 | #define IRQ_LOCOMO_GPIO14 (IRQ_BOARD_END + 15) | ||
140 | #define IRQ_LOCOMO_GPIO15 (IRQ_BOARD_END + 16) | ||
141 | #define IRQ_LOCOMO_LT (IRQ_BOARD_END + 17) | ||
142 | #define IRQ_LOCOMO_SPI_RFR (IRQ_BOARD_END + 18) | ||
143 | #define IRQ_LOCOMO_SPI_RFW (IRQ_BOARD_END + 19) | ||
144 | #define IRQ_LOCOMO_SPI_REND (IRQ_BOARD_END + 20) | ||
145 | #define IRQ_LOCOMO_SPI_TEND (IRQ_BOARD_END + 21) | ||
146 | |||
147 | /* | 71 | /* |
148 | * Figure out the MAX IRQ number. | 72 | * Figure out the MAX IRQ number. |
149 | * | 73 | * |
150 | * If we have an SA1111, the max IRQ is S1_BVD1_STSCHG+1. | 74 | * If we have an SA1111, the max IRQ is S1_BVD1_STSCHG+1. |
151 | * If we have an LoCoMo, the max IRQ is IRQ_LOCOMO_SPI_TEND+1 | 75 | * If we have an LoCoMo, the max IRQ is IRQ_BOARD_START + 4 |
152 | * Otherwise, we have the standard IRQs only. | 76 | * Otherwise, we have the standard IRQs only. |
153 | */ | 77 | */ |
154 | #ifdef CONFIG_SA1111 | 78 | #ifdef CONFIG_SA1111 |
155 | #define NR_IRQS (IRQ_S1_BVD1_STSCHG + 1) | 79 | #define NR_IRQS (IRQ_BOARD_END + 55) |
156 | #elif defined(CONFIG_SHARP_LOCOMO) | 80 | #elif defined(CONFIG_SHARPSL_LOCOMO) |
157 | #define NR_IRQS (IRQ_LOCOMO_SPI_TEND + 1) | 81 | #define NR_IRQS (IRQ_BOARD_START + 4) |
158 | #else | 82 | #else |
159 | #define NR_IRQS (IRQ_BOARD_START) | 83 | #define NR_IRQS (IRQ_BOARD_START) |
160 | #endif | 84 | #endif |
@@ -166,10 +90,3 @@ | |||
166 | #define IRQ_NEPONSET_SMC9196 (IRQ_BOARD_START + 0) | 90 | #define IRQ_NEPONSET_SMC9196 (IRQ_BOARD_START + 0) |
167 | #define IRQ_NEPONSET_USAR (IRQ_BOARD_START + 1) | 91 | #define IRQ_NEPONSET_USAR (IRQ_BOARD_START + 1) |
168 | #define IRQ_NEPONSET_SA1111 (IRQ_BOARD_START + 2) | 92 | #define IRQ_NEPONSET_SA1111 (IRQ_BOARD_START + 2) |
169 | |||
170 | /* LoCoMo Interrupts (CONFIG_SHARP_LOCOMO) */ | ||
171 | #define IRQ_LOCOMO_KEY_BASE (IRQ_BOARD_START + 0) | ||
172 | #define IRQ_LOCOMO_GPIO_BASE (IRQ_BOARD_START + 1) | ||
173 | #define IRQ_LOCOMO_LT_BASE (IRQ_BOARD_START + 2) | ||
174 | #define IRQ_LOCOMO_SPI_BASE (IRQ_BOARD_START + 3) | ||
175 | |||
diff --git a/arch/arm/mach-sa1100/jornada720.c b/arch/arm/mach-sa1100/jornada720.c index 13ebd2d99bf..d3ec620618f 100644 --- a/arch/arm/mach-sa1100/jornada720.c +++ b/arch/arm/mach-sa1100/jornada720.c | |||
@@ -208,6 +208,10 @@ static struct resource sa1111_resources[] = { | |||
208 | }, | 208 | }, |
209 | }; | 209 | }; |
210 | 210 | ||
211 | static struct sa1111_platform_data sa1111_info = { | ||
212 | .irq_base = IRQ_BOARD_END, | ||
213 | }; | ||
214 | |||
211 | static u64 sa1111_dmamask = 0xffffffffUL; | 215 | static u64 sa1111_dmamask = 0xffffffffUL; |
212 | 216 | ||
213 | static struct platform_device sa1111_device = { | 217 | static struct platform_device sa1111_device = { |
@@ -216,6 +220,7 @@ static struct platform_device sa1111_device = { | |||
216 | .dev = { | 220 | .dev = { |
217 | .dma_mask = &sa1111_dmamask, | 221 | .dma_mask = &sa1111_dmamask, |
218 | .coherent_dma_mask = 0xffffffff, | 222 | .coherent_dma_mask = 0xffffffff, |
223 | .platform_data = &sa1111_info, | ||
219 | }, | 224 | }, |
220 | .num_resources = ARRAY_SIZE(sa1111_resources), | 225 | .num_resources = ARRAY_SIZE(sa1111_resources), |
221 | .resource = sa1111_resources, | 226 | .resource = sa1111_resources, |
diff --git a/arch/arm/mach-sa1100/neponset.c b/arch/arm/mach-sa1100/neponset.c index 6ccd175bc4c..0b505d9f22d 100644 --- a/arch/arm/mach-sa1100/neponset.c +++ b/arch/arm/mach-sa1100/neponset.c | |||
@@ -241,6 +241,10 @@ static struct resource sa1111_resources[] = { | |||
241 | }, | 241 | }, |
242 | }; | 242 | }; |
243 | 243 | ||
244 | static struct sa1111_platform_data sa1111_info = { | ||
245 | .irq_base = IRQ_BOARD_END, | ||
246 | }; | ||
247 | |||
244 | static u64 sa1111_dmamask = 0xffffffffUL; | 248 | static u64 sa1111_dmamask = 0xffffffffUL; |
245 | 249 | ||
246 | static struct platform_device sa1111_device = { | 250 | static struct platform_device sa1111_device = { |
@@ -249,6 +253,7 @@ static struct platform_device sa1111_device = { | |||
249 | .dev = { | 253 | .dev = { |
250 | .dma_mask = &sa1111_dmamask, | 254 | .dma_mask = &sa1111_dmamask, |
251 | .coherent_dma_mask = 0xffffffff, | 255 | .coherent_dma_mask = 0xffffffff, |
256 | .platform_data = &sa1111_info, | ||
252 | }, | 257 | }, |
253 | .num_resources = ARRAY_SIZE(sa1111_resources), | 258 | .num_resources = ARRAY_SIZE(sa1111_resources), |
254 | .resource = sa1111_resources, | 259 | .resource = sa1111_resources, |
diff --git a/arch/arm/mach-sa1100/time.c b/arch/arm/mach-sa1100/time.c index b9cbb56d6e9..74b6e0e570b 100644 --- a/arch/arm/mach-sa1100/time.c +++ b/arch/arm/mach-sa1100/time.c | |||
@@ -35,14 +35,12 @@ static irqreturn_t sa1100_ost0_interrupt(int irq, void *dev_id) | |||
35 | static int | 35 | static int |
36 | sa1100_osmr0_set_next_event(unsigned long delta, struct clock_event_device *c) | 36 | sa1100_osmr0_set_next_event(unsigned long delta, struct clock_event_device *c) |
37 | { | 37 | { |
38 | unsigned long flags, next, oscr; | 38 | unsigned long next, oscr; |
39 | 39 | ||
40 | raw_local_irq_save(flags); | ||
41 | OIER |= OIER_E0; | 40 | OIER |= OIER_E0; |
42 | next = OSCR + delta; | 41 | next = OSCR + delta; |
43 | OSMR0 = next; | 42 | OSMR0 = next; |
44 | oscr = OSCR; | 43 | oscr = OSCR; |
45 | raw_local_irq_restore(flags); | ||
46 | 44 | ||
47 | return (signed)(next - oscr) <= MIN_OSCR_DELTA ? -ETIME : 0; | 45 | return (signed)(next - oscr) <= MIN_OSCR_DELTA ? -ETIME : 0; |
48 | } | 46 | } |
@@ -50,16 +48,12 @@ sa1100_osmr0_set_next_event(unsigned long delta, struct clock_event_device *c) | |||
50 | static void | 48 | static void |
51 | sa1100_osmr0_set_mode(enum clock_event_mode mode, struct clock_event_device *c) | 49 | sa1100_osmr0_set_mode(enum clock_event_mode mode, struct clock_event_device *c) |
52 | { | 50 | { |
53 | unsigned long flags; | ||
54 | |||
55 | switch (mode) { | 51 | switch (mode) { |
56 | case CLOCK_EVT_MODE_ONESHOT: | 52 | case CLOCK_EVT_MODE_ONESHOT: |
57 | case CLOCK_EVT_MODE_UNUSED: | 53 | case CLOCK_EVT_MODE_UNUSED: |
58 | case CLOCK_EVT_MODE_SHUTDOWN: | 54 | case CLOCK_EVT_MODE_SHUTDOWN: |
59 | raw_local_irq_save(flags); | ||
60 | OIER &= ~OIER_E0; | 55 | OIER &= ~OIER_E0; |
61 | OSSR = OSSR_M0; | 56 | OSSR = OSSR_M0; |
62 | raw_local_irq_restore(flags); | ||
63 | break; | 57 | break; |
64 | 58 | ||
65 | case CLOCK_EVT_MODE_RESUME: | 59 | case CLOCK_EVT_MODE_RESUME: |
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig new file mode 100644 index 00000000000..aeceb9b92ae --- /dev/null +++ b/arch/arm/mach-shmobile/Kconfig | |||
@@ -0,0 +1,84 @@ | |||
1 | if ARCH_SHMOBILE | ||
2 | |||
3 | comment "SH-Mobile System Type" | ||
4 | |||
5 | config ARCH_SH7367 | ||
6 | bool "SH-Mobile G3 (SH7367)" | ||
7 | select CPU_V6 | ||
8 | select HAVE_CLK | ||
9 | select COMMON_CLKDEV | ||
10 | select GENERIC_TIME | ||
11 | select GENERIC_CLOCKEVENTS | ||
12 | |||
13 | config ARCH_SH7377 | ||
14 | bool "SH-Mobile G4 (SH7377)" | ||
15 | select CPU_V7 | ||
16 | select HAVE_CLK | ||
17 | select COMMON_CLKDEV | ||
18 | select GENERIC_TIME | ||
19 | select GENERIC_CLOCKEVENTS | ||
20 | |||
21 | config ARCH_SH7372 | ||
22 | bool "SH-Mobile AP4 (SH7372)" | ||
23 | select CPU_V7 | ||
24 | select HAVE_CLK | ||
25 | select COMMON_CLKDEV | ||
26 | select GENERIC_TIME | ||
27 | select GENERIC_CLOCKEVENTS | ||
28 | |||
29 | comment "SH-Mobile Board Type" | ||
30 | |||
31 | config MACH_G3EVM | ||
32 | bool "G3EVM board" | ||
33 | depends on ARCH_SH7367 | ||
34 | select ARCH_REQUIRE_GPIOLIB | ||
35 | |||
36 | config MACH_G4EVM | ||
37 | bool "G4EVM board" | ||
38 | depends on ARCH_SH7377 | ||
39 | select ARCH_REQUIRE_GPIOLIB | ||
40 | |||
41 | config MACH_AP4EVB | ||
42 | bool "AP4EVB board" | ||
43 | depends on ARCH_SH7372 | ||
44 | select ARCH_REQUIRE_GPIOLIB | ||
45 | |||
46 | comment "SH-Mobile System Configuration" | ||
47 | |||
48 | menu "Memory configuration" | ||
49 | |||
50 | config MEMORY_START | ||
51 | hex "Physical memory start address" | ||
52 | default "0x50000000" if MACH_G3EVM | ||
53 | default "0x40000000" if MACH_G4EVM | ||
54 | default "0x40000000" if MACH_AP4EVB | ||
55 | default "0x00000000" | ||
56 | ---help--- | ||
57 | Tweak this only when porting to a new machine which does not | ||
58 | already have a defconfig. Changing it from the known correct | ||
59 | value on any of the known systems will only lead to disaster. | ||
60 | |||
61 | config MEMORY_SIZE | ||
62 | hex "Physical memory size" | ||
63 | default "0x08000000" if MACH_G3EVM | ||
64 | default "0x08000000" if MACH_G4EVM | ||
65 | default "0x10000000" if MACH_AP4EVB | ||
66 | default "0x04000000" | ||
67 | help | ||
68 | This sets the default memory size assumed by your kernel. It can | ||
69 | be overridden as normal by the 'mem=' argument on the kernel command | ||
70 | line. | ||
71 | |||
72 | endmenu | ||
73 | |||
74 | menu "Timer and clock configuration" | ||
75 | |||
76 | config SH_TIMER_CMT | ||
77 | bool "CMT timer driver" | ||
78 | default y | ||
79 | help | ||
80 | This enables build of the CMT timer driver. | ||
81 | |||
82 | endmenu | ||
83 | |||
84 | endif | ||
diff --git a/arch/arm/mach-shmobile/Makefile b/arch/arm/mach-shmobile/Makefile new file mode 100644 index 00000000000..6d385d371c3 --- /dev/null +++ b/arch/arm/mach-shmobile/Makefile | |||
@@ -0,0 +1,22 @@ | |||
1 | # | ||
2 | # Makefile for the linux kernel. | ||
3 | # | ||
4 | |||
5 | # Common objects | ||
6 | obj-y := timer.o console.o | ||
7 | |||
8 | # CPU objects | ||
9 | obj-$(CONFIG_ARCH_SH7367) += setup-sh7367.o clock-sh7367.o intc-sh7367.o | ||
10 | obj-$(CONFIG_ARCH_SH7377) += setup-sh7377.o clock-sh7367.o intc-sh7377.o | ||
11 | obj-$(CONFIG_ARCH_SH7372) += setup-sh7372.o clock-sh7367.o intc-sh7372.o | ||
12 | |||
13 | # Pinmux setup | ||
14 | pfc-$(CONFIG_ARCH_SH7367) := pfc-sh7367.o | ||
15 | pfc-$(CONFIG_ARCH_SH7377) := pfc-sh7377.o | ||
16 | pfc-$(CONFIG_ARCH_SH7372) := pfc-sh7372.o | ||
17 | obj-$(CONFIG_GENERIC_GPIO) += $(pfc-y) | ||
18 | |||
19 | # Board objects | ||
20 | obj-$(CONFIG_MACH_G3EVM) += board-g3evm.o | ||
21 | obj-$(CONFIG_MACH_G4EVM) += board-g4evm.o | ||
22 | obj-$(CONFIG_MACH_AP4EVB) += board-ap4evb.o | ||
diff --git a/arch/arm/mach-shmobile/Makefile.boot b/arch/arm/mach-shmobile/Makefile.boot new file mode 100644 index 00000000000..1c08ee9de86 --- /dev/null +++ b/arch/arm/mach-shmobile/Makefile.boot | |||
@@ -0,0 +1,9 @@ | |||
1 | __ZRELADDR := $(shell /bin/bash -c 'printf "0x%08x" \ | ||
2 | $$[$(CONFIG_MEMORY_START) + 0x8000]') | ||
3 | |||
4 | zreladdr-y := $(__ZRELADDR) | ||
5 | |||
6 | # Unsupported legacy stuff | ||
7 | # | ||
8 | #params_phys-y (Instead: Pass atags pointer in r2) | ||
9 | #initrd_phys-y (Instead: Use compiled-in initramfs) | ||
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c new file mode 100644 index 00000000000..a0463d92644 --- /dev/null +++ b/arch/arm/mach-shmobile/board-ap4evb.c | |||
@@ -0,0 +1,301 @@ | |||
1 | /* | ||
2 | * AP4EVB board support | ||
3 | * | ||
4 | * Copyright (C) 2010 Magnus Damm | ||
5 | * Copyright (C) 2008 Yoshihiro Shimoda | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; version 2 of the License. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
19 | */ | ||
20 | #include <linux/kernel.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/interrupt.h> | ||
23 | #include <linux/irq.h> | ||
24 | #include <linux/platform_device.h> | ||
25 | #include <linux/delay.h> | ||
26 | #include <linux/mtd/mtd.h> | ||
27 | #include <linux/mtd/partitions.h> | ||
28 | #include <linux/mtd/physmap.h> | ||
29 | #include <linux/io.h> | ||
30 | #include <linux/smsc911x.h> | ||
31 | #include <linux/gpio.h> | ||
32 | #include <linux/input.h> | ||
33 | #include <linux/input/sh_keysc.h> | ||
34 | #include <mach/common.h> | ||
35 | #include <mach/sh7372.h> | ||
36 | #include <asm/mach-types.h> | ||
37 | #include <asm/mach/arch.h> | ||
38 | #include <asm/mach/map.h> | ||
39 | |||
40 | /* | ||
41 | * Address Interface BusWidth note | ||
42 | * ------------------------------------------------------------------ | ||
43 | * 0x0000_0000 NOR Flash ROM (MCP) 16bit SW7 : bit1 = ON | ||
44 | * 0x0800_0000 user area - | ||
45 | * 0x1000_0000 NOR Flash ROM (MCP) 16bit SW7 : bit1 = OFF | ||
46 | * 0x1400_0000 Ether (LAN9220) 16bit | ||
47 | * 0x1600_0000 user area - cannot use with NAND | ||
48 | * 0x1800_0000 user area - | ||
49 | * 0x1A00_0000 - | ||
50 | * 0x4000_0000 LPDDR2-SDRAM (POP) 32bit | ||
51 | */ | ||
52 | |||
53 | /* | ||
54 | * NOR Flash ROM | ||
55 | * | ||
56 | * SW1 | SW2 | SW7 | NOR Flash ROM | ||
57 | * bit1 | bit1 bit2 | bit1 | Memory allocation | ||
58 | * ------+------------+------+------------------ | ||
59 | * OFF | ON OFF | ON | Area 0 | ||
60 | * OFF | ON OFF | OFF | Area 4 | ||
61 | */ | ||
62 | |||
63 | /* | ||
64 | * NAND Flash ROM | ||
65 | * | ||
66 | * SW1 | SW2 | SW7 | NAND Flash ROM | ||
67 | * bit1 | bit1 bit2 | bit2 | Memory allocation | ||
68 | * ------+------------+------+------------------ | ||
69 | * OFF | ON OFF | ON | FCE 0 | ||
70 | * OFF | ON OFF | OFF | FCE 1 | ||
71 | */ | ||
72 | |||
73 | /* | ||
74 | * SMSC 9220 | ||
75 | * | ||
76 | * SW1 SMSC 9220 | ||
77 | * ----------------------- | ||
78 | * ON access disable | ||
79 | * OFF access enable | ||
80 | */ | ||
81 | |||
82 | /* | ||
83 | * KEYSC | ||
84 | * | ||
85 | * SW43 KEYSC | ||
86 | * ------------------------- | ||
87 | * ON enable | ||
88 | * OFF disable | ||
89 | */ | ||
90 | |||
91 | /* MTD */ | ||
92 | static struct mtd_partition nor_flash_partitions[] = { | ||
93 | { | ||
94 | .name = "loader", | ||
95 | .offset = 0x00000000, | ||
96 | .size = 512 * 1024, | ||
97 | }, | ||
98 | { | ||
99 | .name = "bootenv", | ||
100 | .offset = MTDPART_OFS_APPEND, | ||
101 | .size = 512 * 1024, | ||
102 | }, | ||
103 | { | ||
104 | .name = "kernel_ro", | ||
105 | .offset = MTDPART_OFS_APPEND, | ||
106 | .size = 8 * 1024 * 1024, | ||
107 | .mask_flags = MTD_WRITEABLE, | ||
108 | }, | ||
109 | { | ||
110 | .name = "kernel", | ||
111 | .offset = MTDPART_OFS_APPEND, | ||
112 | .size = 8 * 1024 * 1024, | ||
113 | }, | ||
114 | { | ||
115 | .name = "data", | ||
116 | .offset = MTDPART_OFS_APPEND, | ||
117 | .size = MTDPART_SIZ_FULL, | ||
118 | }, | ||
119 | }; | ||
120 | |||
121 | static struct physmap_flash_data nor_flash_data = { | ||
122 | .width = 2, | ||
123 | .parts = nor_flash_partitions, | ||
124 | .nr_parts = ARRAY_SIZE(nor_flash_partitions), | ||
125 | }; | ||
126 | |||
127 | static struct resource nor_flash_resources[] = { | ||
128 | [0] = { | ||
129 | .start = 0x00000000, | ||
130 | .end = 0x08000000 - 1, | ||
131 | .flags = IORESOURCE_MEM, | ||
132 | } | ||
133 | }; | ||
134 | |||
135 | static struct platform_device nor_flash_device = { | ||
136 | .name = "physmap-flash", | ||
137 | .dev = { | ||
138 | .platform_data = &nor_flash_data, | ||
139 | }, | ||
140 | .num_resources = ARRAY_SIZE(nor_flash_resources), | ||
141 | .resource = nor_flash_resources, | ||
142 | }; | ||
143 | |||
144 | /* SMSC 9220 */ | ||
145 | static struct resource smc911x_resources[] = { | ||
146 | { | ||
147 | .start = 0x14000000, | ||
148 | .end = 0x16000000 - 1, | ||
149 | .flags = IORESOURCE_MEM, | ||
150 | }, { | ||
151 | .start = 6, | ||
152 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL, | ||
153 | }, | ||
154 | }; | ||
155 | |||
156 | static struct smsc911x_platform_config smsc911x_info = { | ||
157 | .flags = SMSC911X_USE_16BIT | SMSC911X_SAVE_MAC_ADDRESS, | ||
158 | .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, | ||
159 | .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, | ||
160 | }; | ||
161 | |||
162 | static struct platform_device smc911x_device = { | ||
163 | .name = "smsc911x", | ||
164 | .id = -1, | ||
165 | .num_resources = ARRAY_SIZE(smc911x_resources), | ||
166 | .resource = smc911x_resources, | ||
167 | .dev = { | ||
168 | .platform_data = &smsc911x_info, | ||
169 | }, | ||
170 | }; | ||
171 | |||
172 | /* KEYSC (Needs SW43 set to ON) */ | ||
173 | static struct sh_keysc_info keysc_info = { | ||
174 | .mode = SH_KEYSC_MODE_1, | ||
175 | .scan_timing = 3, | ||
176 | .delay = 2500, | ||
177 | .keycodes = { | ||
178 | KEY_0, KEY_1, KEY_2, KEY_3, KEY_4, | ||
179 | KEY_5, KEY_6, KEY_7, KEY_8, KEY_9, | ||
180 | KEY_A, KEY_B, KEY_C, KEY_D, KEY_E, | ||
181 | KEY_F, KEY_G, KEY_H, KEY_I, KEY_J, | ||
182 | KEY_K, KEY_L, KEY_M, KEY_N, KEY_O, | ||
183 | }, | ||
184 | }; | ||
185 | |||
186 | static struct resource keysc_resources[] = { | ||
187 | [0] = { | ||
188 | .name = "KEYSC", | ||
189 | .start = 0xe61b0000, | ||
190 | .end = 0xe61b0063, | ||
191 | .flags = IORESOURCE_MEM, | ||
192 | }, | ||
193 | [1] = { | ||
194 | .start = 79, | ||
195 | .flags = IORESOURCE_IRQ, | ||
196 | }, | ||
197 | }; | ||
198 | |||
199 | static struct platform_device keysc_device = { | ||
200 | .name = "sh_keysc", | ||
201 | .id = 0, /* "keysc0" clock */ | ||
202 | .num_resources = ARRAY_SIZE(keysc_resources), | ||
203 | .resource = keysc_resources, | ||
204 | .dev = { | ||
205 | .platform_data = &keysc_info, | ||
206 | }, | ||
207 | }; | ||
208 | |||
209 | static struct platform_device *ap4evb_devices[] __initdata = { | ||
210 | &nor_flash_device, | ||
211 | &smc911x_device, | ||
212 | &keysc_device, | ||
213 | }; | ||
214 | |||
215 | static struct map_desc ap4evb_io_desc[] __initdata = { | ||
216 | /* create a 1:1 entity map for 0xe6xxxxxx | ||
217 | * used by CPGA, INTC and PFC. | ||
218 | */ | ||
219 | { | ||
220 | .virtual = 0xe6000000, | ||
221 | .pfn = __phys_to_pfn(0xe6000000), | ||
222 | .length = 256 << 20, | ||
223 | .type = MT_DEVICE_NONSHARED | ||
224 | }, | ||
225 | }; | ||
226 | |||
227 | static void __init ap4evb_map_io(void) | ||
228 | { | ||
229 | iotable_init(ap4evb_io_desc, ARRAY_SIZE(ap4evb_io_desc)); | ||
230 | |||
231 | /* setup early devices, clocks and console here as well */ | ||
232 | sh7372_add_early_devices(); | ||
233 | sh7367_clock_init(); /* use g3 clocks for now */ | ||
234 | shmobile_setup_console(); | ||
235 | } | ||
236 | |||
237 | static void __init ap4evb_init(void) | ||
238 | { | ||
239 | sh7372_pinmux_init(); | ||
240 | |||
241 | /* enable SCIFA0 */ | ||
242 | gpio_request(GPIO_FN_SCIFA0_TXD, NULL); | ||
243 | gpio_request(GPIO_FN_SCIFA0_RXD, NULL); | ||
244 | |||
245 | /* enable SMSC911X */ | ||
246 | gpio_request(GPIO_FN_CS5A, NULL); | ||
247 | gpio_request(GPIO_FN_IRQ6_39, NULL); | ||
248 | |||
249 | /* enable LED 1 - 4 */ | ||
250 | gpio_request(GPIO_PORT185, NULL); | ||
251 | gpio_request(GPIO_PORT186, NULL); | ||
252 | gpio_request(GPIO_PORT187, NULL); | ||
253 | gpio_request(GPIO_PORT188, NULL); | ||
254 | gpio_direction_output(GPIO_PORT185, 1); | ||
255 | gpio_direction_output(GPIO_PORT186, 1); | ||
256 | gpio_direction_output(GPIO_PORT187, 1); | ||
257 | gpio_direction_output(GPIO_PORT188, 1); | ||
258 | gpio_export(GPIO_PORT185, 0); | ||
259 | gpio_export(GPIO_PORT186, 0); | ||
260 | gpio_export(GPIO_PORT187, 0); | ||
261 | gpio_export(GPIO_PORT188, 0); | ||
262 | |||
263 | /* enable Debug switch (S6) */ | ||
264 | gpio_request(GPIO_PORT32, NULL); | ||
265 | gpio_request(GPIO_PORT33, NULL); | ||
266 | gpio_request(GPIO_PORT34, NULL); | ||
267 | gpio_request(GPIO_PORT35, NULL); | ||
268 | gpio_direction_input(GPIO_PORT32); | ||
269 | gpio_direction_input(GPIO_PORT33); | ||
270 | gpio_direction_input(GPIO_PORT34); | ||
271 | gpio_direction_input(GPIO_PORT35); | ||
272 | gpio_export(GPIO_PORT32, 0); | ||
273 | gpio_export(GPIO_PORT33, 0); | ||
274 | gpio_export(GPIO_PORT34, 0); | ||
275 | gpio_export(GPIO_PORT35, 0); | ||
276 | |||
277 | /* enable KEYSC */ | ||
278 | gpio_request(GPIO_FN_KEYOUT0, NULL); | ||
279 | gpio_request(GPIO_FN_KEYOUT1, NULL); | ||
280 | gpio_request(GPIO_FN_KEYOUT2, NULL); | ||
281 | gpio_request(GPIO_FN_KEYOUT3, NULL); | ||
282 | gpio_request(GPIO_FN_KEYOUT4, NULL); | ||
283 | gpio_request(GPIO_FN_KEYIN0_136, NULL); | ||
284 | gpio_request(GPIO_FN_KEYIN1_135, NULL); | ||
285 | gpio_request(GPIO_FN_KEYIN2_134, NULL); | ||
286 | gpio_request(GPIO_FN_KEYIN3_133, NULL); | ||
287 | gpio_request(GPIO_FN_KEYIN4, NULL); | ||
288 | |||
289 | sh7372_add_standard_devices(); | ||
290 | |||
291 | platform_add_devices(ap4evb_devices, ARRAY_SIZE(ap4evb_devices)); | ||
292 | } | ||
293 | |||
294 | MACHINE_START(AP4EVB, "ap4evb") | ||
295 | .phys_io = 0xe6000000, | ||
296 | .io_pg_offst = ((0xe6000000) >> 18) & 0xfffc, | ||
297 | .map_io = ap4evb_map_io, | ||
298 | .init_irq = sh7372_init_irq, | ||
299 | .init_machine = ap4evb_init, | ||
300 | .timer = &shmobile_timer, | ||
301 | MACHINE_END | ||
diff --git a/arch/arm/mach-shmobile/board-g3evm.c b/arch/arm/mach-shmobile/board-g3evm.c new file mode 100644 index 00000000000..f36c9a94d32 --- /dev/null +++ b/arch/arm/mach-shmobile/board-g3evm.c | |||
@@ -0,0 +1,211 @@ | |||
1 | /* | ||
2 | * G3EVM board support | ||
3 | * | ||
4 | * Copyright (C) 2010 Magnus Damm | ||
5 | * Copyright (C) 2008 Yoshihiro Shimoda | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; version 2 of the License. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
19 | */ | ||
20 | #include <linux/kernel.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/interrupt.h> | ||
23 | #include <linux/irq.h> | ||
24 | #include <linux/platform_device.h> | ||
25 | #include <linux/delay.h> | ||
26 | #include <linux/mtd/mtd.h> | ||
27 | #include <linux/mtd/partitions.h> | ||
28 | #include <linux/mtd/physmap.h> | ||
29 | #include <linux/usb/r8a66597.h> | ||
30 | #include <linux/io.h> | ||
31 | #include <linux/gpio.h> | ||
32 | #include <mach/sh7367.h> | ||
33 | #include <mach/common.h> | ||
34 | #include <asm/mach-types.h> | ||
35 | #include <asm/mach/arch.h> | ||
36 | #include <asm/mach/map.h> | ||
37 | |||
38 | static struct mtd_partition nor_flash_partitions[] = { | ||
39 | { | ||
40 | .name = "loader", | ||
41 | .offset = 0x00000000, | ||
42 | .size = 512 * 1024, | ||
43 | }, | ||
44 | { | ||
45 | .name = "bootenv", | ||
46 | .offset = MTDPART_OFS_APPEND, | ||
47 | .size = 512 * 1024, | ||
48 | }, | ||
49 | { | ||
50 | .name = "kernel_ro", | ||
51 | .offset = MTDPART_OFS_APPEND, | ||
52 | .size = 8 * 1024 * 1024, | ||
53 | .mask_flags = MTD_WRITEABLE, | ||
54 | }, | ||
55 | { | ||
56 | .name = "kernel", | ||
57 | .offset = MTDPART_OFS_APPEND, | ||
58 | .size = 8 * 1024 * 1024, | ||
59 | }, | ||
60 | { | ||
61 | .name = "data", | ||
62 | .offset = MTDPART_OFS_APPEND, | ||
63 | .size = MTDPART_SIZ_FULL, | ||
64 | }, | ||
65 | }; | ||
66 | |||
67 | static struct physmap_flash_data nor_flash_data = { | ||
68 | .width = 2, | ||
69 | .parts = nor_flash_partitions, | ||
70 | .nr_parts = ARRAY_SIZE(nor_flash_partitions), | ||
71 | }; | ||
72 | |||
73 | static struct resource nor_flash_resources[] = { | ||
74 | [0] = { | ||
75 | .start = 0x00000000, | ||
76 | .end = 0x08000000 - 1, | ||
77 | .flags = IORESOURCE_MEM, | ||
78 | } | ||
79 | }; | ||
80 | |||
81 | static struct platform_device nor_flash_device = { | ||
82 | .name = "physmap-flash", | ||
83 | .dev = { | ||
84 | .platform_data = &nor_flash_data, | ||
85 | }, | ||
86 | .num_resources = ARRAY_SIZE(nor_flash_resources), | ||
87 | .resource = nor_flash_resources, | ||
88 | }; | ||
89 | |||
90 | /* USBHS */ | ||
91 | void usb_host_port_power(int port, int power) | ||
92 | { | ||
93 | if (!power) /* only power-on supported for now */ | ||
94 | return; | ||
95 | |||
96 | /* set VBOUT/PWEN and EXTLP0 in DVSTCTR */ | ||
97 | __raw_writew(__raw_readw(0xe6890008) | 0x600, 0xe6890008); | ||
98 | } | ||
99 | |||
100 | static struct r8a66597_platdata usb_host_data = { | ||
101 | .on_chip = 1, | ||
102 | .port_power = usb_host_port_power, | ||
103 | }; | ||
104 | |||
105 | static struct resource usb_host_resources[] = { | ||
106 | [0] = { | ||
107 | .name = "USBHS", | ||
108 | .start = 0xe6890000, | ||
109 | .end = 0xe68900e5, | ||
110 | .flags = IORESOURCE_MEM, | ||
111 | }, | ||
112 | [1] = { | ||
113 | .start = 65, | ||
114 | .flags = IORESOURCE_IRQ, | ||
115 | }, | ||
116 | }; | ||
117 | |||
118 | static struct platform_device usb_host_device = { | ||
119 | .name = "r8a66597_hcd", | ||
120 | .id = 0, | ||
121 | .dev = { | ||
122 | .platform_data = &usb_host_data, | ||
123 | .dma_mask = NULL, | ||
124 | .coherent_dma_mask = 0xffffffff, | ||
125 | }, | ||
126 | .num_resources = ARRAY_SIZE(usb_host_resources), | ||
127 | .resource = usb_host_resources, | ||
128 | }; | ||
129 | |||
130 | static struct platform_device *g3evm_devices[] __initdata = { | ||
131 | &nor_flash_device, | ||
132 | &usb_host_device, | ||
133 | }; | ||
134 | |||
135 | static struct map_desc g3evm_io_desc[] __initdata = { | ||
136 | /* create a 1:1 entity map for 0xe6xxxxxx | ||
137 | * used by CPGA, INTC and PFC. | ||
138 | */ | ||
139 | { | ||
140 | .virtual = 0xe6000000, | ||
141 | .pfn = __phys_to_pfn(0xe6000000), | ||
142 | .length = 256 << 20, | ||
143 | .type = MT_DEVICE_NONSHARED | ||
144 | }, | ||
145 | }; | ||
146 | |||
147 | static void __init g3evm_map_io(void) | ||
148 | { | ||
149 | iotable_init(g3evm_io_desc, ARRAY_SIZE(g3evm_io_desc)); | ||
150 | |||
151 | /* setup early devices, clocks and console here as well */ | ||
152 | sh7367_add_early_devices(); | ||
153 | sh7367_clock_init(); | ||
154 | shmobile_setup_console(); | ||
155 | } | ||
156 | |||
157 | static void __init g3evm_init(void) | ||
158 | { | ||
159 | sh7367_pinmux_init(); | ||
160 | |||
161 | /* Lit DS4 LED */ | ||
162 | gpio_request(GPIO_PORT22, NULL); | ||
163 | gpio_direction_output(GPIO_PORT22, 1); | ||
164 | gpio_export(GPIO_PORT22, 0); | ||
165 | |||
166 | /* Lit DS8 LED */ | ||
167 | gpio_request(GPIO_PORT23, NULL); | ||
168 | gpio_direction_output(GPIO_PORT23, 1); | ||
169 | gpio_export(GPIO_PORT23, 0); | ||
170 | |||
171 | /* Lit DS3 LED */ | ||
172 | gpio_request(GPIO_PORT24, NULL); | ||
173 | gpio_direction_output(GPIO_PORT24, 1); | ||
174 | gpio_export(GPIO_PORT24, 0); | ||
175 | |||
176 | /* SCIFA1 */ | ||
177 | gpio_request(GPIO_FN_SCIFA1_TXD, NULL); | ||
178 | gpio_request(GPIO_FN_SCIFA1_RXD, NULL); | ||
179 | gpio_request(GPIO_FN_SCIFA1_CTS, NULL); | ||
180 | gpio_request(GPIO_FN_SCIFA1_RTS, NULL); | ||
181 | |||
182 | /* USBHS */ | ||
183 | gpio_request(GPIO_FN_VBUS0, NULL); | ||
184 | gpio_request(GPIO_FN_PWEN, NULL); | ||
185 | gpio_request(GPIO_FN_OVCN, NULL); | ||
186 | gpio_request(GPIO_FN_OVCN2, NULL); | ||
187 | gpio_request(GPIO_FN_EXTLP, NULL); | ||
188 | gpio_request(GPIO_FN_IDIN, NULL); | ||
189 | |||
190 | /* enable clock in SYMSTPCR2 */ | ||
191 | __raw_writel(__raw_readl(0xe6158048) & ~(1 << 22), 0xe6158048); | ||
192 | |||
193 | /* setup USB phy */ | ||
194 | __raw_writew(0x0300, 0xe605810a); /* USBCR1 */ | ||
195 | __raw_writew(0x00e0, 0xe60581c0); /* CPFCH */ | ||
196 | __raw_writew(0x6010, 0xe60581c6); /* CGPOSR */ | ||
197 | __raw_writew(0x8a0a, 0xe605810c); /* USBCR2 */ | ||
198 | |||
199 | sh7367_add_standard_devices(); | ||
200 | |||
201 | platform_add_devices(g3evm_devices, ARRAY_SIZE(g3evm_devices)); | ||
202 | } | ||
203 | |||
204 | MACHINE_START(G3EVM, "g3evm") | ||
205 | .phys_io = 0xe6000000, | ||
206 | .io_pg_offst = ((0xe6000000) >> 18) & 0xfffc, | ||
207 | .map_io = g3evm_map_io, | ||
208 | .init_irq = sh7367_init_irq, | ||
209 | .init_machine = g3evm_init, | ||
210 | .timer = &shmobile_timer, | ||
211 | MACHINE_END | ||
diff --git a/arch/arm/mach-shmobile/board-g4evm.c b/arch/arm/mach-shmobile/board-g4evm.c new file mode 100644 index 00000000000..5acd623f93e --- /dev/null +++ b/arch/arm/mach-shmobile/board-g4evm.c | |||
@@ -0,0 +1,211 @@ | |||
1 | /* | ||
2 | * G4EVM board support | ||
3 | * | ||
4 | * Copyright (C) 2010 Magnus Damm | ||
5 | * Copyright (C) 2008 Yoshihiro Shimoda | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; version 2 of the License. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
19 | */ | ||
20 | #include <linux/kernel.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/interrupt.h> | ||
23 | #include <linux/irq.h> | ||
24 | #include <linux/platform_device.h> | ||
25 | #include <linux/delay.h> | ||
26 | #include <linux/mtd/mtd.h> | ||
27 | #include <linux/mtd/partitions.h> | ||
28 | #include <linux/mtd/physmap.h> | ||
29 | #include <linux/usb/r8a66597.h> | ||
30 | #include <linux/io.h> | ||
31 | #include <linux/gpio.h> | ||
32 | #include <mach/sh7377.h> | ||
33 | #include <mach/common.h> | ||
34 | #include <asm/mach-types.h> | ||
35 | #include <asm/mach/arch.h> | ||
36 | #include <asm/mach/map.h> | ||
37 | |||
38 | static struct mtd_partition nor_flash_partitions[] = { | ||
39 | { | ||
40 | .name = "loader", | ||
41 | .offset = 0x00000000, | ||
42 | .size = 512 * 1024, | ||
43 | }, | ||
44 | { | ||
45 | .name = "bootenv", | ||
46 | .offset = MTDPART_OFS_APPEND, | ||
47 | .size = 512 * 1024, | ||
48 | }, | ||
49 | { | ||
50 | .name = "kernel_ro", | ||
51 | .offset = MTDPART_OFS_APPEND, | ||
52 | .size = 8 * 1024 * 1024, | ||
53 | .mask_flags = MTD_WRITEABLE, | ||
54 | }, | ||
55 | { | ||
56 | .name = "kernel", | ||
57 | .offset = MTDPART_OFS_APPEND, | ||
58 | .size = 8 * 1024 * 1024, | ||
59 | }, | ||
60 | { | ||
61 | .name = "data", | ||
62 | .offset = MTDPART_OFS_APPEND, | ||
63 | .size = MTDPART_SIZ_FULL, | ||
64 | }, | ||
65 | }; | ||
66 | |||
67 | static struct physmap_flash_data nor_flash_data = { | ||
68 | .width = 2, | ||
69 | .parts = nor_flash_partitions, | ||
70 | .nr_parts = ARRAY_SIZE(nor_flash_partitions), | ||
71 | }; | ||
72 | |||
73 | static struct resource nor_flash_resources[] = { | ||
74 | [0] = { | ||
75 | .start = 0x00000000, | ||
76 | .end = 0x08000000 - 1, | ||
77 | .flags = IORESOURCE_MEM, | ||
78 | } | ||
79 | }; | ||
80 | |||
81 | static struct platform_device nor_flash_device = { | ||
82 | .name = "physmap-flash", | ||
83 | .dev = { | ||
84 | .platform_data = &nor_flash_data, | ||
85 | }, | ||
86 | .num_resources = ARRAY_SIZE(nor_flash_resources), | ||
87 | .resource = nor_flash_resources, | ||
88 | }; | ||
89 | |||
90 | /* USBHS */ | ||
91 | void usb_host_port_power(int port, int power) | ||
92 | { | ||
93 | if (!power) /* only power-on supported for now */ | ||
94 | return; | ||
95 | |||
96 | /* set VBOUT/PWEN and EXTLP0 in DVSTCTR */ | ||
97 | __raw_writew(__raw_readw(0xe6890008) | 0x600, 0xe6890008); | ||
98 | } | ||
99 | |||
100 | static struct r8a66597_platdata usb_host_data = { | ||
101 | .on_chip = 1, | ||
102 | .port_power = usb_host_port_power, | ||
103 | }; | ||
104 | |||
105 | static struct resource usb_host_resources[] = { | ||
106 | [0] = { | ||
107 | .name = "USBHS", | ||
108 | .start = 0xe6890000, | ||
109 | .end = 0xe68900e5, | ||
110 | .flags = IORESOURCE_MEM, | ||
111 | }, | ||
112 | [1] = { | ||
113 | .start = 65, | ||
114 | .end = 65, | ||
115 | .flags = IORESOURCE_IRQ, | ||
116 | }, | ||
117 | }; | ||
118 | |||
119 | static struct platform_device usb_host_device = { | ||
120 | .name = "r8a66597_hcd", | ||
121 | .id = 0, | ||
122 | .dev = { | ||
123 | .platform_data = &usb_host_data, | ||
124 | .dma_mask = NULL, | ||
125 | .coherent_dma_mask = 0xffffffff, | ||
126 | }, | ||
127 | .num_resources = ARRAY_SIZE(usb_host_resources), | ||
128 | .resource = usb_host_resources, | ||
129 | }; | ||
130 | |||
131 | static struct platform_device *g4evm_devices[] __initdata = { | ||
132 | &nor_flash_device, | ||
133 | &usb_host_device, | ||
134 | }; | ||
135 | |||
136 | static struct map_desc g4evm_io_desc[] __initdata = { | ||
137 | /* create a 1:1 entity map for 0xe6xxxxxx | ||
138 | * used by CPGA, INTC and PFC. | ||
139 | */ | ||
140 | { | ||
141 | .virtual = 0xe6000000, | ||
142 | .pfn = __phys_to_pfn(0xe6000000), | ||
143 | .length = 256 << 20, | ||
144 | .type = MT_DEVICE_NONSHARED | ||
145 | }, | ||
146 | }; | ||
147 | |||
148 | static void __init g4evm_map_io(void) | ||
149 | { | ||
150 | iotable_init(g4evm_io_desc, ARRAY_SIZE(g4evm_io_desc)); | ||
151 | |||
152 | /* setup early devices, clocks and console here as well */ | ||
153 | sh7377_add_early_devices(); | ||
154 | sh7367_clock_init(); /* use g3 clocks for now */ | ||
155 | shmobile_setup_console(); | ||
156 | } | ||
157 | |||
158 | static void __init g4evm_init(void) | ||
159 | { | ||
160 | sh7377_pinmux_init(); | ||
161 | |||
162 | /* Lit DS14 LED */ | ||
163 | gpio_request(GPIO_PORT109, NULL); | ||
164 | gpio_direction_output(GPIO_PORT109, 1); | ||
165 | gpio_export(GPIO_PORT109, 1); | ||
166 | |||
167 | /* Lit DS15 LED */ | ||
168 | gpio_request(GPIO_PORT110, NULL); | ||
169 | gpio_direction_output(GPIO_PORT110, 1); | ||
170 | gpio_export(GPIO_PORT110, 1); | ||
171 | |||
172 | /* Lit DS16 LED */ | ||
173 | gpio_request(GPIO_PORT112, NULL); | ||
174 | gpio_direction_output(GPIO_PORT112, 1); | ||
175 | gpio_export(GPIO_PORT112, 1); | ||
176 | |||
177 | /* Lit DS17 LED */ | ||
178 | gpio_request(GPIO_PORT113, NULL); | ||
179 | gpio_direction_output(GPIO_PORT113, 1); | ||
180 | gpio_export(GPIO_PORT113, 1); | ||
181 | |||
182 | /* USBHS */ | ||
183 | gpio_request(GPIO_FN_VBUS_0, NULL); | ||
184 | gpio_request(GPIO_FN_PWEN, NULL); | ||
185 | gpio_request(GPIO_FN_OVCN, NULL); | ||
186 | gpio_request(GPIO_FN_OVCN2, NULL); | ||
187 | gpio_request(GPIO_FN_EXTLP, NULL); | ||
188 | gpio_request(GPIO_FN_IDIN, NULL); | ||
189 | |||
190 | /* enable clock in SMSTPCR3 */ | ||
191 | __raw_writel(__raw_readl(0xe615013c) & ~(1 << 22), 0xe615013c); | ||
192 | |||
193 | /* setup USB phy */ | ||
194 | __raw_writew(0x0200, 0xe605810a); /* USBCR1 */ | ||
195 | __raw_writew(0x00e0, 0xe60581c0); /* CPFCH */ | ||
196 | __raw_writew(0x6010, 0xe60581c6); /* CGPOSR */ | ||
197 | __raw_writew(0x8a0a, 0xe605810c); /* USBCR2 */ | ||
198 | |||
199 | sh7377_add_standard_devices(); | ||
200 | |||
201 | platform_add_devices(g4evm_devices, ARRAY_SIZE(g4evm_devices)); | ||
202 | } | ||
203 | |||
204 | MACHINE_START(G4EVM, "g4evm") | ||
205 | .phys_io = 0xe6000000, | ||
206 | .io_pg_offst = ((0xe6000000) >> 18) & 0xfffc, | ||
207 | .map_io = g4evm_map_io, | ||
208 | .init_irq = sh7377_init_irq, | ||
209 | .init_machine = g4evm_init, | ||
210 | .timer = &shmobile_timer, | ||
211 | MACHINE_END | ||
diff --git a/arch/arm/mach-shmobile/clock-sh7367.c b/arch/arm/mach-shmobile/clock-sh7367.c new file mode 100644 index 00000000000..58bd54e1113 --- /dev/null +++ b/arch/arm/mach-shmobile/clock-sh7367.c | |||
@@ -0,0 +1,96 @@ | |||
1 | /* | ||
2 | * Preliminary clock framework support for sh7367 | ||
3 | * | ||
4 | * Copyright (C) 2010 Magnus Damm | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; version 2 of the License. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
18 | */ | ||
19 | #include <linux/init.h> | ||
20 | #include <linux/module.h> | ||
21 | #include <linux/kernel.h> | ||
22 | #include <linux/list.h> | ||
23 | #include <linux/clk.h> | ||
24 | |||
25 | struct clk { | ||
26 | const char *name; | ||
27 | unsigned long rate; | ||
28 | }; | ||
29 | |||
30 | #include <asm/clkdev.h> | ||
31 | |||
32 | int __clk_get(struct clk *clk) | ||
33 | { | ||
34 | return 1; | ||
35 | } | ||
36 | EXPORT_SYMBOL(__clk_get); | ||
37 | |||
38 | void __clk_put(struct clk *clk) | ||
39 | { | ||
40 | } | ||
41 | EXPORT_SYMBOL(__clk_put); | ||
42 | |||
43 | |||
44 | int clk_enable(struct clk *clk) | ||
45 | { | ||
46 | return 0; | ||
47 | } | ||
48 | EXPORT_SYMBOL(clk_enable); | ||
49 | |||
50 | void clk_disable(struct clk *clk) | ||
51 | { | ||
52 | } | ||
53 | EXPORT_SYMBOL(clk_disable); | ||
54 | |||
55 | unsigned long clk_get_rate(struct clk *clk) | ||
56 | { | ||
57 | return clk ? clk->rate : 0; | ||
58 | } | ||
59 | EXPORT_SYMBOL(clk_get_rate); | ||
60 | |||
61 | /* a static peripheral clock for now - enough to get sh-sci working */ | ||
62 | static struct clk peripheral_clk = { | ||
63 | .name = "peripheral_clk", | ||
64 | .rate = 48000000, | ||
65 | }; | ||
66 | |||
67 | /* a static rclk for now - enough to get sh_cmt working */ | ||
68 | static struct clk r_clk = { | ||
69 | .name = "r_clk", | ||
70 | .rate = 32768, | ||
71 | }; | ||
72 | |||
73 | /* a static usb0 for now - enough to get r8a66597 working */ | ||
74 | static struct clk usb0_clk = { | ||
75 | .name = "usb0", | ||
76 | }; | ||
77 | |||
78 | static struct clk_lookup lookups[] = { | ||
79 | { | ||
80 | .clk = &peripheral_clk, | ||
81 | }, { | ||
82 | .clk = &r_clk, | ||
83 | }, { | ||
84 | .clk = &usb0_clk, | ||
85 | } | ||
86 | }; | ||
87 | |||
88 | void __init sh7367_clock_init(void) | ||
89 | { | ||
90 | int i; | ||
91 | |||
92 | for (i = 0; i < ARRAY_SIZE(lookups); i++) { | ||
93 | lookups[i].con_id = lookups[i].clk->name; | ||
94 | clkdev_add(&lookups[i]); | ||
95 | } | ||
96 | } | ||
diff --git a/arch/arm/mach-shmobile/console.c b/arch/arm/mach-shmobile/console.c new file mode 100644 index 00000000000..9411a5bf4fd --- /dev/null +++ b/arch/arm/mach-shmobile/console.c | |||
@@ -0,0 +1,31 @@ | |||
1 | /* | ||
2 | * SH-Mobile Console | ||
3 | * | ||
4 | * Copyright (C) 2010 Magnus Damm | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; version 2 of the License. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
18 | */ | ||
19 | #include <linux/kernel.h> | ||
20 | #include <linux/init.h> | ||
21 | #include <linux/platform_device.h> | ||
22 | #include <mach/common.h> | ||
23 | #include <asm/mach/map.h> | ||
24 | |||
25 | void __init shmobile_setup_console(void) | ||
26 | { | ||
27 | parse_early_param(); | ||
28 | |||
29 | /* Let earlyprintk output early console messages */ | ||
30 | early_platform_driver_probe("earlyprintk", 1, 1); | ||
31 | } | ||
diff --git a/arch/arm/mach-shmobile/include/mach/clkdev.h b/arch/arm/mach-shmobile/include/mach/clkdev.h new file mode 100644 index 00000000000..36d0163a857 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/clkdev.h | |||
@@ -0,0 +1,7 @@ | |||
1 | #ifndef __ASM_MACH_CLKDEV_H | ||
2 | #define __ASM_MACH_CLKDEV_H | ||
3 | |||
4 | int __clk_get(struct clk *clk); | ||
5 | void __clk_put(struct clk *clk); | ||
6 | |||
7 | #endif /* __ASM_MACH_CLKDEV_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/common.h b/arch/arm/mach-shmobile/include/mach/common.h new file mode 100644 index 00000000000..57903605cc5 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/common.h | |||
@@ -0,0 +1,23 @@ | |||
1 | #ifndef __ARCH_MACH_COMMON_H | ||
2 | #define __ARCH_MACH_COMMON_H | ||
3 | |||
4 | extern struct sys_timer shmobile_timer; | ||
5 | extern void shmobile_setup_console(void); | ||
6 | |||
7 | extern void sh7367_init_irq(void); | ||
8 | extern void sh7367_add_early_devices(void); | ||
9 | extern void sh7367_add_standard_devices(void); | ||
10 | extern void sh7367_clock_init(void); | ||
11 | extern void sh7367_pinmux_init(void); | ||
12 | |||
13 | extern void sh7377_init_irq(void); | ||
14 | extern void sh7377_add_early_devices(void); | ||
15 | extern void sh7377_add_standard_devices(void); | ||
16 | extern void sh7377_pinmux_init(void); | ||
17 | |||
18 | extern void sh7372_init_irq(void); | ||
19 | extern void sh7372_add_early_devices(void); | ||
20 | extern void sh7372_add_standard_devices(void); | ||
21 | extern void sh7372_pinmux_init(void); | ||
22 | |||
23 | #endif /* __ARCH_MACH_COMMON_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/dma.h b/arch/arm/mach-shmobile/include/mach/dma.h new file mode 100644 index 00000000000..40a8c178f10 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/dma.h | |||
@@ -0,0 +1 @@ | |||
/* empty */ | |||
diff --git a/arch/arm/mach-shmobile/include/mach/entry-macro.S b/arch/arm/mach-shmobile/include/mach/entry-macro.S new file mode 100644 index 00000000000..a285d13c741 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/entry-macro.S | |||
@@ -0,0 +1,39 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2008 Renesas Solutions Corp. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; version 2 of the License. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program; if not, write to the Free Software | ||
15 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
16 | */ | ||
17 | #include <mach/hardware.h> | ||
18 | #include <mach/irqs.h> | ||
19 | |||
20 | .macro disable_fiq | ||
21 | .endm | ||
22 | |||
23 | .macro get_irqnr_preamble, base, tmp | ||
24 | ldr \base, =INTFLGA | ||
25 | .endm | ||
26 | |||
27 | .macro arch_ret_to_user, tmp1, tmp2 | ||
28 | .endm | ||
29 | |||
30 | .macro get_irqnr_and_base, irqnr, irqstat, base, tmp | ||
31 | ldr \irqnr, [\base] | ||
32 | cmp \irqnr, #0 | ||
33 | beq 1000f | ||
34 | /* intevt to irq number */ | ||
35 | lsr \irqnr, \irqnr, #0x5 | ||
36 | subs \irqnr, \irqnr, #16 | ||
37 | |||
38 | 1000: | ||
39 | .endm | ||
diff --git a/arch/arm/mach-shmobile/include/mach/gpio.h b/arch/arm/mach-shmobile/include/mach/gpio.h new file mode 100644 index 00000000000..5bc6bd444d7 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/gpio.h | |||
@@ -0,0 +1,48 @@ | |||
1 | /* | ||
2 | * Generic GPIO API and pinmux table support | ||
3 | * | ||
4 | * Copyright (c) 2008 Magnus Damm | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
9 | */ | ||
10 | #ifndef __ASM_ARCH_GPIO_H | ||
11 | #define __ASM_ARCH_GPIO_H | ||
12 | |||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/errno.h> | ||
15 | |||
16 | #define ARCH_NR_GPIOS 1024 | ||
17 | #include <linux/sh_pfc.h> | ||
18 | |||
19 | #ifdef CONFIG_GPIOLIB | ||
20 | |||
21 | static inline int gpio_get_value(unsigned gpio) | ||
22 | { | ||
23 | return __gpio_get_value(gpio); | ||
24 | } | ||
25 | |||
26 | static inline void gpio_set_value(unsigned gpio, int value) | ||
27 | { | ||
28 | __gpio_set_value(gpio, value); | ||
29 | } | ||
30 | |||
31 | static inline int gpio_cansleep(unsigned gpio) | ||
32 | { | ||
33 | return __gpio_cansleep(gpio); | ||
34 | } | ||
35 | |||
36 | static inline int gpio_to_irq(unsigned gpio) | ||
37 | { | ||
38 | return -ENOSYS; | ||
39 | } | ||
40 | |||
41 | static inline int irq_to_gpio(unsigned int irq) | ||
42 | { | ||
43 | return -EINVAL; | ||
44 | } | ||
45 | |||
46 | #endif /* CONFIG_GPIOLIB */ | ||
47 | |||
48 | #endif /* __ASM_ARCH_GPIO_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/hardware.h b/arch/arm/mach-shmobile/include/mach/hardware.h new file mode 100644 index 00000000000..3f0ef194603 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/hardware.h | |||
@@ -0,0 +1,7 @@ | |||
1 | #ifndef __ASM_MACH_HARDWARE_H | ||
2 | #define __ASM_MACH_HARDWARE_H | ||
3 | |||
4 | /* INTFLGA register - used by low level interrupt code in entry-macro.S */ | ||
5 | #define INTFLGA 0xe6980018 | ||
6 | |||
7 | #endif /* __ASM_MACH_HARDWARE_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/io.h b/arch/arm/mach-shmobile/include/mach/io.h new file mode 100644 index 00000000000..7339fe46cb7 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/io.h | |||
@@ -0,0 +1,9 @@ | |||
1 | #ifndef __ASM_MACH_IO_H | ||
2 | #define __ASM_MACH_IO_H | ||
3 | |||
4 | #define IO_SPACE_LIMIT 0xffffffff | ||
5 | |||
6 | #define __io(a) ((void __iomem *)(a)) | ||
7 | #define __mem_pci(a) (a) | ||
8 | |||
9 | #endif /* __ASM_MACH_IO_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/irqs.h b/arch/arm/mach-shmobile/include/mach/irqs.h new file mode 100644 index 00000000000..5179b72e1ee --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/irqs.h | |||
@@ -0,0 +1,10 @@ | |||
1 | #ifndef __ASM_MACH_IRQS_H | ||
2 | #define __ASM_MACH_IRQS_H | ||
3 | |||
4 | #define NR_IRQS 512 | ||
5 | #define NR_IRQS_LEGACY 8 | ||
6 | |||
7 | #define evt2irq(evt) (((evt) >> 5) - 16) | ||
8 | #define irq2evt(irq) (((irq) + 16) << 5) | ||
9 | |||
10 | #endif /* __ASM_MACH_IRQS_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/memory.h b/arch/arm/mach-shmobile/include/mach/memory.h new file mode 100644 index 00000000000..e188183f4dc --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/memory.h | |||
@@ -0,0 +1,7 @@ | |||
1 | #ifndef __ASM_MACH_MEMORY_H | ||
2 | #define __ASM_MACH_MEMORY_H | ||
3 | |||
4 | #define PHYS_OFFSET UL(CONFIG_MEMORY_START) | ||
5 | #define MEM_SIZE UL(CONFIG_MEMORY_SIZE) | ||
6 | |||
7 | #endif /* __ASM_MACH_MEMORY_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/sh7367.h b/arch/arm/mach-shmobile/include/mach/sh7367.h new file mode 100644 index 00000000000..52d0de686f6 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/sh7367.h | |||
@@ -0,0 +1,332 @@ | |||
1 | #ifndef __ASM_SH7367_H__ | ||
2 | #define __ASM_SH7367_H__ | ||
3 | |||
4 | /* Pin Function Controller: | ||
5 | * GPIO_FN_xx - GPIO used to select pin function | ||
6 | * GPIO_PORTxx - GPIO mapped to real I/O pin on CPU | ||
7 | */ | ||
8 | enum { | ||
9 | /* 49-1 -> 49-6 (GPIO) */ | ||
10 | GPIO_PORT0, GPIO_PORT1, GPIO_PORT2, GPIO_PORT3, GPIO_PORT4, | ||
11 | GPIO_PORT5, GPIO_PORT6, GPIO_PORT7, GPIO_PORT8, GPIO_PORT9, | ||
12 | |||
13 | GPIO_PORT10, GPIO_PORT11, GPIO_PORT12, GPIO_PORT13, GPIO_PORT14, | ||
14 | GPIO_PORT15, GPIO_PORT16, GPIO_PORT17, GPIO_PORT18, GPIO_PORT19, | ||
15 | |||
16 | GPIO_PORT20, GPIO_PORT21, GPIO_PORT22, GPIO_PORT23, GPIO_PORT24, | ||
17 | GPIO_PORT25, GPIO_PORT26, GPIO_PORT27, GPIO_PORT28, GPIO_PORT29, | ||
18 | |||
19 | GPIO_PORT30, GPIO_PORT31, GPIO_PORT32, GPIO_PORT33, GPIO_PORT34, | ||
20 | GPIO_PORT35, GPIO_PORT36, GPIO_PORT37, GPIO_PORT38, GPIO_PORT39, | ||
21 | |||
22 | GPIO_PORT40, GPIO_PORT41, GPIO_PORT42, GPIO_PORT43, GPIO_PORT44, | ||
23 | GPIO_PORT45, GPIO_PORT46, GPIO_PORT47, GPIO_PORT48, GPIO_PORT49, | ||
24 | |||
25 | GPIO_PORT50, GPIO_PORT51, GPIO_PORT52, GPIO_PORT53, GPIO_PORT54, | ||
26 | GPIO_PORT55, GPIO_PORT56, GPIO_PORT57, GPIO_PORT58, GPIO_PORT59, | ||
27 | |||
28 | GPIO_PORT60, GPIO_PORT61, GPIO_PORT62, GPIO_PORT63, GPIO_PORT64, | ||
29 | GPIO_PORT65, GPIO_PORT66, GPIO_PORT67, GPIO_PORT68, GPIO_PORT69, | ||
30 | |||
31 | GPIO_PORT70, GPIO_PORT71, GPIO_PORT72, GPIO_PORT73, GPIO_PORT74, | ||
32 | GPIO_PORT75, GPIO_PORT76, GPIO_PORT77, GPIO_PORT78, GPIO_PORT79, | ||
33 | |||
34 | GPIO_PORT80, GPIO_PORT81, GPIO_PORT82, GPIO_PORT83, GPIO_PORT84, | ||
35 | GPIO_PORT85, GPIO_PORT86, GPIO_PORT87, GPIO_PORT88, GPIO_PORT89, | ||
36 | |||
37 | GPIO_PORT90, GPIO_PORT91, GPIO_PORT92, GPIO_PORT93, GPIO_PORT94, | ||
38 | GPIO_PORT95, GPIO_PORT96, GPIO_PORT97, GPIO_PORT98, GPIO_PORT99, | ||
39 | |||
40 | GPIO_PORT100, GPIO_PORT101, GPIO_PORT102, GPIO_PORT103, GPIO_PORT104, | ||
41 | GPIO_PORT105, GPIO_PORT106, GPIO_PORT107, GPIO_PORT108, GPIO_PORT109, | ||
42 | |||
43 | GPIO_PORT110, GPIO_PORT111, GPIO_PORT112, GPIO_PORT113, GPIO_PORT114, | ||
44 | GPIO_PORT115, GPIO_PORT116, GPIO_PORT117, GPIO_PORT118, GPIO_PORT119, | ||
45 | |||
46 | GPIO_PORT120, GPIO_PORT121, GPIO_PORT122, GPIO_PORT123, GPIO_PORT124, | ||
47 | GPIO_PORT125, GPIO_PORT126, GPIO_PORT127, GPIO_PORT128, GPIO_PORT129, | ||
48 | |||
49 | GPIO_PORT130, GPIO_PORT131, GPIO_PORT132, GPIO_PORT133, GPIO_PORT134, | ||
50 | GPIO_PORT135, GPIO_PORT136, GPIO_PORT137, GPIO_PORT138, GPIO_PORT139, | ||
51 | |||
52 | GPIO_PORT140, GPIO_PORT141, GPIO_PORT142, GPIO_PORT143, GPIO_PORT144, | ||
53 | GPIO_PORT145, GPIO_PORT146, GPIO_PORT147, GPIO_PORT148, GPIO_PORT149, | ||
54 | |||
55 | GPIO_PORT150, GPIO_PORT151, GPIO_PORT152, GPIO_PORT153, GPIO_PORT154, | ||
56 | GPIO_PORT155, GPIO_PORT156, GPIO_PORT157, GPIO_PORT158, GPIO_PORT159, | ||
57 | |||
58 | GPIO_PORT160, GPIO_PORT161, GPIO_PORT162, GPIO_PORT163, GPIO_PORT164, | ||
59 | GPIO_PORT165, GPIO_PORT166, GPIO_PORT167, GPIO_PORT168, GPIO_PORT169, | ||
60 | |||
61 | GPIO_PORT170, GPIO_PORT171, GPIO_PORT172, GPIO_PORT173, GPIO_PORT174, | ||
62 | GPIO_PORT175, GPIO_PORT176, GPIO_PORT177, GPIO_PORT178, GPIO_PORT179, | ||
63 | |||
64 | GPIO_PORT180, GPIO_PORT181, GPIO_PORT182, GPIO_PORT183, GPIO_PORT184, | ||
65 | GPIO_PORT185, GPIO_PORT186, GPIO_PORT187, GPIO_PORT188, GPIO_PORT189, | ||
66 | |||
67 | GPIO_PORT190, GPIO_PORT191, GPIO_PORT192, GPIO_PORT193, GPIO_PORT194, | ||
68 | GPIO_PORT195, GPIO_PORT196, GPIO_PORT197, GPIO_PORT198, GPIO_PORT199, | ||
69 | |||
70 | GPIO_PORT200, GPIO_PORT201, GPIO_PORT202, GPIO_PORT203, GPIO_PORT204, | ||
71 | GPIO_PORT205, GPIO_PORT206, GPIO_PORT207, GPIO_PORT208, GPIO_PORT209, | ||
72 | |||
73 | GPIO_PORT210, GPIO_PORT211, GPIO_PORT212, GPIO_PORT213, GPIO_PORT214, | ||
74 | GPIO_PORT215, GPIO_PORT216, GPIO_PORT217, GPIO_PORT218, GPIO_PORT219, | ||
75 | |||
76 | GPIO_PORT220, GPIO_PORT221, GPIO_PORT222, GPIO_PORT223, GPIO_PORT224, | ||
77 | GPIO_PORT225, GPIO_PORT226, GPIO_PORT227, GPIO_PORT228, GPIO_PORT229, | ||
78 | |||
79 | GPIO_PORT230, GPIO_PORT231, GPIO_PORT232, GPIO_PORT233, GPIO_PORT234, | ||
80 | GPIO_PORT235, GPIO_PORT236, GPIO_PORT237, GPIO_PORT238, GPIO_PORT239, | ||
81 | |||
82 | GPIO_PORT240, GPIO_PORT241, GPIO_PORT242, GPIO_PORT243, GPIO_PORT244, | ||
83 | GPIO_PORT245, GPIO_PORT246, GPIO_PORT247, GPIO_PORT248, GPIO_PORT249, | ||
84 | |||
85 | GPIO_PORT250, GPIO_PORT251, GPIO_PORT252, GPIO_PORT253, GPIO_PORT254, | ||
86 | GPIO_PORT255, GPIO_PORT256, GPIO_PORT257, GPIO_PORT258, GPIO_PORT259, | ||
87 | |||
88 | GPIO_PORT260, GPIO_PORT261, GPIO_PORT262, GPIO_PORT263, GPIO_PORT264, | ||
89 | GPIO_PORT265, GPIO_PORT266, GPIO_PORT267, GPIO_PORT268, GPIO_PORT269, | ||
90 | |||
91 | GPIO_PORT270, GPIO_PORT271, GPIO_PORT272, | ||
92 | |||
93 | /* Special Pull-up / Pull-down Functions */ | ||
94 | GPIO_FN_PORT48_KEYIN0_PU, GPIO_FN_PORT49_KEYIN1_PU, | ||
95 | GPIO_FN_PORT50_KEYIN2_PU, GPIO_FN_PORT55_KEYIN3_PU, | ||
96 | GPIO_FN_PORT56_KEYIN4_PU, GPIO_FN_PORT57_KEYIN5_PU, | ||
97 | GPIO_FN_PORT58_KEYIN6_PU, | ||
98 | |||
99 | /* 49-1 (FN) */ | ||
100 | GPIO_FN_VBUS0, GPIO_FN_CPORT0, GPIO_FN_CPORT1, GPIO_FN_CPORT2, | ||
101 | GPIO_FN_CPORT3, GPIO_FN_CPORT4, GPIO_FN_CPORT5, GPIO_FN_CPORT6, | ||
102 | GPIO_FN_CPORT7, GPIO_FN_CPORT8, GPIO_FN_CPORT9, GPIO_FN_CPORT10, | ||
103 | GPIO_FN_CPORT11, GPIO_FN_SIN2, GPIO_FN_CPORT12, GPIO_FN_XCTS2, | ||
104 | GPIO_FN_CPORT13, GPIO_FN_RFSPO4, GPIO_FN_CPORT14, GPIO_FN_RFSPO5, | ||
105 | GPIO_FN_CPORT15, GPIO_FN_CPORT16, GPIO_FN_CPORT17, GPIO_FN_SOUT2, | ||
106 | GPIO_FN_CPORT18, GPIO_FN_XRTS2, GPIO_FN_CPORT19, GPIO_FN_CPORT20, | ||
107 | GPIO_FN_RFSPO6, GPIO_FN_CPORT21, GPIO_FN_STATUS0, GPIO_FN_CPORT22, | ||
108 | GPIO_FN_STATUS1, GPIO_FN_CPORT23, GPIO_FN_STATUS2, GPIO_FN_RFSPO7, | ||
109 | GPIO_FN_MPORT0, GPIO_FN_MPORT1, GPIO_FN_B_SYNLD1, GPIO_FN_B_SYNLD2, | ||
110 | GPIO_FN_XMAINPS, GPIO_FN_XDIVPS, GPIO_FN_XIDRST, GPIO_FN_IDCLK, | ||
111 | GPIO_FN_IDIO, GPIO_FN_SOUT1, GPIO_FN_SCIFA4_TXD, | ||
112 | GPIO_FN_M02_BERDAT, GPIO_FN_SIN1, GPIO_FN_SCIFA4_RXD, GPIO_FN_XWUP, | ||
113 | GPIO_FN_XRTS1, GPIO_FN_SCIFA4_RTS, GPIO_FN_M03_BERCLK, | ||
114 | GPIO_FN_XCTS1, GPIO_FN_SCIFA4_CTS, | ||
115 | |||
116 | /* 49-2 (FN) */ | ||
117 | GPIO_FN_HSU_IQ_AGC6, GPIO_FN_MFG2_IN2, GPIO_FN_MSIOF2_MCK0, | ||
118 | GPIO_FN_HSU_IQ_AGC5, GPIO_FN_MFG2_IN1, GPIO_FN_MSIOF2_MCK1, | ||
119 | GPIO_FN_HSU_IQ_AGC4, GPIO_FN_MSIOF2_RSYNC, | ||
120 | GPIO_FN_HSU_IQ_AGC3, GPIO_FN_MFG2_OUT1, GPIO_FN_MSIOF2_RSCK, | ||
121 | GPIO_FN_HSU_IQ_AGC2, GPIO_FN_PORT42_KEYOUT0, | ||
122 | GPIO_FN_HSU_IQ_AGC1, GPIO_FN_PORT43_KEYOUT1, | ||
123 | GPIO_FN_HSU_IQ_AGC0, GPIO_FN_PORT44_KEYOUT2, | ||
124 | GPIO_FN_HSU_IQ_AGC_ST, GPIO_FN_PORT45_KEYOUT3, | ||
125 | GPIO_FN_HSU_IQ_PDO, GPIO_FN_PORT46_KEYOUT4, | ||
126 | GPIO_FN_HSU_IQ_PYO, GPIO_FN_PORT47_KEYOUT5, | ||
127 | GPIO_FN_HSU_EN_TXMUX_G3MO, GPIO_FN_PORT48_KEYIN0, | ||
128 | GPIO_FN_HSU_I_TXMUX_G3MO, GPIO_FN_PORT49_KEYIN1, | ||
129 | GPIO_FN_HSU_Q_TXMUX_G3MO, GPIO_FN_PORT50_KEYIN2, | ||
130 | GPIO_FN_HSU_SYO, GPIO_FN_PORT51_MSIOF2_TSYNC, | ||
131 | GPIO_FN_HSU_SDO, GPIO_FN_PORT52_MSIOF2_TSCK, | ||
132 | GPIO_FN_HSU_TGTTI_G3MO, GPIO_FN_PORT53_MSIOF2_TXD, | ||
133 | GPIO_FN_B_TIME_STAMP, GPIO_FN_PORT54_MSIOF2_RXD, | ||
134 | GPIO_FN_HSU_SDI, GPIO_FN_PORT55_KEYIN3, | ||
135 | GPIO_FN_HSU_SCO, GPIO_FN_PORT56_KEYIN4, | ||
136 | GPIO_FN_HSU_DREQ, GPIO_FN_PORT57_KEYIN5, | ||
137 | GPIO_FN_HSU_DACK, GPIO_FN_PORT58_KEYIN6, | ||
138 | GPIO_FN_HSU_CLK61M, GPIO_FN_PORT59_MSIOF2_SS1, | ||
139 | GPIO_FN_HSU_XRST, GPIO_FN_PORT60_MSIOF2_SS2, | ||
140 | GPIO_FN_PCMCLKO, GPIO_FN_SYNC8KO, GPIO_FN_DNPCM_A, GPIO_FN_UPPCM_A, | ||
141 | GPIO_FN_XTALB1L, | ||
142 | GPIO_FN_GPS_AGC1, GPIO_FN_SCIFA0_RTS, | ||
143 | GPIO_FN_GPS_AGC2, GPIO_FN_SCIFA0_SCK, | ||
144 | GPIO_FN_GPS_AGC3, GPIO_FN_SCIFA0_TXD, | ||
145 | GPIO_FN_GPS_AGC4, GPIO_FN_SCIFA0_RXD, | ||
146 | GPIO_FN_GPS_PWRD, GPIO_FN_SCIFA0_CTS, | ||
147 | GPIO_FN_GPS_IM, GPIO_FN_GPS_IS, GPIO_FN_GPS_QM, GPIO_FN_GPS_QS, | ||
148 | GPIO_FN_SIUBOMC, GPIO_FN_TPU2TO0, | ||
149 | GPIO_FN_SIUCKB, GPIO_FN_TPU2TO1, | ||
150 | GPIO_FN_SIUBOLR, GPIO_FN_BBIF2_TSYNC, GPIO_FN_TPU2TO2, | ||
151 | GPIO_FN_SIUBOBT, GPIO_FN_BBIF2_TSCK, GPIO_FN_TPU2TO3, | ||
152 | GPIO_FN_SIUBOSLD, GPIO_FN_BBIF2_TXD, GPIO_FN_TPU3TO0, | ||
153 | GPIO_FN_SIUBILR, GPIO_FN_TPU3TO1, | ||
154 | GPIO_FN_SIUBIBT, GPIO_FN_TPU3TO2, | ||
155 | GPIO_FN_SIUBISLD, GPIO_FN_TPU3TO3, | ||
156 | GPIO_FN_NMI, GPIO_FN_TPU4TO0, | ||
157 | GPIO_FN_DNPCM_M, GPIO_FN_TPU4TO1, GPIO_FN_TPU4TO2, GPIO_FN_TPU4TO3, | ||
158 | GPIO_FN_IRQ_TMPB, | ||
159 | GPIO_FN_PWEN, GPIO_FN_MFG1_OUT1, | ||
160 | GPIO_FN_OVCN, GPIO_FN_MFG1_IN1, | ||
161 | GPIO_FN_OVCN2, GPIO_FN_MFG1_IN2, | ||
162 | |||
163 | /* 49-3 (FN) */ | ||
164 | GPIO_FN_RFSPO1, GPIO_FN_RFSPO2, GPIO_FN_RFSPO3, GPIO_FN_PORT93_VIO_CKO2, | ||
165 | GPIO_FN_USBTERM, GPIO_FN_EXTLP, GPIO_FN_IDIN, | ||
166 | GPIO_FN_SCIFA5_CTS, GPIO_FN_MFG0_IN1, | ||
167 | GPIO_FN_SCIFA5_RTS, GPIO_FN_MFG0_IN2, | ||
168 | GPIO_FN_SCIFA5_RXD, | ||
169 | GPIO_FN_SCIFA5_TXD, | ||
170 | GPIO_FN_SCIFA5_SCK, GPIO_FN_MFG0_OUT1, | ||
171 | GPIO_FN_A0_EA0, GPIO_FN_BS, | ||
172 | GPIO_FN_A14_EA14, GPIO_FN_PORT102_KEYOUT0, | ||
173 | GPIO_FN_A15_EA15, GPIO_FN_PORT103_KEYOUT1, GPIO_FN_DV_CLKOL, | ||
174 | GPIO_FN_A16_EA16, GPIO_FN_PORT104_KEYOUT2, | ||
175 | GPIO_FN_DV_VSYNCL, GPIO_FN_MSIOF0_SS1, | ||
176 | GPIO_FN_A17_EA17, GPIO_FN_PORT105_KEYOUT3, | ||
177 | GPIO_FN_DV_HSYNCL, GPIO_FN_MSIOF0_TSYNC, | ||
178 | GPIO_FN_A18_EA18, GPIO_FN_PORT106_KEYOUT4, | ||
179 | GPIO_FN_DV_DL0, GPIO_FN_MSIOF0_TSCK, | ||
180 | GPIO_FN_A19_EA19, GPIO_FN_PORT107_KEYOUT5, | ||
181 | GPIO_FN_DV_DL1, GPIO_FN_MSIOF0_TXD, | ||
182 | GPIO_FN_A20_EA20, GPIO_FN_PORT108_KEYIN0, | ||
183 | GPIO_FN_DV_DL2, GPIO_FN_MSIOF0_RSCK, | ||
184 | GPIO_FN_A21_EA21, GPIO_FN_PORT109_KEYIN1, | ||
185 | GPIO_FN_DV_DL3, GPIO_FN_MSIOF0_RSYNC, | ||
186 | GPIO_FN_A22_EA22, GPIO_FN_PORT110_KEYIN2, | ||
187 | GPIO_FN_DV_DL4, GPIO_FN_MSIOF0_MCK0, | ||
188 | GPIO_FN_A23_EA23, GPIO_FN_PORT111_KEYIN3, | ||
189 | GPIO_FN_DV_DL5, GPIO_FN_MSIOF0_MCK1, | ||
190 | GPIO_FN_A24_EA24, GPIO_FN_PORT112_KEYIN4, | ||
191 | GPIO_FN_DV_DL6, GPIO_FN_MSIOF0_RXD, | ||
192 | GPIO_FN_A25_EA25, GPIO_FN_PORT113_KEYIN5, | ||
193 | GPIO_FN_DV_DL7, GPIO_FN_MSIOF0_SS2, | ||
194 | GPIO_FN_A26, GPIO_FN_PORT113_KEYIN6, GPIO_FN_DV_CLKIL, | ||
195 | GPIO_FN_D0_ED0_NAF0, GPIO_FN_D1_ED1_NAF1, GPIO_FN_D2_ED2_NAF2, | ||
196 | GPIO_FN_D3_ED3_NAF3, GPIO_FN_D4_ED4_NAF4, GPIO_FN_D5_ED5_NAF5, | ||
197 | GPIO_FN_D6_ED6_NAF6, GPIO_FN_D7_ED7_NAF7, GPIO_FN_D8_ED8_NAF8, | ||
198 | GPIO_FN_D9_ED9_NAF9, GPIO_FN_D10_ED10_NAF10, GPIO_FN_D11_ED11_NAF11, | ||
199 | GPIO_FN_D12_ED12_NAF12, GPIO_FN_D13_ED13_NAF13, | ||
200 | GPIO_FN_D14_ED14_NAF14, GPIO_FN_D15_ED15_NAF15, | ||
201 | GPIO_FN_CS4, GPIO_FN_CS5A, GPIO_FN_CS5B, GPIO_FN_FCE1, | ||
202 | GPIO_FN_CS6B, GPIO_FN_XCS2, GPIO_FN_FCE0, GPIO_FN_CS6A, | ||
203 | GPIO_FN_DACK0, GPIO_FN_WAIT, GPIO_FN_DREQ0, GPIO_FN_RD_XRD, | ||
204 | GPIO_FN_A27, GPIO_FN_RDWR_XWE, GPIO_FN_WE0_XWR0_FWE, | ||
205 | GPIO_FN_WE1_XWR1, GPIO_FN_FRB, GPIO_FN_CKO, | ||
206 | GPIO_FN_NBRSTOUT, GPIO_FN_NBRST, | ||
207 | |||
208 | /* 49-4 (FN) */ | ||
209 | GPIO_FN_RFSPO0, GPIO_FN_PORT146_VIO_CKO2, GPIO_FN_TSTMD, | ||
210 | GPIO_FN_VIO_VD, GPIO_FN_VIO_HD, | ||
211 | GPIO_FN_VIO_D0, GPIO_FN_VIO_D1, GPIO_FN_VIO_D2, | ||
212 | GPIO_FN_VIO_D3, GPIO_FN_VIO_D4, GPIO_FN_VIO_D5, | ||
213 | GPIO_FN_VIO_D6, GPIO_FN_VIO_D7, GPIO_FN_VIO_D8, | ||
214 | GPIO_FN_VIO_D9, GPIO_FN_VIO_D10, GPIO_FN_VIO_D11, | ||
215 | GPIO_FN_VIO_D12, GPIO_FN_VIO_D13, GPIO_FN_VIO_D14, | ||
216 | GPIO_FN_VIO_D15, GPIO_FN_VIO_CLK, GPIO_FN_VIO_FIELD, | ||
217 | GPIO_FN_VIO_CKO, | ||
218 | GPIO_FN_MFG3_IN1, GPIO_FN_MFG3_IN2, | ||
219 | GPIO_FN_M9_SLCD_A01, GPIO_FN_MFG3_OUT1, GPIO_FN_TPU0TO0, | ||
220 | GPIO_FN_M10_SLCD_CK1, GPIO_FN_MFG4_IN1, GPIO_FN_TPU0TO1, | ||
221 | GPIO_FN_M11_SLCD_SO1, GPIO_FN_MFG4_IN2, GPIO_FN_TPU0TO2, | ||
222 | GPIO_FN_M12_SLCD_CE1, GPIO_FN_MFG4_OUT1, GPIO_FN_TPU0TO3, | ||
223 | GPIO_FN_LCDD0, GPIO_FN_PORT175_KEYOUT0, GPIO_FN_DV_D0, | ||
224 | GPIO_FN_SIUCKA, GPIO_FN_MFG0_OUT2, | ||
225 | GPIO_FN_LCDD1, GPIO_FN_PORT176_KEYOUT1, GPIO_FN_DV_D1, | ||
226 | GPIO_FN_SIUAOLR, GPIO_FN_BBIF2_TSYNC1, | ||
227 | GPIO_FN_LCDD2, GPIO_FN_PORT177_KEYOUT2, GPIO_FN_DV_D2, | ||
228 | GPIO_FN_SIUAOBT, GPIO_FN_BBIF2_TSCK1, | ||
229 | GPIO_FN_LCDD3, GPIO_FN_PORT178_KEYOUT3, GPIO_FN_DV_D3, | ||
230 | GPIO_FN_SIUAOSLD, GPIO_FN_BBIF2_TXD1, | ||
231 | GPIO_FN_LCDD4, GPIO_FN_PORT179_KEYOUT4, GPIO_FN_DV_D4, | ||
232 | GPIO_FN_SIUAISPD, GPIO_FN_MFG1_OUT2, | ||
233 | GPIO_FN_LCDD5, GPIO_FN_PORT180_KEYOUT5, GPIO_FN_DV_D5, | ||
234 | GPIO_FN_SIUAILR, GPIO_FN_MFG2_OUT2, | ||
235 | GPIO_FN_LCDD6, GPIO_FN_DV_D6, | ||
236 | GPIO_FN_SIUAIBT, GPIO_FN_MFG3_OUT2, GPIO_FN_XWR2, | ||
237 | GPIO_FN_LCDD7, GPIO_FN_DV_D7, | ||
238 | GPIO_FN_SIUAISLD, GPIO_FN_MFG4_OUT2, GPIO_FN_XWR3, | ||
239 | GPIO_FN_LCDD8, GPIO_FN_DV_D8, GPIO_FN_D16, GPIO_FN_ED16, | ||
240 | GPIO_FN_LCDD9, GPIO_FN_DV_D9, GPIO_FN_D17, GPIO_FN_ED17, | ||
241 | GPIO_FN_LCDD10, GPIO_FN_DV_D10, GPIO_FN_D18, GPIO_FN_ED18, | ||
242 | GPIO_FN_LCDD11, GPIO_FN_DV_D11, GPIO_FN_D19, GPIO_FN_ED19, | ||
243 | GPIO_FN_LCDD12, GPIO_FN_DV_D12, GPIO_FN_D20, GPIO_FN_ED20, | ||
244 | GPIO_FN_LCDD13, GPIO_FN_DV_D13, GPIO_FN_D21, GPIO_FN_ED21, | ||
245 | GPIO_FN_LCDD14, GPIO_FN_DV_D14, GPIO_FN_D22, GPIO_FN_ED22, | ||
246 | GPIO_FN_LCDD15, GPIO_FN_DV_D15, GPIO_FN_D23, GPIO_FN_ED23, | ||
247 | GPIO_FN_LCDD16, GPIO_FN_DV_HSYNC, GPIO_FN_D24, GPIO_FN_ED24, | ||
248 | GPIO_FN_LCDD17, GPIO_FN_DV_VSYNC, GPIO_FN_D25, GPIO_FN_ED25, | ||
249 | GPIO_FN_LCDD18, GPIO_FN_DREQ2, GPIO_FN_MSIOF0L_TSCK, | ||
250 | GPIO_FN_D26, GPIO_FN_ED26, | ||
251 | GPIO_FN_LCDD19, GPIO_FN_MSIOF0L_TSYNC, | ||
252 | GPIO_FN_D27, GPIO_FN_ED27, | ||
253 | GPIO_FN_LCDD20, GPIO_FN_TS_SPSYNC1, GPIO_FN_MSIOF0L_MCK0, | ||
254 | GPIO_FN_D28, GPIO_FN_ED28, | ||
255 | GPIO_FN_LCDD21, GPIO_FN_TS_SDAT1, GPIO_FN_MSIOF0L_MCK1, | ||
256 | GPIO_FN_D29, GPIO_FN_ED29, | ||
257 | GPIO_FN_LCDD22, GPIO_FN_TS_SDEN1, GPIO_FN_MSIOF0L_SS1, | ||
258 | GPIO_FN_D30, GPIO_FN_ED30, | ||
259 | GPIO_FN_LCDD23, GPIO_FN_TS_SCK1, GPIO_FN_MSIOF0L_SS2, | ||
260 | GPIO_FN_D31, GPIO_FN_ED31, | ||
261 | GPIO_FN_LCDDCK, GPIO_FN_LCDWR, GPIO_FN_DV_CKO, GPIO_FN_SIUAOSPD, | ||
262 | GPIO_FN_LCDRD, GPIO_FN_DACK2, GPIO_FN_MSIOF0L_RSYNC, | ||
263 | |||
264 | |||
265 | /* 49-5 (FN) */ | ||
266 | GPIO_FN_LCDHSYN, GPIO_FN_LCDCS, GPIO_FN_LCDCS2, GPIO_FN_DACK3, | ||
267 | GPIO_FN_LCDDISP, GPIO_FN_LCDRS, GPIO_FN_DREQ3, GPIO_FN_MSIOF0L_RSCK, | ||
268 | GPIO_FN_LCDCSYN, GPIO_FN_LCDCSYN2, GPIO_FN_DV_CKI, | ||
269 | GPIO_FN_LCDLCLK, GPIO_FN_DREQ1, GPIO_FN_MSIOF0L_RXD, | ||
270 | GPIO_FN_LCDDON, GPIO_FN_LCDDON2, GPIO_FN_DACK1, GPIO_FN_MSIOF0L_TXD, | ||
271 | GPIO_FN_VIO_DR0, GPIO_FN_VIO_DR1, GPIO_FN_VIO_DR2, GPIO_FN_VIO_DR3, | ||
272 | GPIO_FN_VIO_DR4, GPIO_FN_VIO_DR5, GPIO_FN_VIO_DR6, GPIO_FN_VIO_DR7, | ||
273 | GPIO_FN_VIO_VDR, GPIO_FN_VIO_HDR, | ||
274 | GPIO_FN_VIO_CLKR, GPIO_FN_VIO_CKOR, | ||
275 | GPIO_FN_SCIFA1_TXD, GPIO_FN_GPS_PGFA0, | ||
276 | GPIO_FN_SCIFA1_SCK, GPIO_FN_GPS_PGFA1, | ||
277 | GPIO_FN_SCIFA1_RTS, GPIO_FN_GPS_EPPSINMON, | ||
278 | GPIO_FN_SCIFA1_RXD, GPIO_FN_SCIFA1_CTS, | ||
279 | GPIO_FN_MSIOF1_TXD, GPIO_FN_SCIFA1_TXD2, GPIO_FN_GPS_TXD, | ||
280 | GPIO_FN_MSIOF1_TSYNC, GPIO_FN_SCIFA1_CTS2, GPIO_FN_I2C_SDA2, | ||
281 | GPIO_FN_MSIOF1_TSCK, GPIO_FN_SCIFA1_SCK2, | ||
282 | GPIO_FN_MSIOF1_RXD, GPIO_FN_SCIFA1_RXD2, GPIO_FN_GPS_RXD, | ||
283 | GPIO_FN_MSIOF1_RSCK, GPIO_FN_SCIFA1_RTS2, | ||
284 | GPIO_FN_MSIOF1_RSYNC, GPIO_FN_I2C_SCL2, | ||
285 | GPIO_FN_MSIOF1_MCK0, GPIO_FN_MSIOF1_MCK1, | ||
286 | GPIO_FN_MSIOF1_SS1, GPIO_FN_EDBGREQ3, | ||
287 | GPIO_FN_MSIOF1_SS2, | ||
288 | GPIO_FN_PORT236_IROUT, GPIO_FN_IRDA_OUT, | ||
289 | GPIO_FN_IRDA_IN, GPIO_FN_IRDA_FIRSEL, | ||
290 | GPIO_FN_TPU1TO0, GPIO_FN_TS_SPSYNC3, | ||
291 | GPIO_FN_TPU1TO1, GPIO_FN_TS_SDAT3, | ||
292 | GPIO_FN_TPU1TO2, GPIO_FN_TS_SDEN3, GPIO_FN_PORT241_MSIOF2_SS1, | ||
293 | GPIO_FN_TPU1TO3, GPIO_FN_PORT242_MSIOF2_TSCK, | ||
294 | GPIO_FN_M13_BSW, GPIO_FN_PORT243_MSIOF2_TSYNC, | ||
295 | GPIO_FN_M14_GSW, GPIO_FN_PORT244_MSIOF2_TXD, | ||
296 | GPIO_FN_PORT245_IROUT, GPIO_FN_M15_RSW, | ||
297 | GPIO_FN_SOUT3, GPIO_FN_SCIFA2_TXD1, | ||
298 | GPIO_FN_SIN3, GPIO_FN_SCIFA2_RXD1, | ||
299 | GPIO_FN_XRTS3, GPIO_FN_SCIFA2_RTS1, GPIO_FN_PORT248_MSIOF2_SS2, | ||
300 | GPIO_FN_XCTS3, GPIO_FN_SCIFA2_CTS1, GPIO_FN_PORT249_MSIOF2_RXD, | ||
301 | GPIO_FN_DINT, GPIO_FN_SCIFA2_SCK1, GPIO_FN_TS_SCK3, | ||
302 | GPIO_FN_SDHICLK0, GPIO_FN_TCK2, | ||
303 | GPIO_FN_SDHICD0, | ||
304 | GPIO_FN_SDHID0_0, GPIO_FN_TMS2, | ||
305 | GPIO_FN_SDHID0_1, GPIO_FN_TDO2, | ||
306 | GPIO_FN_SDHID0_2, GPIO_FN_TDI2, | ||
307 | GPIO_FN_SDHID0_3, GPIO_FN_RTCK2, | ||
308 | |||
309 | /* 49-6 (FN) */ | ||
310 | GPIO_FN_SDHICMD0, GPIO_FN_TRST2, | ||
311 | GPIO_FN_SDHIWP0, GPIO_FN_EDBGREQ2, | ||
312 | GPIO_FN_SDHICLK1, GPIO_FN_TCK3, | ||
313 | GPIO_FN_SDHID1_0, GPIO_FN_M11_SLCD_SO2, | ||
314 | GPIO_FN_TS_SPSYNC2, GPIO_FN_TMS3, | ||
315 | GPIO_FN_SDHID1_1, GPIO_FN_M9_SLCD_AO2, | ||
316 | GPIO_FN_TS_SDAT2, GPIO_FN_TDO3, | ||
317 | GPIO_FN_SDHID1_2, GPIO_FN_M10_SLCD_CK2, | ||
318 | GPIO_FN_TS_SDEN2, GPIO_FN_TDI3, | ||
319 | GPIO_FN_SDHID1_3, GPIO_FN_M12_SLCD_CE2, | ||
320 | GPIO_FN_TS_SCK2, GPIO_FN_RTCK3, | ||
321 | GPIO_FN_SDHICMD1, GPIO_FN_TRST3, | ||
322 | GPIO_FN_SDHICLK2, GPIO_FN_SCIFB_SCK, | ||
323 | GPIO_FN_SDHID2_0, GPIO_FN_SCIFB_TXD, | ||
324 | GPIO_FN_SDHID2_1, GPIO_FN_SCIFB_CTS, | ||
325 | GPIO_FN_SDHID2_2, GPIO_FN_SCIFB_RXD, | ||
326 | GPIO_FN_SDHID2_3, GPIO_FN_SCIFB_RTS, | ||
327 | GPIO_FN_SDHICMD2, | ||
328 | GPIO_FN_RESETOUTS, | ||
329 | GPIO_FN_DIVLOCK, | ||
330 | }; | ||
331 | |||
332 | #endif /* __ASM_SH7367_H__ */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/sh7372.h b/arch/arm/mach-shmobile/include/mach/sh7372.h new file mode 100644 index 00000000000..dc34f00c56b --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/sh7372.h | |||
@@ -0,0 +1,434 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2010 Renesas Solutions Corp. | ||
3 | * | ||
4 | * Kuninori Morimoto <morimoto.kuninori@renesas.com> | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
9 | */ | ||
10 | |||
11 | #ifndef __ASM_SH7372_H__ | ||
12 | #define __ASM_SH7372_H__ | ||
13 | |||
14 | /* | ||
15 | * Pin Function Controller: | ||
16 | * GPIO_FN_xx - GPIO used to select pin function | ||
17 | * GPIO_PORTxx - GPIO mapped to real I/O pin on CPU | ||
18 | */ | ||
19 | enum { | ||
20 | /* PORT */ | ||
21 | GPIO_PORT0, GPIO_PORT1, GPIO_PORT2, GPIO_PORT3, GPIO_PORT4, | ||
22 | GPIO_PORT5, GPIO_PORT6, GPIO_PORT7, GPIO_PORT8, GPIO_PORT9, | ||
23 | |||
24 | GPIO_PORT10, GPIO_PORT11, GPIO_PORT12, GPIO_PORT13, GPIO_PORT14, | ||
25 | GPIO_PORT15, GPIO_PORT16, GPIO_PORT17, GPIO_PORT18, GPIO_PORT19, | ||
26 | |||
27 | GPIO_PORT20, GPIO_PORT21, GPIO_PORT22, GPIO_PORT23, GPIO_PORT24, | ||
28 | GPIO_PORT25, GPIO_PORT26, GPIO_PORT27, GPIO_PORT28, GPIO_PORT29, | ||
29 | |||
30 | GPIO_PORT30, GPIO_PORT31, GPIO_PORT32, GPIO_PORT33, GPIO_PORT34, | ||
31 | GPIO_PORT35, GPIO_PORT36, GPIO_PORT37, GPIO_PORT38, GPIO_PORT39, | ||
32 | |||
33 | GPIO_PORT40, GPIO_PORT41, GPIO_PORT42, GPIO_PORT43, GPIO_PORT44, | ||
34 | GPIO_PORT45, GPIO_PORT46, GPIO_PORT47, GPIO_PORT48, GPIO_PORT49, | ||
35 | |||
36 | GPIO_PORT50, GPIO_PORT51, GPIO_PORT52, GPIO_PORT53, GPIO_PORT54, | ||
37 | GPIO_PORT55, GPIO_PORT56, GPIO_PORT57, GPIO_PORT58, GPIO_PORT59, | ||
38 | |||
39 | GPIO_PORT60, GPIO_PORT61, GPIO_PORT62, GPIO_PORT63, GPIO_PORT64, | ||
40 | GPIO_PORT65, GPIO_PORT66, GPIO_PORT67, GPIO_PORT68, GPIO_PORT69, | ||
41 | |||
42 | GPIO_PORT70, GPIO_PORT71, GPIO_PORT72, GPIO_PORT73, GPIO_PORT74, | ||
43 | GPIO_PORT75, GPIO_PORT76, GPIO_PORT77, GPIO_PORT78, GPIO_PORT79, | ||
44 | |||
45 | GPIO_PORT80, GPIO_PORT81, GPIO_PORT82, GPIO_PORT83, GPIO_PORT84, | ||
46 | GPIO_PORT85, GPIO_PORT86, GPIO_PORT87, GPIO_PORT88, GPIO_PORT89, | ||
47 | |||
48 | GPIO_PORT90, GPIO_PORT91, GPIO_PORT92, GPIO_PORT93, GPIO_PORT94, | ||
49 | GPIO_PORT95, GPIO_PORT96, GPIO_PORT97, GPIO_PORT98, GPIO_PORT99, | ||
50 | |||
51 | GPIO_PORT100, GPIO_PORT101, GPIO_PORT102, GPIO_PORT103, GPIO_PORT104, | ||
52 | GPIO_PORT105, GPIO_PORT106, GPIO_PORT107, GPIO_PORT108, GPIO_PORT109, | ||
53 | |||
54 | GPIO_PORT110, GPIO_PORT111, GPIO_PORT112, GPIO_PORT113, GPIO_PORT114, | ||
55 | GPIO_PORT115, GPIO_PORT116, GPIO_PORT117, GPIO_PORT118, GPIO_PORT119, | ||
56 | |||
57 | GPIO_PORT120, GPIO_PORT121, GPIO_PORT122, GPIO_PORT123, GPIO_PORT124, | ||
58 | GPIO_PORT125, GPIO_PORT126, GPIO_PORT127, GPIO_PORT128, GPIO_PORT129, | ||
59 | |||
60 | GPIO_PORT130, GPIO_PORT131, GPIO_PORT132, GPIO_PORT133, GPIO_PORT134, | ||
61 | GPIO_PORT135, GPIO_PORT136, GPIO_PORT137, GPIO_PORT138, GPIO_PORT139, | ||
62 | |||
63 | GPIO_PORT140, GPIO_PORT141, GPIO_PORT142, GPIO_PORT143, GPIO_PORT144, | ||
64 | GPIO_PORT145, GPIO_PORT146, GPIO_PORT147, GPIO_PORT148, GPIO_PORT149, | ||
65 | |||
66 | GPIO_PORT150, GPIO_PORT151, GPIO_PORT152, GPIO_PORT153, GPIO_PORT154, | ||
67 | GPIO_PORT155, GPIO_PORT156, GPIO_PORT157, GPIO_PORT158, GPIO_PORT159, | ||
68 | |||
69 | GPIO_PORT160, GPIO_PORT161, GPIO_PORT162, GPIO_PORT163, GPIO_PORT164, | ||
70 | GPIO_PORT165, GPIO_PORT166, GPIO_PORT167, GPIO_PORT168, GPIO_PORT169, | ||
71 | |||
72 | GPIO_PORT170, GPIO_PORT171, GPIO_PORT172, GPIO_PORT173, GPIO_PORT174, | ||
73 | GPIO_PORT175, GPIO_PORT176, GPIO_PORT177, GPIO_PORT178, GPIO_PORT179, | ||
74 | |||
75 | GPIO_PORT180, GPIO_PORT181, GPIO_PORT182, GPIO_PORT183, GPIO_PORT184, | ||
76 | GPIO_PORT185, GPIO_PORT186, GPIO_PORT187, GPIO_PORT188, GPIO_PORT189, | ||
77 | |||
78 | GPIO_PORT190, | ||
79 | |||
80 | /* IRQ */ | ||
81 | GPIO_FN_IRQ0_6, /* PORT 6 */ | ||
82 | GPIO_FN_IRQ0_162, /* PORT 162 */ | ||
83 | GPIO_FN_IRQ1, /* PORT 12 */ | ||
84 | GPIO_FN_IRQ2_4, /* PORT 4 */ | ||
85 | GPIO_FN_IRQ2_5, /* PORT 5 */ | ||
86 | GPIO_FN_IRQ3_8, /* PORT 8 */ | ||
87 | GPIO_FN_IRQ3_16, /* PORT 16 */ | ||
88 | GPIO_FN_IRQ4_17, /* PORT 17 */ | ||
89 | GPIO_FN_IRQ4_163, /* PORT 163 */ | ||
90 | GPIO_FN_IRQ5, /* PORT 18 */ | ||
91 | GPIO_FN_IRQ6_39, /* PORT 39 */ | ||
92 | GPIO_FN_IRQ6_164, /* PORT 164 */ | ||
93 | GPIO_FN_IRQ7_40, /* PORT 40 */ | ||
94 | GPIO_FN_IRQ7_167, /* PORT 167 */ | ||
95 | GPIO_FN_IRQ8_41, /* PORT 41 */ | ||
96 | GPIO_FN_IRQ8_168, /* PORT 168 */ | ||
97 | GPIO_FN_IRQ9_42, /* PORT 42 */ | ||
98 | GPIO_FN_IRQ9_169, /* PORT 169 */ | ||
99 | GPIO_FN_IRQ10, /* PORT 65 */ | ||
100 | GPIO_FN_IRQ11, /* PORT 67 */ | ||
101 | GPIO_FN_IRQ12_80, /* PORT 80 */ | ||
102 | GPIO_FN_IRQ12_137, /* PORT 137 */ | ||
103 | GPIO_FN_IRQ13_81, /* PORT 81 */ | ||
104 | GPIO_FN_IRQ13_145, /* PORT 145 */ | ||
105 | GPIO_FN_IRQ14_82, /* PORT 82 */ | ||
106 | GPIO_FN_IRQ14_146, /* PORT 146 */ | ||
107 | GPIO_FN_IRQ15_83, /* PORT 83 */ | ||
108 | GPIO_FN_IRQ15_147, /* PORT 147 */ | ||
109 | GPIO_FN_IRQ16_84, /* PORT 84 */ | ||
110 | GPIO_FN_IRQ16_170, /* PORT 170 */ | ||
111 | GPIO_FN_IRQ17, /* PORT 85 */ | ||
112 | GPIO_FN_IRQ18, /* PORT 86 */ | ||
113 | GPIO_FN_IRQ19, /* PORT 87 */ | ||
114 | GPIO_FN_IRQ20, /* PORT 92 */ | ||
115 | GPIO_FN_IRQ21, /* PORT 93 */ | ||
116 | GPIO_FN_IRQ22, /* PORT 94 */ | ||
117 | GPIO_FN_IRQ23, /* PORT 95 */ | ||
118 | GPIO_FN_IRQ24, /* PORT 112 */ | ||
119 | GPIO_FN_IRQ25, /* PORT 119 */ | ||
120 | GPIO_FN_IRQ26_121, /* PORT 121 */ | ||
121 | GPIO_FN_IRQ26_172, /* PORT 172 */ | ||
122 | GPIO_FN_IRQ27_122, /* PORT 122 */ | ||
123 | GPIO_FN_IRQ27_180, /* PORT 180 */ | ||
124 | GPIO_FN_IRQ28_123, /* PORT 123 */ | ||
125 | GPIO_FN_IRQ28_181, /* PORT 181 */ | ||
126 | GPIO_FN_IRQ29_129, /* PORT 129 */ | ||
127 | GPIO_FN_IRQ29_182, /* PORT 182 */ | ||
128 | GPIO_FN_IRQ30_130, /* PORT 130 */ | ||
129 | GPIO_FN_IRQ30_183, /* PORT 183 */ | ||
130 | GPIO_FN_IRQ31_138, /* PORT 138 */ | ||
131 | GPIO_FN_IRQ31_184, /* PORT 184 */ | ||
132 | |||
133 | /* | ||
134 | * MSIOF0 (PORT 36, 37, 38, 39 | ||
135 | * 40, 41, 42, 43, 44, 45) | ||
136 | */ | ||
137 | GPIO_FN_MSIOF0_TSYNC, GPIO_FN_MSIOF0_TSCK, | ||
138 | GPIO_FN_MSIOF0_RXD, GPIO_FN_MSIOF0_RSCK, | ||
139 | GPIO_FN_MSIOF0_RSYNC, GPIO_FN_MSIOF0_MCK0, | ||
140 | GPIO_FN_MSIOF0_MCK1, GPIO_FN_MSIOF0_SS1, | ||
141 | GPIO_FN_MSIOF0_SS2, GPIO_FN_MSIOF0_TXD, | ||
142 | |||
143 | /* | ||
144 | * MSIOF1 (PORT 39, 40, 41, 42, 43, 44 | ||
145 | * 84, 85, 86, 87, 88, 89, 90, 91, 92, 93) | ||
146 | */ | ||
147 | GPIO_FN_MSIOF1_TSCK_39, GPIO_FN_MSIOF1_TSYNC_40, | ||
148 | GPIO_FN_MSIOF1_TSCK_88, GPIO_FN_MSIOF1_TSYNC_89, | ||
149 | GPIO_FN_MSIOF1_TXD_41, GPIO_FN_MSIOF1_RXD_42, | ||
150 | GPIO_FN_MSIOF1_TXD_90, GPIO_FN_MSIOF1_RXD_91, | ||
151 | GPIO_FN_MSIOF1_SS1_43, GPIO_FN_MSIOF1_SS2_44, | ||
152 | GPIO_FN_MSIOF1_SS1_92, GPIO_FN_MSIOF1_SS2_93, | ||
153 | GPIO_FN_MSIOF1_RSCK, GPIO_FN_MSIOF1_RSYNC, | ||
154 | GPIO_FN_MSIOF1_MCK0, GPIO_FN_MSIOF1_MCK1, | ||
155 | |||
156 | /* | ||
157 | * MSIOF2 (PORT 134, 135, 136, 137, 138, 139 | ||
158 | * 148, 149, 150, 151) | ||
159 | */ | ||
160 | GPIO_FN_MSIOF2_RSCK, GPIO_FN_MSIOF2_RSYNC, | ||
161 | GPIO_FN_MSIOF2_MCK0, GPIO_FN_MSIOF2_MCK1, | ||
162 | GPIO_FN_MSIOF2_SS1, GPIO_FN_MSIOF2_SS2, | ||
163 | GPIO_FN_MSIOF2_TSYNC, GPIO_FN_MSIOF2_TSCK, | ||
164 | GPIO_FN_MSIOF2_RXD, GPIO_FN_MSIOF2_TXD, | ||
165 | |||
166 | /* MSIOF3 (PORT 76, 77, 78, 79, 80, 81, 82, 83) */ | ||
167 | GPIO_FN_BBIF1_RXD, GPIO_FN_BBIF1_TSYNC, | ||
168 | GPIO_FN_BBIF1_TSCK, GPIO_FN_BBIF1_TXD, | ||
169 | GPIO_FN_BBIF1_RSCK, GPIO_FN_BBIF1_RSYNC, | ||
170 | GPIO_FN_BBIF1_FLOW, GPIO_FN_BB_RX_FLOW_N, | ||
171 | |||
172 | /* MSIOF4 (PORT 0, 1, 2, 3) */ | ||
173 | GPIO_FN_BBIF2_TSCK1, GPIO_FN_BBIF2_TSYNC1, | ||
174 | GPIO_FN_BBIF2_TXD1, GPIO_FN_BBIF2_RXD, | ||
175 | |||
176 | /* FSI (PORT 4, 5, 6, 7, 8, 9, 10, 11, 15) */ | ||
177 | GPIO_FN_FSIACK, GPIO_FN_FSIBCK, | ||
178 | GPIO_FN_FSIAILR, GPIO_FN_FSIAIBT, | ||
179 | GPIO_FN_FSIAISLD, GPIO_FN_FSIAOMC, | ||
180 | GPIO_FN_FSIAOLR, GPIO_FN_FSIAOBT, | ||
181 | GPIO_FN_FSIAOSLD, GPIO_FN_FSIASPDIF_11, | ||
182 | GPIO_FN_FSIASPDIF_15, | ||
183 | |||
184 | /* FMSI (PORT 12, 13, 14, 15, 16, 17, 18, 65) */ | ||
185 | GPIO_FN_FMSOCK, GPIO_FN_FMSOOLR, | ||
186 | GPIO_FN_FMSIOLR, GPIO_FN_FMSOOBT, | ||
187 | GPIO_FN_FMSIOBT, GPIO_FN_FMSOSLD, | ||
188 | GPIO_FN_FMSOILR, GPIO_FN_FMSIILR, | ||
189 | GPIO_FN_FMSOIBT, GPIO_FN_FMSIIBT, | ||
190 | GPIO_FN_FMSISLD, GPIO_FN_FMSICK, | ||
191 | |||
192 | /* SCIFA0 (PORT 152, 153, 156, 157, 158) */ | ||
193 | GPIO_FN_SCIFA0_TXD, GPIO_FN_SCIFA0_RXD, | ||
194 | GPIO_FN_SCIFA0_SCK, GPIO_FN_SCIFA0_RTS, | ||
195 | GPIO_FN_SCIFA0_CTS, | ||
196 | |||
197 | /* SCIFA1 (PORT 154, 155, 159, 160, 161) */ | ||
198 | GPIO_FN_SCIFA1_TXD, GPIO_FN_SCIFA1_RXD, | ||
199 | GPIO_FN_SCIFA1_SCK, GPIO_FN_SCIFA1_RTS, | ||
200 | GPIO_FN_SCIFA1_CTS, | ||
201 | |||
202 | /* SCIFA2 (PORT 94, 95, 96, 97, 98) */ | ||
203 | GPIO_FN_SCIFA2_CTS1, GPIO_FN_SCIFA2_RTS1, | ||
204 | GPIO_FN_SCIFA2_TXD1, GPIO_FN_SCIFA2_RXD1, | ||
205 | GPIO_FN_SCIFA2_SCK1, | ||
206 | |||
207 | /* SCIFA3 (PORT 43, 44, | ||
208 | 140, 141, 142, 143, 144) */ | ||
209 | GPIO_FN_SCIFA3_CTS_43, GPIO_FN_SCIFA3_CTS_140, | ||
210 | GPIO_FN_SCIFA3_RTS_44, GPIO_FN_SCIFA3_RTS_141, | ||
211 | GPIO_FN_SCIFA3_SCK, GPIO_FN_SCIFA3_TXD, | ||
212 | GPIO_FN_SCIFA3_RXD, | ||
213 | |||
214 | /* SCIFA4 (PORT 5, 6) */ | ||
215 | GPIO_FN_SCIFA4_RXD, GPIO_FN_SCIFA4_TXD, | ||
216 | |||
217 | /* SCIFA5 (PORT 8, 12) */ | ||
218 | GPIO_FN_SCIFA5_RXD, GPIO_FN_SCIFA5_TXD, | ||
219 | |||
220 | /* SCIFB (PORT 162, 163, 164, 165, 166) */ | ||
221 | GPIO_FN_SCIFB_SCK, GPIO_FN_SCIFB_RTS, | ||
222 | GPIO_FN_SCIFB_CTS, GPIO_FN_SCIFB_TXD, | ||
223 | GPIO_FN_SCIFB_RXD, | ||
224 | |||
225 | /* | ||
226 | * CEU (PORT 16, 17, | ||
227 | * 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, | ||
228 | * 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, | ||
229 | * 120) | ||
230 | */ | ||
231 | GPIO_FN_VIO_HD, GPIO_FN_VIO_CKO1, GPIO_FN_VIO_CKO2, | ||
232 | GPIO_FN_VIO_VD, GPIO_FN_VIO_CLK, GPIO_FN_VIO_FIELD, | ||
233 | GPIO_FN_VIO_CKO, | ||
234 | GPIO_FN_VIO_D0, GPIO_FN_VIO_D1, GPIO_FN_VIO_D2, | ||
235 | GPIO_FN_VIO_D3, GPIO_FN_VIO_D4, GPIO_FN_VIO_D5, | ||
236 | GPIO_FN_VIO_D6, GPIO_FN_VIO_D7, GPIO_FN_VIO_D8, | ||
237 | GPIO_FN_VIO_D9, GPIO_FN_VIO_D10, GPIO_FN_VIO_D11, | ||
238 | GPIO_FN_VIO_D12, GPIO_FN_VIO_D13, GPIO_FN_VIO_D14, | ||
239 | GPIO_FN_VIO_D15, | ||
240 | |||
241 | /* USB0 (PORT 113, 114, 115, 116, 117, 167) */ | ||
242 | GPIO_FN_IDIN_0, GPIO_FN_EXTLP_0, | ||
243 | GPIO_FN_OVCN2_0, GPIO_FN_PWEN_0, | ||
244 | GPIO_FN_OVCN_0, GPIO_FN_VBUS0_0, | ||
245 | |||
246 | /* USB1 (PORT 18, 113, 114, 115, 116, 117, 138, 162, 168) */ | ||
247 | GPIO_FN_IDIN_1_18, GPIO_FN_IDIN_1_113, | ||
248 | GPIO_FN_PWEN_1_115, GPIO_FN_PWEN_1_138, | ||
249 | GPIO_FN_OVCN_1_114, GPIO_FN_OVCN_1_162, | ||
250 | GPIO_FN_EXTLP_1, GPIO_FN_OVCN2_1, | ||
251 | GPIO_FN_VBUS0_1, | ||
252 | |||
253 | /* GPIO (PORT 41, 42, 43, 44) */ | ||
254 | GPIO_FN_GPI0, GPIO_FN_GPI1, GPIO_FN_GPO0, GPIO_FN_GPO1, | ||
255 | |||
256 | /* | ||
257 | * BSC (PORT 19, | ||
258 | * 20, 21, 22, 25, 26, 27, 28, 29, | ||
259 | * 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, | ||
260 | * 40, 41, 42, 43, 44, 45, | ||
261 | * 62, 63, 64, 65, 66, 67, | ||
262 | * 71, 72, 74, 75) | ||
263 | */ | ||
264 | GPIO_FN_BS, GPIO_FN_WE1, | ||
265 | GPIO_FN_CKO, GPIO_FN_WAIT, GPIO_FN_RDWR, | ||
266 | |||
267 | GPIO_FN_A0, GPIO_FN_A1, GPIO_FN_A2, GPIO_FN_A3, | ||
268 | GPIO_FN_A6, GPIO_FN_A7, GPIO_FN_A8, GPIO_FN_A9, | ||
269 | GPIO_FN_A10, GPIO_FN_A11, GPIO_FN_A12, GPIO_FN_A13, | ||
270 | GPIO_FN_A14, GPIO_FN_A15, GPIO_FN_A16, GPIO_FN_A17, | ||
271 | GPIO_FN_A18, GPIO_FN_A19, GPIO_FN_A20, GPIO_FN_A21, | ||
272 | GPIO_FN_A22, GPIO_FN_A23, GPIO_FN_A24, GPIO_FN_A25, | ||
273 | GPIO_FN_A26, | ||
274 | |||
275 | GPIO_FN_CS0, GPIO_FN_CS2, GPIO_FN_CS4, | ||
276 | GPIO_FN_CS5A, GPIO_FN_CS5B, GPIO_FN_CS6A, | ||
277 | |||
278 | /* | ||
279 | * BSC/FLCTL (PORT 23, 24, | ||
280 | * 46, 47, 48, 49, | ||
281 | * 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, | ||
282 | * 60, 61, 69, 70) | ||
283 | */ | ||
284 | GPIO_FN_RD_FSC, GPIO_FN_WE0_FWE, | ||
285 | GPIO_FN_A4_FOE, GPIO_FN_A5_FCDE, | ||
286 | GPIO_FN_D0_NAF0, GPIO_FN_D1_NAF1, GPIO_FN_D2_NAF2, | ||
287 | GPIO_FN_D3_NAF3, GPIO_FN_D4_NAF4, GPIO_FN_D5_NAF5, | ||
288 | GPIO_FN_D6_NAF6, GPIO_FN_D7_NAF7, GPIO_FN_D8_NAF8, | ||
289 | GPIO_FN_D9_NAF9, GPIO_FN_D10_NAF10, GPIO_FN_D11_NAF11, | ||
290 | GPIO_FN_D12_NAF12, GPIO_FN_D13_NAF13, GPIO_FN_D14_NAF14, | ||
291 | GPIO_FN_D15_NAF15, | ||
292 | |||
293 | /* | ||
294 | * MMCIF(1) (PORT 84, 85, 86, 87, 88, 89, | ||
295 | * 90, 91, 92, 99) | ||
296 | */ | ||
297 | GPIO_FN_MMCD0_0, GPIO_FN_MMCD0_1, GPIO_FN_MMCD0_2, | ||
298 | GPIO_FN_MMCD0_3, GPIO_FN_MMCD0_4, GPIO_FN_MMCD0_5, | ||
299 | GPIO_FN_MMCD0_6, GPIO_FN_MMCD0_7, | ||
300 | GPIO_FN_MMCCMD0, GPIO_FN_MMCCLK0, | ||
301 | |||
302 | /* MMCIF(2) (PORT 54, 55, 56, 57, 58, 59, 60, 61, 66, 67) */ | ||
303 | GPIO_FN_MMCD1_0, GPIO_FN_MMCD1_1, GPIO_FN_MMCD1_2, | ||
304 | GPIO_FN_MMCD1_3, GPIO_FN_MMCD1_4, GPIO_FN_MMCD1_5, | ||
305 | GPIO_FN_MMCD1_6, GPIO_FN_MMCD1_7, | ||
306 | GPIO_FN_MMCCLK1, GPIO_FN_MMCCMD1, | ||
307 | |||
308 | /* SPU2 (PORT 65) */ | ||
309 | GPIO_FN_VINT_I, | ||
310 | |||
311 | /* FLCTL (PORT 66, 68, 73) */ | ||
312 | GPIO_FN_FCE1, GPIO_FN_FCE0, GPIO_FN_FRB, | ||
313 | |||
314 | /* HSI (PORT 76, 77, 78, 79, 80, 81, 82, 83) */ | ||
315 | GPIO_FN_GP_RX_FLAG, GPIO_FN_GP_RX_DATA, GPIO_FN_GP_TX_READY, | ||
316 | GPIO_FN_GP_RX_WAKE, GPIO_FN_MP_TX_FLAG, GPIO_FN_MP_TX_DATA, | ||
317 | GPIO_FN_MP_RX_READY, GPIO_FN_MP_TX_WAKE, | ||
318 | |||
319 | /* | ||
320 | * MFI (PORT 76, 77, 78, 79, | ||
321 | * 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, | ||
322 | * 90, 91, 92, 93, 94, 95, 96, 97, 98, 99) | ||
323 | */ | ||
324 | GPIO_FN_MFIv6, /* see MSEL4CR 6 */ | ||
325 | GPIO_FN_MFIv4, /* see MSEL4CR 6 */ | ||
326 | |||
327 | GPIO_FN_MEMC_CS0, GPIO_FN_MEMC_BUSCLK_MEMC_A0, | ||
328 | GPIO_FN_MEMC_CS1_MEMC_A1, GPIO_FN_MEMC_ADV_MEMC_DREQ0, | ||
329 | GPIO_FN_MEMC_WAIT_MEMC_DREQ1, GPIO_FN_MEMC_NOE, | ||
330 | GPIO_FN_MEMC_NWE, GPIO_FN_MEMC_INT, | ||
331 | |||
332 | GPIO_FN_MEMC_AD0, GPIO_FN_MEMC_AD1, GPIO_FN_MEMC_AD2, | ||
333 | GPIO_FN_MEMC_AD3, GPIO_FN_MEMC_AD4, GPIO_FN_MEMC_AD5, | ||
334 | GPIO_FN_MEMC_AD6, GPIO_FN_MEMC_AD7, GPIO_FN_MEMC_AD8, | ||
335 | GPIO_FN_MEMC_AD9, GPIO_FN_MEMC_AD10, GPIO_FN_MEMC_AD11, | ||
336 | GPIO_FN_MEMC_AD12, GPIO_FN_MEMC_AD13, GPIO_FN_MEMC_AD14, | ||
337 | GPIO_FN_MEMC_AD15, | ||
338 | |||
339 | /* SIM (PORT 94, 95, 98) */ | ||
340 | GPIO_FN_SIM_RST, GPIO_FN_SIM_CLK, GPIO_FN_SIM_D, | ||
341 | |||
342 | /* TPU (PORT 93, 99, 112, 160, 161) */ | ||
343 | GPIO_FN_TPU0TO0, GPIO_FN_TPU0TO1, | ||
344 | GPIO_FN_TPU0TO2_93, GPIO_FN_TPU0TO2_99, | ||
345 | GPIO_FN_TPU0TO3, | ||
346 | |||
347 | /* I2C2 (PORT 110, 111) */ | ||
348 | GPIO_FN_I2C_SCL2, GPIO_FN_I2C_SDA2, | ||
349 | |||
350 | /* I2C3(1) (PORT 114, 115) */ | ||
351 | GPIO_FN_I2C_SCL3, GPIO_FN_I2C_SDA3, | ||
352 | |||
353 | /* I2C3(2) (PORT 137, 145) */ | ||
354 | GPIO_FN_I2C_SCL3S, GPIO_FN_I2C_SDA3S, | ||
355 | |||
356 | /* I2C4(2) (PORT 116, 117) */ | ||
357 | GPIO_FN_I2C_SCL4, GPIO_FN_I2C_SDA4, | ||
358 | |||
359 | /* I2C4(2) (PORT 146, 147) */ | ||
360 | GPIO_FN_I2C_SCL4S, GPIO_FN_I2C_SDA4S, | ||
361 | |||
362 | /* | ||
363 | * KEYSC (PORT 121, 122, 123, 124, 125, 126, 127, 128, 129, | ||
364 | * 130, 131, 132, 133, 134, 135, 136) | ||
365 | */ | ||
366 | GPIO_FN_KEYOUT0, GPIO_FN_KEYIN0_121, GPIO_FN_KEYIN0_136, | ||
367 | GPIO_FN_KEYOUT1, GPIO_FN_KEYIN1_122, GPIO_FN_KEYIN1_135, | ||
368 | GPIO_FN_KEYOUT2, GPIO_FN_KEYIN2_123, GPIO_FN_KEYIN2_134, | ||
369 | GPIO_FN_KEYOUT3, GPIO_FN_KEYIN3_124, GPIO_FN_KEYIN3_133, | ||
370 | GPIO_FN_KEYOUT4, GPIO_FN_KEYIN4, | ||
371 | GPIO_FN_KEYOUT5, GPIO_FN_KEYIN5, | ||
372 | GPIO_FN_KEYOUT6, GPIO_FN_KEYIN6, | ||
373 | GPIO_FN_KEYOUT7, GPIO_FN_KEYIN7, | ||
374 | |||
375 | /* | ||
376 | * LCDC (PORT 121, 122, 123, 124, 125, 126, 127, 128, 129, | ||
377 | * 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, | ||
378 | * 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, | ||
379 | * 150, 151) | ||
380 | */ | ||
381 | GPIO_FN_LCDC0_SELECT, /* LCDC 0 */ | ||
382 | GPIO_FN_LCDC1_SELECT, /* LCDC 1 */ | ||
383 | GPIO_FN_LCDHSYN, GPIO_FN_LCDCS, GPIO_FN_LCDVSYN, | ||
384 | GPIO_FN_LCDDCK, GPIO_FN_LCDWR, GPIO_FN_LCDRD, | ||
385 | GPIO_FN_LCDDISP, GPIO_FN_LCDRS, GPIO_FN_LCDLCLK, | ||
386 | GPIO_FN_LCDDON, | ||
387 | |||
388 | GPIO_FN_LCDD0, GPIO_FN_LCDD1, GPIO_FN_LCDD2, GPIO_FN_LCDD3, | ||
389 | GPIO_FN_LCDD4, GPIO_FN_LCDD5, GPIO_FN_LCDD6, GPIO_FN_LCDD7, | ||
390 | GPIO_FN_LCDD8, GPIO_FN_LCDD9, GPIO_FN_LCDD10, GPIO_FN_LCDD11, | ||
391 | GPIO_FN_LCDD12, GPIO_FN_LCDD13, GPIO_FN_LCDD14, GPIO_FN_LCDD15, | ||
392 | GPIO_FN_LCDD16, GPIO_FN_LCDD17, GPIO_FN_LCDD18, GPIO_FN_LCDD19, | ||
393 | GPIO_FN_LCDD20, GPIO_FN_LCDD21, GPIO_FN_LCDD22, GPIO_FN_LCDD23, | ||
394 | |||
395 | /* IRDA (PORT 139, 140, 141, 142) */ | ||
396 | GPIO_FN_IRDA_OUT, GPIO_FN_IRDA_IN, GPIO_FN_IRDA_FIRSEL, | ||
397 | GPIO_FN_IROUT_139, GPIO_FN_IROUT_140, | ||
398 | |||
399 | /* TSIF1 (PORT 156, 157, 158, 159) */ | ||
400 | GPIO_FN_TS0_1SELECT, /* TSIF0 - 1 select */ | ||
401 | GPIO_FN_TS0_2SELECT, /* TSIF0 - 2 select */ | ||
402 | GPIO_FN_TS1_1SELECT, /* TSIF1 - 1 select */ | ||
403 | GPIO_FN_TS1_2SELECT, /* TSIF1 - 2 select */ | ||
404 | |||
405 | GPIO_FN_TS_SPSYNC1, GPIO_FN_TS_SDAT1, | ||
406 | GPIO_FN_TS_SDEN1, GPIO_FN_TS_SCK1, | ||
407 | |||
408 | /* TSIF2 (PORT 137, 145, 146, 147) */ | ||
409 | GPIO_FN_TS_SPSYNC2, GPIO_FN_TS_SDAT2, | ||
410 | GPIO_FN_TS_SDEN2, GPIO_FN_TS_SCK2, | ||
411 | |||
412 | /* HDMI (PORT 169, 170) */ | ||
413 | GPIO_FN_HDMI_HPD, GPIO_FN_HDMI_CEC, | ||
414 | |||
415 | /* SDHI0 (PORT 171, 172, 173, 174, 175, 176, 177, 178) */ | ||
416 | GPIO_FN_SDHICLK0, GPIO_FN_SDHICD0, | ||
417 | GPIO_FN_SDHICMD0, GPIO_FN_SDHIWP0, | ||
418 | GPIO_FN_SDHID0_0, GPIO_FN_SDHID0_1, | ||
419 | GPIO_FN_SDHID0_2, GPIO_FN_SDHID0_3, | ||
420 | |||
421 | /* SDHI1 (PORT 179, 180, 181, 182, 183, 184) */ | ||
422 | GPIO_FN_SDHICLK1, GPIO_FN_SDHICMD1, GPIO_FN_SDHID1_0, | ||
423 | GPIO_FN_SDHID1_1, GPIO_FN_SDHID1_2, GPIO_FN_SDHID1_3, | ||
424 | |||
425 | /* SDHI2 (PORT 185, 186, 187, 188, 189, 190) */ | ||
426 | GPIO_FN_SDHICLK2, GPIO_FN_SDHICMD2, GPIO_FN_SDHID2_0, | ||
427 | GPIO_FN_SDHID2_1, GPIO_FN_SDHID2_2, GPIO_FN_SDHID2_3, | ||
428 | |||
429 | /* SDENC see MSEL4CR 19 */ | ||
430 | GPIO_FN_SDENC_CPG, | ||
431 | GPIO_FN_SDENC_DV_CLKI, | ||
432 | }; | ||
433 | |||
434 | #endif /* __ASM_SH7372_H__ */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/sh7377.h b/arch/arm/mach-shmobile/include/mach/sh7377.h new file mode 100644 index 00000000000..f580e227dd1 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/sh7377.h | |||
@@ -0,0 +1,360 @@ | |||
1 | #ifndef __ASM_SH7377_H__ | ||
2 | #define __ASM_SH7377_H__ | ||
3 | |||
4 | /* Pin Function Controller: | ||
5 | * GPIO_FN_xx - GPIO used to select pin function | ||
6 | * GPIO_PORTxx - GPIO mapped to real I/O pin on CPU | ||
7 | */ | ||
8 | enum { | ||
9 | /* 55-1 -> 55-5 (GPIO) */ | ||
10 | GPIO_PORT0, GPIO_PORT1, GPIO_PORT2, GPIO_PORT3, GPIO_PORT4, | ||
11 | GPIO_PORT5, GPIO_PORT6, GPIO_PORT7, GPIO_PORT8, GPIO_PORT9, | ||
12 | |||
13 | GPIO_PORT10, GPIO_PORT11, GPIO_PORT12, GPIO_PORT13, GPIO_PORT14, | ||
14 | GPIO_PORT15, GPIO_PORT16, GPIO_PORT17, GPIO_PORT18, GPIO_PORT19, | ||
15 | |||
16 | GPIO_PORT20, GPIO_PORT21, GPIO_PORT22, GPIO_PORT23, GPIO_PORT24, | ||
17 | GPIO_PORT25, GPIO_PORT26, GPIO_PORT27, GPIO_PORT28, GPIO_PORT29, | ||
18 | |||
19 | GPIO_PORT30, GPIO_PORT31, GPIO_PORT32, GPIO_PORT33, GPIO_PORT34, | ||
20 | GPIO_PORT35, GPIO_PORT36, GPIO_PORT37, GPIO_PORT38, GPIO_PORT39, | ||
21 | |||
22 | GPIO_PORT40, GPIO_PORT41, GPIO_PORT42, GPIO_PORT43, GPIO_PORT44, | ||
23 | GPIO_PORT45, GPIO_PORT46, GPIO_PORT47, GPIO_PORT48, GPIO_PORT49, | ||
24 | |||
25 | GPIO_PORT50, GPIO_PORT51, GPIO_PORT52, GPIO_PORT53, GPIO_PORT54, | ||
26 | GPIO_PORT55, GPIO_PORT56, GPIO_PORT57, GPIO_PORT58, GPIO_PORT59, | ||
27 | |||
28 | GPIO_PORT60, GPIO_PORT61, GPIO_PORT62, GPIO_PORT63, GPIO_PORT64, | ||
29 | GPIO_PORT65, GPIO_PORT66, GPIO_PORT67, GPIO_PORT68, GPIO_PORT69, | ||
30 | |||
31 | GPIO_PORT70, GPIO_PORT71, GPIO_PORT72, GPIO_PORT73, GPIO_PORT74, | ||
32 | GPIO_PORT75, GPIO_PORT76, GPIO_PORT77, GPIO_PORT78, GPIO_PORT79, | ||
33 | |||
34 | GPIO_PORT80, GPIO_PORT81, GPIO_PORT82, GPIO_PORT83, GPIO_PORT84, | ||
35 | GPIO_PORT85, GPIO_PORT86, GPIO_PORT87, GPIO_PORT88, GPIO_PORT89, | ||
36 | |||
37 | GPIO_PORT90, GPIO_PORT91, GPIO_PORT92, GPIO_PORT93, GPIO_PORT94, | ||
38 | GPIO_PORT95, GPIO_PORT96, GPIO_PORT97, GPIO_PORT98, GPIO_PORT99, | ||
39 | |||
40 | GPIO_PORT100, GPIO_PORT101, GPIO_PORT102, GPIO_PORT103, GPIO_PORT104, | ||
41 | GPIO_PORT105, GPIO_PORT106, GPIO_PORT107, GPIO_PORT108, GPIO_PORT109, | ||
42 | |||
43 | GPIO_PORT110, GPIO_PORT111, GPIO_PORT112, GPIO_PORT113, GPIO_PORT114, | ||
44 | GPIO_PORT115, GPIO_PORT116, GPIO_PORT117, GPIO_PORT118, | ||
45 | |||
46 | GPIO_PORT128, GPIO_PORT129, | ||
47 | |||
48 | GPIO_PORT130, GPIO_PORT131, GPIO_PORT132, GPIO_PORT133, GPIO_PORT134, | ||
49 | GPIO_PORT135, GPIO_PORT136, GPIO_PORT137, GPIO_PORT138, GPIO_PORT139, | ||
50 | |||
51 | GPIO_PORT140, GPIO_PORT141, GPIO_PORT142, GPIO_PORT143, GPIO_PORT144, | ||
52 | GPIO_PORT145, GPIO_PORT146, GPIO_PORT147, GPIO_PORT148, GPIO_PORT149, | ||
53 | |||
54 | GPIO_PORT150, GPIO_PORT151, GPIO_PORT152, GPIO_PORT153, GPIO_PORT154, | ||
55 | GPIO_PORT155, GPIO_PORT156, GPIO_PORT157, GPIO_PORT158, GPIO_PORT159, | ||
56 | |||
57 | GPIO_PORT160, GPIO_PORT161, GPIO_PORT162, GPIO_PORT163, GPIO_PORT164, | ||
58 | |||
59 | GPIO_PORT192, GPIO_PORT193, GPIO_PORT194, | ||
60 | GPIO_PORT195, GPIO_PORT196, GPIO_PORT197, GPIO_PORT198, GPIO_PORT199, | ||
61 | |||
62 | GPIO_PORT200, GPIO_PORT201, GPIO_PORT202, GPIO_PORT203, GPIO_PORT204, | ||
63 | GPIO_PORT205, GPIO_PORT206, GPIO_PORT207, GPIO_PORT208, GPIO_PORT209, | ||
64 | |||
65 | GPIO_PORT210, GPIO_PORT211, GPIO_PORT212, GPIO_PORT213, GPIO_PORT214, | ||
66 | GPIO_PORT215, GPIO_PORT216, GPIO_PORT217, GPIO_PORT218, GPIO_PORT219, | ||
67 | |||
68 | GPIO_PORT220, GPIO_PORT221, GPIO_PORT222, GPIO_PORT223, GPIO_PORT224, | ||
69 | GPIO_PORT225, GPIO_PORT226, GPIO_PORT227, GPIO_PORT228, GPIO_PORT229, | ||
70 | |||
71 | GPIO_PORT230, GPIO_PORT231, GPIO_PORT232, GPIO_PORT233, GPIO_PORT234, | ||
72 | GPIO_PORT235, GPIO_PORT236, GPIO_PORT237, GPIO_PORT238, GPIO_PORT239, | ||
73 | |||
74 | GPIO_PORT240, GPIO_PORT241, GPIO_PORT242, GPIO_PORT243, GPIO_PORT244, | ||
75 | GPIO_PORT245, GPIO_PORT246, GPIO_PORT247, GPIO_PORT248, GPIO_PORT249, | ||
76 | |||
77 | GPIO_PORT250, GPIO_PORT251, GPIO_PORT252, GPIO_PORT253, GPIO_PORT254, | ||
78 | GPIO_PORT255, GPIO_PORT256, GPIO_PORT257, GPIO_PORT258, GPIO_PORT259, | ||
79 | |||
80 | GPIO_PORT260, GPIO_PORT261, GPIO_PORT262, GPIO_PORT263, GPIO_PORT264, | ||
81 | |||
82 | /* Special Pull-up / Pull-down Functions */ | ||
83 | GPIO_FN_PORT66_KEYIN0_PU, GPIO_FN_PORT67_KEYIN1_PU, | ||
84 | GPIO_FN_PORT68_KEYIN2_PU, GPIO_FN_PORT69_KEYIN3_PU, | ||
85 | GPIO_FN_PORT70_KEYIN4_PU, GPIO_FN_PORT71_KEYIN5_PU, | ||
86 | GPIO_FN_PORT72_KEYIN6_PU, | ||
87 | |||
88 | /* 55-1 (FN) */ | ||
89 | GPIO_FN_VBUS_0, | ||
90 | GPIO_FN_CPORT0, | ||
91 | GPIO_FN_CPORT1, | ||
92 | GPIO_FN_CPORT2, | ||
93 | GPIO_FN_CPORT3, | ||
94 | GPIO_FN_CPORT4, | ||
95 | GPIO_FN_CPORT5, | ||
96 | GPIO_FN_CPORT6, | ||
97 | GPIO_FN_CPORT7, | ||
98 | GPIO_FN_CPORT8, | ||
99 | GPIO_FN_CPORT9, | ||
100 | GPIO_FN_CPORT10, | ||
101 | GPIO_FN_CPORT11, GPIO_FN_SIN2, | ||
102 | GPIO_FN_CPORT12, GPIO_FN_XCTS2, | ||
103 | GPIO_FN_CPORT13, GPIO_FN_RFSPO4, | ||
104 | GPIO_FN_CPORT14, GPIO_FN_RFSPO5, | ||
105 | GPIO_FN_CPORT15, GPIO_FN_SCIFA0_SCK, GPIO_FN_GPS_AGC2, | ||
106 | GPIO_FN_CPORT16, GPIO_FN_SCIFA0_TXD, GPIO_FN_GPS_AGC3, | ||
107 | GPIO_FN_CPORT17_IC_OE, GPIO_FN_SOUT2, | ||
108 | GPIO_FN_CPORT18, GPIO_FN_XRTS2, GPIO_FN_PORT19_VIO_CKO2, | ||
109 | GPIO_FN_CPORT19_MPORT1, | ||
110 | GPIO_FN_CPORT20, GPIO_FN_RFSPO6, | ||
111 | GPIO_FN_CPORT21, GPIO_FN_STATUS0, | ||
112 | GPIO_FN_CPORT22, GPIO_FN_STATUS1, | ||
113 | GPIO_FN_CPORT23, GPIO_FN_STATUS2, GPIO_FN_RFSPO7, | ||
114 | GPIO_FN_B_SYNLD1, | ||
115 | GPIO_FN_B_SYNLD2, GPIO_FN_SYSENMSK, | ||
116 | GPIO_FN_XMAINPS, | ||
117 | GPIO_FN_XDIVPS, | ||
118 | GPIO_FN_XIDRST, | ||
119 | GPIO_FN_IDCLK, GPIO_FN_IC_DP, | ||
120 | GPIO_FN_IDIO, GPIO_FN_IC_DM, | ||
121 | GPIO_FN_SOUT1, GPIO_FN_SCIFA4_TXD, GPIO_FN_M02_BERDAT, | ||
122 | GPIO_FN_SIN1, GPIO_FN_SCIFA4_RXD, GPIO_FN_XWUP, | ||
123 | GPIO_FN_XRTS1, GPIO_FN_SCIFA4_RTS, GPIO_FN_M03_BERCLK, | ||
124 | GPIO_FN_XCTS1, GPIO_FN_SCIFA4_CTS, | ||
125 | GPIO_FN_PCMCLKO, | ||
126 | GPIO_FN_SYNC8KO, | ||
127 | |||
128 | /* 55-2 (FN) */ | ||
129 | GPIO_FN_DNPCM_A, | ||
130 | GPIO_FN_UPPCM_A, | ||
131 | GPIO_FN_VACK, | ||
132 | GPIO_FN_XTALB1L, | ||
133 | GPIO_FN_GPS_AGC1, GPIO_FN_SCIFA0_RTS, | ||
134 | GPIO_FN_GPS_AGC4, GPIO_FN_SCIFA0_RXD, | ||
135 | GPIO_FN_GPS_PWRDOWN, GPIO_FN_SCIFA0_CTS, | ||
136 | GPIO_FN_GPS_IM, | ||
137 | GPIO_FN_GPS_IS, | ||
138 | GPIO_FN_GPS_QM, | ||
139 | GPIO_FN_GPS_QS, | ||
140 | GPIO_FN_FMSOCK, GPIO_FN_PORT49_IRDA_OUT, GPIO_FN_PORT49_IROUT, | ||
141 | GPIO_FN_FMSOOLR, GPIO_FN_BBIF2_TSYNC2, GPIO_FN_TPU2TO2, GPIO_FN_IPORT3, | ||
142 | GPIO_FN_FMSIOLR, | ||
143 | GPIO_FN_FMSOOBT, GPIO_FN_BBIF2_TSCK2, GPIO_FN_TPU2TO3, GPIO_FN_OPORT1, | ||
144 | GPIO_FN_FMSIOBT, | ||
145 | GPIO_FN_FMSOSLD, GPIO_FN_BBIF2_TXD2, GPIO_FN_OPORT2, | ||
146 | GPIO_FN_FMSOILR, GPIO_FN_PORT53_IRDA_IN, GPIO_FN_TPU3TO3, | ||
147 | GPIO_FN_OPORT3, GPIO_FN_FMSIILR, | ||
148 | GPIO_FN_FMSOIBT, GPIO_FN_PORT54_IRDA_FIRSEL, GPIO_FN_TPU3TO2, | ||
149 | GPIO_FN_FMSIIBT, | ||
150 | GPIO_FN_FMSISLD, GPIO_FN_MFG0_OUT1, GPIO_FN_TPU0TO0, | ||
151 | GPIO_FN_A0_EA0, GPIO_FN_BS, | ||
152 | GPIO_FN_A12_EA12, GPIO_FN_PORT58_VIO_CKOR, GPIO_FN_TPU4TO2, | ||
153 | GPIO_FN_A13_EA13, GPIO_FN_PORT59_IROUT, GPIO_FN_MFG0_OUT2, | ||
154 | GPIO_FN_TPU0TO1, | ||
155 | GPIO_FN_A14_EA14, GPIO_FN_PORT60_KEYOUT5, | ||
156 | GPIO_FN_A15_EA15, GPIO_FN_PORT61_KEYOUT4, | ||
157 | GPIO_FN_A16_EA16, GPIO_FN_PORT62_KEYOUT3, GPIO_FN_MSIOF0_SS1, | ||
158 | GPIO_FN_A17_EA17, GPIO_FN_PORT63_KEYOUT2, GPIO_FN_MSIOF0_TSYNC, | ||
159 | GPIO_FN_A18_EA18, GPIO_FN_PORT64_KEYOUT1, GPIO_FN_MSIOF0_TSCK, | ||
160 | GPIO_FN_A19_EA19, GPIO_FN_PORT65_KEYOUT0, GPIO_FN_MSIOF0_TXD, | ||
161 | GPIO_FN_A20_EA20, GPIO_FN_PORT66_KEYIN0, GPIO_FN_MSIOF0_RSCK, | ||
162 | GPIO_FN_A21_EA21, GPIO_FN_PORT67_KEYIN1, GPIO_FN_MSIOF0_RSYNC, | ||
163 | GPIO_FN_A22_EA22, GPIO_FN_PORT68_KEYIN2, GPIO_FN_MSIOF0_MCK0, | ||
164 | GPIO_FN_A23_EA23, GPIO_FN_PORT69_KEYIN3, GPIO_FN_MSIOF0_MCK1, | ||
165 | GPIO_FN_A24_EA24, GPIO_FN_PORT70_KEYIN4, GPIO_FN_MSIOF0_RXD, | ||
166 | GPIO_FN_A25_EA25, GPIO_FN_PORT71_KEYIN5, GPIO_FN_MSIOF0_SS2, | ||
167 | GPIO_FN_A26, GPIO_FN_PORT72_KEYIN6, | ||
168 | GPIO_FN_D0_ED0_NAF0, | ||
169 | GPIO_FN_D1_ED1_NAF1, | ||
170 | GPIO_FN_D2_ED2_NAF2, | ||
171 | GPIO_FN_D3_ED3_NAF3, | ||
172 | GPIO_FN_D4_ED4_NAF4, | ||
173 | GPIO_FN_D5_ED5_NAF5, | ||
174 | GPIO_FN_D6_ED6_NAF6, | ||
175 | GPIO_FN_D7_ED7_NAF7, | ||
176 | GPIO_FN_D8_ED8_NAF8, | ||
177 | GPIO_FN_D9_ED9_NAF9, | ||
178 | GPIO_FN_D10_ED10_NAF10, | ||
179 | GPIO_FN_D11_ED11_NAF11, | ||
180 | GPIO_FN_D12_ED12_NAF12, | ||
181 | GPIO_FN_D13_ED13_NAF13, | ||
182 | GPIO_FN_D14_ED14_NAF14, | ||
183 | GPIO_FN_D15_ED15_NAF15, | ||
184 | GPIO_FN_CS4, | ||
185 | GPIO_FN_CS5A, GPIO_FN_FMSICK, | ||
186 | GPIO_FN_CS5B, GPIO_FN_FCE1, | ||
187 | |||
188 | /* 55-3 (FN) */ | ||
189 | GPIO_FN_CS6B, GPIO_FN_XCS2, GPIO_FN_CS6A, GPIO_FN_DACK0, | ||
190 | GPIO_FN_FCE0, | ||
191 | GPIO_FN_WAIT, GPIO_FN_DREQ0, | ||
192 | GPIO_FN_RD_XRD, | ||
193 | GPIO_FN_WE0_XWR0_FWE, | ||
194 | GPIO_FN_WE1_XWR1, | ||
195 | GPIO_FN_FRB, | ||
196 | GPIO_FN_CKO, | ||
197 | GPIO_FN_NBRSTOUT, | ||
198 | GPIO_FN_NBRST, | ||
199 | GPIO_FN_GPS_EPPSIN, | ||
200 | GPIO_FN_LATCHPULSE, | ||
201 | GPIO_FN_LTESIGNAL, | ||
202 | GPIO_FN_LEGACYSTATE, | ||
203 | GPIO_FN_TCKON, | ||
204 | GPIO_FN_VIO_VD, GPIO_FN_PORT128_KEYOUT0, GPIO_FN_IPORT0, | ||
205 | GPIO_FN_VIO_HD, GPIO_FN_PORT129_KEYOUT1, GPIO_FN_IPORT1, | ||
206 | GPIO_FN_VIO_D0, GPIO_FN_PORT130_KEYOUT2, GPIO_FN_PORT130_MSIOF2_RXD, | ||
207 | GPIO_FN_VIO_D1, GPIO_FN_PORT131_KEYOUT3, GPIO_FN_PORT131_MSIOF2_SS1, | ||
208 | GPIO_FN_VIO_D2, GPIO_FN_PORT132_KEYOUT4, GPIO_FN_PORT132_MSIOF2_SS2, | ||
209 | GPIO_FN_VIO_D3, GPIO_FN_PORT133_KEYOUT5, GPIO_FN_PORT133_MSIOF2_TSYNC, | ||
210 | GPIO_FN_VIO_D4, GPIO_FN_PORT134_KEYIN0, GPIO_FN_PORT134_MSIOF2_TXD, | ||
211 | GPIO_FN_VIO_D5, GPIO_FN_PORT135_KEYIN1, GPIO_FN_PORT135_MSIOF2_TSCK, | ||
212 | GPIO_FN_VIO_D6, GPIO_FN_PORT136_KEYIN2, | ||
213 | GPIO_FN_VIO_D7, GPIO_FN_PORT137_KEYIN3, | ||
214 | GPIO_FN_VIO_D8, GPIO_FN_M9_SLCD_A01, GPIO_FN_PORT138_FSIAOMC, | ||
215 | GPIO_FN_VIO_D9, GPIO_FN_M10_SLCD_CK1, GPIO_FN_PORT139_FSIAOLR, | ||
216 | GPIO_FN_VIO_D10, GPIO_FN_M11_SLCD_SO1, GPIO_FN_TPU0TO2, | ||
217 | GPIO_FN_PORT140_FSIAOBT, | ||
218 | GPIO_FN_VIO_D11, GPIO_FN_M12_SLCD_CE1, GPIO_FN_TPU0TO3, | ||
219 | GPIO_FN_PORT141_FSIAOSLD, | ||
220 | GPIO_FN_VIO_D12, GPIO_FN_M13_BSW, GPIO_FN_PORT142_FSIACK, | ||
221 | GPIO_FN_VIO_D13, GPIO_FN_M14_GSW, GPIO_FN_PORT143_FSIAILR, | ||
222 | GPIO_FN_VIO_D14, GPIO_FN_M15_RSW, GPIO_FN_PORT144_FSIAIBT, | ||
223 | GPIO_FN_VIO_D15, GPIO_FN_TPU1TO3, GPIO_FN_PORT145_FSIAISLD, | ||
224 | GPIO_FN_VIO_CLK, GPIO_FN_PORT146_KEYIN4, GPIO_FN_IPORT2, | ||
225 | GPIO_FN_VIO_FIELD, GPIO_FN_PORT147_KEYIN5, | ||
226 | GPIO_FN_VIO_CKO, GPIO_FN_PORT148_KEYIN6, | ||
227 | GPIO_FN_A27, GPIO_FN_RDWR_XWE, GPIO_FN_MFG0_IN1, | ||
228 | GPIO_FN_MFG0_IN2, | ||
229 | GPIO_FN_TS_SPSYNC3, GPIO_FN_MSIOF2_RSCK, | ||
230 | GPIO_FN_TS_SDAT3, GPIO_FN_MSIOF2_RSYNC, | ||
231 | GPIO_FN_TPU1TO2, GPIO_FN_TS_SDEN3, GPIO_FN_PORT153_MSIOF2_SS1, | ||
232 | GPIO_FN_SOUT3, GPIO_FN_SCIFA2_TXD1, GPIO_FN_MSIOF2_MCK0, | ||
233 | GPIO_FN_SIN3, GPIO_FN_SCIFA2_RXD1, GPIO_FN_MSIOF2_MCK1, | ||
234 | GPIO_FN_XRTS3, GPIO_FN_SCIFA2_RTS1, GPIO_FN_PORT156_MSIOF2_SS2, | ||
235 | GPIO_FN_XCTS3, GPIO_FN_SCIFA2_CTS1, GPIO_FN_PORT157_MSIOF2_RXD, | ||
236 | |||
237 | /* 55-4 (FN) */ | ||
238 | GPIO_FN_DINT, GPIO_FN_SCIFA2_SCK1, GPIO_FN_TS_SCK3, | ||
239 | GPIO_FN_PORT159_SCIFB_SCK, GPIO_FN_PORT159_SCIFA5_SCK, GPIO_FN_NMI, | ||
240 | GPIO_FN_PORT160_SCIFB_TXD, GPIO_FN_PORT160_SCIFA5_TXD, GPIO_FN_SOUT0, | ||
241 | GPIO_FN_PORT161_SCIFB_CTS, GPIO_FN_PORT161_SCIFA5_CTS, GPIO_FN_XCTS0, | ||
242 | GPIO_FN_MFG3_IN2, | ||
243 | GPIO_FN_PORT162_SCIFB_RXD, GPIO_FN_PORT162_SCIFA5_RXD, GPIO_FN_SIN0, | ||
244 | GPIO_FN_MFG3_IN1, | ||
245 | GPIO_FN_PORT163_SCIFB_RTS, GPIO_FN_PORT163_SCIFA5_RTS, GPIO_FN_XRTS0, | ||
246 | GPIO_FN_MFG3_OUT1, | ||
247 | GPIO_FN_TPU3TO0, | ||
248 | GPIO_FN_LCDD0, GPIO_FN_PORT192_KEYOUT0, GPIO_FN_EXT_CKI, | ||
249 | GPIO_FN_LCDD1, GPIO_FN_PORT193_KEYOUT1, GPIO_FN_PORT193_SCIFA5_CTS, | ||
250 | GPIO_FN_BBIF2_TSYNC1, | ||
251 | GPIO_FN_LCDD2, GPIO_FN_PORT194_KEYOUT2, GPIO_FN_PORT194_SCIFA5_RTS, | ||
252 | GPIO_FN_BBIF2_TSCK1, | ||
253 | GPIO_FN_LCDD3, GPIO_FN_PORT195_KEYOUT3, GPIO_FN_PORT195_SCIFA5_RXD, | ||
254 | GPIO_FN_BBIF2_TXD1, | ||
255 | GPIO_FN_LCDD4, GPIO_FN_PORT196_KEYOUT4, GPIO_FN_PORT196_SCIFA5_TXD, | ||
256 | GPIO_FN_LCDD5, GPIO_FN_PORT197_KEYOUT5, GPIO_FN_PORT197_SCIFA5_SCK, | ||
257 | GPIO_FN_MFG2_OUT2, GPIO_FN_TPU2TO1, | ||
258 | GPIO_FN_LCDD6, GPIO_FN_XWR2, | ||
259 | GPIO_FN_LCDD7, GPIO_FN_TPU4TO1, GPIO_FN_MFG4_OUT2, GPIO_FN_XWR3, | ||
260 | GPIO_FN_LCDD8, GPIO_FN_PORT200_KEYIN0, GPIO_FN_VIO_DR0, GPIO_FN_D16, | ||
261 | GPIO_FN_ED16, | ||
262 | GPIO_FN_LCDD9, GPIO_FN_PORT201_KEYIN1, GPIO_FN_VIO_DR1, GPIO_FN_D17, | ||
263 | GPIO_FN_ED17, | ||
264 | GPIO_FN_LCDD10, GPIO_FN_PORT202_KEYIN2, GPIO_FN_VIO_DR2, GPIO_FN_D18, | ||
265 | GPIO_FN_ED18, | ||
266 | GPIO_FN_LCDD11, GPIO_FN_PORT203_KEYIN3, GPIO_FN_VIO_DR3, GPIO_FN_D19, | ||
267 | GPIO_FN_ED19, | ||
268 | GPIO_FN_LCDD12, GPIO_FN_PORT204_KEYIN4, GPIO_FN_VIO_DR4, GPIO_FN_D20, | ||
269 | GPIO_FN_ED20, | ||
270 | GPIO_FN_LCDD13, GPIO_FN_PORT205_KEYIN5, GPIO_FN_VIO_DR5, GPIO_FN_D21, | ||
271 | GPIO_FN_ED21, | ||
272 | GPIO_FN_LCDD14, GPIO_FN_PORT206_KEYIN6, GPIO_FN_VIO_DR6, GPIO_FN_D22, | ||
273 | GPIO_FN_ED22, | ||
274 | GPIO_FN_LCDD15, GPIO_FN_PORT207_MSIOF0L_SS1, GPIO_FN_PORT207_KEYOUT0, | ||
275 | GPIO_FN_VIO_DR7, | ||
276 | GPIO_FN_D23, GPIO_FN_ED23, | ||
277 | GPIO_FN_LCDD16, GPIO_FN_PORT208_MSIOF0L_SS2, GPIO_FN_PORT208_KEYOUT1, | ||
278 | GPIO_FN_VIO_VDR, | ||
279 | GPIO_FN_D24, GPIO_FN_ED24, | ||
280 | GPIO_FN_LCDD17, GPIO_FN_PORT209_KEYOUT2, GPIO_FN_VIO_HDR, GPIO_FN_D25, | ||
281 | GPIO_FN_ED25, | ||
282 | GPIO_FN_LCDD18, GPIO_FN_DREQ2, GPIO_FN_PORT210_MSIOF0L_SS1, GPIO_FN_D26, | ||
283 | GPIO_FN_ED26, | ||
284 | GPIO_FN_LCDD19, GPIO_FN_PORT211_MSIOF0L_SS2, GPIO_FN_D27, GPIO_FN_ED27, | ||
285 | GPIO_FN_LCDD20, GPIO_FN_TS_SPSYNC1, GPIO_FN_MSIOF0L_MCK0, GPIO_FN_D28, | ||
286 | GPIO_FN_ED28, | ||
287 | GPIO_FN_LCDD21, GPIO_FN_TS_SDAT1, GPIO_FN_MSIOF0L_MCK1, GPIO_FN_D29, | ||
288 | GPIO_FN_ED29, | ||
289 | GPIO_FN_LCDD22, GPIO_FN_TS_SDEN1, GPIO_FN_MSIOF0L_RSCK, GPIO_FN_D30, | ||
290 | GPIO_FN_ED30, | ||
291 | GPIO_FN_LCDD23, GPIO_FN_TS_SCK1, GPIO_FN_MSIOF0L_RSYNC, GPIO_FN_D31, | ||
292 | GPIO_FN_ED31, | ||
293 | GPIO_FN_LCDDCK, GPIO_FN_LCDWR, GPIO_FN_PORT216_KEYOUT3, | ||
294 | GPIO_FN_VIO_CLKR, | ||
295 | GPIO_FN_LCDRD, GPIO_FN_DACK2, GPIO_FN_MSIOF0L_TSYNC, | ||
296 | GPIO_FN_LCDHSYN, GPIO_FN_LCDCS, GPIO_FN_LCDCS2, GPIO_FN_DACK3, | ||
297 | GPIO_FN_PORT218_VIO_CKOR, GPIO_FN_PORT218_KEYOUT4, | ||
298 | GPIO_FN_LCDDISP, GPIO_FN_LCDRS, GPIO_FN_DREQ3, GPIO_FN_MSIOF0L_TSCK, | ||
299 | GPIO_FN_LCDVSYN, GPIO_FN_LCDVSYN2, GPIO_FN_PORT220_KEYOUT5, | ||
300 | GPIO_FN_LCDLCLK, GPIO_FN_DREQ1, GPIO_FN_PWEN, GPIO_FN_MSIOF0L_RXD, | ||
301 | GPIO_FN_LCDDON, GPIO_FN_LCDDON2, GPIO_FN_DACK1, GPIO_FN_OVCN, | ||
302 | GPIO_FN_MSIOF0L_TXD, | ||
303 | GPIO_FN_SCIFA1_TXD, GPIO_FN_OVCN2, | ||
304 | GPIO_FN_EXTLP, GPIO_FN_SCIFA1_SCK, GPIO_FN_USBTERM, | ||
305 | GPIO_FN_PORT226_VIO_CKO2, | ||
306 | GPIO_FN_SCIFA1_RTS, GPIO_FN_IDIN, | ||
307 | GPIO_FN_SCIFA1_RXD, | ||
308 | GPIO_FN_SCIFA1_CTS, GPIO_FN_MFG1_IN1, | ||
309 | GPIO_FN_MSIOF1_TXD, GPIO_FN_SCIFA2_TXD2, GPIO_FN_PORT230_FSIAOMC, | ||
310 | GPIO_FN_MSIOF1_TSYNC, GPIO_FN_SCIFA2_CTS2, GPIO_FN_PORT231_FSIAOLR, | ||
311 | GPIO_FN_MSIOF1_TSCK, GPIO_FN_SCIFA2_SCK2, GPIO_FN_PORT232_FSIAOBT, | ||
312 | GPIO_FN_MSIOF1_RXD, GPIO_FN_SCIFA2_RXD2, GPIO_FN_GPS_VCOTRIG, | ||
313 | GPIO_FN_PORT233_FSIACK, | ||
314 | GPIO_FN_MSIOF1_RSCK, GPIO_FN_SCIFA2_RTS2, GPIO_FN_PORT234_FSIAOSLD, | ||
315 | GPIO_FN_MSIOF1_RSYNC, GPIO_FN_OPORT0, GPIO_FN_MFG1_IN2, | ||
316 | GPIO_FN_PORT235_FSIAILR, | ||
317 | GPIO_FN_MSIOF1_MCK0, GPIO_FN_I2C_SDA2, GPIO_FN_PORT236_FSIAIBT, | ||
318 | GPIO_FN_MSIOF1_MCK1, GPIO_FN_I2C_SCL2, GPIO_FN_PORT237_FSIAISLD, | ||
319 | GPIO_FN_MSIOF1_SS1, GPIO_FN_EDBGREQ3, | ||
320 | |||
321 | /* 55-5 (FN) */ | ||
322 | GPIO_FN_MSIOF1_SS2, | ||
323 | GPIO_FN_SCIFA6_TXD, | ||
324 | GPIO_FN_PORT241_IRDA_OUT, GPIO_FN_PORT241_IROUT, GPIO_FN_MFG4_OUT1, | ||
325 | GPIO_FN_TPU4TO0, | ||
326 | GPIO_FN_PORT242_IRDA_IN, GPIO_FN_MFG4_IN2, | ||
327 | GPIO_FN_PORT243_IRDA_FIRSEL, GPIO_FN_PORT243_VIO_CKO2, | ||
328 | GPIO_FN_PORT244_SCIFA5_CTS, GPIO_FN_MFG2_IN1, GPIO_FN_PORT244_SCIFB_CTS, | ||
329 | GPIO_FN_PORT244_MSIOF2_RXD, | ||
330 | GPIO_FN_PORT245_SCIFA5_RTS, GPIO_FN_MFG2_IN2, GPIO_FN_PORT245_SCIFB_RTS, | ||
331 | GPIO_FN_PORT245_MSIOF2_TXD, | ||
332 | GPIO_FN_PORT246_SCIFA5_RXD, GPIO_FN_MFG1_OUT1, | ||
333 | GPIO_FN_PORT246_SCIFB_RXD, GPIO_FN_TPU1TO0, | ||
334 | GPIO_FN_PORT247_SCIFA5_TXD, GPIO_FN_MFG3_OUT2, | ||
335 | GPIO_FN_PORT247_SCIFB_TXD, GPIO_FN_TPU3TO1, | ||
336 | GPIO_FN_PORT248_SCIFA5_SCK, GPIO_FN_MFG2_OUT1, | ||
337 | GPIO_FN_PORT248_SCIFB_SCK, GPIO_FN_TPU2TO0, | ||
338 | GPIO_FN_PORT248_MSIOF2_TSCK, | ||
339 | GPIO_FN_PORT249_IROUT, GPIO_FN_MFG4_IN1, GPIO_FN_PORT249_MSIOF2_TSYNC, | ||
340 | GPIO_FN_SDHICLK0, GPIO_FN_TCK2_SWCLK_MC0, | ||
341 | GPIO_FN_SDHICD0, | ||
342 | GPIO_FN_SDHID0_0, GPIO_FN_TMS2_SWDIO_MC0, | ||
343 | GPIO_FN_SDHID0_1, GPIO_FN_TDO2_SWO0_MC0, | ||
344 | GPIO_FN_SDHID0_2, GPIO_FN_TDI2, | ||
345 | GPIO_FN_SDHID0_3, GPIO_FN_RTCK2_SWO1_MC0, | ||
346 | GPIO_FN_SDHICMD0, GPIO_FN_TRST2, | ||
347 | GPIO_FN_SDHIWP0, GPIO_FN_EDBGREQ2, | ||
348 | GPIO_FN_SDHICLK1, GPIO_FN_TCK3_SWCLK_MC1, | ||
349 | GPIO_FN_SDHID1_0, GPIO_FN_M11_SLCD_SO2, GPIO_FN_TS_SPSYNC2, | ||
350 | GPIO_FN_TMS3_SWDIO_MC1, | ||
351 | GPIO_FN_SDHID1_1, GPIO_FN_M9_SLCD_A02, GPIO_FN_TS_SDAT2, | ||
352 | GPIO_FN_TDO3_SWO0_MC1, | ||
353 | GPIO_FN_SDHID1_2, GPIO_FN_M10_SLCD_CK2, GPIO_FN_TS_SDEN2, GPIO_FN_TDI3, | ||
354 | GPIO_FN_SDHID1_3, GPIO_FN_M12_SLCD_CE2, GPIO_FN_TS_SCK2, | ||
355 | GPIO_FN_RTCK3_SWO1_MC1, | ||
356 | GPIO_FN_SDHICMD1, GPIO_FN_TRST3, | ||
357 | GPIO_FN_RESETOUTS, | ||
358 | }; | ||
359 | |||
360 | #endif /* __ASM_SH7377_H__ */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/system.h b/arch/arm/mach-shmobile/include/mach/system.h new file mode 100644 index 00000000000..76a687eeaa2 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/system.h | |||
@@ -0,0 +1,14 @@ | |||
1 | #ifndef __ASM_ARCH_SYSTEM_H | ||
2 | #define __ASM_ARCH_SYSTEM_H | ||
3 | |||
4 | static inline void arch_idle(void) | ||
5 | { | ||
6 | cpu_do_idle(); | ||
7 | } | ||
8 | |||
9 | static inline void arch_reset(char mode, const char *cmd) | ||
10 | { | ||
11 | cpu_reset(0); | ||
12 | } | ||
13 | |||
14 | #endif | ||
diff --git a/arch/arm/mach-shmobile/include/mach/timex.h b/arch/arm/mach-shmobile/include/mach/timex.h new file mode 100644 index 00000000000..ae0d8d825c2 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/timex.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef __ASM_MACH_TIMEX_H | ||
2 | #define __ASM_MACH_TIMEX_H | ||
3 | |||
4 | #define CLOCK_TICK_RATE 1193180 /* unused i8253 PIT value */ | ||
5 | |||
6 | #endif /* __ASM_MACH_TIMEX_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/uncompress.h b/arch/arm/mach-shmobile/include/mach/uncompress.h new file mode 100644 index 00000000000..0bd7556b138 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/uncompress.h | |||
@@ -0,0 +1,21 @@ | |||
1 | #ifndef __ASM_MACH_UNCOMPRESS_H | ||
2 | #define __ASM_MACH_UNCOMPRESS_H | ||
3 | |||
4 | /* | ||
5 | * This does not append a newline | ||
6 | */ | ||
7 | static void putc(int c) | ||
8 | { | ||
9 | } | ||
10 | |||
11 | static inline void flush(void) | ||
12 | { | ||
13 | } | ||
14 | |||
15 | static void arch_decomp_setup(void) | ||
16 | { | ||
17 | } | ||
18 | |||
19 | #define arch_decomp_wdog() | ||
20 | |||
21 | #endif /* __ASM_MACH_UNCOMPRESS_H */ | ||
diff --git a/arch/arm/mach-shmobile/include/mach/vmalloc.h b/arch/arm/mach-shmobile/include/mach/vmalloc.h new file mode 100644 index 00000000000..fb3c4f1ab25 --- /dev/null +++ b/arch/arm/mach-shmobile/include/mach/vmalloc.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef __ASM_MACH_VMALLOC_H | ||
2 | #define __ASM_MACH_VMALLOC_H | ||
3 | |||
4 | #define VMALLOC_END (PAGE_OFFSET + 0x24000000) | ||
5 | |||
6 | #endif /* __ASM_MACH_VMALLOC_H */ | ||
diff --git a/arch/arm/mach-shmobile/intc-sh7367.c b/arch/arm/mach-shmobile/intc-sh7367.c new file mode 100644 index 00000000000..6a547b47aab --- /dev/null +++ b/arch/arm/mach-shmobile/intc-sh7367.c | |||
@@ -0,0 +1,270 @@ | |||
1 | /* | ||
2 | * sh7367 processor support - INTC hardware block | ||
3 | * | ||
4 | * Copyright (C) 2010 Magnus Damm | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; version 2 of the License. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
18 | */ | ||
19 | #include <linux/kernel.h> | ||
20 | #include <linux/init.h> | ||
21 | #include <linux/interrupt.h> | ||
22 | #include <linux/irq.h> | ||
23 | #include <linux/io.h> | ||
24 | #include <linux/sh_intc.h> | ||
25 | #include <asm/mach-types.h> | ||
26 | #include <asm/mach/arch.h> | ||
27 | |||
28 | enum { | ||
29 | UNUSED_INTCA = 0, | ||
30 | |||
31 | /* interrupt sources INTCA */ | ||
32 | IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A, | ||
33 | IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A, | ||
34 | DIRC, | ||
35 | CRYPT1_ERR, CRYPT2_STD, | ||
36 | IIC1_ALI1, IIC1_TACKI1, IIC1_WAITI1, IIC1_DTEI1, | ||
37 | ARM11_IRQPMU, ARM11_COMMTX, ARM11_COMMRX, | ||
38 | ETM11_ACQCMP, ETM11_FULL, | ||
39 | MFI_MFIM, MFI_MFIS, | ||
40 | BBIF1, BBIF2, | ||
41 | USBDMAC_USHDMI, | ||
42 | USBHS_USHI0, USBHS_USHI1, | ||
43 | CMT1_CMT10, CMT1_CMT11, CMT1_CMT12, CMT1_CMT13, CMT2, CMT3, | ||
44 | KEYSC_KEY, | ||
45 | SCIFA0, SCIFA1, SCIFA2, SCIFA3, | ||
46 | MSIOF2, MSIOF1, | ||
47 | SCIFA4, SCIFA5, SCIFB, | ||
48 | FLCTL_FLSTEI, FLCTL_FLTENDI, FLCTL_FLTREQ0I, FLCTL_FLTREQ1I, | ||
49 | SDHI0_SDHI0I0, SDHI0_SDHI0I1, SDHI0_SDHI0I2, SDHI0_SDHI0I3, | ||
50 | SDHI1_SDHI1I0, SDHI1_SDHI1I1, SDHI1_SDHI1I2, SDHI1_SDHI1I3, | ||
51 | MSU_MSU, MSU_MSU2, | ||
52 | IREM, | ||
53 | SIU, | ||
54 | SPU, | ||
55 | IRDA, | ||
56 | TPU0, TPU1, TPU2, TPU3, TPU4, | ||
57 | LCRC, | ||
58 | PINT1, PINT2, | ||
59 | TTI20, | ||
60 | MISTY, | ||
61 | DDM, | ||
62 | SDHI2_SDHI2I0, SDHI2_SDHI2I1, SDHI2_SDHI2I2, SDHI2_SDHI2I3, | ||
63 | RWDT0, RWDT1, | ||
64 | DMAC_1_DEI0, DMAC_1_DEI1, DMAC_1_DEI2, DMAC_1_DEI3, | ||
65 | DMAC_2_DEI4, DMAC_2_DEI5, DMAC_2_DADERR, | ||
66 | DMAC2_1_DEI0, DMAC2_1_DEI1, DMAC2_1_DEI2, DMAC2_1_DEI3, | ||
67 | DMAC2_2_DEI4, DMAC2_2_DEI5, DMAC2_2_DADERR, | ||
68 | DMAC3_1_DEI0, DMAC3_1_DEI1, DMAC3_1_DEI2, DMAC3_1_DEI3, | ||
69 | DMAC3_2_DEI4, DMAC3_2_DEI5, DMAC3_2_DADERR, | ||
70 | |||
71 | /* interrupt groups INTCA */ | ||
72 | DMAC_1, DMAC_2, DMAC2_1, DMAC2_2, DMAC3_1, DMAC3_2, | ||
73 | ETM11, ARM11, USBHS, FLCTL, IIC1, SDHI0, SDHI1, SDHI2, | ||
74 | }; | ||
75 | |||
76 | static struct intc_vect intca_vectors[] = { | ||
77 | INTC_VECT(IRQ0A, 0x0200), INTC_VECT(IRQ1A, 0x0220), | ||
78 | INTC_VECT(IRQ2A, 0x0240), INTC_VECT(IRQ3A, 0x0260), | ||
79 | INTC_VECT(IRQ4A, 0x0280), INTC_VECT(IRQ5A, 0x02a0), | ||
80 | INTC_VECT(IRQ6A, 0x02c0), INTC_VECT(IRQ7A, 0x02e0), | ||
81 | INTC_VECT(IRQ8A, 0x0300), INTC_VECT(IRQ9A, 0x0320), | ||
82 | INTC_VECT(IRQ10A, 0x0340), INTC_VECT(IRQ11A, 0x0360), | ||
83 | INTC_VECT(IRQ12A, 0x0380), INTC_VECT(IRQ13A, 0x03a0), | ||
84 | INTC_VECT(IRQ14A, 0x03c0), INTC_VECT(IRQ15A, 0x03e0), | ||
85 | INTC_VECT(DIRC, 0x0560), | ||
86 | INTC_VECT(CRYPT1_ERR, 0x05e0), | ||
87 | INTC_VECT(CRYPT2_STD, 0x0700), | ||
88 | INTC_VECT(IIC1_ALI1, 0x0780), INTC_VECT(IIC1_TACKI1, 0x07a0), | ||
89 | INTC_VECT(IIC1_WAITI1, 0x07c0), INTC_VECT(IIC1_DTEI1, 0x07e0), | ||
90 | INTC_VECT(ARM11_IRQPMU, 0x0800), INTC_VECT(ARM11_COMMTX, 0x0840), | ||
91 | INTC_VECT(ARM11_COMMRX, 0x0860), | ||
92 | INTC_VECT(ETM11_ACQCMP, 0x0880), INTC_VECT(ETM11_FULL, 0x08a0), | ||
93 | INTC_VECT(MFI_MFIM, 0x0900), INTC_VECT(MFI_MFIS, 0x0920), | ||
94 | INTC_VECT(BBIF1, 0x0940), INTC_VECT(BBIF2, 0x0960), | ||
95 | INTC_VECT(USBDMAC_USHDMI, 0x0a00), | ||
96 | INTC_VECT(USBHS_USHI0, 0x0a20), INTC_VECT(USBHS_USHI1, 0x0a40), | ||
97 | INTC_VECT(CMT1_CMT10, 0x0b00), INTC_VECT(CMT1_CMT11, 0x0b20), | ||
98 | INTC_VECT(CMT1_CMT12, 0x0b40), INTC_VECT(CMT1_CMT13, 0x0b60), | ||
99 | INTC_VECT(CMT2, 0x0b80), INTC_VECT(CMT3, 0x0ba0), | ||
100 | INTC_VECT(KEYSC_KEY, 0x0be0), | ||
101 | INTC_VECT(SCIFA0, 0x0c00), INTC_VECT(SCIFA1, 0x0c20), | ||
102 | INTC_VECT(SCIFA2, 0x0c40), INTC_VECT(SCIFA3, 0x0c60), | ||
103 | INTC_VECT(MSIOF2, 0x0c80), INTC_VECT(MSIOF1, 0x0d00), | ||
104 | INTC_VECT(SCIFA4, 0x0d20), INTC_VECT(SCIFA5, 0x0d40), | ||
105 | INTC_VECT(SCIFB, 0x0d60), | ||
106 | INTC_VECT(FLCTL_FLSTEI, 0x0d80), INTC_VECT(FLCTL_FLTENDI, 0x0da0), | ||
107 | INTC_VECT(FLCTL_FLTREQ0I, 0x0dc0), INTC_VECT(FLCTL_FLTREQ1I, 0x0de0), | ||
108 | INTC_VECT(SDHI0_SDHI0I0, 0x0e00), INTC_VECT(SDHI0_SDHI0I1, 0x0e20), | ||
109 | INTC_VECT(SDHI0_SDHI0I2, 0x0e40), INTC_VECT(SDHI0_SDHI0I3, 0x0e60), | ||
110 | INTC_VECT(SDHI1_SDHI1I0, 0x0e80), INTC_VECT(SDHI1_SDHI1I1, 0x0ea0), | ||
111 | INTC_VECT(SDHI1_SDHI1I2, 0x0ec0), INTC_VECT(SDHI1_SDHI1I3, 0x0ee0), | ||
112 | INTC_VECT(MSU_MSU, 0x0f20), INTC_VECT(MSU_MSU2, 0x0f40), | ||
113 | INTC_VECT(IREM, 0x0f60), | ||
114 | INTC_VECT(SIU, 0x0fa0), | ||
115 | INTC_VECT(SPU, 0x0fc0), | ||
116 | INTC_VECT(IRDA, 0x0480), | ||
117 | INTC_VECT(TPU0, 0x04a0), INTC_VECT(TPU1, 0x04c0), | ||
118 | INTC_VECT(TPU2, 0x04e0), INTC_VECT(TPU3, 0x0500), | ||
119 | INTC_VECT(TPU4, 0x0520), | ||
120 | INTC_VECT(LCRC, 0x0540), | ||
121 | INTC_VECT(PINT1, 0x1000), INTC_VECT(PINT2, 0x1020), | ||
122 | INTC_VECT(TTI20, 0x1100), | ||
123 | INTC_VECT(MISTY, 0x1120), | ||
124 | INTC_VECT(DDM, 0x1140), | ||
125 | INTC_VECT(SDHI2_SDHI2I0, 0x1200), INTC_VECT(SDHI2_SDHI2I1, 0x1220), | ||
126 | INTC_VECT(SDHI2_SDHI2I2, 0x1240), INTC_VECT(SDHI2_SDHI2I3, 0x1260), | ||
127 | INTC_VECT(RWDT0, 0x1280), INTC_VECT(RWDT1, 0x12a0), | ||
128 | INTC_VECT(DMAC_1_DEI0, 0x2000), INTC_VECT(DMAC_1_DEI1, 0x2020), | ||
129 | INTC_VECT(DMAC_1_DEI2, 0x2040), INTC_VECT(DMAC_1_DEI3, 0x2060), | ||
130 | INTC_VECT(DMAC_2_DEI4, 0x2080), INTC_VECT(DMAC_2_DEI5, 0x20a0), | ||
131 | INTC_VECT(DMAC_2_DADERR, 0x20c0), | ||
132 | INTC_VECT(DMAC2_1_DEI0, 0x2100), INTC_VECT(DMAC2_1_DEI1, 0x2120), | ||
133 | INTC_VECT(DMAC2_1_DEI2, 0x2140), INTC_VECT(DMAC2_1_DEI3, 0x2160), | ||
134 | INTC_VECT(DMAC2_2_DEI4, 0x2180), INTC_VECT(DMAC2_2_DEI5, 0x21a0), | ||
135 | INTC_VECT(DMAC2_2_DADERR, 0x21c0), | ||
136 | INTC_VECT(DMAC3_1_DEI0, 0x2200), INTC_VECT(DMAC3_1_DEI1, 0x2220), | ||
137 | INTC_VECT(DMAC3_1_DEI2, 0x2240), INTC_VECT(DMAC3_1_DEI3, 0x2260), | ||
138 | INTC_VECT(DMAC3_2_DEI4, 0x2280), INTC_VECT(DMAC3_2_DEI5, 0x22a0), | ||
139 | INTC_VECT(DMAC3_2_DADERR, 0x22c0), | ||
140 | }; | ||
141 | |||
142 | static struct intc_group intca_groups[] __initdata = { | ||
143 | INTC_GROUP(DMAC_1, DMAC_1_DEI0, | ||
144 | DMAC_1_DEI1, DMAC_1_DEI2, DMAC_1_DEI3), | ||
145 | INTC_GROUP(DMAC_2, DMAC_2_DEI4, | ||
146 | DMAC_2_DEI5, DMAC_2_DADERR), | ||
147 | INTC_GROUP(DMAC2_1, DMAC2_1_DEI0, | ||
148 | DMAC2_1_DEI1, DMAC2_1_DEI2, DMAC2_1_DEI3), | ||
149 | INTC_GROUP(DMAC2_2, DMAC2_2_DEI4, | ||
150 | DMAC2_2_DEI5, DMAC2_2_DADERR), | ||
151 | INTC_GROUP(DMAC3_1, DMAC3_1_DEI0, | ||
152 | DMAC3_1_DEI1, DMAC3_1_DEI2, DMAC3_1_DEI3), | ||
153 | INTC_GROUP(DMAC3_2, DMAC3_2_DEI4, | ||
154 | DMAC3_2_DEI5, DMAC3_2_DADERR), | ||
155 | INTC_GROUP(ETM11, ETM11_ACQCMP, ETM11_FULL), | ||
156 | INTC_GROUP(ARM11, ARM11_IRQPMU, ARM11_COMMTX, ARM11_COMMTX), | ||
157 | INTC_GROUP(USBHS, USBHS_USHI0, USBHS_USHI1), | ||
158 | INTC_GROUP(FLCTL, FLCTL_FLSTEI, FLCTL_FLTENDI, | ||
159 | FLCTL_FLTREQ0I, FLCTL_FLTREQ1I), | ||
160 | INTC_GROUP(IIC1, IIC1_ALI1, IIC1_TACKI1, IIC1_WAITI1, IIC1_DTEI1), | ||
161 | INTC_GROUP(SDHI0, SDHI0_SDHI0I0, SDHI0_SDHI0I1, | ||
162 | SDHI0_SDHI0I2, SDHI0_SDHI0I3), | ||
163 | INTC_GROUP(SDHI1, SDHI1_SDHI1I0, SDHI1_SDHI1I1, | ||
164 | SDHI1_SDHI1I2, SDHI1_SDHI1I3), | ||
165 | INTC_GROUP(SDHI2, SDHI2_SDHI2I0, SDHI2_SDHI2I1, | ||
166 | SDHI2_SDHI2I2, SDHI2_SDHI2I3), | ||
167 | }; | ||
168 | |||
169 | static struct intc_mask_reg intca_mask_registers[] = { | ||
170 | { 0xe6900040, 0xe6900060, 8, /* INTMSK00A / INTMSKCLR00A */ | ||
171 | { IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A } }, | ||
172 | { 0xe6900044, 0xe6900064, 8, /* INTMSK10A / INTMSKCLR10A */ | ||
173 | { IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A } }, | ||
174 | { 0xe6940080, 0xe69400c0, 8, /* IMR0A / IMCR0A */ | ||
175 | { DMAC2_1_DEI3, DMAC2_1_DEI2, DMAC2_1_DEI1, DMAC2_1_DEI0, | ||
176 | ARM11_IRQPMU, 0, ARM11_COMMTX, ARM11_COMMRX } }, | ||
177 | { 0xe6940084, 0xe69400c4, 8, /* IMR1A / IMCR1A */ | ||
178 | { CRYPT1_ERR, CRYPT2_STD, DIRC, 0, | ||
179 | DMAC_1_DEI3, DMAC_1_DEI2, DMAC_1_DEI1, DMAC_1_DEI0 } }, | ||
180 | { 0xe6940088, 0xe69400c8, 8, /* IMR2A / IMCR2A */ | ||
181 | { PINT1, PINT2, 0, 0, | ||
182 | BBIF1, BBIF2, MFI_MFIS, MFI_MFIM } }, | ||
183 | { 0xe694008c, 0xe69400cc, 8, /* IMR3A / IMCR3A */ | ||
184 | { DMAC3_1_DEI3, DMAC3_1_DEI2, DMAC3_1_DEI1, DMAC3_1_DEI0, | ||
185 | DMAC3_2_DADERR, DMAC3_2_DEI5, DMAC3_2_DEI4, IRDA } }, | ||
186 | { 0xe6940090, 0xe69400d0, 8, /* IMR4A / IMCR4A */ | ||
187 | { DDM, 0, 0, 0, | ||
188 | 0, 0, ETM11_FULL, ETM11_ACQCMP } }, | ||
189 | { 0xe6940094, 0xe69400d4, 8, /* IMR5A / IMCR5A */ | ||
190 | { KEYSC_KEY, DMAC_2_DADERR, DMAC_2_DEI5, DMAC_2_DEI4, | ||
191 | SCIFA3, SCIFA2, SCIFA1, SCIFA0 } }, | ||
192 | { 0xe6940098, 0xe69400d8, 8, /* IMR6A / IMCR6A */ | ||
193 | { SCIFB, SCIFA5, SCIFA4, MSIOF1, | ||
194 | 0, 0, MSIOF2, 0 } }, | ||
195 | { 0xe694009c, 0xe69400dc, 8, /* IMR7A / IMCR7A */ | ||
196 | { SDHI0_SDHI0I3, SDHI0_SDHI0I2, SDHI0_SDHI0I1, SDHI0_SDHI0I0, | ||
197 | FLCTL_FLTREQ1I, FLCTL_FLTREQ0I, FLCTL_FLTENDI, FLCTL_FLSTEI } }, | ||
198 | { 0xe69400a0, 0xe69400e0, 8, /* IMR8A / IMCR8A */ | ||
199 | { SDHI1_SDHI1I3, SDHI1_SDHI1I2, SDHI1_SDHI1I1, SDHI1_SDHI1I0, | ||
200 | TTI20, USBDMAC_USHDMI, SPU, SIU } }, | ||
201 | { 0xe69400a4, 0xe69400e4, 8, /* IMR9A / IMCR9A */ | ||
202 | { CMT1_CMT13, CMT1_CMT12, CMT1_CMT11, CMT1_CMT10, | ||
203 | CMT2, USBHS_USHI1, USBHS_USHI0, 0 } }, | ||
204 | { 0xe69400a8, 0xe69400e8, 8, /* IMR10A / IMCR10A */ | ||
205 | { 0, DMAC2_2_DADERR, DMAC2_2_DEI5, DMAC2_2_DEI4, | ||
206 | 0, 0, 0, 0 } }, | ||
207 | { 0xe69400ac, 0xe69400ec, 8, /* IMR11A / IMCR11A */ | ||
208 | { IIC1_DTEI1, IIC1_WAITI1, IIC1_TACKI1, IIC1_ALI1, | ||
209 | LCRC, MSU_MSU2, IREM, MSU_MSU } }, | ||
210 | { 0xe69400b0, 0xe69400f0, 8, /* IMR12A / IMCR12A */ | ||
211 | { 0, 0, TPU0, TPU1, | ||
212 | TPU2, TPU3, TPU4, 0 } }, | ||
213 | { 0xe69400b4, 0xe69400f4, 8, /* IMR13A / IMCR13A */ | ||
214 | { SDHI2_SDHI2I3, SDHI2_SDHI2I2, SDHI2_SDHI2I1, SDHI2_SDHI2I0, | ||
215 | MISTY, CMT3, RWDT1, RWDT0 } }, | ||
216 | }; | ||
217 | |||
218 | static struct intc_prio_reg intca_prio_registers[] = { | ||
219 | { 0xe6900010, 0, 32, 4, /* INTPRI00A */ | ||
220 | { IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A } }, | ||
221 | { 0xe6900014, 0, 32, 4, /* INTPRI10A */ | ||
222 | { IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A } }, | ||
223 | |||
224 | { 0xe6940000, 0, 16, 4, /* IPRAA */ { DMAC3_1, DMAC3_2, CMT2, LCRC } }, | ||
225 | { 0xe6940004, 0, 16, 4, /* IPRBA */ { IRDA, ETM11, BBIF1, BBIF2 } }, | ||
226 | { 0xe6940008, 0, 16, 4, /* IPRCA */ { CRYPT1_ERR, CRYPT2_STD, | ||
227 | CMT1_CMT11, ARM11 } }, | ||
228 | { 0xe694000c, 0, 16, 4, /* IPRDA */ { PINT1, PINT2, | ||
229 | CMT1_CMT12, TPU4 } }, | ||
230 | { 0xe6940010, 0, 16, 4, /* IPREA */ { DMAC_1, MFI_MFIS, | ||
231 | MFI_MFIM, USBHS } }, | ||
232 | { 0xe6940014, 0, 16, 4, /* IPRFA */ { KEYSC_KEY, DMAC_2, | ||
233 | 0, CMT1_CMT10 } }, | ||
234 | { 0xe6940018, 0, 16, 4, /* IPRGA */ { SCIFA0, SCIFA1, | ||
235 | SCIFA2, SCIFA3 } }, | ||
236 | { 0xe694001c, 0, 16, 4, /* IPRGH */ { MSIOF2, USBDMAC_USHDMI, | ||
237 | FLCTL, SDHI0 } }, | ||
238 | { 0xe6940020, 0, 16, 4, /* IPRIA */ { MSIOF1, SCIFA4, MSU_MSU, IIC1 } }, | ||
239 | { 0xe6940024, 0, 16, 4, /* IPRJA */ { DMAC2_1, DMAC2_2, SIU, TTI20 } }, | ||
240 | { 0xe6940028, 0, 16, 4, /* IPRKA */ { 0, CMT1_CMT13, IREM, SDHI1 } }, | ||
241 | { 0xe694002c, 0, 16, 4, /* IPRLA */ { TPU0, TPU1, TPU2, TPU3 } }, | ||
242 | { 0xe6940030, 0, 16, 4, /* IPRMA */ { MISTY, CMT3, RWDT1, RWDT0 } }, | ||
243 | { 0xe6940034, 0, 16, 4, /* IPRNA */ { SCIFB, SCIFA5, SPU, DDM } }, | ||
244 | { 0xe6940038, 0, 16, 4, /* IPROA */ { 0, 0, DIRC, SDHI2 } }, | ||
245 | }; | ||
246 | |||
247 | static struct intc_sense_reg intca_sense_registers[] __initdata = { | ||
248 | { 0xe6900000, 16, 2, /* ICR1A */ | ||
249 | { IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A } }, | ||
250 | { 0xe6900004, 16, 2, /* ICR2A */ | ||
251 | { IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A } }, | ||
252 | }; | ||
253 | |||
254 | static struct intc_mask_reg intca_ack_registers[] __initdata = { | ||
255 | { 0xe6900020, 0, 8, /* INTREQ00A */ | ||
256 | { IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A } }, | ||
257 | { 0xe6900024, 0, 8, /* INTREQ10A */ | ||
258 | { IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A } }, | ||
259 | }; | ||
260 | |||
261 | static DECLARE_INTC_DESC_ACK(intca_desc, "sh7367-intca", | ||
262 | intca_vectors, intca_groups, | ||
263 | intca_mask_registers, intca_prio_registers, | ||
264 | intca_sense_registers, intca_ack_registers); | ||
265 | |||
266 | void __init sh7367_init_irq(void) | ||
267 | { | ||
268 | /* INTCA */ | ||
269 | register_intc_controller(&intca_desc); | ||
270 | } | ||
diff --git a/arch/arm/mach-shmobile/intc-sh7372.c b/arch/arm/mach-shmobile/intc-sh7372.c new file mode 100644 index 00000000000..c57a923f97a --- /dev/null +++ b/arch/arm/mach-shmobile/intc-sh7372.c | |||
@@ -0,0 +1,369 @@ | |||
1 | /* | ||
2 | * sh7372 processor support - INTC hardware block | ||
3 | * | ||
4 | * Copyright (C) 2010 Magnus Damm | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; version 2 of the License. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
18 | */ | ||
19 | #include <linux/kernel.h> | ||
20 | #include <linux/init.h> | ||
21 | #include <linux/interrupt.h> | ||
22 | #include <linux/irq.h> | ||
23 | #include <linux/io.h> | ||
24 | #include <linux/sh_intc.h> | ||
25 | #include <asm/mach-types.h> | ||
26 | #include <asm/mach/arch.h> | ||
27 | |||
28 | enum { | ||
29 | UNUSED_INTCA = 0, | ||
30 | |||
31 | /* interrupt sources INTCA */ | ||
32 | IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A, | ||
33 | IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A, | ||
34 | IRQ16A, IRQ17A, IRQ18A, IRQ19A, IRQ20A, IRQ21A, IRQ22A, IRQ23A, | ||
35 | IRQ24A, IRQ25A, IRQ26A, IRQ27A, IRQ28A, IRQ29A, IRQ30A, IRQ31A, | ||
36 | DIRC, | ||
37 | CRYPT_STD, | ||
38 | IIC1_ALI1, IIC1_TACKI1, IIC1_WAITI1, IIC1_DTEI1, | ||
39 | AP_ARM_IRQPMU, AP_ARM_COMMTX, AP_ARM_COMMRX, | ||
40 | MFI_MFIM, MFI_MFIS, | ||
41 | BBIF1, BBIF2, | ||
42 | USBHSDMAC0_USHDMI, | ||
43 | _3DG_SGX540, | ||
44 | CMT1_CMT10, CMT1_CMT11, CMT1_CMT12, CMT1_CMT13, CMT2, CMT3, | ||
45 | KEYSC_KEY, | ||
46 | SCIFA0, SCIFA1, SCIFA2, SCIFA3, | ||
47 | MSIOF2, MSIOF1, | ||
48 | SCIFA4, SCIFA5, SCIFB, | ||
49 | FLCTL_FLSTEI, FLCTL_FLTENDI, FLCTL_FLTREQ0I, FLCTL_FLTREQ1I, | ||
50 | SDHI0_SDHI0I0, SDHI0_SDHI0I1, SDHI0_SDHI0I2, SDHI0_SDHI0I3, | ||
51 | SDHI1_SDHI1I0, SDHI1_SDHI1I1, SDHI1_SDHI1I2, | ||
52 | IRREM, | ||
53 | IRDA, | ||
54 | TPU0, | ||
55 | TTI20, | ||
56 | DDM, | ||
57 | SDHI2_SDHI2I0, SDHI2_SDHI2I1, SDHI2_SDHI2I2, SDHI2_SDHI2I3, | ||
58 | RWDT0, | ||
59 | DMAC1_1_DEI0, DMAC1_1_DEI1, DMAC1_1_DEI2, DMAC1_1_DEI3, | ||
60 | DMAC1_2_DEI4, DMAC1_2_DEI5, DMAC1_2_DADERR, | ||
61 | DMAC2_1_DEI0, DMAC2_1_DEI1, DMAC2_1_DEI2, DMAC2_1_DEI3, | ||
62 | DMAC2_2_DEI4, DMAC2_2_DEI5, DMAC2_2_DADERR, | ||
63 | DMAC3_1_DEI0, DMAC3_1_DEI1, DMAC3_1_DEI2, DMAC3_1_DEI3, | ||
64 | DMAC3_2_DEI4, DMAC3_2_DEI5, DMAC3_2_DADERR, | ||
65 | SHWYSTAT_RT, SHWYSTAT_HS, SHWYSTAT_COM, | ||
66 | HDMI, | ||
67 | SPU2_SPU0, SPU2_SPU1, | ||
68 | FSI, FMSI, | ||
69 | MIPI_HSI, | ||
70 | IPMMU_IPMMUD, | ||
71 | CEC_1, CEC_2, | ||
72 | AP_ARM_CTIIRQ, AP_ARM_DMAEXTERRIRQ, AP_ARM_DMAIRQ, AP_ARM_DMASIRQ, | ||
73 | MFIS2, | ||
74 | CPORTR2S, | ||
75 | CMT14, CMT15, | ||
76 | MMC_MMC_ERR, MMC_MMC_NOR, | ||
77 | IIC4_ALI4, IIC4_TACKI4, IIC4_WAITI4, IIC4_DTEI4, | ||
78 | IIC3_ALI3, IIC3_TACKI3, IIC3_WAITI3, IIC3_DTEI3, | ||
79 | USB0_USB0I1, USB0_USB0I0, | ||
80 | USB1_USB1I1, USB1_USB1I0, | ||
81 | USBHSDMAC1_USHDMI, | ||
82 | |||
83 | /* interrupt groups INTCA */ | ||
84 | DMAC1_1, DMAC1_2, DMAC2_1, DMAC2_2, DMAC3_1, DMAC3_2, SHWYSTAT, | ||
85 | AP_ARM1, AP_ARM2, SPU2, FLCTL, IIC1, SDHI0, SDHI1, SDHI2 | ||
86 | }; | ||
87 | |||
88 | static struct intc_vect intca_vectors[] __initdata = { | ||
89 | INTC_VECT(IRQ0A, 0x0200), INTC_VECT(IRQ1A, 0x0220), | ||
90 | INTC_VECT(IRQ2A, 0x0240), INTC_VECT(IRQ3A, 0x0260), | ||
91 | INTC_VECT(IRQ4A, 0x0280), INTC_VECT(IRQ5A, 0x02a0), | ||
92 | INTC_VECT(IRQ6A, 0x02c0), INTC_VECT(IRQ7A, 0x02e0), | ||
93 | INTC_VECT(IRQ8A, 0x0300), INTC_VECT(IRQ9A, 0x0320), | ||
94 | INTC_VECT(IRQ10A, 0x0340), INTC_VECT(IRQ11A, 0x0360), | ||
95 | INTC_VECT(IRQ12A, 0x0380), INTC_VECT(IRQ13A, 0x03a0), | ||
96 | INTC_VECT(IRQ14A, 0x03c0), INTC_VECT(IRQ15A, 0x03e0), | ||
97 | INTC_VECT(IRQ16A, 0x3200), INTC_VECT(IRQ17A, 0x3220), | ||
98 | INTC_VECT(IRQ18A, 0x3240), INTC_VECT(IRQ19A, 0x3260), | ||
99 | INTC_VECT(IRQ20A, 0x3280), INTC_VECT(IRQ31A, 0x32a0), | ||
100 | INTC_VECT(IRQ22A, 0x32c0), INTC_VECT(IRQ23A, 0x32e0), | ||
101 | INTC_VECT(IRQ24A, 0x3300), INTC_VECT(IRQ25A, 0x3320), | ||
102 | INTC_VECT(IRQ26A, 0x3340), INTC_VECT(IRQ27A, 0x3360), | ||
103 | INTC_VECT(IRQ28A, 0x3380), INTC_VECT(IRQ29A, 0x33a0), | ||
104 | INTC_VECT(IRQ30A, 0x33c0), INTC_VECT(IRQ31A, 0x33e0), | ||
105 | INTC_VECT(DIRC, 0x0560), | ||
106 | INTC_VECT(CRYPT_STD, 0x0700), | ||
107 | INTC_VECT(IIC1_ALI1, 0x0780), INTC_VECT(IIC1_TACKI1, 0x07a0), | ||
108 | INTC_VECT(IIC1_WAITI1, 0x07c0), INTC_VECT(IIC1_DTEI1, 0x07e0), | ||
109 | INTC_VECT(AP_ARM_IRQPMU, 0x0800), INTC_VECT(AP_ARM_COMMTX, 0x0840), | ||
110 | INTC_VECT(AP_ARM_COMMRX, 0x0860), | ||
111 | INTC_VECT(MFI_MFIM, 0x0900), INTC_VECT(MFI_MFIS, 0x0920), | ||
112 | INTC_VECT(BBIF1, 0x0940), INTC_VECT(BBIF2, 0x0960), | ||
113 | INTC_VECT(USBHSDMAC0_USHDMI, 0x0a00), | ||
114 | INTC_VECT(_3DG_SGX540, 0x0a60), | ||
115 | INTC_VECT(CMT1_CMT10, 0x0b00), INTC_VECT(CMT1_CMT11, 0x0b20), | ||
116 | INTC_VECT(CMT1_CMT12, 0x0b40), INTC_VECT(CMT1_CMT13, 0x0b60), | ||
117 | INTC_VECT(CMT2, 0x0b80), INTC_VECT(CMT3, 0x0ba0), | ||
118 | INTC_VECT(KEYSC_KEY, 0x0be0), | ||
119 | INTC_VECT(SCIFA0, 0x0c00), INTC_VECT(SCIFA1, 0x0c20), | ||
120 | INTC_VECT(SCIFA2, 0x0c40), INTC_VECT(SCIFA3, 0x0c60), | ||
121 | INTC_VECT(MSIOF2, 0x0c80), INTC_VECT(MSIOF1, 0x0d00), | ||
122 | INTC_VECT(SCIFA4, 0x0d20), INTC_VECT(SCIFA5, 0x0d40), | ||
123 | INTC_VECT(SCIFB, 0x0d60), | ||
124 | INTC_VECT(FLCTL_FLSTEI, 0x0d80), INTC_VECT(FLCTL_FLTENDI, 0x0da0), | ||
125 | INTC_VECT(FLCTL_FLTREQ0I, 0x0dc0), INTC_VECT(FLCTL_FLTREQ1I, 0x0de0), | ||
126 | INTC_VECT(SDHI0_SDHI0I0, 0x0e00), INTC_VECT(SDHI0_SDHI0I1, 0x0e20), | ||
127 | INTC_VECT(SDHI0_SDHI0I2, 0x0e40), INTC_VECT(SDHI0_SDHI0I3, 0x0e60), | ||
128 | INTC_VECT(SDHI1_SDHI1I0, 0x0e80), INTC_VECT(SDHI1_SDHI1I1, 0x0ea0), | ||
129 | INTC_VECT(SDHI1_SDHI1I2, 0x0ec0), | ||
130 | INTC_VECT(IRREM, 0x0f60), | ||
131 | INTC_VECT(IRDA, 0x0480), | ||
132 | INTC_VECT(TPU0, 0x04a0), | ||
133 | INTC_VECT(TTI20, 0x1100), | ||
134 | INTC_VECT(DDM, 0x1140), | ||
135 | INTC_VECT(SDHI2_SDHI2I0, 0x1200), INTC_VECT(SDHI2_SDHI2I1, 0x1220), | ||
136 | INTC_VECT(SDHI2_SDHI2I2, 0x1240), INTC_VECT(SDHI2_SDHI2I3, 0x1260), | ||
137 | INTC_VECT(RWDT0, 0x1280), | ||
138 | INTC_VECT(DMAC1_1_DEI0, 0x2000), INTC_VECT(DMAC1_1_DEI1, 0x2020), | ||
139 | INTC_VECT(DMAC1_1_DEI2, 0x2040), INTC_VECT(DMAC1_1_DEI3, 0x2060), | ||
140 | INTC_VECT(DMAC1_2_DEI4, 0x2080), INTC_VECT(DMAC1_2_DEI5, 0x20a0), | ||
141 | INTC_VECT(DMAC1_2_DADERR, 0x20c0), | ||
142 | INTC_VECT(DMAC2_1_DEI0, 0x2100), INTC_VECT(DMAC2_1_DEI1, 0x2120), | ||
143 | INTC_VECT(DMAC2_1_DEI2, 0x2140), INTC_VECT(DMAC2_1_DEI3, 0x2160), | ||
144 | INTC_VECT(DMAC2_2_DEI4, 0x2180), INTC_VECT(DMAC2_2_DEI5, 0x21a0), | ||
145 | INTC_VECT(DMAC2_2_DADERR, 0x21c0), | ||
146 | INTC_VECT(DMAC3_1_DEI0, 0x2200), INTC_VECT(DMAC3_1_DEI1, 0x2220), | ||
147 | INTC_VECT(DMAC3_1_DEI2, 0x2240), INTC_VECT(DMAC3_1_DEI3, 0x2260), | ||
148 | INTC_VECT(DMAC3_2_DEI4, 0x2280), INTC_VECT(DMAC3_2_DEI5, 0x22a0), | ||
149 | INTC_VECT(DMAC3_2_DADERR, 0x22c0), | ||
150 | INTC_VECT(SHWYSTAT_RT, 0x1300), INTC_VECT(SHWYSTAT_HS, 0x1320), | ||
151 | INTC_VECT(SHWYSTAT_COM, 0x1340), | ||
152 | INTC_VECT(HDMI, 0x17e0), | ||
153 | INTC_VECT(SPU2_SPU0, 0x1800), INTC_VECT(SPU2_SPU1, 0x1820), | ||
154 | INTC_VECT(FSI, 0x1840), | ||
155 | INTC_VECT(FMSI, 0x1860), | ||
156 | INTC_VECT(MIPI_HSI, 0x18e0), | ||
157 | INTC_VECT(IPMMU_IPMMUD, 0x1920), | ||
158 | INTC_VECT(CEC_1, 0x1940), INTC_VECT(CEC_2, 0x1960), | ||
159 | INTC_VECT(AP_ARM_CTIIRQ, 0x1980), | ||
160 | INTC_VECT(AP_ARM_DMAEXTERRIRQ, 0x19a0), | ||
161 | INTC_VECT(AP_ARM_DMAIRQ, 0x19c0), | ||
162 | INTC_VECT(AP_ARM_DMASIRQ, 0x19e0), | ||
163 | INTC_VECT(MFIS2, 0x1a00), | ||
164 | INTC_VECT(CPORTR2S, 0x1a20), | ||
165 | INTC_VECT(CMT14, 0x1a40), INTC_VECT(CMT15, 0x1a60), | ||
166 | INTC_VECT(MMC_MMC_ERR, 0x1ac0), INTC_VECT(MMC_MMC_NOR, 0x1ae0), | ||
167 | INTC_VECT(IIC4_ALI4, 0x1b00), INTC_VECT(IIC4_TACKI4, 0x1b20), | ||
168 | INTC_VECT(IIC4_WAITI4, 0x1b40), INTC_VECT(IIC4_DTEI4, 0x1b60), | ||
169 | INTC_VECT(IIC3_ALI3, 0x1b80), INTC_VECT(IIC3_TACKI3, 0x1ba0), | ||
170 | INTC_VECT(IIC3_WAITI3, 0x1bc0), INTC_VECT(IIC3_DTEI3, 0x1be0), | ||
171 | INTC_VECT(USB0_USB0I1, 0x1c80), INTC_VECT(USB0_USB0I0, 0x1ca0), | ||
172 | INTC_VECT(USB1_USB1I1, 0x1cc0), INTC_VECT(USB1_USB1I0, 0x1ce0), | ||
173 | INTC_VECT(USBHSDMAC1_USHDMI, 0x1d00), | ||
174 | }; | ||
175 | |||
176 | static struct intc_group intca_groups[] __initdata = { | ||
177 | INTC_GROUP(DMAC1_1, DMAC1_1_DEI0, | ||
178 | DMAC1_1_DEI1, DMAC1_1_DEI2, DMAC1_1_DEI3), | ||
179 | INTC_GROUP(DMAC1_2, DMAC1_2_DEI4, | ||
180 | DMAC1_2_DEI5, DMAC1_2_DADERR), | ||
181 | INTC_GROUP(DMAC2_1, DMAC2_1_DEI0, | ||
182 | DMAC2_1_DEI1, DMAC2_1_DEI2, DMAC2_1_DEI3), | ||
183 | INTC_GROUP(DMAC2_2, DMAC2_2_DEI4, | ||
184 | DMAC2_2_DEI5, DMAC2_2_DADERR), | ||
185 | INTC_GROUP(DMAC3_1, DMAC3_1_DEI0, | ||
186 | DMAC3_1_DEI1, DMAC3_1_DEI2, DMAC3_1_DEI3), | ||
187 | INTC_GROUP(DMAC3_2, DMAC3_2_DEI4, | ||
188 | DMAC3_2_DEI5, DMAC3_2_DADERR), | ||
189 | INTC_GROUP(AP_ARM1, AP_ARM_IRQPMU, AP_ARM_COMMTX, AP_ARM_COMMRX), | ||
190 | INTC_GROUP(AP_ARM2, AP_ARM_CTIIRQ, AP_ARM_DMAEXTERRIRQ, | ||
191 | AP_ARM_DMAIRQ, AP_ARM_DMASIRQ), | ||
192 | INTC_GROUP(SPU2, SPU2_SPU0, SPU2_SPU1), | ||
193 | INTC_GROUP(FLCTL, FLCTL_FLSTEI, FLCTL_FLTENDI, | ||
194 | FLCTL_FLTREQ0I, FLCTL_FLTREQ1I), | ||
195 | INTC_GROUP(IIC1, IIC1_ALI1, IIC1_TACKI1, IIC1_WAITI1, IIC1_DTEI1), | ||
196 | INTC_GROUP(SDHI0, SDHI0_SDHI0I0, SDHI0_SDHI0I1, | ||
197 | SDHI0_SDHI0I2, SDHI0_SDHI0I3), | ||
198 | INTC_GROUP(SDHI1, SDHI1_SDHI1I0, SDHI1_SDHI1I1, | ||
199 | SDHI1_SDHI1I2), | ||
200 | INTC_GROUP(SDHI2, SDHI2_SDHI2I0, SDHI2_SDHI2I1, | ||
201 | SDHI2_SDHI2I2, SDHI2_SDHI2I3), | ||
202 | INTC_GROUP(SHWYSTAT, SHWYSTAT_RT, SHWYSTAT_HS, SHWYSTAT_COM), | ||
203 | }; | ||
204 | |||
205 | static struct intc_mask_reg intca_mask_registers[] __initdata = { | ||
206 | { 0xe6900040, 0xe6900060, 8, /* INTMSK00A / INTMSKCLR00A */ | ||
207 | { IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A } }, | ||
208 | { 0xe6900044, 0xe6900064, 8, /* INTMSK10A / INTMSKCLR10A */ | ||
209 | { IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A } }, | ||
210 | { 0xe6900048, 0xe6900068, 8, /* INTMSK20A / INTMSKCLR20A */ | ||
211 | { IRQ16A, IRQ17A, IRQ18A, IRQ19A, IRQ20A, IRQ21A, IRQ22A, IRQ23A } }, | ||
212 | { 0xe690004c, 0xe690006c, 8, /* INTMSK30A / INTMSKCLR30A */ | ||
213 | { IRQ24A, IRQ25A, IRQ26A, IRQ27A, IRQ28A, IRQ29A, IRQ30A, IRQ31A } }, | ||
214 | |||
215 | { 0xe6940080, 0xe69400c0, 8, /* IMR0A / IMCR0A */ | ||
216 | { DMAC2_1_DEI3, DMAC2_1_DEI2, DMAC2_1_DEI1, DMAC2_1_DEI0, | ||
217 | AP_ARM_IRQPMU, 0, AP_ARM_COMMTX, AP_ARM_COMMRX } }, | ||
218 | { 0xe6940084, 0xe69400c4, 8, /* IMR1A / IMCR1A */ | ||
219 | { 0, CRYPT_STD, DIRC, 0, | ||
220 | DMAC1_1_DEI3, DMAC1_1_DEI2, DMAC1_1_DEI1, DMAC1_1_DEI0 } }, | ||
221 | { 0xe6940088, 0xe69400c8, 8, /* IMR2A / IMCR2A */ | ||
222 | { 0, 0, 0, 0, | ||
223 | BBIF1, BBIF2, MFI_MFIS, MFI_MFIM } }, | ||
224 | { 0xe694008c, 0xe69400cc, 8, /* IMR3A / IMCR3A */ | ||
225 | { DMAC3_1_DEI3, DMAC3_1_DEI2, DMAC3_1_DEI1, DMAC3_1_DEI0, | ||
226 | DMAC3_2_DADERR, DMAC3_2_DEI5, DMAC3_2_DEI4, IRDA } }, | ||
227 | { 0xe6940090, 0xe69400d0, 8, /* IMR4A / IMCR4A */ | ||
228 | { DDM, 0, 0, 0, | ||
229 | 0, 0, 0, 0 } }, | ||
230 | { 0xe6940094, 0xe69400d4, 8, /* IMR5A / IMCR5A */ | ||
231 | { KEYSC_KEY, DMAC1_2_DADERR, DMAC1_2_DEI5, DMAC1_2_DEI4, | ||
232 | SCIFA3, SCIFA2, SCIFA1, SCIFA0 } }, | ||
233 | { 0xe6940098, 0xe69400d8, 8, /* IMR6A / IMCR6A */ | ||
234 | { SCIFB, SCIFA5, SCIFA4, MSIOF1, | ||
235 | 0, 0, MSIOF2, 0 } }, | ||
236 | { 0xe694009c, 0xe69400dc, 8, /* IMR7A / IMCR7A */ | ||
237 | { SDHI0_SDHI0I3, SDHI0_SDHI0I2, SDHI0_SDHI0I1, SDHI0_SDHI0I0, | ||
238 | FLCTL_FLTREQ1I, FLCTL_FLTREQ0I, FLCTL_FLTENDI, FLCTL_FLSTEI } }, | ||
239 | { 0xe69400a0, 0xe69400e0, 8, /* IMR8A / IMCR8A */ | ||
240 | { 0, SDHI1_SDHI1I2, SDHI1_SDHI1I1, SDHI1_SDHI1I0, | ||
241 | TTI20, USBHSDMAC0_USHDMI, 0, 0 } }, | ||
242 | { 0xe69400a4, 0xe69400e4, 8, /* IMR9A / IMCR9A */ | ||
243 | { CMT1_CMT13, CMT1_CMT12, CMT1_CMT11, CMT1_CMT10, | ||
244 | CMT2, 0, 0, _3DG_SGX540 } }, | ||
245 | { 0xe69400a8, 0xe69400e8, 8, /* IMR10A / IMCR10A */ | ||
246 | { 0, DMAC2_2_DADERR, DMAC2_2_DEI5, DMAC2_2_DEI4, | ||
247 | 0, 0, 0, 0 } }, | ||
248 | { 0xe69400ac, 0xe69400ec, 8, /* IMR11A / IMCR11A */ | ||
249 | { IIC1_DTEI1, IIC1_WAITI1, IIC1_TACKI1, IIC1_ALI1, | ||
250 | 0, 0, IRREM, 0 } }, | ||
251 | { 0xe69400b0, 0xe69400f0, 8, /* IMR12A / IMCR12A */ | ||
252 | { 0, 0, TPU0, 0, | ||
253 | 0, 0, 0, 0 } }, | ||
254 | { 0xe69400b4, 0xe69400f4, 8, /* IMR13A / IMCR13A */ | ||
255 | { SDHI2_SDHI2I3, SDHI2_SDHI2I2, SDHI2_SDHI2I1, SDHI2_SDHI2I0, | ||
256 | 0, CMT3, 0, RWDT0 } }, | ||
257 | { 0xe6950080, 0xe69500c0, 8, /* IMR0A3 / IMCR0A3 */ | ||
258 | { SHWYSTAT_RT, SHWYSTAT_HS, SHWYSTAT_COM, 0, | ||
259 | 0, 0, 0, 0 } }, | ||
260 | { 0xe6950090, 0xe69500d0, 8, /* IMR4A3 / IMCR4A3 */ | ||
261 | { 0, 0, 0, 0, | ||
262 | 0, 0, 0, HDMI } }, | ||
263 | { 0xe6950094, 0xe69500d4, 8, /* IMR5A3 / IMCR5A3 */ | ||
264 | { SPU2_SPU0, SPU2_SPU1, FSI, FMSI, | ||
265 | 0, 0, 0, MIPI_HSI } }, | ||
266 | { 0xe6950098, 0xe69500d8, 8, /* IMR6A3 / IMCR6A3 */ | ||
267 | { 0, IPMMU_IPMMUD, CEC_1, CEC_2, | ||
268 | AP_ARM_CTIIRQ, AP_ARM_DMAEXTERRIRQ, | ||
269 | AP_ARM_DMAIRQ, AP_ARM_DMASIRQ } }, | ||
270 | { 0xe695009c, 0xe69500dc, 8, /* IMR7A3 / IMCR7A3 */ | ||
271 | { MFIS2, CPORTR2S, CMT14, CMT15, | ||
272 | 0, 0, MMC_MMC_ERR, MMC_MMC_NOR } }, | ||
273 | { 0xe69500a0, 0xe69500e0, 8, /* IMR8A3 / IMCR8A3 */ | ||
274 | { IIC4_ALI4, IIC4_TACKI4, IIC4_WAITI4, IIC4_DTEI4, | ||
275 | IIC3_ALI3, IIC3_TACKI3, IIC3_WAITI3, IIC3_DTEI3 } }, | ||
276 | { 0xe69500a4, 0xe69500e4, 8, /* IMR9A3 / IMCR9A3 */ | ||
277 | { 0, 0, 0, 0, | ||
278 | USB0_USB0I1, USB0_USB0I0, USB1_USB1I1, USB1_USB1I0 } }, | ||
279 | { 0xe69500a8, 0xe69500e8, 8, /* IMR10A3 / IMCR10A3 */ | ||
280 | { USBHSDMAC1_USHDMI, 0, 0, 0, | ||
281 | 0, 0, 0, 0 } }, | ||
282 | }; | ||
283 | |||
284 | static struct intc_prio_reg intca_prio_registers[] __initdata = { | ||
285 | { 0xe6900010, 0, 32, 4, /* INTPRI00A */ | ||
286 | { IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A } }, | ||
287 | { 0xe6900014, 0, 32, 4, /* INTPRI10A */ | ||
288 | { IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A } }, | ||
289 | { 0xe6900018, 0, 32, 4, /* INTPRI20A */ | ||
290 | { IRQ16A, IRQ17A, IRQ18A, IRQ19A, IRQ20A, IRQ21A, IRQ22A, IRQ23A } }, | ||
291 | { 0xe690001c, 0, 32, 4, /* INTPRI30A */ | ||
292 | { IRQ24A, IRQ25A, IRQ26A, IRQ27A, IRQ28A, IRQ29A, IRQ30A, IRQ31A } }, | ||
293 | |||
294 | { 0xe6940000, 0, 16, 4, /* IPRAA */ { DMAC3_1, DMAC3_2, CMT2, 0 } }, | ||
295 | { 0xe6940004, 0, 16, 4, /* IPRBA */ { IRDA, 0, BBIF1, BBIF2 } }, | ||
296 | { 0xe6940008, 0, 16, 4, /* IPRCA */ { 0, CRYPT_STD, | ||
297 | CMT1_CMT11, AP_ARM1 } }, | ||
298 | { 0xe694000c, 0, 16, 4, /* IPRDA */ { 0, 0, | ||
299 | CMT1_CMT12, 0 } }, | ||
300 | { 0xe6940010, 0, 16, 4, /* IPREA */ { DMAC1_1, MFI_MFIS, | ||
301 | MFI_MFIM, 0 } }, | ||
302 | { 0xe6940014, 0, 16, 4, /* IPRFA */ { KEYSC_KEY, DMAC1_2, | ||
303 | _3DG_SGX540, CMT1_CMT10 } }, | ||
304 | { 0xe6940018, 0, 16, 4, /* IPRGA */ { SCIFA0, SCIFA1, | ||
305 | SCIFA2, SCIFA3 } }, | ||
306 | { 0xe694001c, 0, 16, 4, /* IPRGH */ { MSIOF2, USBHSDMAC0_USHDMI, | ||
307 | FLCTL, SDHI0 } }, | ||
308 | { 0xe6940020, 0, 16, 4, /* IPRIA */ { MSIOF1, SCIFA4, | ||
309 | 0/* MSU */, IIC1 } }, | ||
310 | { 0xe6940024, 0, 16, 4, /* IPRJA */ { DMAC2_1, DMAC2_2, | ||
311 | 0/* MSUG */, TTI20 } }, | ||
312 | { 0xe6940028, 0, 16, 4, /* IPRKA */ { 0, CMT1_CMT13, IRREM, SDHI1 } }, | ||
313 | { 0xe694002c, 0, 16, 4, /* IPRLA */ { TPU0, 0, 0, 0 } }, | ||
314 | { 0xe6940030, 0, 16, 4, /* IPRMA */ { 0, CMT3, 0, RWDT0 } }, | ||
315 | { 0xe6940034, 0, 16, 4, /* IPRNA */ { SCIFB, SCIFA5, 0, DDM } }, | ||
316 | { 0xe6940038, 0, 16, 4, /* IPROA */ { 0, 0, DIRC, SDHI2 } }, | ||
317 | { 0xe6950000, 0, 16, 4, /* IPRAA3 */ { SHWYSTAT, 0, 0, 0 } }, | ||
318 | { 0xe6950024, 0, 16, 4, /* IPRJA3 */ { 0, 0, 0, HDMI } }, | ||
319 | { 0xe6950028, 0, 16, 4, /* IPRKA3 */ { SPU2, 0, FSI, FMSI } }, | ||
320 | { 0xe695002c, 0, 16, 4, /* IPRLA3 */ { 0, 0, 0, MIPI_HSI } }, | ||
321 | { 0xe6950030, 0, 16, 4, /* IPRMA3 */ { IPMMU_IPMMUD, 0, | ||
322 | CEC_1, CEC_2 } }, | ||
323 | { 0xe6950034, 0, 16, 4, /* IPRNA3 */ { AP_ARM2, 0, 0, 0 } }, | ||
324 | { 0xe6950038, 0, 16, 4, /* IPROA3 */ { MFIS2, CPORTR2S, | ||
325 | CMT14, CMT15 } }, | ||
326 | { 0xe694003c, 0, 16, 4, /* IPRPA3 */ { 0, 0, | ||
327 | MMC_MMC_ERR, MMC_MMC_NOR } }, | ||
328 | { 0xe6940040, 0, 16, 4, /* IPRQA3 */ { IIC4_ALI4, IIC4_TACKI4, | ||
329 | IIC4_WAITI4, IIC4_DTEI4 } }, | ||
330 | { 0xe6940044, 0, 16, 4, /* IPRRA3 */ { IIC3_ALI3, IIC3_TACKI3, | ||
331 | IIC3_WAITI3, IIC3_DTEI3 } }, | ||
332 | { 0xe6940048, 0, 16, 4, /* IPRSA3 */ { 0/*ERI*/, 0/*RXI*/, | ||
333 | 0/*TXI*/, 0/*TEI*/} }, | ||
334 | { 0xe694004c, 0, 16, 4, /* IPRTA3 */ { USB0_USB0I1, USB0_USB0I0, | ||
335 | USB1_USB1I1, USB1_USB1I0 } }, | ||
336 | { 0xe6940050, 0, 16, 4, /* IPRUA3 */ { USBHSDMAC1_USHDMI, 0, 0, 0 } }, | ||
337 | }; | ||
338 | |||
339 | static struct intc_sense_reg intca_sense_registers[] __initdata = { | ||
340 | { 0xe6900000, 32, 4, /* ICR1A */ | ||
341 | { IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A } }, | ||
342 | { 0xe6900004, 32, 4, /* ICR2A */ | ||
343 | { IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A } }, | ||
344 | { 0xe6900008, 32, 4, /* ICR3A */ | ||
345 | { IRQ16A, IRQ17A, IRQ18A, IRQ19A, IRQ20A, IRQ21A, IRQ22A, IRQ23A } }, | ||
346 | { 0xe690000c, 32, 4, /* ICR4A */ | ||
347 | { IRQ24A, IRQ25A, IRQ26A, IRQ27A, IRQ28A, IRQ29A, IRQ30A, IRQ31A } }, | ||
348 | }; | ||
349 | |||
350 | static struct intc_mask_reg intca_ack_registers[] __initdata = { | ||
351 | { 0xe6900020, 0, 8, /* INTREQ00A */ | ||
352 | { IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A } }, | ||
353 | { 0xe6900024, 0, 8, /* INTREQ10A */ | ||
354 | { IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A } }, | ||
355 | { 0xe6900028, 0, 8, /* INTREQ20A */ | ||
356 | { IRQ16A, IRQ17A, IRQ18A, IRQ19A, IRQ20A, IRQ21A, IRQ22A, IRQ23A } }, | ||
357 | { 0xe690002c, 0, 8, /* INTREQ30A */ | ||
358 | { IRQ24A, IRQ25A, IRQ26A, IRQ27A, IRQ28A, IRQ29A, IRQ30A, IRQ31A } }, | ||
359 | }; | ||
360 | |||
361 | static DECLARE_INTC_DESC_ACK(intca_desc, "sh7372-intca", | ||
362 | intca_vectors, intca_groups, | ||
363 | intca_mask_registers, intca_prio_registers, | ||
364 | intca_sense_registers, intca_ack_registers); | ||
365 | |||
366 | void __init sh7372_init_irq(void) | ||
367 | { | ||
368 | register_intc_controller(&intca_desc); | ||
369 | } | ||
diff --git a/arch/arm/mach-shmobile/intc-sh7377.c b/arch/arm/mach-shmobile/intc-sh7377.c new file mode 100644 index 00000000000..125021cfba5 --- /dev/null +++ b/arch/arm/mach-shmobile/intc-sh7377.c | |||
@@ -0,0 +1,350 @@ | |||
1 | /* | ||
2 | * sh7377 processor support - INTC hardware block | ||
3 | * | ||
4 | * Copyright (C) 2010 Magnus Damm | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; version 2 of the License. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
18 | */ | ||
19 | #include <linux/kernel.h> | ||
20 | #include <linux/init.h> | ||
21 | #include <linux/interrupt.h> | ||
22 | #include <linux/irq.h> | ||
23 | #include <linux/io.h> | ||
24 | #include <linux/sh_intc.h> | ||
25 | #include <asm/mach-types.h> | ||
26 | #include <asm/mach/arch.h> | ||
27 | |||
28 | enum { | ||
29 | UNUSED_INTCA = 0, | ||
30 | |||
31 | /* interrupt sources INTCA */ | ||
32 | IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A, | ||
33 | IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A, | ||
34 | IRQ16A, IRQ17A, IRQ18A, IRQ19A, IRQ20A, IRQ21A, IRQ22A, IRQ23A, | ||
35 | IRQ24A, IRQ25A, IRQ26A, IRQ27A, IRQ28A, IRQ29A, IRQ30A, IRQ31A, | ||
36 | DIRC, | ||
37 | _2DG, | ||
38 | CRYPT_STD, | ||
39 | IIC1_ALI1, IIC1_TACKI1, IIC1_WAITI1, IIC1_DTEI1, | ||
40 | AP_ARM_IRQPMU, AP_ARM_COMMTX, AP_ARM_COMMRX, | ||
41 | MFI_MFIM, MFI_MFIS, | ||
42 | BBIF1, BBIF2, | ||
43 | USBDMAC_USHDMI, | ||
44 | USBHS_USHI0, USBHS_USHI1, | ||
45 | _3DG_SGX540, | ||
46 | CMT1_CMT10, CMT1_CMT11, CMT1_CMT12, CMT1_CMT13, CMT2, CMT3, | ||
47 | KEYSC_KEY, | ||
48 | SCIFA0, SCIFA1, SCIFA2, SCIFA3, | ||
49 | MSIOF2, MSIOF1, | ||
50 | SCIFA4, SCIFA5, SCIFB, | ||
51 | FLCTL_FLSTEI, FLCTL_FLTENDI, FLCTL_FLTREQ0I, FLCTL_FLTREQ1I, | ||
52 | SDHI0_SDHI0I0, SDHI0_SDHI0I1, SDHI0_SDHI0I2, SDHI0_SDHI0I3, | ||
53 | SDHI1_SDHI1I0, SDHI1_SDHI1I1, SDHI1_SDHI1I2, SDHI1_SDHI1I3, | ||
54 | MSU_MSU, MSU_MSU2, | ||
55 | IRREM, | ||
56 | MSUG, | ||
57 | IRDA, | ||
58 | TPU0, TPU1, TPU2, TPU3, TPU4, | ||
59 | LCRC, | ||
60 | PINTCA_PINT1, PINTCA_PINT2, | ||
61 | TTI20, | ||
62 | MISTY, | ||
63 | DDM, | ||
64 | RWDT0, RWDT1, | ||
65 | DMAC_1_DEI0, DMAC_1_DEI1, DMAC_1_DEI2, DMAC_1_DEI3, | ||
66 | DMAC_2_DEI4, DMAC_2_DEI5, DMAC_2_DADERR, | ||
67 | DMAC2_1_DEI0, DMAC2_1_DEI1, DMAC2_1_DEI2, DMAC2_1_DEI3, | ||
68 | DMAC2_2_DEI4, DMAC2_2_DEI5, DMAC2_2_DADERR, | ||
69 | DMAC3_1_DEI0, DMAC3_1_DEI1, DMAC3_1_DEI2, DMAC3_1_DEI3, | ||
70 | DMAC3_2_DEI4, DMAC3_2_DEI5, DMAC3_2_DADERR, | ||
71 | SHWYSTAT_RT, SHWYSTAT_HS, SHWYSTAT_COM, | ||
72 | ICUSB_ICUSB0, ICUSB_ICUSB1, | ||
73 | ICUDMC_ICUDMC1, ICUDMC_ICUDMC2, | ||
74 | SPU2_SPU0, SPU2_SPU1, | ||
75 | FSI, | ||
76 | FMSI, | ||
77 | SCUV, | ||
78 | IPMMU_IPMMUB, | ||
79 | AP_ARM_CTIIRQ, AP_ARM_DMAEXTERRIRQ, AP_ARM_DMAIRQ, AP_ARM_DMASIRQ, | ||
80 | MFIS2, | ||
81 | CPORTR2S, | ||
82 | CMT14, CMT15, | ||
83 | SCIFA6, | ||
84 | |||
85 | /* interrupt groups INTCA */ | ||
86 | DMAC_1, DMAC_2, DMAC2_1, DMAC2_2, DMAC3_1, DMAC3_2, SHWYSTAT, | ||
87 | AP_ARM1, AP_ARM2, USBHS, SPU2, FLCTL, IIC1, SDHI0, SDHI1, | ||
88 | ICUSB, ICUDMC | ||
89 | }; | ||
90 | |||
91 | static struct intc_vect intca_vectors[] = { | ||
92 | INTC_VECT(IRQ0A, 0x0200), INTC_VECT(IRQ1A, 0x0220), | ||
93 | INTC_VECT(IRQ2A, 0x0240), INTC_VECT(IRQ3A, 0x0260), | ||
94 | INTC_VECT(IRQ4A, 0x0280), INTC_VECT(IRQ5A, 0x02a0), | ||
95 | INTC_VECT(IRQ6A, 0x02c0), INTC_VECT(IRQ7A, 0x02e0), | ||
96 | INTC_VECT(IRQ8A, 0x0300), INTC_VECT(IRQ9A, 0x0320), | ||
97 | INTC_VECT(IRQ10A, 0x0340), INTC_VECT(IRQ11A, 0x0360), | ||
98 | INTC_VECT(IRQ12A, 0x0380), INTC_VECT(IRQ13A, 0x03a0), | ||
99 | INTC_VECT(IRQ14A, 0x03c0), INTC_VECT(IRQ15A, 0x03e0), | ||
100 | INTC_VECT(IRQ16A, 0x3200), INTC_VECT(IRQ17A, 0x3220), | ||
101 | INTC_VECT(IRQ18A, 0x3240), INTC_VECT(IRQ19A, 0x3260), | ||
102 | INTC_VECT(IRQ20A, 0x3280), INTC_VECT(IRQ31A, 0x32a0), | ||
103 | INTC_VECT(IRQ22A, 0x32c0), INTC_VECT(IRQ23A, 0x32e0), | ||
104 | INTC_VECT(IRQ24A, 0x3300), INTC_VECT(IRQ25A, 0x3320), | ||
105 | INTC_VECT(IRQ26A, 0x3340), INTC_VECT(IRQ27A, 0x3360), | ||
106 | INTC_VECT(IRQ28A, 0x3380), INTC_VECT(IRQ29A, 0x33a0), | ||
107 | INTC_VECT(IRQ30A, 0x33c0), INTC_VECT(IRQ31A, 0x33e0), | ||
108 | INTC_VECT(DIRC, 0x0560), | ||
109 | INTC_VECT(_2DG, 0x05e0), | ||
110 | INTC_VECT(CRYPT_STD, 0x0700), | ||
111 | INTC_VECT(IIC1_ALI1, 0x0780), INTC_VECT(IIC1_TACKI1, 0x07a0), | ||
112 | INTC_VECT(IIC1_WAITI1, 0x07c0), INTC_VECT(IIC1_DTEI1, 0x07e0), | ||
113 | INTC_VECT(AP_ARM_IRQPMU, 0x0800), INTC_VECT(AP_ARM_COMMTX, 0x0840), | ||
114 | INTC_VECT(AP_ARM_COMMRX, 0x0860), | ||
115 | INTC_VECT(MFI_MFIM, 0x0900), INTC_VECT(MFI_MFIS, 0x0920), | ||
116 | INTC_VECT(BBIF1, 0x0940), INTC_VECT(BBIF2, 0x0960), | ||
117 | INTC_VECT(USBDMAC_USHDMI, 0x0a00), | ||
118 | INTC_VECT(USBHS_USHI0, 0x0a20), INTC_VECT(USBHS_USHI1, 0x0a40), | ||
119 | INTC_VECT(_3DG_SGX540, 0x0a60), | ||
120 | INTC_VECT(CMT1_CMT10, 0x0b00), INTC_VECT(CMT1_CMT11, 0x0b20), | ||
121 | INTC_VECT(CMT1_CMT12, 0x0b40), INTC_VECT(CMT1_CMT13, 0x0b60), | ||
122 | INTC_VECT(CMT2, 0x0b80), INTC_VECT(CMT3, 0x0ba0), | ||
123 | INTC_VECT(KEYSC_KEY, 0x0be0), | ||
124 | INTC_VECT(SCIFA0, 0x0c00), INTC_VECT(SCIFA1, 0x0c20), | ||
125 | INTC_VECT(SCIFA2, 0x0c40), INTC_VECT(SCIFA3, 0x0c60), | ||
126 | INTC_VECT(MSIOF2, 0x0c80), INTC_VECT(MSIOF1, 0x0d00), | ||
127 | INTC_VECT(SCIFA4, 0x0d20), INTC_VECT(SCIFA5, 0x0d40), | ||
128 | INTC_VECT(SCIFB, 0x0d60), | ||
129 | INTC_VECT(FLCTL_FLSTEI, 0x0d80), INTC_VECT(FLCTL_FLTENDI, 0x0da0), | ||
130 | INTC_VECT(FLCTL_FLTREQ0I, 0x0dc0), INTC_VECT(FLCTL_FLTREQ1I, 0x0de0), | ||
131 | INTC_VECT(SDHI0_SDHI0I0, 0x0e00), INTC_VECT(SDHI0_SDHI0I1, 0x0e20), | ||
132 | INTC_VECT(SDHI0_SDHI0I2, 0x0e40), INTC_VECT(SDHI0_SDHI0I3, 0x0e60), | ||
133 | INTC_VECT(SDHI1_SDHI1I0, 0x0e80), INTC_VECT(SDHI1_SDHI1I1, 0x0ea0), | ||
134 | INTC_VECT(SDHI1_SDHI1I2, 0x0ec0), INTC_VECT(SDHI1_SDHI1I3, 0x0ee0), | ||
135 | INTC_VECT(MSU_MSU, 0x0f20), INTC_VECT(MSU_MSU2, 0x0f40), | ||
136 | INTC_VECT(IRREM, 0x0f60), | ||
137 | INTC_VECT(MSUG, 0x0fa0), | ||
138 | INTC_VECT(IRDA, 0x0480), | ||
139 | INTC_VECT(TPU0, 0x04a0), INTC_VECT(TPU1, 0x04c0), | ||
140 | INTC_VECT(TPU2, 0x04e0), INTC_VECT(TPU3, 0x0500), | ||
141 | INTC_VECT(TPU4, 0x0520), | ||
142 | INTC_VECT(LCRC, 0x0540), | ||
143 | INTC_VECT(PINTCA_PINT1, 0x1000), INTC_VECT(PINTCA_PINT2, 0x1020), | ||
144 | INTC_VECT(TTI20, 0x1100), | ||
145 | INTC_VECT(MISTY, 0x1120), | ||
146 | INTC_VECT(DDM, 0x1140), | ||
147 | INTC_VECT(RWDT0, 0x1280), INTC_VECT(RWDT1, 0x12a0), | ||
148 | INTC_VECT(DMAC_1_DEI0, 0x2000), INTC_VECT(DMAC_1_DEI1, 0x2020), | ||
149 | INTC_VECT(DMAC_1_DEI2, 0x2040), INTC_VECT(DMAC_1_DEI3, 0x2060), | ||
150 | INTC_VECT(DMAC_2_DEI4, 0x2080), INTC_VECT(DMAC_2_DEI5, 0x20a0), | ||
151 | INTC_VECT(DMAC_2_DADERR, 0x20c0), | ||
152 | INTC_VECT(DMAC2_1_DEI0, 0x2100), INTC_VECT(DMAC2_1_DEI1, 0x2120), | ||
153 | INTC_VECT(DMAC2_1_DEI2, 0x2140), INTC_VECT(DMAC2_1_DEI3, 0x2160), | ||
154 | INTC_VECT(DMAC2_2_DEI4, 0x2180), INTC_VECT(DMAC2_2_DEI5, 0x21a0), | ||
155 | INTC_VECT(DMAC2_2_DADERR, 0x21c0), | ||
156 | INTC_VECT(DMAC3_1_DEI0, 0x2200), INTC_VECT(DMAC3_1_DEI1, 0x2220), | ||
157 | INTC_VECT(DMAC3_1_DEI2, 0x2240), INTC_VECT(DMAC3_1_DEI3, 0x2260), | ||
158 | INTC_VECT(DMAC3_2_DEI4, 0x2280), INTC_VECT(DMAC3_2_DEI5, 0x22a0), | ||
159 | INTC_VECT(DMAC3_2_DADERR, 0x22c0), | ||
160 | INTC_VECT(SHWYSTAT_RT, 0x1300), INTC_VECT(SHWYSTAT_HS, 0x1d20), | ||
161 | INTC_VECT(SHWYSTAT_COM, 0x1340), | ||
162 | INTC_VECT(ICUSB_ICUSB0, 0x1700), INTC_VECT(ICUSB_ICUSB1, 0x1720), | ||
163 | INTC_VECT(ICUDMC_ICUDMC1, 0x1780), INTC_VECT(ICUDMC_ICUDMC2, 0x17a0), | ||
164 | INTC_VECT(SPU2_SPU0, 0x1800), INTC_VECT(SPU2_SPU1, 0x1820), | ||
165 | INTC_VECT(FSI, 0x1840), | ||
166 | INTC_VECT(FMSI, 0x1860), | ||
167 | INTC_VECT(SCUV, 0x1880), | ||
168 | INTC_VECT(IPMMU_IPMMUB, 0x1900), | ||
169 | INTC_VECT(AP_ARM_CTIIRQ, 0x1980), | ||
170 | INTC_VECT(AP_ARM_DMAEXTERRIRQ, 0x19a0), | ||
171 | INTC_VECT(AP_ARM_DMAIRQ, 0x19c0), | ||
172 | INTC_VECT(AP_ARM_DMASIRQ, 0x19e0), | ||
173 | INTC_VECT(MFIS2, 0x1a00), | ||
174 | INTC_VECT(CPORTR2S, 0x1a20), | ||
175 | INTC_VECT(CMT14, 0x1a40), INTC_VECT(CMT15, 0x1a60), | ||
176 | INTC_VECT(SCIFA6, 0x1a80), | ||
177 | }; | ||
178 | |||
179 | static struct intc_group intca_groups[] __initdata = { | ||
180 | INTC_GROUP(DMAC_1, DMAC_1_DEI0, | ||
181 | DMAC_1_DEI1, DMAC_1_DEI2, DMAC_1_DEI3), | ||
182 | INTC_GROUP(DMAC_2, DMAC_2_DEI4, | ||
183 | DMAC_2_DEI5, DMAC_2_DADERR), | ||
184 | INTC_GROUP(DMAC2_1, DMAC2_1_DEI0, | ||
185 | DMAC2_1_DEI1, DMAC2_1_DEI2, DMAC2_1_DEI3), | ||
186 | INTC_GROUP(DMAC2_2, DMAC2_2_DEI4, | ||
187 | DMAC2_2_DEI5, DMAC2_2_DADERR), | ||
188 | INTC_GROUP(DMAC3_1, DMAC3_1_DEI0, | ||
189 | DMAC3_1_DEI1, DMAC3_1_DEI2, DMAC3_1_DEI3), | ||
190 | INTC_GROUP(DMAC3_2, DMAC3_2_DEI4, | ||
191 | DMAC3_2_DEI5, DMAC3_2_DADERR), | ||
192 | INTC_GROUP(AP_ARM1, AP_ARM_IRQPMU, AP_ARM_COMMTX, AP_ARM_COMMTX), | ||
193 | INTC_GROUP(USBHS, USBHS_USHI0, USBHS_USHI1), | ||
194 | INTC_GROUP(SPU2, SPU2_SPU0, SPU2_SPU1), | ||
195 | INTC_GROUP(FLCTL, FLCTL_FLSTEI, FLCTL_FLTENDI, | ||
196 | FLCTL_FLTREQ0I, FLCTL_FLTREQ1I), | ||
197 | INTC_GROUP(IIC1, IIC1_ALI1, IIC1_TACKI1, IIC1_WAITI1, IIC1_DTEI1), | ||
198 | INTC_GROUP(SDHI0, SDHI0_SDHI0I0, SDHI0_SDHI0I1, | ||
199 | SDHI0_SDHI0I2, SDHI0_SDHI0I3), | ||
200 | INTC_GROUP(SDHI1, SDHI1_SDHI1I0, SDHI1_SDHI1I1, | ||
201 | SDHI1_SDHI1I2, SDHI1_SDHI1I3), | ||
202 | INTC_GROUP(SHWYSTAT, SHWYSTAT_RT, SHWYSTAT_HS, SHWYSTAT_COM), | ||
203 | INTC_GROUP(ICUSB, ICUSB_ICUSB0, ICUSB_ICUSB1), | ||
204 | INTC_GROUP(ICUDMC, ICUDMC_ICUDMC1, ICUDMC_ICUDMC2), | ||
205 | }; | ||
206 | |||
207 | static struct intc_mask_reg intca_mask_registers[] = { | ||
208 | { 0xe6900040, 0xe6900060, 8, /* INTMSK00A / INTMSKCLR00A */ | ||
209 | { IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A } }, | ||
210 | { 0xe6900044, 0xe6900064, 8, /* INTMSK10A / INTMSKCLR10A */ | ||
211 | { IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A } }, | ||
212 | { 0xe6900048, 0xe6900068, 8, /* INTMSK20A / INTMSKCLR20A */ | ||
213 | { IRQ16A, IRQ17A, IRQ18A, IRQ19A, IRQ20A, IRQ21A, IRQ22A, IRQ23A } }, | ||
214 | { 0xe690004c, 0xe690006c, 8, /* INTMSK30A / INTMSKCLR30A */ | ||
215 | { IRQ24A, IRQ25A, IRQ26A, IRQ27A, IRQ28A, IRQ29A, IRQ30A, IRQ31A } }, | ||
216 | |||
217 | { 0xe6940080, 0xe69400c0, 8, /* IMR0A / IMCR0A */ | ||
218 | { DMAC2_1_DEI3, DMAC2_1_DEI2, DMAC2_1_DEI1, DMAC2_1_DEI0, | ||
219 | AP_ARM_IRQPMU, 0, AP_ARM_COMMTX, AP_ARM_COMMRX } }, | ||
220 | { 0xe6940084, 0xe69400c4, 8, /* IMR1A / IMCR1A */ | ||
221 | { _2DG, CRYPT_STD, DIRC, 0, | ||
222 | DMAC_1_DEI3, DMAC_1_DEI2, DMAC_1_DEI1, DMAC_1_DEI0 } }, | ||
223 | { 0xe6940088, 0xe69400c8, 8, /* IMR2A / IMCR2A */ | ||
224 | { PINTCA_PINT1, PINTCA_PINT2, 0, 0, | ||
225 | BBIF1, BBIF2, MFI_MFIS, MFI_MFIM } }, | ||
226 | { 0xe694008c, 0xe69400cc, 8, /* IMR3A / IMCR3A */ | ||
227 | { DMAC3_1_DEI3, DMAC3_1_DEI2, DMAC3_1_DEI1, DMAC3_1_DEI0, | ||
228 | DMAC3_2_DADERR, DMAC3_2_DEI5, DMAC3_2_DEI4, IRDA } }, | ||
229 | { 0xe6940090, 0xe69400d0, 8, /* IMR4A / IMCR4A */ | ||
230 | { DDM, 0, 0, 0, | ||
231 | 0, 0, 0, 0 } }, | ||
232 | { 0xe6940094, 0xe69400d4, 8, /* IMR5A / IMCR5A */ | ||
233 | { KEYSC_KEY, DMAC_2_DADERR, DMAC_2_DEI5, DMAC_2_DEI4, | ||
234 | SCIFA3, SCIFA2, SCIFA1, SCIFA0 } }, | ||
235 | { 0xe6940098, 0xe69400d8, 8, /* IMR6A / IMCR6A */ | ||
236 | { SCIFB, SCIFA5, SCIFA4, MSIOF1, | ||
237 | 0, 0, MSIOF2, 0 } }, | ||
238 | { 0xe694009c, 0xe69400dc, 8, /* IMR7A / IMCR7A */ | ||
239 | { SDHI0_SDHI0I3, SDHI0_SDHI0I2, SDHI0_SDHI0I1, SDHI0_SDHI0I0, | ||
240 | FLCTL_FLTREQ1I, FLCTL_FLTREQ0I, FLCTL_FLTENDI, FLCTL_FLSTEI } }, | ||
241 | { 0xe69400a0, 0xe69400e0, 8, /* IMR8A / IMCR8A */ | ||
242 | { SDHI1_SDHI1I3, SDHI1_SDHI1I2, SDHI1_SDHI1I1, SDHI1_SDHI1I0, | ||
243 | TTI20, USBDMAC_USHDMI, 0, MSUG } }, | ||
244 | { 0xe69400a4, 0xe69400e4, 8, /* IMR9A / IMCR9A */ | ||
245 | { CMT1_CMT13, CMT1_CMT12, CMT1_CMT11, CMT1_CMT10, | ||
246 | CMT2, USBHS_USHI1, USBHS_USHI0, _3DG_SGX540 } }, | ||
247 | { 0xe69400a8, 0xe69400e8, 8, /* IMR10A / IMCR10A */ | ||
248 | { 0, DMAC2_2_DADERR, DMAC2_2_DEI5, DMAC2_2_DEI4, | ||
249 | 0, 0, 0, 0 } }, | ||
250 | { 0xe69400ac, 0xe69400ec, 8, /* IMR11A / IMCR11A */ | ||
251 | { IIC1_DTEI1, IIC1_WAITI1, IIC1_TACKI1, IIC1_ALI1, | ||
252 | LCRC, MSU_MSU2, IRREM, MSU_MSU } }, | ||
253 | { 0xe69400b0, 0xe69400f0, 8, /* IMR12A / IMCR12A */ | ||
254 | { 0, 0, TPU0, TPU1, | ||
255 | TPU2, TPU3, TPU4, 0 } }, | ||
256 | { 0xe69400b4, 0xe69400f4, 8, /* IMR13A / IMCR13A */ | ||
257 | { 0, 0, 0, 0, | ||
258 | MISTY, CMT3, RWDT1, RWDT0 } }, | ||
259 | { 0xe6950080, 0xe69500c0, 8, /* IMR0A3 / IMCR0A3 */ | ||
260 | { SHWYSTAT_RT, SHWYSTAT_HS, SHWYSTAT_COM, 0, | ||
261 | 0, 0, 0, 0 } }, | ||
262 | { 0xe6950090, 0xe69500d0, 8, /* IMR4A3 / IMCR4A3 */ | ||
263 | { ICUSB_ICUSB0, ICUSB_ICUSB1, 0, 0, | ||
264 | ICUDMC_ICUDMC1, ICUDMC_ICUDMC2, 0, 0 } }, | ||
265 | { 0xe6950094, 0xe69500d4, 8, /* IMR5A3 / IMCR5A3 */ | ||
266 | { SPU2_SPU0, SPU2_SPU1, FSI, FMSI, | ||
267 | SCUV, 0, 0, 0 } }, | ||
268 | { 0xe6950098, 0xe69500d8, 8, /* IMR6A3 / IMCR6A3 */ | ||
269 | { IPMMU_IPMMUB, 0, 0, 0, | ||
270 | AP_ARM_CTIIRQ, AP_ARM_DMAEXTERRIRQ, | ||
271 | AP_ARM_DMAIRQ, AP_ARM_DMASIRQ } }, | ||
272 | { 0xe695009c, 0xe69500dc, 8, /* IMR7A3 / IMCR7A3 */ | ||
273 | { MFIS2, CPORTR2S, CMT14, CMT15, | ||
274 | SCIFA6, 0, 0, 0 } }, | ||
275 | }; | ||
276 | |||
277 | static struct intc_prio_reg intca_prio_registers[] = { | ||
278 | { 0xe6900010, 0, 32, 4, /* INTPRI00A */ | ||
279 | { IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A } }, | ||
280 | { 0xe6900014, 0, 32, 4, /* INTPRI10A */ | ||
281 | { IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A } }, | ||
282 | { 0xe6900018, 0, 32, 4, /* INTPRI10A */ | ||
283 | { IRQ16A, IRQ17A, IRQ18A, IRQ19A, IRQ20A, IRQ21A, IRQ22A, IRQ23A } }, | ||
284 | { 0xe690001c, 0, 32, 4, /* INTPRI30A */ | ||
285 | { IRQ24A, IRQ25A, IRQ26A, IRQ27A, IRQ28A, IRQ29A, IRQ30A, IRQ31A } }, | ||
286 | |||
287 | { 0xe6940000, 0, 16, 4, /* IPRAA */ { DMAC3_1, DMAC3_2, CMT2, LCRC } }, | ||
288 | { 0xe6940004, 0, 16, 4, /* IPRBA */ { IRDA, 0, BBIF1, BBIF2 } }, | ||
289 | { 0xe6940008, 0, 16, 4, /* IPRCA */ { _2DG, CRYPT_STD, | ||
290 | CMT1_CMT11, AP_ARM1 } }, | ||
291 | { 0xe694000c, 0, 16, 4, /* IPRDA */ { PINTCA_PINT1, PINTCA_PINT2, | ||
292 | CMT1_CMT12, TPU4 } }, | ||
293 | { 0xe6940010, 0, 16, 4, /* IPREA */ { DMAC_1, MFI_MFIS, | ||
294 | MFI_MFIM, USBHS } }, | ||
295 | { 0xe6940014, 0, 16, 4, /* IPRFA */ { KEYSC_KEY, DMAC_2, | ||
296 | _3DG_SGX540, CMT1_CMT10 } }, | ||
297 | { 0xe6940018, 0, 16, 4, /* IPRGA */ { SCIFA0, SCIFA1, | ||
298 | SCIFA2, SCIFA3 } }, | ||
299 | { 0xe694001c, 0, 16, 4, /* IPRGH */ { MSIOF2, USBDMAC_USHDMI, | ||
300 | FLCTL, SDHI0 } }, | ||
301 | { 0xe6940020, 0, 16, 4, /* IPRIA */ { MSIOF1, SCIFA4, MSU_MSU, IIC1 } }, | ||
302 | { 0xe6940024, 0, 16, 4, /* IPRJA */ { DMAC2_1, DMAC2_2, MSUG, TTI20 } }, | ||
303 | { 0xe6940028, 0, 16, 4, /* IPRKA */ { 0, CMT1_CMT13, IRREM, SDHI1 } }, | ||
304 | { 0xe694002c, 0, 16, 4, /* IPRLA */ { TPU0, TPU1, TPU2, TPU3 } }, | ||
305 | { 0xe6940030, 0, 16, 4, /* IPRMA */ { MISTY, CMT3, RWDT1, RWDT0 } }, | ||
306 | { 0xe6940034, 0, 16, 4, /* IPRNA */ { SCIFB, SCIFA5, 0, DDM } }, | ||
307 | { 0xe6940038, 0, 16, 4, /* IPROA */ { 0, 0, DIRC, 0 } }, | ||
308 | { 0xe6950000, 0, 16, 4, /* IPRAA3 */ { SHWYSTAT, 0, 0, 0 } }, | ||
309 | { 0xe6950020, 0, 16, 4, /* IPRIA3 */ { ICUSB, 0, 0, 0 } }, | ||
310 | { 0xe6950024, 0, 16, 4, /* IPRJA3 */ { ICUDMC, 0, 0, 0 } }, | ||
311 | { 0xe6950028, 0, 16, 4, /* IPRKA3 */ { SPU2, 0, FSI, FMSI } }, | ||
312 | { 0xe695002c, 0, 16, 4, /* IPRLA3 */ { SCUV, 0, 0, 0 } }, | ||
313 | { 0xe6950030, 0, 16, 4, /* IPRMA3 */ { IPMMU_IPMMUB, 0, 0, 0 } }, | ||
314 | { 0xe6950034, 0, 16, 4, /* IPRNA3 */ { AP_ARM2, 0, 0, 0 } }, | ||
315 | { 0xe6950038, 0, 16, 4, /* IPROA3 */ { MFIS2, CPORTR2S, | ||
316 | CMT14, CMT15 } }, | ||
317 | { 0xe694003c, 0, 16, 4, /* IPRPA3 */ { SCIFA6, 0, 0, 0 } }, | ||
318 | }; | ||
319 | |||
320 | static struct intc_sense_reg intca_sense_registers[] __initdata = { | ||
321 | { 0xe6900000, 16, 2, /* ICR1A */ | ||
322 | { IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A } }, | ||
323 | { 0xe6900004, 16, 2, /* ICR2A */ | ||
324 | { IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A } }, | ||
325 | { 0xe6900008, 16, 2, /* ICR3A */ | ||
326 | { IRQ16A, IRQ17A, IRQ18A, IRQ19A, IRQ20A, IRQ21A, IRQ22A, IRQ23A } }, | ||
327 | { 0xe690000c, 16, 2, /* ICR4A */ | ||
328 | { IRQ24A, IRQ25A, IRQ26A, IRQ27A, IRQ28A, IRQ29A, IRQ30A, IRQ31A } }, | ||
329 | }; | ||
330 | |||
331 | static struct intc_mask_reg intca_ack_registers[] __initdata = { | ||
332 | { 0xe6900020, 0, 8, /* INTREQ00A */ | ||
333 | { IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A } }, | ||
334 | { 0xe6900024, 0, 8, /* INTREQ10A */ | ||
335 | { IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A } }, | ||
336 | { 0xe6900028, 0, 8, /* INTREQ20A */ | ||
337 | { IRQ16A, IRQ17A, IRQ18A, IRQ19A, IRQ20A, IRQ21A, IRQ22A, IRQ23A } }, | ||
338 | { 0xe690002c, 0, 8, /* INTREQ30A */ | ||
339 | { IRQ24A, IRQ25A, IRQ26A, IRQ27A, IRQ28A, IRQ29A, IRQ30A, IRQ31A } }, | ||
340 | }; | ||
341 | |||
342 | static DECLARE_INTC_DESC_ACK(intca_desc, "sh7377-intca", | ||
343 | intca_vectors, intca_groups, | ||
344 | intca_mask_registers, intca_prio_registers, | ||
345 | intca_sense_registers, intca_ack_registers); | ||
346 | |||
347 | void __init sh7377_init_irq(void) | ||
348 | { | ||
349 | register_intc_controller(&intca_desc); | ||
350 | } | ||
diff --git a/arch/arm/mach-shmobile/pfc-sh7367.c b/arch/arm/mach-shmobile/pfc-sh7367.c new file mode 100644 index 00000000000..128555e76e4 --- /dev/null +++ b/arch/arm/mach-shmobile/pfc-sh7367.c | |||
@@ -0,0 +1,1801 @@ | |||
1 | /* | ||
2 | * sh7367 processor support - PFC hardware block | ||
3 | * | ||
4 | * Copyright (C) 2010 Magnus Damm | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; version 2 of the License. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
18 | */ | ||
19 | #include <linux/init.h> | ||
20 | #include <linux/kernel.h> | ||
21 | #include <linux/gpio.h> | ||
22 | #include <mach/sh7367.h> | ||
23 | |||
24 | #define _1(fn, pfx, sfx) fn(pfx, sfx) | ||
25 | |||
26 | #define _10(fn, pfx, sfx) \ | ||
27 | _1(fn, pfx##0, sfx), _1(fn, pfx##1, sfx), \ | ||
28 | _1(fn, pfx##2, sfx), _1(fn, pfx##3, sfx), \ | ||
29 | _1(fn, pfx##4, sfx), _1(fn, pfx##5, sfx), \ | ||
30 | _1(fn, pfx##6, sfx), _1(fn, pfx##7, sfx), \ | ||
31 | _1(fn, pfx##8, sfx), _1(fn, pfx##9, sfx) | ||
32 | |||
33 | #define _90(fn, pfx, sfx) \ | ||
34 | _10(fn, pfx##1, sfx), _10(fn, pfx##2, sfx), \ | ||
35 | _10(fn, pfx##3, sfx), _10(fn, pfx##4, sfx), \ | ||
36 | _10(fn, pfx##5, sfx), _10(fn, pfx##6, sfx), \ | ||
37 | _10(fn, pfx##7, sfx), _10(fn, pfx##8, sfx), \ | ||
38 | _10(fn, pfx##9, sfx) | ||
39 | |||
40 | #define _273(fn, pfx, sfx) \ | ||
41 | _10(fn, pfx, sfx), _90(fn, pfx, sfx), \ | ||
42 | _10(fn, pfx##10, sfx), _90(fn, pfx##1, sfx), \ | ||
43 | _10(fn, pfx##20, sfx), _10(fn, pfx##21, sfx), \ | ||
44 | _10(fn, pfx##22, sfx), _10(fn, pfx##23, sfx), \ | ||
45 | _10(fn, pfx##24, sfx), _10(fn, pfx##25, sfx), \ | ||
46 | _10(fn, pfx##26, sfx), _1(fn, pfx##270, sfx), \ | ||
47 | _1(fn, pfx##271, sfx), _1(fn, pfx##272, sfx) | ||
48 | |||
49 | #define _PORT(pfx, sfx) pfx##_##sfx | ||
50 | #define PORT_273(str) _273(_PORT, PORT, str) | ||
51 | |||
52 | enum { | ||
53 | PINMUX_RESERVED = 0, | ||
54 | |||
55 | PINMUX_DATA_BEGIN, | ||
56 | PORT_273(DATA), /* PORT0_DATA -> PORT272_DATA */ | ||
57 | PINMUX_DATA_END, | ||
58 | |||
59 | PINMUX_INPUT_BEGIN, | ||
60 | PORT_273(IN), /* PORT0_IN -> PORT272_IN */ | ||
61 | PINMUX_INPUT_END, | ||
62 | |||
63 | PINMUX_INPUT_PULLUP_BEGIN, | ||
64 | PORT_273(IN_PU), /* PORT0_IN_PU -> PORT272_IN_PU */ | ||
65 | PINMUX_INPUT_PULLUP_END, | ||
66 | |||
67 | PINMUX_INPUT_PULLDOWN_BEGIN, | ||
68 | PORT_273(IN_PD), /* PORT0_IN_PD -> PORT272_IN_PD */ | ||
69 | PINMUX_INPUT_PULLDOWN_END, | ||
70 | |||
71 | PINMUX_OUTPUT_BEGIN, | ||
72 | PORT_273(OUT), /* PORT0_OUT -> PORT272_OUT */ | ||
73 | PINMUX_OUTPUT_END, | ||
74 | |||
75 | PINMUX_FUNCTION_BEGIN, | ||
76 | PORT_273(FN_IN), /* PORT0_FN_IN -> PORT272_FN_IN */ | ||
77 | PORT_273(FN_OUT), /* PORT0_FN_OUT -> PORT272_FN_OUT */ | ||
78 | PORT_273(FN0), /* PORT0_FN0 -> PORT272_FN0 */ | ||
79 | PORT_273(FN1), /* PORT0_FN1 -> PORT272_FN1 */ | ||
80 | PORT_273(FN2), /* PORT0_FN2 -> PORT272_FN2 */ | ||
81 | PORT_273(FN3), /* PORT0_FN3 -> PORT272_FN3 */ | ||
82 | PORT_273(FN4), /* PORT0_FN4 -> PORT272_FN4 */ | ||
83 | PORT_273(FN5), /* PORT0_FN5 -> PORT272_FN5 */ | ||
84 | PORT_273(FN6), /* PORT0_FN6 -> PORT272_FN6 */ | ||
85 | PORT_273(FN7), /* PORT0_FN7 -> PORT272_FN7 */ | ||
86 | |||
87 | MSELBCR_MSEL2_1, MSELBCR_MSEL2_0, | ||
88 | PINMUX_FUNCTION_END, | ||
89 | |||
90 | PINMUX_MARK_BEGIN, | ||
91 | /* Special Pull-up / Pull-down Functions */ | ||
92 | PORT48_KEYIN0_PU_MARK, PORT49_KEYIN1_PU_MARK, | ||
93 | PORT50_KEYIN2_PU_MARK, PORT55_KEYIN3_PU_MARK, | ||
94 | PORT56_KEYIN4_PU_MARK, PORT57_KEYIN5_PU_MARK, | ||
95 | PORT58_KEYIN6_PU_MARK, | ||
96 | |||
97 | /* 49-1 */ | ||
98 | VBUS0_MARK, CPORT0_MARK, CPORT1_MARK, CPORT2_MARK, | ||
99 | CPORT3_MARK, CPORT4_MARK, CPORT5_MARK, CPORT6_MARK, | ||
100 | CPORT7_MARK, CPORT8_MARK, CPORT9_MARK, CPORT10_MARK, | ||
101 | CPORT11_MARK, SIN2_MARK, CPORT12_MARK, XCTS2_MARK, | ||
102 | CPORT13_MARK, RFSPO4_MARK, CPORT14_MARK, RFSPO5_MARK, | ||
103 | CPORT15_MARK, CPORT16_MARK, CPORT17_MARK, SOUT2_MARK, | ||
104 | CPORT18_MARK, XRTS2_MARK, CPORT19_MARK, CPORT20_MARK, | ||
105 | RFSPO6_MARK, CPORT21_MARK, STATUS0_MARK, CPORT22_MARK, | ||
106 | STATUS1_MARK, CPORT23_MARK, STATUS2_MARK, RFSPO7_MARK, | ||
107 | MPORT0_MARK, MPORT1_MARK, B_SYNLD1_MARK, B_SYNLD2_MARK, | ||
108 | XMAINPS_MARK, XDIVPS_MARK, XIDRST_MARK, IDCLK_MARK, | ||
109 | IDIO_MARK, SOUT1_MARK, SCIFA4_TXD_MARK, | ||
110 | M02_BERDAT_MARK, SIN1_MARK, SCIFA4_RXD_MARK, XWUP_MARK, | ||
111 | XRTS1_MARK, SCIFA4_RTS_MARK, M03_BERCLK_MARK, | ||
112 | XCTS1_MARK, SCIFA4_CTS_MARK, | ||
113 | |||
114 | /* 49-2 */ | ||
115 | HSU_IQ_AGC6_MARK, MFG2_IN2_MARK, MSIOF2_MCK0_MARK, | ||
116 | HSU_IQ_AGC5_MARK, MFG2_IN1_MARK, MSIOF2_MCK1_MARK, | ||
117 | HSU_IQ_AGC4_MARK, MSIOF2_RSYNC_MARK, | ||
118 | HSU_IQ_AGC3_MARK, MFG2_OUT1_MARK, MSIOF2_RSCK_MARK, | ||
119 | HSU_IQ_AGC2_MARK, PORT42_KEYOUT0_MARK, | ||
120 | HSU_IQ_AGC1_MARK, PORT43_KEYOUT1_MARK, | ||
121 | HSU_IQ_AGC0_MARK, PORT44_KEYOUT2_MARK, | ||
122 | HSU_IQ_AGC_ST_MARK, PORT45_KEYOUT3_MARK, | ||
123 | HSU_IQ_PDO_MARK, PORT46_KEYOUT4_MARK, | ||
124 | HSU_IQ_PYO_MARK, PORT47_KEYOUT5_MARK, | ||
125 | HSU_EN_TXMUX_G3MO_MARK, PORT48_KEYIN0_MARK, | ||
126 | HSU_I_TXMUX_G3MO_MARK, PORT49_KEYIN1_MARK, | ||
127 | HSU_Q_TXMUX_G3MO_MARK, PORT50_KEYIN2_MARK, | ||
128 | HSU_SYO_MARK, PORT51_MSIOF2_TSYNC_MARK, | ||
129 | HSU_SDO_MARK, PORT52_MSIOF2_TSCK_MARK, | ||
130 | HSU_TGTTI_G3MO_MARK, PORT53_MSIOF2_TXD_MARK, | ||
131 | B_TIME_STAMP_MARK, PORT54_MSIOF2_RXD_MARK, | ||
132 | HSU_SDI_MARK, PORT55_KEYIN3_MARK, | ||
133 | HSU_SCO_MARK, PORT56_KEYIN4_MARK, | ||
134 | HSU_DREQ_MARK, PORT57_KEYIN5_MARK, | ||
135 | HSU_DACK_MARK, PORT58_KEYIN6_MARK, | ||
136 | HSU_CLK61M_MARK, PORT59_MSIOF2_SS1_MARK, | ||
137 | HSU_XRST_MARK, PORT60_MSIOF2_SS2_MARK, | ||
138 | PCMCLKO_MARK, SYNC8KO_MARK, DNPCM_A_MARK, UPPCM_A_MARK, | ||
139 | XTALB1L_MARK, | ||
140 | GPS_AGC1_MARK, SCIFA0_RTS_MARK, | ||
141 | GPS_AGC2_MARK, SCIFA0_SCK_MARK, | ||
142 | GPS_AGC3_MARK, SCIFA0_TXD_MARK, | ||
143 | GPS_AGC4_MARK, SCIFA0_RXD_MARK, | ||
144 | GPS_PWRD_MARK, SCIFA0_CTS_MARK, | ||
145 | GPS_IM_MARK, GPS_IS_MARK, GPS_QM_MARK, GPS_QS_MARK, | ||
146 | SIUBOMC_MARK, TPU2TO0_MARK, | ||
147 | SIUCKB_MARK, TPU2TO1_MARK, | ||
148 | SIUBOLR_MARK, BBIF2_TSYNC_MARK, TPU2TO2_MARK, | ||
149 | SIUBOBT_MARK, BBIF2_TSCK_MARK, TPU2TO3_MARK, | ||
150 | SIUBOSLD_MARK, BBIF2_TXD_MARK, TPU3TO0_MARK, | ||
151 | SIUBILR_MARK, TPU3TO1_MARK, | ||
152 | SIUBIBT_MARK, TPU3TO2_MARK, | ||
153 | SIUBISLD_MARK, TPU3TO3_MARK, | ||
154 | NMI_MARK, TPU4TO0_MARK, | ||
155 | DNPCM_M_MARK, TPU4TO1_MARK, TPU4TO2_MARK, TPU4TO3_MARK, | ||
156 | IRQ_TMPB_MARK, | ||
157 | PWEN_MARK, MFG1_OUT1_MARK, | ||
158 | OVCN_MARK, MFG1_IN1_MARK, | ||
159 | OVCN2_MARK, MFG1_IN2_MARK, | ||
160 | |||
161 | /* 49-3 */ | ||
162 | RFSPO1_MARK, RFSPO2_MARK, RFSPO3_MARK, PORT93_VIO_CKO2_MARK, | ||
163 | USBTERM_MARK, EXTLP_MARK, IDIN_MARK, | ||
164 | SCIFA5_CTS_MARK, MFG0_IN1_MARK, | ||
165 | SCIFA5_RTS_MARK, MFG0_IN2_MARK, | ||
166 | SCIFA5_RXD_MARK, | ||
167 | SCIFA5_TXD_MARK, | ||
168 | SCIFA5_SCK_MARK, MFG0_OUT1_MARK, | ||
169 | A0_EA0_MARK, BS_MARK, | ||
170 | A14_EA14_MARK, PORT102_KEYOUT0_MARK, | ||
171 | A15_EA15_MARK, PORT103_KEYOUT1_MARK, DV_CLKOL_MARK, | ||
172 | A16_EA16_MARK, PORT104_KEYOUT2_MARK, | ||
173 | DV_VSYNCL_MARK, MSIOF0_SS1_MARK, | ||
174 | A17_EA17_MARK, PORT105_KEYOUT3_MARK, | ||
175 | DV_HSYNCL_MARK, MSIOF0_TSYNC_MARK, | ||
176 | A18_EA18_MARK, PORT106_KEYOUT4_MARK, | ||
177 | DV_DL0_MARK, MSIOF0_TSCK_MARK, | ||
178 | A19_EA19_MARK, PORT107_KEYOUT5_MARK, | ||
179 | DV_DL1_MARK, MSIOF0_TXD_MARK, | ||
180 | A20_EA20_MARK, PORT108_KEYIN0_MARK, | ||
181 | DV_DL2_MARK, MSIOF0_RSCK_MARK, | ||
182 | A21_EA21_MARK, PORT109_KEYIN1_MARK, | ||
183 | DV_DL3_MARK, MSIOF0_RSYNC_MARK, | ||
184 | A22_EA22_MARK, PORT110_KEYIN2_MARK, | ||
185 | DV_DL4_MARK, MSIOF0_MCK0_MARK, | ||
186 | A23_EA23_MARK, PORT111_KEYIN3_MARK, | ||
187 | DV_DL5_MARK, MSIOF0_MCK1_MARK, | ||
188 | A24_EA24_MARK, PORT112_KEYIN4_MARK, | ||
189 | DV_DL6_MARK, MSIOF0_RXD_MARK, | ||
190 | A25_EA25_MARK, PORT113_KEYIN5_MARK, | ||
191 | DV_DL7_MARK, MSIOF0_SS2_MARK, | ||
192 | A26_MARK, PORT113_KEYIN6_MARK, DV_CLKIL_MARK, | ||
193 | D0_ED0_NAF0_MARK, D1_ED1_NAF1_MARK, D2_ED2_NAF2_MARK, | ||
194 | D3_ED3_NAF3_MARK, D4_ED4_NAF4_MARK, D5_ED5_NAF5_MARK, | ||
195 | D6_ED6_NAF6_MARK, D7_ED7_NAF7_MARK, D8_ED8_NAF8_MARK, | ||
196 | D9_ED9_NAF9_MARK, D10_ED10_NAF10_MARK, D11_ED11_NAF11_MARK, | ||
197 | D12_ED12_NAF12_MARK, D13_ED13_NAF13_MARK, | ||
198 | D14_ED14_NAF14_MARK, D15_ED15_NAF15_MARK, | ||
199 | CS4_MARK, CS5A_MARK, CS5B_MARK, FCE1_MARK, | ||
200 | CS6B_MARK, XCS2_MARK, FCE0_MARK, CS6A_MARK, | ||
201 | DACK0_MARK, WAIT_MARK, DREQ0_MARK, RD_XRD_MARK, | ||
202 | A27_MARK, RDWR_XWE_MARK, WE0_XWR0_FWE_MARK, | ||
203 | WE1_XWR1_MARK, FRB_MARK, CKO_MARK, | ||
204 | NBRSTOUT_MARK, NBRST_MARK, | ||
205 | |||
206 | /* 49-4 */ | ||
207 | RFSPO0_MARK, PORT146_VIO_CKO2_MARK, TSTMD_MARK, | ||
208 | VIO_VD_MARK, VIO_HD_MARK, | ||
209 | VIO_D0_MARK, VIO_D1_MARK, VIO_D2_MARK, | ||
210 | VIO_D3_MARK, VIO_D4_MARK, VIO_D5_MARK, | ||
211 | VIO_D6_MARK, VIO_D7_MARK, VIO_D8_MARK, | ||
212 | VIO_D9_MARK, VIO_D10_MARK, VIO_D11_MARK, | ||
213 | VIO_D12_MARK, VIO_D13_MARK, VIO_D14_MARK, | ||
214 | VIO_D15_MARK, VIO_CLK_MARK, VIO_FIELD_MARK, | ||
215 | VIO_CKO_MARK, | ||
216 | MFG3_IN1_MARK, MFG3_IN2_MARK, | ||
217 | M9_SLCD_A01_MARK, MFG3_OUT1_MARK, TPU0TO0_MARK, | ||
218 | M10_SLCD_CK1_MARK, MFG4_IN1_MARK, TPU0TO1_MARK, | ||
219 | M11_SLCD_SO1_MARK, MFG4_IN2_MARK, TPU0TO2_MARK, | ||
220 | M12_SLCD_CE1_MARK, MFG4_OUT1_MARK, TPU0TO3_MARK, | ||
221 | LCDD0_MARK, PORT175_KEYOUT0_MARK, DV_D0_MARK, | ||
222 | SIUCKA_MARK, MFG0_OUT2_MARK, | ||
223 | LCDD1_MARK, PORT176_KEYOUT1_MARK, DV_D1_MARK, | ||
224 | SIUAOLR_MARK, BBIF2_TSYNC1_MARK, | ||
225 | LCDD2_MARK, PORT177_KEYOUT2_MARK, DV_D2_MARK, | ||
226 | SIUAOBT_MARK, BBIF2_TSCK1_MARK, | ||
227 | LCDD3_MARK, PORT178_KEYOUT3_MARK, DV_D3_MARK, | ||
228 | SIUAOSLD_MARK, BBIF2_TXD1_MARK, | ||
229 | LCDD4_MARK, PORT179_KEYOUT4_MARK, DV_D4_MARK, | ||
230 | SIUAISPD_MARK, MFG1_OUT2_MARK, | ||
231 | LCDD5_MARK, PORT180_KEYOUT5_MARK, DV_D5_MARK, | ||
232 | SIUAILR_MARK, MFG2_OUT2_MARK, | ||
233 | LCDD6_MARK, DV_D6_MARK, | ||
234 | SIUAIBT_MARK, MFG3_OUT2_MARK, XWR2_MARK, | ||
235 | LCDD7_MARK, DV_D7_MARK, | ||
236 | SIUAISLD_MARK, MFG4_OUT2_MARK, XWR3_MARK, | ||
237 | LCDD8_MARK, DV_D8_MARK, D16_MARK, ED16_MARK, | ||
238 | LCDD9_MARK, DV_D9_MARK, D17_MARK, ED17_MARK, | ||
239 | LCDD10_MARK, DV_D10_MARK, D18_MARK, ED18_MARK, | ||
240 | LCDD11_MARK, DV_D11_MARK, D19_MARK, ED19_MARK, | ||
241 | LCDD12_MARK, DV_D12_MARK, D20_MARK, ED20_MARK, | ||
242 | LCDD13_MARK, DV_D13_MARK, D21_MARK, ED21_MARK, | ||
243 | LCDD14_MARK, DV_D14_MARK, D22_MARK, ED22_MARK, | ||
244 | LCDD15_MARK, DV_D15_MARK, D23_MARK, ED23_MARK, | ||
245 | LCDD16_MARK, DV_HSYNC_MARK, D24_MARK, ED24_MARK, | ||
246 | LCDD17_MARK, DV_VSYNC_MARK, D25_MARK, ED25_MARK, | ||
247 | LCDD18_MARK, DREQ2_MARK, MSIOF0L_TSCK_MARK, | ||
248 | D26_MARK, ED26_MARK, | ||
249 | LCDD19_MARK, MSIOF0L_TSYNC_MARK, | ||
250 | D27_MARK, ED27_MARK, | ||
251 | LCDD20_MARK, TS_SPSYNC1_MARK, MSIOF0L_MCK0_MARK, | ||
252 | D28_MARK, ED28_MARK, | ||
253 | LCDD21_MARK, TS_SDAT1_MARK, MSIOF0L_MCK1_MARK, | ||
254 | D29_MARK, ED29_MARK, | ||
255 | LCDD22_MARK, TS_SDEN1_MARK, MSIOF0L_SS1_MARK, | ||
256 | D30_MARK, ED30_MARK, | ||
257 | LCDD23_MARK, TS_SCK1_MARK, MSIOF0L_SS2_MARK, | ||
258 | D31_MARK, ED31_MARK, | ||
259 | LCDDCK_MARK, LCDWR_MARK, DV_CKO_MARK, SIUAOSPD_MARK, | ||
260 | LCDRD_MARK, DACK2_MARK, MSIOF0L_RSYNC_MARK, | ||
261 | |||
262 | /* 49-5 */ | ||
263 | LCDHSYN_MARK, LCDCS_MARK, LCDCS2_MARK, DACK3_MARK, | ||
264 | LCDDISP_MARK, LCDRS_MARK, DREQ3_MARK, MSIOF0L_RSCK_MARK, | ||
265 | LCDCSYN_MARK, LCDCSYN2_MARK, DV_CKI_MARK, | ||
266 | LCDLCLK_MARK, DREQ1_MARK, MSIOF0L_RXD_MARK, | ||
267 | LCDDON_MARK, LCDDON2_MARK, DACK1_MARK, MSIOF0L_TXD_MARK, | ||
268 | VIO_DR0_MARK, VIO_DR1_MARK, VIO_DR2_MARK, VIO_DR3_MARK, | ||
269 | VIO_DR4_MARK, VIO_DR5_MARK, VIO_DR6_MARK, VIO_DR7_MARK, | ||
270 | VIO_VDR_MARK, VIO_HDR_MARK, | ||
271 | VIO_CLKR_MARK, VIO_CKOR_MARK, | ||
272 | SCIFA1_TXD_MARK, GPS_PGFA0_MARK, | ||
273 | SCIFA1_SCK_MARK, GPS_PGFA1_MARK, | ||
274 | SCIFA1_RTS_MARK, GPS_EPPSINMON_MARK, | ||
275 | SCIFA1_RXD_MARK, SCIFA1_CTS_MARK, | ||
276 | MSIOF1_TXD_MARK, SCIFA1_TXD2_MARK, GPS_TXD_MARK, | ||
277 | MSIOF1_TSYNC_MARK, SCIFA1_CTS2_MARK, I2C_SDA2_MARK, | ||
278 | MSIOF1_TSCK_MARK, SCIFA1_SCK2_MARK, | ||
279 | MSIOF1_RXD_MARK, SCIFA1_RXD2_MARK, GPS_RXD_MARK, | ||
280 | MSIOF1_RSCK_MARK, SCIFA1_RTS2_MARK, | ||
281 | MSIOF1_RSYNC_MARK, I2C_SCL2_MARK, | ||
282 | MSIOF1_MCK0_MARK, MSIOF1_MCK1_MARK, | ||
283 | MSIOF1_SS1_MARK, EDBGREQ3_MARK, | ||
284 | MSIOF1_SS2_MARK, | ||
285 | PORT236_IROUT_MARK, IRDA_OUT_MARK, | ||
286 | IRDA_IN_MARK, IRDA_FIRSEL_MARK, | ||
287 | TPU1TO0_MARK, TS_SPSYNC3_MARK, | ||
288 | TPU1TO1_MARK, TS_SDAT3_MARK, | ||
289 | TPU1TO2_MARK, TS_SDEN3_MARK, PORT241_MSIOF2_SS1_MARK, | ||
290 | TPU1TO3_MARK, PORT242_MSIOF2_TSCK_MARK, | ||
291 | M13_BSW_MARK, PORT243_MSIOF2_TSYNC_MARK, | ||
292 | M14_GSW_MARK, PORT244_MSIOF2_TXD_MARK, | ||
293 | PORT245_IROUT_MARK, M15_RSW_MARK, | ||
294 | SOUT3_MARK, SCIFA2_TXD1_MARK, | ||
295 | SIN3_MARK, SCIFA2_RXD1_MARK, | ||
296 | XRTS3_MARK, SCIFA2_RTS1_MARK, PORT248_MSIOF2_SS2_MARK, | ||
297 | XCTS3_MARK, SCIFA2_CTS1_MARK, PORT249_MSIOF2_RXD_MARK, | ||
298 | DINT_MARK, SCIFA2_SCK1_MARK, TS_SCK3_MARK, | ||
299 | SDHICLK0_MARK, TCK2_MARK, | ||
300 | SDHICD0_MARK, | ||
301 | SDHID0_0_MARK, TMS2_MARK, | ||
302 | SDHID0_1_MARK, TDO2_MARK, | ||
303 | SDHID0_2_MARK, TDI2_MARK, | ||
304 | SDHID0_3_MARK, RTCK2_MARK, | ||
305 | |||
306 | /* 49-6 */ | ||
307 | SDHICMD0_MARK, TRST2_MARK, | ||
308 | SDHIWP0_MARK, EDBGREQ2_MARK, | ||
309 | SDHICLK1_MARK, TCK3_MARK, | ||
310 | SDHID1_0_MARK, M11_SLCD_SO2_MARK, | ||
311 | TS_SPSYNC2_MARK, TMS3_MARK, | ||
312 | SDHID1_1_MARK, M9_SLCD_AO2_MARK, | ||
313 | TS_SDAT2_MARK, TDO3_MARK, | ||
314 | SDHID1_2_MARK, M10_SLCD_CK2_MARK, | ||
315 | TS_SDEN2_MARK, TDI3_MARK, | ||
316 | SDHID1_3_MARK, M12_SLCD_CE2_MARK, | ||
317 | TS_SCK2_MARK, RTCK3_MARK, | ||
318 | SDHICMD1_MARK, TRST3_MARK, | ||
319 | SDHICLK2_MARK, SCIFB_SCK_MARK, | ||
320 | SDHID2_0_MARK, SCIFB_TXD_MARK, | ||
321 | SDHID2_1_MARK, SCIFB_CTS_MARK, | ||
322 | SDHID2_2_MARK, SCIFB_RXD_MARK, | ||
323 | SDHID2_3_MARK, SCIFB_RTS_MARK, | ||
324 | SDHICMD2_MARK, | ||
325 | RESETOUTS_MARK, | ||
326 | DIVLOCK_MARK, | ||
327 | PINMUX_MARK_END, | ||
328 | }; | ||
329 | |||
330 | #define PORT_DATA_I(nr) \ | ||
331 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_IN) | ||
332 | |||
333 | #define PORT_DATA_I_PD(nr) \ | ||
334 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \ | ||
335 | PORT##nr##_IN, PORT##nr##_IN_PD) | ||
336 | |||
337 | #define PORT_DATA_I_PU(nr) \ | ||
338 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \ | ||
339 | PORT##nr##_IN, PORT##nr##_IN_PU) | ||
340 | |||
341 | #define PORT_DATA_I_PU_PD(nr) \ | ||
342 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \ | ||
343 | PORT##nr##_IN, PORT##nr##_IN_PD, PORT##nr##_IN_PU) | ||
344 | |||
345 | #define PORT_DATA_O(nr) \ | ||
346 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_OUT) | ||
347 | |||
348 | #define PORT_DATA_IO(nr) \ | ||
349 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_OUT, \ | ||
350 | PORT##nr##_IN) | ||
351 | |||
352 | #define PORT_DATA_IO_PD(nr) \ | ||
353 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_OUT, \ | ||
354 | PORT##nr##_IN, PORT##nr##_IN_PD) | ||
355 | |||
356 | #define PORT_DATA_IO_PU(nr) \ | ||
357 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_OUT, \ | ||
358 | PORT##nr##_IN, PORT##nr##_IN_PU) | ||
359 | |||
360 | #define PORT_DATA_IO_PU_PD(nr) \ | ||
361 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_OUT, \ | ||
362 | PORT##nr##_IN, PORT##nr##_IN_PD, PORT##nr##_IN_PU) | ||
363 | |||
364 | |||
365 | static pinmux_enum_t pinmux_data[] = { | ||
366 | |||
367 | /* specify valid pin states for each pin in GPIO mode */ | ||
368 | |||
369 | /* 49-1 (GPIO) */ | ||
370 | PORT_DATA_I_PD(0), | ||
371 | PORT_DATA_I_PU(1), PORT_DATA_I_PU(2), PORT_DATA_I_PU(3), | ||
372 | PORT_DATA_I_PU(4), PORT_DATA_I_PU(5), PORT_DATA_I_PU(6), | ||
373 | PORT_DATA_I_PU(7), PORT_DATA_I_PU(8), PORT_DATA_I_PU(9), | ||
374 | PORT_DATA_I_PU(10), PORT_DATA_I_PU(11), PORT_DATA_I_PU(12), | ||
375 | PORT_DATA_I_PU(13), | ||
376 | PORT_DATA_IO_PU_PD(14), PORT_DATA_IO_PU_PD(15), | ||
377 | PORT_DATA_O(16), PORT_DATA_O(17), PORT_DATA_O(18), PORT_DATA_O(19), | ||
378 | PORT_DATA_O(20), PORT_DATA_O(21), PORT_DATA_O(22), PORT_DATA_O(23), | ||
379 | PORT_DATA_O(24), PORT_DATA_O(25), PORT_DATA_O(26), | ||
380 | PORT_DATA_I_PD(27), PORT_DATA_I_PD(28), | ||
381 | PORT_DATA_O(29), PORT_DATA_O(30), PORT_DATA_O(31), PORT_DATA_O(32), | ||
382 | PORT_DATA_IO_PU(33), | ||
383 | PORT_DATA_O(34), | ||
384 | PORT_DATA_I_PU(35), | ||
385 | PORT_DATA_O(36), | ||
386 | PORT_DATA_I_PU_PD(37), | ||
387 | |||
388 | /* 49-2 (GPIO) */ | ||
389 | PORT_DATA_IO_PU_PD(38), | ||
390 | PORT_DATA_IO_PD(39), PORT_DATA_IO_PD(40), PORT_DATA_IO_PD(41), | ||
391 | PORT_DATA_O(42), PORT_DATA_O(43), PORT_DATA_O(44), PORT_DATA_O(45), | ||
392 | PORT_DATA_O(46), PORT_DATA_O(47), | ||
393 | PORT_DATA_I_PU_PD(48), PORT_DATA_I_PU_PD(49), PORT_DATA_I_PU_PD(50), | ||
394 | PORT_DATA_IO_PD(51), PORT_DATA_IO_PD(52), | ||
395 | PORT_DATA_O(53), | ||
396 | PORT_DATA_IO_PD(54), | ||
397 | PORT_DATA_I_PU_PD(55), | ||
398 | PORT_DATA_IO_PU_PD(56), | ||
399 | PORT_DATA_I_PU_PD(57), | ||
400 | PORT_DATA_IO_PU_PD(58), | ||
401 | PORT_DATA_O(59), PORT_DATA_O(60), PORT_DATA_O(61), PORT_DATA_O(62), | ||
402 | PORT_DATA_O(63), | ||
403 | PORT_DATA_I_PU(64), | ||
404 | PORT_DATA_O(65), PORT_DATA_O(66), PORT_DATA_O(67), PORT_DATA_O(68), | ||
405 | PORT_DATA_IO_PD(69), PORT_DATA_IO_PD(70), | ||
406 | PORT_DATA_I_PD(71), PORT_DATA_I_PD(72), PORT_DATA_I_PD(73), | ||
407 | PORT_DATA_I_PD(74), | ||
408 | PORT_DATA_IO_PU_PD(75), PORT_DATA_IO_PU_PD(76), | ||
409 | PORT_DATA_IO_PD(77), PORT_DATA_IO_PD(78), | ||
410 | PORT_DATA_O(79), | ||
411 | PORT_DATA_IO_PD(80), PORT_DATA_IO_PD(81), PORT_DATA_IO_PD(82), | ||
412 | PORT_DATA_IO_PU_PD(83), PORT_DATA_IO_PU_PD(84), | ||
413 | PORT_DATA_IO_PU_PD(85), PORT_DATA_IO_PU_PD(86), | ||
414 | PORT_DATA_I_PD(87), | ||
415 | PORT_DATA_IO_PU_PD(88), | ||
416 | PORT_DATA_I_PU_PD(89), PORT_DATA_I_PU_PD(90), | ||
417 | |||
418 | /* 49-3 (GPIO) */ | ||
419 | PORT_DATA_O(91), PORT_DATA_O(92), PORT_DATA_O(93), PORT_DATA_O(94), | ||
420 | PORT_DATA_I_PU_PD(95), | ||
421 | PORT_DATA_IO_PU_PD(96), PORT_DATA_IO_PU_PD(97), PORT_DATA_IO_PU_PD(98), | ||
422 | PORT_DATA_IO_PU_PD(99), PORT_DATA_IO_PU_PD(100), | ||
423 | PORT_DATA_IO(101), PORT_DATA_IO(102), PORT_DATA_IO(103), | ||
424 | PORT_DATA_IO_PD(104), PORT_DATA_IO_PD(105), PORT_DATA_IO_PD(106), | ||
425 | PORT_DATA_IO_PD(107), | ||
426 | PORT_DATA_IO_PU_PD(108), PORT_DATA_IO_PU_PD(109), | ||
427 | PORT_DATA_IO_PU_PD(110), PORT_DATA_IO_PU_PD(111), | ||
428 | PORT_DATA_IO_PU_PD(112), PORT_DATA_IO_PU_PD(113), | ||
429 | PORT_DATA_IO_PU_PD(114), | ||
430 | PORT_DATA_IO_PU(115), PORT_DATA_IO_PU(116), PORT_DATA_IO_PU(117), | ||
431 | PORT_DATA_IO_PU(118), PORT_DATA_IO_PU(119), PORT_DATA_IO_PU(120), | ||
432 | PORT_DATA_IO_PU(121), PORT_DATA_IO_PU(122), PORT_DATA_IO_PU(123), | ||
433 | PORT_DATA_IO_PU(124), PORT_DATA_IO_PU(125), PORT_DATA_IO_PU(126), | ||
434 | PORT_DATA_IO_PU(127), PORT_DATA_IO_PU(128), PORT_DATA_IO_PU(129), | ||
435 | PORT_DATA_IO_PU(130), | ||
436 | PORT_DATA_O(131), PORT_DATA_O(132), PORT_DATA_O(133), | ||
437 | PORT_DATA_IO_PU(134), | ||
438 | PORT_DATA_O(135), PORT_DATA_O(136), | ||
439 | PORT_DATA_I_PU_PD(137), | ||
440 | PORT_DATA_IO(138), | ||
441 | PORT_DATA_IO_PU_PD(139), | ||
442 | PORT_DATA_IO(140), PORT_DATA_IO(141), | ||
443 | PORT_DATA_I_PU(142), | ||
444 | PORT_DATA_O(143), PORT_DATA_O(144), | ||
445 | PORT_DATA_I_PU(145), | ||
446 | |||
447 | /* 49-4 (GPIO) */ | ||
448 | PORT_DATA_O(146), | ||
449 | PORT_DATA_I_PU_PD(147), | ||
450 | PORT_DATA_I_PD(148), PORT_DATA_I_PD(149), | ||
451 | PORT_DATA_IO_PD(150), PORT_DATA_IO_PD(151), PORT_DATA_IO_PD(152), | ||
452 | PORT_DATA_IO_PD(153), PORT_DATA_IO_PD(154), PORT_DATA_IO_PD(155), | ||
453 | PORT_DATA_IO_PD(156), PORT_DATA_IO_PD(157), PORT_DATA_IO_PD(158), | ||
454 | PORT_DATA_IO_PD(159), PORT_DATA_IO_PD(160), PORT_DATA_IO_PD(161), | ||
455 | PORT_DATA_IO_PD(162), PORT_DATA_IO_PD(163), PORT_DATA_IO_PD(164), | ||
456 | PORT_DATA_IO_PD(165), PORT_DATA_IO_PD(166), | ||
457 | PORT_DATA_IO_PU_PD(167), | ||
458 | PORT_DATA_O(168), | ||
459 | PORT_DATA_I_PD(169), PORT_DATA_I_PD(170), | ||
460 | PORT_DATA_O(171), | ||
461 | PORT_DATA_IO_PD(172), PORT_DATA_IO_PD(173), | ||
462 | PORT_DATA_O(174), | ||
463 | PORT_DATA_IO_PD(175), PORT_DATA_IO_PD(176), PORT_DATA_IO_PD(177), | ||
464 | PORT_DATA_IO_PD(178), PORT_DATA_IO_PD(179), PORT_DATA_IO_PD(180), | ||
465 | PORT_DATA_IO_PD(181), PORT_DATA_IO_PD(182), PORT_DATA_IO_PD(183), | ||
466 | PORT_DATA_IO_PD(184), PORT_DATA_IO_PD(185), PORT_DATA_IO_PD(186), | ||
467 | PORT_DATA_IO_PD(187), PORT_DATA_IO_PD(188), PORT_DATA_IO_PD(189), | ||
468 | PORT_DATA_IO_PD(190), PORT_DATA_IO_PD(191), PORT_DATA_IO_PD(192), | ||
469 | PORT_DATA_IO_PD(193), PORT_DATA_IO_PD(194), PORT_DATA_IO_PD(195), | ||
470 | PORT_DATA_IO_PD(196), PORT_DATA_IO_PD(197), PORT_DATA_IO_PD(198), | ||
471 | PORT_DATA_O(199), | ||
472 | PORT_DATA_IO_PD(200), | ||
473 | |||
474 | /* 49-5 (GPIO) */ | ||
475 | PORT_DATA_O(201), | ||
476 | PORT_DATA_IO_PD(202), PORT_DATA_IO_PD(203), | ||
477 | PORT_DATA_I(204), | ||
478 | PORT_DATA_O(205), | ||
479 | PORT_DATA_IO_PD(206), PORT_DATA_IO_PD(207), PORT_DATA_IO_PD(208), | ||
480 | PORT_DATA_IO_PD(209), PORT_DATA_IO_PD(210), PORT_DATA_IO_PD(211), | ||
481 | PORT_DATA_IO_PD(212), PORT_DATA_IO_PD(213), PORT_DATA_IO_PD(214), | ||
482 | PORT_DATA_IO_PD(215), PORT_DATA_IO_PD(216), | ||
483 | PORT_DATA_O(217), | ||
484 | PORT_DATA_I_PU_PD(218), PORT_DATA_I_PU_PD(219), | ||
485 | PORT_DATA_O(220), PORT_DATA_O(221), PORT_DATA_O(222), | ||
486 | PORT_DATA_I_PD(223), | ||
487 | PORT_DATA_I_PU_PD(224), | ||
488 | PORT_DATA_O(225), | ||
489 | PORT_DATA_IO_PD(226), | ||
490 | PORT_DATA_IO_PU_PD(227), | ||
491 | PORT_DATA_I_PD(228), | ||
492 | PORT_DATA_IO_PD(229), PORT_DATA_IO_PD(230), | ||
493 | PORT_DATA_I_PU_PD(231), PORT_DATA_I_PU_PD(232), | ||
494 | PORT_DATA_IO_PU_PD(233), PORT_DATA_IO_PU_PD(234), | ||
495 | PORT_DATA_I_PU_PD(235), | ||
496 | PORT_DATA_O(236), | ||
497 | PORT_DATA_I_PD(237), | ||
498 | PORT_DATA_IO_PU_PD(238), PORT_DATA_IO_PU_PD(239), | ||
499 | PORT_DATA_IO_PD(240), PORT_DATA_IO_PD(241), | ||
500 | PORT_DATA_IO_PD(242), PORT_DATA_IO_PD(243), | ||
501 | PORT_DATA_O(244), | ||
502 | PORT_DATA_IO_PU_PD(245), | ||
503 | PORT_DATA_O(246), | ||
504 | PORT_DATA_I_PD(247), | ||
505 | PORT_DATA_IO_PU_PD(248), | ||
506 | PORT_DATA_I_PU_PD(249), | ||
507 | PORT_DATA_IO_PD(250), PORT_DATA_IO_PD(251), | ||
508 | PORT_DATA_IO_PU_PD(252), PORT_DATA_IO_PU_PD(253), | ||
509 | PORT_DATA_IO_PU_PD(254), PORT_DATA_IO_PU_PD(255), | ||
510 | PORT_DATA_IO_PU_PD(256), | ||
511 | |||
512 | /* 49-6 (GPIO) */ | ||
513 | PORT_DATA_IO_PU_PD(257), PORT_DATA_IO_PU_PD(258), | ||
514 | PORT_DATA_IO_PD(259), | ||
515 | PORT_DATA_IO_PU(260), PORT_DATA_IO_PU(261), PORT_DATA_IO_PU(262), | ||
516 | PORT_DATA_IO_PU(263), PORT_DATA_IO_PU(264), | ||
517 | PORT_DATA_O(265), | ||
518 | PORT_DATA_IO_PU(266), PORT_DATA_IO_PU(267), PORT_DATA_IO_PU(268), | ||
519 | PORT_DATA_IO_PU(269), PORT_DATA_IO_PU(270), | ||
520 | PORT_DATA_O(271), | ||
521 | PORT_DATA_I_PD(272), | ||
522 | |||
523 | /* Special Pull-up / Pull-down Functions */ | ||
524 | PINMUX_DATA(PORT48_KEYIN0_PU_MARK, MSELBCR_MSEL2_1, | ||
525 | PORT48_FN2, PORT48_IN_PU), | ||
526 | PINMUX_DATA(PORT49_KEYIN1_PU_MARK, MSELBCR_MSEL2_1, | ||
527 | PORT49_FN2, PORT49_IN_PU), | ||
528 | PINMUX_DATA(PORT50_KEYIN2_PU_MARK, MSELBCR_MSEL2_1, | ||
529 | PORT50_FN2, PORT50_IN_PU), | ||
530 | PINMUX_DATA(PORT55_KEYIN3_PU_MARK, MSELBCR_MSEL2_1, | ||
531 | PORT55_FN2, PORT55_IN_PU), | ||
532 | PINMUX_DATA(PORT56_KEYIN4_PU_MARK, MSELBCR_MSEL2_1, | ||
533 | PORT56_FN2, PORT56_IN_PU), | ||
534 | PINMUX_DATA(PORT57_KEYIN5_PU_MARK, MSELBCR_MSEL2_1, | ||
535 | PORT57_FN2, PORT57_IN_PU), | ||
536 | PINMUX_DATA(PORT58_KEYIN6_PU_MARK, MSELBCR_MSEL2_1, | ||
537 | PORT58_FN2, PORT58_IN_PU), | ||
538 | |||
539 | /* 49-1 (FN) */ | ||
540 | PINMUX_DATA(VBUS0_MARK, PORT0_FN1), | ||
541 | PINMUX_DATA(CPORT0_MARK, PORT1_FN1), | ||
542 | PINMUX_DATA(CPORT1_MARK, PORT2_FN1), | ||
543 | PINMUX_DATA(CPORT2_MARK, PORT3_FN1), | ||
544 | PINMUX_DATA(CPORT3_MARK, PORT4_FN1), | ||
545 | PINMUX_DATA(CPORT4_MARK, PORT5_FN1), | ||
546 | PINMUX_DATA(CPORT5_MARK, PORT6_FN1), | ||
547 | PINMUX_DATA(CPORT6_MARK, PORT7_FN1), | ||
548 | PINMUX_DATA(CPORT7_MARK, PORT8_FN1), | ||
549 | PINMUX_DATA(CPORT8_MARK, PORT9_FN1), | ||
550 | PINMUX_DATA(CPORT9_MARK, PORT10_FN1), | ||
551 | PINMUX_DATA(CPORT10_MARK, PORT11_FN1), | ||
552 | PINMUX_DATA(CPORT11_MARK, PORT12_FN1), | ||
553 | PINMUX_DATA(SIN2_MARK, PORT12_FN2), | ||
554 | PINMUX_DATA(CPORT12_MARK, PORT13_FN1), | ||
555 | PINMUX_DATA(XCTS2_MARK, PORT13_FN2), | ||
556 | PINMUX_DATA(CPORT13_MARK, PORT14_FN1), | ||
557 | PINMUX_DATA(RFSPO4_MARK, PORT14_FN2), | ||
558 | PINMUX_DATA(CPORT14_MARK, PORT15_FN1), | ||
559 | PINMUX_DATA(RFSPO5_MARK, PORT15_FN2), | ||
560 | PINMUX_DATA(CPORT15_MARK, PORT16_FN1), | ||
561 | PINMUX_DATA(CPORT16_MARK, PORT17_FN1), | ||
562 | PINMUX_DATA(CPORT17_MARK, PORT18_FN1), | ||
563 | PINMUX_DATA(SOUT2_MARK, PORT18_FN2), | ||
564 | PINMUX_DATA(CPORT18_MARK, PORT19_FN1), | ||
565 | PINMUX_DATA(XRTS2_MARK, PORT19_FN1), | ||
566 | PINMUX_DATA(CPORT19_MARK, PORT20_FN1), | ||
567 | PINMUX_DATA(CPORT20_MARK, PORT21_FN1), | ||
568 | PINMUX_DATA(RFSPO6_MARK, PORT21_FN2), | ||
569 | PINMUX_DATA(CPORT21_MARK, PORT22_FN1), | ||
570 | PINMUX_DATA(STATUS0_MARK, PORT22_FN2), | ||
571 | PINMUX_DATA(CPORT22_MARK, PORT23_FN1), | ||
572 | PINMUX_DATA(STATUS1_MARK, PORT23_FN2), | ||
573 | PINMUX_DATA(CPORT23_MARK, PORT24_FN1), | ||
574 | PINMUX_DATA(STATUS2_MARK, PORT24_FN2), | ||
575 | PINMUX_DATA(RFSPO7_MARK, PORT24_FN3), | ||
576 | PINMUX_DATA(MPORT0_MARK, PORT25_FN1), | ||
577 | PINMUX_DATA(MPORT1_MARK, PORT26_FN1), | ||
578 | PINMUX_DATA(B_SYNLD1_MARK, PORT27_FN1), | ||
579 | PINMUX_DATA(B_SYNLD2_MARK, PORT28_FN1), | ||
580 | PINMUX_DATA(XMAINPS_MARK, PORT29_FN1), | ||
581 | PINMUX_DATA(XDIVPS_MARK, PORT30_FN1), | ||
582 | PINMUX_DATA(XIDRST_MARK, PORT31_FN1), | ||
583 | PINMUX_DATA(IDCLK_MARK, PORT32_FN1), | ||
584 | PINMUX_DATA(IDIO_MARK, PORT33_FN1), | ||
585 | PINMUX_DATA(SOUT1_MARK, PORT34_FN1), | ||
586 | PINMUX_DATA(SCIFA4_TXD_MARK, PORT34_FN2), | ||
587 | PINMUX_DATA(M02_BERDAT_MARK, PORT34_FN3), | ||
588 | PINMUX_DATA(SIN1_MARK, PORT35_FN1), | ||
589 | PINMUX_DATA(SCIFA4_RXD_MARK, PORT35_FN2), | ||
590 | PINMUX_DATA(XWUP_MARK, PORT35_FN3), | ||
591 | PINMUX_DATA(XRTS1_MARK, PORT36_FN1), | ||
592 | PINMUX_DATA(SCIFA4_RTS_MARK, PORT36_FN2), | ||
593 | PINMUX_DATA(M03_BERCLK_MARK, PORT36_FN3), | ||
594 | PINMUX_DATA(XCTS1_MARK, PORT37_FN1), | ||
595 | PINMUX_DATA(SCIFA4_CTS_MARK, PORT37_FN2), | ||
596 | |||
597 | /* 49-2 (FN) */ | ||
598 | PINMUX_DATA(HSU_IQ_AGC6_MARK, PORT38_FN1), | ||
599 | PINMUX_DATA(MFG2_IN2_MARK, PORT38_FN2), | ||
600 | PINMUX_DATA(MSIOF2_MCK0_MARK, PORT38_FN3), | ||
601 | PINMUX_DATA(HSU_IQ_AGC5_MARK, PORT39_FN1), | ||
602 | PINMUX_DATA(MFG2_IN1_MARK, PORT39_FN2), | ||
603 | PINMUX_DATA(MSIOF2_MCK1_MARK, PORT39_FN3), | ||
604 | PINMUX_DATA(HSU_IQ_AGC4_MARK, PORT40_FN1), | ||
605 | PINMUX_DATA(MSIOF2_RSYNC_MARK, PORT40_FN3), | ||
606 | PINMUX_DATA(HSU_IQ_AGC3_MARK, PORT41_FN1), | ||
607 | PINMUX_DATA(MFG2_OUT1_MARK, PORT41_FN2), | ||
608 | PINMUX_DATA(MSIOF2_RSCK_MARK, PORT41_FN3), | ||
609 | PINMUX_DATA(HSU_IQ_AGC2_MARK, PORT42_FN1), | ||
610 | PINMUX_DATA(PORT42_KEYOUT0_MARK, MSELBCR_MSEL2_1, PORT42_FN2), | ||
611 | PINMUX_DATA(HSU_IQ_AGC1_MARK, PORT43_FN1), | ||
612 | PINMUX_DATA(PORT43_KEYOUT1_MARK, MSELBCR_MSEL2_1, PORT43_FN2), | ||
613 | PINMUX_DATA(HSU_IQ_AGC0_MARK, PORT44_FN1), | ||
614 | PINMUX_DATA(PORT44_KEYOUT2_MARK, MSELBCR_MSEL2_1, PORT44_FN2), | ||
615 | PINMUX_DATA(HSU_IQ_AGC_ST_MARK, PORT45_FN1), | ||
616 | PINMUX_DATA(PORT45_KEYOUT3_MARK, MSELBCR_MSEL2_1, PORT45_FN2), | ||
617 | PINMUX_DATA(HSU_IQ_PDO_MARK, PORT46_FN1), | ||
618 | PINMUX_DATA(PORT46_KEYOUT4_MARK, MSELBCR_MSEL2_1, PORT46_FN2), | ||
619 | PINMUX_DATA(HSU_IQ_PYO_MARK, PORT47_FN1), | ||
620 | PINMUX_DATA(PORT47_KEYOUT5_MARK, MSELBCR_MSEL2_1, PORT47_FN2), | ||
621 | PINMUX_DATA(HSU_EN_TXMUX_G3MO_MARK, PORT48_FN1), | ||
622 | PINMUX_DATA(PORT48_KEYIN0_MARK, MSELBCR_MSEL2_1, PORT48_FN2), | ||
623 | PINMUX_DATA(HSU_I_TXMUX_G3MO_MARK, PORT49_FN1), | ||
624 | PINMUX_DATA(PORT49_KEYIN1_MARK, MSELBCR_MSEL2_1, PORT49_FN2), | ||
625 | PINMUX_DATA(HSU_Q_TXMUX_G3MO_MARK, PORT50_FN1), | ||
626 | PINMUX_DATA(PORT50_KEYIN2_MARK, MSELBCR_MSEL2_1, PORT50_FN2), | ||
627 | PINMUX_DATA(HSU_SYO_MARK, PORT51_FN1), | ||
628 | PINMUX_DATA(PORT51_MSIOF2_TSYNC_MARK, PORT51_FN2), | ||
629 | PINMUX_DATA(HSU_SDO_MARK, PORT52_FN1), | ||
630 | PINMUX_DATA(PORT52_MSIOF2_TSCK_MARK, PORT52_FN2), | ||
631 | PINMUX_DATA(HSU_TGTTI_G3MO_MARK, PORT53_FN1), | ||
632 | PINMUX_DATA(PORT53_MSIOF2_TXD_MARK, PORT53_FN2), | ||
633 | PINMUX_DATA(B_TIME_STAMP_MARK, PORT54_FN1), | ||
634 | PINMUX_DATA(PORT54_MSIOF2_RXD_MARK, PORT54_FN2), | ||
635 | PINMUX_DATA(HSU_SDI_MARK, PORT55_FN1), | ||
636 | PINMUX_DATA(PORT55_KEYIN3_MARK, MSELBCR_MSEL2_1, PORT55_FN2), | ||
637 | PINMUX_DATA(HSU_SCO_MARK, PORT56_FN1), | ||
638 | PINMUX_DATA(PORT56_KEYIN4_MARK, MSELBCR_MSEL2_1, PORT56_FN2), | ||
639 | PINMUX_DATA(HSU_DREQ_MARK, PORT57_FN1), | ||
640 | PINMUX_DATA(PORT57_KEYIN5_MARK, MSELBCR_MSEL2_1, PORT57_FN2), | ||
641 | PINMUX_DATA(HSU_DACK_MARK, PORT58_FN1), | ||
642 | PINMUX_DATA(PORT58_KEYIN6_MARK, MSELBCR_MSEL2_1, PORT58_FN2), | ||
643 | PINMUX_DATA(HSU_CLK61M_MARK, PORT59_FN1), | ||
644 | PINMUX_DATA(PORT59_MSIOF2_SS1_MARK, PORT59_FN2), | ||
645 | PINMUX_DATA(HSU_XRST_MARK, PORT60_FN1), | ||
646 | PINMUX_DATA(PORT60_MSIOF2_SS2_MARK, PORT60_FN2), | ||
647 | PINMUX_DATA(PCMCLKO_MARK, PORT61_FN1), | ||
648 | PINMUX_DATA(SYNC8KO_MARK, PORT62_FN1), | ||
649 | PINMUX_DATA(DNPCM_A_MARK, PORT63_FN1), | ||
650 | PINMUX_DATA(UPPCM_A_MARK, PORT64_FN1), | ||
651 | PINMUX_DATA(XTALB1L_MARK, PORT65_FN1), | ||
652 | PINMUX_DATA(GPS_AGC1_MARK, PORT66_FN1), | ||
653 | PINMUX_DATA(SCIFA0_RTS_MARK, PORT66_FN2), | ||
654 | PINMUX_DATA(GPS_AGC2_MARK, PORT67_FN1), | ||
655 | PINMUX_DATA(SCIFA0_SCK_MARK, PORT67_FN2), | ||
656 | PINMUX_DATA(GPS_AGC3_MARK, PORT68_FN1), | ||
657 | PINMUX_DATA(SCIFA0_TXD_MARK, PORT68_FN2), | ||
658 | PINMUX_DATA(GPS_AGC4_MARK, PORT69_FN1), | ||
659 | PINMUX_DATA(SCIFA0_RXD_MARK, PORT69_FN2), | ||
660 | PINMUX_DATA(GPS_PWRD_MARK, PORT70_FN1), | ||
661 | PINMUX_DATA(SCIFA0_CTS_MARK, PORT70_FN2), | ||
662 | PINMUX_DATA(GPS_IM_MARK, PORT71_FN1), | ||
663 | PINMUX_DATA(GPS_IS_MARK, PORT72_FN1), | ||
664 | PINMUX_DATA(GPS_QM_MARK, PORT73_FN1), | ||
665 | PINMUX_DATA(GPS_QS_MARK, PORT74_FN1), | ||
666 | PINMUX_DATA(SIUBOMC_MARK, PORT75_FN1), | ||
667 | PINMUX_DATA(TPU2TO0_MARK, PORT75_FN3), | ||
668 | PINMUX_DATA(SIUCKB_MARK, PORT76_FN1), | ||
669 | PINMUX_DATA(TPU2TO1_MARK, PORT76_FN3), | ||
670 | PINMUX_DATA(SIUBOLR_MARK, PORT77_FN1), | ||
671 | PINMUX_DATA(BBIF2_TSYNC_MARK, PORT77_FN2), | ||
672 | PINMUX_DATA(TPU2TO2_MARK, PORT77_FN3), | ||
673 | PINMUX_DATA(SIUBOBT_MARK, PORT78_FN1), | ||
674 | PINMUX_DATA(BBIF2_TSCK_MARK, PORT78_FN2), | ||
675 | PINMUX_DATA(TPU2TO3_MARK, PORT78_FN3), | ||
676 | PINMUX_DATA(SIUBOSLD_MARK, PORT79_FN1), | ||
677 | PINMUX_DATA(BBIF2_TXD_MARK, PORT79_FN2), | ||
678 | PINMUX_DATA(TPU3TO0_MARK, PORT79_FN3), | ||
679 | PINMUX_DATA(SIUBILR_MARK, PORT80_FN1), | ||
680 | PINMUX_DATA(TPU3TO1_MARK, PORT80_FN3), | ||
681 | PINMUX_DATA(SIUBIBT_MARK, PORT81_FN1), | ||
682 | PINMUX_DATA(TPU3TO2_MARK, PORT81_FN3), | ||
683 | PINMUX_DATA(SIUBISLD_MARK, PORT82_FN1), | ||
684 | PINMUX_DATA(TPU3TO3_MARK, PORT82_FN3), | ||
685 | PINMUX_DATA(NMI_MARK, PORT83_FN1), | ||
686 | PINMUX_DATA(TPU4TO0_MARK, PORT83_FN3), | ||
687 | PINMUX_DATA(DNPCM_M_MARK, PORT84_FN1), | ||
688 | PINMUX_DATA(TPU4TO1_MARK, PORT84_FN3), | ||
689 | PINMUX_DATA(TPU4TO2_MARK, PORT85_FN3), | ||
690 | PINMUX_DATA(TPU4TO3_MARK, PORT86_FN3), | ||
691 | PINMUX_DATA(IRQ_TMPB_MARK, PORT87_FN1), | ||
692 | PINMUX_DATA(PWEN_MARK, PORT88_FN1), | ||
693 | PINMUX_DATA(MFG1_OUT1_MARK, PORT88_FN2), | ||
694 | PINMUX_DATA(OVCN_MARK, PORT89_FN1), | ||
695 | PINMUX_DATA(MFG1_IN1_MARK, PORT89_FN2), | ||
696 | PINMUX_DATA(OVCN2_MARK, PORT90_FN1), | ||
697 | PINMUX_DATA(MFG1_IN2_MARK, PORT90_FN2), | ||
698 | |||
699 | /* 49-3 (FN) */ | ||
700 | PINMUX_DATA(RFSPO1_MARK, PORT91_FN1), | ||
701 | PINMUX_DATA(RFSPO2_MARK, PORT92_FN1), | ||
702 | PINMUX_DATA(RFSPO3_MARK, PORT93_FN1), | ||
703 | PINMUX_DATA(PORT93_VIO_CKO2_MARK, PORT93_FN2), | ||
704 | PINMUX_DATA(USBTERM_MARK, PORT94_FN1), | ||
705 | PINMUX_DATA(EXTLP_MARK, PORT94_FN2), | ||
706 | PINMUX_DATA(IDIN_MARK, PORT95_FN1), | ||
707 | PINMUX_DATA(SCIFA5_CTS_MARK, PORT96_FN1), | ||
708 | PINMUX_DATA(MFG0_IN1_MARK, PORT96_FN2), | ||
709 | PINMUX_DATA(SCIFA5_RTS_MARK, PORT97_FN1), | ||
710 | PINMUX_DATA(MFG0_IN2_MARK, PORT97_FN2), | ||
711 | PINMUX_DATA(SCIFA5_RXD_MARK, PORT98_FN1), | ||
712 | PINMUX_DATA(SCIFA5_TXD_MARK, PORT99_FN1), | ||
713 | PINMUX_DATA(SCIFA5_SCK_MARK, PORT100_FN1), | ||
714 | PINMUX_DATA(MFG0_OUT1_MARK, PORT100_FN2), | ||
715 | PINMUX_DATA(A0_EA0_MARK, PORT101_FN1), | ||
716 | PINMUX_DATA(BS_MARK, PORT101_FN2), | ||
717 | PINMUX_DATA(A14_EA14_MARK, PORT102_FN1), | ||
718 | PINMUX_DATA(PORT102_KEYOUT0_MARK, MSELBCR_MSEL2_0, PORT102_FN2), | ||
719 | PINMUX_DATA(A15_EA15_MARK, PORT103_FN1), | ||
720 | PINMUX_DATA(PORT103_KEYOUT1_MARK, MSELBCR_MSEL2_0, PORT103_FN2), | ||
721 | PINMUX_DATA(DV_CLKOL_MARK, PORT103_FN3), | ||
722 | PINMUX_DATA(A16_EA16_MARK, PORT104_FN1), | ||
723 | PINMUX_DATA(PORT104_KEYOUT2_MARK, MSELBCR_MSEL2_0, PORT104_FN2), | ||
724 | PINMUX_DATA(DV_VSYNCL_MARK, PORT104_FN3), | ||
725 | PINMUX_DATA(MSIOF0_SS1_MARK, PORT104_FN4), | ||
726 | PINMUX_DATA(A17_EA17_MARK, PORT105_FN1), | ||
727 | PINMUX_DATA(PORT105_KEYOUT3_MARK, MSELBCR_MSEL2_0, PORT105_FN2), | ||
728 | PINMUX_DATA(DV_HSYNCL_MARK, PORT105_FN3), | ||
729 | PINMUX_DATA(MSIOF0_TSYNC_MARK, PORT105_FN4), | ||
730 | PINMUX_DATA(A18_EA18_MARK, PORT106_FN1), | ||
731 | PINMUX_DATA(PORT106_KEYOUT4_MARK, MSELBCR_MSEL2_0, PORT106_FN2), | ||
732 | PINMUX_DATA(DV_DL0_MARK, PORT106_FN3), | ||
733 | PINMUX_DATA(MSIOF0_TSCK_MARK, PORT106_FN4), | ||
734 | PINMUX_DATA(A19_EA19_MARK, PORT107_FN1), | ||
735 | PINMUX_DATA(PORT107_KEYOUT5_MARK, MSELBCR_MSEL2_0, PORT107_FN2), | ||
736 | PINMUX_DATA(DV_DL1_MARK, PORT107_FN3), | ||
737 | PINMUX_DATA(MSIOF0_TXD_MARK, PORT107_FN4), | ||
738 | PINMUX_DATA(A20_EA20_MARK, PORT108_FN1), | ||
739 | PINMUX_DATA(PORT108_KEYIN0_MARK, MSELBCR_MSEL2_0, PORT108_FN2), | ||
740 | PINMUX_DATA(DV_DL2_MARK, PORT108_FN3), | ||
741 | PINMUX_DATA(MSIOF0_RSCK_MARK, PORT108_FN4), | ||
742 | PINMUX_DATA(A21_EA21_MARK, PORT109_FN1), | ||
743 | PINMUX_DATA(PORT109_KEYIN1_MARK, MSELBCR_MSEL2_0, PORT109_FN2), | ||
744 | PINMUX_DATA(DV_DL3_MARK, PORT109_FN3), | ||
745 | PINMUX_DATA(MSIOF0_RSYNC_MARK, PORT109_FN4), | ||
746 | PINMUX_DATA(A22_EA22_MARK, PORT110_FN1), | ||
747 | PINMUX_DATA(PORT110_KEYIN2_MARK, MSELBCR_MSEL2_0, PORT110_FN2), | ||
748 | PINMUX_DATA(DV_DL4_MARK, PORT110_FN3), | ||
749 | PINMUX_DATA(MSIOF0_MCK0_MARK, PORT110_FN4), | ||
750 | PINMUX_DATA(A23_EA23_MARK, PORT111_FN1), | ||
751 | PINMUX_DATA(PORT111_KEYIN3_MARK, MSELBCR_MSEL2_0, PORT111_FN2), | ||
752 | PINMUX_DATA(DV_DL5_MARK, PORT111_FN3), | ||
753 | PINMUX_DATA(MSIOF0_MCK1_MARK, PORT111_FN4), | ||
754 | PINMUX_DATA(A24_EA24_MARK, PORT112_FN1), | ||
755 | PINMUX_DATA(PORT112_KEYIN4_MARK, MSELBCR_MSEL2_0, PORT112_FN2), | ||
756 | PINMUX_DATA(DV_DL6_MARK, PORT112_FN3), | ||
757 | PINMUX_DATA(MSIOF0_RXD_MARK, PORT112_FN4), | ||
758 | PINMUX_DATA(A25_EA25_MARK, PORT113_FN1), | ||
759 | PINMUX_DATA(PORT113_KEYIN5_MARK, MSELBCR_MSEL2_0, PORT113_FN2), | ||
760 | PINMUX_DATA(DV_DL7_MARK, PORT113_FN3), | ||
761 | PINMUX_DATA(MSIOF0_SS2_MARK, PORT113_FN4), | ||
762 | PINMUX_DATA(A26_MARK, PORT114_FN1), | ||
763 | PINMUX_DATA(PORT113_KEYIN6_MARK, MSELBCR_MSEL2_0, PORT114_FN2), | ||
764 | PINMUX_DATA(DV_CLKIL_MARK, PORT114_FN3), | ||
765 | PINMUX_DATA(D0_ED0_NAF0_MARK, PORT115_FN1), | ||
766 | PINMUX_DATA(D1_ED1_NAF1_MARK, PORT116_FN1), | ||
767 | PINMUX_DATA(D2_ED2_NAF2_MARK, PORT117_FN1), | ||
768 | PINMUX_DATA(D3_ED3_NAF3_MARK, PORT118_FN1), | ||
769 | PINMUX_DATA(D4_ED4_NAF4_MARK, PORT119_FN1), | ||
770 | PINMUX_DATA(D5_ED5_NAF5_MARK, PORT120_FN1), | ||
771 | PINMUX_DATA(D6_ED6_NAF6_MARK, PORT121_FN1), | ||
772 | PINMUX_DATA(D7_ED7_NAF7_MARK, PORT122_FN1), | ||
773 | PINMUX_DATA(D8_ED8_NAF8_MARK, PORT123_FN1), | ||
774 | PINMUX_DATA(D9_ED9_NAF9_MARK, PORT124_FN1), | ||
775 | PINMUX_DATA(D10_ED10_NAF10_MARK, PORT125_FN1), | ||
776 | PINMUX_DATA(D11_ED11_NAF11_MARK, PORT126_FN1), | ||
777 | PINMUX_DATA(D12_ED12_NAF12_MARK, PORT127_FN1), | ||
778 | PINMUX_DATA(D13_ED13_NAF13_MARK, PORT128_FN1), | ||
779 | PINMUX_DATA(D14_ED14_NAF14_MARK, PORT129_FN1), | ||
780 | PINMUX_DATA(D15_ED15_NAF15_MARK, PORT130_FN1), | ||
781 | PINMUX_DATA(CS4_MARK, PORT131_FN1), | ||
782 | PINMUX_DATA(CS5A_MARK, PORT132_FN1), | ||
783 | PINMUX_DATA(CS5B_MARK, PORT133_FN1), | ||
784 | PINMUX_DATA(FCE1_MARK, PORT133_FN2), | ||
785 | PINMUX_DATA(CS6B_MARK, PORT134_FN1), | ||
786 | PINMUX_DATA(XCS2_MARK, PORT134_FN2), | ||
787 | PINMUX_DATA(FCE0_MARK, PORT135_FN1), | ||
788 | PINMUX_DATA(CS6A_MARK, PORT136_FN1), | ||
789 | PINMUX_DATA(DACK0_MARK, PORT136_FN2), | ||
790 | PINMUX_DATA(WAIT_MARK, PORT137_FN1), | ||
791 | PINMUX_DATA(DREQ0_MARK, PORT137_FN2), | ||
792 | PINMUX_DATA(RD_XRD_MARK, PORT138_FN1), | ||
793 | PINMUX_DATA(A27_MARK, PORT139_FN1), | ||
794 | PINMUX_DATA(RDWR_XWE_MARK, PORT139_FN2), | ||
795 | PINMUX_DATA(WE0_XWR0_FWE_MARK, PORT140_FN1), | ||
796 | PINMUX_DATA(WE1_XWR1_MARK, PORT141_FN1), | ||
797 | PINMUX_DATA(FRB_MARK, PORT142_FN1), | ||
798 | PINMUX_DATA(CKO_MARK, PORT143_FN1), | ||
799 | PINMUX_DATA(NBRSTOUT_MARK, PORT144_FN1), | ||
800 | PINMUX_DATA(NBRST_MARK, PORT145_FN1), | ||
801 | |||
802 | /* 49-4 (FN) */ | ||
803 | PINMUX_DATA(RFSPO0_MARK, PORT146_FN1), | ||
804 | PINMUX_DATA(PORT146_VIO_CKO2_MARK, PORT146_FN2), | ||
805 | PINMUX_DATA(TSTMD_MARK, PORT147_FN1), | ||
806 | PINMUX_DATA(VIO_VD_MARK, PORT148_FN1), | ||
807 | PINMUX_DATA(VIO_HD_MARK, PORT149_FN1), | ||
808 | PINMUX_DATA(VIO_D0_MARK, PORT150_FN1), | ||
809 | PINMUX_DATA(VIO_D1_MARK, PORT151_FN1), | ||
810 | PINMUX_DATA(VIO_D2_MARK, PORT152_FN1), | ||
811 | PINMUX_DATA(VIO_D3_MARK, PORT153_FN1), | ||
812 | PINMUX_DATA(VIO_D4_MARK, PORT154_FN1), | ||
813 | PINMUX_DATA(VIO_D5_MARK, PORT155_FN1), | ||
814 | PINMUX_DATA(VIO_D6_MARK, PORT156_FN1), | ||
815 | PINMUX_DATA(VIO_D7_MARK, PORT157_FN1), | ||
816 | PINMUX_DATA(VIO_D8_MARK, PORT158_FN1), | ||
817 | PINMUX_DATA(VIO_D9_MARK, PORT159_FN1), | ||
818 | PINMUX_DATA(VIO_D10_MARK, PORT160_FN1), | ||
819 | PINMUX_DATA(VIO_D11_MARK, PORT161_FN1), | ||
820 | PINMUX_DATA(VIO_D12_MARK, PORT162_FN1), | ||
821 | PINMUX_DATA(VIO_D13_MARK, PORT163_FN1), | ||
822 | PINMUX_DATA(VIO_D14_MARK, PORT164_FN1), | ||
823 | PINMUX_DATA(VIO_D15_MARK, PORT165_FN1), | ||
824 | PINMUX_DATA(VIO_CLK_MARK, PORT166_FN1), | ||
825 | PINMUX_DATA(VIO_FIELD_MARK, PORT167_FN1), | ||
826 | PINMUX_DATA(VIO_CKO_MARK, PORT168_FN1), | ||
827 | PINMUX_DATA(MFG3_IN1_MARK, PORT169_FN2), | ||
828 | PINMUX_DATA(MFG3_IN2_MARK, PORT170_FN2), | ||
829 | PINMUX_DATA(M9_SLCD_A01_MARK, PORT171_FN1), | ||
830 | PINMUX_DATA(MFG3_OUT1_MARK, PORT171_FN2), | ||
831 | PINMUX_DATA(TPU0TO0_MARK, PORT171_FN3), | ||
832 | PINMUX_DATA(M10_SLCD_CK1_MARK, PORT172_FN1), | ||
833 | PINMUX_DATA(MFG4_IN1_MARK, PORT172_FN2), | ||
834 | PINMUX_DATA(TPU0TO1_MARK, PORT172_FN3), | ||
835 | PINMUX_DATA(M11_SLCD_SO1_MARK, PORT173_FN1), | ||
836 | PINMUX_DATA(MFG4_IN2_MARK, PORT173_FN2), | ||
837 | PINMUX_DATA(TPU0TO2_MARK, PORT173_FN3), | ||
838 | PINMUX_DATA(M12_SLCD_CE1_MARK, PORT174_FN1), | ||
839 | PINMUX_DATA(MFG4_OUT1_MARK, PORT174_FN2), | ||
840 | PINMUX_DATA(TPU0TO3_MARK, PORT174_FN3), | ||
841 | PINMUX_DATA(LCDD0_MARK, PORT175_FN1), | ||
842 | PINMUX_DATA(PORT175_KEYOUT0_MARK, PORT175_FN2), | ||
843 | PINMUX_DATA(DV_D0_MARK, PORT175_FN3), | ||
844 | PINMUX_DATA(SIUCKA_MARK, PORT175_FN4), | ||
845 | PINMUX_DATA(MFG0_OUT2_MARK, PORT175_FN5), | ||
846 | PINMUX_DATA(LCDD1_MARK, PORT176_FN1), | ||
847 | PINMUX_DATA(PORT176_KEYOUT1_MARK, PORT176_FN2), | ||
848 | PINMUX_DATA(DV_D1_MARK, PORT176_FN3), | ||
849 | PINMUX_DATA(SIUAOLR_MARK, PORT176_FN4), | ||
850 | PINMUX_DATA(BBIF2_TSYNC1_MARK, PORT176_FN5), | ||
851 | PINMUX_DATA(LCDD2_MARK, PORT177_FN1), | ||
852 | PINMUX_DATA(PORT177_KEYOUT2_MARK, PORT177_FN2), | ||
853 | PINMUX_DATA(DV_D2_MARK, PORT177_FN3), | ||
854 | PINMUX_DATA(SIUAOBT_MARK, PORT177_FN4), | ||
855 | PINMUX_DATA(BBIF2_TSCK1_MARK, PORT177_FN5), | ||
856 | PINMUX_DATA(LCDD3_MARK, PORT178_FN1), | ||
857 | PINMUX_DATA(PORT178_KEYOUT3_MARK, PORT178_FN2), | ||
858 | PINMUX_DATA(DV_D3_MARK, PORT178_FN3), | ||
859 | PINMUX_DATA(SIUAOSLD_MARK, PORT178_FN4), | ||
860 | PINMUX_DATA(BBIF2_TXD1_MARK, PORT178_FN5), | ||
861 | PINMUX_DATA(LCDD4_MARK, PORT179_FN1), | ||
862 | PINMUX_DATA(PORT179_KEYOUT4_MARK, PORT179_FN2), | ||
863 | PINMUX_DATA(DV_D4_MARK, PORT179_FN3), | ||
864 | PINMUX_DATA(SIUAISPD_MARK, PORT179_FN4), | ||
865 | PINMUX_DATA(MFG1_OUT2_MARK, PORT179_FN5), | ||
866 | PINMUX_DATA(LCDD5_MARK, PORT180_FN1), | ||
867 | PINMUX_DATA(PORT180_KEYOUT5_MARK, PORT180_FN2), | ||
868 | PINMUX_DATA(DV_D5_MARK, PORT180_FN3), | ||
869 | PINMUX_DATA(SIUAILR_MARK, PORT180_FN4), | ||
870 | PINMUX_DATA(MFG2_OUT2_MARK, PORT180_FN5), | ||
871 | PINMUX_DATA(LCDD6_MARK, PORT181_FN1), | ||
872 | PINMUX_DATA(DV_D6_MARK, PORT181_FN3), | ||
873 | PINMUX_DATA(SIUAIBT_MARK, PORT181_FN4), | ||
874 | PINMUX_DATA(MFG3_OUT2_MARK, PORT181_FN5), | ||
875 | PINMUX_DATA(XWR2_MARK, PORT181_FN7), | ||
876 | PINMUX_DATA(LCDD7_MARK, PORT182_FN1), | ||
877 | PINMUX_DATA(DV_D7_MARK, PORT182_FN3), | ||
878 | PINMUX_DATA(SIUAISLD_MARK, PORT182_FN4), | ||
879 | PINMUX_DATA(MFG4_OUT2_MARK, PORT182_FN5), | ||
880 | PINMUX_DATA(XWR3_MARK, PORT182_FN7), | ||
881 | PINMUX_DATA(LCDD8_MARK, PORT183_FN1), | ||
882 | PINMUX_DATA(DV_D8_MARK, PORT183_FN3), | ||
883 | PINMUX_DATA(D16_MARK, PORT183_FN6), | ||
884 | PINMUX_DATA(ED16_MARK, PORT183_FN7), | ||
885 | PINMUX_DATA(LCDD9_MARK, PORT184_FN1), | ||
886 | PINMUX_DATA(DV_D9_MARK, PORT184_FN3), | ||
887 | PINMUX_DATA(D17_MARK, PORT184_FN6), | ||
888 | PINMUX_DATA(ED17_MARK, PORT184_FN7), | ||
889 | PINMUX_DATA(LCDD10_MARK, PORT185_FN1), | ||
890 | PINMUX_DATA(DV_D10_MARK, PORT185_FN3), | ||
891 | PINMUX_DATA(D18_MARK, PORT185_FN6), | ||
892 | PINMUX_DATA(ED18_MARK, PORT185_FN7), | ||
893 | PINMUX_DATA(LCDD11_MARK, PORT186_FN1), | ||
894 | PINMUX_DATA(DV_D11_MARK, PORT186_FN3), | ||
895 | PINMUX_DATA(D19_MARK, PORT186_FN6), | ||
896 | PINMUX_DATA(ED19_MARK, PORT186_FN7), | ||
897 | PINMUX_DATA(LCDD12_MARK, PORT187_FN1), | ||
898 | PINMUX_DATA(DV_D12_MARK, PORT187_FN3), | ||
899 | PINMUX_DATA(D20_MARK, PORT187_FN6), | ||
900 | PINMUX_DATA(ED20_MARK, PORT187_FN7), | ||
901 | PINMUX_DATA(LCDD13_MARK, PORT188_FN1), | ||
902 | PINMUX_DATA(DV_D13_MARK, PORT188_FN3), | ||
903 | PINMUX_DATA(D21_MARK, PORT188_FN6), | ||
904 | PINMUX_DATA(ED21_MARK, PORT188_FN7), | ||
905 | PINMUX_DATA(LCDD14_MARK, PORT189_FN1), | ||
906 | PINMUX_DATA(DV_D14_MARK, PORT189_FN3), | ||
907 | PINMUX_DATA(D22_MARK, PORT189_FN6), | ||
908 | PINMUX_DATA(ED22_MARK, PORT189_FN7), | ||
909 | PINMUX_DATA(LCDD15_MARK, PORT190_FN1), | ||
910 | PINMUX_DATA(DV_D15_MARK, PORT190_FN3), | ||
911 | PINMUX_DATA(D23_MARK, PORT190_FN6), | ||
912 | PINMUX_DATA(ED23_MARK, PORT190_FN7), | ||
913 | PINMUX_DATA(LCDD16_MARK, PORT191_FN1), | ||
914 | PINMUX_DATA(DV_HSYNC_MARK, PORT191_FN3), | ||
915 | PINMUX_DATA(D24_MARK, PORT191_FN6), | ||
916 | PINMUX_DATA(ED24_MARK, PORT191_FN7), | ||
917 | PINMUX_DATA(LCDD17_MARK, PORT192_FN1), | ||
918 | PINMUX_DATA(DV_VSYNC_MARK, PORT192_FN3), | ||
919 | PINMUX_DATA(D25_MARK, PORT192_FN6), | ||
920 | PINMUX_DATA(ED25_MARK, PORT192_FN7), | ||
921 | PINMUX_DATA(LCDD18_MARK, PORT193_FN1), | ||
922 | PINMUX_DATA(DREQ2_MARK, PORT193_FN2), | ||
923 | PINMUX_DATA(MSIOF0L_TSCK_MARK, PORT193_FN5), | ||
924 | PINMUX_DATA(D26_MARK, PORT193_FN6), | ||
925 | PINMUX_DATA(ED26_MARK, PORT193_FN7), | ||
926 | PINMUX_DATA(LCDD19_MARK, PORT194_FN1), | ||
927 | PINMUX_DATA(MSIOF0L_TSYNC_MARK, PORT194_FN5), | ||
928 | PINMUX_DATA(D27_MARK, PORT194_FN6), | ||
929 | PINMUX_DATA(ED27_MARK, PORT194_FN7), | ||
930 | PINMUX_DATA(LCDD20_MARK, PORT195_FN1), | ||
931 | PINMUX_DATA(TS_SPSYNC1_MARK, PORT195_FN2), | ||
932 | PINMUX_DATA(MSIOF0L_MCK0_MARK, PORT195_FN5), | ||
933 | PINMUX_DATA(D28_MARK, PORT195_FN6), | ||
934 | PINMUX_DATA(ED28_MARK, PORT195_FN7), | ||
935 | PINMUX_DATA(LCDD21_MARK, PORT196_FN1), | ||
936 | PINMUX_DATA(TS_SDAT1_MARK, PORT196_FN2), | ||
937 | PINMUX_DATA(MSIOF0L_MCK1_MARK, PORT196_FN5), | ||
938 | PINMUX_DATA(D29_MARK, PORT196_FN6), | ||
939 | PINMUX_DATA(ED29_MARK, PORT196_FN7), | ||
940 | PINMUX_DATA(LCDD22_MARK, PORT197_FN1), | ||
941 | PINMUX_DATA(TS_SDEN1_MARK, PORT197_FN2), | ||
942 | PINMUX_DATA(MSIOF0L_SS1_MARK, PORT197_FN5), | ||
943 | PINMUX_DATA(D30_MARK, PORT197_FN6), | ||
944 | PINMUX_DATA(ED30_MARK, PORT197_FN7), | ||
945 | PINMUX_DATA(LCDD23_MARK, PORT198_FN1), | ||
946 | PINMUX_DATA(TS_SCK1_MARK, PORT198_FN2), | ||
947 | PINMUX_DATA(MSIOF0L_SS2_MARK, PORT198_FN5), | ||
948 | PINMUX_DATA(D31_MARK, PORT198_FN6), | ||
949 | PINMUX_DATA(ED31_MARK, PORT198_FN7), | ||
950 | PINMUX_DATA(LCDDCK_MARK, PORT199_FN1), | ||
951 | PINMUX_DATA(LCDWR_MARK, PORT199_FN2), | ||
952 | PINMUX_DATA(DV_CKO_MARK, PORT199_FN3), | ||
953 | PINMUX_DATA(SIUAOSPD_MARK, PORT199_FN4), | ||
954 | PINMUX_DATA(LCDRD_MARK, PORT200_FN1), | ||
955 | PINMUX_DATA(DACK2_MARK, PORT200_FN2), | ||
956 | PINMUX_DATA(MSIOF0L_RSYNC_MARK, PORT200_FN5), | ||
957 | |||
958 | /* 49-5 (FN) */ | ||
959 | PINMUX_DATA(LCDHSYN_MARK, PORT201_FN1), | ||
960 | PINMUX_DATA(LCDCS_MARK, PORT201_FN2), | ||
961 | PINMUX_DATA(LCDCS2_MARK, PORT201_FN3), | ||
962 | PINMUX_DATA(DACK3_MARK, PORT201_FN4), | ||
963 | PINMUX_DATA(LCDDISP_MARK, PORT202_FN1), | ||
964 | PINMUX_DATA(LCDRS_MARK, PORT202_FN2), | ||
965 | PINMUX_DATA(DREQ3_MARK, PORT202_FN4), | ||
966 | PINMUX_DATA(MSIOF0L_RSCK_MARK, PORT202_FN5), | ||
967 | PINMUX_DATA(LCDCSYN_MARK, PORT203_FN1), | ||
968 | PINMUX_DATA(LCDCSYN2_MARK, PORT203_FN2), | ||
969 | PINMUX_DATA(DV_CKI_MARK, PORT203_FN3), | ||
970 | PINMUX_DATA(LCDLCLK_MARK, PORT204_FN1), | ||
971 | PINMUX_DATA(DREQ1_MARK, PORT204_FN3), | ||
972 | PINMUX_DATA(MSIOF0L_RXD_MARK, PORT204_FN5), | ||
973 | PINMUX_DATA(LCDDON_MARK, PORT205_FN1), | ||
974 | PINMUX_DATA(LCDDON2_MARK, PORT205_FN2), | ||
975 | PINMUX_DATA(DACK1_MARK, PORT205_FN3), | ||
976 | PINMUX_DATA(MSIOF0L_TXD_MARK, PORT205_FN5), | ||
977 | PINMUX_DATA(VIO_DR0_MARK, PORT206_FN1), | ||
978 | PINMUX_DATA(VIO_DR1_MARK, PORT207_FN1), | ||
979 | PINMUX_DATA(VIO_DR2_MARK, PORT208_FN1), | ||
980 | PINMUX_DATA(VIO_DR3_MARK, PORT209_FN1), | ||
981 | PINMUX_DATA(VIO_DR4_MARK, PORT210_FN1), | ||
982 | PINMUX_DATA(VIO_DR5_MARK, PORT211_FN1), | ||
983 | PINMUX_DATA(VIO_DR6_MARK, PORT212_FN1), | ||
984 | PINMUX_DATA(VIO_DR7_MARK, PORT213_FN1), | ||
985 | PINMUX_DATA(VIO_VDR_MARK, PORT214_FN1), | ||
986 | PINMUX_DATA(VIO_HDR_MARK, PORT215_FN1), | ||
987 | PINMUX_DATA(VIO_CLKR_MARK, PORT216_FN1), | ||
988 | PINMUX_DATA(VIO_CKOR_MARK, PORT217_FN1), | ||
989 | PINMUX_DATA(SCIFA1_TXD_MARK, PORT220_FN2), | ||
990 | PINMUX_DATA(GPS_PGFA0_MARK, PORT220_FN3), | ||
991 | PINMUX_DATA(SCIFA1_SCK_MARK, PORT221_FN2), | ||
992 | PINMUX_DATA(GPS_PGFA1_MARK, PORT221_FN3), | ||
993 | PINMUX_DATA(SCIFA1_RTS_MARK, PORT222_FN2), | ||
994 | PINMUX_DATA(GPS_EPPSINMON_MARK, PORT222_FN3), | ||
995 | PINMUX_DATA(SCIFA1_RXD_MARK, PORT223_FN2), | ||
996 | PINMUX_DATA(SCIFA1_CTS_MARK, PORT224_FN2), | ||
997 | PINMUX_DATA(MSIOF1_TXD_MARK, PORT225_FN1), | ||
998 | PINMUX_DATA(SCIFA1_TXD2_MARK, PORT225_FN2), | ||
999 | PINMUX_DATA(GPS_TXD_MARK, PORT225_FN3), | ||
1000 | PINMUX_DATA(MSIOF1_TSYNC_MARK, PORT226_FN1), | ||
1001 | PINMUX_DATA(SCIFA1_CTS2_MARK, PORT226_FN2), | ||
1002 | PINMUX_DATA(I2C_SDA2_MARK, PORT226_FN3), | ||
1003 | PINMUX_DATA(MSIOF1_TSCK_MARK, PORT227_FN1), | ||
1004 | PINMUX_DATA(SCIFA1_SCK2_MARK, PORT227_FN2), | ||
1005 | PINMUX_DATA(MSIOF1_RXD_MARK, PORT228_FN1), | ||
1006 | PINMUX_DATA(SCIFA1_RXD2_MARK, PORT228_FN2), | ||
1007 | PINMUX_DATA(GPS_RXD_MARK, PORT228_FN3), | ||
1008 | PINMUX_DATA(MSIOF1_RSCK_MARK, PORT229_FN1), | ||
1009 | PINMUX_DATA(SCIFA1_RTS2_MARK, PORT229_FN2), | ||
1010 | PINMUX_DATA(MSIOF1_RSYNC_MARK, PORT230_FN1), | ||
1011 | PINMUX_DATA(I2C_SCL2_MARK, PORT230_FN3), | ||
1012 | PINMUX_DATA(MSIOF1_MCK0_MARK, PORT231_FN1), | ||
1013 | PINMUX_DATA(MSIOF1_MCK1_MARK, PORT232_FN1), | ||
1014 | PINMUX_DATA(MSIOF1_SS1_MARK, PORT233_FN1), | ||
1015 | PINMUX_DATA(EDBGREQ3_MARK, PORT233_FN2), | ||
1016 | PINMUX_DATA(MSIOF1_SS2_MARK, PORT234_FN1), | ||
1017 | PINMUX_DATA(PORT236_IROUT_MARK, PORT236_FN1), | ||
1018 | PINMUX_DATA(IRDA_OUT_MARK, PORT236_FN2), | ||
1019 | PINMUX_DATA(IRDA_IN_MARK, PORT237_FN2), | ||
1020 | PINMUX_DATA(IRDA_FIRSEL_MARK, PORT238_FN1), | ||
1021 | PINMUX_DATA(TPU1TO0_MARK, PORT239_FN3), | ||
1022 | PINMUX_DATA(TS_SPSYNC3_MARK, PORT239_FN4), | ||
1023 | PINMUX_DATA(TPU1TO1_MARK, PORT240_FN3), | ||
1024 | PINMUX_DATA(TS_SDAT3_MARK, PORT240_FN4), | ||
1025 | PINMUX_DATA(TPU1TO2_MARK, PORT241_FN3), | ||
1026 | PINMUX_DATA(TS_SDEN3_MARK, PORT241_FN4), | ||
1027 | PINMUX_DATA(PORT241_MSIOF2_SS1_MARK, PORT241_FN5), | ||
1028 | PINMUX_DATA(TPU1TO3_MARK, PORT242_FN3), | ||
1029 | PINMUX_DATA(PORT242_MSIOF2_TSCK_MARK, PORT242_FN5), | ||
1030 | PINMUX_DATA(M13_BSW_MARK, PORT243_FN2), | ||
1031 | PINMUX_DATA(PORT243_MSIOF2_TSYNC_MARK, PORT243_FN5), | ||
1032 | PINMUX_DATA(M14_GSW_MARK, PORT244_FN2), | ||
1033 | PINMUX_DATA(PORT244_MSIOF2_TXD_MARK, PORT244_FN5), | ||
1034 | PINMUX_DATA(PORT245_IROUT_MARK, PORT245_FN1), | ||
1035 | PINMUX_DATA(M15_RSW_MARK, PORT245_FN2), | ||
1036 | PINMUX_DATA(SOUT3_MARK, PORT246_FN1), | ||
1037 | PINMUX_DATA(SCIFA2_TXD1_MARK, PORT246_FN2), | ||
1038 | PINMUX_DATA(SIN3_MARK, PORT247_FN1), | ||
1039 | PINMUX_DATA(SCIFA2_RXD1_MARK, PORT247_FN2), | ||
1040 | PINMUX_DATA(XRTS3_MARK, PORT248_FN1), | ||
1041 | PINMUX_DATA(SCIFA2_RTS1_MARK, PORT248_FN2), | ||
1042 | PINMUX_DATA(PORT248_MSIOF2_SS2_MARK, PORT248_FN5), | ||
1043 | PINMUX_DATA(XCTS3_MARK, PORT249_FN1), | ||
1044 | PINMUX_DATA(SCIFA2_CTS1_MARK, PORT249_FN2), | ||
1045 | PINMUX_DATA(PORT249_MSIOF2_RXD_MARK, PORT249_FN5), | ||
1046 | PINMUX_DATA(DINT_MARK, PORT250_FN1), | ||
1047 | PINMUX_DATA(SCIFA2_SCK1_MARK, PORT250_FN2), | ||
1048 | PINMUX_DATA(TS_SCK3_MARK, PORT250_FN4), | ||
1049 | PINMUX_DATA(SDHICLK0_MARK, PORT251_FN1), | ||
1050 | PINMUX_DATA(TCK2_MARK, PORT251_FN2), | ||
1051 | PINMUX_DATA(SDHICD0_MARK, PORT252_FN1), | ||
1052 | PINMUX_DATA(SDHID0_0_MARK, PORT253_FN1), | ||
1053 | PINMUX_DATA(TMS2_MARK, PORT253_FN2), | ||
1054 | PINMUX_DATA(SDHID0_1_MARK, PORT254_FN1), | ||
1055 | PINMUX_DATA(TDO2_MARK, PORT254_FN2), | ||
1056 | PINMUX_DATA(SDHID0_2_MARK, PORT255_FN1), | ||
1057 | PINMUX_DATA(TDI2_MARK, PORT255_FN2), | ||
1058 | PINMUX_DATA(SDHID0_3_MARK, PORT256_FN1), | ||
1059 | PINMUX_DATA(RTCK2_MARK, PORT256_FN2), | ||
1060 | |||
1061 | /* 49-6 (FN) */ | ||
1062 | PINMUX_DATA(SDHICMD0_MARK, PORT257_FN1), | ||
1063 | PINMUX_DATA(TRST2_MARK, PORT257_FN2), | ||
1064 | PINMUX_DATA(SDHIWP0_MARK, PORT258_FN1), | ||
1065 | PINMUX_DATA(EDBGREQ2_MARK, PORT258_FN2), | ||
1066 | PINMUX_DATA(SDHICLK1_MARK, PORT259_FN1), | ||
1067 | PINMUX_DATA(TCK3_MARK, PORT259_FN4), | ||
1068 | PINMUX_DATA(SDHID1_0_MARK, PORT260_FN1), | ||
1069 | PINMUX_DATA(M11_SLCD_SO2_MARK, PORT260_FN2), | ||
1070 | PINMUX_DATA(TS_SPSYNC2_MARK, PORT260_FN3), | ||
1071 | PINMUX_DATA(TMS3_MARK, PORT260_FN4), | ||
1072 | PINMUX_DATA(SDHID1_1_MARK, PORT261_FN1), | ||
1073 | PINMUX_DATA(M9_SLCD_AO2_MARK, PORT261_FN2), | ||
1074 | PINMUX_DATA(TS_SDAT2_MARK, PORT261_FN3), | ||
1075 | PINMUX_DATA(TDO3_MARK, PORT261_FN4), | ||
1076 | PINMUX_DATA(SDHID1_2_MARK, PORT262_FN1), | ||
1077 | PINMUX_DATA(M10_SLCD_CK2_MARK, PORT262_FN2), | ||
1078 | PINMUX_DATA(TS_SDEN2_MARK, PORT262_FN3), | ||
1079 | PINMUX_DATA(TDI3_MARK, PORT262_FN4), | ||
1080 | PINMUX_DATA(SDHID1_3_MARK, PORT263_FN1), | ||
1081 | PINMUX_DATA(M12_SLCD_CE2_MARK, PORT263_FN2), | ||
1082 | PINMUX_DATA(TS_SCK2_MARK, PORT263_FN3), | ||
1083 | PINMUX_DATA(RTCK3_MARK, PORT263_FN4), | ||
1084 | PINMUX_DATA(SDHICMD1_MARK, PORT264_FN1), | ||
1085 | PINMUX_DATA(TRST3_MARK, PORT264_FN4), | ||
1086 | PINMUX_DATA(SDHICLK2_MARK, PORT265_FN1), | ||
1087 | PINMUX_DATA(SCIFB_SCK_MARK, PORT265_FN2), | ||
1088 | PINMUX_DATA(SDHID2_0_MARK, PORT266_FN1), | ||
1089 | PINMUX_DATA(SCIFB_TXD_MARK, PORT266_FN2), | ||
1090 | PINMUX_DATA(SDHID2_1_MARK, PORT267_FN1), | ||
1091 | PINMUX_DATA(SCIFB_CTS_MARK, PORT267_FN2), | ||
1092 | PINMUX_DATA(SDHID2_2_MARK, PORT268_FN1), | ||
1093 | PINMUX_DATA(SCIFB_RXD_MARK, PORT268_FN2), | ||
1094 | PINMUX_DATA(SDHID2_3_MARK, PORT269_FN1), | ||
1095 | PINMUX_DATA(SCIFB_RTS_MARK, PORT269_FN2), | ||
1096 | PINMUX_DATA(SDHICMD2_MARK, PORT270_FN1), | ||
1097 | PINMUX_DATA(RESETOUTS_MARK, PORT271_FN1), | ||
1098 | PINMUX_DATA(DIVLOCK_MARK, PORT272_FN1), | ||
1099 | }; | ||
1100 | |||
1101 | #define _GPIO_PORT(pfx, sfx) PINMUX_GPIO(GPIO_PORT##pfx, PORT##pfx##_DATA) | ||
1102 | #define GPIO_PORT_273() _273(_GPIO_PORT, , unused) | ||
1103 | #define GPIO_FN(str) PINMUX_GPIO(GPIO_FN_##str, str##_MARK) | ||
1104 | |||
1105 | static struct pinmux_gpio pinmux_gpios[] = { | ||
1106 | /* 49-1 -> 49-6 (GPIO) */ | ||
1107 | GPIO_PORT_273(), | ||
1108 | |||
1109 | /* Special Pull-up / Pull-down Functions */ | ||
1110 | GPIO_FN(PORT48_KEYIN0_PU), GPIO_FN(PORT49_KEYIN1_PU), | ||
1111 | GPIO_FN(PORT50_KEYIN2_PU), GPIO_FN(PORT55_KEYIN3_PU), | ||
1112 | GPIO_FN(PORT56_KEYIN4_PU), GPIO_FN(PORT57_KEYIN5_PU), | ||
1113 | GPIO_FN(PORT58_KEYIN6_PU), | ||
1114 | |||
1115 | /* 49-1 (FN) */ | ||
1116 | GPIO_FN(VBUS0), GPIO_FN(CPORT0), GPIO_FN(CPORT1), GPIO_FN(CPORT2), | ||
1117 | GPIO_FN(CPORT3), GPIO_FN(CPORT4), GPIO_FN(CPORT5), GPIO_FN(CPORT6), | ||
1118 | GPIO_FN(CPORT7), GPIO_FN(CPORT8), GPIO_FN(CPORT9), GPIO_FN(CPORT10), | ||
1119 | GPIO_FN(CPORT11), GPIO_FN(SIN2), GPIO_FN(CPORT12), GPIO_FN(XCTS2), | ||
1120 | GPIO_FN(CPORT13), GPIO_FN(RFSPO4), GPIO_FN(CPORT14), GPIO_FN(RFSPO5), | ||
1121 | GPIO_FN(CPORT15), GPIO_FN(CPORT16), GPIO_FN(CPORT17), GPIO_FN(SOUT2), | ||
1122 | GPIO_FN(CPORT18), GPIO_FN(XRTS2), GPIO_FN(CPORT19), GPIO_FN(CPORT20), | ||
1123 | GPIO_FN(RFSPO6), GPIO_FN(CPORT21), GPIO_FN(STATUS0), GPIO_FN(CPORT22), | ||
1124 | GPIO_FN(STATUS1), GPIO_FN(CPORT23), GPIO_FN(STATUS2), GPIO_FN(RFSPO7), | ||
1125 | GPIO_FN(MPORT0), GPIO_FN(MPORT1), GPIO_FN(B_SYNLD1), GPIO_FN(B_SYNLD2), | ||
1126 | GPIO_FN(XMAINPS), GPIO_FN(XDIVPS), GPIO_FN(XIDRST), GPIO_FN(IDCLK), | ||
1127 | GPIO_FN(IDIO), GPIO_FN(SOUT1), GPIO_FN(SCIFA4_TXD), | ||
1128 | GPIO_FN(M02_BERDAT), GPIO_FN(SIN1), GPIO_FN(SCIFA4_RXD), GPIO_FN(XWUP), | ||
1129 | GPIO_FN(XRTS1), GPIO_FN(SCIFA4_RTS), GPIO_FN(M03_BERCLK), | ||
1130 | GPIO_FN(XCTS1), GPIO_FN(SCIFA4_CTS), | ||
1131 | |||
1132 | /* 49-2 (FN) */ | ||
1133 | GPIO_FN(HSU_IQ_AGC6), GPIO_FN(MFG2_IN2), GPIO_FN(MSIOF2_MCK0), | ||
1134 | GPIO_FN(HSU_IQ_AGC5), GPIO_FN(MFG2_IN1), GPIO_FN(MSIOF2_MCK1), | ||
1135 | GPIO_FN(HSU_IQ_AGC4), GPIO_FN(MSIOF2_RSYNC), | ||
1136 | GPIO_FN(HSU_IQ_AGC3), GPIO_FN(MFG2_OUT1), GPIO_FN(MSIOF2_RSCK), | ||
1137 | GPIO_FN(HSU_IQ_AGC2), GPIO_FN(PORT42_KEYOUT0), | ||
1138 | GPIO_FN(HSU_IQ_AGC1), GPIO_FN(PORT43_KEYOUT1), | ||
1139 | GPIO_FN(HSU_IQ_AGC0), GPIO_FN(PORT44_KEYOUT2), | ||
1140 | GPIO_FN(HSU_IQ_AGC_ST), GPIO_FN(PORT45_KEYOUT3), | ||
1141 | GPIO_FN(HSU_IQ_PDO), GPIO_FN(PORT46_KEYOUT4), | ||
1142 | GPIO_FN(HSU_IQ_PYO), GPIO_FN(PORT47_KEYOUT5), | ||
1143 | GPIO_FN(HSU_EN_TXMUX_G3MO), GPIO_FN(PORT48_KEYIN0), | ||
1144 | GPIO_FN(HSU_I_TXMUX_G3MO), GPIO_FN(PORT49_KEYIN1), | ||
1145 | GPIO_FN(HSU_Q_TXMUX_G3MO), GPIO_FN(PORT50_KEYIN2), | ||
1146 | GPIO_FN(HSU_SYO), GPIO_FN(PORT51_MSIOF2_TSYNC), | ||
1147 | GPIO_FN(HSU_SDO), GPIO_FN(PORT52_MSIOF2_TSCK), | ||
1148 | GPIO_FN(HSU_TGTTI_G3MO), GPIO_FN(PORT53_MSIOF2_TXD), | ||
1149 | GPIO_FN(B_TIME_STAMP), GPIO_FN(PORT54_MSIOF2_RXD), | ||
1150 | GPIO_FN(HSU_SDI), GPIO_FN(PORT55_KEYIN3), | ||
1151 | GPIO_FN(HSU_SCO), GPIO_FN(PORT56_KEYIN4), | ||
1152 | GPIO_FN(HSU_DREQ), GPIO_FN(PORT57_KEYIN5), | ||
1153 | GPIO_FN(HSU_DACK), GPIO_FN(PORT58_KEYIN6), | ||
1154 | GPIO_FN(HSU_CLK61M), GPIO_FN(PORT59_MSIOF2_SS1), | ||
1155 | GPIO_FN(HSU_XRST), GPIO_FN(PORT60_MSIOF2_SS2), | ||
1156 | GPIO_FN(PCMCLKO), GPIO_FN(SYNC8KO), GPIO_FN(DNPCM_A), GPIO_FN(UPPCM_A), | ||
1157 | GPIO_FN(XTALB1L), | ||
1158 | GPIO_FN(GPS_AGC1), GPIO_FN(SCIFA0_RTS), | ||
1159 | GPIO_FN(GPS_AGC2), GPIO_FN(SCIFA0_SCK), | ||
1160 | GPIO_FN(GPS_AGC3), GPIO_FN(SCIFA0_TXD), | ||
1161 | GPIO_FN(GPS_AGC4), GPIO_FN(SCIFA0_RXD), | ||
1162 | GPIO_FN(GPS_PWRD), GPIO_FN(SCIFA0_CTS), | ||
1163 | GPIO_FN(GPS_IM), GPIO_FN(GPS_IS), GPIO_FN(GPS_QM), GPIO_FN(GPS_QS), | ||
1164 | GPIO_FN(SIUBOMC), GPIO_FN(TPU2TO0), | ||
1165 | GPIO_FN(SIUCKB), GPIO_FN(TPU2TO1), | ||
1166 | GPIO_FN(SIUBOLR), GPIO_FN(BBIF2_TSYNC), GPIO_FN(TPU2TO2), | ||
1167 | GPIO_FN(SIUBOBT), GPIO_FN(BBIF2_TSCK), GPIO_FN(TPU2TO3), | ||
1168 | GPIO_FN(SIUBOSLD), GPIO_FN(BBIF2_TXD), GPIO_FN(TPU3TO0), | ||
1169 | GPIO_FN(SIUBILR), GPIO_FN(TPU3TO1), | ||
1170 | GPIO_FN(SIUBIBT), GPIO_FN(TPU3TO2), | ||
1171 | GPIO_FN(SIUBISLD), GPIO_FN(TPU3TO3), | ||
1172 | GPIO_FN(NMI), GPIO_FN(TPU4TO0), | ||
1173 | GPIO_FN(DNPCM_M), GPIO_FN(TPU4TO1), GPIO_FN(TPU4TO2), GPIO_FN(TPU4TO3), | ||
1174 | GPIO_FN(IRQ_TMPB), | ||
1175 | GPIO_FN(PWEN), GPIO_FN(MFG1_OUT1), | ||
1176 | GPIO_FN(OVCN), GPIO_FN(MFG1_IN1), | ||
1177 | GPIO_FN(OVCN2), GPIO_FN(MFG1_IN2), | ||
1178 | |||
1179 | /* 49-3 (FN) */ | ||
1180 | GPIO_FN(RFSPO1), GPIO_FN(RFSPO2), GPIO_FN(RFSPO3), | ||
1181 | GPIO_FN(PORT93_VIO_CKO2), | ||
1182 | GPIO_FN(USBTERM), GPIO_FN(EXTLP), GPIO_FN(IDIN), | ||
1183 | GPIO_FN(SCIFA5_CTS), GPIO_FN(MFG0_IN1), | ||
1184 | GPIO_FN(SCIFA5_RTS), GPIO_FN(MFG0_IN2), | ||
1185 | GPIO_FN(SCIFA5_RXD), | ||
1186 | GPIO_FN(SCIFA5_TXD), | ||
1187 | GPIO_FN(SCIFA5_SCK), GPIO_FN(MFG0_OUT1), | ||
1188 | GPIO_FN(A0_EA0), GPIO_FN(BS), | ||
1189 | GPIO_FN(A14_EA14), GPIO_FN(PORT102_KEYOUT0), | ||
1190 | GPIO_FN(A15_EA15), GPIO_FN(PORT103_KEYOUT1), GPIO_FN(DV_CLKOL), | ||
1191 | GPIO_FN(A16_EA16), GPIO_FN(PORT104_KEYOUT2), | ||
1192 | GPIO_FN(DV_VSYNCL), GPIO_FN(MSIOF0_SS1), | ||
1193 | GPIO_FN(A17_EA17), GPIO_FN(PORT105_KEYOUT3), | ||
1194 | GPIO_FN(DV_HSYNCL), GPIO_FN(MSIOF0_TSYNC), | ||
1195 | GPIO_FN(A18_EA18), GPIO_FN(PORT106_KEYOUT4), | ||
1196 | GPIO_FN(DV_DL0), GPIO_FN(MSIOF0_TSCK), | ||
1197 | GPIO_FN(A19_EA19), GPIO_FN(PORT107_KEYOUT5), | ||
1198 | GPIO_FN(DV_DL1), GPIO_FN(MSIOF0_TXD), | ||
1199 | GPIO_FN(A20_EA20), GPIO_FN(PORT108_KEYIN0), | ||
1200 | GPIO_FN(DV_DL2), GPIO_FN(MSIOF0_RSCK), | ||
1201 | GPIO_FN(A21_EA21), GPIO_FN(PORT109_KEYIN1), | ||
1202 | GPIO_FN(DV_DL3), GPIO_FN(MSIOF0_RSYNC), | ||
1203 | GPIO_FN(A22_EA22), GPIO_FN(PORT110_KEYIN2), | ||
1204 | GPIO_FN(DV_DL4), GPIO_FN(MSIOF0_MCK0), | ||
1205 | GPIO_FN(A23_EA23), GPIO_FN(PORT111_KEYIN3), | ||
1206 | GPIO_FN(DV_DL5), GPIO_FN(MSIOF0_MCK1), | ||
1207 | GPIO_FN(A24_EA24), GPIO_FN(PORT112_KEYIN4), | ||
1208 | GPIO_FN(DV_DL6), GPIO_FN(MSIOF0_RXD), | ||
1209 | GPIO_FN(A25_EA25), GPIO_FN(PORT113_KEYIN5), | ||
1210 | GPIO_FN(DV_DL7), GPIO_FN(MSIOF0_SS2), | ||
1211 | GPIO_FN(A26), GPIO_FN(PORT113_KEYIN6), GPIO_FN(DV_CLKIL), | ||
1212 | GPIO_FN(D0_ED0_NAF0), GPIO_FN(D1_ED1_NAF1), GPIO_FN(D2_ED2_NAF2), | ||
1213 | GPIO_FN(D3_ED3_NAF3), GPIO_FN(D4_ED4_NAF4), GPIO_FN(D5_ED5_NAF5), | ||
1214 | GPIO_FN(D6_ED6_NAF6), GPIO_FN(D7_ED7_NAF7), GPIO_FN(D8_ED8_NAF8), | ||
1215 | GPIO_FN(D9_ED9_NAF9), GPIO_FN(D10_ED10_NAF10), GPIO_FN(D11_ED11_NAF11), | ||
1216 | GPIO_FN(D12_ED12_NAF12), GPIO_FN(D13_ED13_NAF13), | ||
1217 | GPIO_FN(D14_ED14_NAF14), GPIO_FN(D15_ED15_NAF15), | ||
1218 | GPIO_FN(CS4), GPIO_FN(CS5A), GPIO_FN(CS5B), GPIO_FN(FCE1), | ||
1219 | GPIO_FN(CS6B), GPIO_FN(XCS2), GPIO_FN(FCE0), GPIO_FN(CS6A), | ||
1220 | GPIO_FN(DACK0), GPIO_FN(WAIT), GPIO_FN(DREQ0), GPIO_FN(RD_XRD), | ||
1221 | GPIO_FN(A27), GPIO_FN(RDWR_XWE), GPIO_FN(WE0_XWR0_FWE), | ||
1222 | GPIO_FN(WE1_XWR1), GPIO_FN(FRB), GPIO_FN(CKO), | ||
1223 | GPIO_FN(NBRSTOUT), GPIO_FN(NBRST), | ||
1224 | |||
1225 | /* 49-4 (FN) */ | ||
1226 | GPIO_FN(RFSPO0), GPIO_FN(PORT146_VIO_CKO2), GPIO_FN(TSTMD), | ||
1227 | GPIO_FN(VIO_VD), GPIO_FN(VIO_HD), | ||
1228 | GPIO_FN(VIO_D0), GPIO_FN(VIO_D1), GPIO_FN(VIO_D2), | ||
1229 | GPIO_FN(VIO_D3), GPIO_FN(VIO_D4), GPIO_FN(VIO_D5), | ||
1230 | GPIO_FN(VIO_D6), GPIO_FN(VIO_D7), GPIO_FN(VIO_D8), | ||
1231 | GPIO_FN(VIO_D9), GPIO_FN(VIO_D10), GPIO_FN(VIO_D11), | ||
1232 | GPIO_FN(VIO_D12), GPIO_FN(VIO_D13), GPIO_FN(VIO_D14), | ||
1233 | GPIO_FN(VIO_D15), GPIO_FN(VIO_CLK), GPIO_FN(VIO_FIELD), | ||
1234 | GPIO_FN(VIO_CKO), | ||
1235 | GPIO_FN(MFG3_IN1), GPIO_FN(MFG3_IN2), | ||
1236 | GPIO_FN(M9_SLCD_A01), GPIO_FN(MFG3_OUT1), GPIO_FN(TPU0TO0), | ||
1237 | GPIO_FN(M10_SLCD_CK1), GPIO_FN(MFG4_IN1), GPIO_FN(TPU0TO1), | ||
1238 | GPIO_FN(M11_SLCD_SO1), GPIO_FN(MFG4_IN2), GPIO_FN(TPU0TO2), | ||
1239 | GPIO_FN(M12_SLCD_CE1), GPIO_FN(MFG4_OUT1), GPIO_FN(TPU0TO3), | ||
1240 | GPIO_FN(LCDD0), GPIO_FN(PORT175_KEYOUT0), GPIO_FN(DV_D0), | ||
1241 | GPIO_FN(SIUCKA), GPIO_FN(MFG0_OUT2), | ||
1242 | GPIO_FN(LCDD1), GPIO_FN(PORT176_KEYOUT1), GPIO_FN(DV_D1), | ||
1243 | GPIO_FN(SIUAOLR), GPIO_FN(BBIF2_TSYNC1), | ||
1244 | GPIO_FN(LCDD2), GPIO_FN(PORT177_KEYOUT2), GPIO_FN(DV_D2), | ||
1245 | GPIO_FN(SIUAOBT), GPIO_FN(BBIF2_TSCK1), | ||
1246 | GPIO_FN(LCDD3), GPIO_FN(PORT178_KEYOUT3), GPIO_FN(DV_D3), | ||
1247 | GPIO_FN(SIUAOSLD), GPIO_FN(BBIF2_TXD1), | ||
1248 | GPIO_FN(LCDD4), GPIO_FN(PORT179_KEYOUT4), GPIO_FN(DV_D4), | ||
1249 | GPIO_FN(SIUAISPD), GPIO_FN(MFG1_OUT2), | ||
1250 | GPIO_FN(LCDD5), GPIO_FN(PORT180_KEYOUT5), GPIO_FN(DV_D5), | ||
1251 | GPIO_FN(SIUAILR), GPIO_FN(MFG2_OUT2), | ||
1252 | GPIO_FN(LCDD6), GPIO_FN(DV_D6), | ||
1253 | GPIO_FN(SIUAIBT), GPIO_FN(MFG3_OUT2), GPIO_FN(XWR2), | ||
1254 | GPIO_FN(LCDD7), GPIO_FN(DV_D7), | ||
1255 | GPIO_FN(SIUAISLD), GPIO_FN(MFG4_OUT2), GPIO_FN(XWR3), | ||
1256 | GPIO_FN(LCDD8), GPIO_FN(DV_D8), GPIO_FN(D16), GPIO_FN(ED16), | ||
1257 | GPIO_FN(LCDD9), GPIO_FN(DV_D9), GPIO_FN(D17), GPIO_FN(ED17), | ||
1258 | GPIO_FN(LCDD10), GPIO_FN(DV_D10), GPIO_FN(D18), GPIO_FN(ED18), | ||
1259 | GPIO_FN(LCDD11), GPIO_FN(DV_D11), GPIO_FN(D19), GPIO_FN(ED19), | ||
1260 | GPIO_FN(LCDD12), GPIO_FN(DV_D12), GPIO_FN(D20), GPIO_FN(ED20), | ||
1261 | GPIO_FN(LCDD13), GPIO_FN(DV_D13), GPIO_FN(D21), GPIO_FN(ED21), | ||
1262 | GPIO_FN(LCDD14), GPIO_FN(DV_D14), GPIO_FN(D22), GPIO_FN(ED22), | ||
1263 | GPIO_FN(LCDD15), GPIO_FN(DV_D15), GPIO_FN(D23), GPIO_FN(ED23), | ||
1264 | GPIO_FN(LCDD16), GPIO_FN(DV_HSYNC), GPIO_FN(D24), GPIO_FN(ED24), | ||
1265 | GPIO_FN(LCDD17), GPIO_FN(DV_VSYNC), GPIO_FN(D25), GPIO_FN(ED25), | ||
1266 | GPIO_FN(LCDD18), GPIO_FN(DREQ2), GPIO_FN(MSIOF0L_TSCK), | ||
1267 | GPIO_FN(D26), GPIO_FN(ED26), | ||
1268 | GPIO_FN(LCDD19), GPIO_FN(MSIOF0L_TSYNC), | ||
1269 | GPIO_FN(D27), GPIO_FN(ED27), | ||
1270 | GPIO_FN(LCDD20), GPIO_FN(TS_SPSYNC1), GPIO_FN(MSIOF0L_MCK0), | ||
1271 | GPIO_FN(D28), GPIO_FN(ED28), | ||
1272 | GPIO_FN(LCDD21), GPIO_FN(TS_SDAT1), GPIO_FN(MSIOF0L_MCK1), | ||
1273 | GPIO_FN(D29), GPIO_FN(ED29), | ||
1274 | GPIO_FN(LCDD22), GPIO_FN(TS_SDEN1), GPIO_FN(MSIOF0L_SS1), | ||
1275 | GPIO_FN(D30), GPIO_FN(ED30), | ||
1276 | GPIO_FN(LCDD23), GPIO_FN(TS_SCK1), GPIO_FN(MSIOF0L_SS2), | ||
1277 | GPIO_FN(D31), GPIO_FN(ED31), | ||
1278 | GPIO_FN(LCDDCK), GPIO_FN(LCDWR), GPIO_FN(DV_CKO), GPIO_FN(SIUAOSPD), | ||
1279 | GPIO_FN(LCDRD), GPIO_FN(DACK2), GPIO_FN(MSIOF0L_RSYNC), | ||
1280 | |||
1281 | /* 49-5 (FN) */ | ||
1282 | GPIO_FN(LCDHSYN), GPIO_FN(LCDCS), GPIO_FN(LCDCS2), GPIO_FN(DACK3), | ||
1283 | GPIO_FN(LCDDISP), GPIO_FN(LCDRS), GPIO_FN(DREQ3), GPIO_FN(MSIOF0L_RSCK), | ||
1284 | GPIO_FN(LCDCSYN), GPIO_FN(LCDCSYN2), GPIO_FN(DV_CKI), | ||
1285 | GPIO_FN(LCDLCLK), GPIO_FN(DREQ1), GPIO_FN(MSIOF0L_RXD), | ||
1286 | GPIO_FN(LCDDON), GPIO_FN(LCDDON2), GPIO_FN(DACK1), GPIO_FN(MSIOF0L_TXD), | ||
1287 | GPIO_FN(VIO_DR0), GPIO_FN(VIO_DR1), GPIO_FN(VIO_DR2), GPIO_FN(VIO_DR3), | ||
1288 | GPIO_FN(VIO_DR4), GPIO_FN(VIO_DR5), GPIO_FN(VIO_DR6), GPIO_FN(VIO_DR7), | ||
1289 | GPIO_FN(VIO_VDR), GPIO_FN(VIO_HDR), | ||
1290 | GPIO_FN(VIO_CLKR), GPIO_FN(VIO_CKOR), | ||
1291 | GPIO_FN(SCIFA1_TXD), GPIO_FN(GPS_PGFA0), | ||
1292 | GPIO_FN(SCIFA1_SCK), GPIO_FN(GPS_PGFA1), | ||
1293 | GPIO_FN(SCIFA1_RTS), GPIO_FN(GPS_EPPSINMON), | ||
1294 | GPIO_FN(SCIFA1_RXD), GPIO_FN(SCIFA1_CTS), | ||
1295 | GPIO_FN(MSIOF1_TXD), GPIO_FN(SCIFA1_TXD2), GPIO_FN(GPS_TXD), | ||
1296 | GPIO_FN(MSIOF1_TSYNC), GPIO_FN(SCIFA1_CTS2), GPIO_FN(I2C_SDA2), | ||
1297 | GPIO_FN(MSIOF1_TSCK), GPIO_FN(SCIFA1_SCK2), | ||
1298 | GPIO_FN(MSIOF1_RXD), GPIO_FN(SCIFA1_RXD2), GPIO_FN(GPS_RXD), | ||
1299 | GPIO_FN(MSIOF1_RSCK), GPIO_FN(SCIFA1_RTS2), | ||
1300 | GPIO_FN(MSIOF1_RSYNC), GPIO_FN(I2C_SCL2), | ||
1301 | GPIO_FN(MSIOF1_MCK0), GPIO_FN(MSIOF1_MCK1), | ||
1302 | GPIO_FN(MSIOF1_SS1), GPIO_FN(EDBGREQ3), | ||
1303 | GPIO_FN(MSIOF1_SS2), | ||
1304 | GPIO_FN(PORT236_IROUT), GPIO_FN(IRDA_OUT), | ||
1305 | GPIO_FN(IRDA_IN), GPIO_FN(IRDA_FIRSEL), | ||
1306 | GPIO_FN(TPU1TO0), GPIO_FN(TS_SPSYNC3), | ||
1307 | GPIO_FN(TPU1TO1), GPIO_FN(TS_SDAT3), | ||
1308 | GPIO_FN(TPU1TO2), GPIO_FN(TS_SDEN3), GPIO_FN(PORT241_MSIOF2_SS1), | ||
1309 | GPIO_FN(TPU1TO3), GPIO_FN(PORT242_MSIOF2_TSCK), | ||
1310 | GPIO_FN(M13_BSW), GPIO_FN(PORT243_MSIOF2_TSYNC), | ||
1311 | GPIO_FN(M14_GSW), GPIO_FN(PORT244_MSIOF2_TXD), | ||
1312 | GPIO_FN(PORT245_IROUT), GPIO_FN(M15_RSW), | ||
1313 | GPIO_FN(SOUT3), GPIO_FN(SCIFA2_TXD1), | ||
1314 | GPIO_FN(SIN3), GPIO_FN(SCIFA2_RXD1), | ||
1315 | GPIO_FN(XRTS3), GPIO_FN(SCIFA2_RTS1), GPIO_FN(PORT248_MSIOF2_SS2), | ||
1316 | GPIO_FN(XCTS3), GPIO_FN(SCIFA2_CTS1), GPIO_FN(PORT249_MSIOF2_RXD), | ||
1317 | GPIO_FN(DINT), GPIO_FN(SCIFA2_SCK1), GPIO_FN(TS_SCK3), | ||
1318 | GPIO_FN(SDHICLK0), GPIO_FN(TCK2), | ||
1319 | GPIO_FN(SDHICD0), | ||
1320 | GPIO_FN(SDHID0_0), GPIO_FN(TMS2), | ||
1321 | GPIO_FN(SDHID0_1), GPIO_FN(TDO2), | ||
1322 | GPIO_FN(SDHID0_2), GPIO_FN(TDI2), | ||
1323 | GPIO_FN(SDHID0_3), GPIO_FN(RTCK2), | ||
1324 | |||
1325 | /* 49-6 (FN) */ | ||
1326 | GPIO_FN(SDHICMD0), GPIO_FN(TRST2), | ||
1327 | GPIO_FN(SDHIWP0), GPIO_FN(EDBGREQ2), | ||
1328 | GPIO_FN(SDHICLK1), GPIO_FN(TCK3), | ||
1329 | GPIO_FN(SDHID1_0), GPIO_FN(M11_SLCD_SO2), | ||
1330 | GPIO_FN(TS_SPSYNC2), GPIO_FN(TMS3), | ||
1331 | GPIO_FN(SDHID1_1), GPIO_FN(M9_SLCD_AO2), | ||
1332 | GPIO_FN(TS_SDAT2), GPIO_FN(TDO3), | ||
1333 | GPIO_FN(SDHID1_2), GPIO_FN(M10_SLCD_CK2), | ||
1334 | GPIO_FN(TS_SDEN2), GPIO_FN(TDI3), | ||
1335 | GPIO_FN(SDHID1_3), GPIO_FN(M12_SLCD_CE2), | ||
1336 | GPIO_FN(TS_SCK2), GPIO_FN(RTCK3), | ||
1337 | GPIO_FN(SDHICMD1), GPIO_FN(TRST3), | ||
1338 | GPIO_FN(SDHICLK2), GPIO_FN(SCIFB_SCK), | ||
1339 | GPIO_FN(SDHID2_0), GPIO_FN(SCIFB_TXD), | ||
1340 | GPIO_FN(SDHID2_1), GPIO_FN(SCIFB_CTS), | ||
1341 | GPIO_FN(SDHID2_2), GPIO_FN(SCIFB_RXD), | ||
1342 | GPIO_FN(SDHID2_3), GPIO_FN(SCIFB_RTS), | ||
1343 | GPIO_FN(SDHICMD2), | ||
1344 | GPIO_FN(RESETOUTS), | ||
1345 | GPIO_FN(DIVLOCK), | ||
1346 | }; | ||
1347 | |||
1348 | /* helper for top 4 bits in PORTnCR */ | ||
1349 | #define PCRH(in, in_pd, in_pu, out) \ | ||
1350 | 0, (out), (in), 0, \ | ||
1351 | 0, 0, 0, 0, \ | ||
1352 | 0, 0, (in_pd), 0, \ | ||
1353 | 0, 0, (in_pu), 0 | ||
1354 | |||
1355 | #define PORTCR(nr, reg) \ | ||
1356 | { PINMUX_CFG_REG("PORT" nr "CR", reg, 8, 4) { \ | ||
1357 | PCRH(PORT##nr##_IN, PORT##nr##_IN_PD, \ | ||
1358 | PORT##nr##_IN_PU, PORT##nr##_OUT), \ | ||
1359 | PORT##nr##_FN0, PORT##nr##_FN1, PORT##nr##_FN2, \ | ||
1360 | PORT##nr##_FN3, PORT##nr##_FN4, PORT##nr##_FN5, \ | ||
1361 | PORT##nr##_FN6, PORT##nr##_FN7 } \ | ||
1362 | } | ||
1363 | |||
1364 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1365 | PORTCR(0, 0xe6050000), /* PORT0CR */ | ||
1366 | PORTCR(1, 0xe6050001), /* PORT1CR */ | ||
1367 | PORTCR(2, 0xe6050002), /* PORT2CR */ | ||
1368 | PORTCR(3, 0xe6050003), /* PORT3CR */ | ||
1369 | PORTCR(4, 0xe6050004), /* PORT4CR */ | ||
1370 | PORTCR(5, 0xe6050005), /* PORT5CR */ | ||
1371 | PORTCR(6, 0xe6050006), /* PORT6CR */ | ||
1372 | PORTCR(7, 0xe6050007), /* PORT7CR */ | ||
1373 | PORTCR(8, 0xe6050008), /* PORT8CR */ | ||
1374 | PORTCR(9, 0xe6050009), /* PORT9CR */ | ||
1375 | |||
1376 | PORTCR(10, 0xe605000a), /* PORT10CR */ | ||
1377 | PORTCR(11, 0xe605000b), /* PORT11CR */ | ||
1378 | PORTCR(12, 0xe605000c), /* PORT12CR */ | ||
1379 | PORTCR(13, 0xe605000d), /* PORT13CR */ | ||
1380 | PORTCR(14, 0xe605000e), /* PORT14CR */ | ||
1381 | PORTCR(15, 0xe605000f), /* PORT15CR */ | ||
1382 | PORTCR(16, 0xe6050010), /* PORT16CR */ | ||
1383 | PORTCR(17, 0xe6050011), /* PORT17CR */ | ||
1384 | PORTCR(18, 0xe6050012), /* PORT18CR */ | ||
1385 | PORTCR(19, 0xe6050013), /* PORT19CR */ | ||
1386 | |||
1387 | PORTCR(20, 0xe6050014), /* PORT20CR */ | ||
1388 | PORTCR(21, 0xe6050015), /* PORT21CR */ | ||
1389 | PORTCR(22, 0xe6050016), /* PORT22CR */ | ||
1390 | PORTCR(23, 0xe6050017), /* PORT23CR */ | ||
1391 | PORTCR(24, 0xe6050018), /* PORT24CR */ | ||
1392 | PORTCR(25, 0xe6050019), /* PORT25CR */ | ||
1393 | PORTCR(26, 0xe605001a), /* PORT26CR */ | ||
1394 | PORTCR(27, 0xe605001b), /* PORT27CR */ | ||
1395 | PORTCR(28, 0xe605001c), /* PORT28CR */ | ||
1396 | PORTCR(29, 0xe605001d), /* PORT29CR */ | ||
1397 | |||
1398 | PORTCR(30, 0xe605001e), /* PORT30CR */ | ||
1399 | PORTCR(31, 0xe605001f), /* PORT31CR */ | ||
1400 | PORTCR(32, 0xe6050020), /* PORT32CR */ | ||
1401 | PORTCR(33, 0xe6050021), /* PORT33CR */ | ||
1402 | PORTCR(34, 0xe6050022), /* PORT34CR */ | ||
1403 | PORTCR(35, 0xe6050023), /* PORT35CR */ | ||
1404 | PORTCR(36, 0xe6050024), /* PORT36CR */ | ||
1405 | PORTCR(37, 0xe6050025), /* PORT37CR */ | ||
1406 | PORTCR(38, 0xe6050026), /* PORT38CR */ | ||
1407 | PORTCR(39, 0xe6050027), /* PORT39CR */ | ||
1408 | |||
1409 | PORTCR(40, 0xe6050028), /* PORT40CR */ | ||
1410 | PORTCR(41, 0xe6050029), /* PORT41CR */ | ||
1411 | PORTCR(42, 0xe605002a), /* PORT42CR */ | ||
1412 | PORTCR(43, 0xe605002b), /* PORT43CR */ | ||
1413 | PORTCR(44, 0xe605002c), /* PORT44CR */ | ||
1414 | PORTCR(45, 0xe605002d), /* PORT45CR */ | ||
1415 | PORTCR(46, 0xe605002e), /* PORT46CR */ | ||
1416 | PORTCR(47, 0xe605002f), /* PORT47CR */ | ||
1417 | PORTCR(48, 0xe6050030), /* PORT48CR */ | ||
1418 | PORTCR(49, 0xe6050031), /* PORT49CR */ | ||
1419 | |||
1420 | PORTCR(50, 0xe6050032), /* PORT50CR */ | ||
1421 | PORTCR(51, 0xe6050033), /* PORT51CR */ | ||
1422 | PORTCR(52, 0xe6050034), /* PORT52CR */ | ||
1423 | PORTCR(53, 0xe6050035), /* PORT53CR */ | ||
1424 | PORTCR(54, 0xe6050036), /* PORT54CR */ | ||
1425 | PORTCR(55, 0xe6050037), /* PORT55CR */ | ||
1426 | PORTCR(56, 0xe6050038), /* PORT56CR */ | ||
1427 | PORTCR(57, 0xe6050039), /* PORT57CR */ | ||
1428 | PORTCR(58, 0xe605003a), /* PORT58CR */ | ||
1429 | PORTCR(59, 0xe605003b), /* PORT59CR */ | ||
1430 | |||
1431 | PORTCR(60, 0xe605003c), /* PORT60CR */ | ||
1432 | PORTCR(61, 0xe605003d), /* PORT61CR */ | ||
1433 | PORTCR(62, 0xe605003e), /* PORT62CR */ | ||
1434 | PORTCR(63, 0xe605003f), /* PORT63CR */ | ||
1435 | PORTCR(64, 0xe6050040), /* PORT64CR */ | ||
1436 | PORTCR(65, 0xe6050041), /* PORT65CR */ | ||
1437 | PORTCR(66, 0xe6050042), /* PORT66CR */ | ||
1438 | PORTCR(67, 0xe6050043), /* PORT67CR */ | ||
1439 | PORTCR(68, 0xe6050044), /* PORT68CR */ | ||
1440 | PORTCR(69, 0xe6050045), /* PORT69CR */ | ||
1441 | |||
1442 | PORTCR(70, 0xe6050046), /* PORT70CR */ | ||
1443 | PORTCR(71, 0xe6050047), /* PORT71CR */ | ||
1444 | PORTCR(72, 0xe6050048), /* PORT72CR */ | ||
1445 | PORTCR(73, 0xe6050049), /* PORT73CR */ | ||
1446 | PORTCR(74, 0xe605004a), /* PORT74CR */ | ||
1447 | PORTCR(75, 0xe605004b), /* PORT75CR */ | ||
1448 | PORTCR(76, 0xe605004c), /* PORT76CR */ | ||
1449 | PORTCR(77, 0xe605004d), /* PORT77CR */ | ||
1450 | PORTCR(78, 0xe605004e), /* PORT78CR */ | ||
1451 | PORTCR(79, 0xe605004f), /* PORT79CR */ | ||
1452 | |||
1453 | PORTCR(80, 0xe6050050), /* PORT80CR */ | ||
1454 | PORTCR(81, 0xe6050051), /* PORT81CR */ | ||
1455 | PORTCR(82, 0xe6050052), /* PORT82CR */ | ||
1456 | PORTCR(83, 0xe6050053), /* PORT83CR */ | ||
1457 | PORTCR(84, 0xe6050054), /* PORT84CR */ | ||
1458 | PORTCR(85, 0xe6050055), /* PORT85CR */ | ||
1459 | PORTCR(86, 0xe6050056), /* PORT86CR */ | ||
1460 | PORTCR(87, 0xe6050057), /* PORT87CR */ | ||
1461 | PORTCR(88, 0xe6051058), /* PORT88CR */ | ||
1462 | PORTCR(89, 0xe6051059), /* PORT89CR */ | ||
1463 | |||
1464 | PORTCR(90, 0xe605105a), /* PORT90CR */ | ||
1465 | PORTCR(91, 0xe605105b), /* PORT91CR */ | ||
1466 | PORTCR(92, 0xe605105c), /* PORT92CR */ | ||
1467 | PORTCR(93, 0xe605105d), /* PORT93CR */ | ||
1468 | PORTCR(94, 0xe605105e), /* PORT94CR */ | ||
1469 | PORTCR(95, 0xe605105f), /* PORT95CR */ | ||
1470 | PORTCR(96, 0xe6051060), /* PORT96CR */ | ||
1471 | PORTCR(97, 0xe6051061), /* PORT97CR */ | ||
1472 | PORTCR(98, 0xe6051062), /* PORT98CR */ | ||
1473 | PORTCR(99, 0xe6051063), /* PORT99CR */ | ||
1474 | |||
1475 | PORTCR(100, 0xe6051064), /* PORT100CR */ | ||
1476 | PORTCR(101, 0xe6051065), /* PORT101CR */ | ||
1477 | PORTCR(102, 0xe6051066), /* PORT102CR */ | ||
1478 | PORTCR(103, 0xe6051067), /* PORT103CR */ | ||
1479 | PORTCR(104, 0xe6051068), /* PORT104CR */ | ||
1480 | PORTCR(105, 0xe6051069), /* PORT105CR */ | ||
1481 | PORTCR(106, 0xe605106a), /* PORT106CR */ | ||
1482 | PORTCR(107, 0xe605106b), /* PORT107CR */ | ||
1483 | PORTCR(108, 0xe605106c), /* PORT108CR */ | ||
1484 | PORTCR(109, 0xe605106d), /* PORT109CR */ | ||
1485 | |||
1486 | PORTCR(110, 0xe605106e), /* PORT110CR */ | ||
1487 | PORTCR(111, 0xe605106f), /* PORT111CR */ | ||
1488 | PORTCR(112, 0xe6051070), /* PORT112CR */ | ||
1489 | PORTCR(113, 0xe6051071), /* PORT113CR */ | ||
1490 | PORTCR(114, 0xe6051072), /* PORT114CR */ | ||
1491 | PORTCR(115, 0xe6051073), /* PORT115CR */ | ||
1492 | PORTCR(116, 0xe6051074), /* PORT116CR */ | ||
1493 | PORTCR(117, 0xe6051075), /* PORT117CR */ | ||
1494 | PORTCR(118, 0xe6051076), /* PORT118CR */ | ||
1495 | PORTCR(119, 0xe6051077), /* PORT119CR */ | ||
1496 | |||
1497 | PORTCR(120, 0xe6051078), /* PORT120CR */ | ||
1498 | PORTCR(121, 0xe6051079), /* PORT121CR */ | ||
1499 | PORTCR(122, 0xe605107a), /* PORT122CR */ | ||
1500 | PORTCR(123, 0xe605107b), /* PORT123CR */ | ||
1501 | PORTCR(124, 0xe605107c), /* PORT124CR */ | ||
1502 | PORTCR(125, 0xe605107d), /* PORT125CR */ | ||
1503 | PORTCR(126, 0xe605107e), /* PORT126CR */ | ||
1504 | PORTCR(127, 0xe605107f), /* PORT127CR */ | ||
1505 | PORTCR(128, 0xe6051080), /* PORT128CR */ | ||
1506 | PORTCR(129, 0xe6051081), /* PORT129CR */ | ||
1507 | |||
1508 | PORTCR(130, 0xe6051082), /* PORT130CR */ | ||
1509 | PORTCR(131, 0xe6051083), /* PORT131CR */ | ||
1510 | PORTCR(132, 0xe6051084), /* PORT132CR */ | ||
1511 | PORTCR(133, 0xe6051085), /* PORT133CR */ | ||
1512 | PORTCR(134, 0xe6051086), /* PORT134CR */ | ||
1513 | PORTCR(135, 0xe6051087), /* PORT135CR */ | ||
1514 | PORTCR(136, 0xe6051088), /* PORT136CR */ | ||
1515 | PORTCR(137, 0xe6051089), /* PORT137CR */ | ||
1516 | PORTCR(138, 0xe605108a), /* PORT138CR */ | ||
1517 | PORTCR(139, 0xe605108b), /* PORT139CR */ | ||
1518 | |||
1519 | PORTCR(140, 0xe605108c), /* PORT140CR */ | ||
1520 | PORTCR(141, 0xe605108d), /* PORT141CR */ | ||
1521 | PORTCR(142, 0xe605108e), /* PORT142CR */ | ||
1522 | PORTCR(143, 0xe605108f), /* PORT143CR */ | ||
1523 | PORTCR(144, 0xe6051090), /* PORT144CR */ | ||
1524 | PORTCR(145, 0xe6051091), /* PORT145CR */ | ||
1525 | PORTCR(146, 0xe6051092), /* PORT146CR */ | ||
1526 | PORTCR(147, 0xe6051093), /* PORT147CR */ | ||
1527 | PORTCR(148, 0xe6051094), /* PORT148CR */ | ||
1528 | PORTCR(149, 0xe6051095), /* PORT149CR */ | ||
1529 | |||
1530 | PORTCR(150, 0xe6051096), /* PORT150CR */ | ||
1531 | PORTCR(151, 0xe6051097), /* PORT151CR */ | ||
1532 | PORTCR(152, 0xe6051098), /* PORT152CR */ | ||
1533 | PORTCR(153, 0xe6051099), /* PORT153CR */ | ||
1534 | PORTCR(154, 0xe605109a), /* PORT154CR */ | ||
1535 | PORTCR(155, 0xe605109b), /* PORT155CR */ | ||
1536 | PORTCR(156, 0xe605109c), /* PORT156CR */ | ||
1537 | PORTCR(157, 0xe605109d), /* PORT157CR */ | ||
1538 | PORTCR(158, 0xe605109e), /* PORT158CR */ | ||
1539 | PORTCR(159, 0xe605109f), /* PORT159CR */ | ||
1540 | |||
1541 | PORTCR(160, 0xe60510a0), /* PORT160CR */ | ||
1542 | PORTCR(161, 0xe60510a1), /* PORT161CR */ | ||
1543 | PORTCR(162, 0xe60510a2), /* PORT162CR */ | ||
1544 | PORTCR(163, 0xe60510a3), /* PORT163CR */ | ||
1545 | PORTCR(164, 0xe60510a4), /* PORT164CR */ | ||
1546 | PORTCR(165, 0xe60510a5), /* PORT165CR */ | ||
1547 | PORTCR(166, 0xe60510a6), /* PORT166CR */ | ||
1548 | PORTCR(167, 0xe60510a7), /* PORT167CR */ | ||
1549 | PORTCR(168, 0xe60510a8), /* PORT168CR */ | ||
1550 | PORTCR(169, 0xe60510a9), /* PORT169CR */ | ||
1551 | |||
1552 | PORTCR(170, 0xe60510aa), /* PORT170CR */ | ||
1553 | PORTCR(171, 0xe60510ab), /* PORT171CR */ | ||
1554 | PORTCR(172, 0xe60510ac), /* PORT172CR */ | ||
1555 | PORTCR(173, 0xe60510ad), /* PORT173CR */ | ||
1556 | PORTCR(174, 0xe60510ae), /* PORT174CR */ | ||
1557 | PORTCR(175, 0xe60520af), /* PORT175CR */ | ||
1558 | PORTCR(176, 0xe60520b0), /* PORT176CR */ | ||
1559 | PORTCR(177, 0xe60520b1), /* PORT177CR */ | ||
1560 | PORTCR(178, 0xe60520b2), /* PORT178CR */ | ||
1561 | PORTCR(179, 0xe60520b3), /* PORT179CR */ | ||
1562 | |||
1563 | PORTCR(180, 0xe60520b4), /* PORT180CR */ | ||
1564 | PORTCR(181, 0xe60520b5), /* PORT181CR */ | ||
1565 | PORTCR(182, 0xe60520b6), /* PORT182CR */ | ||
1566 | PORTCR(183, 0xe60520b7), /* PORT183CR */ | ||
1567 | PORTCR(184, 0xe60520b8), /* PORT184CR */ | ||
1568 | PORTCR(185, 0xe60520b9), /* PORT185CR */ | ||
1569 | PORTCR(186, 0xe60520ba), /* PORT186CR */ | ||
1570 | PORTCR(187, 0xe60520bb), /* PORT187CR */ | ||
1571 | PORTCR(188, 0xe60520bc), /* PORT188CR */ | ||
1572 | PORTCR(189, 0xe60520bd), /* PORT189CR */ | ||
1573 | |||
1574 | PORTCR(190, 0xe60520be), /* PORT190CR */ | ||
1575 | PORTCR(191, 0xe60520bf), /* PORT191CR */ | ||
1576 | PORTCR(192, 0xe60520c0), /* PORT192CR */ | ||
1577 | PORTCR(193, 0xe60520c1), /* PORT193CR */ | ||
1578 | PORTCR(194, 0xe60520c2), /* PORT194CR */ | ||
1579 | PORTCR(195, 0xe60520c3), /* PORT195CR */ | ||
1580 | PORTCR(196, 0xe60520c4), /* PORT196CR */ | ||
1581 | PORTCR(197, 0xe60520c5), /* PORT197CR */ | ||
1582 | PORTCR(198, 0xe60520c6), /* PORT198CR */ | ||
1583 | PORTCR(199, 0xe60520c7), /* PORT199CR */ | ||
1584 | |||
1585 | PORTCR(200, 0xe60520c8), /* PORT200CR */ | ||
1586 | PORTCR(201, 0xe60520c9), /* PORT201CR */ | ||
1587 | PORTCR(202, 0xe60520ca), /* PORT202CR */ | ||
1588 | PORTCR(203, 0xe60520cb), /* PORT203CR */ | ||
1589 | PORTCR(204, 0xe60520cc), /* PORT204CR */ | ||
1590 | PORTCR(205, 0xe60520cd), /* PORT205CR */ | ||
1591 | PORTCR(206, 0xe60520ce), /* PORT206CR */ | ||
1592 | PORTCR(207, 0xe60520cf), /* PORT207CR */ | ||
1593 | PORTCR(208, 0xe60520d0), /* PORT208CR */ | ||
1594 | PORTCR(209, 0xe60520d1), /* PORT209CR */ | ||
1595 | |||
1596 | PORTCR(210, 0xe60520d2), /* PORT210CR */ | ||
1597 | PORTCR(211, 0xe60520d3), /* PORT211CR */ | ||
1598 | PORTCR(212, 0xe60520d4), /* PORT212CR */ | ||
1599 | PORTCR(213, 0xe60520d5), /* PORT213CR */ | ||
1600 | PORTCR(214, 0xe60520d6), /* PORT214CR */ | ||
1601 | PORTCR(215, 0xe60520d7), /* PORT215CR */ | ||
1602 | PORTCR(216, 0xe60520d8), /* PORT216CR */ | ||
1603 | PORTCR(217, 0xe60520d9), /* PORT217CR */ | ||
1604 | PORTCR(218, 0xe60520da), /* PORT218CR */ | ||
1605 | PORTCR(219, 0xe60520db), /* PORT219CR */ | ||
1606 | |||
1607 | PORTCR(220, 0xe60520dc), /* PORT220CR */ | ||
1608 | PORTCR(221, 0xe60520dd), /* PORT221CR */ | ||
1609 | PORTCR(222, 0xe60520de), /* PORT222CR */ | ||
1610 | PORTCR(223, 0xe60520df), /* PORT223CR */ | ||
1611 | PORTCR(224, 0xe60520e0), /* PORT224CR */ | ||
1612 | PORTCR(225, 0xe60520e1), /* PORT225CR */ | ||
1613 | PORTCR(226, 0xe60520e2), /* PORT226CR */ | ||
1614 | PORTCR(227, 0xe60520e3), /* PORT227CR */ | ||
1615 | PORTCR(228, 0xe60520e4), /* PORT228CR */ | ||
1616 | PORTCR(229, 0xe60520e5), /* PORT229CR */ | ||
1617 | |||
1618 | PORTCR(230, 0xe60520e6), /* PORT230CR */ | ||
1619 | PORTCR(231, 0xe60520e7), /* PORT231CR */ | ||
1620 | PORTCR(232, 0xe60520e8), /* PORT232CR */ | ||
1621 | PORTCR(233, 0xe60520e9), /* PORT233CR */ | ||
1622 | PORTCR(234, 0xe60520ea), /* PORT234CR */ | ||
1623 | PORTCR(235, 0xe60520eb), /* PORT235CR */ | ||
1624 | PORTCR(236, 0xe60530ec), /* PORT236CR */ | ||
1625 | PORTCR(237, 0xe60530ed), /* PORT237CR */ | ||
1626 | PORTCR(238, 0xe60530ee), /* PORT238CR */ | ||
1627 | PORTCR(239, 0xe60530ef), /* PORT239CR */ | ||
1628 | |||
1629 | PORTCR(240, 0xe60530f0), /* PORT240CR */ | ||
1630 | PORTCR(241, 0xe60530f1), /* PORT241CR */ | ||
1631 | PORTCR(242, 0xe60530f2), /* PORT242CR */ | ||
1632 | PORTCR(243, 0xe60530f3), /* PORT243CR */ | ||
1633 | PORTCR(244, 0xe60530f4), /* PORT244CR */ | ||
1634 | PORTCR(245, 0xe60530f5), /* PORT245CR */ | ||
1635 | PORTCR(246, 0xe60530f6), /* PORT246CR */ | ||
1636 | PORTCR(247, 0xe60530f7), /* PORT247CR */ | ||
1637 | PORTCR(248, 0xe60530f8), /* PORT248CR */ | ||
1638 | PORTCR(249, 0xe60530f9), /* PORT249CR */ | ||
1639 | |||
1640 | PORTCR(250, 0xe60530fa), /* PORT250CR */ | ||
1641 | PORTCR(251, 0xe60530fb), /* PORT251CR */ | ||
1642 | PORTCR(252, 0xe60530fc), /* PORT252CR */ | ||
1643 | PORTCR(253, 0xe60530fd), /* PORT253CR */ | ||
1644 | PORTCR(254, 0xe60530fe), /* PORT254CR */ | ||
1645 | PORTCR(255, 0xe60530ff), /* PORT255CR */ | ||
1646 | PORTCR(256, 0xe6053100), /* PORT256CR */ | ||
1647 | PORTCR(257, 0xe6053101), /* PORT257CR */ | ||
1648 | PORTCR(258, 0xe6053102), /* PORT258CR */ | ||
1649 | PORTCR(259, 0xe6053103), /* PORT259CR */ | ||
1650 | |||
1651 | PORTCR(260, 0xe6053104), /* PORT260CR */ | ||
1652 | PORTCR(261, 0xe6053105), /* PORT261CR */ | ||
1653 | PORTCR(262, 0xe6053106), /* PORT262CR */ | ||
1654 | PORTCR(263, 0xe6053107), /* PORT263CR */ | ||
1655 | PORTCR(264, 0xe6053108), /* PORT264CR */ | ||
1656 | PORTCR(265, 0xe6053109), /* PORT265CR */ | ||
1657 | PORTCR(266, 0xe605310a), /* PORT266CR */ | ||
1658 | PORTCR(267, 0xe605310b), /* PORT267CR */ | ||
1659 | PORTCR(268, 0xe605310c), /* PORT268CR */ | ||
1660 | PORTCR(269, 0xe605310d), /* PORT269CR */ | ||
1661 | |||
1662 | PORTCR(270, 0xe605310e), /* PORT270CR */ | ||
1663 | PORTCR(271, 0xe605310f), /* PORT271CR */ | ||
1664 | PORTCR(272, 0xe6053110), /* PORT272CR */ | ||
1665 | |||
1666 | { PINMUX_CFG_REG("MSELBCR", 0xe6058024, 32, 1) { | ||
1667 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1668 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1669 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1670 | 0, 0, | ||
1671 | 0, 0, | ||
1672 | 0, 0, | ||
1673 | 0, 0, | ||
1674 | 0, 0, | ||
1675 | MSELBCR_MSEL2_0, MSELBCR_MSEL2_1, | ||
1676 | 0, 0, | ||
1677 | 0, 0 } | ||
1678 | }, | ||
1679 | { }, | ||
1680 | }; | ||
1681 | |||
1682 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
1683 | { PINMUX_DATA_REG("PORTL031_000DR", 0xe6054000, 32) { | ||
1684 | PORT31_DATA, PORT30_DATA, PORT29_DATA, PORT28_DATA, | ||
1685 | PORT27_DATA, PORT26_DATA, PORT25_DATA, PORT24_DATA, | ||
1686 | PORT23_DATA, PORT22_DATA, PORT21_DATA, PORT20_DATA, | ||
1687 | PORT19_DATA, PORT18_DATA, PORT17_DATA, PORT16_DATA, | ||
1688 | PORT15_DATA, PORT14_DATA, PORT13_DATA, PORT12_DATA, | ||
1689 | PORT11_DATA, PORT10_DATA, PORT9_DATA, PORT8_DATA, | ||
1690 | PORT7_DATA, PORT6_DATA, PORT5_DATA, PORT4_DATA, | ||
1691 | PORT3_DATA, PORT2_DATA, PORT1_DATA, PORT0_DATA } | ||
1692 | }, | ||
1693 | { PINMUX_DATA_REG("PORTL063_032DR", 0xe6054004, 32) { | ||
1694 | PORT63_DATA, PORT62_DATA, PORT61_DATA, PORT60_DATA, | ||
1695 | PORT59_DATA, PORT58_DATA, PORT57_DATA, PORT56_DATA, | ||
1696 | PORT55_DATA, PORT54_DATA, PORT53_DATA, PORT52_DATA, | ||
1697 | PORT51_DATA, PORT50_DATA, PORT49_DATA, PORT48_DATA, | ||
1698 | PORT47_DATA, PORT46_DATA, PORT45_DATA, PORT44_DATA, | ||
1699 | PORT43_DATA, PORT42_DATA, PORT41_DATA, PORT40_DATA, | ||
1700 | PORT39_DATA, PORT38_DATA, PORT37_DATA, PORT36_DATA, | ||
1701 | PORT35_DATA, PORT34_DATA, PORT33_DATA, PORT32_DATA } | ||
1702 | }, | ||
1703 | { PINMUX_DATA_REG("PORTL095_064DR", 0xe6054008, 32) { | ||
1704 | PORT95_DATA, PORT94_DATA, PORT93_DATA, PORT92_DATA, | ||
1705 | PORT91_DATA, PORT90_DATA, PORT89_DATA, PORT88_DATA, | ||
1706 | PORT87_DATA, PORT86_DATA, PORT85_DATA, PORT84_DATA, | ||
1707 | PORT83_DATA, PORT82_DATA, PORT81_DATA, PORT80_DATA, | ||
1708 | PORT79_DATA, PORT78_DATA, PORT77_DATA, PORT76_DATA, | ||
1709 | PORT75_DATA, PORT74_DATA, PORT73_DATA, PORT72_DATA, | ||
1710 | PORT71_DATA, PORT70_DATA, PORT69_DATA, PORT68_DATA, | ||
1711 | PORT67_DATA, PORT66_DATA, PORT65_DATA, PORT64_DATA } | ||
1712 | }, | ||
1713 | { PINMUX_DATA_REG("PORTD127_096DR", 0xe6055004, 32) { | ||
1714 | PORT127_DATA, PORT126_DATA, PORT125_DATA, PORT124_DATA, | ||
1715 | PORT123_DATA, PORT122_DATA, PORT121_DATA, PORT120_DATA, | ||
1716 | PORT119_DATA, PORT118_DATA, PORT117_DATA, PORT116_DATA, | ||
1717 | PORT115_DATA, PORT114_DATA, PORT113_DATA, PORT112_DATA, | ||
1718 | PORT111_DATA, PORT110_DATA, PORT109_DATA, PORT108_DATA, | ||
1719 | PORT107_DATA, PORT106_DATA, PORT105_DATA, PORT104_DATA, | ||
1720 | PORT103_DATA, PORT102_DATA, PORT101_DATA, PORT100_DATA, | ||
1721 | PORT99_DATA, PORT98_DATA, PORT97_DATA, PORT96_DATA } | ||
1722 | }, | ||
1723 | { PINMUX_DATA_REG("PORTD159_128DR", 0xe6055008, 32) { | ||
1724 | PORT159_DATA, PORT158_DATA, PORT157_DATA, PORT156_DATA, | ||
1725 | PORT155_DATA, PORT154_DATA, PORT153_DATA, PORT152_DATA, | ||
1726 | PORT151_DATA, PORT150_DATA, PORT149_DATA, PORT148_DATA, | ||
1727 | PORT147_DATA, PORT146_DATA, PORT145_DATA, PORT144_DATA, | ||
1728 | PORT143_DATA, PORT142_DATA, PORT141_DATA, PORT140_DATA, | ||
1729 | PORT139_DATA, PORT138_DATA, PORT137_DATA, PORT136_DATA, | ||
1730 | PORT135_DATA, PORT134_DATA, PORT133_DATA, PORT132_DATA, | ||
1731 | PORT131_DATA, PORT130_DATA, PORT129_DATA, PORT128_DATA } | ||
1732 | }, | ||
1733 | { PINMUX_DATA_REG("PORTR191_160DR", 0xe6056000, 32) { | ||
1734 | PORT191_DATA, PORT190_DATA, PORT189_DATA, PORT188_DATA, | ||
1735 | PORT187_DATA, PORT186_DATA, PORT185_DATA, PORT184_DATA, | ||
1736 | PORT183_DATA, PORT182_DATA, PORT181_DATA, PORT180_DATA, | ||
1737 | PORT179_DATA, PORT178_DATA, PORT177_DATA, PORT176_DATA, | ||
1738 | PORT175_DATA, PORT174_DATA, PORT173_DATA, PORT172_DATA, | ||
1739 | PORT171_DATA, PORT170_DATA, PORT169_DATA, PORT168_DATA, | ||
1740 | PORT167_DATA, PORT166_DATA, PORT165_DATA, PORT164_DATA, | ||
1741 | PORT163_DATA, PORT162_DATA, PORT161_DATA, PORT160_DATA } | ||
1742 | }, | ||
1743 | { PINMUX_DATA_REG("PORTR223_192DR", 0xe6056004, 32) { | ||
1744 | PORT223_DATA, PORT222_DATA, PORT221_DATA, PORT220_DATA, | ||
1745 | PORT219_DATA, PORT218_DATA, PORT217_DATA, PORT216_DATA, | ||
1746 | PORT215_DATA, PORT214_DATA, PORT213_DATA, PORT212_DATA, | ||
1747 | PORT211_DATA, PORT210_DATA, PORT209_DATA, PORT208_DATA, | ||
1748 | PORT207_DATA, PORT206_DATA, PORT205_DATA, PORT204_DATA, | ||
1749 | PORT203_DATA, PORT202_DATA, PORT201_DATA, PORT200_DATA, | ||
1750 | PORT199_DATA, PORT198_DATA, PORT197_DATA, PORT196_DATA, | ||
1751 | PORT195_DATA, PORT194_DATA, PORT193_DATA, PORT192_DATA } | ||
1752 | }, | ||
1753 | { PINMUX_DATA_REG("PORTU255_224DR", 0xe6057000, 32) { | ||
1754 | PORT255_DATA, PORT254_DATA, PORT253_DATA, PORT252_DATA, | ||
1755 | PORT251_DATA, PORT250_DATA, PORT249_DATA, PORT248_DATA, | ||
1756 | PORT247_DATA, PORT246_DATA, PORT245_DATA, PORT244_DATA, | ||
1757 | PORT243_DATA, PORT242_DATA, PORT241_DATA, PORT240_DATA, | ||
1758 | PORT239_DATA, PORT238_DATA, PORT237_DATA, PORT236_DATA, | ||
1759 | PORT235_DATA, PORT234_DATA, PORT233_DATA, PORT232_DATA, | ||
1760 | PORT231_DATA, PORT230_DATA, PORT229_DATA, PORT228_DATA, | ||
1761 | PORT227_DATA, PORT226_DATA, PORT225_DATA, PORT224_DATA } | ||
1762 | }, | ||
1763 | { PINMUX_DATA_REG("PORTU287_256DR", 0xe6057004, 32) { | ||
1764 | 0, 0, 0, 0, | ||
1765 | 0, 0, 0, 0, | ||
1766 | 0, 0, 0, 0, | ||
1767 | 0, 0, 0, PORT272_DATA, | ||
1768 | PORT271_DATA, PORT270_DATA, PORT269_DATA, PORT268_DATA, | ||
1769 | PORT267_DATA, PORT266_DATA, PORT265_DATA, PORT264_DATA, | ||
1770 | PORT263_DATA, PORT262_DATA, PORT261_DATA, PORT260_DATA, | ||
1771 | PORT259_DATA, PORT258_DATA, PORT257_DATA, PORT256_DATA } | ||
1772 | }, | ||
1773 | { }, | ||
1774 | }; | ||
1775 | |||
1776 | static struct pinmux_info sh7367_pinmux_info = { | ||
1777 | .name = "sh7367_pfc", | ||
1778 | .reserved_id = PINMUX_RESERVED, | ||
1779 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
1780 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
1781 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | ||
1782 | .input_pd = { PINMUX_INPUT_PULLDOWN_BEGIN, PINMUX_INPUT_PULLDOWN_END }, | ||
1783 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
1784 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
1785 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
1786 | |||
1787 | .first_gpio = GPIO_PORT0, | ||
1788 | .last_gpio = GPIO_FN_DIVLOCK, | ||
1789 | |||
1790 | .gpios = pinmux_gpios, | ||
1791 | .cfg_regs = pinmux_config_regs, | ||
1792 | .data_regs = pinmux_data_regs, | ||
1793 | |||
1794 | .gpio_data = pinmux_data, | ||
1795 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
1796 | }; | ||
1797 | |||
1798 | void sh7367_pinmux_init(void) | ||
1799 | { | ||
1800 | register_pinmux(&sh7367_pinmux_info); | ||
1801 | } | ||
diff --git a/arch/arm/mach-shmobile/pfc-sh7372.c b/arch/arm/mach-shmobile/pfc-sh7372.c new file mode 100644 index 00000000000..9557d0964d7 --- /dev/null +++ b/arch/arm/mach-shmobile/pfc-sh7372.c | |||
@@ -0,0 +1,1637 @@ | |||
1 | /* | ||
2 | * sh7372 processor support - PFC hardware block | ||
3 | * | ||
4 | * Copyright (C) 2010 Kuninori Morimoto <morimoto.kuninori@renesas.com> | ||
5 | * | ||
6 | * Based on | ||
7 | * sh7367 processor support - PFC hardware block | ||
8 | * Copyright (C) 2010 Magnus Damm | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License as published by | ||
12 | * the Free Software Foundation; version 2 of the License. | ||
13 | * | ||
14 | * This program is distributed in the hope that it will be useful, | ||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | * GNU General Public License for more details. | ||
18 | * | ||
19 | * You should have received a copy of the GNU General Public License | ||
20 | * along with this program; if not, write to the Free Software | ||
21 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
22 | */ | ||
23 | #include <linux/init.h> | ||
24 | #include <linux/kernel.h> | ||
25 | #include <linux/gpio.h> | ||
26 | #include <mach/sh7372.h> | ||
27 | |||
28 | #define _1(fn, pfx, sfx) fn(pfx, sfx) | ||
29 | |||
30 | #define _10(fn, pfx, sfx) \ | ||
31 | _1(fn, pfx##0, sfx), _1(fn, pfx##1, sfx), \ | ||
32 | _1(fn, pfx##2, sfx), _1(fn, pfx##3, sfx), \ | ||
33 | _1(fn, pfx##4, sfx), _1(fn, pfx##5, sfx), \ | ||
34 | _1(fn, pfx##6, sfx), _1(fn, pfx##7, sfx), \ | ||
35 | _1(fn, pfx##8, sfx), _1(fn, pfx##9, sfx) | ||
36 | |||
37 | #define _80(fn, pfx, sfx) \ | ||
38 | _10(fn, pfx##1, sfx), _10(fn, pfx##2, sfx), \ | ||
39 | _10(fn, pfx##3, sfx), _10(fn, pfx##4, sfx), \ | ||
40 | _10(fn, pfx##5, sfx), _10(fn, pfx##6, sfx), \ | ||
41 | _10(fn, pfx##7, sfx), _10(fn, pfx##8, sfx) | ||
42 | |||
43 | #define _190(fn, pfx, sfx) \ | ||
44 | _10(fn, pfx, sfx), _80(fn, pfx, sfx), _10(fn, pfx##9, sfx), \ | ||
45 | _10(fn, pfx##10, sfx), _80(fn, pfx##1, sfx), _1(fn, pfx##190, sfx) | ||
46 | |||
47 | #define _PORT(pfx, sfx) pfx##_##sfx | ||
48 | #define PORT_ALL(str) _190(_PORT, PORT, str) | ||
49 | |||
50 | enum { | ||
51 | PINMUX_RESERVED = 0, | ||
52 | |||
53 | /* PORT0_DATA -> PORT190_DATA */ | ||
54 | PINMUX_DATA_BEGIN, | ||
55 | PORT_ALL(DATA), | ||
56 | PINMUX_DATA_END, | ||
57 | |||
58 | /* PORT0_IN -> PORT190_IN */ | ||
59 | PINMUX_INPUT_BEGIN, | ||
60 | PORT_ALL(IN), | ||
61 | PINMUX_INPUT_END, | ||
62 | |||
63 | /* PORT0_IN_PU -> PORT190_IN_PU */ | ||
64 | PINMUX_INPUT_PULLUP_BEGIN, | ||
65 | PORT_ALL(IN_PU), | ||
66 | PINMUX_INPUT_PULLUP_END, | ||
67 | |||
68 | /* PORT0_IN_PD -> PORT190_IN_PD */ | ||
69 | PINMUX_INPUT_PULLDOWN_BEGIN, | ||
70 | PORT_ALL(IN_PD), | ||
71 | PINMUX_INPUT_PULLDOWN_END, | ||
72 | |||
73 | /* PORT0_OUT -> PORT190_OUT */ | ||
74 | PINMUX_OUTPUT_BEGIN, | ||
75 | PORT_ALL(OUT), | ||
76 | PINMUX_OUTPUT_END, | ||
77 | |||
78 | PINMUX_FUNCTION_BEGIN, | ||
79 | PORT_ALL(FN_IN), /* PORT0_FN_IN -> PORT190_FN_IN */ | ||
80 | PORT_ALL(FN_OUT), /* PORT0_FN_OUT -> PORT190_FN_OUT */ | ||
81 | PORT_ALL(FN0), /* PORT0_FN0 -> PORT190_FN0 */ | ||
82 | PORT_ALL(FN1), /* PORT0_FN1 -> PORT190_FN1 */ | ||
83 | PORT_ALL(FN2), /* PORT0_FN2 -> PORT190_FN2 */ | ||
84 | PORT_ALL(FN3), /* PORT0_FN3 -> PORT190_FN3 */ | ||
85 | PORT_ALL(FN4), /* PORT0_FN4 -> PORT190_FN4 */ | ||
86 | PORT_ALL(FN5), /* PORT0_FN5 -> PORT190_FN5 */ | ||
87 | PORT_ALL(FN6), /* PORT0_FN6 -> PORT190_FN6 */ | ||
88 | PORT_ALL(FN7), /* PORT0_FN7 -> PORT190_FN7 */ | ||
89 | |||
90 | MSEL1CR_31_0, MSEL1CR_31_1, | ||
91 | MSEL1CR_30_0, MSEL1CR_30_1, | ||
92 | MSEL1CR_29_0, MSEL1CR_29_1, | ||
93 | MSEL1CR_28_0, MSEL1CR_28_1, | ||
94 | MSEL1CR_27_0, MSEL1CR_27_1, | ||
95 | MSEL1CR_26_0, MSEL1CR_26_1, | ||
96 | MSEL1CR_16_0, MSEL1CR_16_1, | ||
97 | MSEL1CR_15_0, MSEL1CR_15_1, | ||
98 | MSEL1CR_14_0, MSEL1CR_14_1, | ||
99 | MSEL1CR_13_0, MSEL1CR_13_1, | ||
100 | MSEL1CR_12_0, MSEL1CR_12_1, | ||
101 | MSEL1CR_9_0, MSEL1CR_9_1, | ||
102 | MSEL1CR_8_0, MSEL1CR_8_1, | ||
103 | MSEL1CR_7_0, MSEL1CR_7_1, | ||
104 | MSEL1CR_6_0, MSEL1CR_6_1, | ||
105 | MSEL1CR_4_0, MSEL1CR_4_1, | ||
106 | MSEL1CR_3_0, MSEL1CR_3_1, | ||
107 | MSEL1CR_2_0, MSEL1CR_2_1, | ||
108 | MSEL1CR_0_0, MSEL1CR_0_1, | ||
109 | |||
110 | MSEL3CR_27_0, MSEL3CR_27_1, | ||
111 | MSEL3CR_26_0, MSEL3CR_26_1, | ||
112 | MSEL3CR_21_0, MSEL3CR_21_1, | ||
113 | MSEL3CR_20_0, MSEL3CR_20_1, | ||
114 | MSEL3CR_15_0, MSEL3CR_15_1, | ||
115 | MSEL3CR_9_0, MSEL3CR_9_1, | ||
116 | MSEL3CR_6_0, MSEL3CR_6_1, | ||
117 | |||
118 | MSEL4CR_19_0, MSEL4CR_19_1, | ||
119 | MSEL4CR_18_0, MSEL4CR_18_1, | ||
120 | MSEL4CR_17_0, MSEL4CR_17_1, | ||
121 | MSEL4CR_16_0, MSEL4CR_16_1, | ||
122 | MSEL4CR_15_0, MSEL4CR_15_1, | ||
123 | MSEL4CR_14_0, MSEL4CR_14_1, | ||
124 | MSEL4CR_10_0, MSEL4CR_10_1, | ||
125 | MSEL4CR_6_0, MSEL4CR_6_1, | ||
126 | MSEL4CR_4_0, MSEL4CR_4_1, | ||
127 | MSEL4CR_1_0, MSEL4CR_1_1, | ||
128 | PINMUX_FUNCTION_END, | ||
129 | |||
130 | PINMUX_MARK_BEGIN, | ||
131 | |||
132 | /* IRQ */ | ||
133 | IRQ0_6_MARK, IRQ0_162_MARK, IRQ1_MARK, IRQ2_4_MARK, | ||
134 | IRQ2_5_MARK, IRQ3_8_MARK, IRQ3_16_MARK, IRQ4_17_MARK, | ||
135 | IRQ4_163_MARK, IRQ5_MARK, IRQ6_39_MARK, IRQ6_164_MARK, | ||
136 | IRQ7_40_MARK, IRQ7_167_MARK, IRQ8_41_MARK, IRQ8_168_MARK, | ||
137 | IRQ9_42_MARK, IRQ9_169_MARK, IRQ10_MARK, IRQ11_MARK, | ||
138 | IRQ12_80_MARK, IRQ12_137_MARK, IRQ13_81_MARK, IRQ13_145_MARK, | ||
139 | IRQ14_82_MARK, IRQ14_146_MARK, IRQ15_83_MARK, IRQ15_147_MARK, | ||
140 | IRQ16_84_MARK, IRQ16_170_MARK, IRQ17_MARK, IRQ18_MARK, | ||
141 | IRQ19_MARK, IRQ20_MARK, IRQ21_MARK, IRQ22_MARK, | ||
142 | IRQ23_MARK, IRQ24_MARK, IRQ25_MARK, IRQ26_121_MARK, | ||
143 | IRQ26_172_MARK, IRQ27_122_MARK, IRQ27_180_MARK, IRQ28_123_MARK, | ||
144 | IRQ28_181_MARK, IRQ29_129_MARK, IRQ29_182_MARK, IRQ30_130_MARK, | ||
145 | IRQ30_183_MARK, IRQ31_138_MARK, IRQ31_184_MARK, | ||
146 | |||
147 | /* MSIOF0 */ | ||
148 | MSIOF0_TSYNC_MARK, MSIOF0_TSCK_MARK, MSIOF0_RXD_MARK, | ||
149 | MSIOF0_RSCK_MARK, MSIOF0_RSYNC_MARK, MSIOF0_MCK0_MARK, | ||
150 | MSIOF0_MCK1_MARK, MSIOF0_SS1_MARK, MSIOF0_SS2_MARK, | ||
151 | MSIOF0_TXD_MARK, | ||
152 | |||
153 | /* MSIOF1 */ | ||
154 | MSIOF1_TSCK_39_MARK, MSIOF1_TSYNC_40_MARK, | ||
155 | MSIOF1_TSCK_88_MARK, MSIOF1_TSYNC_89_MARK, | ||
156 | MSIOF1_TXD_41_MARK, MSIOF1_RXD_42_MARK, | ||
157 | MSIOF1_TXD_90_MARK, MSIOF1_RXD_91_MARK, | ||
158 | MSIOF1_SS1_43_MARK, MSIOF1_SS2_44_MARK, | ||
159 | MSIOF1_SS1_92_MARK, MSIOF1_SS2_93_MARK, | ||
160 | MSIOF1_RSCK_MARK, MSIOF1_RSYNC_MARK, | ||
161 | MSIOF1_MCK0_MARK, MSIOF1_MCK1_MARK, | ||
162 | |||
163 | /* MSIOF2 */ | ||
164 | MSIOF2_RSCK_MARK, MSIOF2_RSYNC_MARK, MSIOF2_MCK0_MARK, | ||
165 | MSIOF2_MCK1_MARK, MSIOF2_SS1_MARK, MSIOF2_SS2_MARK, | ||
166 | MSIOF2_TSYNC_MARK, MSIOF2_TSCK_MARK, MSIOF2_RXD_MARK, | ||
167 | MSIOF2_TXD_MARK, | ||
168 | |||
169 | /* MSIOF3 */ | ||
170 | BBIF1_RXD_MARK, BBIF1_TSYNC_MARK, BBIF1_TSCK_MARK, | ||
171 | BBIF1_TXD_MARK, BBIF1_RSCK_MARK, BBIF1_RSYNC_MARK, | ||
172 | BBIF1_FLOW_MARK, BB_RX_FLOW_N_MARK, | ||
173 | |||
174 | /* MSIOF4 */ | ||
175 | BBIF2_TSCK1_MARK, BBIF2_TSYNC1_MARK, | ||
176 | BBIF2_TXD1_MARK, BBIF2_RXD_MARK, | ||
177 | |||
178 | /* FSI */ | ||
179 | FSIACK_MARK, FSIBCK_MARK, FSIAILR_MARK, FSIAIBT_MARK, | ||
180 | FSIAISLD_MARK, FSIAOMC_MARK, FSIAOLR_MARK, FSIAOBT_MARK, | ||
181 | FSIAOSLD_MARK, FSIASPDIF_11_MARK, FSIASPDIF_15_MARK, | ||
182 | |||
183 | /* FMSI */ | ||
184 | FMSOCK_MARK, FMSOOLR_MARK, FMSIOLR_MARK, FMSOOBT_MARK, | ||
185 | FMSIOBT_MARK, FMSOSLD_MARK, FMSOILR_MARK, FMSIILR_MARK, | ||
186 | FMSOIBT_MARK, FMSIIBT_MARK, FMSISLD_MARK, FMSICK_MARK, | ||
187 | |||
188 | /* SCIFA0 */ | ||
189 | SCIFA0_TXD_MARK, SCIFA0_RXD_MARK, SCIFA0_SCK_MARK, | ||
190 | SCIFA0_RTS_MARK, SCIFA0_CTS_MARK, | ||
191 | |||
192 | /* SCIFA1 */ | ||
193 | SCIFA1_TXD_MARK, SCIFA1_RXD_MARK, SCIFA1_SCK_MARK, | ||
194 | SCIFA1_RTS_MARK, SCIFA1_CTS_MARK, | ||
195 | |||
196 | /* SCIFA2 */ | ||
197 | SCIFA2_CTS1_MARK, SCIFA2_RTS1_MARK, SCIFA2_TXD1_MARK, | ||
198 | SCIFA2_RXD1_MARK, SCIFA2_SCK1_MARK, | ||
199 | |||
200 | /* SCIFA3 */ | ||
201 | SCIFA3_CTS_43_MARK, SCIFA3_CTS_140_MARK, SCIFA3_RTS_44_MARK, | ||
202 | SCIFA3_RTS_141_MARK, SCIFA3_SCK_MARK, SCIFA3_TXD_MARK, | ||
203 | SCIFA3_RXD_MARK, | ||
204 | |||
205 | /* SCIFA4 */ | ||
206 | SCIFA4_RXD_MARK, SCIFA4_TXD_MARK, | ||
207 | |||
208 | /* SCIFA5 */ | ||
209 | SCIFA5_RXD_MARK, SCIFA5_TXD_MARK, | ||
210 | |||
211 | /* SCIFB */ | ||
212 | SCIFB_SCK_MARK, SCIFB_RTS_MARK, SCIFB_CTS_MARK, | ||
213 | SCIFB_TXD_MARK, SCIFB_RXD_MARK, | ||
214 | |||
215 | /* CEU */ | ||
216 | VIO_HD_MARK, VIO_CKO1_MARK, VIO_CKO2_MARK, VIO_VD_MARK, | ||
217 | VIO_CLK_MARK, VIO_FIELD_MARK, VIO_CKO_MARK, | ||
218 | VIO_D0_MARK, VIO_D1_MARK, VIO_D2_MARK, VIO_D3_MARK, | ||
219 | VIO_D4_MARK, VIO_D5_MARK, VIO_D6_MARK, VIO_D7_MARK, | ||
220 | VIO_D8_MARK, VIO_D9_MARK, VIO_D10_MARK, VIO_D11_MARK, | ||
221 | VIO_D12_MARK, VIO_D13_MARK, VIO_D14_MARK, VIO_D15_MARK, | ||
222 | |||
223 | /* USB0 */ | ||
224 | IDIN_0_MARK, EXTLP_0_MARK, OVCN2_0_MARK, PWEN_0_MARK, | ||
225 | OVCN_0_MARK, VBUS0_0_MARK, | ||
226 | |||
227 | /* USB1 */ | ||
228 | IDIN_1_18_MARK, IDIN_1_113_MARK, | ||
229 | PWEN_1_115_MARK, PWEN_1_138_MARK, | ||
230 | OVCN_1_114_MARK, OVCN_1_162_MARK, | ||
231 | EXTLP_1_MARK, OVCN2_1_MARK, | ||
232 | VBUS0_1_MARK, | ||
233 | |||
234 | /* GPIO */ | ||
235 | GPI0_MARK, GPI1_MARK, GPO0_MARK, GPO1_MARK, | ||
236 | |||
237 | /* BSC */ | ||
238 | BS_MARK, WE1_MARK, | ||
239 | CKO_MARK, WAIT_MARK, RDWR_MARK, | ||
240 | |||
241 | A0_MARK, A1_MARK, A2_MARK, A3_MARK, | ||
242 | A6_MARK, A7_MARK, A8_MARK, A9_MARK, | ||
243 | A10_MARK, A11_MARK, A12_MARK, A13_MARK, | ||
244 | A14_MARK, A15_MARK, A16_MARK, A17_MARK, | ||
245 | A18_MARK, A19_MARK, A20_MARK, A21_MARK, | ||
246 | A22_MARK, A23_MARK, A24_MARK, A25_MARK, | ||
247 | A26_MARK, | ||
248 | |||
249 | CS0_MARK, CS2_MARK, CS4_MARK, | ||
250 | CS5A_MARK, CS5B_MARK, CS6A_MARK, | ||
251 | |||
252 | /* BSC/FLCTL */ | ||
253 | RD_FSC_MARK, WE0_FWE_MARK, A4_FOE_MARK, A5_FCDE_MARK, | ||
254 | D0_NAF0_MARK, D1_NAF1_MARK, D2_NAF2_MARK, D3_NAF3_MARK, | ||
255 | D4_NAF4_MARK, D5_NAF5_MARK, D6_NAF6_MARK, D7_NAF7_MARK, | ||
256 | D8_NAF8_MARK, D9_NAF9_MARK, D10_NAF10_MARK, D11_NAF11_MARK, | ||
257 | D12_NAF12_MARK, D13_NAF13_MARK, D14_NAF14_MARK, D15_NAF15_MARK, | ||
258 | |||
259 | /* MMCIF(1) */ | ||
260 | MMCD0_0_MARK, MMCD0_1_MARK, MMCD0_2_MARK, MMCD0_3_MARK, | ||
261 | MMCD0_4_MARK, MMCD0_5_MARK, MMCD0_6_MARK, MMCD0_7_MARK, | ||
262 | MMCCMD0_MARK, MMCCLK0_MARK, | ||
263 | |||
264 | /* MMCIF(2) */ | ||
265 | MMCD1_0_MARK, MMCD1_1_MARK, MMCD1_2_MARK, MMCD1_3_MARK, | ||
266 | MMCD1_4_MARK, MMCD1_5_MARK, MMCD1_6_MARK, MMCD1_7_MARK, | ||
267 | MMCCLK1_MARK, MMCCMD1_MARK, | ||
268 | |||
269 | /* SPU2 */ | ||
270 | VINT_I_MARK, | ||
271 | |||
272 | /* FLCTL */ | ||
273 | FCE1_MARK, FCE0_MARK, FRB_MARK, | ||
274 | |||
275 | /* HSI */ | ||
276 | GP_RX_FLAG_MARK, GP_RX_DATA_MARK, GP_TX_READY_MARK, | ||
277 | GP_RX_WAKE_MARK, MP_TX_FLAG_MARK, MP_TX_DATA_MARK, | ||
278 | MP_RX_READY_MARK, MP_TX_WAKE_MARK, | ||
279 | |||
280 | /* MFI */ | ||
281 | MFIv6_MARK, | ||
282 | MFIv4_MARK, | ||
283 | |||
284 | MEMC_CS0_MARK, MEMC_BUSCLK_MEMC_A0_MARK, | ||
285 | MEMC_CS1_MEMC_A1_MARK, MEMC_ADV_MEMC_DREQ0_MARK, | ||
286 | MEMC_WAIT_MEMC_DREQ1_MARK, MEMC_NOE_MARK, | ||
287 | MEMC_NWE_MARK, MEMC_INT_MARK, | ||
288 | |||
289 | MEMC_AD0_MARK, MEMC_AD1_MARK, MEMC_AD2_MARK, | ||
290 | MEMC_AD3_MARK, MEMC_AD4_MARK, MEMC_AD5_MARK, | ||
291 | MEMC_AD6_MARK, MEMC_AD7_MARK, MEMC_AD8_MARK, | ||
292 | MEMC_AD9_MARK, MEMC_AD10_MARK, MEMC_AD11_MARK, | ||
293 | MEMC_AD12_MARK, MEMC_AD13_MARK, MEMC_AD14_MARK, | ||
294 | MEMC_AD15_MARK, | ||
295 | |||
296 | /* SIM */ | ||
297 | SIM_RST_MARK, SIM_CLK_MARK, SIM_D_MARK, | ||
298 | |||
299 | /* TPU */ | ||
300 | TPU0TO0_MARK, TPU0TO1_MARK, | ||
301 | TPU0TO2_93_MARK, TPU0TO2_99_MARK, | ||
302 | TPU0TO3_MARK, | ||
303 | |||
304 | /* I2C2 */ | ||
305 | I2C_SCL2_MARK, I2C_SDA2_MARK, | ||
306 | |||
307 | /* I2C3(1) */ | ||
308 | I2C_SCL3_MARK, I2C_SDA3_MARK, | ||
309 | |||
310 | /* I2C3(2) */ | ||
311 | I2C_SCL3S_MARK, I2C_SDA3S_MARK, | ||
312 | |||
313 | /* I2C4(2) */ | ||
314 | I2C_SCL4_MARK, I2C_SDA4_MARK, | ||
315 | |||
316 | /* I2C4(2) */ | ||
317 | I2C_SCL4S_MARK, I2C_SDA4S_MARK, | ||
318 | |||
319 | /* KEYSC */ | ||
320 | KEYOUT0_MARK, KEYIN0_121_MARK, KEYIN0_136_MARK, | ||
321 | KEYOUT1_MARK, KEYIN1_122_MARK, KEYIN1_135_MARK, | ||
322 | KEYOUT2_MARK, KEYIN2_123_MARK, KEYIN2_134_MARK, | ||
323 | KEYOUT3_MARK, KEYIN3_124_MARK, KEYIN3_133_MARK, | ||
324 | KEYOUT4_MARK, KEYIN4_MARK, | ||
325 | KEYOUT5_MARK, KEYIN5_MARK, | ||
326 | KEYOUT6_MARK, KEYIN6_MARK, | ||
327 | KEYOUT7_MARK, KEYIN7_MARK, | ||
328 | |||
329 | /* LCDC */ | ||
330 | LCDC0_SELECT_MARK, | ||
331 | LCDC1_SELECT_MARK, | ||
332 | LCDHSYN_MARK, LCDCS_MARK, LCDVSYN_MARK, LCDDCK_MARK, | ||
333 | LCDWR_MARK, LCDRD_MARK, LCDDISP_MARK, LCDRS_MARK, | ||
334 | LCDLCLK_MARK, LCDDON_MARK, | ||
335 | |||
336 | LCDD0_MARK, LCDD1_MARK, LCDD2_MARK, LCDD3_MARK, | ||
337 | LCDD4_MARK, LCDD5_MARK, LCDD6_MARK, LCDD7_MARK, | ||
338 | LCDD8_MARK, LCDD9_MARK, LCDD10_MARK, LCDD11_MARK, | ||
339 | LCDD12_MARK, LCDD13_MARK, LCDD14_MARK, LCDD15_MARK, | ||
340 | LCDD16_MARK, LCDD17_MARK, LCDD18_MARK, LCDD19_MARK, | ||
341 | LCDD20_MARK, LCDD21_MARK, LCDD22_MARK, LCDD23_MARK, | ||
342 | |||
343 | /* IRDA */ | ||
344 | IRDA_OUT_MARK, IRDA_IN_MARK, IRDA_FIRSEL_MARK, | ||
345 | IROUT_139_MARK, IROUT_140_MARK, | ||
346 | |||
347 | /* TSIF1 */ | ||
348 | TS0_1SELECT_MARK, | ||
349 | TS0_2SELECT_MARK, | ||
350 | TS1_1SELECT_MARK, | ||
351 | TS1_2SELECT_MARK, | ||
352 | |||
353 | TS_SPSYNC1_MARK, TS_SDAT1_MARK, | ||
354 | TS_SDEN1_MARK, TS_SCK1_MARK, | ||
355 | |||
356 | /* TSIF2 */ | ||
357 | TS_SPSYNC2_MARK, TS_SDAT2_MARK, | ||
358 | TS_SDEN2_MARK, TS_SCK2_MARK, | ||
359 | |||
360 | /* HDMI */ | ||
361 | HDMI_HPD_MARK, HDMI_CEC_MARK, | ||
362 | |||
363 | /* SDHI0 */ | ||
364 | SDHICLK0_MARK, SDHICD0_MARK, | ||
365 | SDHICMD0_MARK, SDHIWP0_MARK, | ||
366 | SDHID0_0_MARK, SDHID0_1_MARK, | ||
367 | SDHID0_2_MARK, SDHID0_3_MARK, | ||
368 | |||
369 | /* SDHI1 */ | ||
370 | SDHICLK1_MARK, SDHICMD1_MARK, SDHID1_0_MARK, | ||
371 | SDHID1_1_MARK, SDHID1_2_MARK, SDHID1_3_MARK, | ||
372 | |||
373 | /* SDHI2 */ | ||
374 | SDHICLK2_MARK, SDHICMD2_MARK, SDHID2_0_MARK, | ||
375 | SDHID2_1_MARK, SDHID2_2_MARK, SDHID2_3_MARK, | ||
376 | |||
377 | /* SDENC */ | ||
378 | SDENC_CPG_MARK, | ||
379 | SDENC_DV_CLKI_MARK, | ||
380 | |||
381 | PINMUX_MARK_END, | ||
382 | }; | ||
383 | |||
384 | /* PORT_DATA_I_PD(nr) */ | ||
385 | #define _I___D(nr) \ | ||
386 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \ | ||
387 | PORT##nr##_IN, PORT##nr##_IN_PD) | ||
388 | |||
389 | /* PORT_DATA_I_PU(nr) */ | ||
390 | #define _I__U_(nr) \ | ||
391 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \ | ||
392 | PORT##nr##_IN, PORT##nr##_IN_PU) | ||
393 | |||
394 | /* PORT_DATA_I_PU_PD(nr) */ | ||
395 | #define _I__UD(nr) \ | ||
396 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \ | ||
397 | PORT##nr##_IN, PORT##nr##_IN_PD, PORT##nr##_IN_PU) | ||
398 | |||
399 | /* PORT_DATA_O(nr) */ | ||
400 | #define __O___(nr) \ | ||
401 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_OUT) | ||
402 | |||
403 | /* PORT_DATA_IO(nr) */ | ||
404 | #define _IO___(nr) \ | ||
405 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_OUT, \ | ||
406 | PORT##nr##_IN) | ||
407 | |||
408 | /* PORT_DATA_IO_PD(nr) */ | ||
409 | #define _IO__D(nr) \ | ||
410 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_OUT, \ | ||
411 | PORT##nr##_IN, PORT##nr##_IN_PD) | ||
412 | |||
413 | /* PORT_DATA_IO_PU(nr) */ | ||
414 | #define _IO_U_(nr) \ | ||
415 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_OUT, \ | ||
416 | PORT##nr##_IN, PORT##nr##_IN_PU) | ||
417 | |||
418 | /* PORT_DATA_IO_PU_PD(nr) */ | ||
419 | #define _IO_UD(nr) \ | ||
420 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_OUT, \ | ||
421 | PORT##nr##_IN, PORT##nr##_IN_PD, PORT##nr##_IN_PU) | ||
422 | |||
423 | |||
424 | static pinmux_enum_t pinmux_data[] = { | ||
425 | |||
426 | /* specify valid pin states for each pin in GPIO mode */ | ||
427 | |||
428 | _IO__D(0), _IO__D(1), __O___(2), _I___D(3), _I___D(4), | ||
429 | _I___D(5), _IO_UD(6), _I___D(7), _IO__D(8), __O___(9), | ||
430 | |||
431 | __O___(10), __O___(11), _IO_UD(12), _IO__D(13), _IO__D(14), | ||
432 | __O___(15), _IO__D(16), _IO__D(17), _I___D(18), _IO___(19), | ||
433 | |||
434 | _IO___(20), _IO___(21), _IO___(22), _IO___(23), _IO___(24), | ||
435 | _IO___(25), _IO___(26), _IO___(27), _IO___(28), _IO___(29), | ||
436 | |||
437 | _IO___(30), _IO___(31), _IO___(32), _IO___(33), _IO___(34), | ||
438 | _IO___(35), _IO___(36), _IO___(37), _IO___(38), _IO___(39), | ||
439 | |||
440 | _IO___(40), _IO___(41), _IO___(42), _IO___(43), _IO___(44), | ||
441 | _IO___(45), _IO_U_(46), _IO_U_(47), _IO_U_(48), _IO_U_(49), | ||
442 | |||
443 | _IO_U_(50), _IO_U_(51), _IO_U_(52), _IO_U_(53), _IO_U_(54), | ||
444 | _IO_U_(55), _IO_U_(56), _IO_U_(57), _IO_U_(58), _IO_U_(59), | ||
445 | |||
446 | _IO_U_(60), _IO_U_(61), _IO___(62), __O___(63), __O___(64), | ||
447 | _IO_U_(65), __O___(66), _IO_U_(67), __O___(68), _IO___(69), /*66?*/ | ||
448 | |||
449 | _IO___(70), _IO___(71), __O___(72), _I__U_(73), _I__UD(74), | ||
450 | _IO_UD(75), _IO_UD(76), _IO_UD(77), _IO_UD(78), _IO_UD(79), | ||
451 | |||
452 | _IO_UD(80), _IO_UD(81), _IO_UD(82), _IO_UD(83), _IO_UD(84), | ||
453 | _IO_UD(85), _IO_UD(86), _IO_UD(87), _IO_UD(88), _IO_UD(89), | ||
454 | |||
455 | _IO_UD(90), _IO_UD(91), _IO_UD(92), _IO_UD(93), _IO_UD(94), | ||
456 | _IO_UD(95), _IO_U_(96), _IO_UD(97), _IO_UD(98), __O___(99), /*99?*/ | ||
457 | |||
458 | _IO__D(100), _IO__D(101), _IO__D(102), _IO__D(103), _IO__D(104), | ||
459 | _IO__D(105), _IO_U_(106), _IO_U_(107), _IO_U_(108), _IO_U_(109), | ||
460 | |||
461 | _IO_U_(110), _IO_U_(111), _IO__D(112), _IO__D(113), _IO_U_(114), | ||
462 | _IO_U_(115), _IO_U_(116), _IO_U_(117), _IO_U_(118), _IO_U_(119), | ||
463 | |||
464 | _IO_U_(120), _IO__D(121), _IO__D(122), _IO__D(123), _IO__D(124), | ||
465 | _IO__D(125), _IO__D(126), _IO__D(127), _IO__D(128), _IO_UD(129), | ||
466 | |||
467 | _IO_UD(130), _IO_UD(131), _IO_UD(132), _IO_UD(133), _IO_UD(134), | ||
468 | _IO_UD(135), _IO__D(136), _IO__D(137), _IO__D(138), _IO__D(139), | ||
469 | |||
470 | _IO__D(140), _IO__D(141), _IO__D(142), _IO_UD(143), _IO__D(144), | ||
471 | _IO__D(145), _IO__D(146), _IO__D(147), _IO__D(148), _IO__D(149), | ||
472 | |||
473 | _IO__D(150), _IO__D(151), _IO_UD(152), _I___D(153), _IO_UD(154), | ||
474 | _I___D(155), _IO__D(156), _IO__D(157), _I___D(158), _IO__D(159), | ||
475 | |||
476 | __O___(160), _IO__D(161), _IO__D(162), _IO__D(163), _I___D(164), | ||
477 | _IO__D(165), _I___D(166), _I___D(167), _I___D(168), _I___D(169), | ||
478 | |||
479 | _I___D(170), __O___(171), _IO_UD(172), _IO_UD(173), _IO_UD(174), | ||
480 | _IO_UD(175), _IO_UD(176), _IO_UD(177), _IO_UD(178), __O___(179), | ||
481 | |||
482 | _IO_UD(180), _IO_UD(181), _IO_UD(182), _IO_UD(183), _IO_UD(184), | ||
483 | __O___(185), _IO_UD(186), _IO_UD(187), _IO_UD(188), _IO_UD(189), | ||
484 | |||
485 | _IO_UD(190), | ||
486 | |||
487 | /* IRQ */ | ||
488 | PINMUX_DATA(IRQ0_6_MARK, PORT6_FN0, MSEL1CR_0_0), | ||
489 | PINMUX_DATA(IRQ0_162_MARK, PORT162_FN0, MSEL1CR_0_1), | ||
490 | PINMUX_DATA(IRQ1_MARK, PORT12_FN0), | ||
491 | PINMUX_DATA(IRQ2_4_MARK, PORT4_FN0, MSEL1CR_2_0), | ||
492 | PINMUX_DATA(IRQ2_5_MARK, PORT5_FN0, MSEL1CR_2_1), | ||
493 | PINMUX_DATA(IRQ3_8_MARK, PORT8_FN0, MSEL1CR_3_0), | ||
494 | PINMUX_DATA(IRQ3_16_MARK, PORT16_FN0, MSEL1CR_3_1), | ||
495 | PINMUX_DATA(IRQ4_17_MARK, PORT17_FN0, MSEL1CR_4_0), | ||
496 | PINMUX_DATA(IRQ4_163_MARK, PORT163_FN0, MSEL1CR_4_1), | ||
497 | PINMUX_DATA(IRQ5_MARK, PORT18_FN0), | ||
498 | PINMUX_DATA(IRQ6_39_MARK, PORT39_FN0, MSEL1CR_6_0), | ||
499 | PINMUX_DATA(IRQ6_164_MARK, PORT164_FN0, MSEL1CR_6_1), | ||
500 | PINMUX_DATA(IRQ7_40_MARK, PORT40_FN0, MSEL1CR_7_1), | ||
501 | PINMUX_DATA(IRQ7_167_MARK, PORT167_FN0, MSEL1CR_7_0), | ||
502 | PINMUX_DATA(IRQ8_41_MARK, PORT41_FN0, MSEL1CR_8_1), | ||
503 | PINMUX_DATA(IRQ8_168_MARK, PORT168_FN0, MSEL1CR_8_0), | ||
504 | PINMUX_DATA(IRQ9_42_MARK, PORT42_FN0, MSEL1CR_9_0), | ||
505 | PINMUX_DATA(IRQ9_169_MARK, PORT169_FN0, MSEL1CR_9_1), | ||
506 | PINMUX_DATA(IRQ10_MARK, PORT65_FN0, MSEL1CR_9_1), | ||
507 | PINMUX_DATA(IRQ11_MARK, PORT67_FN0), | ||
508 | PINMUX_DATA(IRQ12_80_MARK, PORT80_FN0, MSEL1CR_12_0), | ||
509 | PINMUX_DATA(IRQ12_137_MARK, PORT137_FN0, MSEL1CR_12_1), | ||
510 | PINMUX_DATA(IRQ13_81_MARK, PORT81_FN0, MSEL1CR_13_0), | ||
511 | PINMUX_DATA(IRQ13_145_MARK, PORT145_FN0, MSEL1CR_13_1), | ||
512 | PINMUX_DATA(IRQ14_82_MARK, PORT82_FN0, MSEL1CR_14_0), | ||
513 | PINMUX_DATA(IRQ14_146_MARK, PORT146_FN0, MSEL1CR_14_1), | ||
514 | PINMUX_DATA(IRQ15_83_MARK, PORT83_FN0, MSEL1CR_15_0), | ||
515 | PINMUX_DATA(IRQ15_147_MARK, PORT147_FN0, MSEL1CR_15_1), | ||
516 | PINMUX_DATA(IRQ16_84_MARK, PORT84_FN0, MSEL1CR_16_0), | ||
517 | PINMUX_DATA(IRQ16_170_MARK, PORT170_FN0, MSEL1CR_16_1), | ||
518 | PINMUX_DATA(IRQ17_MARK, PORT85_FN0), | ||
519 | PINMUX_DATA(IRQ18_MARK, PORT86_FN0), | ||
520 | PINMUX_DATA(IRQ19_MARK, PORT87_FN0), | ||
521 | PINMUX_DATA(IRQ20_MARK, PORT92_FN0), | ||
522 | PINMUX_DATA(IRQ21_MARK, PORT93_FN0), | ||
523 | PINMUX_DATA(IRQ22_MARK, PORT94_FN0), | ||
524 | PINMUX_DATA(IRQ23_MARK, PORT95_FN0), | ||
525 | PINMUX_DATA(IRQ24_MARK, PORT112_FN0), | ||
526 | PINMUX_DATA(IRQ25_MARK, PORT119_FN0), | ||
527 | PINMUX_DATA(IRQ26_121_MARK, PORT121_FN0, MSEL1CR_26_1), | ||
528 | PINMUX_DATA(IRQ26_172_MARK, PORT172_FN0, MSEL1CR_26_0), | ||
529 | PINMUX_DATA(IRQ27_122_MARK, PORT122_FN0, MSEL1CR_27_1), | ||
530 | PINMUX_DATA(IRQ27_180_MARK, PORT180_FN0, MSEL1CR_27_0), | ||
531 | PINMUX_DATA(IRQ28_123_MARK, PORT123_FN0, MSEL1CR_28_1), | ||
532 | PINMUX_DATA(IRQ28_181_MARK, PORT181_FN0, MSEL1CR_28_0), | ||
533 | PINMUX_DATA(IRQ29_129_MARK, PORT129_FN0, MSEL1CR_29_1), | ||
534 | PINMUX_DATA(IRQ29_182_MARK, PORT182_FN0, MSEL1CR_29_0), | ||
535 | PINMUX_DATA(IRQ30_130_MARK, PORT130_FN0, MSEL1CR_30_1), | ||
536 | PINMUX_DATA(IRQ30_183_MARK, PORT183_FN0, MSEL1CR_30_0), | ||
537 | PINMUX_DATA(IRQ31_138_MARK, PORT138_FN0, MSEL1CR_31_1), | ||
538 | PINMUX_DATA(IRQ31_184_MARK, PORT184_FN0, MSEL1CR_31_0), | ||
539 | |||
540 | /* Function 1 */ | ||
541 | PINMUX_DATA(BBIF2_TSCK1_MARK, PORT0_FN1), | ||
542 | PINMUX_DATA(BBIF2_TSYNC1_MARK, PORT1_FN1), | ||
543 | PINMUX_DATA(BBIF2_TXD1_MARK, PORT2_FN1), | ||
544 | PINMUX_DATA(BBIF2_RXD_MARK, PORT3_FN1), | ||
545 | PINMUX_DATA(FSIACK_MARK, PORT4_FN1), | ||
546 | PINMUX_DATA(FSIAILR_MARK, PORT5_FN1), | ||
547 | PINMUX_DATA(FSIAIBT_MARK, PORT6_FN1), | ||
548 | PINMUX_DATA(FSIAISLD_MARK, PORT7_FN1), | ||
549 | PINMUX_DATA(FSIAOMC_MARK, PORT8_FN1), | ||
550 | PINMUX_DATA(FSIAOLR_MARK, PORT9_FN1), | ||
551 | PINMUX_DATA(FSIAOBT_MARK, PORT10_FN1), | ||
552 | PINMUX_DATA(FSIAOSLD_MARK, PORT11_FN1), | ||
553 | PINMUX_DATA(FMSOCK_MARK, PORT12_FN1), | ||
554 | PINMUX_DATA(FMSOOLR_MARK, PORT13_FN1), | ||
555 | PINMUX_DATA(FMSOOBT_MARK, PORT14_FN1), | ||
556 | PINMUX_DATA(FMSOSLD_MARK, PORT15_FN1), | ||
557 | PINMUX_DATA(FMSOILR_MARK, PORT16_FN1), | ||
558 | PINMUX_DATA(FMSOIBT_MARK, PORT17_FN1), | ||
559 | PINMUX_DATA(FMSISLD_MARK, PORT18_FN1), | ||
560 | PINMUX_DATA(A0_MARK, PORT19_FN1), | ||
561 | PINMUX_DATA(A1_MARK, PORT20_FN1), | ||
562 | PINMUX_DATA(A2_MARK, PORT21_FN1), | ||
563 | PINMUX_DATA(A3_MARK, PORT22_FN1), | ||
564 | PINMUX_DATA(A4_FOE_MARK, PORT23_FN1), | ||
565 | PINMUX_DATA(A5_FCDE_MARK, PORT24_FN1), | ||
566 | PINMUX_DATA(A6_MARK, PORT25_FN1), | ||
567 | PINMUX_DATA(A7_MARK, PORT26_FN1), | ||
568 | PINMUX_DATA(A8_MARK, PORT27_FN1), | ||
569 | PINMUX_DATA(A9_MARK, PORT28_FN1), | ||
570 | PINMUX_DATA(A10_MARK, PORT29_FN1), | ||
571 | PINMUX_DATA(A11_MARK, PORT30_FN1), | ||
572 | PINMUX_DATA(A12_MARK, PORT31_FN1), | ||
573 | PINMUX_DATA(A13_MARK, PORT32_FN1), | ||
574 | PINMUX_DATA(A14_MARK, PORT33_FN1), | ||
575 | PINMUX_DATA(A15_MARK, PORT34_FN1), | ||
576 | PINMUX_DATA(A16_MARK, PORT35_FN1), | ||
577 | PINMUX_DATA(A17_MARK, PORT36_FN1), | ||
578 | PINMUX_DATA(A18_MARK, PORT37_FN1), | ||
579 | PINMUX_DATA(A19_MARK, PORT38_FN1), | ||
580 | PINMUX_DATA(A20_MARK, PORT39_FN1), | ||
581 | PINMUX_DATA(A21_MARK, PORT40_FN1), | ||
582 | PINMUX_DATA(A22_MARK, PORT41_FN1), | ||
583 | PINMUX_DATA(A23_MARK, PORT42_FN1), | ||
584 | PINMUX_DATA(A24_MARK, PORT43_FN1), | ||
585 | PINMUX_DATA(A25_MARK, PORT44_FN1), | ||
586 | PINMUX_DATA(A26_MARK, PORT45_FN1), | ||
587 | PINMUX_DATA(D0_NAF0_MARK, PORT46_FN1), | ||
588 | PINMUX_DATA(D1_NAF1_MARK, PORT47_FN1), | ||
589 | PINMUX_DATA(D2_NAF2_MARK, PORT48_FN1), | ||
590 | PINMUX_DATA(D3_NAF3_MARK, PORT49_FN1), | ||
591 | PINMUX_DATA(D4_NAF4_MARK, PORT50_FN1), | ||
592 | PINMUX_DATA(D5_NAF5_MARK, PORT51_FN1), | ||
593 | PINMUX_DATA(D6_NAF6_MARK, PORT52_FN1), | ||
594 | PINMUX_DATA(D7_NAF7_MARK, PORT53_FN1), | ||
595 | PINMUX_DATA(D8_NAF8_MARK, PORT54_FN1), | ||
596 | PINMUX_DATA(D9_NAF9_MARK, PORT55_FN1), | ||
597 | PINMUX_DATA(D10_NAF10_MARK, PORT56_FN1), | ||
598 | PINMUX_DATA(D11_NAF11_MARK, PORT57_FN1), | ||
599 | PINMUX_DATA(D12_NAF12_MARK, PORT58_FN1), | ||
600 | PINMUX_DATA(D13_NAF13_MARK, PORT59_FN1), | ||
601 | PINMUX_DATA(D14_NAF14_MARK, PORT60_FN1), | ||
602 | PINMUX_DATA(D15_NAF15_MARK, PORT61_FN1), | ||
603 | PINMUX_DATA(CS0_MARK, PORT62_FN1), | ||
604 | PINMUX_DATA(CS2_MARK, PORT63_FN1), | ||
605 | PINMUX_DATA(CS4_MARK, PORT64_FN1), | ||
606 | PINMUX_DATA(CS5A_MARK, PORT65_FN1), | ||
607 | PINMUX_DATA(CS5B_MARK, PORT66_FN1), | ||
608 | PINMUX_DATA(CS6A_MARK, PORT67_FN1), | ||
609 | PINMUX_DATA(FCE0_MARK, PORT68_FN1), | ||
610 | PINMUX_DATA(RD_FSC_MARK, PORT69_FN1), | ||
611 | PINMUX_DATA(WE0_FWE_MARK, PORT70_FN1), | ||
612 | PINMUX_DATA(WE1_MARK, PORT71_FN1), | ||
613 | PINMUX_DATA(CKO_MARK, PORT72_FN1), | ||
614 | PINMUX_DATA(FRB_MARK, PORT73_FN1), | ||
615 | PINMUX_DATA(WAIT_MARK, PORT74_FN1), | ||
616 | PINMUX_DATA(RDWR_MARK, PORT75_FN1), | ||
617 | PINMUX_DATA(MEMC_AD0_MARK, PORT76_FN1), | ||
618 | PINMUX_DATA(MEMC_AD1_MARK, PORT77_FN1), | ||
619 | PINMUX_DATA(MEMC_AD2_MARK, PORT78_FN1), | ||
620 | PINMUX_DATA(MEMC_AD3_MARK, PORT79_FN1), | ||
621 | PINMUX_DATA(MEMC_AD4_MARK, PORT80_FN1), | ||
622 | PINMUX_DATA(MEMC_AD5_MARK, PORT81_FN1), | ||
623 | PINMUX_DATA(MEMC_AD6_MARK, PORT82_FN1), | ||
624 | PINMUX_DATA(MEMC_AD7_MARK, PORT83_FN1), | ||
625 | PINMUX_DATA(MEMC_AD8_MARK, PORT84_FN1), | ||
626 | PINMUX_DATA(MEMC_AD9_MARK, PORT85_FN1), | ||
627 | PINMUX_DATA(MEMC_AD10_MARK, PORT86_FN1), | ||
628 | PINMUX_DATA(MEMC_AD11_MARK, PORT87_FN1), | ||
629 | PINMUX_DATA(MEMC_AD12_MARK, PORT88_FN1), | ||
630 | PINMUX_DATA(MEMC_AD13_MARK, PORT89_FN1), | ||
631 | PINMUX_DATA(MEMC_AD14_MARK, PORT90_FN1), | ||
632 | PINMUX_DATA(MEMC_AD15_MARK, PORT91_FN1), | ||
633 | PINMUX_DATA(MEMC_CS0_MARK, PORT92_FN1), | ||
634 | PINMUX_DATA(MEMC_BUSCLK_MEMC_A0_MARK, PORT93_FN1), | ||
635 | PINMUX_DATA(MEMC_CS1_MEMC_A1_MARK, PORT94_FN1), | ||
636 | PINMUX_DATA(MEMC_ADV_MEMC_DREQ0_MARK, PORT95_FN1), | ||
637 | PINMUX_DATA(MEMC_WAIT_MEMC_DREQ1_MARK, PORT96_FN1), | ||
638 | PINMUX_DATA(MEMC_NOE_MARK, PORT97_FN1), | ||
639 | PINMUX_DATA(MEMC_NWE_MARK, PORT98_FN1), | ||
640 | PINMUX_DATA(MEMC_INT_MARK, PORT99_FN1), | ||
641 | PINMUX_DATA(VIO_VD_MARK, PORT100_FN1), | ||
642 | PINMUX_DATA(VIO_HD_MARK, PORT101_FN1), | ||
643 | PINMUX_DATA(VIO_D0_MARK, PORT102_FN1), | ||
644 | PINMUX_DATA(VIO_D1_MARK, PORT103_FN1), | ||
645 | PINMUX_DATA(VIO_D2_MARK, PORT104_FN1), | ||
646 | PINMUX_DATA(VIO_D3_MARK, PORT105_FN1), | ||
647 | PINMUX_DATA(VIO_D4_MARK, PORT106_FN1), | ||
648 | PINMUX_DATA(VIO_D5_MARK, PORT107_FN1), | ||
649 | PINMUX_DATA(VIO_D6_MARK, PORT108_FN1), | ||
650 | PINMUX_DATA(VIO_D7_MARK, PORT109_FN1), | ||
651 | PINMUX_DATA(VIO_D8_MARK, PORT110_FN1), | ||
652 | PINMUX_DATA(VIO_D9_MARK, PORT111_FN1), | ||
653 | PINMUX_DATA(VIO_D10_MARK, PORT112_FN1), | ||
654 | PINMUX_DATA(VIO_D11_MARK, PORT113_FN1), | ||
655 | PINMUX_DATA(VIO_D12_MARK, PORT114_FN1), | ||
656 | PINMUX_DATA(VIO_D13_MARK, PORT115_FN1), | ||
657 | PINMUX_DATA(VIO_D14_MARK, PORT116_FN1), | ||
658 | PINMUX_DATA(VIO_D15_MARK, PORT117_FN1), | ||
659 | PINMUX_DATA(VIO_CLK_MARK, PORT118_FN1), | ||
660 | PINMUX_DATA(VIO_FIELD_MARK, PORT119_FN1), | ||
661 | PINMUX_DATA(VIO_CKO_MARK, PORT120_FN1), | ||
662 | PINMUX_DATA(LCDD0_MARK, PORT121_FN1), | ||
663 | PINMUX_DATA(LCDD1_MARK, PORT122_FN1), | ||
664 | PINMUX_DATA(LCDD2_MARK, PORT123_FN1), | ||
665 | PINMUX_DATA(LCDD3_MARK, PORT124_FN1), | ||
666 | PINMUX_DATA(LCDD4_MARK, PORT125_FN1), | ||
667 | PINMUX_DATA(LCDD5_MARK, PORT126_FN1), | ||
668 | PINMUX_DATA(LCDD6_MARK, PORT127_FN1), | ||
669 | PINMUX_DATA(LCDD7_MARK, PORT128_FN1), | ||
670 | PINMUX_DATA(LCDD8_MARK, PORT129_FN1), | ||
671 | PINMUX_DATA(LCDD9_MARK, PORT130_FN1), | ||
672 | PINMUX_DATA(LCDD10_MARK, PORT131_FN1), | ||
673 | PINMUX_DATA(LCDD11_MARK, PORT132_FN1), | ||
674 | PINMUX_DATA(LCDD12_MARK, PORT133_FN1), | ||
675 | PINMUX_DATA(LCDD13_MARK, PORT134_FN1), | ||
676 | PINMUX_DATA(LCDD14_MARK, PORT135_FN1), | ||
677 | PINMUX_DATA(LCDD15_MARK, PORT136_FN1), | ||
678 | PINMUX_DATA(LCDD16_MARK, PORT137_FN1), | ||
679 | PINMUX_DATA(LCDD17_MARK, PORT138_FN1), | ||
680 | PINMUX_DATA(LCDD18_MARK, PORT139_FN1), | ||
681 | PINMUX_DATA(LCDD19_MARK, PORT140_FN1), | ||
682 | PINMUX_DATA(LCDD20_MARK, PORT141_FN1), | ||
683 | PINMUX_DATA(LCDD21_MARK, PORT142_FN1), | ||
684 | PINMUX_DATA(LCDD22_MARK, PORT143_FN1), | ||
685 | PINMUX_DATA(LCDD23_MARK, PORT144_FN1), | ||
686 | PINMUX_DATA(LCDHSYN_MARK, PORT145_FN1), | ||
687 | PINMUX_DATA(LCDVSYN_MARK, PORT146_FN1), | ||
688 | PINMUX_DATA(LCDDCK_MARK, PORT147_FN1), | ||
689 | PINMUX_DATA(LCDRD_MARK, PORT148_FN1), | ||
690 | PINMUX_DATA(LCDDISP_MARK, PORT149_FN1), | ||
691 | PINMUX_DATA(LCDLCLK_MARK, PORT150_FN1), | ||
692 | PINMUX_DATA(LCDDON_MARK, PORT151_FN1), | ||
693 | PINMUX_DATA(SCIFA0_TXD_MARK, PORT152_FN1), | ||
694 | PINMUX_DATA(SCIFA0_RXD_MARK, PORT153_FN1), | ||
695 | PINMUX_DATA(SCIFA1_TXD_MARK, PORT154_FN1), | ||
696 | PINMUX_DATA(SCIFA1_RXD_MARK, PORT155_FN1), | ||
697 | PINMUX_DATA(TS_SPSYNC1_MARK, PORT156_FN1), | ||
698 | PINMUX_DATA(TS_SDAT1_MARK, PORT157_FN1), | ||
699 | PINMUX_DATA(TS_SDEN1_MARK, PORT158_FN1), | ||
700 | PINMUX_DATA(TS_SCK1_MARK, PORT159_FN1), | ||
701 | PINMUX_DATA(TPU0TO0_MARK, PORT160_FN1), | ||
702 | PINMUX_DATA(TPU0TO1_MARK, PORT161_FN1), | ||
703 | PINMUX_DATA(SCIFB_SCK_MARK, PORT162_FN1), | ||
704 | PINMUX_DATA(SCIFB_RTS_MARK, PORT163_FN1), | ||
705 | PINMUX_DATA(SCIFB_CTS_MARK, PORT164_FN1), | ||
706 | PINMUX_DATA(SCIFB_TXD_MARK, PORT165_FN1), | ||
707 | PINMUX_DATA(SCIFB_RXD_MARK, PORT166_FN1), | ||
708 | PINMUX_DATA(VBUS0_0_MARK, PORT167_FN1), | ||
709 | PINMUX_DATA(VBUS0_1_MARK, PORT168_FN1), | ||
710 | PINMUX_DATA(HDMI_HPD_MARK, PORT169_FN1), | ||
711 | PINMUX_DATA(HDMI_CEC_MARK, PORT170_FN1), | ||
712 | PINMUX_DATA(SDHICLK0_MARK, PORT171_FN1), | ||
713 | PINMUX_DATA(SDHICD0_MARK, PORT172_FN1), | ||
714 | PINMUX_DATA(SDHID0_0_MARK, PORT173_FN1), | ||
715 | PINMUX_DATA(SDHID0_1_MARK, PORT174_FN1), | ||
716 | PINMUX_DATA(SDHID0_2_MARK, PORT175_FN1), | ||
717 | PINMUX_DATA(SDHID0_3_MARK, PORT176_FN1), | ||
718 | PINMUX_DATA(SDHICMD0_MARK, PORT177_FN1), | ||
719 | PINMUX_DATA(SDHIWP0_MARK, PORT178_FN1), | ||
720 | PINMUX_DATA(SDHICLK1_MARK, PORT179_FN1), | ||
721 | PINMUX_DATA(SDHID1_0_MARK, PORT180_FN1), | ||
722 | PINMUX_DATA(SDHID1_1_MARK, PORT181_FN1), | ||
723 | PINMUX_DATA(SDHID1_2_MARK, PORT182_FN1), | ||
724 | PINMUX_DATA(SDHID1_3_MARK, PORT183_FN1), | ||
725 | PINMUX_DATA(SDHICMD1_MARK, PORT184_FN1), | ||
726 | PINMUX_DATA(SDHICLK2_MARK, PORT185_FN1), | ||
727 | PINMUX_DATA(SDHID2_0_MARK, PORT186_FN1), | ||
728 | PINMUX_DATA(SDHID2_1_MARK, PORT187_FN1), | ||
729 | PINMUX_DATA(SDHID2_2_MARK, PORT188_FN1), | ||
730 | PINMUX_DATA(SDHID2_3_MARK, PORT189_FN1), | ||
731 | PINMUX_DATA(SDHICMD2_MARK, PORT190_FN1), | ||
732 | |||
733 | /* Function 2 */ | ||
734 | PINMUX_DATA(FSIBCK_MARK, PORT4_FN2), | ||
735 | PINMUX_DATA(SCIFA4_RXD_MARK, PORT5_FN2), | ||
736 | PINMUX_DATA(SCIFA4_TXD_MARK, PORT6_FN2), | ||
737 | PINMUX_DATA(SCIFA5_RXD_MARK, PORT8_FN2), | ||
738 | PINMUX_DATA(FSIASPDIF_11_MARK, PORT11_FN2), | ||
739 | PINMUX_DATA(SCIFA5_TXD_MARK, PORT12_FN2), | ||
740 | PINMUX_DATA(FMSIOLR_MARK, PORT13_FN2), | ||
741 | PINMUX_DATA(FMSIOBT_MARK, PORT14_FN2), | ||
742 | PINMUX_DATA(FSIASPDIF_15_MARK, PORT15_FN2), | ||
743 | PINMUX_DATA(FMSIILR_MARK, PORT16_FN2), | ||
744 | PINMUX_DATA(FMSIIBT_MARK, PORT17_FN2), | ||
745 | PINMUX_DATA(BS_MARK, PORT19_FN2), | ||
746 | PINMUX_DATA(MSIOF0_TSYNC_MARK, PORT36_FN2), | ||
747 | PINMUX_DATA(MSIOF0_TSCK_MARK, PORT37_FN2), | ||
748 | PINMUX_DATA(MSIOF0_RXD_MARK, PORT38_FN2), | ||
749 | PINMUX_DATA(MSIOF0_RSCK_MARK, PORT39_FN2), | ||
750 | PINMUX_DATA(MSIOF0_RSYNC_MARK, PORT40_FN2), | ||
751 | PINMUX_DATA(MSIOF0_MCK0_MARK, PORT41_FN2), | ||
752 | PINMUX_DATA(MSIOF0_MCK1_MARK, PORT42_FN2), | ||
753 | PINMUX_DATA(MSIOF0_SS1_MARK, PORT43_FN2), | ||
754 | PINMUX_DATA(MSIOF0_SS2_MARK, PORT44_FN2), | ||
755 | PINMUX_DATA(MSIOF0_TXD_MARK, PORT45_FN2), | ||
756 | PINMUX_DATA(FMSICK_MARK, PORT65_FN2), | ||
757 | PINMUX_DATA(FCE1_MARK, PORT66_FN2), | ||
758 | PINMUX_DATA(BBIF1_RXD_MARK, PORT76_FN2), | ||
759 | PINMUX_DATA(BBIF1_TSYNC_MARK, PORT77_FN2), | ||
760 | PINMUX_DATA(BBIF1_TSCK_MARK, PORT78_FN2), | ||
761 | PINMUX_DATA(BBIF1_TXD_MARK, PORT79_FN2), | ||
762 | PINMUX_DATA(BBIF1_RSCK_MARK, PORT80_FN2), | ||
763 | PINMUX_DATA(BBIF1_RSYNC_MARK, PORT81_FN2), | ||
764 | PINMUX_DATA(BBIF1_FLOW_MARK, PORT82_FN2), | ||
765 | PINMUX_DATA(BB_RX_FLOW_N_MARK, PORT83_FN2), | ||
766 | PINMUX_DATA(MSIOF1_RSCK_MARK, PORT84_FN2), | ||
767 | PINMUX_DATA(MSIOF1_RSYNC_MARK, PORT85_FN2), | ||
768 | PINMUX_DATA(MSIOF1_MCK0_MARK, PORT86_FN2), | ||
769 | PINMUX_DATA(MSIOF1_MCK1_MARK, PORT87_FN2), | ||
770 | PINMUX_DATA(MSIOF1_TSCK_88_MARK, PORT88_FN2, MSEL4CR_10_1), | ||
771 | PINMUX_DATA(MSIOF1_TSYNC_89_MARK, PORT89_FN2, MSEL4CR_10_1), | ||
772 | PINMUX_DATA(MSIOF1_TXD_90_MARK, PORT90_FN2, MSEL4CR_10_1), | ||
773 | PINMUX_DATA(MSIOF1_RXD_91_MARK, PORT91_FN2, MSEL4CR_10_1), | ||
774 | PINMUX_DATA(MSIOF1_SS1_92_MARK, PORT92_FN2, MSEL4CR_10_1), | ||
775 | PINMUX_DATA(MSIOF1_SS2_93_MARK, PORT93_FN2, MSEL4CR_10_1), | ||
776 | PINMUX_DATA(SCIFA2_CTS1_MARK, PORT94_FN2), | ||
777 | PINMUX_DATA(SCIFA2_RTS1_MARK, PORT95_FN2), | ||
778 | PINMUX_DATA(SCIFA2_TXD1_MARK, PORT96_FN2), | ||
779 | PINMUX_DATA(SCIFA2_RXD1_MARK, PORT97_FN2), | ||
780 | PINMUX_DATA(SCIFA2_SCK1_MARK, PORT98_FN2), | ||
781 | PINMUX_DATA(I2C_SCL2_MARK, PORT110_FN2), | ||
782 | PINMUX_DATA(I2C_SDA2_MARK, PORT111_FN2), | ||
783 | PINMUX_DATA(I2C_SCL3_MARK, PORT114_FN2, MSEL4CR_16_1), | ||
784 | PINMUX_DATA(I2C_SDA3_MARK, PORT115_FN2, MSEL4CR_16_1), | ||
785 | PINMUX_DATA(I2C_SCL4_MARK, PORT116_FN2, MSEL4CR_17_1), | ||
786 | PINMUX_DATA(I2C_SDA4_MARK, PORT117_FN2, MSEL4CR_17_1), | ||
787 | PINMUX_DATA(MSIOF2_RSCK_MARK, PORT134_FN2), | ||
788 | PINMUX_DATA(MSIOF2_RSYNC_MARK, PORT135_FN2), | ||
789 | PINMUX_DATA(MSIOF2_MCK0_MARK, PORT136_FN2), | ||
790 | PINMUX_DATA(MSIOF2_MCK1_MARK, PORT137_FN2), | ||
791 | PINMUX_DATA(MSIOF2_SS1_MARK, PORT138_FN2), | ||
792 | PINMUX_DATA(MSIOF2_SS2_MARK, PORT139_FN2), | ||
793 | PINMUX_DATA(SCIFA3_CTS_140_MARK, PORT140_FN2, MSEL3CR_9_1), | ||
794 | PINMUX_DATA(SCIFA3_RTS_141_MARK, PORT141_FN2), | ||
795 | PINMUX_DATA(SCIFA3_SCK_MARK, PORT142_FN2), | ||
796 | PINMUX_DATA(SCIFA3_TXD_MARK, PORT143_FN2), | ||
797 | PINMUX_DATA(SCIFA3_RXD_MARK, PORT144_FN2), | ||
798 | PINMUX_DATA(MSIOF2_TSYNC_MARK, PORT148_FN2), | ||
799 | PINMUX_DATA(MSIOF2_TSCK_MARK, PORT149_FN2), | ||
800 | PINMUX_DATA(MSIOF2_RXD_MARK, PORT150_FN2), | ||
801 | PINMUX_DATA(MSIOF2_TXD_MARK, PORT151_FN2), | ||
802 | PINMUX_DATA(SCIFA0_SCK_MARK, PORT156_FN2), | ||
803 | PINMUX_DATA(SCIFA0_RTS_MARK, PORT157_FN2), | ||
804 | PINMUX_DATA(SCIFA0_CTS_MARK, PORT158_FN2), | ||
805 | PINMUX_DATA(SCIFA1_SCK_MARK, PORT159_FN2), | ||
806 | PINMUX_DATA(SCIFA1_RTS_MARK, PORT160_FN2), | ||
807 | PINMUX_DATA(SCIFA1_CTS_MARK, PORT161_FN2), | ||
808 | |||
809 | /* Function 3 */ | ||
810 | PINMUX_DATA(VIO_CKO1_MARK, PORT16_FN3), | ||
811 | PINMUX_DATA(VIO_CKO2_MARK, PORT17_FN3), | ||
812 | PINMUX_DATA(IDIN_1_18_MARK, PORT18_FN3, MSEL4CR_14_1), | ||
813 | PINMUX_DATA(MSIOF1_TSCK_39_MARK, PORT39_FN3, MSEL4CR_10_0), | ||
814 | PINMUX_DATA(MSIOF1_TSYNC_40_MARK, PORT40_FN3, MSEL4CR_10_0), | ||
815 | PINMUX_DATA(MSIOF1_TXD_41_MARK, PORT41_FN3, MSEL4CR_10_0), | ||
816 | PINMUX_DATA(MSIOF1_RXD_42_MARK, PORT42_FN3, MSEL4CR_10_0), | ||
817 | PINMUX_DATA(MSIOF1_SS1_43_MARK, PORT43_FN3, MSEL4CR_10_0), | ||
818 | PINMUX_DATA(MSIOF1_SS2_44_MARK, PORT44_FN3, MSEL4CR_10_0), | ||
819 | PINMUX_DATA(MMCD1_0_MARK, PORT54_FN3, MSEL4CR_15_1), | ||
820 | PINMUX_DATA(MMCD1_1_MARK, PORT55_FN3, MSEL4CR_15_1), | ||
821 | PINMUX_DATA(MMCD1_2_MARK, PORT56_FN3, MSEL4CR_15_1), | ||
822 | PINMUX_DATA(MMCD1_3_MARK, PORT57_FN3, MSEL4CR_15_1), | ||
823 | PINMUX_DATA(MMCD1_4_MARK, PORT58_FN3, MSEL4CR_15_1), | ||
824 | PINMUX_DATA(MMCD1_5_MARK, PORT59_FN3, MSEL4CR_15_1), | ||
825 | PINMUX_DATA(MMCD1_6_MARK, PORT60_FN3, MSEL4CR_15_1), | ||
826 | PINMUX_DATA(MMCD1_7_MARK, PORT61_FN3, MSEL4CR_15_1), | ||
827 | PINMUX_DATA(VINT_I_MARK, PORT65_FN3), | ||
828 | PINMUX_DATA(MMCCLK1_MARK, PORT66_FN3, MSEL4CR_15_1), | ||
829 | PINMUX_DATA(MMCCMD1_MARK, PORT67_FN3, MSEL4CR_15_1), | ||
830 | PINMUX_DATA(TPU0TO2_93_MARK, PORT93_FN3), | ||
831 | PINMUX_DATA(TPU0TO2_99_MARK, PORT99_FN3), | ||
832 | PINMUX_DATA(TPU0TO3_MARK, PORT112_FN3), | ||
833 | PINMUX_DATA(IDIN_0_MARK, PORT113_FN3), | ||
834 | PINMUX_DATA(EXTLP_0_MARK, PORT114_FN3), | ||
835 | PINMUX_DATA(OVCN2_0_MARK, PORT115_FN3), | ||
836 | PINMUX_DATA(PWEN_0_MARK, PORT116_FN3), | ||
837 | PINMUX_DATA(OVCN_0_MARK, PORT117_FN3), | ||
838 | PINMUX_DATA(KEYOUT7_MARK, PORT121_FN3), | ||
839 | PINMUX_DATA(KEYOUT6_MARK, PORT122_FN3), | ||
840 | PINMUX_DATA(KEYOUT5_MARK, PORT123_FN3), | ||
841 | PINMUX_DATA(KEYOUT4_MARK, PORT124_FN3), | ||
842 | PINMUX_DATA(KEYOUT3_MARK, PORT125_FN3), | ||
843 | PINMUX_DATA(KEYOUT2_MARK, PORT126_FN3), | ||
844 | PINMUX_DATA(KEYOUT1_MARK, PORT127_FN3), | ||
845 | PINMUX_DATA(KEYOUT0_MARK, PORT128_FN3), | ||
846 | PINMUX_DATA(KEYIN7_MARK, PORT129_FN3), | ||
847 | PINMUX_DATA(KEYIN6_MARK, PORT130_FN3), | ||
848 | PINMUX_DATA(KEYIN5_MARK, PORT131_FN3), | ||
849 | PINMUX_DATA(KEYIN4_MARK, PORT132_FN3), | ||
850 | PINMUX_DATA(KEYIN3_133_MARK, PORT133_FN3, MSEL4CR_18_0), | ||
851 | PINMUX_DATA(KEYIN2_134_MARK, PORT134_FN3, MSEL4CR_18_0), | ||
852 | PINMUX_DATA(KEYIN1_135_MARK, PORT135_FN3, MSEL4CR_18_0), | ||
853 | PINMUX_DATA(KEYIN0_136_MARK, PORT136_FN3, MSEL4CR_18_0), | ||
854 | PINMUX_DATA(TS_SPSYNC2_MARK, PORT137_FN3), | ||
855 | PINMUX_DATA(IROUT_139_MARK, PORT139_FN3), | ||
856 | PINMUX_DATA(IRDA_OUT_MARK, PORT140_FN3), | ||
857 | PINMUX_DATA(IRDA_IN_MARK, PORT141_FN3), | ||
858 | PINMUX_DATA(IRDA_FIRSEL_MARK, PORT142_FN3), | ||
859 | PINMUX_DATA(TS_SDAT2_MARK, PORT145_FN3), | ||
860 | PINMUX_DATA(TS_SDEN2_MARK, PORT146_FN3), | ||
861 | PINMUX_DATA(TS_SCK2_MARK, PORT147_FN3), | ||
862 | |||
863 | /* Function 4 */ | ||
864 | PINMUX_DATA(SCIFA3_CTS_43_MARK, PORT43_FN4, MSEL3CR_9_0), | ||
865 | PINMUX_DATA(SCIFA3_RTS_44_MARK, PORT44_FN4), | ||
866 | PINMUX_DATA(GP_RX_FLAG_MARK, PORT76_FN4), | ||
867 | PINMUX_DATA(GP_RX_DATA_MARK, PORT77_FN4), | ||
868 | PINMUX_DATA(GP_TX_READY_MARK, PORT78_FN4), | ||
869 | PINMUX_DATA(GP_RX_WAKE_MARK, PORT79_FN4), | ||
870 | PINMUX_DATA(MP_TX_FLAG_MARK, PORT80_FN4), | ||
871 | PINMUX_DATA(MP_TX_DATA_MARK, PORT81_FN4), | ||
872 | PINMUX_DATA(MP_RX_READY_MARK, PORT82_FN4), | ||
873 | PINMUX_DATA(MP_TX_WAKE_MARK, PORT83_FN4), | ||
874 | PINMUX_DATA(MMCD0_0_MARK, PORT84_FN4, MSEL4CR_15_0), | ||
875 | PINMUX_DATA(MMCD0_1_MARK, PORT85_FN4, MSEL4CR_15_0), | ||
876 | PINMUX_DATA(MMCD0_2_MARK, PORT86_FN4, MSEL4CR_15_0), | ||
877 | PINMUX_DATA(MMCD0_3_MARK, PORT87_FN4, MSEL4CR_15_0), | ||
878 | PINMUX_DATA(MMCD0_4_MARK, PORT88_FN4, MSEL4CR_15_0), | ||
879 | PINMUX_DATA(MMCD0_5_MARK, PORT89_FN4, MSEL4CR_15_0), | ||
880 | PINMUX_DATA(MMCD0_6_MARK, PORT90_FN4, MSEL4CR_15_0), | ||
881 | PINMUX_DATA(MMCD0_7_MARK, PORT91_FN4, MSEL4CR_15_0), | ||
882 | PINMUX_DATA(MMCCMD0_MARK, PORT92_FN4, MSEL4CR_15_0), | ||
883 | PINMUX_DATA(SIM_RST_MARK, PORT94_FN4), | ||
884 | PINMUX_DATA(SIM_CLK_MARK, PORT95_FN4), | ||
885 | PINMUX_DATA(SIM_D_MARK, PORT98_FN4), | ||
886 | PINMUX_DATA(MMCCLK0_MARK, PORT99_FN4, MSEL4CR_15_0), | ||
887 | PINMUX_DATA(IDIN_1_113_MARK, PORT113_FN4, MSEL4CR_14_0), | ||
888 | PINMUX_DATA(OVCN_1_114_MARK, PORT114_FN4, MSEL4CR_14_0), | ||
889 | PINMUX_DATA(PWEN_1_115_MARK, PORT115_FN4), | ||
890 | PINMUX_DATA(EXTLP_1_MARK, PORT116_FN4), | ||
891 | PINMUX_DATA(OVCN2_1_MARK, PORT117_FN4), | ||
892 | PINMUX_DATA(KEYIN0_121_MARK, PORT121_FN4, MSEL4CR_18_1), | ||
893 | PINMUX_DATA(KEYIN1_122_MARK, PORT122_FN4, MSEL4CR_18_1), | ||
894 | PINMUX_DATA(KEYIN2_123_MARK, PORT123_FN4, MSEL4CR_18_1), | ||
895 | PINMUX_DATA(KEYIN3_124_MARK, PORT124_FN4, MSEL4CR_18_1), | ||
896 | PINMUX_DATA(PWEN_1_138_MARK, PORT138_FN4), | ||
897 | PINMUX_DATA(IROUT_140_MARK, PORT140_FN4), | ||
898 | PINMUX_DATA(LCDCS_MARK, PORT145_FN4), | ||
899 | PINMUX_DATA(LCDWR_MARK, PORT147_FN4), | ||
900 | PINMUX_DATA(LCDRS_MARK, PORT149_FN4), | ||
901 | PINMUX_DATA(OVCN_1_162_MARK, PORT162_FN4, MSEL4CR_14_1), | ||
902 | |||
903 | /* Function 5 */ | ||
904 | PINMUX_DATA(GPI0_MARK, PORT41_FN5), | ||
905 | PINMUX_DATA(GPI1_MARK, PORT42_FN5), | ||
906 | PINMUX_DATA(GPO0_MARK, PORT43_FN5), | ||
907 | PINMUX_DATA(GPO1_MARK, PORT44_FN5), | ||
908 | PINMUX_DATA(I2C_SCL3S_MARK, PORT137_FN5, MSEL4CR_16_0), | ||
909 | PINMUX_DATA(I2C_SDA3S_MARK, PORT145_FN5, MSEL4CR_16_0), | ||
910 | PINMUX_DATA(I2C_SCL4S_MARK, PORT146_FN5, MSEL4CR_17_0), | ||
911 | PINMUX_DATA(I2C_SDA4S_MARK, PORT147_FN5, MSEL4CR_17_0), | ||
912 | |||
913 | /* Function select */ | ||
914 | PINMUX_DATA(LCDC0_SELECT_MARK, MSEL3CR_6_0), | ||
915 | PINMUX_DATA(LCDC1_SELECT_MARK, MSEL3CR_6_1), | ||
916 | |||
917 | PINMUX_DATA(TS0_1SELECT_MARK, MSEL3CR_21_0, MSEL3CR_20_0), | ||
918 | PINMUX_DATA(TS0_2SELECT_MARK, MSEL3CR_21_0, MSEL3CR_20_1), | ||
919 | PINMUX_DATA(TS1_1SELECT_MARK, MSEL3CR_27_0, MSEL3CR_26_0), | ||
920 | PINMUX_DATA(TS1_2SELECT_MARK, MSEL3CR_27_0, MSEL3CR_26_1), | ||
921 | |||
922 | PINMUX_DATA(SDENC_CPG_MARK, MSEL4CR_19_0), | ||
923 | PINMUX_DATA(SDENC_DV_CLKI_MARK, MSEL4CR_19_1), | ||
924 | |||
925 | PINMUX_DATA(MFIv6_MARK, MSEL4CR_6_0), | ||
926 | PINMUX_DATA(MFIv4_MARK, MSEL4CR_6_1), | ||
927 | }; | ||
928 | |||
929 | #define _GPIO_PORT(pfx, sfx) PINMUX_GPIO(GPIO_PORT##pfx, PORT##pfx##_DATA) | ||
930 | #define GPIO_PORT_ALL() _190(_GPIO_PORT, , unused) | ||
931 | #define GPIO_FN(str) PINMUX_GPIO(GPIO_FN_##str, str##_MARK) | ||
932 | |||
933 | static struct pinmux_gpio pinmux_gpios[] = { | ||
934 | |||
935 | /* PORT */ | ||
936 | GPIO_PORT_ALL(), | ||
937 | |||
938 | /* IRQ */ | ||
939 | GPIO_FN(IRQ0_6), GPIO_FN(IRQ0_162), GPIO_FN(IRQ1), | ||
940 | GPIO_FN(IRQ2_4), GPIO_FN(IRQ2_5), GPIO_FN(IRQ3_8), | ||
941 | GPIO_FN(IRQ3_16), GPIO_FN(IRQ4_17), GPIO_FN(IRQ4_163), | ||
942 | GPIO_FN(IRQ5), GPIO_FN(IRQ6_39), GPIO_FN(IRQ6_164), | ||
943 | GPIO_FN(IRQ7_40), GPIO_FN(IRQ7_167), GPIO_FN(IRQ8_41), | ||
944 | GPIO_FN(IRQ8_168), GPIO_FN(IRQ9_42), GPIO_FN(IRQ9_169), | ||
945 | GPIO_FN(IRQ10), GPIO_FN(IRQ11), GPIO_FN(IRQ12_80), | ||
946 | GPIO_FN(IRQ12_137), GPIO_FN(IRQ13_81), GPIO_FN(IRQ13_145), | ||
947 | GPIO_FN(IRQ14_82), GPIO_FN(IRQ14_146), GPIO_FN(IRQ15_83), | ||
948 | GPIO_FN(IRQ15_147), GPIO_FN(IRQ16_84), GPIO_FN(IRQ16_170), | ||
949 | GPIO_FN(IRQ17), GPIO_FN(IRQ18), GPIO_FN(IRQ19), | ||
950 | GPIO_FN(IRQ20), GPIO_FN(IRQ21), GPIO_FN(IRQ22), | ||
951 | GPIO_FN(IRQ23), GPIO_FN(IRQ24), GPIO_FN(IRQ25), | ||
952 | GPIO_FN(IRQ26_121), GPIO_FN(IRQ26_172), GPIO_FN(IRQ27_122), | ||
953 | GPIO_FN(IRQ27_180), GPIO_FN(IRQ28_123), GPIO_FN(IRQ28_181), | ||
954 | GPIO_FN(IRQ29_129), GPIO_FN(IRQ29_182), GPIO_FN(IRQ30_130), | ||
955 | GPIO_FN(IRQ30_183), GPIO_FN(IRQ31_138), GPIO_FN(IRQ31_184), | ||
956 | |||
957 | /* MSIOF0 */ | ||
958 | GPIO_FN(MSIOF0_TSYNC), GPIO_FN(MSIOF0_TSCK), GPIO_FN(MSIOF0_RXD), | ||
959 | GPIO_FN(MSIOF0_RSCK), GPIO_FN(MSIOF0_RSYNC), GPIO_FN(MSIOF0_MCK0), | ||
960 | GPIO_FN(MSIOF0_MCK1), GPIO_FN(MSIOF0_SS1), GPIO_FN(MSIOF0_SS2), | ||
961 | GPIO_FN(MSIOF0_TXD), | ||
962 | |||
963 | /* MSIOF1 */ | ||
964 | GPIO_FN(MSIOF1_TSCK_39), GPIO_FN(MSIOF1_TSCK_88), | ||
965 | GPIO_FN(MSIOF1_TSYNC_40), GPIO_FN(MSIOF1_TSYNC_89), | ||
966 | GPIO_FN(MSIOF1_TXD_41), GPIO_FN(MSIOF1_TXD_90), | ||
967 | GPIO_FN(MSIOF1_RXD_42), GPIO_FN(MSIOF1_RXD_91), | ||
968 | GPIO_FN(MSIOF1_SS1_43), GPIO_FN(MSIOF1_SS1_92), | ||
969 | GPIO_FN(MSIOF1_SS2_44), GPIO_FN(MSIOF1_SS2_93), | ||
970 | GPIO_FN(MSIOF1_RSCK), GPIO_FN(MSIOF1_RSYNC), | ||
971 | GPIO_FN(MSIOF1_MCK0), GPIO_FN(MSIOF1_MCK1), | ||
972 | |||
973 | /* MSIOF2 */ | ||
974 | GPIO_FN(MSIOF2_RSCK), GPIO_FN(MSIOF2_RSYNC), GPIO_FN(MSIOF2_MCK0), | ||
975 | GPIO_FN(MSIOF2_MCK1), GPIO_FN(MSIOF2_SS1), GPIO_FN(MSIOF2_SS2), | ||
976 | GPIO_FN(MSIOF2_TSYNC), GPIO_FN(MSIOF2_TSCK), GPIO_FN(MSIOF2_RXD), | ||
977 | GPIO_FN(MSIOF2_TXD), | ||
978 | |||
979 | /* MSIOF3 */ | ||
980 | GPIO_FN(BBIF1_RXD), GPIO_FN(BBIF1_TSYNC), GPIO_FN(BBIF1_TSCK), | ||
981 | GPIO_FN(BBIF1_TXD), GPIO_FN(BBIF1_RSCK), GPIO_FN(BBIF1_RSYNC), | ||
982 | GPIO_FN(BBIF1_FLOW), GPIO_FN(BB_RX_FLOW_N), | ||
983 | |||
984 | /* MSIOF4 */ | ||
985 | GPIO_FN(BBIF2_TSCK1), GPIO_FN(BBIF2_TSYNC1), | ||
986 | GPIO_FN(BBIF2_TXD1), GPIO_FN(BBIF2_RXD), | ||
987 | |||
988 | /* FSI */ | ||
989 | GPIO_FN(FSIACK), GPIO_FN(FSIBCK), GPIO_FN(FSIAILR), | ||
990 | GPIO_FN(FSIAIBT), GPIO_FN(FSIAISLD), GPIO_FN(FSIAOMC), | ||
991 | GPIO_FN(FSIAOLR), GPIO_FN(FSIAOBT), GPIO_FN(FSIAOSLD), | ||
992 | GPIO_FN(FSIASPDIF_11), GPIO_FN(FSIASPDIF_15), | ||
993 | |||
994 | /* FMSI */ | ||
995 | GPIO_FN(FMSOCK), GPIO_FN(FMSOOLR), GPIO_FN(FMSIOLR), | ||
996 | GPIO_FN(FMSOOBT), GPIO_FN(FMSIOBT), GPIO_FN(FMSOSLD), | ||
997 | GPIO_FN(FMSOILR), GPIO_FN(FMSIILR), GPIO_FN(FMSOIBT), | ||
998 | GPIO_FN(FMSIIBT), GPIO_FN(FMSISLD), GPIO_FN(FMSICK), | ||
999 | |||
1000 | /* SCIFA0 */ | ||
1001 | GPIO_FN(SCIFA0_TXD), GPIO_FN(SCIFA0_RXD), GPIO_FN(SCIFA0_SCK), | ||
1002 | GPIO_FN(SCIFA0_RTS), GPIO_FN(SCIFA0_CTS), | ||
1003 | |||
1004 | /* SCIFA1 */ | ||
1005 | GPIO_FN(SCIFA1_TXD), GPIO_FN(SCIFA1_RXD), GPIO_FN(SCIFA1_SCK), | ||
1006 | GPIO_FN(SCIFA1_RTS), GPIO_FN(SCIFA1_CTS), | ||
1007 | |||
1008 | /* SCIFA2 */ | ||
1009 | GPIO_FN(SCIFA2_CTS1), GPIO_FN(SCIFA2_RTS1), GPIO_FN(SCIFA2_TXD1), | ||
1010 | GPIO_FN(SCIFA2_RXD1), GPIO_FN(SCIFA2_SCK1), | ||
1011 | |||
1012 | /* SCIFA3 */ | ||
1013 | GPIO_FN(SCIFA3_CTS_43), GPIO_FN(SCIFA3_CTS_140), | ||
1014 | GPIO_FN(SCIFA3_RTS_44), GPIO_FN(SCIFA3_RTS_141), | ||
1015 | GPIO_FN(SCIFA3_SCK), GPIO_FN(SCIFA3_TXD), | ||
1016 | GPIO_FN(SCIFA3_RXD), | ||
1017 | |||
1018 | /* SCIFA4 */ | ||
1019 | GPIO_FN(SCIFA4_RXD), GPIO_FN(SCIFA4_TXD), | ||
1020 | |||
1021 | /* SCIFA5 */ | ||
1022 | GPIO_FN(SCIFA5_RXD), GPIO_FN(SCIFA5_TXD), | ||
1023 | |||
1024 | /* SCIFB */ | ||
1025 | GPIO_FN(SCIFB_SCK), GPIO_FN(SCIFB_RTS), GPIO_FN(SCIFB_CTS), | ||
1026 | GPIO_FN(SCIFB_TXD), GPIO_FN(SCIFB_RXD), | ||
1027 | |||
1028 | /* CEU */ | ||
1029 | GPIO_FN(VIO_HD), GPIO_FN(VIO_CKO1), GPIO_FN(VIO_CKO2), | ||
1030 | GPIO_FN(VIO_VD), GPIO_FN(VIO_CLK), GPIO_FN(VIO_FIELD), | ||
1031 | GPIO_FN(VIO_CKO), GPIO_FN(VIO_D0), GPIO_FN(VIO_D1), | ||
1032 | GPIO_FN(VIO_D2), GPIO_FN(VIO_D3), GPIO_FN(VIO_D4), | ||
1033 | GPIO_FN(VIO_D5), GPIO_FN(VIO_D6), GPIO_FN(VIO_D7), | ||
1034 | GPIO_FN(VIO_D8), GPIO_FN(VIO_D9), GPIO_FN(VIO_D10), | ||
1035 | GPIO_FN(VIO_D11), GPIO_FN(VIO_D12), GPIO_FN(VIO_D13), | ||
1036 | GPIO_FN(VIO_D14), GPIO_FN(VIO_D15), | ||
1037 | |||
1038 | /* USB0 */ | ||
1039 | GPIO_FN(IDIN_0), GPIO_FN(EXTLP_0), GPIO_FN(OVCN2_0), | ||
1040 | GPIO_FN(PWEN_0), GPIO_FN(OVCN_0), GPIO_FN(VBUS0_0), | ||
1041 | |||
1042 | /* USB1 */ | ||
1043 | GPIO_FN(IDIN_1_18), GPIO_FN(IDIN_1_113), | ||
1044 | GPIO_FN(OVCN_1_114), GPIO_FN(OVCN_1_162), | ||
1045 | GPIO_FN(PWEN_1_115), GPIO_FN(PWEN_1_138), | ||
1046 | GPIO_FN(EXTLP_1), GPIO_FN(OVCN2_1), | ||
1047 | GPIO_FN(VBUS0_1), | ||
1048 | |||
1049 | /* GPIO */ | ||
1050 | GPIO_FN(GPI0), GPIO_FN(GPI1), GPIO_FN(GPO0), GPIO_FN(GPO1), | ||
1051 | |||
1052 | /* BSC */ | ||
1053 | GPIO_FN(BS), GPIO_FN(WE1), GPIO_FN(CKO), | ||
1054 | GPIO_FN(WAIT), GPIO_FN(RDWR), | ||
1055 | |||
1056 | GPIO_FN(A0), GPIO_FN(A1), GPIO_FN(A2), | ||
1057 | GPIO_FN(A3), GPIO_FN(A6), GPIO_FN(A7), | ||
1058 | GPIO_FN(A8), GPIO_FN(A9), GPIO_FN(A10), | ||
1059 | GPIO_FN(A11), GPIO_FN(A12), GPIO_FN(A13), | ||
1060 | GPIO_FN(A14), GPIO_FN(A15), GPIO_FN(A16), | ||
1061 | GPIO_FN(A17), GPIO_FN(A18), GPIO_FN(A19), | ||
1062 | GPIO_FN(A20), GPIO_FN(A21), GPIO_FN(A22), | ||
1063 | GPIO_FN(A23), GPIO_FN(A24), GPIO_FN(A25), | ||
1064 | GPIO_FN(A26), | ||
1065 | |||
1066 | GPIO_FN(CS0), GPIO_FN(CS2), GPIO_FN(CS4), | ||
1067 | GPIO_FN(CS5A), GPIO_FN(CS5B), GPIO_FN(CS6A), | ||
1068 | |||
1069 | /* BSC/FLCTL */ | ||
1070 | GPIO_FN(RD_FSC), GPIO_FN(WE0_FWE), GPIO_FN(A4_FOE), | ||
1071 | GPIO_FN(A5_FCDE), GPIO_FN(D0_NAF0), GPIO_FN(D1_NAF1), | ||
1072 | GPIO_FN(D2_NAF2), GPIO_FN(D3_NAF3), GPIO_FN(D4_NAF4), | ||
1073 | GPIO_FN(D5_NAF5), GPIO_FN(D6_NAF6), GPIO_FN(D7_NAF7), | ||
1074 | GPIO_FN(D8_NAF8), GPIO_FN(D9_NAF9), GPIO_FN(D10_NAF10), | ||
1075 | GPIO_FN(D11_NAF11), GPIO_FN(D12_NAF12), GPIO_FN(D13_NAF13), | ||
1076 | GPIO_FN(D14_NAF14), GPIO_FN(D15_NAF15), | ||
1077 | |||
1078 | /* MMCIF(1) */ | ||
1079 | GPIO_FN(MMCD0_0), GPIO_FN(MMCD0_1), GPIO_FN(MMCD0_2), | ||
1080 | GPIO_FN(MMCD0_3), GPIO_FN(MMCD0_4), GPIO_FN(MMCD0_5), | ||
1081 | GPIO_FN(MMCD0_6), GPIO_FN(MMCD0_7), GPIO_FN(MMCCMD0), | ||
1082 | GPIO_FN(MMCCLK0), | ||
1083 | |||
1084 | /* MMCIF(2) */ | ||
1085 | GPIO_FN(MMCD1_0), GPIO_FN(MMCD1_1), GPIO_FN(MMCD1_2), | ||
1086 | GPIO_FN(MMCD1_3), GPIO_FN(MMCD1_4), GPIO_FN(MMCD1_5), | ||
1087 | GPIO_FN(MMCD1_6), GPIO_FN(MMCD1_7), GPIO_FN(MMCCLK1), | ||
1088 | GPIO_FN(MMCCMD1), | ||
1089 | |||
1090 | /* SPU2 */ | ||
1091 | GPIO_FN(VINT_I), | ||
1092 | |||
1093 | /* FLCTL */ | ||
1094 | GPIO_FN(FCE1), GPIO_FN(FCE0), GPIO_FN(FRB), | ||
1095 | |||
1096 | /* HSI */ | ||
1097 | GPIO_FN(GP_RX_FLAG), GPIO_FN(GP_RX_DATA), GPIO_FN(GP_TX_READY), | ||
1098 | GPIO_FN(GP_RX_WAKE), GPIO_FN(MP_TX_FLAG), GPIO_FN(MP_TX_DATA), | ||
1099 | GPIO_FN(MP_RX_READY), GPIO_FN(MP_TX_WAKE), | ||
1100 | |||
1101 | /* MFI */ | ||
1102 | GPIO_FN(MFIv6), | ||
1103 | GPIO_FN(MFIv4), | ||
1104 | |||
1105 | GPIO_FN(MEMC_BUSCLK_MEMC_A0), GPIO_FN(MEMC_ADV_MEMC_DREQ0), | ||
1106 | GPIO_FN(MEMC_WAIT_MEMC_DREQ1), GPIO_FN(MEMC_CS1_MEMC_A1), | ||
1107 | GPIO_FN(MEMC_CS0), GPIO_FN(MEMC_NOE), | ||
1108 | GPIO_FN(MEMC_NWE), GPIO_FN(MEMC_INT), | ||
1109 | |||
1110 | GPIO_FN(MEMC_AD0), GPIO_FN(MEMC_AD1), GPIO_FN(MEMC_AD2), | ||
1111 | GPIO_FN(MEMC_AD3), GPIO_FN(MEMC_AD4), GPIO_FN(MEMC_AD5), | ||
1112 | GPIO_FN(MEMC_AD6), GPIO_FN(MEMC_AD7), GPIO_FN(MEMC_AD8), | ||
1113 | GPIO_FN(MEMC_AD9), GPIO_FN(MEMC_AD10), GPIO_FN(MEMC_AD11), | ||
1114 | GPIO_FN(MEMC_AD12), GPIO_FN(MEMC_AD13), GPIO_FN(MEMC_AD14), | ||
1115 | GPIO_FN(MEMC_AD15), | ||
1116 | |||
1117 | /* SIM */ | ||
1118 | GPIO_FN(SIM_RST), GPIO_FN(SIM_CLK), GPIO_FN(SIM_D), | ||
1119 | |||
1120 | /* TPU */ | ||
1121 | GPIO_FN(TPU0TO0), GPIO_FN(TPU0TO1), GPIO_FN(TPU0TO2_93), | ||
1122 | GPIO_FN(TPU0TO2_99), GPIO_FN(TPU0TO3), | ||
1123 | |||
1124 | /* I2C2 */ | ||
1125 | GPIO_FN(I2C_SCL2), GPIO_FN(I2C_SDA2), | ||
1126 | |||
1127 | /* I2C3(1) */ | ||
1128 | GPIO_FN(I2C_SCL3), GPIO_FN(I2C_SDA3), | ||
1129 | |||
1130 | /* I2C3(2) */ | ||
1131 | GPIO_FN(I2C_SCL3S), GPIO_FN(I2C_SDA3S), | ||
1132 | |||
1133 | /* I2C4(2) */ | ||
1134 | GPIO_FN(I2C_SCL4), GPIO_FN(I2C_SDA4), | ||
1135 | |||
1136 | /* I2C4(2) */ | ||
1137 | GPIO_FN(I2C_SCL4S), GPIO_FN(I2C_SDA4S), | ||
1138 | |||
1139 | /* KEYSC */ | ||
1140 | GPIO_FN(KEYOUT0), GPIO_FN(KEYIN0_121), GPIO_FN(KEYIN0_136), | ||
1141 | GPIO_FN(KEYOUT1), GPIO_FN(KEYIN1_122), GPIO_FN(KEYIN1_135), | ||
1142 | GPIO_FN(KEYOUT2), GPIO_FN(KEYIN2_123), GPIO_FN(KEYIN2_134), | ||
1143 | GPIO_FN(KEYOUT3), GPIO_FN(KEYIN3_124), GPIO_FN(KEYIN3_133), | ||
1144 | GPIO_FN(KEYOUT4), GPIO_FN(KEYIN4), GPIO_FN(KEYOUT5), | ||
1145 | GPIO_FN(KEYIN5), GPIO_FN(KEYOUT6), GPIO_FN(KEYIN6), | ||
1146 | GPIO_FN(KEYOUT7), GPIO_FN(KEYIN7), | ||
1147 | |||
1148 | /* LCDC */ | ||
1149 | GPIO_FN(LCDHSYN), GPIO_FN(LCDCS), GPIO_FN(LCDVSYN), | ||
1150 | GPIO_FN(LCDDCK), GPIO_FN(LCDWR), GPIO_FN(LCDRD), | ||
1151 | GPIO_FN(LCDDISP), GPIO_FN(LCDRS), GPIO_FN(LCDLCLK), | ||
1152 | GPIO_FN(LCDDON), | ||
1153 | |||
1154 | GPIO_FN(LCDD0), GPIO_FN(LCDD1), GPIO_FN(LCDD2), | ||
1155 | GPIO_FN(LCDD3), GPIO_FN(LCDD4), GPIO_FN(LCDD5), | ||
1156 | GPIO_FN(LCDD6), GPIO_FN(LCDD7), GPIO_FN(LCDD8), | ||
1157 | GPIO_FN(LCDD9), GPIO_FN(LCDD10), GPIO_FN(LCDD11), | ||
1158 | GPIO_FN(LCDD12), GPIO_FN(LCDD13), GPIO_FN(LCDD14), | ||
1159 | GPIO_FN(LCDD15), GPIO_FN(LCDD16), GPIO_FN(LCDD17), | ||
1160 | GPIO_FN(LCDD18), GPIO_FN(LCDD19), GPIO_FN(LCDD20), | ||
1161 | GPIO_FN(LCDD21), GPIO_FN(LCDD22), GPIO_FN(LCDD23), | ||
1162 | |||
1163 | /* IRDA */ | ||
1164 | GPIO_FN(IRDA_OUT), GPIO_FN(IRDA_IN), GPIO_FN(IRDA_FIRSEL), | ||
1165 | GPIO_FN(IROUT_139), GPIO_FN(IROUT_140), | ||
1166 | |||
1167 | /* TSIF1 */ | ||
1168 | GPIO_FN(TS0_1SELECT), | ||
1169 | GPIO_FN(TS0_2SELECT), | ||
1170 | GPIO_FN(TS1_1SELECT), | ||
1171 | GPIO_FN(TS1_2SELECT), | ||
1172 | |||
1173 | GPIO_FN(TS_SPSYNC1), GPIO_FN(TS_SDAT1), | ||
1174 | GPIO_FN(TS_SDEN1), GPIO_FN(TS_SCK1), | ||
1175 | |||
1176 | /* TSIF2 */ | ||
1177 | GPIO_FN(TS_SPSYNC2), GPIO_FN(TS_SDAT2), | ||
1178 | GPIO_FN(TS_SDEN2), GPIO_FN(TS_SCK2), | ||
1179 | |||
1180 | /* HDMI */ | ||
1181 | GPIO_FN(HDMI_HPD), GPIO_FN(HDMI_CEC), | ||
1182 | |||
1183 | /* SDHI0 */ | ||
1184 | GPIO_FN(SDHICLK0), GPIO_FN(SDHICD0), GPIO_FN(SDHICMD0), | ||
1185 | GPIO_FN(SDHIWP0), GPIO_FN(SDHID0_0), GPIO_FN(SDHID0_1), | ||
1186 | GPIO_FN(SDHID0_2), GPIO_FN(SDHID0_3), | ||
1187 | |||
1188 | /* SDHI1 */ | ||
1189 | GPIO_FN(SDHICLK1), GPIO_FN(SDHICMD1), GPIO_FN(SDHID1_0), | ||
1190 | GPIO_FN(SDHID1_1), GPIO_FN(SDHID1_2), GPIO_FN(SDHID1_3), | ||
1191 | |||
1192 | /* SDHI2 */ | ||
1193 | GPIO_FN(SDHICLK2), GPIO_FN(SDHICMD2), GPIO_FN(SDHID2_0), | ||
1194 | GPIO_FN(SDHID2_1), GPIO_FN(SDHID2_2), GPIO_FN(SDHID2_3), | ||
1195 | |||
1196 | /* SDENC */ | ||
1197 | GPIO_FN(SDENC_CPG), | ||
1198 | GPIO_FN(SDENC_DV_CLKI), | ||
1199 | }; | ||
1200 | |||
1201 | /* helper for top 4 bits in PORTnCR */ | ||
1202 | #define PCRH(in, in_pd, in_pu, out) \ | ||
1203 | 0, (out), (in), 0, \ | ||
1204 | 0, 0, 0, 0, \ | ||
1205 | 0, 0, (in_pd), 0, \ | ||
1206 | 0, 0, (in_pu), 0 | ||
1207 | |||
1208 | #define PORTCR(nr, reg) \ | ||
1209 | { PINMUX_CFG_REG("PORT" nr "CR", reg, 8, 4) { \ | ||
1210 | PCRH(PORT##nr##_IN, PORT##nr##_IN_PD, \ | ||
1211 | PORT##nr##_IN_PU, PORT##nr##_OUT), \ | ||
1212 | PORT##nr##_FN0, PORT##nr##_FN1, PORT##nr##_FN2, \ | ||
1213 | PORT##nr##_FN3, PORT##nr##_FN4, PORT##nr##_FN5, \ | ||
1214 | PORT##nr##_FN6, PORT##nr##_FN7 } \ | ||
1215 | } | ||
1216 | |||
1217 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1218 | PORTCR(0, 0xE6051000), /* PORT0CR */ | ||
1219 | PORTCR(1, 0xE6051001), /* PORT1CR */ | ||
1220 | PORTCR(2, 0xE6051002), /* PORT2CR */ | ||
1221 | PORTCR(3, 0xE6051003), /* PORT3CR */ | ||
1222 | PORTCR(4, 0xE6051004), /* PORT4CR */ | ||
1223 | PORTCR(5, 0xE6051005), /* PORT5CR */ | ||
1224 | PORTCR(6, 0xE6051006), /* PORT6CR */ | ||
1225 | PORTCR(7, 0xE6051007), /* PORT7CR */ | ||
1226 | PORTCR(8, 0xE6051008), /* PORT8CR */ | ||
1227 | PORTCR(9, 0xE6051009), /* PORT9CR */ | ||
1228 | PORTCR(10, 0xE605100A), /* PORT10CR */ | ||
1229 | PORTCR(11, 0xE605100B), /* PORT11CR */ | ||
1230 | PORTCR(12, 0xE605100C), /* PORT12CR */ | ||
1231 | PORTCR(13, 0xE605100D), /* PORT13CR */ | ||
1232 | PORTCR(14, 0xE605100E), /* PORT14CR */ | ||
1233 | PORTCR(15, 0xE605100F), /* PORT15CR */ | ||
1234 | PORTCR(16, 0xE6051010), /* PORT16CR */ | ||
1235 | PORTCR(17, 0xE6051011), /* PORT17CR */ | ||
1236 | PORTCR(18, 0xE6051012), /* PORT18CR */ | ||
1237 | PORTCR(19, 0xE6051013), /* PORT19CR */ | ||
1238 | PORTCR(20, 0xE6051014), /* PORT20CR */ | ||
1239 | PORTCR(21, 0xE6051015), /* PORT21CR */ | ||
1240 | PORTCR(22, 0xE6051016), /* PORT22CR */ | ||
1241 | PORTCR(23, 0xE6051017), /* PORT23CR */ | ||
1242 | PORTCR(24, 0xE6051018), /* PORT24CR */ | ||
1243 | PORTCR(25, 0xE6051019), /* PORT25CR */ | ||
1244 | PORTCR(26, 0xE605101A), /* PORT26CR */ | ||
1245 | PORTCR(27, 0xE605101B), /* PORT27CR */ | ||
1246 | PORTCR(28, 0xE605101C), /* PORT28CR */ | ||
1247 | PORTCR(29, 0xE605101D), /* PORT29CR */ | ||
1248 | PORTCR(30, 0xE605101E), /* PORT30CR */ | ||
1249 | PORTCR(31, 0xE605101F), /* PORT31CR */ | ||
1250 | PORTCR(32, 0xE6051020), /* PORT32CR */ | ||
1251 | PORTCR(33, 0xE6051021), /* PORT33CR */ | ||
1252 | PORTCR(34, 0xE6051022), /* PORT34CR */ | ||
1253 | PORTCR(35, 0xE6051023), /* PORT35CR */ | ||
1254 | PORTCR(36, 0xE6051024), /* PORT36CR */ | ||
1255 | PORTCR(37, 0xE6051025), /* PORT37CR */ | ||
1256 | PORTCR(38, 0xE6051026), /* PORT38CR */ | ||
1257 | PORTCR(39, 0xE6051027), /* PORT39CR */ | ||
1258 | PORTCR(40, 0xE6051028), /* PORT40CR */ | ||
1259 | PORTCR(41, 0xE6051029), /* PORT41CR */ | ||
1260 | PORTCR(42, 0xE605102A), /* PORT42CR */ | ||
1261 | PORTCR(43, 0xE605102B), /* PORT43CR */ | ||
1262 | PORTCR(44, 0xE605102C), /* PORT44CR */ | ||
1263 | PORTCR(45, 0xE605102D), /* PORT45CR */ | ||
1264 | PORTCR(46, 0xE605202E), /* PORT46CR */ | ||
1265 | PORTCR(47, 0xE605202F), /* PORT47CR */ | ||
1266 | PORTCR(48, 0xE6052030), /* PORT48CR */ | ||
1267 | PORTCR(49, 0xE6052031), /* PORT49CR */ | ||
1268 | PORTCR(50, 0xE6052032), /* PORT50CR */ | ||
1269 | PORTCR(51, 0xE6052033), /* PORT51CR */ | ||
1270 | PORTCR(52, 0xE6052034), /* PORT52CR */ | ||
1271 | PORTCR(53, 0xE6052035), /* PORT53CR */ | ||
1272 | PORTCR(54, 0xE6052036), /* PORT54CR */ | ||
1273 | PORTCR(55, 0xE6052037), /* PORT55CR */ | ||
1274 | PORTCR(56, 0xE6052038), /* PORT56CR */ | ||
1275 | PORTCR(57, 0xE6052039), /* PORT57CR */ | ||
1276 | PORTCR(58, 0xE605203A), /* PORT58CR */ | ||
1277 | PORTCR(59, 0xE605203B), /* PORT59CR */ | ||
1278 | PORTCR(60, 0xE605203C), /* PORT60CR */ | ||
1279 | PORTCR(61, 0xE605203D), /* PORT61CR */ | ||
1280 | PORTCR(62, 0xE605203E), /* PORT62CR */ | ||
1281 | PORTCR(63, 0xE605203F), /* PORT63CR */ | ||
1282 | PORTCR(64, 0xE6052040), /* PORT64CR */ | ||
1283 | PORTCR(65, 0xE6052041), /* PORT65CR */ | ||
1284 | PORTCR(66, 0xE6052042), /* PORT66CR */ | ||
1285 | PORTCR(67, 0xE6052043), /* PORT67CR */ | ||
1286 | PORTCR(68, 0xE6052044), /* PORT68CR */ | ||
1287 | PORTCR(69, 0xE6052045), /* PORT69CR */ | ||
1288 | PORTCR(70, 0xE6052046), /* PORT70CR */ | ||
1289 | PORTCR(71, 0xE6052047), /* PORT71CR */ | ||
1290 | PORTCR(72, 0xE6052048), /* PORT72CR */ | ||
1291 | PORTCR(73, 0xE6052049), /* PORT73CR */ | ||
1292 | PORTCR(74, 0xE605204A), /* PORT74CR */ | ||
1293 | PORTCR(75, 0xE605204B), /* PORT75CR */ | ||
1294 | PORTCR(76, 0xE605004C), /* PORT76CR */ | ||
1295 | PORTCR(77, 0xE605004D), /* PORT77CR */ | ||
1296 | PORTCR(78, 0xE605004E), /* PORT78CR */ | ||
1297 | PORTCR(79, 0xE605004F), /* PORT79CR */ | ||
1298 | PORTCR(80, 0xE6050050), /* PORT80CR */ | ||
1299 | PORTCR(81, 0xE6050051), /* PORT81CR */ | ||
1300 | PORTCR(82, 0xE6050052), /* PORT82CR */ | ||
1301 | PORTCR(83, 0xE6050053), /* PORT83CR */ | ||
1302 | PORTCR(84, 0xE6050054), /* PORT84CR */ | ||
1303 | PORTCR(85, 0xE6050055), /* PORT85CR */ | ||
1304 | PORTCR(86, 0xE6050056), /* PORT86CR */ | ||
1305 | PORTCR(87, 0xE6050057), /* PORT87CR */ | ||
1306 | PORTCR(88, 0xE6050058), /* PORT88CR */ | ||
1307 | PORTCR(89, 0xE6050059), /* PORT89CR */ | ||
1308 | PORTCR(90, 0xE605005A), /* PORT90CR */ | ||
1309 | PORTCR(91, 0xE605005B), /* PORT91CR */ | ||
1310 | PORTCR(92, 0xE605005C), /* PORT92CR */ | ||
1311 | PORTCR(93, 0xE605005D), /* PORT93CR */ | ||
1312 | PORTCR(94, 0xE605005E), /* PORT94CR */ | ||
1313 | PORTCR(95, 0xE605005F), /* PORT95CR */ | ||
1314 | PORTCR(96, 0xE6050060), /* PORT96CR */ | ||
1315 | PORTCR(97, 0xE6050061), /* PORT97CR */ | ||
1316 | PORTCR(98, 0xE6050062), /* PORT98CR */ | ||
1317 | PORTCR(99, 0xE6050063), /* PORT99CR */ | ||
1318 | PORTCR(100, 0xE6053064), /* PORT100CR */ | ||
1319 | PORTCR(101, 0xE6053065), /* PORT101CR */ | ||
1320 | PORTCR(102, 0xE6053066), /* PORT102CR */ | ||
1321 | PORTCR(103, 0xE6053067), /* PORT103CR */ | ||
1322 | PORTCR(104, 0xE6053068), /* PORT104CR */ | ||
1323 | PORTCR(105, 0xE6053069), /* PORT105CR */ | ||
1324 | PORTCR(106, 0xE605306A), /* PORT106CR */ | ||
1325 | PORTCR(107, 0xE605306B), /* PORT107CR */ | ||
1326 | PORTCR(108, 0xE605306C), /* PORT108CR */ | ||
1327 | PORTCR(109, 0xE605306D), /* PORT109CR */ | ||
1328 | PORTCR(110, 0xE605306E), /* PORT110CR */ | ||
1329 | PORTCR(111, 0xE605306F), /* PORT111CR */ | ||
1330 | PORTCR(112, 0xE6053070), /* PORT112CR */ | ||
1331 | PORTCR(113, 0xE6053071), /* PORT113CR */ | ||
1332 | PORTCR(114, 0xE6053072), /* PORT114CR */ | ||
1333 | PORTCR(115, 0xE6053073), /* PORT115CR */ | ||
1334 | PORTCR(116, 0xE6053074), /* PORT116CR */ | ||
1335 | PORTCR(117, 0xE6053075), /* PORT117CR */ | ||
1336 | PORTCR(118, 0xE6053076), /* PORT118CR */ | ||
1337 | PORTCR(119, 0xE6053077), /* PORT119CR */ | ||
1338 | PORTCR(120, 0xE6053078), /* PORT120CR */ | ||
1339 | PORTCR(121, 0xE6050079), /* PORT121CR */ | ||
1340 | PORTCR(122, 0xE605007A), /* PORT122CR */ | ||
1341 | PORTCR(123, 0xE605007B), /* PORT123CR */ | ||
1342 | PORTCR(124, 0xE605007C), /* PORT124CR */ | ||
1343 | PORTCR(125, 0xE605007D), /* PORT125CR */ | ||
1344 | PORTCR(126, 0xE605007E), /* PORT126CR */ | ||
1345 | PORTCR(127, 0xE605007F), /* PORT127CR */ | ||
1346 | PORTCR(128, 0xE6050080), /* PORT128CR */ | ||
1347 | PORTCR(129, 0xE6050081), /* PORT129CR */ | ||
1348 | PORTCR(130, 0xE6050082), /* PORT130CR */ | ||
1349 | PORTCR(131, 0xE6050083), /* PORT131CR */ | ||
1350 | PORTCR(132, 0xE6050084), /* PORT132CR */ | ||
1351 | PORTCR(133, 0xE6050085), /* PORT133CR */ | ||
1352 | PORTCR(134, 0xE6050086), /* PORT134CR */ | ||
1353 | PORTCR(135, 0xE6050087), /* PORT135CR */ | ||
1354 | PORTCR(136, 0xE6050088), /* PORT136CR */ | ||
1355 | PORTCR(137, 0xE6050089), /* PORT137CR */ | ||
1356 | PORTCR(138, 0xE605008A), /* PORT138CR */ | ||
1357 | PORTCR(139, 0xE605008B), /* PORT139CR */ | ||
1358 | PORTCR(140, 0xE605008C), /* PORT140CR */ | ||
1359 | PORTCR(141, 0xE605008D), /* PORT141CR */ | ||
1360 | PORTCR(142, 0xE605008E), /* PORT142CR */ | ||
1361 | PORTCR(143, 0xE605008F), /* PORT143CR */ | ||
1362 | PORTCR(144, 0xE6050090), /* PORT144CR */ | ||
1363 | PORTCR(145, 0xE6050091), /* PORT145CR */ | ||
1364 | PORTCR(146, 0xE6050092), /* PORT146CR */ | ||
1365 | PORTCR(147, 0xE6050093), /* PORT147CR */ | ||
1366 | PORTCR(148, 0xE6050094), /* PORT148CR */ | ||
1367 | PORTCR(149, 0xE6050095), /* PORT149CR */ | ||
1368 | PORTCR(150, 0xE6050096), /* PORT150CR */ | ||
1369 | PORTCR(151, 0xE6050097), /* PORT151CR */ | ||
1370 | PORTCR(152, 0xE6053098), /* PORT152CR */ | ||
1371 | PORTCR(153, 0xE6053099), /* PORT153CR */ | ||
1372 | PORTCR(154, 0xE605309A), /* PORT154CR */ | ||
1373 | PORTCR(155, 0xE605309B), /* PORT155CR */ | ||
1374 | PORTCR(156, 0xE605009C), /* PORT156CR */ | ||
1375 | PORTCR(157, 0xE605009D), /* PORT157CR */ | ||
1376 | PORTCR(158, 0xE605009E), /* PORT158CR */ | ||
1377 | PORTCR(159, 0xE605009F), /* PORT159CR */ | ||
1378 | PORTCR(160, 0xE60500A0), /* PORT160CR */ | ||
1379 | PORTCR(161, 0xE60500A1), /* PORT161CR */ | ||
1380 | PORTCR(162, 0xE60500A2), /* PORT162CR */ | ||
1381 | PORTCR(163, 0xE60500A3), /* PORT163CR */ | ||
1382 | PORTCR(164, 0xE60500A4), /* PORT164CR */ | ||
1383 | PORTCR(165, 0xE60500A5), /* PORT165CR */ | ||
1384 | PORTCR(166, 0xE60500A6), /* PORT166CR */ | ||
1385 | PORTCR(167, 0xE60520A7), /* PORT167CR */ | ||
1386 | PORTCR(168, 0xE60520A8), /* PORT168CR */ | ||
1387 | PORTCR(169, 0xE60520A9), /* PORT169CR */ | ||
1388 | PORTCR(170, 0xE60520AA), /* PORT170CR */ | ||
1389 | PORTCR(171, 0xE60520AB), /* PORT171CR */ | ||
1390 | PORTCR(172, 0xE60520AC), /* PORT172CR */ | ||
1391 | PORTCR(173, 0xE60520AD), /* PORT173CR */ | ||
1392 | PORTCR(174, 0xE60520AE), /* PORT174CR */ | ||
1393 | PORTCR(175, 0xE60520AF), /* PORT175CR */ | ||
1394 | PORTCR(176, 0xE60520B0), /* PORT176CR */ | ||
1395 | PORTCR(177, 0xE60520B1), /* PORT177CR */ | ||
1396 | PORTCR(178, 0xE60520B2), /* PORT178CR */ | ||
1397 | PORTCR(179, 0xE60520B3), /* PORT179CR */ | ||
1398 | PORTCR(180, 0xE60520B4), /* PORT180CR */ | ||
1399 | PORTCR(181, 0xE60520B5), /* PORT181CR */ | ||
1400 | PORTCR(182, 0xE60520B6), /* PORT182CR */ | ||
1401 | PORTCR(183, 0xE60520B7), /* PORT183CR */ | ||
1402 | PORTCR(184, 0xE60520B8), /* PORT184CR */ | ||
1403 | PORTCR(185, 0xE60520B9), /* PORT185CR */ | ||
1404 | PORTCR(186, 0xE60520BA), /* PORT186CR */ | ||
1405 | PORTCR(187, 0xE60520BB), /* PORT187CR */ | ||
1406 | PORTCR(188, 0xE60520BC), /* PORT188CR */ | ||
1407 | PORTCR(189, 0xE60520BD), /* PORT189CR */ | ||
1408 | PORTCR(190, 0xE60520BE), /* PORT190CR */ | ||
1409 | |||
1410 | { PINMUX_CFG_REG("MSEL1CR", 0xE605800C, 32, 1) { | ||
1411 | MSEL1CR_31_0, MSEL1CR_31_1, | ||
1412 | MSEL1CR_30_0, MSEL1CR_30_1, | ||
1413 | MSEL1CR_29_0, MSEL1CR_29_1, | ||
1414 | MSEL1CR_28_0, MSEL1CR_28_1, | ||
1415 | MSEL1CR_27_0, MSEL1CR_27_1, | ||
1416 | MSEL1CR_26_0, MSEL1CR_26_1, | ||
1417 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1418 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1419 | MSEL1CR_16_0, MSEL1CR_16_1, | ||
1420 | MSEL1CR_15_0, MSEL1CR_15_1, | ||
1421 | MSEL1CR_14_0, MSEL1CR_14_1, | ||
1422 | MSEL1CR_13_0, MSEL1CR_13_1, | ||
1423 | MSEL1CR_12_0, MSEL1CR_12_1, | ||
1424 | 0, 0, 0, 0, | ||
1425 | MSEL1CR_9_0, MSEL1CR_9_1, | ||
1426 | MSEL1CR_8_0, MSEL1CR_8_1, | ||
1427 | MSEL1CR_7_0, MSEL1CR_7_1, | ||
1428 | MSEL1CR_6_0, MSEL1CR_6_1, | ||
1429 | 0, 0, | ||
1430 | MSEL1CR_4_0, MSEL1CR_4_1, | ||
1431 | MSEL1CR_3_0, MSEL1CR_3_1, | ||
1432 | MSEL1CR_2_0, MSEL1CR_2_1, | ||
1433 | 0, 0, | ||
1434 | MSEL1CR_0_0, MSEL1CR_0_1, | ||
1435 | } | ||
1436 | }, | ||
1437 | { PINMUX_CFG_REG("MSEL3CR", 0xE6058020, 32, 1) { | ||
1438 | 0, 0, 0, 0, | ||
1439 | 0, 0, 0, 0, | ||
1440 | MSEL3CR_27_0, MSEL3CR_27_1, | ||
1441 | MSEL3CR_26_0, MSEL3CR_26_1, | ||
1442 | 0, 0, 0, 0, | ||
1443 | 0, 0, 0, 0, | ||
1444 | MSEL3CR_21_0, MSEL3CR_21_1, | ||
1445 | MSEL3CR_20_0, MSEL3CR_20_1, | ||
1446 | 0, 0, 0, 0, | ||
1447 | 0, 0, 0, 0, | ||
1448 | MSEL3CR_15_0, MSEL3CR_15_1, | ||
1449 | 0, 0, 0, 0, | ||
1450 | 0, 0, 0, 0, | ||
1451 | 0, 0, | ||
1452 | MSEL3CR_9_0, MSEL3CR_9_1, | ||
1453 | 0, 0, 0, 0, | ||
1454 | MSEL3CR_6_0, MSEL3CR_6_1, | ||
1455 | 0, 0, 0, 0, | ||
1456 | 0, 0, 0, 0, | ||
1457 | 0, 0, 0, 0, | ||
1458 | } | ||
1459 | }, | ||
1460 | { PINMUX_CFG_REG("MSEL4CR", 0xE6058024, 32, 1) { | ||
1461 | 0, 0, 0, 0, | ||
1462 | 0, 0, 0, 0, | ||
1463 | 0, 0, 0, 0, | ||
1464 | 0, 0, 0, 0, | ||
1465 | 0, 0, 0, 0, | ||
1466 | 0, 0, 0, 0, | ||
1467 | MSEL4CR_19_0, MSEL4CR_19_1, | ||
1468 | MSEL4CR_18_0, MSEL4CR_18_1, | ||
1469 | MSEL4CR_17_0, MSEL4CR_17_1, | ||
1470 | MSEL4CR_16_0, MSEL4CR_16_1, | ||
1471 | MSEL4CR_15_0, MSEL4CR_15_1, | ||
1472 | MSEL4CR_14_0, MSEL4CR_14_1, | ||
1473 | 0, 0, 0, 0, | ||
1474 | 0, 0, | ||
1475 | MSEL4CR_10_0, MSEL4CR_10_1, | ||
1476 | 0, 0, 0, 0, | ||
1477 | 0, 0, | ||
1478 | MSEL4CR_6_0, MSEL4CR_6_1, | ||
1479 | 0, 0, | ||
1480 | MSEL4CR_4_0, MSEL4CR_4_1, | ||
1481 | 0, 0, 0, 0, | ||
1482 | MSEL4CR_1_0, MSEL4CR_1_1, | ||
1483 | 0, 0, | ||
1484 | } | ||
1485 | }, | ||
1486 | { }, | ||
1487 | }; | ||
1488 | |||
1489 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
1490 | { PINMUX_DATA_REG("PORTL095_064DR", 0xE6054008, 32) { | ||
1491 | PORT95_DATA, PORT94_DATA, PORT93_DATA, PORT92_DATA, | ||
1492 | PORT91_DATA, PORT90_DATA, PORT89_DATA, PORT88_DATA, | ||
1493 | PORT87_DATA, PORT86_DATA, PORT85_DATA, PORT84_DATA, | ||
1494 | PORT83_DATA, PORT82_DATA, PORT81_DATA, PORT80_DATA, | ||
1495 | PORT79_DATA, PORT78_DATA, PORT77_DATA, PORT76_DATA, | ||
1496 | 0, 0, 0, 0, | ||
1497 | 0, 0, 0, 0, | ||
1498 | 0, 0, 0, 0, | ||
1499 | } | ||
1500 | }, | ||
1501 | { PINMUX_DATA_REG("PORTL127_096DR", 0xE605400C, 32) { | ||
1502 | PORT127_DATA, PORT126_DATA, PORT125_DATA, PORT124_DATA, | ||
1503 | PORT123_DATA, PORT122_DATA, PORT121_DATA, 0, | ||
1504 | 0, 0, 0, 0, | ||
1505 | 0, 0, 0, 0, | ||
1506 | 0, 0, 0, 0, | ||
1507 | 0, 0, 0, 0, | ||
1508 | 0, 0, 0, 0, | ||
1509 | PORT99_DATA, PORT98_DATA, PORT97_DATA, PORT96_DATA, | ||
1510 | } | ||
1511 | }, | ||
1512 | { PINMUX_DATA_REG("PORTL159_128DR", 0xE6054010, 32) { | ||
1513 | PORT159_DATA, PORT158_DATA, PORT157_DATA, PORT156_DATA, | ||
1514 | 0, 0, 0, 0, | ||
1515 | PORT151_DATA, PORT150_DATA, PORT149_DATA, PORT148_DATA, | ||
1516 | PORT147_DATA, PORT146_DATA, PORT145_DATA, PORT144_DATA, | ||
1517 | PORT143_DATA, PORT142_DATA, PORT141_DATA, PORT140_DATA, | ||
1518 | PORT139_DATA, PORT138_DATA, PORT137_DATA, PORT136_DATA, | ||
1519 | PORT135_DATA, PORT134_DATA, PORT133_DATA, PORT132_DATA, | ||
1520 | PORT131_DATA, PORT130_DATA, PORT129_DATA, PORT128_DATA, | ||
1521 | } | ||
1522 | }, | ||
1523 | { PINMUX_DATA_REG("PORTL191_160DR", 0xE6054014, 32) { | ||
1524 | 0, 0, 0, 0, | ||
1525 | 0, 0, 0, 0, | ||
1526 | 0, 0, 0, 0, | ||
1527 | 0, 0, 0, 0, | ||
1528 | 0, 0, 0, 0, | ||
1529 | 0, 0, 0, 0, | ||
1530 | 0, PORT166_DATA, PORT165_DATA, PORT164_DATA, | ||
1531 | PORT163_DATA, PORT162_DATA, PORT161_DATA, PORT160_DATA, | ||
1532 | } | ||
1533 | }, | ||
1534 | { PINMUX_DATA_REG("PORTD031_000DR", 0xE6055000, 32) { | ||
1535 | PORT31_DATA, PORT30_DATA, PORT29_DATA, PORT28_DATA, | ||
1536 | PORT27_DATA, PORT26_DATA, PORT25_DATA, PORT24_DATA, | ||
1537 | PORT23_DATA, PORT22_DATA, PORT21_DATA, PORT20_DATA, | ||
1538 | PORT19_DATA, PORT18_DATA, PORT17_DATA, PORT16_DATA, | ||
1539 | PORT15_DATA, PORT14_DATA, PORT13_DATA, PORT12_DATA, | ||
1540 | PORT11_DATA, PORT10_DATA, PORT9_DATA, PORT8_DATA, | ||
1541 | PORT7_DATA, PORT6_DATA, PORT5_DATA, PORT4_DATA, | ||
1542 | PORT3_DATA, PORT2_DATA, PORT1_DATA, PORT0_DATA, | ||
1543 | } | ||
1544 | }, | ||
1545 | { PINMUX_DATA_REG("PORTD063_032DR", 0xE6055004, 32) { | ||
1546 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1547 | 0, 0, 0, 0, 0, 0, 0, 0, | ||
1548 | 0, 0, PORT45_DATA, PORT44_DATA, | ||
1549 | PORT43_DATA, PORT42_DATA, PORT41_DATA, PORT40_DATA, | ||
1550 | PORT39_DATA, PORT38_DATA, PORT37_DATA, PORT36_DATA, | ||
1551 | PORT35_DATA, PORT34_DATA, PORT33_DATA, PORT32_DATA, | ||
1552 | } | ||
1553 | }, | ||
1554 | { PINMUX_DATA_REG("PORTR063_032DR", 0xE6056004, 32) { | ||
1555 | PORT63_DATA, PORT62_DATA, PORT61_DATA, PORT60_DATA, | ||
1556 | PORT59_DATA, PORT58_DATA, PORT57_DATA, PORT56_DATA, | ||
1557 | PORT55_DATA, PORT54_DATA, PORT53_DATA, PORT52_DATA, | ||
1558 | PORT51_DATA, PORT50_DATA, PORT49_DATA, PORT48_DATA, | ||
1559 | PORT47_DATA, PORT46_DATA, 0, 0, | ||
1560 | 0, 0, 0, 0, | ||
1561 | 0, 0, 0, 0, | ||
1562 | 0, 0, 0, 0, | ||
1563 | } | ||
1564 | }, | ||
1565 | { PINMUX_DATA_REG("PORTR095_064DR", 0xE6056008, 32) { | ||
1566 | 0, 0, 0, 0, | ||
1567 | 0, 0, 0, 0, | ||
1568 | 0, 0, 0, 0, | ||
1569 | 0, 0, 0, 0, | ||
1570 | 0, 0, 0, 0, | ||
1571 | PORT75_DATA, PORT74_DATA, PORT73_DATA, PORT72_DATA, | ||
1572 | PORT71_DATA, PORT70_DATA, PORT69_DATA, PORT68_DATA, | ||
1573 | PORT67_DATA, PORT66_DATA, PORT65_DATA, PORT64_DATA, | ||
1574 | } | ||
1575 | }, | ||
1576 | { PINMUX_DATA_REG("PORTR191_160DR", 0xE6056014, 32) { | ||
1577 | 0, PORT190_DATA, PORT189_DATA, PORT188_DATA, | ||
1578 | PORT187_DATA, PORT186_DATA, PORT185_DATA, PORT184_DATA, | ||
1579 | PORT183_DATA, PORT182_DATA, PORT181_DATA, PORT180_DATA, | ||
1580 | PORT179_DATA, PORT178_DATA, PORT177_DATA, PORT176_DATA, | ||
1581 | PORT175_DATA, PORT174_DATA, PORT173_DATA, PORT172_DATA, | ||
1582 | PORT171_DATA, PORT170_DATA, PORT169_DATA, PORT168_DATA, | ||
1583 | PORT167_DATA, 0, 0, 0, | ||
1584 | 0, 0, 0, 0, | ||
1585 | } | ||
1586 | }, | ||
1587 | { PINMUX_DATA_REG("PORTU127_096DR", 0xE605700C, 32) { | ||
1588 | 0, 0, 0, 0, | ||
1589 | 0, 0, 0, PORT120_DATA, | ||
1590 | PORT119_DATA, PORT118_DATA, PORT117_DATA, PORT116_DATA, | ||
1591 | PORT115_DATA, PORT114_DATA, PORT113_DATA, PORT112_DATA, | ||
1592 | PORT111_DATA, PORT110_DATA, PORT109_DATA, PORT108_DATA, | ||
1593 | PORT107_DATA, PORT106_DATA, PORT105_DATA, PORT104_DATA, | ||
1594 | PORT103_DATA, PORT102_DATA, PORT101_DATA, PORT100_DATA, | ||
1595 | 0, 0, 0, 0, | ||
1596 | } | ||
1597 | }, | ||
1598 | { PINMUX_DATA_REG("PORTU159_128DR", 0xE6057010, 32) { | ||
1599 | 0, 0, 0, 0, | ||
1600 | PORT155_DATA, PORT154_DATA, PORT153_DATA, PORT152_DATA, | ||
1601 | 0, 0, 0, 0, | ||
1602 | 0, 0, 0, 0, | ||
1603 | 0, 0, 0, 0, | ||
1604 | 0, 0, 0, 0, | ||
1605 | 0, 0, 0, 0, | ||
1606 | 0, 0, 0, 0, | ||
1607 | } | ||
1608 | }, | ||
1609 | { }, | ||
1610 | }; | ||
1611 | |||
1612 | static struct pinmux_info sh7372_pinmux_info = { | ||
1613 | .name = "sh7372_pfc", | ||
1614 | .reserved_id = PINMUX_RESERVED, | ||
1615 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
1616 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
1617 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | ||
1618 | .input_pd = { PINMUX_INPUT_PULLDOWN_BEGIN, PINMUX_INPUT_PULLDOWN_END }, | ||
1619 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
1620 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
1621 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
1622 | |||
1623 | .first_gpio = GPIO_PORT0, | ||
1624 | .last_gpio = GPIO_FN_SDENC_DV_CLKI, | ||
1625 | |||
1626 | .gpios = pinmux_gpios, | ||
1627 | .cfg_regs = pinmux_config_regs, | ||
1628 | .data_regs = pinmux_data_regs, | ||
1629 | |||
1630 | .gpio_data = pinmux_data, | ||
1631 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
1632 | }; | ||
1633 | |||
1634 | void sh7372_pinmux_init(void) | ||
1635 | { | ||
1636 | register_pinmux(&sh7372_pinmux_info); | ||
1637 | } | ||
diff --git a/arch/arm/mach-shmobile/pfc-sh7377.c b/arch/arm/mach-shmobile/pfc-sh7377.c new file mode 100644 index 00000000000..613e6842ad0 --- /dev/null +++ b/arch/arm/mach-shmobile/pfc-sh7377.c | |||
@@ -0,0 +1,1767 @@ | |||
1 | /* | ||
2 | * sh7377 processor support - PFC hardware block | ||
3 | * | ||
4 | * Copyright (C) 2010 NISHIMOTO Hiroki | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU General Public License as | ||
8 | * published by the Free Software Foundation; version 2 of the | ||
9 | * License. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
19 | */ | ||
20 | #include <linux/init.h> | ||
21 | #include <linux/kernel.h> | ||
22 | #include <linux/gpio.h> | ||
23 | #include <mach/sh7377.h> | ||
24 | |||
25 | #define _1(fn, pfx, sfx) fn(pfx, sfx) | ||
26 | |||
27 | #define _10(fn, pfx, sfx) \ | ||
28 | _1(fn, pfx##0, sfx), _1(fn, pfx##1, sfx), \ | ||
29 | _1(fn, pfx##2, sfx), _1(fn, pfx##3, sfx), \ | ||
30 | _1(fn, pfx##4, sfx), _1(fn, pfx##5, sfx), \ | ||
31 | _1(fn, pfx##6, sfx), _1(fn, pfx##7, sfx), \ | ||
32 | _1(fn, pfx##8, sfx), _1(fn, pfx##9, sfx) | ||
33 | |||
34 | #define _90(fn, pfx, sfx) \ | ||
35 | _10(fn, pfx##1, sfx), _10(fn, pfx##2, sfx), \ | ||
36 | _10(fn, pfx##3, sfx), _10(fn, pfx##4, sfx), \ | ||
37 | _10(fn, pfx##5, sfx), _10(fn, pfx##6, sfx), \ | ||
38 | _10(fn, pfx##7, sfx), _10(fn, pfx##8, sfx), \ | ||
39 | _10(fn, pfx##9, sfx) | ||
40 | |||
41 | #define _265(fn, pfx, sfx) \ | ||
42 | _10(fn, pfx, sfx), _90(fn, pfx, sfx), \ | ||
43 | _10(fn, pfx##10, sfx), \ | ||
44 | _1(fn, pfx##110, sfx), _1(fn, pfx##111, sfx), \ | ||
45 | _1(fn, pfx##112, sfx), _1(fn, pfx##113, sfx), \ | ||
46 | _1(fn, pfx##114, sfx), _1(fn, pfx##115, sfx), \ | ||
47 | _1(fn, pfx##116, sfx), _1(fn, pfx##117, sfx), \ | ||
48 | _1(fn, pfx##118, sfx), \ | ||
49 | _1(fn, pfx##128, sfx), _1(fn, pfx##129, sfx), \ | ||
50 | _10(fn, pfx##13, sfx), _10(fn, pfx##14, sfx), \ | ||
51 | _10(fn, pfx##15, sfx), \ | ||
52 | _1(fn, pfx##160, sfx), _1(fn, pfx##161, sfx), \ | ||
53 | _1(fn, pfx##162, sfx), _1(fn, pfx##163, sfx), \ | ||
54 | _1(fn, pfx##164, sfx), \ | ||
55 | _1(fn, pfx##192, sfx), _1(fn, pfx##193, sfx), \ | ||
56 | _1(fn, pfx##194, sfx), _1(fn, pfx##195, sfx), \ | ||
57 | _1(fn, pfx##196, sfx), _1(fn, pfx##197, sfx), \ | ||
58 | _1(fn, pfx##198, sfx), _1(fn, pfx##199, sfx), \ | ||
59 | _10(fn, pfx##20, sfx), _10(fn, pfx##21, sfx), \ | ||
60 | _10(fn, pfx##22, sfx), _10(fn, pfx##23, sfx), \ | ||
61 | _10(fn, pfx##24, sfx), _10(fn, pfx##25, sfx), \ | ||
62 | _1(fn, pfx##260, sfx), _1(fn, pfx##261, sfx), \ | ||
63 | _1(fn, pfx##262, sfx), _1(fn, pfx##263, sfx), \ | ||
64 | _1(fn, pfx##264, sfx) | ||
65 | |||
66 | #define _PORT(pfx, sfx) pfx##_##sfx | ||
67 | #define PORT_265(str) _265(_PORT, PORT, str) | ||
68 | |||
69 | enum { | ||
70 | PINMUX_RESERVED = 0, | ||
71 | |||
72 | PINMUX_DATA_BEGIN, | ||
73 | PORT_265(DATA), /* PORT0_DATA -> PORT264_DATA */ | ||
74 | PINMUX_DATA_END, | ||
75 | |||
76 | PINMUX_INPUT_BEGIN, | ||
77 | PORT_265(IN), /* PORT0_IN -> PORT264_IN */ | ||
78 | PINMUX_INPUT_END, | ||
79 | |||
80 | PINMUX_INPUT_PULLUP_BEGIN, | ||
81 | PORT_265(IN_PU), /* PORT0_IN_PU -> PORT264_IN_PU */ | ||
82 | PINMUX_INPUT_PULLUP_END, | ||
83 | |||
84 | PINMUX_INPUT_PULLDOWN_BEGIN, | ||
85 | PORT_265(IN_PD), /* PORT0_IN_PD -> PORT264_IN_PD */ | ||
86 | PINMUX_INPUT_PULLDOWN_END, | ||
87 | |||
88 | PINMUX_OUTPUT_BEGIN, | ||
89 | PORT_265(OUT), /* PORT0_OUT -> PORT264_OUT */ | ||
90 | PINMUX_OUTPUT_END, | ||
91 | |||
92 | PINMUX_FUNCTION_BEGIN, | ||
93 | PORT_265(FN_IN), /* PORT0_FN_IN -> PORT264_FN_IN */ | ||
94 | PORT_265(FN_OUT), /* PORT0_FN_OUT -> PORT264_FN_OUT */ | ||
95 | PORT_265(FN0), /* PORT0_FN0 -> PORT264_FN0 */ | ||
96 | PORT_265(FN1), /* PORT0_FN1 -> PORT264_FN1 */ | ||
97 | PORT_265(FN2), /* PORT0_FN2 -> PORT264_FN2 */ | ||
98 | PORT_265(FN3), /* PORT0_FN3 -> PORT264_FN3 */ | ||
99 | PORT_265(FN4), /* PORT0_FN4 -> PORT264_FN4 */ | ||
100 | PORT_265(FN5), /* PORT0_FN5 -> PORT264_FN5 */ | ||
101 | PORT_265(FN6), /* PORT0_FN6 -> PORT264_FN6 */ | ||
102 | PORT_265(FN7), /* PORT0_FN7 -> PORT264_FN7 */ | ||
103 | |||
104 | MSELBCR_MSEL17_1, MSELBCR_MSEL17_0, | ||
105 | MSELBCR_MSEL16_1, MSELBCR_MSEL16_0, | ||
106 | PINMUX_FUNCTION_END, | ||
107 | |||
108 | PINMUX_MARK_BEGIN, | ||
109 | /* Special Pull-up / Pull-down Functions */ | ||
110 | PORT66_KEYIN0_PU_MARK, PORT67_KEYIN1_PU_MARK, | ||
111 | PORT68_KEYIN2_PU_MARK, PORT69_KEYIN3_PU_MARK, | ||
112 | PORT70_KEYIN4_PU_MARK, PORT71_KEYIN5_PU_MARK, | ||
113 | PORT72_KEYIN6_PU_MARK, | ||
114 | |||
115 | /* 55-1 */ | ||
116 | VBUS_0_MARK, | ||
117 | CPORT0_MARK, | ||
118 | CPORT1_MARK, | ||
119 | CPORT2_MARK, | ||
120 | CPORT3_MARK, | ||
121 | CPORT4_MARK, | ||
122 | CPORT5_MARK, | ||
123 | CPORT6_MARK, | ||
124 | CPORT7_MARK, | ||
125 | CPORT8_MARK, | ||
126 | CPORT9_MARK, | ||
127 | CPORT10_MARK, | ||
128 | CPORT11_MARK, SIN2_MARK, | ||
129 | CPORT12_MARK, XCTS2_MARK, | ||
130 | CPORT13_MARK, RFSPO4_MARK, | ||
131 | CPORT14_MARK, RFSPO5_MARK, | ||
132 | CPORT15_MARK, SCIFA0_SCK_MARK, GPS_AGC2_MARK, | ||
133 | CPORT16_MARK, SCIFA0_TXD_MARK, GPS_AGC3_MARK, | ||
134 | CPORT17_IC_OE_MARK, SOUT2_MARK, | ||
135 | CPORT18_MARK, XRTS2_MARK, PORT19_VIO_CKO2_MARK, | ||
136 | CPORT19_MPORT1_MARK, | ||
137 | CPORT20_MARK, RFSPO6_MARK, | ||
138 | CPORT21_MARK, STATUS0_MARK, | ||
139 | CPORT22_MARK, STATUS1_MARK, | ||
140 | CPORT23_MARK, STATUS2_MARK, RFSPO7_MARK, | ||
141 | B_SYNLD1_MARK, | ||
142 | B_SYNLD2_MARK, SYSENMSK_MARK, | ||
143 | XMAINPS_MARK, | ||
144 | XDIVPS_MARK, | ||
145 | XIDRST_MARK, | ||
146 | IDCLK_MARK, IC_DP_MARK, | ||
147 | IDIO_MARK, IC_DM_MARK, | ||
148 | SOUT1_MARK, SCIFA4_TXD_MARK, M02_BERDAT_MARK, | ||
149 | SIN1_MARK, SCIFA4_RXD_MARK, XWUP_MARK, | ||
150 | XRTS1_MARK, SCIFA4_RTS_MARK, M03_BERCLK_MARK, | ||
151 | XCTS1_MARK, SCIFA4_CTS_MARK, | ||
152 | PCMCLKO_MARK, | ||
153 | SYNC8KO_MARK, | ||
154 | |||
155 | /* 55-2 */ | ||
156 | DNPCM_A_MARK, | ||
157 | UPPCM_A_MARK, | ||
158 | VACK_MARK, | ||
159 | XTALB1L_MARK, | ||
160 | GPS_AGC1_MARK, SCIFA0_RTS_MARK, | ||
161 | GPS_AGC4_MARK, SCIFA0_RXD_MARK, | ||
162 | GPS_PWRDOWN_MARK, SCIFA0_CTS_MARK, | ||
163 | GPS_IM_MARK, | ||
164 | GPS_IS_MARK, | ||
165 | GPS_QM_MARK, | ||
166 | GPS_QS_MARK, | ||
167 | FMSOCK_MARK, PORT49_IRDA_OUT_MARK, PORT49_IROUT_MARK, | ||
168 | FMSOOLR_MARK, BBIF2_TSYNC2_MARK, TPU2TO2_MARK, IPORT3_MARK, | ||
169 | FMSIOLR_MARK, | ||
170 | FMSOOBT_MARK, BBIF2_TSCK2_MARK, TPU2TO3_MARK, OPORT1_MARK, | ||
171 | FMSIOBT_MARK, | ||
172 | FMSOSLD_MARK, BBIF2_TXD2_MARK, OPORT2_MARK, | ||
173 | FMSOILR_MARK, PORT53_IRDA_IN_MARK, TPU3TO3_MARK, OPORT3_MARK, | ||
174 | FMSIILR_MARK, | ||
175 | FMSOIBT_MARK, PORT54_IRDA_FIRSEL_MARK, TPU3TO2_MARK, FMSIIBT_MARK, | ||
176 | FMSISLD_MARK, MFG0_OUT1_MARK, TPU0TO0_MARK, | ||
177 | A0_EA0_MARK, BS_MARK, | ||
178 | A12_EA12_MARK, PORT58_VIO_CKOR_MARK, TPU4TO2_MARK, | ||
179 | A13_EA13_MARK, PORT59_IROUT_MARK, MFG0_OUT2_MARK, TPU0TO1_MARK, | ||
180 | A14_EA14_MARK, PORT60_KEYOUT5_MARK, | ||
181 | A15_EA15_MARK, PORT61_KEYOUT4_MARK, | ||
182 | A16_EA16_MARK, PORT62_KEYOUT3_MARK, MSIOF0_SS1_MARK, | ||
183 | A17_EA17_MARK, PORT63_KEYOUT2_MARK, MSIOF0_TSYNC_MARK, | ||
184 | A18_EA18_MARK, PORT64_KEYOUT1_MARK, MSIOF0_TSCK_MARK, | ||
185 | A19_EA19_MARK, PORT65_KEYOUT0_MARK, MSIOF0_TXD_MARK, | ||
186 | A20_EA20_MARK, PORT66_KEYIN0_MARK, MSIOF0_RSCK_MARK, | ||
187 | A21_EA21_MARK, PORT67_KEYIN1_MARK, MSIOF0_RSYNC_MARK, | ||
188 | A22_EA22_MARK, PORT68_KEYIN2_MARK, MSIOF0_MCK0_MARK, | ||
189 | A23_EA23_MARK, PORT69_KEYIN3_MARK, MSIOF0_MCK1_MARK, | ||
190 | A24_EA24_MARK, PORT70_KEYIN4_MARK, MSIOF0_RXD_MARK, | ||
191 | A25_EA25_MARK, PORT71_KEYIN5_MARK, MSIOF0_SS2_MARK, | ||
192 | A26_MARK, PORT72_KEYIN6_MARK, | ||
193 | D0_ED0_NAF0_MARK, | ||
194 | D1_ED1_NAF1_MARK, | ||
195 | D2_ED2_NAF2_MARK, | ||
196 | D3_ED3_NAF3_MARK, | ||
197 | D4_ED4_NAF4_MARK, | ||
198 | D5_ED5_NAF5_MARK, | ||
199 | D6_ED6_NAF6_MARK, | ||
200 | D7_ED7_NAF7_MARK, | ||
201 | D8_ED8_NAF8_MARK, | ||
202 | D9_ED9_NAF9_MARK, | ||
203 | D10_ED10_NAF10_MARK, | ||
204 | D11_ED11_NAF11_MARK, | ||
205 | D12_ED12_NAF12_MARK, | ||
206 | D13_ED13_NAF13_MARK, | ||
207 | D14_ED14_NAF14_MARK, | ||
208 | D15_ED15_NAF15_MARK, | ||
209 | CS4_MARK, | ||
210 | CS5A_MARK, FMSICK_MARK, | ||
211 | CS5B_MARK, FCE1_MARK, | ||
212 | |||
213 | /* 55-3 */ | ||
214 | CS6B_MARK, XCS2_MARK, CS6A_MARK, DACK0_MARK, | ||
215 | FCE0_MARK, | ||
216 | WAIT_MARK, DREQ0_MARK, | ||
217 | RD_XRD_MARK, | ||
218 | WE0_XWR0_FWE_MARK, | ||
219 | WE1_XWR1_MARK, | ||
220 | FRB_MARK, | ||
221 | CKO_MARK, | ||
222 | NBRSTOUT_MARK, | ||
223 | NBRST_MARK, | ||
224 | GPS_EPPSIN_MARK, | ||
225 | LATCHPULSE_MARK, | ||
226 | LTESIGNAL_MARK, | ||
227 | LEGACYSTATE_MARK, | ||
228 | TCKON_MARK, | ||
229 | VIO_VD_MARK, PORT128_KEYOUT0_MARK, IPORT0_MARK, | ||
230 | VIO_HD_MARK, PORT129_KEYOUT1_MARK, IPORT1_MARK, | ||
231 | VIO_D0_MARK, PORT130_KEYOUT2_MARK, PORT130_MSIOF2_RXD_MARK, | ||
232 | VIO_D1_MARK, PORT131_KEYOUT3_MARK, PORT131_MSIOF2_SS1_MARK, | ||
233 | VIO_D2_MARK, PORT132_KEYOUT4_MARK, PORT132_MSIOF2_SS2_MARK, | ||
234 | VIO_D3_MARK, PORT133_KEYOUT5_MARK, PORT133_MSIOF2_TSYNC_MARK, | ||
235 | VIO_D4_MARK, PORT134_KEYIN0_MARK, PORT134_MSIOF2_TXD_MARK, | ||
236 | VIO_D5_MARK, PORT135_KEYIN1_MARK, PORT135_MSIOF2_TSCK_MARK, | ||
237 | VIO_D6_MARK, PORT136_KEYIN2_MARK, | ||
238 | VIO_D7_MARK, PORT137_KEYIN3_MARK, | ||
239 | VIO_D8_MARK, M9_SLCD_A01_MARK, PORT138_FSIAOMC_MARK, | ||
240 | VIO_D9_MARK, M10_SLCD_CK1_MARK, PORT139_FSIAOLR_MARK, | ||
241 | VIO_D10_MARK, M11_SLCD_SO1_MARK, TPU0TO2_MARK, PORT140_FSIAOBT_MARK, | ||
242 | VIO_D11_MARK, M12_SLCD_CE1_MARK, TPU0TO3_MARK, PORT141_FSIAOSLD_MARK, | ||
243 | VIO_D12_MARK, M13_BSW_MARK, PORT142_FSIACK_MARK, | ||
244 | VIO_D13_MARK, M14_GSW_MARK, PORT143_FSIAILR_MARK, | ||
245 | VIO_D14_MARK, M15_RSW_MARK, PORT144_FSIAIBT_MARK, | ||
246 | VIO_D15_MARK, TPU1TO3_MARK, PORT145_FSIAISLD_MARK, | ||
247 | VIO_CLK_MARK, PORT146_KEYIN4_MARK, IPORT2_MARK, | ||
248 | VIO_FIELD_MARK, PORT147_KEYIN5_MARK, | ||
249 | VIO_CKO_MARK, PORT148_KEYIN6_MARK, | ||
250 | A27_MARK, RDWR_XWE_MARK, MFG0_IN1_MARK, | ||
251 | MFG0_IN2_MARK, | ||
252 | TS_SPSYNC3_MARK, MSIOF2_RSCK_MARK, | ||
253 | TS_SDAT3_MARK, MSIOF2_RSYNC_MARK, | ||
254 | TPU1TO2_MARK, TS_SDEN3_MARK, PORT153_MSIOF2_SS1_MARK, | ||
255 | SOUT3_MARK, SCIFA2_TXD1_MARK, MSIOF2_MCK0_MARK, | ||
256 | SIN3_MARK, SCIFA2_RXD1_MARK, MSIOF2_MCK1_MARK, | ||
257 | XRTS3_MARK, SCIFA2_RTS1_MARK, PORT156_MSIOF2_SS2_MARK, | ||
258 | XCTS3_MARK, SCIFA2_CTS1_MARK, PORT157_MSIOF2_RXD_MARK, | ||
259 | |||
260 | /* 55-4 */ | ||
261 | DINT_MARK, SCIFA2_SCK1_MARK, TS_SCK3_MARK, | ||
262 | PORT159_SCIFB_SCK_MARK, PORT159_SCIFA5_SCK_MARK, NMI_MARK, | ||
263 | PORT160_SCIFB_TXD_MARK, PORT160_SCIFA5_TXD_MARK, SOUT0_MARK, | ||
264 | PORT161_SCIFB_CTS_MARK, PORT161_SCIFA5_CTS_MARK, XCTS0_MARK, | ||
265 | MFG3_IN2_MARK, | ||
266 | PORT162_SCIFB_RXD_MARK, PORT162_SCIFA5_RXD_MARK, SIN0_MARK, | ||
267 | MFG3_IN1_MARK, | ||
268 | PORT163_SCIFB_RTS_MARK, PORT163_SCIFA5_RTS_MARK, XRTS0_MARK, | ||
269 | MFG3_OUT1_MARK, TPU3TO0_MARK, | ||
270 | LCDD0_MARK, PORT192_KEYOUT0_MARK, EXT_CKI_MARK, | ||
271 | LCDD1_MARK, PORT193_KEYOUT1_MARK, PORT193_SCIFA5_CTS_MARK, | ||
272 | BBIF2_TSYNC1_MARK, | ||
273 | LCDD2_MARK, PORT194_KEYOUT2_MARK, PORT194_SCIFA5_RTS_MARK, | ||
274 | BBIF2_TSCK1_MARK, | ||
275 | LCDD3_MARK, PORT195_KEYOUT3_MARK, PORT195_SCIFA5_RXD_MARK, | ||
276 | BBIF2_TXD1_MARK, | ||
277 | LCDD4_MARK, PORT196_KEYOUT4_MARK, PORT196_SCIFA5_TXD_MARK, | ||
278 | LCDD5_MARK, PORT197_KEYOUT5_MARK, PORT197_SCIFA5_SCK_MARK, | ||
279 | MFG2_OUT2_MARK, | ||
280 | TPU2TO1_MARK, | ||
281 | LCDD6_MARK, XWR2_MARK, | ||
282 | LCDD7_MARK, TPU4TO1_MARK, MFG4_OUT2_MARK, XWR3_MARK, | ||
283 | LCDD8_MARK, PORT200_KEYIN0_MARK, VIO_DR0_MARK, D16_MARK, ED16_MARK, | ||
284 | LCDD9_MARK, PORT201_KEYIN1_MARK, VIO_DR1_MARK, D17_MARK, ED17_MARK, | ||
285 | LCDD10_MARK, PORT202_KEYIN2_MARK, VIO_DR2_MARK, D18_MARK, ED18_MARK, | ||
286 | LCDD11_MARK, PORT203_KEYIN3_MARK, VIO_DR3_MARK, D19_MARK, ED19_MARK, | ||
287 | LCDD12_MARK, PORT204_KEYIN4_MARK, VIO_DR4_MARK, D20_MARK, ED20_MARK, | ||
288 | LCDD13_MARK, PORT205_KEYIN5_MARK, VIO_DR5_MARK, D21_MARK, ED21_MARK, | ||
289 | LCDD14_MARK, PORT206_KEYIN6_MARK, VIO_DR6_MARK, D22_MARK, ED22_MARK, | ||
290 | LCDD15_MARK, PORT207_MSIOF0L_SS1_MARK, PORT207_KEYOUT0_MARK, | ||
291 | VIO_DR7_MARK, D23_MARK, ED23_MARK, | ||
292 | LCDD16_MARK, PORT208_MSIOF0L_SS2_MARK, PORT208_KEYOUT1_MARK, | ||
293 | VIO_VDR_MARK, D24_MARK, ED24_MARK, | ||
294 | LCDD17_MARK, PORT209_KEYOUT2_MARK, VIO_HDR_MARK, D25_MARK, ED25_MARK, | ||
295 | LCDD18_MARK, DREQ2_MARK, PORT210_MSIOF0L_SS1_MARK, D26_MARK, ED26_MARK, | ||
296 | LCDD19_MARK, PORT211_MSIOF0L_SS2_MARK, D27_MARK, ED27_MARK, | ||
297 | LCDD20_MARK, TS_SPSYNC1_MARK, MSIOF0L_MCK0_MARK, D28_MARK, ED28_MARK, | ||
298 | LCDD21_MARK, TS_SDAT1_MARK, MSIOF0L_MCK1_MARK, D29_MARK, ED29_MARK, | ||
299 | LCDD22_MARK, TS_SDEN1_MARK, MSIOF0L_RSCK_MARK, D30_MARK, ED30_MARK, | ||
300 | LCDD23_MARK, TS_SCK1_MARK, MSIOF0L_RSYNC_MARK, D31_MARK, ED31_MARK, | ||
301 | LCDDCK_MARK, LCDWR_MARK, PORT216_KEYOUT3_MARK, VIO_CLKR_MARK, | ||
302 | LCDRD_MARK, DACK2_MARK, MSIOF0L_TSYNC_MARK, | ||
303 | LCDHSYN_MARK, LCDCS_MARK, LCDCS2_MARK, DACK3_MARK, | ||
304 | PORT218_VIO_CKOR_MARK, PORT218_KEYOUT4_MARK, | ||
305 | LCDDISP_MARK, LCDRS_MARK, DREQ3_MARK, MSIOF0L_TSCK_MARK, | ||
306 | LCDVSYN_MARK, LCDVSYN2_MARK, PORT220_KEYOUT5_MARK, | ||
307 | LCDLCLK_MARK, DREQ1_MARK, PWEN_MARK, MSIOF0L_RXD_MARK, | ||
308 | LCDDON_MARK, LCDDON2_MARK, DACK1_MARK, OVCN_MARK, MSIOF0L_TXD_MARK, | ||
309 | SCIFA1_TXD_MARK, OVCN2_MARK, | ||
310 | EXTLP_MARK, SCIFA1_SCK_MARK, USBTERM_MARK, PORT226_VIO_CKO2_MARK, | ||
311 | SCIFA1_RTS_MARK, IDIN_MARK, | ||
312 | SCIFA1_RXD_MARK, | ||
313 | SCIFA1_CTS_MARK, MFG1_IN1_MARK, | ||
314 | MSIOF1_TXD_MARK, SCIFA2_TXD2_MARK, PORT230_FSIAOMC_MARK, | ||
315 | MSIOF1_TSYNC_MARK, SCIFA2_CTS2_MARK, PORT231_FSIAOLR_MARK, | ||
316 | MSIOF1_TSCK_MARK, SCIFA2_SCK2_MARK, PORT232_FSIAOBT_MARK, | ||
317 | MSIOF1_RXD_MARK, SCIFA2_RXD2_MARK, GPS_VCOTRIG_MARK, | ||
318 | PORT233_FSIACK_MARK, | ||
319 | MSIOF1_RSCK_MARK, SCIFA2_RTS2_MARK, PORT234_FSIAOSLD_MARK, | ||
320 | MSIOF1_RSYNC_MARK, OPORT0_MARK, MFG1_IN2_MARK, PORT235_FSIAILR_MARK, | ||
321 | MSIOF1_MCK0_MARK, I2C_SDA2_MARK, PORT236_FSIAIBT_MARK, | ||
322 | MSIOF1_MCK1_MARK, I2C_SCL2_MARK, PORT237_FSIAISLD_MARK, | ||
323 | MSIOF1_SS1_MARK, EDBGREQ3_MARK, | ||
324 | |||
325 | /* 55-5 */ | ||
326 | MSIOF1_SS2_MARK, | ||
327 | SCIFA6_TXD_MARK, | ||
328 | PORT241_IRDA_OUT_MARK, PORT241_IROUT_MARK, MFG4_OUT1_MARK, | ||
329 | TPU4TO0_MARK, | ||
330 | PORT242_IRDA_IN_MARK, MFG4_IN2_MARK, | ||
331 | PORT243_IRDA_FIRSEL_MARK, PORT243_VIO_CKO2_MARK, | ||
332 | PORT244_SCIFA5_CTS_MARK, MFG2_IN1_MARK, PORT244_SCIFB_CTS_MARK, | ||
333 | PORT244_MSIOF2_RXD_MARK, | ||
334 | PORT245_SCIFA5_RTS_MARK, MFG2_IN2_MARK, PORT245_SCIFB_RTS_MARK, | ||
335 | PORT245_MSIOF2_TXD_MARK, | ||
336 | PORT246_SCIFA5_RXD_MARK, MFG1_OUT1_MARK, PORT246_SCIFB_RXD_MARK, | ||
337 | TPU1TO0_MARK, | ||
338 | PORT247_SCIFA5_TXD_MARK, MFG3_OUT2_MARK, PORT247_SCIFB_TXD_MARK, | ||
339 | TPU3TO1_MARK, | ||
340 | PORT248_SCIFA5_SCK_MARK, MFG2_OUT1_MARK, PORT248_SCIFB_SCK_MARK, | ||
341 | TPU2TO0_MARK, | ||
342 | PORT248_MSIOF2_TSCK_MARK, | ||
343 | PORT249_IROUT_MARK, MFG4_IN1_MARK, PORT249_MSIOF2_TSYNC_MARK, | ||
344 | SDHICLK0_MARK, TCK2_SWCLK_MC0_MARK, | ||
345 | SDHICD0_MARK, | ||
346 | SDHID0_0_MARK, TMS2_SWDIO_MC0_MARK, | ||
347 | SDHID0_1_MARK, TDO2_SWO0_MC0_MARK, | ||
348 | SDHID0_2_MARK, TDI2_MARK, | ||
349 | SDHID0_3_MARK, RTCK2_SWO1_MC0_MARK, | ||
350 | SDHICMD0_MARK, TRST2_MARK, | ||
351 | SDHIWP0_MARK, EDBGREQ2_MARK, | ||
352 | SDHICLK1_MARK, TCK3_SWCLK_MC1_MARK, | ||
353 | SDHID1_0_MARK, M11_SLCD_SO2_MARK, TS_SPSYNC2_MARK, | ||
354 | TMS3_SWDIO_MC1_MARK, | ||
355 | SDHID1_1_MARK, M9_SLCD_A02_MARK, TS_SDAT2_MARK, TDO3_SWO0_MC1_MARK, | ||
356 | SDHID1_2_MARK, M10_SLCD_CK2_MARK, TS_SDEN2_MARK, TDI3_MARK, | ||
357 | SDHID1_3_MARK, M12_SLCD_CE2_MARK, TS_SCK2_MARK, RTCK3_SWO1_MC1_MARK, | ||
358 | SDHICMD1_MARK, TRST3_MARK, | ||
359 | RESETOUTS_MARK, | ||
360 | PINMUX_MARK_END, | ||
361 | }; | ||
362 | |||
363 | #define PORT_DATA_I(nr) \ | ||
364 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, PORT##nr##_IN) | ||
365 | |||
366 | #define PORT_DATA_I_PD(nr) \ | ||
367 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \ | ||
368 | PORT##nr##_IN, PORT##nr##_IN_PD) | ||
369 | |||
370 | #define PORT_DATA_I_PU(nr) \ | ||
371 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \ | ||
372 | PORT##nr##_IN, PORT##nr##_IN_PU) | ||
373 | |||
374 | #define PORT_DATA_I_PU_PD(nr) \ | ||
375 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \ | ||
376 | PORT##nr##_IN, PORT##nr##_IN_PD, \ | ||
377 | PORT##nr##_IN_PU) | ||
378 | |||
379 | #define PORT_DATA_O(nr) \ | ||
380 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \ | ||
381 | PORT##nr##_OUT) | ||
382 | |||
383 | #define PORT_DATA_IO(nr) \ | ||
384 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \ | ||
385 | PORT##nr##_OUT, PORT##nr##_IN) | ||
386 | |||
387 | #define PORT_DATA_IO_PD(nr) \ | ||
388 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \ | ||
389 | PORT##nr##_OUT, PORT##nr##_IN, \ | ||
390 | PORT##nr##_IN_PD) | ||
391 | |||
392 | #define PORT_DATA_IO_PU(nr) \ | ||
393 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \ | ||
394 | PORT##nr##_OUT, PORT##nr##_IN, \ | ||
395 | PORT##nr##_IN_PU) | ||
396 | |||
397 | #define PORT_DATA_IO_PU_PD(nr) \ | ||
398 | PINMUX_DATA(PORT##nr##_DATA, PORT##nr##_FN0, \ | ||
399 | PORT##nr##_OUT, PORT##nr##_IN, \ | ||
400 | PORT##nr##_IN_PD, PORT##nr##_IN_PU) | ||
401 | |||
402 | static pinmux_enum_t pinmux_data[] = { | ||
403 | /* specify valid pin states for each pin in GPIO mode */ | ||
404 | /* 55-1 (GPIO) */ | ||
405 | PORT_DATA_I_PD(0), PORT_DATA_I_PU(1), | ||
406 | PORT_DATA_I_PU(2), PORT_DATA_I_PU(3), | ||
407 | PORT_DATA_I_PU(4), PORT_DATA_I_PU(5), | ||
408 | PORT_DATA_I_PU(6), PORT_DATA_I_PU(7), | ||
409 | PORT_DATA_I_PU(8), PORT_DATA_I_PU(9), | ||
410 | PORT_DATA_I_PU(10), PORT_DATA_I_PU(11), | ||
411 | PORT_DATA_IO_PU(12), PORT_DATA_IO_PU(13), | ||
412 | PORT_DATA_IO_PU_PD(14), PORT_DATA_IO_PU_PD(15), | ||
413 | PORT_DATA_O(16), PORT_DATA_IO(17), | ||
414 | PORT_DATA_O(18), PORT_DATA_O(19), | ||
415 | PORT_DATA_O(20), PORT_DATA_O(21), | ||
416 | PORT_DATA_O(22), PORT_DATA_O(23), | ||
417 | PORT_DATA_O(24), PORT_DATA_I_PD(25), | ||
418 | PORT_DATA_I_PD(26), PORT_DATA_O(27), | ||
419 | PORT_DATA_O(28), PORT_DATA_O(29), | ||
420 | PORT_DATA_IO(30), PORT_DATA_IO_PU(31), | ||
421 | PORT_DATA_IO_PD(32), PORT_DATA_I_PU(33), | ||
422 | PORT_DATA_IO_PD(34), PORT_DATA_I_PU_PD(35), | ||
423 | PORT_DATA_O(36), PORT_DATA_IO(37), | ||
424 | |||
425 | /* 55-2 (GPIO) */ | ||
426 | PORT_DATA_O(38), PORT_DATA_I_PU(39), | ||
427 | PORT_DATA_I_PU_PD(40), PORT_DATA_O(41), | ||
428 | PORT_DATA_IO_PD(42), PORT_DATA_IO_PD(43), | ||
429 | PORT_DATA_IO_PD(44), PORT_DATA_I_PD(45), | ||
430 | PORT_DATA_I_PD(46), PORT_DATA_I_PD(47), | ||
431 | PORT_DATA_I_PD(48), PORT_DATA_IO_PU_PD(49), | ||
432 | PORT_DATA_IO_PD(50), PORT_DATA_IO_PD(51), | ||
433 | PORT_DATA_O(52), PORT_DATA_IO_PU_PD(53), | ||
434 | PORT_DATA_IO_PU_PD(54), PORT_DATA_IO_PD(55), | ||
435 | PORT_DATA_I_PU_PD(56), PORT_DATA_IO(57), | ||
436 | PORT_DATA_IO(58), PORT_DATA_IO(59), | ||
437 | PORT_DATA_IO(60), PORT_DATA_IO(61), | ||
438 | PORT_DATA_IO_PD(62), PORT_DATA_IO_PD(63), | ||
439 | PORT_DATA_IO_PD(64), PORT_DATA_IO_PD(65), | ||
440 | PORT_DATA_IO_PU_PD(66), PORT_DATA_IO_PU_PD(67), | ||
441 | PORT_DATA_IO_PU_PD(68), PORT_DATA_IO_PU_PD(69), | ||
442 | PORT_DATA_IO_PU_PD(70), PORT_DATA_IO_PU_PD(71), | ||
443 | PORT_DATA_IO_PU_PD(72), PORT_DATA_I_PU_PD(73), | ||
444 | PORT_DATA_IO_PU(74), PORT_DATA_IO_PU(75), | ||
445 | PORT_DATA_IO_PU(76), PORT_DATA_IO_PU(77), | ||
446 | PORT_DATA_IO_PU(78), PORT_DATA_IO_PU(79), | ||
447 | PORT_DATA_IO_PU(80), PORT_DATA_IO_PU(81), | ||
448 | PORT_DATA_IO_PU(82), PORT_DATA_IO_PU(83), | ||
449 | PORT_DATA_IO_PU(84), PORT_DATA_IO_PU(85), | ||
450 | PORT_DATA_IO_PU(86), PORT_DATA_IO_PU(87), | ||
451 | PORT_DATA_IO_PU(88), PORT_DATA_IO_PU(89), | ||
452 | PORT_DATA_O(90), PORT_DATA_IO_PU(91), | ||
453 | PORT_DATA_O(92), | ||
454 | |||
455 | /* 55-3 (GPIO) */ | ||
456 | PORT_DATA_IO_PU(93), | ||
457 | PORT_DATA_O(94), | ||
458 | PORT_DATA_I_PU_PD(95), | ||
459 | PORT_DATA_IO(96), PORT_DATA_IO(97), | ||
460 | PORT_DATA_IO(98), PORT_DATA_I_PU(99), | ||
461 | PORT_DATA_O(100), PORT_DATA_O(101), | ||
462 | PORT_DATA_I_PU(102), PORT_DATA_IO_PD(103), | ||
463 | PORT_DATA_I_PD(104), PORT_DATA_I_PD(105), | ||
464 | PORT_DATA_I_PD(106), PORT_DATA_I_PD(107), | ||
465 | PORT_DATA_I_PD(108), PORT_DATA_IO_PD(109), | ||
466 | PORT_DATA_IO_PD(110), PORT_DATA_I_PD(111), | ||
467 | PORT_DATA_IO_PD(112), PORT_DATA_IO_PD(113), | ||
468 | PORT_DATA_IO_PD(114), PORT_DATA_I_PD(115), | ||
469 | PORT_DATA_I_PD(116), PORT_DATA_IO_PD(117), | ||
470 | PORT_DATA_I_PD(118), PORT_DATA_IO_PD(128), | ||
471 | PORT_DATA_IO_PD(129), PORT_DATA_IO_PD(130), | ||
472 | PORT_DATA_IO_PD(131), PORT_DATA_IO_PD(132), | ||
473 | PORT_DATA_IO_PD(133), PORT_DATA_IO_PU_PD(134), | ||
474 | PORT_DATA_IO_PU_PD(135), PORT_DATA_IO_PU_PD(136), | ||
475 | PORT_DATA_IO_PU_PD(137), PORT_DATA_IO_PD(138), | ||
476 | PORT_DATA_IO_PD(139), PORT_DATA_IO_PD(140), | ||
477 | PORT_DATA_IO_PD(141), PORT_DATA_IO_PD(142), | ||
478 | PORT_DATA_IO_PD(143), PORT_DATA_IO_PU_PD(144), | ||
479 | PORT_DATA_IO_PD(145), PORT_DATA_IO_PU_PD(146), | ||
480 | PORT_DATA_IO_PU_PD(147), PORT_DATA_IO_PU_PD(148), | ||
481 | PORT_DATA_IO_PU_PD(149), PORT_DATA_I_PD(150), | ||
482 | PORT_DATA_IO_PU_PD(151), PORT_DATA_IO_PD(152), | ||
483 | PORT_DATA_IO_PD(153), PORT_DATA_IO_PD(154), | ||
484 | PORT_DATA_I_PD(155), PORT_DATA_IO_PU_PD(156), | ||
485 | PORT_DATA_I_PD(157), PORT_DATA_IO_PD(158), | ||
486 | |||
487 | /* 55-4 (GPIO) */ | ||
488 | PORT_DATA_IO_PU_PD(159), PORT_DATA_IO_PU_PD(160), | ||
489 | PORT_DATA_I_PU_PD(161), PORT_DATA_I_PU_PD(162), | ||
490 | PORT_DATA_IO_PU_PD(163), PORT_DATA_I_PU_PD(164), | ||
491 | PORT_DATA_IO_PD(192), PORT_DATA_IO_PD(193), | ||
492 | PORT_DATA_IO_PD(194), PORT_DATA_IO_PD(195), | ||
493 | PORT_DATA_IO_PD(196), PORT_DATA_IO_PD(197), | ||
494 | PORT_DATA_IO_PD(198), PORT_DATA_IO_PD(199), | ||
495 | PORT_DATA_IO_PU_PD(200), PORT_DATA_IO_PU_PD(201), | ||
496 | PORT_DATA_IO_PU_PD(202), PORT_DATA_IO_PU_PD(203), | ||
497 | PORT_DATA_IO_PU_PD(204), PORT_DATA_IO_PU_PD(205), | ||
498 | PORT_DATA_IO_PU_PD(206), PORT_DATA_IO_PD(207), | ||
499 | PORT_DATA_IO_PD(208), PORT_DATA_IO_PD(209), | ||
500 | PORT_DATA_IO_PD(210), PORT_DATA_IO_PD(211), | ||
501 | PORT_DATA_IO_PD(212), PORT_DATA_IO_PD(213), | ||
502 | PORT_DATA_IO_PD(214), PORT_DATA_IO_PD(215), | ||
503 | PORT_DATA_IO_PD(216), PORT_DATA_IO_PD(217), | ||
504 | PORT_DATA_O(218), PORT_DATA_IO_PD(219), | ||
505 | PORT_DATA_IO_PD(220), PORT_DATA_IO_PD(221), | ||
506 | PORT_DATA_IO_PU_PD(222), | ||
507 | PORT_DATA_I_PU_PD(223), PORT_DATA_I_PU_PD(224), | ||
508 | PORT_DATA_IO_PU_PD(225), PORT_DATA_O(226), | ||
509 | PORT_DATA_IO_PU_PD(227), PORT_DATA_I_PD(228), | ||
510 | PORT_DATA_I_PD(229), PORT_DATA_IO(230), | ||
511 | PORT_DATA_IO_PD(231), PORT_DATA_IO_PU_PD(232), | ||
512 | PORT_DATA_I_PD(233), PORT_DATA_IO_PU_PD(234), | ||
513 | PORT_DATA_IO_PU_PD(235), PORT_DATA_IO_PU_PD(236), | ||
514 | PORT_DATA_IO_PD(237), PORT_DATA_IO_PU_PD(238), | ||
515 | |||
516 | /* 55-5 (GPIO) */ | ||
517 | PORT_DATA_IO_PU_PD(239), PORT_DATA_IO_PU_PD(240), | ||
518 | PORT_DATA_O(241), PORT_DATA_I_PD(242), | ||
519 | PORT_DATA_IO_PU_PD(243), PORT_DATA_IO_PU_PD(244), | ||
520 | PORT_DATA_IO_PU_PD(245), PORT_DATA_IO_PU_PD(246), | ||
521 | PORT_DATA_IO_PU_PD(247), PORT_DATA_IO_PU_PD(248), | ||
522 | PORT_DATA_IO_PU_PD(249), PORT_DATA_IO_PD(250), | ||
523 | PORT_DATA_IO_PU_PD(251), PORT_DATA_IO_PU_PD(252), | ||
524 | PORT_DATA_IO_PU_PD(253), PORT_DATA_IO_PU_PD(254), | ||
525 | PORT_DATA_IO_PU_PD(255), PORT_DATA_IO_PU_PD(256), | ||
526 | PORT_DATA_IO_PU_PD(257), PORT_DATA_IO_PD(258), | ||
527 | PORT_DATA_IO_PU_PD(259), PORT_DATA_IO_PU_PD(260), | ||
528 | PORT_DATA_IO_PU_PD(261), PORT_DATA_IO_PU_PD(262), | ||
529 | PORT_DATA_IO_PU_PD(263), | ||
530 | |||
531 | /* Special Pull-up / Pull-down Functions */ | ||
532 | PINMUX_DATA(PORT66_KEYIN0_PU_MARK, MSELBCR_MSEL17_0, MSELBCR_MSEL16_0, | ||
533 | PORT66_FN2, PORT66_IN_PU), | ||
534 | PINMUX_DATA(PORT67_KEYIN1_PU_MARK, MSELBCR_MSEL17_0, MSELBCR_MSEL16_0, | ||
535 | PORT67_FN2, PORT67_IN_PU), | ||
536 | PINMUX_DATA(PORT68_KEYIN2_PU_MARK, MSELBCR_MSEL17_0, MSELBCR_MSEL16_0, | ||
537 | PORT68_FN2, PORT68_IN_PU), | ||
538 | PINMUX_DATA(PORT69_KEYIN3_PU_MARK, MSELBCR_MSEL17_0, MSELBCR_MSEL16_0, | ||
539 | PORT69_FN2, PORT69_IN_PU), | ||
540 | PINMUX_DATA(PORT70_KEYIN4_PU_MARK, MSELBCR_MSEL17_0, MSELBCR_MSEL16_0, | ||
541 | PORT70_FN2, PORT70_IN_PU), | ||
542 | PINMUX_DATA(PORT71_KEYIN5_PU_MARK, MSELBCR_MSEL17_0, MSELBCR_MSEL16_0, | ||
543 | PORT71_FN2, PORT71_IN_PU), | ||
544 | PINMUX_DATA(PORT72_KEYIN6_PU_MARK, MSELBCR_MSEL17_0, MSELBCR_MSEL16_0, | ||
545 | PORT72_FN2, PORT72_IN_PU), | ||
546 | |||
547 | |||
548 | /* 55-1 (FN) */ | ||
549 | PINMUX_DATA(VBUS_0_MARK, PORT0_FN1), | ||
550 | PINMUX_DATA(CPORT0_MARK, PORT1_FN1), | ||
551 | PINMUX_DATA(CPORT1_MARK, PORT2_FN1), | ||
552 | PINMUX_DATA(CPORT2_MARK, PORT3_FN1), | ||
553 | PINMUX_DATA(CPORT3_MARK, PORT4_FN1), | ||
554 | PINMUX_DATA(CPORT4_MARK, PORT5_FN1), | ||
555 | PINMUX_DATA(CPORT5_MARK, PORT6_FN1), | ||
556 | PINMUX_DATA(CPORT6_MARK, PORT7_FN1), | ||
557 | PINMUX_DATA(CPORT7_MARK, PORT8_FN1), | ||
558 | PINMUX_DATA(CPORT8_MARK, PORT9_FN1), | ||
559 | PINMUX_DATA(CPORT9_MARK, PORT10_FN1), | ||
560 | PINMUX_DATA(CPORT10_MARK, PORT11_FN1), | ||
561 | PINMUX_DATA(CPORT11_MARK, PORT12_FN1), | ||
562 | PINMUX_DATA(SIN2_MARK, PORT12_FN2), | ||
563 | PINMUX_DATA(CPORT12_MARK, PORT13_FN1), | ||
564 | PINMUX_DATA(XCTS2_MARK, PORT13_FN2), | ||
565 | PINMUX_DATA(CPORT13_MARK, PORT14_FN1), | ||
566 | PINMUX_DATA(RFSPO4_MARK, PORT14_FN2), | ||
567 | PINMUX_DATA(CPORT14_MARK, PORT15_FN1), | ||
568 | PINMUX_DATA(RFSPO5_MARK, PORT15_FN2), | ||
569 | PINMUX_DATA(CPORT15_MARK, PORT16_FN1), | ||
570 | PINMUX_DATA(SCIFA0_SCK_MARK, PORT16_FN2), | ||
571 | PINMUX_DATA(GPS_AGC2_MARK, PORT16_FN3), | ||
572 | PINMUX_DATA(CPORT16_MARK, PORT17_FN1), | ||
573 | PINMUX_DATA(SCIFA0_TXD_MARK, PORT17_FN2), | ||
574 | PINMUX_DATA(GPS_AGC3_MARK, PORT17_FN3), | ||
575 | PINMUX_DATA(CPORT17_IC_OE_MARK, PORT18_FN1), | ||
576 | PINMUX_DATA(SOUT2_MARK, PORT18_FN2), | ||
577 | PINMUX_DATA(CPORT18_MARK, PORT19_FN1), | ||
578 | PINMUX_DATA(XRTS2_MARK, PORT19_FN2), | ||
579 | PINMUX_DATA(PORT19_VIO_CKO2_MARK, PORT19_FN3), | ||
580 | PINMUX_DATA(CPORT19_MPORT1_MARK, PORT20_FN1), | ||
581 | PINMUX_DATA(CPORT20_MARK, PORT21_FN1), | ||
582 | PINMUX_DATA(RFSPO6_MARK, PORT21_FN2), | ||
583 | PINMUX_DATA(CPORT21_MARK, PORT22_FN1), | ||
584 | PINMUX_DATA(STATUS0_MARK, PORT22_FN2), | ||
585 | PINMUX_DATA(CPORT22_MARK, PORT23_FN1), | ||
586 | PINMUX_DATA(STATUS1_MARK, PORT23_FN2), | ||
587 | PINMUX_DATA(CPORT23_MARK, PORT24_FN1), | ||
588 | PINMUX_DATA(STATUS2_MARK, PORT24_FN2), | ||
589 | PINMUX_DATA(RFSPO7_MARK, PORT24_FN3), | ||
590 | PINMUX_DATA(B_SYNLD1_MARK, PORT25_FN1), | ||
591 | PINMUX_DATA(B_SYNLD2_MARK, PORT26_FN1), | ||
592 | PINMUX_DATA(SYSENMSK_MARK, PORT26_FN2), | ||
593 | PINMUX_DATA(XMAINPS_MARK, PORT27_FN1), | ||
594 | PINMUX_DATA(XDIVPS_MARK, PORT28_FN1), | ||
595 | PINMUX_DATA(XIDRST_MARK, PORT29_FN1), | ||
596 | PINMUX_DATA(IDCLK_MARK, PORT30_FN1), | ||
597 | PINMUX_DATA(IC_DP_MARK, PORT30_FN2), | ||
598 | PINMUX_DATA(IDIO_MARK, PORT31_FN1), | ||
599 | PINMUX_DATA(IC_DM_MARK, PORT31_FN2), | ||
600 | PINMUX_DATA(SOUT1_MARK, PORT32_FN1), | ||
601 | PINMUX_DATA(SCIFA4_TXD_MARK, PORT32_FN2), | ||
602 | PINMUX_DATA(M02_BERDAT_MARK, PORT32_FN3), | ||
603 | PINMUX_DATA(SIN1_MARK, PORT33_FN1), | ||
604 | PINMUX_DATA(SCIFA4_RXD_MARK, PORT33_FN2), | ||
605 | PINMUX_DATA(XWUP_MARK, PORT33_FN3), | ||
606 | PINMUX_DATA(XRTS1_MARK, PORT34_FN1), | ||
607 | PINMUX_DATA(SCIFA4_RTS_MARK, PORT34_FN2), | ||
608 | PINMUX_DATA(M03_BERCLK_MARK, PORT34_FN3), | ||
609 | PINMUX_DATA(XCTS1_MARK, PORT35_FN1), | ||
610 | PINMUX_DATA(SCIFA4_CTS_MARK, PORT35_FN2), | ||
611 | PINMUX_DATA(PCMCLKO_MARK, PORT36_FN1), | ||
612 | PINMUX_DATA(SYNC8KO_MARK, PORT37_FN1), | ||
613 | |||
614 | /* 55-2 (FN) */ | ||
615 | PINMUX_DATA(DNPCM_A_MARK, PORT38_FN1), | ||
616 | PINMUX_DATA(UPPCM_A_MARK, PORT39_FN1), | ||
617 | PINMUX_DATA(VACK_MARK, PORT40_FN1), | ||
618 | PINMUX_DATA(XTALB1L_MARK, PORT41_FN1), | ||
619 | PINMUX_DATA(GPS_AGC1_MARK, PORT42_FN1), | ||
620 | PINMUX_DATA(SCIFA0_RTS_MARK, PORT42_FN2), | ||
621 | PINMUX_DATA(GPS_AGC4_MARK, PORT43_FN1), | ||
622 | PINMUX_DATA(SCIFA0_RXD_MARK, PORT43_FN2), | ||
623 | PINMUX_DATA(GPS_PWRDOWN_MARK, PORT44_FN1), | ||
624 | PINMUX_DATA(SCIFA0_CTS_MARK, PORT44_FN2), | ||
625 | PINMUX_DATA(GPS_IM_MARK, PORT45_FN1), | ||
626 | PINMUX_DATA(GPS_IS_MARK, PORT46_FN1), | ||
627 | PINMUX_DATA(GPS_QM_MARK, PORT47_FN1), | ||
628 | PINMUX_DATA(GPS_QS_MARK, PORT48_FN1), | ||
629 | PINMUX_DATA(FMSOCK_MARK, PORT49_FN1), | ||
630 | PINMUX_DATA(PORT49_IRDA_OUT_MARK, PORT49_FN2), | ||
631 | PINMUX_DATA(PORT49_IROUT_MARK, PORT49_FN3), | ||
632 | PINMUX_DATA(FMSOOLR_MARK, PORT50_FN1), | ||
633 | PINMUX_DATA(BBIF2_TSYNC2_MARK, PORT50_FN2), | ||
634 | PINMUX_DATA(TPU2TO2_MARK, PORT50_FN3), | ||
635 | PINMUX_DATA(IPORT3_MARK, PORT50_FN4), | ||
636 | PINMUX_DATA(FMSIOLR_MARK, PORT50_FN5), | ||
637 | PINMUX_DATA(FMSOOBT_MARK, PORT51_FN1), | ||
638 | PINMUX_DATA(BBIF2_TSCK2_MARK, PORT51_FN2), | ||
639 | PINMUX_DATA(TPU2TO3_MARK, PORT51_FN3), | ||
640 | PINMUX_DATA(OPORT1_MARK, PORT51_FN4), | ||
641 | PINMUX_DATA(FMSIOBT_MARK, PORT51_FN5), | ||
642 | PINMUX_DATA(FMSOSLD_MARK, PORT52_FN1), | ||
643 | PINMUX_DATA(BBIF2_TXD2_MARK, PORT52_FN2), | ||
644 | PINMUX_DATA(OPORT2_MARK, PORT52_FN3), | ||
645 | PINMUX_DATA(FMSOILR_MARK, PORT53_FN1), | ||
646 | PINMUX_DATA(PORT53_IRDA_IN_MARK, PORT53_FN2), | ||
647 | PINMUX_DATA(TPU3TO3_MARK, PORT53_FN3), | ||
648 | PINMUX_DATA(OPORT3_MARK, PORT53_FN4), | ||
649 | PINMUX_DATA(FMSIILR_MARK, PORT53_FN5), | ||
650 | PINMUX_DATA(FMSOIBT_MARK, PORT54_FN1), | ||
651 | PINMUX_DATA(PORT54_IRDA_FIRSEL_MARK, PORT54_FN2), | ||
652 | PINMUX_DATA(TPU3TO2_MARK, PORT54_FN3), | ||
653 | PINMUX_DATA(FMSIIBT_MARK, PORT54_FN4), | ||
654 | PINMUX_DATA(FMSISLD_MARK, PORT55_FN1), | ||
655 | PINMUX_DATA(MFG0_OUT1_MARK, PORT55_FN2), | ||
656 | PINMUX_DATA(TPU0TO0_MARK, PORT55_FN3), | ||
657 | PINMUX_DATA(A0_EA0_MARK, PORT57_FN1), | ||
658 | PINMUX_DATA(BS_MARK, PORT57_FN2), | ||
659 | PINMUX_DATA(A12_EA12_MARK, PORT58_FN1), | ||
660 | PINMUX_DATA(PORT58_VIO_CKOR_MARK, PORT58_FN2), | ||
661 | PINMUX_DATA(TPU4TO2_MARK, PORT58_FN3), | ||
662 | PINMUX_DATA(A13_EA13_MARK, PORT59_FN1), | ||
663 | PINMUX_DATA(PORT59_IROUT_MARK, PORT59_FN2), | ||
664 | PINMUX_DATA(MFG0_OUT2_MARK, PORT59_FN3), | ||
665 | PINMUX_DATA(TPU0TO1_MARK, PORT59_FN4), | ||
666 | PINMUX_DATA(A14_EA14_MARK, PORT60_FN1), | ||
667 | PINMUX_DATA(PORT60_KEYOUT5_MARK, PORT60_FN2), | ||
668 | PINMUX_DATA(A15_EA15_MARK, PORT61_FN1), | ||
669 | PINMUX_DATA(PORT61_KEYOUT4_MARK, PORT61_FN2), | ||
670 | PINMUX_DATA(A16_EA16_MARK, PORT62_FN1), | ||
671 | PINMUX_DATA(PORT62_KEYOUT3_MARK, PORT62_FN2), | ||
672 | PINMUX_DATA(MSIOF0_SS1_MARK, PORT62_FN3), | ||
673 | PINMUX_DATA(A17_EA17_MARK, PORT63_FN1), | ||
674 | PINMUX_DATA(PORT63_KEYOUT2_MARK, PORT63_FN2), | ||
675 | PINMUX_DATA(MSIOF0_TSYNC_MARK, PORT63_FN3), | ||
676 | PINMUX_DATA(A18_EA18_MARK, PORT64_FN1), | ||
677 | PINMUX_DATA(PORT64_KEYOUT1_MARK, PORT64_FN2), | ||
678 | PINMUX_DATA(MSIOF0_TSCK_MARK, PORT64_FN3), | ||
679 | PINMUX_DATA(A19_EA19_MARK, PORT65_FN1), | ||
680 | PINMUX_DATA(PORT65_KEYOUT0_MARK, PORT65_FN2), | ||
681 | PINMUX_DATA(MSIOF0_TXD_MARK, PORT65_FN3), | ||
682 | PINMUX_DATA(A20_EA20_MARK, PORT66_FN1), | ||
683 | PINMUX_DATA(PORT66_KEYIN0_MARK, PORT66_FN2), | ||
684 | PINMUX_DATA(MSIOF0_RSCK_MARK, PORT66_FN3), | ||
685 | PINMUX_DATA(A21_EA21_MARK, PORT67_FN1), | ||
686 | PINMUX_DATA(PORT67_KEYIN1_MARK, PORT67_FN2), | ||
687 | PINMUX_DATA(MSIOF0_RSYNC_MARK, PORT67_FN3), | ||
688 | PINMUX_DATA(A22_EA22_MARK, PORT68_FN1), | ||
689 | PINMUX_DATA(PORT68_KEYIN2_MARK, PORT68_FN2), | ||
690 | PINMUX_DATA(MSIOF0_MCK0_MARK, PORT68_FN3), | ||
691 | PINMUX_DATA(A23_EA23_MARK, PORT69_FN1), | ||
692 | PINMUX_DATA(PORT69_KEYIN3_MARK, PORT69_FN2), | ||
693 | PINMUX_DATA(MSIOF0_MCK1_MARK, PORT69_FN3), | ||
694 | PINMUX_DATA(A24_EA24_MARK, PORT70_FN1), | ||
695 | PINMUX_DATA(PORT70_KEYIN4_MARK, PORT70_FN2), | ||
696 | PINMUX_DATA(MSIOF0_RXD_MARK, PORT70_FN3), | ||
697 | PINMUX_DATA(A25_EA25_MARK, PORT71_FN1), | ||
698 | PINMUX_DATA(PORT71_KEYIN5_MARK, PORT71_FN2), | ||
699 | PINMUX_DATA(MSIOF0_SS2_MARK, PORT71_FN3), | ||
700 | PINMUX_DATA(A26_MARK, PORT72_FN1), | ||
701 | PINMUX_DATA(PORT72_KEYIN6_MARK, PORT72_FN2), | ||
702 | PINMUX_DATA(D0_ED0_NAF0_MARK, PORT74_FN1), | ||
703 | PINMUX_DATA(D1_ED1_NAF1_MARK, PORT75_FN1), | ||
704 | PINMUX_DATA(D2_ED2_NAF2_MARK, PORT76_FN1), | ||
705 | PINMUX_DATA(D3_ED3_NAF3_MARK, PORT77_FN1), | ||
706 | PINMUX_DATA(D4_ED4_NAF4_MARK, PORT78_FN1), | ||
707 | PINMUX_DATA(D5_ED5_NAF5_MARK, PORT79_FN1), | ||
708 | PINMUX_DATA(D6_ED6_NAF6_MARK, PORT80_FN1), | ||
709 | PINMUX_DATA(D7_ED7_NAF7_MARK, PORT81_FN1), | ||
710 | PINMUX_DATA(D8_ED8_NAF8_MARK, PORT82_FN1), | ||
711 | PINMUX_DATA(D9_ED9_NAF9_MARK, PORT83_FN1), | ||
712 | PINMUX_DATA(D10_ED10_NAF10_MARK, PORT84_FN1), | ||
713 | PINMUX_DATA(D11_ED11_NAF11_MARK, PORT85_FN1), | ||
714 | PINMUX_DATA(D12_ED12_NAF12_MARK, PORT86_FN1), | ||
715 | PINMUX_DATA(D13_ED13_NAF13_MARK, PORT87_FN1), | ||
716 | PINMUX_DATA(D14_ED14_NAF14_MARK, PORT88_FN1), | ||
717 | PINMUX_DATA(D15_ED15_NAF15_MARK, PORT89_FN1), | ||
718 | PINMUX_DATA(CS4_MARK, PORT90_FN1), | ||
719 | PINMUX_DATA(CS5A_MARK, PORT91_FN1), | ||
720 | PINMUX_DATA(FMSICK_MARK, PORT91_FN2), | ||
721 | PINMUX_DATA(CS5B_MARK, PORT92_FN1), | ||
722 | PINMUX_DATA(FCE1_MARK, PORT92_FN2), | ||
723 | |||
724 | /* 55-3 (FN) */ | ||
725 | PINMUX_DATA(CS6B_MARK, PORT93_FN1), | ||
726 | PINMUX_DATA(XCS2_MARK, PORT93_FN2), | ||
727 | PINMUX_DATA(CS6A_MARK, PORT93_FN3), | ||
728 | PINMUX_DATA(DACK0_MARK, PORT93_FN4), | ||
729 | PINMUX_DATA(FCE0_MARK, PORT94_FN1), | ||
730 | PINMUX_DATA(WAIT_MARK, PORT95_FN1), | ||
731 | PINMUX_DATA(DREQ0_MARK, PORT95_FN2), | ||
732 | PINMUX_DATA(RD_XRD_MARK, PORT96_FN1), | ||
733 | PINMUX_DATA(WE0_XWR0_FWE_MARK, PORT97_FN1), | ||
734 | PINMUX_DATA(WE1_XWR1_MARK, PORT98_FN1), | ||
735 | PINMUX_DATA(FRB_MARK, PORT99_FN1), | ||
736 | PINMUX_DATA(CKO_MARK, PORT100_FN1), | ||
737 | PINMUX_DATA(NBRSTOUT_MARK, PORT101_FN1), | ||
738 | PINMUX_DATA(NBRST_MARK, PORT102_FN1), | ||
739 | PINMUX_DATA(GPS_EPPSIN_MARK, PORT106_FN1), | ||
740 | PINMUX_DATA(LATCHPULSE_MARK, PORT110_FN1), | ||
741 | PINMUX_DATA(LTESIGNAL_MARK, PORT111_FN1), | ||
742 | PINMUX_DATA(LEGACYSTATE_MARK, PORT112_FN1), | ||
743 | PINMUX_DATA(TCKON_MARK, PORT118_FN1), | ||
744 | PINMUX_DATA(VIO_VD_MARK, PORT128_FN1), | ||
745 | PINMUX_DATA(PORT128_KEYOUT0_MARK, PORT128_FN2), | ||
746 | PINMUX_DATA(IPORT0_MARK, PORT128_FN3), | ||
747 | PINMUX_DATA(VIO_HD_MARK, PORT129_FN1), | ||
748 | PINMUX_DATA(PORT129_KEYOUT1_MARK, PORT129_FN2), | ||
749 | PINMUX_DATA(IPORT1_MARK, PORT129_FN3), | ||
750 | PINMUX_DATA(VIO_D0_MARK, PORT130_FN1), | ||
751 | PINMUX_DATA(PORT130_KEYOUT2_MARK, PORT130_FN2), | ||
752 | PINMUX_DATA(PORT130_MSIOF2_RXD_MARK, PORT130_FN3), | ||
753 | PINMUX_DATA(VIO_D1_MARK, PORT131_FN1), | ||
754 | PINMUX_DATA(PORT131_KEYOUT3_MARK, PORT131_FN2), | ||
755 | PINMUX_DATA(PORT131_MSIOF2_SS1_MARK, PORT131_FN3), | ||
756 | PINMUX_DATA(VIO_D2_MARK, PORT132_FN1), | ||
757 | PINMUX_DATA(PORT132_KEYOUT4_MARK, PORT132_FN2), | ||
758 | PINMUX_DATA(PORT132_MSIOF2_SS2_MARK, PORT132_FN3), | ||
759 | PINMUX_DATA(VIO_D3_MARK, PORT133_FN1), | ||
760 | PINMUX_DATA(PORT133_KEYOUT5_MARK, PORT133_FN2), | ||
761 | PINMUX_DATA(PORT133_MSIOF2_TSYNC_MARK, PORT133_FN3), | ||
762 | PINMUX_DATA(VIO_D4_MARK, PORT134_FN1), | ||
763 | PINMUX_DATA(PORT134_KEYIN0_MARK, PORT134_FN2), | ||
764 | PINMUX_DATA(PORT134_MSIOF2_TXD_MARK, PORT134_FN3), | ||
765 | PINMUX_DATA(VIO_D5_MARK, PORT135_FN1), | ||
766 | PINMUX_DATA(PORT135_KEYIN1_MARK, PORT135_FN2), | ||
767 | PINMUX_DATA(PORT135_MSIOF2_TSCK_MARK, PORT135_FN3), | ||
768 | PINMUX_DATA(VIO_D6_MARK, PORT136_FN1), | ||
769 | PINMUX_DATA(PORT136_KEYIN2_MARK, PORT136_FN2), | ||
770 | PINMUX_DATA(VIO_D7_MARK, PORT137_FN1), | ||
771 | PINMUX_DATA(PORT137_KEYIN3_MARK, PORT137_FN2), | ||
772 | PINMUX_DATA(VIO_D8_MARK, PORT138_FN1), | ||
773 | PINMUX_DATA(M9_SLCD_A01_MARK, PORT138_FN2), | ||
774 | PINMUX_DATA(PORT138_FSIAOMC_MARK, PORT138_FN3), | ||
775 | PINMUX_DATA(VIO_D9_MARK, PORT139_FN1), | ||
776 | PINMUX_DATA(M10_SLCD_CK1_MARK, PORT139_FN2), | ||
777 | PINMUX_DATA(PORT139_FSIAOLR_MARK, PORT139_FN3), | ||
778 | PINMUX_DATA(VIO_D10_MARK, PORT140_FN1), | ||
779 | PINMUX_DATA(M11_SLCD_SO1_MARK, PORT140_FN2), | ||
780 | PINMUX_DATA(TPU0TO2_MARK, PORT140_FN3), | ||
781 | PINMUX_DATA(PORT140_FSIAOBT_MARK, PORT140_FN4), | ||
782 | PINMUX_DATA(VIO_D11_MARK, PORT141_FN1), | ||
783 | PINMUX_DATA(M12_SLCD_CE1_MARK, PORT141_FN2), | ||
784 | PINMUX_DATA(TPU0TO3_MARK, PORT141_FN3), | ||
785 | PINMUX_DATA(PORT141_FSIAOSLD_MARK, PORT141_FN4), | ||
786 | PINMUX_DATA(VIO_D12_MARK, PORT142_FN1), | ||
787 | PINMUX_DATA(M13_BSW_MARK, PORT142_FN2), | ||
788 | PINMUX_DATA(PORT142_FSIACK_MARK, PORT142_FN3), | ||
789 | PINMUX_DATA(VIO_D13_MARK, PORT143_FN1), | ||
790 | PINMUX_DATA(M14_GSW_MARK, PORT143_FN2), | ||
791 | PINMUX_DATA(PORT143_FSIAILR_MARK, PORT143_FN3), | ||
792 | PINMUX_DATA(VIO_D14_MARK, PORT144_FN1), | ||
793 | PINMUX_DATA(M15_RSW_MARK, PORT144_FN2), | ||
794 | PINMUX_DATA(PORT144_FSIAIBT_MARK, PORT144_FN3), | ||
795 | PINMUX_DATA(VIO_D15_MARK, PORT145_FN1), | ||
796 | PINMUX_DATA(TPU1TO3_MARK, PORT145_FN2), | ||
797 | PINMUX_DATA(PORT145_FSIAISLD_MARK, PORT145_FN3), | ||
798 | PINMUX_DATA(VIO_CLK_MARK, PORT146_FN1), | ||
799 | PINMUX_DATA(PORT146_KEYIN4_MARK, PORT146_FN2), | ||
800 | PINMUX_DATA(IPORT2_MARK, PORT146_FN3), | ||
801 | PINMUX_DATA(VIO_FIELD_MARK, PORT147_FN1), | ||
802 | PINMUX_DATA(PORT147_KEYIN5_MARK, PORT147_FN2), | ||
803 | PINMUX_DATA(VIO_CKO_MARK, PORT148_FN1), | ||
804 | PINMUX_DATA(PORT148_KEYIN6_MARK, PORT148_FN2), | ||
805 | PINMUX_DATA(A27_MARK, PORT149_FN1), | ||
806 | PINMUX_DATA(RDWR_XWE_MARK, PORT149_FN2), | ||
807 | PINMUX_DATA(MFG0_IN1_MARK, PORT149_FN3), | ||
808 | PINMUX_DATA(MFG0_IN2_MARK, PORT150_FN1), | ||
809 | PINMUX_DATA(TS_SPSYNC3_MARK, PORT151_FN1), | ||
810 | PINMUX_DATA(MSIOF2_RSCK_MARK, PORT151_FN2), | ||
811 | PINMUX_DATA(TS_SDAT3_MARK, PORT152_FN1), | ||
812 | PINMUX_DATA(MSIOF2_RSYNC_MARK, PORT152_FN2), | ||
813 | PINMUX_DATA(TPU1TO2_MARK, PORT153_FN1), | ||
814 | PINMUX_DATA(TS_SDEN3_MARK, PORT153_FN2), | ||
815 | PINMUX_DATA(PORT153_MSIOF2_SS1_MARK, PORT153_FN3), | ||
816 | PINMUX_DATA(SOUT3_MARK, PORT154_FN1), | ||
817 | PINMUX_DATA(SCIFA2_TXD1_MARK, PORT154_FN2), | ||
818 | PINMUX_DATA(MSIOF2_MCK0_MARK, PORT154_FN3), | ||
819 | PINMUX_DATA(SIN3_MARK, PORT155_FN1), | ||
820 | PINMUX_DATA(SCIFA2_RXD1_MARK, PORT155_FN2), | ||
821 | PINMUX_DATA(MSIOF2_MCK1_MARK, PORT155_FN3), | ||
822 | PINMUX_DATA(XRTS3_MARK, PORT156_FN1), | ||
823 | PINMUX_DATA(SCIFA2_RTS1_MARK, PORT156_FN2), | ||
824 | PINMUX_DATA(PORT156_MSIOF2_SS2_MARK, PORT156_FN3), | ||
825 | PINMUX_DATA(XCTS3_MARK, PORT157_FN1), | ||
826 | PINMUX_DATA(SCIFA2_CTS1_MARK, PORT157_FN2), | ||
827 | PINMUX_DATA(PORT157_MSIOF2_RXD_MARK, PORT157_FN3), | ||
828 | |||
829 | /* 55-4 (FN) */ | ||
830 | PINMUX_DATA(DINT_MARK, PORT158_FN1), | ||
831 | PINMUX_DATA(SCIFA2_SCK1_MARK, PORT158_FN2), | ||
832 | PINMUX_DATA(TS_SCK3_MARK, PORT158_FN3), | ||
833 | PINMUX_DATA(PORT159_SCIFB_SCK_MARK, PORT159_FN1), | ||
834 | PINMUX_DATA(PORT159_SCIFA5_SCK_MARK, PORT159_FN2), | ||
835 | PINMUX_DATA(NMI_MARK, PORT159_FN3), | ||
836 | PINMUX_DATA(PORT160_SCIFB_TXD_MARK, PORT160_FN1), | ||
837 | PINMUX_DATA(PORT160_SCIFA5_TXD_MARK, PORT160_FN2), | ||
838 | PINMUX_DATA(SOUT0_MARK, PORT160_FN3), | ||
839 | PINMUX_DATA(PORT161_SCIFB_CTS_MARK, PORT161_FN1), | ||
840 | PINMUX_DATA(PORT161_SCIFA5_CTS_MARK, PORT161_FN2), | ||
841 | PINMUX_DATA(XCTS0_MARK, PORT161_FN3), | ||
842 | PINMUX_DATA(MFG3_IN2_MARK, PORT161_FN4), | ||
843 | PINMUX_DATA(PORT162_SCIFB_RXD_MARK, PORT162_FN1), | ||
844 | PINMUX_DATA(PORT162_SCIFA5_RXD_MARK, PORT162_FN2), | ||
845 | PINMUX_DATA(SIN0_MARK, PORT162_FN3), | ||
846 | PINMUX_DATA(MFG3_IN1_MARK, PORT162_FN4), | ||
847 | PINMUX_DATA(PORT163_SCIFB_RTS_MARK, PORT163_FN1), | ||
848 | PINMUX_DATA(PORT163_SCIFA5_RTS_MARK, PORT163_FN2), | ||
849 | PINMUX_DATA(XRTS0_MARK, PORT163_FN3), | ||
850 | PINMUX_DATA(MFG3_OUT1_MARK, PORT163_FN4), | ||
851 | PINMUX_DATA(TPU3TO0_MARK, PORT163_FN5), | ||
852 | PINMUX_DATA(LCDD0_MARK, PORT192_FN1), | ||
853 | PINMUX_DATA(PORT192_KEYOUT0_MARK, PORT192_FN2), | ||
854 | PINMUX_DATA(EXT_CKI_MARK, PORT192_FN3), | ||
855 | PINMUX_DATA(LCDD1_MARK, PORT193_FN1), | ||
856 | PINMUX_DATA(PORT193_KEYOUT1_MARK, PORT193_FN2), | ||
857 | PINMUX_DATA(PORT193_SCIFA5_CTS_MARK, PORT193_FN3), | ||
858 | PINMUX_DATA(BBIF2_TSYNC1_MARK, PORT193_FN4), | ||
859 | PINMUX_DATA(LCDD2_MARK, PORT194_FN1), | ||
860 | PINMUX_DATA(PORT194_KEYOUT2_MARK, PORT194_FN2), | ||
861 | PINMUX_DATA(PORT194_SCIFA5_RTS_MARK, PORT194_FN3), | ||
862 | PINMUX_DATA(BBIF2_TSCK1_MARK, PORT194_FN4), | ||
863 | PINMUX_DATA(LCDD3_MARK, PORT195_FN1), | ||
864 | PINMUX_DATA(PORT195_KEYOUT3_MARK, PORT195_FN2), | ||
865 | PINMUX_DATA(PORT195_SCIFA5_RXD_MARK, PORT195_FN3), | ||
866 | PINMUX_DATA(BBIF2_TXD1_MARK, PORT195_FN4), | ||
867 | PINMUX_DATA(LCDD4_MARK, PORT196_FN1), | ||
868 | PINMUX_DATA(PORT196_KEYOUT4_MARK, PORT196_FN2), | ||
869 | PINMUX_DATA(PORT196_SCIFA5_TXD_MARK, PORT196_FN3), | ||
870 | PINMUX_DATA(LCDD5_MARK, PORT197_FN1), | ||
871 | PINMUX_DATA(PORT197_KEYOUT5_MARK, PORT197_FN2), | ||
872 | PINMUX_DATA(PORT197_SCIFA5_SCK_MARK, PORT197_FN3), | ||
873 | PINMUX_DATA(MFG2_OUT2_MARK, PORT197_FN4), | ||
874 | PINMUX_DATA(LCDD6_MARK, PORT198_FN1), | ||
875 | PINMUX_DATA(LCDD7_MARK, PORT199_FN1), | ||
876 | PINMUX_DATA(TPU4TO1_MARK, PORT199_FN2), | ||
877 | PINMUX_DATA(MFG4_OUT2_MARK, PORT199_FN3), | ||
878 | PINMUX_DATA(LCDD8_MARK, PORT200_FN1), | ||
879 | PINMUX_DATA(PORT200_KEYIN0_MARK, PORT200_FN2), | ||
880 | PINMUX_DATA(VIO_DR0_MARK, PORT200_FN3), | ||
881 | PINMUX_DATA(D16_MARK, PORT200_FN4), | ||
882 | PINMUX_DATA(LCDD9_MARK, PORT201_FN1), | ||
883 | PINMUX_DATA(PORT201_KEYIN1_MARK, PORT201_FN2), | ||
884 | PINMUX_DATA(VIO_DR1_MARK, PORT201_FN3), | ||
885 | PINMUX_DATA(D17_MARK, PORT201_FN4), | ||
886 | PINMUX_DATA(LCDD10_MARK, PORT202_FN1), | ||
887 | PINMUX_DATA(PORT202_KEYIN2_MARK, PORT202_FN2), | ||
888 | PINMUX_DATA(VIO_DR2_MARK, PORT202_FN3), | ||
889 | PINMUX_DATA(D18_MARK, PORT202_FN4), | ||
890 | PINMUX_DATA(LCDD11_MARK, PORT203_FN1), | ||
891 | PINMUX_DATA(PORT203_KEYIN3_MARK, PORT203_FN2), | ||
892 | PINMUX_DATA(VIO_DR3_MARK, PORT203_FN3), | ||
893 | PINMUX_DATA(D19_MARK, PORT203_FN4), | ||
894 | PINMUX_DATA(LCDD12_MARK, PORT204_FN1), | ||
895 | PINMUX_DATA(PORT204_KEYIN4_MARK, PORT204_FN2), | ||
896 | PINMUX_DATA(VIO_DR4_MARK, PORT204_FN3), | ||
897 | PINMUX_DATA(D20_MARK, PORT204_FN4), | ||
898 | PINMUX_DATA(LCDD13_MARK, PORT205_FN1), | ||
899 | PINMUX_DATA(PORT205_KEYIN5_MARK, PORT205_FN2), | ||
900 | PINMUX_DATA(VIO_DR5_MARK, PORT205_FN3), | ||
901 | PINMUX_DATA(D21_MARK, PORT205_FN4), | ||
902 | PINMUX_DATA(LCDD14_MARK, PORT206_FN1), | ||
903 | PINMUX_DATA(PORT206_KEYIN6_MARK, PORT206_FN2), | ||
904 | PINMUX_DATA(VIO_DR6_MARK, PORT206_FN3), | ||
905 | PINMUX_DATA(D22_MARK, PORT206_FN4), | ||
906 | PINMUX_DATA(LCDD15_MARK, PORT207_FN1), | ||
907 | PINMUX_DATA(PORT207_MSIOF0L_SS1_MARK, PORT207_FN2), | ||
908 | PINMUX_DATA(PORT207_KEYOUT0_MARK, PORT207_FN3), | ||
909 | PINMUX_DATA(VIO_DR7_MARK, PORT207_FN4), | ||
910 | PINMUX_DATA(D23_MARK, PORT207_FN5), | ||
911 | PINMUX_DATA(LCDD16_MARK, PORT208_FN1), | ||
912 | PINMUX_DATA(PORT208_MSIOF0L_SS2_MARK, PORT208_FN2), | ||
913 | PINMUX_DATA(PORT208_KEYOUT1_MARK, PORT208_FN3), | ||
914 | PINMUX_DATA(VIO_VDR_MARK, PORT208_FN4), | ||
915 | PINMUX_DATA(D24_MARK, PORT208_FN5), | ||
916 | PINMUX_DATA(LCDD17_MARK, PORT209_FN1), | ||
917 | PINMUX_DATA(PORT209_KEYOUT2_MARK, PORT209_FN2), | ||
918 | PINMUX_DATA(VIO_HDR_MARK, PORT209_FN3), | ||
919 | PINMUX_DATA(D25_MARK, PORT209_FN4), | ||
920 | PINMUX_DATA(LCDD18_MARK, PORT210_FN1), | ||
921 | PINMUX_DATA(DREQ2_MARK, PORT210_FN2), | ||
922 | PINMUX_DATA(PORT210_MSIOF0L_SS1_MARK, PORT210_FN3), | ||
923 | PINMUX_DATA(D26_MARK, PORT210_FN4), | ||
924 | PINMUX_DATA(LCDD19_MARK, PORT211_FN1), | ||
925 | PINMUX_DATA(PORT211_MSIOF0L_SS2_MARK, PORT211_FN2), | ||
926 | PINMUX_DATA(D27_MARK, PORT211_FN3), | ||
927 | PINMUX_DATA(LCDD20_MARK, PORT212_FN1), | ||
928 | PINMUX_DATA(TS_SPSYNC1_MARK, PORT212_FN2), | ||
929 | PINMUX_DATA(MSIOF0L_MCK0_MARK, PORT212_FN3), | ||
930 | PINMUX_DATA(D28_MARK, PORT212_FN4), | ||
931 | PINMUX_DATA(LCDD21_MARK, PORT213_FN1), | ||
932 | PINMUX_DATA(TS_SDAT1_MARK, PORT213_FN2), | ||
933 | PINMUX_DATA(MSIOF0L_MCK1_MARK, PORT213_FN3), | ||
934 | PINMUX_DATA(D29_MARK, PORT213_FN4), | ||
935 | PINMUX_DATA(LCDD22_MARK, PORT214_FN1), | ||
936 | PINMUX_DATA(TS_SDEN1_MARK, PORT214_FN2), | ||
937 | PINMUX_DATA(MSIOF0L_RSCK_MARK, PORT214_FN3), | ||
938 | PINMUX_DATA(D30_MARK, PORT214_FN4), | ||
939 | PINMUX_DATA(LCDD23_MARK, PORT215_FN1), | ||
940 | PINMUX_DATA(TS_SCK1_MARK, PORT215_FN2), | ||
941 | PINMUX_DATA(MSIOF0L_RSYNC_MARK, PORT215_FN3), | ||
942 | PINMUX_DATA(D31_MARK, PORT215_FN4), | ||
943 | PINMUX_DATA(LCDDCK_MARK, PORT216_FN1), | ||
944 | PINMUX_DATA(LCDWR_MARK, PORT216_FN2), | ||
945 | PINMUX_DATA(PORT216_KEYOUT3_MARK, PORT216_FN3), | ||
946 | PINMUX_DATA(VIO_CLKR_MARK, PORT216_FN4), | ||
947 | PINMUX_DATA(LCDRD_MARK, PORT217_FN1), | ||
948 | PINMUX_DATA(DACK2_MARK, PORT217_FN2), | ||
949 | PINMUX_DATA(MSIOF0L_TSYNC_MARK, PORT217_FN3), | ||
950 | PINMUX_DATA(LCDHSYN_MARK, PORT218_FN1), | ||
951 | PINMUX_DATA(LCDCS_MARK, PORT218_FN2), | ||
952 | PINMUX_DATA(LCDCS2_MARK, PORT218_FN3), | ||
953 | PINMUX_DATA(DACK3_MARK, PORT218_FN4), | ||
954 | PINMUX_DATA(PORT218_VIO_CKOR_MARK, PORT218_FN5), | ||
955 | PINMUX_DATA(PORT218_KEYOUT4_MARK, PORT218_FN6), | ||
956 | PINMUX_DATA(LCDDISP_MARK, PORT219_FN1), | ||
957 | PINMUX_DATA(LCDRS_MARK, PORT219_FN2), | ||
958 | PINMUX_DATA(DREQ3_MARK, PORT219_FN3), | ||
959 | PINMUX_DATA(MSIOF0L_TSCK_MARK, PORT219_FN4), | ||
960 | PINMUX_DATA(LCDVSYN_MARK, PORT220_FN1), | ||
961 | PINMUX_DATA(LCDVSYN2_MARK, PORT220_FN2), | ||
962 | PINMUX_DATA(PORT220_KEYOUT5_MARK, PORT220_FN3), | ||
963 | PINMUX_DATA(LCDLCLK_MARK, PORT221_FN1), | ||
964 | PINMUX_DATA(DREQ1_MARK, PORT221_FN2), | ||
965 | PINMUX_DATA(PWEN_MARK, PORT221_FN3), | ||
966 | PINMUX_DATA(MSIOF0L_RXD_MARK, PORT221_FN4), | ||
967 | PINMUX_DATA(LCDDON_MARK, PORT222_FN1), | ||
968 | PINMUX_DATA(LCDDON2_MARK, PORT222_FN2), | ||
969 | PINMUX_DATA(DACK1_MARK, PORT222_FN3), | ||
970 | PINMUX_DATA(OVCN_MARK, PORT222_FN4), | ||
971 | PINMUX_DATA(MSIOF0L_TXD_MARK, PORT222_FN5), | ||
972 | PINMUX_DATA(SCIFA1_TXD_MARK, PORT225_FN1), | ||
973 | PINMUX_DATA(OVCN2_MARK, PORT225_FN2), | ||
974 | PINMUX_DATA(EXTLP_MARK, PORT226_FN1), | ||
975 | PINMUX_DATA(SCIFA1_SCK_MARK, PORT226_FN2), | ||
976 | PINMUX_DATA(USBTERM_MARK, PORT226_FN3), | ||
977 | PINMUX_DATA(PORT226_VIO_CKO2_MARK, PORT226_FN4), | ||
978 | PINMUX_DATA(SCIFA1_RTS_MARK, PORT227_FN1), | ||
979 | PINMUX_DATA(IDIN_MARK, PORT227_FN2), | ||
980 | PINMUX_DATA(SCIFA1_RXD_MARK, PORT228_FN1), | ||
981 | PINMUX_DATA(SCIFA1_CTS_MARK, PORT229_FN1), | ||
982 | PINMUX_DATA(MFG1_IN1_MARK, PORT229_FN2), | ||
983 | PINMUX_DATA(MSIOF1_TXD_MARK, PORT230_FN1), | ||
984 | PINMUX_DATA(SCIFA2_TXD2_MARK, PORT230_FN2), | ||
985 | PINMUX_DATA(PORT230_FSIAOMC_MARK, PORT230_FN3), | ||
986 | PINMUX_DATA(MSIOF1_TSYNC_MARK, PORT231_FN1), | ||
987 | PINMUX_DATA(SCIFA2_CTS2_MARK, PORT231_FN2), | ||
988 | PINMUX_DATA(PORT231_FSIAOLR_MARK, PORT231_FN3), | ||
989 | PINMUX_DATA(MSIOF1_TSCK_MARK, PORT232_FN1), | ||
990 | PINMUX_DATA(SCIFA2_SCK2_MARK, PORT232_FN2), | ||
991 | PINMUX_DATA(PORT232_FSIAOBT_MARK, PORT232_FN3), | ||
992 | PINMUX_DATA(MSIOF1_RXD_MARK, PORT233_FN1), | ||
993 | PINMUX_DATA(SCIFA2_RXD2_MARK, PORT233_FN2), | ||
994 | PINMUX_DATA(GPS_VCOTRIG_MARK, PORT233_FN3), | ||
995 | PINMUX_DATA(PORT233_FSIACK_MARK, PORT233_FN4), | ||
996 | PINMUX_DATA(MSIOF1_RSCK_MARK, PORT234_FN1), | ||
997 | PINMUX_DATA(SCIFA2_RTS2_MARK, PORT234_FN2), | ||
998 | PINMUX_DATA(PORT234_FSIAOSLD_MARK, PORT234_FN3), | ||
999 | PINMUX_DATA(MSIOF1_RSYNC_MARK, PORT235_FN1), | ||
1000 | PINMUX_DATA(OPORT0_MARK, PORT235_FN2), | ||
1001 | PINMUX_DATA(MFG1_IN2_MARK, PORT235_FN3), | ||
1002 | PINMUX_DATA(PORT235_FSIAILR_MARK, PORT235_FN4), | ||
1003 | PINMUX_DATA(MSIOF1_MCK0_MARK, PORT236_FN1), | ||
1004 | PINMUX_DATA(I2C_SDA2_MARK, PORT236_FN2), | ||
1005 | PINMUX_DATA(PORT236_FSIAIBT_MARK, PORT236_FN3), | ||
1006 | PINMUX_DATA(MSIOF1_MCK1_MARK, PORT237_FN1), | ||
1007 | PINMUX_DATA(I2C_SCL2_MARK, PORT237_FN2), | ||
1008 | PINMUX_DATA(PORT237_FSIAISLD_MARK, PORT237_FN3), | ||
1009 | PINMUX_DATA(MSIOF1_SS1_MARK, PORT238_FN1), | ||
1010 | PINMUX_DATA(EDBGREQ3_MARK, PORT238_FN2), | ||
1011 | |||
1012 | /* 55-5 (FN) */ | ||
1013 | PINMUX_DATA(MSIOF1_SS2_MARK, PORT239_FN1), | ||
1014 | PINMUX_DATA(SCIFA6_TXD_MARK, PORT240_FN1), | ||
1015 | PINMUX_DATA(PORT241_IRDA_OUT_MARK, PORT241_FN1), | ||
1016 | PINMUX_DATA(PORT241_IROUT_MARK, PORT241_FN2), | ||
1017 | PINMUX_DATA(MFG4_OUT1_MARK, PORT241_FN3), | ||
1018 | PINMUX_DATA(TPU4TO0_MARK, PORT241_FN4), | ||
1019 | PINMUX_DATA(PORT242_IRDA_IN_MARK, PORT242_FN1), | ||
1020 | PINMUX_DATA(MFG4_IN2_MARK, PORT242_FN2), | ||
1021 | PINMUX_DATA(PORT243_IRDA_FIRSEL_MARK, PORT243_FN1), | ||
1022 | PINMUX_DATA(PORT243_VIO_CKO2_MARK, PORT243_FN2), | ||
1023 | PINMUX_DATA(PORT244_SCIFA5_CTS_MARK, PORT244_FN1), | ||
1024 | PINMUX_DATA(MFG2_IN1_MARK, PORT244_FN2), | ||
1025 | PINMUX_DATA(PORT244_SCIFB_CTS_MARK, PORT244_FN3), | ||
1026 | PINMUX_DATA(PORT245_SCIFA5_RTS_MARK, PORT245_FN1), | ||
1027 | PINMUX_DATA(MFG2_IN2_MARK, PORT245_FN2), | ||
1028 | PINMUX_DATA(PORT245_SCIFB_RTS_MARK, PORT245_FN3), | ||
1029 | PINMUX_DATA(PORT246_SCIFA5_RXD_MARK, PORT246_FN1), | ||
1030 | PINMUX_DATA(MFG1_OUT1_MARK, PORT246_FN2), | ||
1031 | PINMUX_DATA(PORT246_SCIFB_RXD_MARK, PORT246_FN3), | ||
1032 | PINMUX_DATA(TPU1TO0_MARK, PORT246_FN4), | ||
1033 | PINMUX_DATA(PORT247_SCIFA5_TXD_MARK, PORT247_FN1), | ||
1034 | PINMUX_DATA(MFG3_OUT2_MARK, PORT247_FN2), | ||
1035 | PINMUX_DATA(PORT247_SCIFB_TXD_MARK, PORT247_FN3), | ||
1036 | PINMUX_DATA(TPU3TO1_MARK, PORT247_FN4), | ||
1037 | PINMUX_DATA(PORT248_SCIFA5_SCK_MARK, PORT248_FN1), | ||
1038 | PINMUX_DATA(MFG2_OUT1_MARK, PORT248_FN2), | ||
1039 | PINMUX_DATA(PORT248_SCIFB_SCK_MARK, PORT248_FN3), | ||
1040 | PINMUX_DATA(TPU2TO0_MARK, PORT248_FN4), | ||
1041 | PINMUX_DATA(PORT249_IROUT_MARK, PORT249_FN1), | ||
1042 | PINMUX_DATA(MFG4_IN1_MARK, PORT249_FN2), | ||
1043 | PINMUX_DATA(SDHICLK0_MARK, PORT250_FN1), | ||
1044 | PINMUX_DATA(TCK2_SWCLK_MC0_MARK, PORT250_FN2), | ||
1045 | PINMUX_DATA(SDHICD0_MARK, PORT251_FN1), | ||
1046 | PINMUX_DATA(SDHID0_0_MARK, PORT252_FN1), | ||
1047 | PINMUX_DATA(TMS2_SWDIO_MC0_MARK, PORT252_FN2), | ||
1048 | PINMUX_DATA(SDHID0_1_MARK, PORT253_FN1), | ||
1049 | PINMUX_DATA(TDO2_SWO0_MC0_MARK, PORT253_FN2), | ||
1050 | PINMUX_DATA(SDHID0_2_MARK, PORT254_FN1), | ||
1051 | PINMUX_DATA(TDI2_MARK, PORT254_FN2), | ||
1052 | PINMUX_DATA(SDHID0_3_MARK, PORT255_FN1), | ||
1053 | PINMUX_DATA(RTCK2_SWO1_MC0_MARK, PORT255_FN2), | ||
1054 | PINMUX_DATA(SDHICMD0_MARK, PORT256_FN1), | ||
1055 | PINMUX_DATA(TRST2_MARK, PORT256_FN2), | ||
1056 | PINMUX_DATA(SDHIWP0_MARK, PORT257_FN1), | ||
1057 | PINMUX_DATA(EDBGREQ2_MARK, PORT257_FN2), | ||
1058 | PINMUX_DATA(SDHICLK1_MARK, PORT258_FN1), | ||
1059 | PINMUX_DATA(TCK3_SWCLK_MC1_MARK, PORT258_FN2), | ||
1060 | PINMUX_DATA(SDHID1_0_MARK, PORT259_FN1), | ||
1061 | PINMUX_DATA(M11_SLCD_SO2_MARK, PORT259_FN2), | ||
1062 | PINMUX_DATA(TS_SPSYNC2_MARK, PORT259_FN3), | ||
1063 | PINMUX_DATA(TMS3_SWDIO_MC1_MARK, PORT259_FN4), | ||
1064 | PINMUX_DATA(SDHID1_1_MARK, PORT260_FN1), | ||
1065 | PINMUX_DATA(M9_SLCD_A02_MARK, PORT260_FN2), | ||
1066 | PINMUX_DATA(TS_SDAT2_MARK, PORT260_FN3), | ||
1067 | PINMUX_DATA(TDO3_SWO0_MC1_MARK, PORT260_FN4), | ||
1068 | PINMUX_DATA(SDHID1_2_MARK, PORT261_FN1), | ||
1069 | PINMUX_DATA(M10_SLCD_CK2_MARK, PORT261_FN2), | ||
1070 | PINMUX_DATA(TS_SDEN2_MARK, PORT261_FN3), | ||
1071 | PINMUX_DATA(TDI3_MARK, PORT261_FN4), | ||
1072 | PINMUX_DATA(SDHID1_3_MARK, PORT262_FN1), | ||
1073 | PINMUX_DATA(M12_SLCD_CE2_MARK, PORT262_FN2), | ||
1074 | PINMUX_DATA(TS_SCK2_MARK, PORT262_FN3), | ||
1075 | PINMUX_DATA(RTCK3_SWO1_MC1_MARK, PORT262_FN4), | ||
1076 | PINMUX_DATA(SDHICMD1_MARK, PORT263_FN1), | ||
1077 | PINMUX_DATA(TRST3_MARK, PORT263_FN2), | ||
1078 | PINMUX_DATA(RESETOUTS_MARK, PORT264_FN1), | ||
1079 | }; | ||
1080 | |||
1081 | #define _GPIO_PORT(pfx, sfx) PINMUX_GPIO(GPIO_PORT##pfx, PORT##pfx##_DATA) | ||
1082 | #define GPIO_PORT_265() _265(_GPIO_PORT, , unused) | ||
1083 | #define GPIO_FN(str) PINMUX_GPIO(GPIO_FN_##str, str##_MARK) | ||
1084 | |||
1085 | static struct pinmux_gpio pinmux_gpios[] = { | ||
1086 | /* 55-1 -> 55-5 (GPIO) */ | ||
1087 | GPIO_PORT_265(), | ||
1088 | |||
1089 | /* Special Pull-up / Pull-down Functions */ | ||
1090 | GPIO_FN(PORT66_KEYIN0_PU), GPIO_FN(PORT67_KEYIN1_PU), | ||
1091 | GPIO_FN(PORT68_KEYIN2_PU), GPIO_FN(PORT69_KEYIN3_PU), | ||
1092 | GPIO_FN(PORT70_KEYIN4_PU), GPIO_FN(PORT71_KEYIN5_PU), | ||
1093 | GPIO_FN(PORT72_KEYIN6_PU), | ||
1094 | |||
1095 | /* 55-1 (FN) */ | ||
1096 | GPIO_FN(VBUS_0), | ||
1097 | GPIO_FN(CPORT0), | ||
1098 | GPIO_FN(CPORT1), | ||
1099 | GPIO_FN(CPORT2), | ||
1100 | GPIO_FN(CPORT3), | ||
1101 | GPIO_FN(CPORT4), | ||
1102 | GPIO_FN(CPORT5), | ||
1103 | GPIO_FN(CPORT6), | ||
1104 | GPIO_FN(CPORT7), | ||
1105 | GPIO_FN(CPORT8), | ||
1106 | GPIO_FN(CPORT9), | ||
1107 | GPIO_FN(CPORT10), | ||
1108 | GPIO_FN(CPORT11), GPIO_FN(SIN2), | ||
1109 | GPIO_FN(CPORT12), GPIO_FN(XCTS2), | ||
1110 | GPIO_FN(CPORT13), GPIO_FN(RFSPO4), | ||
1111 | GPIO_FN(CPORT14), GPIO_FN(RFSPO5), | ||
1112 | GPIO_FN(CPORT15), GPIO_FN(SCIFA0_SCK), GPIO_FN(GPS_AGC2), | ||
1113 | GPIO_FN(CPORT16), GPIO_FN(SCIFA0_TXD), GPIO_FN(GPS_AGC3), | ||
1114 | GPIO_FN(CPORT17_IC_OE), GPIO_FN(SOUT2), | ||
1115 | GPIO_FN(CPORT18), GPIO_FN(XRTS2), GPIO_FN(PORT19_VIO_CKO2), | ||
1116 | GPIO_FN(CPORT19_MPORT1), | ||
1117 | GPIO_FN(CPORT20), GPIO_FN(RFSPO6), | ||
1118 | GPIO_FN(CPORT21), GPIO_FN(STATUS0), | ||
1119 | GPIO_FN(CPORT22), GPIO_FN(STATUS1), | ||
1120 | GPIO_FN(CPORT23), GPIO_FN(STATUS2), GPIO_FN(RFSPO7), | ||
1121 | GPIO_FN(B_SYNLD1), | ||
1122 | GPIO_FN(B_SYNLD2), GPIO_FN(SYSENMSK), | ||
1123 | GPIO_FN(XMAINPS), | ||
1124 | GPIO_FN(XDIVPS), | ||
1125 | GPIO_FN(XIDRST), | ||
1126 | GPIO_FN(IDCLK), GPIO_FN(IC_DP), | ||
1127 | GPIO_FN(IDIO), GPIO_FN(IC_DM), | ||
1128 | GPIO_FN(SOUT1), GPIO_FN(SCIFA4_TXD), GPIO_FN(M02_BERDAT), | ||
1129 | GPIO_FN(SIN1), GPIO_FN(SCIFA4_RXD), GPIO_FN(XWUP), | ||
1130 | GPIO_FN(XRTS1), GPIO_FN(SCIFA4_RTS), GPIO_FN(M03_BERCLK), | ||
1131 | GPIO_FN(XCTS1), GPIO_FN(SCIFA4_CTS), | ||
1132 | GPIO_FN(PCMCLKO), | ||
1133 | GPIO_FN(SYNC8KO), | ||
1134 | |||
1135 | /* 55-2 (FN) */ | ||
1136 | GPIO_FN(DNPCM_A), | ||
1137 | GPIO_FN(UPPCM_A), | ||
1138 | GPIO_FN(VACK), | ||
1139 | GPIO_FN(XTALB1L), | ||
1140 | GPIO_FN(GPS_AGC1), GPIO_FN(SCIFA0_RTS), | ||
1141 | GPIO_FN(GPS_AGC4), GPIO_FN(SCIFA0_RXD), | ||
1142 | GPIO_FN(GPS_PWRDOWN), GPIO_FN(SCIFA0_CTS), | ||
1143 | GPIO_FN(GPS_IM), | ||
1144 | GPIO_FN(GPS_IS), | ||
1145 | GPIO_FN(GPS_QM), | ||
1146 | GPIO_FN(GPS_QS), | ||
1147 | GPIO_FN(FMSOCK), GPIO_FN(PORT49_IRDA_OUT), GPIO_FN(PORT49_IROUT), | ||
1148 | GPIO_FN(FMSOOLR), GPIO_FN(BBIF2_TSYNC2), GPIO_FN(TPU2TO2), | ||
1149 | GPIO_FN(IPORT3), GPIO_FN(FMSIOLR), | ||
1150 | GPIO_FN(FMSOOBT), GPIO_FN(BBIF2_TSCK2), GPIO_FN(TPU2TO3), | ||
1151 | GPIO_FN(OPORT1), GPIO_FN(FMSIOBT), | ||
1152 | GPIO_FN(FMSOSLD), GPIO_FN(BBIF2_TXD2), GPIO_FN(OPORT2), | ||
1153 | GPIO_FN(FMSOILR), GPIO_FN(PORT53_IRDA_IN), GPIO_FN(TPU3TO3), | ||
1154 | GPIO_FN(OPORT3), GPIO_FN(FMSIILR), | ||
1155 | GPIO_FN(FMSOIBT), GPIO_FN(PORT54_IRDA_FIRSEL), GPIO_FN(TPU3TO2), | ||
1156 | GPIO_FN(FMSIIBT), | ||
1157 | GPIO_FN(FMSISLD), GPIO_FN(MFG0_OUT1), GPIO_FN(TPU0TO0), | ||
1158 | GPIO_FN(A0_EA0), GPIO_FN(BS), | ||
1159 | GPIO_FN(A12_EA12), GPIO_FN(PORT58_VIO_CKOR), GPIO_FN(TPU4TO2), | ||
1160 | GPIO_FN(A13_EA13), GPIO_FN(PORT59_IROUT), GPIO_FN(MFG0_OUT2), | ||
1161 | GPIO_FN(TPU0TO1), | ||
1162 | GPIO_FN(A14_EA14), GPIO_FN(PORT60_KEYOUT5), | ||
1163 | GPIO_FN(A15_EA15), GPIO_FN(PORT61_KEYOUT4), | ||
1164 | GPIO_FN(A16_EA16), GPIO_FN(PORT62_KEYOUT3), GPIO_FN(MSIOF0_SS1), | ||
1165 | GPIO_FN(A17_EA17), GPIO_FN(PORT63_KEYOUT2), GPIO_FN(MSIOF0_TSYNC), | ||
1166 | GPIO_FN(A18_EA18), GPIO_FN(PORT64_KEYOUT1), GPIO_FN(MSIOF0_TSCK), | ||
1167 | GPIO_FN(A19_EA19), GPIO_FN(PORT65_KEYOUT0), GPIO_FN(MSIOF0_TXD), | ||
1168 | GPIO_FN(A20_EA20), GPIO_FN(PORT66_KEYIN0), GPIO_FN(MSIOF0_RSCK), | ||
1169 | GPIO_FN(A21_EA21), GPIO_FN(PORT67_KEYIN1), GPIO_FN(MSIOF0_RSYNC), | ||
1170 | GPIO_FN(A22_EA22), GPIO_FN(PORT68_KEYIN2), GPIO_FN(MSIOF0_MCK0), | ||
1171 | GPIO_FN(A23_EA23), GPIO_FN(PORT69_KEYIN3), GPIO_FN(MSIOF0_MCK1), | ||
1172 | GPIO_FN(A24_EA24), GPIO_FN(PORT70_KEYIN4), GPIO_FN(MSIOF0_RXD), | ||
1173 | GPIO_FN(A25_EA25), GPIO_FN(PORT71_KEYIN5), GPIO_FN(MSIOF0_SS2), | ||
1174 | GPIO_FN(A26), GPIO_FN(PORT72_KEYIN6), | ||
1175 | GPIO_FN(D0_ED0_NAF0), | ||
1176 | GPIO_FN(D1_ED1_NAF1), | ||
1177 | GPIO_FN(D2_ED2_NAF2), | ||
1178 | GPIO_FN(D3_ED3_NAF3), | ||
1179 | GPIO_FN(D4_ED4_NAF4), | ||
1180 | GPIO_FN(D5_ED5_NAF5), | ||
1181 | GPIO_FN(D6_ED6_NAF6), | ||
1182 | GPIO_FN(D7_ED7_NAF7), | ||
1183 | GPIO_FN(D8_ED8_NAF8), | ||
1184 | GPIO_FN(D9_ED9_NAF9), | ||
1185 | GPIO_FN(D10_ED10_NAF10), | ||
1186 | GPIO_FN(D11_ED11_NAF11), | ||
1187 | GPIO_FN(D12_ED12_NAF12), | ||
1188 | GPIO_FN(D13_ED13_NAF13), | ||
1189 | GPIO_FN(D14_ED14_NAF14), | ||
1190 | GPIO_FN(D15_ED15_NAF15), | ||
1191 | GPIO_FN(CS4), | ||
1192 | GPIO_FN(CS5A), GPIO_FN(FMSICK), | ||
1193 | |||
1194 | /* 55-3 (FN) */ | ||
1195 | GPIO_FN(CS5B), GPIO_FN(FCE1), | ||
1196 | GPIO_FN(CS6B), GPIO_FN(XCS2), GPIO_FN(CS6A), GPIO_FN(DACK0), | ||
1197 | GPIO_FN(FCE0), | ||
1198 | GPIO_FN(WAIT), GPIO_FN(DREQ0), | ||
1199 | GPIO_FN(RD_XRD), | ||
1200 | GPIO_FN(WE0_XWR0_FWE), | ||
1201 | GPIO_FN(WE1_XWR1), | ||
1202 | GPIO_FN(FRB), | ||
1203 | GPIO_FN(CKO), | ||
1204 | GPIO_FN(NBRSTOUT), | ||
1205 | GPIO_FN(NBRST), | ||
1206 | GPIO_FN(GPS_EPPSIN), | ||
1207 | GPIO_FN(LATCHPULSE), | ||
1208 | GPIO_FN(LTESIGNAL), | ||
1209 | GPIO_FN(LEGACYSTATE), | ||
1210 | GPIO_FN(TCKON), | ||
1211 | GPIO_FN(VIO_VD), GPIO_FN(PORT128_KEYOUT0), GPIO_FN(IPORT0), | ||
1212 | GPIO_FN(VIO_HD), GPIO_FN(PORT129_KEYOUT1), GPIO_FN(IPORT1), | ||
1213 | GPIO_FN(VIO_D0), GPIO_FN(PORT130_KEYOUT2), GPIO_FN(PORT130_MSIOF2_RXD), | ||
1214 | GPIO_FN(VIO_D1), GPIO_FN(PORT131_KEYOUT3), GPIO_FN(PORT131_MSIOF2_SS1), | ||
1215 | GPIO_FN(VIO_D2), GPIO_FN(PORT132_KEYOUT4), GPIO_FN(PORT132_MSIOF2_SS2), | ||
1216 | GPIO_FN(VIO_D3), GPIO_FN(PORT133_KEYOUT5), | ||
1217 | GPIO_FN(PORT133_MSIOF2_TSYNC), | ||
1218 | GPIO_FN(VIO_D4), GPIO_FN(PORT134_KEYIN0), GPIO_FN(PORT134_MSIOF2_TXD), | ||
1219 | GPIO_FN(VIO_D5), GPIO_FN(PORT135_KEYIN1), GPIO_FN(PORT135_MSIOF2_TSCK), | ||
1220 | GPIO_FN(VIO_D6), GPIO_FN(PORT136_KEYIN2), | ||
1221 | GPIO_FN(VIO_D7), GPIO_FN(PORT137_KEYIN3), | ||
1222 | GPIO_FN(VIO_D8), GPIO_FN(M9_SLCD_A01), GPIO_FN(PORT138_FSIAOMC), | ||
1223 | GPIO_FN(VIO_D9), GPIO_FN(M10_SLCD_CK1), GPIO_FN(PORT139_FSIAOLR), | ||
1224 | GPIO_FN(VIO_D10), GPIO_FN(M11_SLCD_SO1), GPIO_FN(TPU0TO2), | ||
1225 | GPIO_FN(PORT140_FSIAOBT), | ||
1226 | GPIO_FN(VIO_D11), GPIO_FN(M12_SLCD_CE1), GPIO_FN(TPU0TO3), | ||
1227 | GPIO_FN(PORT141_FSIAOSLD), | ||
1228 | GPIO_FN(VIO_D12), GPIO_FN(M13_BSW), GPIO_FN(PORT142_FSIACK), | ||
1229 | GPIO_FN(VIO_D13), GPIO_FN(M14_GSW), GPIO_FN(PORT143_FSIAILR), | ||
1230 | GPIO_FN(VIO_D14), GPIO_FN(M15_RSW), GPIO_FN(PORT144_FSIAIBT), | ||
1231 | GPIO_FN(VIO_D15), GPIO_FN(TPU1TO3), GPIO_FN(PORT145_FSIAISLD), | ||
1232 | GPIO_FN(VIO_CLK), GPIO_FN(PORT146_KEYIN4), GPIO_FN(IPORT2), | ||
1233 | GPIO_FN(VIO_FIELD), GPIO_FN(PORT147_KEYIN5), | ||
1234 | GPIO_FN(VIO_CKO), GPIO_FN(PORT148_KEYIN6), | ||
1235 | GPIO_FN(A27), GPIO_FN(RDWR_XWE), GPIO_FN(MFG0_IN1), | ||
1236 | GPIO_FN(MFG0_IN2), | ||
1237 | GPIO_FN(TS_SPSYNC3), GPIO_FN(MSIOF2_RSCK), | ||
1238 | GPIO_FN(TS_SDAT3), GPIO_FN(MSIOF2_RSYNC), | ||
1239 | GPIO_FN(TPU1TO2), GPIO_FN(TS_SDEN3), GPIO_FN(PORT153_MSIOF2_SS1), | ||
1240 | GPIO_FN(SOUT3), GPIO_FN(SCIFA2_TXD1), GPIO_FN(MSIOF2_MCK0), | ||
1241 | GPIO_FN(SIN3), GPIO_FN(SCIFA2_RXD1), GPIO_FN(MSIOF2_MCK1), | ||
1242 | GPIO_FN(XRTS3), GPIO_FN(SCIFA2_RTS1), GPIO_FN(PORT156_MSIOF2_SS2), | ||
1243 | GPIO_FN(XCTS3), GPIO_FN(SCIFA2_CTS1), GPIO_FN(PORT157_MSIOF2_RXD), | ||
1244 | |||
1245 | /* 55-4 (FN) */ | ||
1246 | GPIO_FN(DINT), GPIO_FN(SCIFA2_SCK1), GPIO_FN(TS_SCK3), | ||
1247 | GPIO_FN(PORT159_SCIFB_SCK), GPIO_FN(PORT159_SCIFA5_SCK), GPIO_FN(NMI), | ||
1248 | GPIO_FN(PORT160_SCIFB_TXD), GPIO_FN(PORT160_SCIFA5_TXD), GPIO_FN(SOUT0), | ||
1249 | GPIO_FN(PORT161_SCIFB_CTS), GPIO_FN(PORT161_SCIFA5_CTS), GPIO_FN(XCTS0), | ||
1250 | GPIO_FN(MFG3_IN2), | ||
1251 | GPIO_FN(PORT162_SCIFB_RXD), GPIO_FN(PORT162_SCIFA5_RXD), GPIO_FN(SIN0), | ||
1252 | GPIO_FN(MFG3_IN1), | ||
1253 | GPIO_FN(PORT163_SCIFB_RTS), GPIO_FN(PORT163_SCIFA5_RTS), GPIO_FN(XRTS0), | ||
1254 | GPIO_FN(MFG3_OUT1), GPIO_FN(TPU3TO0), | ||
1255 | GPIO_FN(LCDD0), GPIO_FN(PORT192_KEYOUT0), GPIO_FN(EXT_CKI), | ||
1256 | GPIO_FN(LCDD1), GPIO_FN(PORT193_KEYOUT1), GPIO_FN(PORT193_SCIFA5_CTS), | ||
1257 | GPIO_FN(BBIF2_TSYNC1), | ||
1258 | GPIO_FN(LCDD2), GPIO_FN(PORT194_KEYOUT2), GPIO_FN(PORT194_SCIFA5_RTS), | ||
1259 | GPIO_FN(BBIF2_TSCK1), | ||
1260 | GPIO_FN(LCDD3), GPIO_FN(PORT195_KEYOUT3), GPIO_FN(PORT195_SCIFA5_RXD), | ||
1261 | GPIO_FN(BBIF2_TXD1), | ||
1262 | GPIO_FN(LCDD4), GPIO_FN(PORT196_KEYOUT4), GPIO_FN(PORT196_SCIFA5_TXD), | ||
1263 | GPIO_FN(LCDD5), GPIO_FN(PORT197_KEYOUT5), GPIO_FN(PORT197_SCIFA5_SCK), | ||
1264 | GPIO_FN(MFG2_OUT2), | ||
1265 | GPIO_FN(LCDD6), | ||
1266 | GPIO_FN(LCDD7), GPIO_FN(TPU4TO1), GPIO_FN(MFG4_OUT2), | ||
1267 | GPIO_FN(LCDD8), GPIO_FN(PORT200_KEYIN0), GPIO_FN(VIO_DR0), | ||
1268 | GPIO_FN(D16), | ||
1269 | GPIO_FN(LCDD9), GPIO_FN(PORT201_KEYIN1), GPIO_FN(VIO_DR1), | ||
1270 | GPIO_FN(D17), | ||
1271 | GPIO_FN(LCDD10), GPIO_FN(PORT202_KEYIN2), GPIO_FN(VIO_DR2), | ||
1272 | GPIO_FN(D18), | ||
1273 | GPIO_FN(LCDD11), GPIO_FN(PORT203_KEYIN3), GPIO_FN(VIO_DR3), | ||
1274 | GPIO_FN(D19), | ||
1275 | GPIO_FN(LCDD12), GPIO_FN(PORT204_KEYIN4), GPIO_FN(VIO_DR4), | ||
1276 | GPIO_FN(D20), | ||
1277 | GPIO_FN(LCDD13), GPIO_FN(PORT205_KEYIN5), GPIO_FN(VIO_DR5), | ||
1278 | GPIO_FN(D21), | ||
1279 | GPIO_FN(LCDD14), GPIO_FN(PORT206_KEYIN6), GPIO_FN(VIO_DR6), | ||
1280 | GPIO_FN(D22), | ||
1281 | GPIO_FN(LCDD15), GPIO_FN(PORT207_MSIOF0L_SS1), GPIO_FN(PORT207_KEYOUT0), | ||
1282 | GPIO_FN(VIO_DR7), GPIO_FN(D23), | ||
1283 | GPIO_FN(LCDD16), GPIO_FN(PORT208_MSIOF0L_SS2), GPIO_FN(PORT208_KEYOUT1), | ||
1284 | GPIO_FN(VIO_VDR), GPIO_FN(D24), | ||
1285 | GPIO_FN(LCDD17), GPIO_FN(PORT209_KEYOUT2), GPIO_FN(VIO_HDR), | ||
1286 | GPIO_FN(D25), | ||
1287 | GPIO_FN(LCDD18), GPIO_FN(DREQ2), GPIO_FN(PORT210_MSIOF0L_SS1), | ||
1288 | GPIO_FN(D26), | ||
1289 | GPIO_FN(LCDD19), GPIO_FN(PORT211_MSIOF0L_SS2), GPIO_FN(D27), | ||
1290 | GPIO_FN(LCDD20), GPIO_FN(TS_SPSYNC1), GPIO_FN(MSIOF0L_MCK0), | ||
1291 | GPIO_FN(D28), | ||
1292 | GPIO_FN(LCDD21), GPIO_FN(TS_SDAT1), GPIO_FN(MSIOF0L_MCK1), | ||
1293 | GPIO_FN(D29), | ||
1294 | GPIO_FN(LCDD22), GPIO_FN(TS_SDEN1), GPIO_FN(MSIOF0L_RSCK), | ||
1295 | GPIO_FN(D30), | ||
1296 | GPIO_FN(LCDD23), GPIO_FN(TS_SCK1), GPIO_FN(MSIOF0L_RSYNC), | ||
1297 | GPIO_FN(D31), | ||
1298 | GPIO_FN(LCDDCK), GPIO_FN(LCDWR), GPIO_FN(PORT216_KEYOUT3), | ||
1299 | GPIO_FN(VIO_CLKR), | ||
1300 | GPIO_FN(LCDRD), GPIO_FN(DACK2), GPIO_FN(MSIOF0L_TSYNC), | ||
1301 | GPIO_FN(LCDHSYN), GPIO_FN(LCDCS), GPIO_FN(LCDCS2), GPIO_FN(DACK3), | ||
1302 | GPIO_FN(PORT218_VIO_CKOR), GPIO_FN(PORT218_KEYOUT4), | ||
1303 | GPIO_FN(LCDDISP), GPIO_FN(LCDRS), GPIO_FN(DREQ3), GPIO_FN(MSIOF0L_TSCK), | ||
1304 | GPIO_FN(LCDVSYN), GPIO_FN(LCDVSYN2), GPIO_FN(PORT220_KEYOUT5), | ||
1305 | GPIO_FN(LCDLCLK), GPIO_FN(DREQ1), GPIO_FN(PWEN), GPIO_FN(MSIOF0L_RXD), | ||
1306 | GPIO_FN(LCDDON), GPIO_FN(LCDDON2), GPIO_FN(DACK1), GPIO_FN(OVCN), | ||
1307 | GPIO_FN(MSIOF0L_TXD), | ||
1308 | GPIO_FN(SCIFA1_TXD), GPIO_FN(OVCN2), | ||
1309 | GPIO_FN(EXTLP), GPIO_FN(SCIFA1_SCK), GPIO_FN(USBTERM), | ||
1310 | GPIO_FN(PORT226_VIO_CKO2), | ||
1311 | GPIO_FN(SCIFA1_RTS), GPIO_FN(IDIN), | ||
1312 | GPIO_FN(SCIFA1_RXD), | ||
1313 | GPIO_FN(SCIFA1_CTS), GPIO_FN(MFG1_IN1), | ||
1314 | GPIO_FN(MSIOF1_TXD), GPIO_FN(SCIFA2_TXD2), GPIO_FN(PORT230_FSIAOMC), | ||
1315 | GPIO_FN(MSIOF1_TSYNC), GPIO_FN(SCIFA2_CTS2), GPIO_FN(PORT231_FSIAOLR), | ||
1316 | GPIO_FN(MSIOF1_TSCK), GPIO_FN(SCIFA2_SCK2), GPIO_FN(PORT232_FSIAOBT), | ||
1317 | GPIO_FN(MSIOF1_RXD), GPIO_FN(SCIFA2_RXD2), GPIO_FN(GPS_VCOTRIG), | ||
1318 | GPIO_FN(PORT233_FSIACK), | ||
1319 | GPIO_FN(MSIOF1_RSCK), GPIO_FN(SCIFA2_RTS2), GPIO_FN(PORT234_FSIAOSLD), | ||
1320 | GPIO_FN(MSIOF1_RSYNC), GPIO_FN(OPORT0), GPIO_FN(MFG1_IN2), | ||
1321 | GPIO_FN(PORT235_FSIAILR), | ||
1322 | GPIO_FN(MSIOF1_MCK0), GPIO_FN(I2C_SDA2), GPIO_FN(PORT236_FSIAIBT), | ||
1323 | GPIO_FN(MSIOF1_MCK1), GPIO_FN(I2C_SCL2), GPIO_FN(PORT237_FSIAISLD), | ||
1324 | GPIO_FN(MSIOF1_SS1), GPIO_FN(EDBGREQ3), | ||
1325 | |||
1326 | /* 55-5 (FN) */ | ||
1327 | GPIO_FN(MSIOF1_SS2), | ||
1328 | GPIO_FN(SCIFA6_TXD), | ||
1329 | GPIO_FN(PORT241_IRDA_OUT), GPIO_FN(PORT241_IROUT), GPIO_FN(MFG4_OUT1), | ||
1330 | GPIO_FN(TPU4TO0), | ||
1331 | GPIO_FN(PORT242_IRDA_IN), GPIO_FN(MFG4_IN2), | ||
1332 | GPIO_FN(PORT243_IRDA_FIRSEL), GPIO_FN(PORT243_VIO_CKO2), | ||
1333 | GPIO_FN(PORT244_SCIFA5_CTS), GPIO_FN(MFG2_IN1), | ||
1334 | GPIO_FN(PORT244_SCIFB_CTS), | ||
1335 | GPIO_FN(PORT245_SCIFA5_RTS), GPIO_FN(MFG2_IN2), | ||
1336 | GPIO_FN(PORT245_SCIFB_RTS), | ||
1337 | GPIO_FN(PORT246_SCIFA5_RXD), GPIO_FN(MFG1_OUT1), | ||
1338 | GPIO_FN(PORT246_SCIFB_RXD), GPIO_FN(TPU1TO0), | ||
1339 | GPIO_FN(PORT247_SCIFA5_TXD), GPIO_FN(MFG3_OUT2), | ||
1340 | GPIO_FN(PORT247_SCIFB_TXD), GPIO_FN(TPU3TO1), | ||
1341 | GPIO_FN(PORT248_SCIFA5_SCK), GPIO_FN(MFG2_OUT1), | ||
1342 | GPIO_FN(PORT248_SCIFB_SCK), GPIO_FN(TPU2TO0), | ||
1343 | GPIO_FN(PORT249_IROUT), GPIO_FN(MFG4_IN1), | ||
1344 | GPIO_FN(SDHICLK0), GPIO_FN(TCK2_SWCLK_MC0), | ||
1345 | GPIO_FN(SDHICD0), | ||
1346 | GPIO_FN(SDHID0_0), GPIO_FN(TMS2_SWDIO_MC0), | ||
1347 | GPIO_FN(SDHID0_1), GPIO_FN(TDO2_SWO0_MC0), | ||
1348 | GPIO_FN(SDHID0_2), GPIO_FN(TDI2), | ||
1349 | GPIO_FN(SDHID0_3), GPIO_FN(RTCK2_SWO1_MC0), | ||
1350 | GPIO_FN(SDHICMD0), GPIO_FN(TRST2), | ||
1351 | GPIO_FN(SDHIWP0), GPIO_FN(EDBGREQ2), | ||
1352 | GPIO_FN(SDHICLK1), GPIO_FN(TCK3_SWCLK_MC1), | ||
1353 | GPIO_FN(SDHID1_0), GPIO_FN(M11_SLCD_SO2), GPIO_FN(TS_SPSYNC2), | ||
1354 | GPIO_FN(TMS3_SWDIO_MC1), | ||
1355 | GPIO_FN(SDHID1_1), GPIO_FN(M9_SLCD_A02), GPIO_FN(TS_SDAT2), | ||
1356 | GPIO_FN(TDO3_SWO0_MC1), | ||
1357 | GPIO_FN(SDHID1_2), GPIO_FN(M10_SLCD_CK2), GPIO_FN(TS_SDEN2), | ||
1358 | GPIO_FN(TDI3), | ||
1359 | GPIO_FN(SDHID1_3), GPIO_FN(M12_SLCD_CE2), GPIO_FN(TS_SCK2), | ||
1360 | GPIO_FN(RTCK3_SWO1_MC1), | ||
1361 | GPIO_FN(SDHICMD1), GPIO_FN(TRST3), | ||
1362 | GPIO_FN(RESETOUTS), | ||
1363 | }; | ||
1364 | |||
1365 | /* helper for top 4 bits in PORTnCR */ | ||
1366 | #define PCRH(in, in_pd, in_pu, out) \ | ||
1367 | 0, (out), (in), 0, \ | ||
1368 | 0, 0, 0, 0, \ | ||
1369 | 0, 0, (in_pd), 0, \ | ||
1370 | 0, 0, (in_pu), 0 | ||
1371 | |||
1372 | #define PORTCR(nr, reg) \ | ||
1373 | { PINMUX_CFG_REG("PORT" nr "CR", reg, 8, 4) { \ | ||
1374 | PCRH(PORT##nr##_IN, PORT##nr##_IN_PD, \ | ||
1375 | PORT##nr##_IN_PU, PORT##nr##_OUT), \ | ||
1376 | PORT##nr##_FN0, PORT##nr##_FN1, \ | ||
1377 | PORT##nr##_FN2, PORT##nr##_FN3, \ | ||
1378 | PORT##nr##_FN4, PORT##nr##_FN5, \ | ||
1379 | PORT##nr##_FN6, PORT##nr##_FN7 } \ | ||
1380 | } | ||
1381 | |||
1382 | static struct pinmux_cfg_reg pinmux_config_regs[] = { | ||
1383 | PORTCR(0, 0xe6050000), /* PORT0CR */ | ||
1384 | PORTCR(1, 0xe6050001), /* PORT1CR */ | ||
1385 | PORTCR(2, 0xe6050002), /* PORT2CR */ | ||
1386 | PORTCR(3, 0xe6050003), /* PORT3CR */ | ||
1387 | PORTCR(4, 0xe6050004), /* PORT4CR */ | ||
1388 | PORTCR(5, 0xe6050005), /* PORT5CR */ | ||
1389 | PORTCR(6, 0xe6050006), /* PORT6CR */ | ||
1390 | PORTCR(7, 0xe6050007), /* PORT7CR */ | ||
1391 | PORTCR(8, 0xe6050008), /* PORT8CR */ | ||
1392 | PORTCR(9, 0xe6050009), /* PORT9CR */ | ||
1393 | |||
1394 | PORTCR(10, 0xe605000a), /* PORT10CR */ | ||
1395 | PORTCR(11, 0xe605000b), /* PORT11CR */ | ||
1396 | PORTCR(12, 0xe605000c), /* PORT12CR */ | ||
1397 | PORTCR(13, 0xe605000d), /* PORT13CR */ | ||
1398 | PORTCR(14, 0xe605000e), /* PORT14CR */ | ||
1399 | PORTCR(15, 0xe605000f), /* PORT15CR */ | ||
1400 | PORTCR(16, 0xe6050010), /* PORT16CR */ | ||
1401 | PORTCR(17, 0xe6050011), /* PORT17CR */ | ||
1402 | PORTCR(18, 0xe6050012), /* PORT18CR */ | ||
1403 | PORTCR(19, 0xe6050013), /* PORT19CR */ | ||
1404 | |||
1405 | PORTCR(20, 0xe6050014), /* PORT20CR */ | ||
1406 | PORTCR(21, 0xe6050015), /* PORT21CR */ | ||
1407 | PORTCR(22, 0xe6050016), /* PORT22CR */ | ||
1408 | PORTCR(23, 0xe6050017), /* PORT23CR */ | ||
1409 | PORTCR(24, 0xe6050018), /* PORT24CR */ | ||
1410 | PORTCR(25, 0xe6050019), /* PORT25CR */ | ||
1411 | PORTCR(26, 0xe605001a), /* PORT26CR */ | ||
1412 | PORTCR(27, 0xe605001b), /* PORT27CR */ | ||
1413 | PORTCR(28, 0xe605001c), /* PORT28CR */ | ||
1414 | PORTCR(29, 0xe605001d), /* PORT29CR */ | ||
1415 | |||
1416 | PORTCR(30, 0xe605001e), /* PORT30CR */ | ||
1417 | PORTCR(31, 0xe605001f), /* PORT31CR */ | ||
1418 | PORTCR(32, 0xe6050020), /* PORT32CR */ | ||
1419 | PORTCR(33, 0xe6050021), /* PORT33CR */ | ||
1420 | PORTCR(34, 0xe6050022), /* PORT34CR */ | ||
1421 | PORTCR(35, 0xe6050023), /* PORT35CR */ | ||
1422 | PORTCR(36, 0xe6050024), /* PORT36CR */ | ||
1423 | PORTCR(37, 0xe6050025), /* PORT37CR */ | ||
1424 | PORTCR(38, 0xe6050026), /* PORT38CR */ | ||
1425 | PORTCR(39, 0xe6050027), /* PORT39CR */ | ||
1426 | |||
1427 | PORTCR(40, 0xe6050028), /* PORT40CR */ | ||
1428 | PORTCR(41, 0xe6050029), /* PORT41CR */ | ||
1429 | PORTCR(42, 0xe605002a), /* PORT42CR */ | ||
1430 | PORTCR(43, 0xe605002b), /* PORT43CR */ | ||
1431 | PORTCR(44, 0xe605002c), /* PORT44CR */ | ||
1432 | PORTCR(45, 0xe605002d), /* PORT45CR */ | ||
1433 | PORTCR(46, 0xe605002e), /* PORT46CR */ | ||
1434 | PORTCR(47, 0xe605002f), /* PORT47CR */ | ||
1435 | PORTCR(48, 0xe6050030), /* PORT48CR */ | ||
1436 | PORTCR(49, 0xe6050031), /* PORT49CR */ | ||
1437 | |||
1438 | PORTCR(50, 0xe6050032), /* PORT50CR */ | ||
1439 | PORTCR(51, 0xe6050033), /* PORT51CR */ | ||
1440 | PORTCR(52, 0xe6050034), /* PORT52CR */ | ||
1441 | PORTCR(53, 0xe6050035), /* PORT53CR */ | ||
1442 | PORTCR(54, 0xe6050036), /* PORT54CR */ | ||
1443 | PORTCR(55, 0xe6050037), /* PORT55CR */ | ||
1444 | PORTCR(56, 0xe6050038), /* PORT56CR */ | ||
1445 | PORTCR(57, 0xe6050039), /* PORT57CR */ | ||
1446 | PORTCR(58, 0xe605003a), /* PORT58CR */ | ||
1447 | PORTCR(59, 0xe605003b), /* PORT59CR */ | ||
1448 | |||
1449 | PORTCR(60, 0xe605003c), /* PORT60CR */ | ||
1450 | PORTCR(61, 0xe605003d), /* PORT61CR */ | ||
1451 | PORTCR(62, 0xe605003e), /* PORT62CR */ | ||
1452 | PORTCR(63, 0xe605003f), /* PORT63CR */ | ||
1453 | PORTCR(64, 0xe6050040), /* PORT64CR */ | ||
1454 | PORTCR(65, 0xe6050041), /* PORT65CR */ | ||
1455 | PORTCR(66, 0xe6050042), /* PORT66CR */ | ||
1456 | PORTCR(67, 0xe6050043), /* PORT67CR */ | ||
1457 | PORTCR(68, 0xe6050044), /* PORT68CR */ | ||
1458 | PORTCR(69, 0xe6050045), /* PORT69CR */ | ||
1459 | |||
1460 | PORTCR(70, 0xe6050046), /* PORT70CR */ | ||
1461 | PORTCR(71, 0xe6050047), /* PORT71CR */ | ||
1462 | PORTCR(72, 0xe6050048), /* PORT72CR */ | ||
1463 | PORTCR(73, 0xe6050049), /* PORT73CR */ | ||
1464 | PORTCR(74, 0xe605004a), /* PORT74CR */ | ||
1465 | PORTCR(75, 0xe605004b), /* PORT75CR */ | ||
1466 | PORTCR(76, 0xe605004c), /* PORT76CR */ | ||
1467 | PORTCR(77, 0xe605004d), /* PORT77CR */ | ||
1468 | PORTCR(78, 0xe605004e), /* PORT78CR */ | ||
1469 | PORTCR(79, 0xe605004f), /* PORT79CR */ | ||
1470 | |||
1471 | PORTCR(80, 0xe6050050), /* PORT80CR */ | ||
1472 | PORTCR(81, 0xe6050051), /* PORT81CR */ | ||
1473 | PORTCR(82, 0xe6050052), /* PORT82CR */ | ||
1474 | PORTCR(83, 0xe6050053), /* PORT83CR */ | ||
1475 | PORTCR(84, 0xe6050054), /* PORT84CR */ | ||
1476 | PORTCR(85, 0xe6050055), /* PORT85CR */ | ||
1477 | PORTCR(86, 0xe6050056), /* PORT86CR */ | ||
1478 | PORTCR(87, 0xe6050057), /* PORT87CR */ | ||
1479 | PORTCR(88, 0xe6050058), /* PORT88CR */ | ||
1480 | PORTCR(89, 0xe6050059), /* PORT89CR */ | ||
1481 | |||
1482 | PORTCR(90, 0xe605005a), /* PORT90CR */ | ||
1483 | PORTCR(91, 0xe605005b), /* PORT91CR */ | ||
1484 | PORTCR(92, 0xe605005c), /* PORT92CR */ | ||
1485 | PORTCR(93, 0xe605005d), /* PORT93CR */ | ||
1486 | PORTCR(94, 0xe605005e), /* PORT94CR */ | ||
1487 | PORTCR(95, 0xe605005f), /* PORT95CR */ | ||
1488 | PORTCR(96, 0xe6050060), /* PORT96CR */ | ||
1489 | PORTCR(97, 0xe6050061), /* PORT97CR */ | ||
1490 | PORTCR(98, 0xe6050062), /* PORT98CR */ | ||
1491 | PORTCR(99, 0xe6050063), /* PORT99CR */ | ||
1492 | |||
1493 | PORTCR(100, 0xe6050064), /* PORT100CR */ | ||
1494 | PORTCR(101, 0xe6050065), /* PORT101CR */ | ||
1495 | PORTCR(102, 0xe6050066), /* PORT102CR */ | ||
1496 | PORTCR(103, 0xe6050067), /* PORT103CR */ | ||
1497 | PORTCR(104, 0xe6050068), /* PORT104CR */ | ||
1498 | PORTCR(105, 0xe6050069), /* PORT105CR */ | ||
1499 | PORTCR(106, 0xe605006a), /* PORT106CR */ | ||
1500 | PORTCR(107, 0xe605006b), /* PORT107CR */ | ||
1501 | PORTCR(108, 0xe605006c), /* PORT108CR */ | ||
1502 | PORTCR(109, 0xe605006d), /* PORT109CR */ | ||
1503 | |||
1504 | PORTCR(110, 0xe605006e), /* PORT110CR */ | ||
1505 | PORTCR(111, 0xe605006f), /* PORT111CR */ | ||
1506 | PORTCR(112, 0xe6050070), /* PORT112CR */ | ||
1507 | PORTCR(113, 0xe6050071), /* PORT113CR */ | ||
1508 | PORTCR(114, 0xe6050072), /* PORT114CR */ | ||
1509 | PORTCR(115, 0xe6050073), /* PORT115CR */ | ||
1510 | PORTCR(116, 0xe6050074), /* PORT116CR */ | ||
1511 | PORTCR(117, 0xe6050075), /* PORT117CR */ | ||
1512 | PORTCR(118, 0xe6050076), /* PORT118CR */ | ||
1513 | |||
1514 | PORTCR(128, 0xe6051080), /* PORT128CR */ | ||
1515 | PORTCR(129, 0xe6051081), /* PORT129CR */ | ||
1516 | |||
1517 | PORTCR(130, 0xe6051082), /* PORT130CR */ | ||
1518 | PORTCR(131, 0xe6051083), /* PORT131CR */ | ||
1519 | PORTCR(132, 0xe6051084), /* PORT132CR */ | ||
1520 | PORTCR(133, 0xe6051085), /* PORT133CR */ | ||
1521 | PORTCR(134, 0xe6051086), /* PORT134CR */ | ||
1522 | PORTCR(135, 0xe6051087), /* PORT135CR */ | ||
1523 | PORTCR(136, 0xe6051088), /* PORT136CR */ | ||
1524 | PORTCR(137, 0xe6051089), /* PORT137CR */ | ||
1525 | PORTCR(138, 0xe605108a), /* PORT138CR */ | ||
1526 | PORTCR(139, 0xe605108b), /* PORT139CR */ | ||
1527 | |||
1528 | PORTCR(140, 0xe605108c), /* PORT140CR */ | ||
1529 | PORTCR(141, 0xe605108d), /* PORT141CR */ | ||
1530 | PORTCR(142, 0xe605108e), /* PORT142CR */ | ||
1531 | PORTCR(143, 0xe605108f), /* PORT143CR */ | ||
1532 | PORTCR(144, 0xe6051090), /* PORT144CR */ | ||
1533 | PORTCR(145, 0xe6051091), /* PORT145CR */ | ||
1534 | PORTCR(146, 0xe6051092), /* PORT146CR */ | ||
1535 | PORTCR(147, 0xe6051093), /* PORT147CR */ | ||
1536 | PORTCR(148, 0xe6051094), /* PORT148CR */ | ||
1537 | PORTCR(149, 0xe6051095), /* PORT149CR */ | ||
1538 | |||
1539 | PORTCR(150, 0xe6051096), /* PORT150CR */ | ||
1540 | PORTCR(151, 0xe6051097), /* PORT151CR */ | ||
1541 | PORTCR(152, 0xe6051098), /* PORT152CR */ | ||
1542 | PORTCR(153, 0xe6051099), /* PORT153CR */ | ||
1543 | PORTCR(154, 0xe605109a), /* PORT154CR */ | ||
1544 | PORTCR(155, 0xe605109b), /* PORT155CR */ | ||
1545 | PORTCR(156, 0xe605109c), /* PORT156CR */ | ||
1546 | PORTCR(157, 0xe605109d), /* PORT157CR */ | ||
1547 | PORTCR(158, 0xe605109e), /* PORT158CR */ | ||
1548 | PORTCR(159, 0xe605109f), /* PORT159CR */ | ||
1549 | |||
1550 | PORTCR(160, 0xe60510a0), /* PORT160CR */ | ||
1551 | PORTCR(161, 0xe60510a1), /* PORT161CR */ | ||
1552 | PORTCR(162, 0xe60510a2), /* PORT162CR */ | ||
1553 | PORTCR(163, 0xe60510a3), /* PORT163CR */ | ||
1554 | PORTCR(164, 0xe60510a4), /* PORT164CR */ | ||
1555 | |||
1556 | PORTCR(192, 0xe60520c0), /* PORT192CR */ | ||
1557 | PORTCR(193, 0xe60520c1), /* PORT193CR */ | ||
1558 | PORTCR(194, 0xe60520c2), /* PORT194CR */ | ||
1559 | PORTCR(195, 0xe60520c3), /* PORT195CR */ | ||
1560 | PORTCR(196, 0xe60520c4), /* PORT196CR */ | ||
1561 | PORTCR(197, 0xe60520c5), /* PORT197CR */ | ||
1562 | PORTCR(198, 0xe60520c6), /* PORT198CR */ | ||
1563 | PORTCR(199, 0xe60520c7), /* PORT199CR */ | ||
1564 | |||
1565 | PORTCR(200, 0xe60520c8), /* PORT200CR */ | ||
1566 | PORTCR(201, 0xe60520c9), /* PORT201CR */ | ||
1567 | PORTCR(202, 0xe60520ca), /* PORT202CR */ | ||
1568 | PORTCR(203, 0xe60520cb), /* PORT203CR */ | ||
1569 | PORTCR(204, 0xe60520cc), /* PORT204CR */ | ||
1570 | PORTCR(205, 0xe60520cd), /* PORT205CR */ | ||
1571 | PORTCR(206, 0xe60520ce), /* PORT206CR */ | ||
1572 | PORTCR(207, 0xe60520cf), /* PORT207CR */ | ||
1573 | PORTCR(208, 0xe60520d0), /* PORT208CR */ | ||
1574 | PORTCR(209, 0xe60520d1), /* PORT209CR */ | ||
1575 | |||
1576 | PORTCR(210, 0xe60520d2), /* PORT210CR */ | ||
1577 | PORTCR(211, 0xe60520d3), /* PORT211CR */ | ||
1578 | PORTCR(212, 0xe60520d4), /* PORT212CR */ | ||
1579 | PORTCR(213, 0xe60520d5), /* PORT213CR */ | ||
1580 | PORTCR(214, 0xe60520d6), /* PORT214CR */ | ||
1581 | PORTCR(215, 0xe60520d7), /* PORT215CR */ | ||
1582 | PORTCR(216, 0xe60520d8), /* PORT216CR */ | ||
1583 | PORTCR(217, 0xe60520d9), /* PORT217CR */ | ||
1584 | PORTCR(218, 0xe60520da), /* PORT218CR */ | ||
1585 | PORTCR(219, 0xe60520db), /* PORT219CR */ | ||
1586 | |||
1587 | PORTCR(220, 0xe60520dc), /* PORT220CR */ | ||
1588 | PORTCR(221, 0xe60520dd), /* PORT221CR */ | ||
1589 | PORTCR(222, 0xe60520de), /* PORT222CR */ | ||
1590 | PORTCR(223, 0xe60520df), /* PORT223CR */ | ||
1591 | PORTCR(224, 0xe60520e0), /* PORT224CR */ | ||
1592 | PORTCR(225, 0xe60520e1), /* PORT225CR */ | ||
1593 | PORTCR(226, 0xe60520e2), /* PORT226CR */ | ||
1594 | PORTCR(227, 0xe60520e3), /* PORT227CR */ | ||
1595 | PORTCR(228, 0xe60520e4), /* PORT228CR */ | ||
1596 | PORTCR(229, 0xe60520e5), /* PORT229CR */ | ||
1597 | |||
1598 | PORTCR(230, 0xe60520e6), /* PORT230CR */ | ||
1599 | PORTCR(231, 0xe60520e7), /* PORT231CR */ | ||
1600 | PORTCR(232, 0xe60520e8), /* PORT232CR */ | ||
1601 | PORTCR(233, 0xe60520e9), /* PORT233CR */ | ||
1602 | PORTCR(234, 0xe60520ea), /* PORT234CR */ | ||
1603 | PORTCR(235, 0xe60520eb), /* PORT235CR */ | ||
1604 | PORTCR(236, 0xe60520ec), /* PORT236CR */ | ||
1605 | PORTCR(237, 0xe60520ed), /* PORT237CR */ | ||
1606 | PORTCR(238, 0xe60520ee), /* PORT238CR */ | ||
1607 | PORTCR(239, 0xe60520ef), /* PORT239CR */ | ||
1608 | |||
1609 | PORTCR(240, 0xe60520f0), /* PORT240CR */ | ||
1610 | PORTCR(241, 0xe60520f1), /* PORT241CR */ | ||
1611 | PORTCR(242, 0xe60520f2), /* PORT242CR */ | ||
1612 | PORTCR(243, 0xe60520f3), /* PORT243CR */ | ||
1613 | PORTCR(244, 0xe60520f4), /* PORT244CR */ | ||
1614 | PORTCR(245, 0xe60520f5), /* PORT245CR */ | ||
1615 | PORTCR(246, 0xe60520f6), /* PORT246CR */ | ||
1616 | PORTCR(247, 0xe60520f7), /* PORT247CR */ | ||
1617 | PORTCR(248, 0xe60520f8), /* PORT248CR */ | ||
1618 | PORTCR(249, 0xe60520f9), /* PORT249CR */ | ||
1619 | |||
1620 | PORTCR(250, 0xe60520fa), /* PORT250CR */ | ||
1621 | PORTCR(251, 0xe60520fb), /* PORT251CR */ | ||
1622 | PORTCR(252, 0xe60520fc), /* PORT252CR */ | ||
1623 | PORTCR(253, 0xe60520fd), /* PORT253CR */ | ||
1624 | PORTCR(254, 0xe60520fe), /* PORT254CR */ | ||
1625 | PORTCR(255, 0xe60520ff), /* PORT255CR */ | ||
1626 | PORTCR(256, 0xe6052100), /* PORT256CR */ | ||
1627 | PORTCR(257, 0xe6052101), /* PORT257CR */ | ||
1628 | PORTCR(258, 0xe6052102), /* PORT258CR */ | ||
1629 | PORTCR(259, 0xe6052103), /* PORT259CR */ | ||
1630 | |||
1631 | PORTCR(260, 0xe6052104), /* PORT260CR */ | ||
1632 | PORTCR(261, 0xe6052105), /* PORT261CR */ | ||
1633 | PORTCR(262, 0xe6052106), /* PORT262CR */ | ||
1634 | PORTCR(263, 0xe6052107), /* PORT263CR */ | ||
1635 | PORTCR(264, 0xe6052108), /* PORT264CR */ | ||
1636 | |||
1637 | { PINMUX_CFG_REG("MSELBCR", 0xe6058024, 32, 1) { | ||
1638 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1639 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1640 | MSELBCR_MSEL17_0, MSELBCR_MSEL17_1, | ||
1641 | MSELBCR_MSEL16_0, MSELBCR_MSEL16_1, | ||
1642 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | ||
1643 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
1644 | }, | ||
1645 | { }, | ||
1646 | }; | ||
1647 | |||
1648 | static struct pinmux_data_reg pinmux_data_regs[] = { | ||
1649 | { PINMUX_DATA_REG("PORTL031_000DR", 0xe6054000, 32) { | ||
1650 | PORT31_DATA, PORT30_DATA, PORT29_DATA, PORT28_DATA, | ||
1651 | PORT27_DATA, PORT26_DATA, PORT25_DATA, PORT24_DATA, | ||
1652 | PORT23_DATA, PORT22_DATA, PORT21_DATA, PORT20_DATA, | ||
1653 | PORT19_DATA, PORT18_DATA, PORT17_DATA, PORT16_DATA, | ||
1654 | PORT15_DATA, PORT14_DATA, PORT13_DATA, PORT12_DATA, | ||
1655 | PORT11_DATA, PORT10_DATA, PORT9_DATA, PORT8_DATA, | ||
1656 | PORT7_DATA, PORT6_DATA, PORT5_DATA, PORT4_DATA, | ||
1657 | PORT3_DATA, PORT2_DATA, PORT1_DATA, PORT0_DATA } | ||
1658 | }, | ||
1659 | { PINMUX_DATA_REG("PORTL063_032DR", 0xe6054004, 32) { | ||
1660 | PORT63_DATA, PORT62_DATA, PORT61_DATA, PORT60_DATA, | ||
1661 | PORT59_DATA, PORT58_DATA, PORT57_DATA, PORT56_DATA, | ||
1662 | PORT55_DATA, PORT54_DATA, PORT53_DATA, PORT52_DATA, | ||
1663 | PORT51_DATA, PORT50_DATA, PORT49_DATA, PORT48_DATA, | ||
1664 | PORT47_DATA, PORT46_DATA, PORT45_DATA, PORT44_DATA, | ||
1665 | PORT43_DATA, PORT42_DATA, PORT41_DATA, PORT40_DATA, | ||
1666 | PORT39_DATA, PORT38_DATA, PORT37_DATA, PORT36_DATA, | ||
1667 | PORT35_DATA, PORT34_DATA, PORT33_DATA, PORT32_DATA } | ||
1668 | }, | ||
1669 | { PINMUX_DATA_REG("PORTL095_064DR", 0xe6054008, 32) { | ||
1670 | PORT95_DATA, PORT94_DATA, PORT93_DATA, PORT92_DATA, | ||
1671 | PORT91_DATA, PORT90_DATA, PORT89_DATA, PORT88_DATA, | ||
1672 | PORT87_DATA, PORT86_DATA, PORT85_DATA, PORT84_DATA, | ||
1673 | PORT83_DATA, PORT82_DATA, PORT81_DATA, PORT80_DATA, | ||
1674 | PORT79_DATA, PORT78_DATA, PORT77_DATA, PORT76_DATA, | ||
1675 | PORT75_DATA, PORT74_DATA, PORT73_DATA, PORT72_DATA, | ||
1676 | PORT71_DATA, PORT70_DATA, PORT69_DATA, PORT68_DATA, | ||
1677 | PORT67_DATA, PORT66_DATA, PORT65_DATA, PORT64_DATA } | ||
1678 | }, | ||
1679 | { PINMUX_DATA_REG("PORTD127_096DR", 0xe605400C, 32) { | ||
1680 | 0, 0, 0, 0, | ||
1681 | 0, 0, 0, 0, | ||
1682 | 0, PORT118_DATA, PORT117_DATA, PORT116_DATA, | ||
1683 | PORT115_DATA, PORT114_DATA, PORT113_DATA, PORT112_DATA, | ||
1684 | PORT111_DATA, PORT110_DATA, PORT109_DATA, PORT108_DATA, | ||
1685 | PORT107_DATA, PORT106_DATA, PORT105_DATA, PORT104_DATA, | ||
1686 | PORT103_DATA, PORT102_DATA, PORT101_DATA, PORT100_DATA, | ||
1687 | PORT99_DATA, PORT98_DATA, PORT97_DATA, PORT96_DATA } | ||
1688 | }, | ||
1689 | { PINMUX_DATA_REG("PORTD159_128DR", 0xe6055000, 32) { | ||
1690 | PORT159_DATA, PORT158_DATA, PORT157_DATA, PORT156_DATA, | ||
1691 | PORT155_DATA, PORT154_DATA, PORT153_DATA, PORT152_DATA, | ||
1692 | PORT151_DATA, PORT150_DATA, PORT149_DATA, PORT148_DATA, | ||
1693 | PORT147_DATA, PORT146_DATA, PORT145_DATA, PORT144_DATA, | ||
1694 | PORT143_DATA, PORT142_DATA, PORT141_DATA, PORT140_DATA, | ||
1695 | PORT139_DATA, PORT138_DATA, PORT137_DATA, PORT136_DATA, | ||
1696 | PORT135_DATA, PORT134_DATA, PORT133_DATA, PORT132_DATA, | ||
1697 | PORT131_DATA, PORT130_DATA, PORT129_DATA, PORT128_DATA } | ||
1698 | }, | ||
1699 | { PINMUX_DATA_REG("PORTR191_160DR", 0xe6055004, 32) { | ||
1700 | 0, 0, 0, 0, | ||
1701 | 0, 0, 0, 0, | ||
1702 | 0, 0, 0, 0, | ||
1703 | 0, 0, 0, 0, | ||
1704 | 0, 0, 0, 0, | ||
1705 | 0, 0, 0, 0, | ||
1706 | 0, 0, 0, PORT164_DATA, | ||
1707 | PORT163_DATA, PORT162_DATA, PORT161_DATA, PORT160_DATA } | ||
1708 | }, | ||
1709 | { PINMUX_DATA_REG("PORTR223_192DR", 0xe6056000, 32) { | ||
1710 | PORT223_DATA, PORT222_DATA, PORT221_DATA, PORT220_DATA, | ||
1711 | PORT219_DATA, PORT218_DATA, PORT217_DATA, PORT216_DATA, | ||
1712 | PORT215_DATA, PORT214_DATA, PORT213_DATA, PORT212_DATA, | ||
1713 | PORT211_DATA, PORT210_DATA, PORT209_DATA, PORT208_DATA, | ||
1714 | PORT207_DATA, PORT206_DATA, PORT205_DATA, PORT204_DATA, | ||
1715 | PORT203_DATA, PORT202_DATA, PORT201_DATA, PORT200_DATA, | ||
1716 | PORT199_DATA, PORT198_DATA, PORT197_DATA, PORT196_DATA, | ||
1717 | PORT195_DATA, PORT194_DATA, PORT193_DATA, PORT192_DATA } | ||
1718 | }, | ||
1719 | { PINMUX_DATA_REG("PORTU255_224DR", 0xe6056004, 32) { | ||
1720 | PORT255_DATA, PORT254_DATA, PORT253_DATA, PORT252_DATA, | ||
1721 | PORT251_DATA, PORT250_DATA, PORT249_DATA, PORT248_DATA, | ||
1722 | PORT247_DATA, PORT246_DATA, PORT245_DATA, PORT244_DATA, | ||
1723 | PORT243_DATA, PORT242_DATA, PORT241_DATA, PORT240_DATA, | ||
1724 | PORT239_DATA, PORT238_DATA, PORT237_DATA, PORT236_DATA, | ||
1725 | PORT235_DATA, PORT234_DATA, PORT233_DATA, PORT232_DATA, | ||
1726 | PORT231_DATA, PORT230_DATA, PORT229_DATA, PORT228_DATA, | ||
1727 | PORT227_DATA, PORT226_DATA, PORT225_DATA, PORT224_DATA } | ||
1728 | }, | ||
1729 | { PINMUX_DATA_REG("PORTU287_256DR", 0xe6056008, 32) { | ||
1730 | 0, 0, 0, 0, | ||
1731 | 0, 0, 0, 0, | ||
1732 | 0, 0, 0, 0, | ||
1733 | 0, 0, 0, 0, | ||
1734 | 0, 0, 0, 0, | ||
1735 | 0, 0, 0, PORT264_DATA, | ||
1736 | PORT263_DATA, PORT262_DATA, PORT261_DATA, PORT260_DATA, | ||
1737 | PORT259_DATA, PORT258_DATA, PORT257_DATA, PORT256_DATA } | ||
1738 | }, | ||
1739 | { }, | ||
1740 | }; | ||
1741 | |||
1742 | static struct pinmux_info sh7377_pinmux_info = { | ||
1743 | .name = "sh7377_pfc", | ||
1744 | .reserved_id = PINMUX_RESERVED, | ||
1745 | .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END }, | ||
1746 | .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, | ||
1747 | .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END }, | ||
1748 | .input_pd = { PINMUX_INPUT_PULLDOWN_BEGIN, PINMUX_INPUT_PULLDOWN_END }, | ||
1749 | .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, | ||
1750 | .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END }, | ||
1751 | .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, | ||
1752 | |||
1753 | .first_gpio = GPIO_PORT0, | ||
1754 | .last_gpio = GPIO_FN_RESETOUTS, | ||
1755 | |||
1756 | .gpios = pinmux_gpios, | ||
1757 | .cfg_regs = pinmux_config_regs, | ||
1758 | .data_regs = pinmux_data_regs, | ||
1759 | |||
1760 | .gpio_data = pinmux_data, | ||
1761 | .gpio_data_size = ARRAY_SIZE(pinmux_data), | ||
1762 | }; | ||
1763 | |||
1764 | void sh7377_pinmux_init(void) | ||
1765 | { | ||
1766 | register_pinmux(&sh7377_pinmux_info); | ||
1767 | } | ||
diff --git a/arch/arm/mach-shmobile/setup-sh7367.c b/arch/arm/mach-shmobile/setup-sh7367.c new file mode 100644 index 00000000000..eca90716140 --- /dev/null +++ b/arch/arm/mach-shmobile/setup-sh7367.c | |||
@@ -0,0 +1,198 @@ | |||
1 | /* | ||
2 | * sh7367 processor support | ||
3 | * | ||
4 | * Copyright (C) 2010 Magnus Damm | ||
5 | * Copyright (C) 2008 Yoshihiro Shimoda | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; version 2 of the License. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
19 | */ | ||
20 | #include <linux/kernel.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/interrupt.h> | ||
23 | #include <linux/irq.h> | ||
24 | #include <linux/platform_device.h> | ||
25 | #include <linux/delay.h> | ||
26 | #include <linux/input.h> | ||
27 | #include <linux/io.h> | ||
28 | #include <linux/serial_sci.h> | ||
29 | #include <linux/sh_timer.h> | ||
30 | #include <mach/hardware.h> | ||
31 | #include <asm/mach-types.h> | ||
32 | #include <asm/mach/arch.h> | ||
33 | |||
34 | static struct plat_sci_port scif0_platform_data = { | ||
35 | .mapbase = 0xe6c40000, | ||
36 | .flags = UPF_BOOT_AUTOCONF, | ||
37 | .type = PORT_SCIF, | ||
38 | .irqs = { 80, 80, 80, 80 }, | ||
39 | }; | ||
40 | |||
41 | static struct platform_device scif0_device = { | ||
42 | .name = "sh-sci", | ||
43 | .id = 0, | ||
44 | .dev = { | ||
45 | .platform_data = &scif0_platform_data, | ||
46 | }, | ||
47 | }; | ||
48 | |||
49 | static struct plat_sci_port scif1_platform_data = { | ||
50 | .mapbase = 0xe6c50000, | ||
51 | .flags = UPF_BOOT_AUTOCONF, | ||
52 | .type = PORT_SCIF, | ||
53 | .irqs = { 81, 81, 81, 81 }, | ||
54 | }; | ||
55 | |||
56 | static struct platform_device scif1_device = { | ||
57 | .name = "sh-sci", | ||
58 | .id = 1, | ||
59 | .dev = { | ||
60 | .platform_data = &scif1_platform_data, | ||
61 | }, | ||
62 | }; | ||
63 | |||
64 | static struct plat_sci_port scif2_platform_data = { | ||
65 | .mapbase = 0xe6c60000, | ||
66 | .flags = UPF_BOOT_AUTOCONF, | ||
67 | .type = PORT_SCIF, | ||
68 | .irqs = { 82, 82, 82, 82 }, | ||
69 | }; | ||
70 | |||
71 | static struct platform_device scif2_device = { | ||
72 | .name = "sh-sci", | ||
73 | .id = 2, | ||
74 | .dev = { | ||
75 | .platform_data = &scif2_platform_data, | ||
76 | }, | ||
77 | }; | ||
78 | |||
79 | static struct plat_sci_port scif3_platform_data = { | ||
80 | .mapbase = 0xe6c70000, | ||
81 | .flags = UPF_BOOT_AUTOCONF, | ||
82 | .type = PORT_SCIF, | ||
83 | .irqs = { 83, 83, 83, 83 }, | ||
84 | }; | ||
85 | |||
86 | static struct platform_device scif3_device = { | ||
87 | .name = "sh-sci", | ||
88 | .id = 3, | ||
89 | .dev = { | ||
90 | .platform_data = &scif3_platform_data, | ||
91 | }, | ||
92 | }; | ||
93 | |||
94 | static struct plat_sci_port scif4_platform_data = { | ||
95 | .mapbase = 0xe6c80000, | ||
96 | .flags = UPF_BOOT_AUTOCONF, | ||
97 | .type = PORT_SCIF, | ||
98 | .irqs = { 89, 89, 89, 89 }, | ||
99 | }; | ||
100 | |||
101 | static struct platform_device scif4_device = { | ||
102 | .name = "sh-sci", | ||
103 | .id = 4, | ||
104 | .dev = { | ||
105 | .platform_data = &scif4_platform_data, | ||
106 | }, | ||
107 | }; | ||
108 | |||
109 | static struct plat_sci_port scif5_platform_data = { | ||
110 | .mapbase = 0xe6cb0000, | ||
111 | .flags = UPF_BOOT_AUTOCONF, | ||
112 | .type = PORT_SCIF, | ||
113 | .irqs = { 90, 90, 90, 90 }, | ||
114 | }; | ||
115 | |||
116 | static struct platform_device scif5_device = { | ||
117 | .name = "sh-sci", | ||
118 | .id = 5, | ||
119 | .dev = { | ||
120 | .platform_data = &scif5_platform_data, | ||
121 | }, | ||
122 | }; | ||
123 | |||
124 | static struct plat_sci_port scif6_platform_data = { | ||
125 | .mapbase = 0xe6c30000, | ||
126 | .flags = UPF_BOOT_AUTOCONF, | ||
127 | .type = PORT_SCIF, | ||
128 | .irqs = { 91, 91, 91, 91 }, | ||
129 | }; | ||
130 | |||
131 | static struct platform_device scif6_device = { | ||
132 | .name = "sh-sci", | ||
133 | .id = 6, | ||
134 | .dev = { | ||
135 | .platform_data = &scif6_platform_data, | ||
136 | }, | ||
137 | }; | ||
138 | |||
139 | static struct sh_timer_config cmt10_platform_data = { | ||
140 | .name = "CMT10", | ||
141 | .channel_offset = 0x10, | ||
142 | .timer_bit = 0, | ||
143 | .clk = "r_clk", | ||
144 | .clockevent_rating = 125, | ||
145 | .clocksource_rating = 125, | ||
146 | }; | ||
147 | |||
148 | static struct resource cmt10_resources[] = { | ||
149 | [0] = { | ||
150 | .name = "CMT10", | ||
151 | .start = 0xe6138010, | ||
152 | .end = 0xe613801b, | ||
153 | .flags = IORESOURCE_MEM, | ||
154 | }, | ||
155 | [1] = { | ||
156 | .start = 72, | ||
157 | .flags = IORESOURCE_IRQ, | ||
158 | }, | ||
159 | }; | ||
160 | |||
161 | static struct platform_device cmt10_device = { | ||
162 | .name = "sh_cmt", | ||
163 | .id = 10, | ||
164 | .dev = { | ||
165 | .platform_data = &cmt10_platform_data, | ||
166 | }, | ||
167 | .resource = cmt10_resources, | ||
168 | .num_resources = ARRAY_SIZE(cmt10_resources), | ||
169 | }; | ||
170 | |||
171 | static struct platform_device *sh7367_early_devices[] __initdata = { | ||
172 | &scif0_device, | ||
173 | &scif1_device, | ||
174 | &scif2_device, | ||
175 | &scif3_device, | ||
176 | &scif4_device, | ||
177 | &scif5_device, | ||
178 | &scif6_device, | ||
179 | &cmt10_device, | ||
180 | }; | ||
181 | |||
182 | void __init sh7367_add_standard_devices(void) | ||
183 | { | ||
184 | platform_add_devices(sh7367_early_devices, | ||
185 | ARRAY_SIZE(sh7367_early_devices)); | ||
186 | } | ||
187 | |||
188 | #define SYMSTPCR2 0xe6158048 | ||
189 | #define SYMSTPCR2_CMT1 (1 << 29) | ||
190 | |||
191 | void __init sh7367_add_early_devices(void) | ||
192 | { | ||
193 | /* enable clock to CMT1 */ | ||
194 | __raw_writel(__raw_readl(SYMSTPCR2) & ~SYMSTPCR2_CMT1, SYMSTPCR2); | ||
195 | |||
196 | early_platform_add_devices(sh7367_early_devices, | ||
197 | ARRAY_SIZE(sh7367_early_devices)); | ||
198 | } | ||
diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c new file mode 100644 index 00000000000..1d1153290f5 --- /dev/null +++ b/arch/arm/mach-shmobile/setup-sh7372.c | |||
@@ -0,0 +1,199 @@ | |||
1 | /* | ||
2 | * sh7372 processor support | ||
3 | * | ||
4 | * Copyright (C) 2010 Magnus Damm | ||
5 | * Copyright (C) 2008 Yoshihiro Shimoda | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; version 2 of the License. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
19 | */ | ||
20 | #include <linux/kernel.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/interrupt.h> | ||
23 | #include <linux/irq.h> | ||
24 | #include <linux/platform_device.h> | ||
25 | #include <linux/delay.h> | ||
26 | #include <linux/input.h> | ||
27 | #include <linux/io.h> | ||
28 | #include <linux/serial_sci.h> | ||
29 | #include <linux/sh_intc.h> | ||
30 | #include <linux/sh_timer.h> | ||
31 | #include <mach/hardware.h> | ||
32 | #include <asm/mach-types.h> | ||
33 | #include <asm/mach/arch.h> | ||
34 | |||
35 | static struct plat_sci_port scif0_platform_data = { | ||
36 | .mapbase = 0xe6c40000, | ||
37 | .flags = UPF_BOOT_AUTOCONF, | ||
38 | .type = PORT_SCIF, | ||
39 | .irqs = { 80, 80, 80, 80 }, | ||
40 | }; | ||
41 | |||
42 | static struct platform_device scif0_device = { | ||
43 | .name = "sh-sci", | ||
44 | .id = 0, | ||
45 | .dev = { | ||
46 | .platform_data = &scif0_platform_data, | ||
47 | }, | ||
48 | }; | ||
49 | |||
50 | static struct plat_sci_port scif1_platform_data = { | ||
51 | .mapbase = 0xe6c50000, | ||
52 | .flags = UPF_BOOT_AUTOCONF, | ||
53 | .type = PORT_SCIF, | ||
54 | .irqs = { 81, 81, 81, 81 }, | ||
55 | }; | ||
56 | |||
57 | static struct platform_device scif1_device = { | ||
58 | .name = "sh-sci", | ||
59 | .id = 1, | ||
60 | .dev = { | ||
61 | .platform_data = &scif1_platform_data, | ||
62 | }, | ||
63 | }; | ||
64 | |||
65 | static struct plat_sci_port scif2_platform_data = { | ||
66 | .mapbase = 0xe6c60000, | ||
67 | .flags = UPF_BOOT_AUTOCONF, | ||
68 | .type = PORT_SCIF, | ||
69 | .irqs = { 82, 82, 82, 82 }, | ||
70 | }; | ||
71 | |||
72 | static struct platform_device scif2_device = { | ||
73 | .name = "sh-sci", | ||
74 | .id = 2, | ||
75 | .dev = { | ||
76 | .platform_data = &scif2_platform_data, | ||
77 | }, | ||
78 | }; | ||
79 | |||
80 | static struct plat_sci_port scif3_platform_data = { | ||
81 | .mapbase = 0xe6c70000, | ||
82 | .flags = UPF_BOOT_AUTOCONF, | ||
83 | .type = PORT_SCIF, | ||
84 | .irqs = { 83, 83, 83, 83 }, | ||
85 | }; | ||
86 | |||
87 | static struct platform_device scif3_device = { | ||
88 | .name = "sh-sci", | ||
89 | .id = 3, | ||
90 | .dev = { | ||
91 | .platform_data = &scif3_platform_data, | ||
92 | }, | ||
93 | }; | ||
94 | |||
95 | static struct plat_sci_port scif4_platform_data = { | ||
96 | .mapbase = 0xe6c80000, | ||
97 | .flags = UPF_BOOT_AUTOCONF, | ||
98 | .type = PORT_SCIF, | ||
99 | .irqs = { 89, 89, 89, 89 }, | ||
100 | }; | ||
101 | |||
102 | static struct platform_device scif4_device = { | ||
103 | .name = "sh-sci", | ||
104 | .id = 4, | ||
105 | .dev = { | ||
106 | .platform_data = &scif4_platform_data, | ||
107 | }, | ||
108 | }; | ||
109 | |||
110 | static struct plat_sci_port scif5_platform_data = { | ||
111 | .mapbase = 0xe6cb0000, | ||
112 | .flags = UPF_BOOT_AUTOCONF, | ||
113 | .type = PORT_SCIF, | ||
114 | .irqs = { 90, 90, 90, 90 }, | ||
115 | }; | ||
116 | |||
117 | static struct platform_device scif5_device = { | ||
118 | .name = "sh-sci", | ||
119 | .id = 5, | ||
120 | .dev = { | ||
121 | .platform_data = &scif5_platform_data, | ||
122 | }, | ||
123 | }; | ||
124 | |||
125 | static struct plat_sci_port scif6_platform_data = { | ||
126 | .mapbase = 0xe6c30000, | ||
127 | .flags = UPF_BOOT_AUTOCONF, | ||
128 | .type = PORT_SCIF, | ||
129 | .irqs = { 91, 91, 91, 91 }, | ||
130 | }; | ||
131 | |||
132 | static struct platform_device scif6_device = { | ||
133 | .name = "sh-sci", | ||
134 | .id = 6, | ||
135 | .dev = { | ||
136 | .platform_data = &scif6_platform_data, | ||
137 | }, | ||
138 | }; | ||
139 | |||
140 | static struct sh_timer_config cmt10_platform_data = { | ||
141 | .name = "CMT10", | ||
142 | .channel_offset = 0x10, | ||
143 | .timer_bit = 0, | ||
144 | .clk = "r_clk", | ||
145 | .clockevent_rating = 125, | ||
146 | .clocksource_rating = 125, | ||
147 | }; | ||
148 | |||
149 | static struct resource cmt10_resources[] = { | ||
150 | [0] = { | ||
151 | .name = "CMT10", | ||
152 | .start = 0xe6138010, | ||
153 | .end = 0xe613801b, | ||
154 | .flags = IORESOURCE_MEM, | ||
155 | }, | ||
156 | [1] = { | ||
157 | .start = 72, | ||
158 | .flags = IORESOURCE_IRQ, | ||
159 | }, | ||
160 | }; | ||
161 | |||
162 | static struct platform_device cmt10_device = { | ||
163 | .name = "sh_cmt", | ||
164 | .id = 10, | ||
165 | .dev = { | ||
166 | .platform_data = &cmt10_platform_data, | ||
167 | }, | ||
168 | .resource = cmt10_resources, | ||
169 | .num_resources = ARRAY_SIZE(cmt10_resources), | ||
170 | }; | ||
171 | |||
172 | static struct platform_device *sh7372_early_devices[] __initdata = { | ||
173 | &scif0_device, | ||
174 | &scif1_device, | ||
175 | &scif2_device, | ||
176 | &scif3_device, | ||
177 | &scif4_device, | ||
178 | &scif5_device, | ||
179 | &scif6_device, | ||
180 | &cmt10_device, | ||
181 | }; | ||
182 | |||
183 | void __init sh7372_add_standard_devices(void) | ||
184 | { | ||
185 | platform_add_devices(sh7372_early_devices, | ||
186 | ARRAY_SIZE(sh7372_early_devices)); | ||
187 | } | ||
188 | |||
189 | #define SMSTPCR3 0xe615013c | ||
190 | #define SMSTPCR3_CMT1 (1 << 29) | ||
191 | |||
192 | void __init sh7372_add_early_devices(void) | ||
193 | { | ||
194 | /* enable clock to CMT1 */ | ||
195 | __raw_writel(__raw_readl(SMSTPCR3) & ~SMSTPCR3_CMT1, SMSTPCR3); | ||
196 | |||
197 | early_platform_add_devices(sh7372_early_devices, | ||
198 | ARRAY_SIZE(sh7372_early_devices)); | ||
199 | } | ||
diff --git a/arch/arm/mach-shmobile/setup-sh7377.c b/arch/arm/mach-shmobile/setup-sh7377.c new file mode 100644 index 00000000000..60e37774c35 --- /dev/null +++ b/arch/arm/mach-shmobile/setup-sh7377.c | |||
@@ -0,0 +1,215 @@ | |||
1 | /* | ||
2 | * sh7377 processor support | ||
3 | * | ||
4 | * Copyright (C) 2010 Magnus Damm | ||
5 | * Copyright (C) 2008 Yoshihiro Shimoda | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; version 2 of the License. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
19 | */ | ||
20 | #include <linux/kernel.h> | ||
21 | #include <linux/init.h> | ||
22 | #include <linux/interrupt.h> | ||
23 | #include <linux/irq.h> | ||
24 | #include <linux/platform_device.h> | ||
25 | #include <linux/delay.h> | ||
26 | #include <linux/input.h> | ||
27 | #include <linux/io.h> | ||
28 | #include <linux/serial_sci.h> | ||
29 | #include <linux/sh_intc.h> | ||
30 | #include <linux/sh_timer.h> | ||
31 | #include <mach/hardware.h> | ||
32 | #include <asm/mach-types.h> | ||
33 | #include <asm/mach/arch.h> | ||
34 | |||
35 | static struct plat_sci_port scif0_platform_data = { | ||
36 | .mapbase = 0xe6c40000, | ||
37 | .flags = UPF_BOOT_AUTOCONF, | ||
38 | .type = PORT_SCIF, | ||
39 | .irqs = { 80, 80, 80, 80 }, | ||
40 | }; | ||
41 | |||
42 | static struct platform_device scif0_device = { | ||
43 | .name = "sh-sci", | ||
44 | .id = 0, | ||
45 | .dev = { | ||
46 | .platform_data = &scif0_platform_data, | ||
47 | }, | ||
48 | }; | ||
49 | |||
50 | static struct plat_sci_port scif1_platform_data = { | ||
51 | .mapbase = 0xe6c50000, | ||
52 | .flags = UPF_BOOT_AUTOCONF, | ||
53 | .type = PORT_SCIF, | ||
54 | .irqs = { 81, 81, 81, 81 }, | ||
55 | }; | ||
56 | |||
57 | static struct platform_device scif1_device = { | ||
58 | .name = "sh-sci", | ||
59 | .id = 1, | ||
60 | .dev = { | ||
61 | .platform_data = &scif1_platform_data, | ||
62 | }, | ||
63 | }; | ||
64 | |||
65 | static struct plat_sci_port scif2_platform_data = { | ||
66 | .mapbase = 0xe6c60000, | ||
67 | .flags = UPF_BOOT_AUTOCONF, | ||
68 | .type = PORT_SCIF, | ||
69 | .irqs = { 82, 82, 82, 82 }, | ||
70 | }; | ||
71 | |||
72 | static struct platform_device scif2_device = { | ||
73 | .name = "sh-sci", | ||
74 | .id = 2, | ||
75 | .dev = { | ||
76 | .platform_data = &scif2_platform_data, | ||
77 | }, | ||
78 | }; | ||
79 | |||
80 | static struct plat_sci_port scif3_platform_data = { | ||
81 | .mapbase = 0xe6c70000, | ||
82 | .flags = UPF_BOOT_AUTOCONF, | ||
83 | .type = PORT_SCIF, | ||
84 | .irqs = { 83, 83, 83, 83 }, | ||
85 | }; | ||
86 | |||
87 | static struct platform_device scif3_device = { | ||
88 | .name = "sh-sci", | ||
89 | .id = 3, | ||
90 | .dev = { | ||
91 | .platform_data = &scif3_platform_data, | ||
92 | }, | ||
93 | }; | ||
94 | |||
95 | static struct plat_sci_port scif4_platform_data = { | ||
96 | .mapbase = 0xe6c80000, | ||
97 | .flags = UPF_BOOT_AUTOCONF, | ||
98 | .type = PORT_SCIF, | ||
99 | .irqs = { 89, 89, 89, 89 }, | ||
100 | }; | ||
101 | |||
102 | static struct platform_device scif4_device = { | ||
103 | .name = "sh-sci", | ||
104 | .id = 4, | ||
105 | .dev = { | ||
106 | .platform_data = &scif4_platform_data, | ||
107 | }, | ||
108 | }; | ||
109 | |||
110 | static struct plat_sci_port scif5_platform_data = { | ||
111 | .mapbase = 0xe6cb0000, | ||
112 | .flags = UPF_BOOT_AUTOCONF, | ||
113 | .type = PORT_SCIF, | ||
114 | .irqs = { 90, 90, 90, 90 }, | ||
115 | }; | ||
116 | |||
117 | static struct platform_device scif5_device = { | ||
118 | .name = "sh-sci", | ||
119 | .id = 5, | ||
120 | .dev = { | ||
121 | .platform_data = &scif5_platform_data, | ||
122 | }, | ||
123 | }; | ||
124 | |||
125 | static struct plat_sci_port scif6_platform_data = { | ||
126 | .mapbase = 0xe6cc0000, | ||
127 | .flags = UPF_BOOT_AUTOCONF, | ||
128 | .type = PORT_SCIF, | ||
129 | .irqs = { 196, 196, 196, 196 }, | ||
130 | }; | ||
131 | |||
132 | static struct platform_device scif6_device = { | ||
133 | .name = "sh-sci", | ||
134 | .id = 6, | ||
135 | .dev = { | ||
136 | .platform_data = &scif6_platform_data, | ||
137 | }, | ||
138 | }; | ||
139 | |||
140 | static struct plat_sci_port scif7_platform_data = { | ||
141 | .mapbase = 0xe6c30000, | ||
142 | .flags = UPF_BOOT_AUTOCONF, | ||
143 | .type = PORT_SCIF, | ||
144 | .irqs = { 91, 91, 91, 91 }, | ||
145 | }; | ||
146 | |||
147 | static struct platform_device scif7_device = { | ||
148 | .name = "sh-sci", | ||
149 | .id = 7, | ||
150 | .dev = { | ||
151 | .platform_data = &scif7_platform_data, | ||
152 | }, | ||
153 | }; | ||
154 | |||
155 | static struct sh_timer_config cmt10_platform_data = { | ||
156 | .name = "CMT10", | ||
157 | .channel_offset = 0x10, | ||
158 | .timer_bit = 0, | ||
159 | .clk = "r_clk", | ||
160 | .clockevent_rating = 125, | ||
161 | .clocksource_rating = 125, | ||
162 | }; | ||
163 | |||
164 | static struct resource cmt10_resources[] = { | ||
165 | [0] = { | ||
166 | .name = "CMT10", | ||
167 | .start = 0xe6138010, | ||
168 | .end = 0xe613801b, | ||
169 | .flags = IORESOURCE_MEM, | ||
170 | }, | ||
171 | [1] = { | ||
172 | .start = 72, | ||
173 | .flags = IORESOURCE_IRQ, | ||
174 | }, | ||
175 | }; | ||
176 | |||
177 | static struct platform_device cmt10_device = { | ||
178 | .name = "sh_cmt", | ||
179 | .id = 10, | ||
180 | .dev = { | ||
181 | .platform_data = &cmt10_platform_data, | ||
182 | }, | ||
183 | .resource = cmt10_resources, | ||
184 | .num_resources = ARRAY_SIZE(cmt10_resources), | ||
185 | }; | ||
186 | |||
187 | static struct platform_device *sh7377_early_devices[] __initdata = { | ||
188 | &scif0_device, | ||
189 | &scif1_device, | ||
190 | &scif2_device, | ||
191 | &scif3_device, | ||
192 | &scif4_device, | ||
193 | &scif5_device, | ||
194 | &scif6_device, | ||
195 | &scif7_device, | ||
196 | &cmt10_device, | ||
197 | }; | ||
198 | |||
199 | void __init sh7377_add_standard_devices(void) | ||
200 | { | ||
201 | platform_add_devices(sh7377_early_devices, | ||
202 | ARRAY_SIZE(sh7377_early_devices)); | ||
203 | } | ||
204 | |||
205 | #define SMSTPCR3 0xe615013c | ||
206 | #define SMSTPCR3_CMT1 (1 << 29) | ||
207 | |||
208 | void __init sh7377_add_early_devices(void) | ||
209 | { | ||
210 | /* enable clock to CMT1 */ | ||
211 | __raw_writel(__raw_readl(SMSTPCR3) & ~SMSTPCR3_CMT1, SMSTPCR3); | ||
212 | |||
213 | early_platform_add_devices(sh7377_early_devices, | ||
214 | ARRAY_SIZE(sh7377_early_devices)); | ||
215 | } | ||
diff --git a/arch/arm/mach-shmobile/timer.c b/arch/arm/mach-shmobile/timer.c new file mode 100644 index 00000000000..895794b543c --- /dev/null +++ b/arch/arm/mach-shmobile/timer.c | |||
@@ -0,0 +1,46 @@ | |||
1 | /* | ||
2 | * SH-Mobile Timer | ||
3 | * | ||
4 | * Copyright (C) 2010 Magnus Damm | ||
5 | * Copyright (C) 2002 - 2009 Paul Mundt | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; version 2 of the License. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
19 | * | ||
20 | */ | ||
21 | #include <linux/platform_device.h> | ||
22 | #include <asm/mach/time.h> | ||
23 | |||
24 | static void __init shmobile_late_time_init(void) | ||
25 | { | ||
26 | /* | ||
27 | * Make sure all compiled-in early timers register themselves. | ||
28 | * | ||
29 | * Run probe() for two "earlytimer" devices, these will be the | ||
30 | * clockevents and clocksource devices respectively. In the event | ||
31 | * that only a clockevents device is available, we -ENODEV on the | ||
32 | * clocksource and the jiffies clocksource is used transparently | ||
33 | * instead. No error handling is necessary here. | ||
34 | */ | ||
35 | early_platform_driver_register_all("earlytimer"); | ||
36 | early_platform_driver_probe("earlytimer", 2, 0); | ||
37 | } | ||
38 | |||
39 | static void __init shmobile_timer_init(void) | ||
40 | { | ||
41 | late_time_init = shmobile_late_time_init; | ||
42 | } | ||
43 | |||
44 | struct sys_timer shmobile_timer = { | ||
45 | .init = shmobile_timer_init, | ||
46 | }; | ||
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 1708da82da9..761ffede6a2 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c | |||
@@ -1067,4 +1067,6 @@ void setup_mm_for_reboot(char mode) | |||
1067 | pmd[1] = __pmd(pmdval + (1 << (PGDIR_SHIFT - 1))); | 1067 | pmd[1] = __pmd(pmdval + (1 << (PGDIR_SHIFT - 1))); |
1068 | flush_pmd_entry(pmd); | 1068 | flush_pmd_entry(pmd); |
1069 | } | 1069 | } |
1070 | |||
1071 | local_flush_tlb_all(); | ||
1070 | } | 1072 | } |
diff --git a/arch/arm/mm/proc-arm6_7.S b/arch/arm/mm/proc-arm6_7.S index 3f9cd3d8f6d..795dc615f43 100644 --- a/arch/arm/mm/proc-arm6_7.S +++ b/arch/arm/mm/proc-arm6_7.S | |||
@@ -41,7 +41,7 @@ ENTRY(cpu_arm7_dcache_clean_area) | |||
41 | ENTRY(cpu_arm7_data_abort) | 41 | ENTRY(cpu_arm7_data_abort) |
42 | mrc p15, 0, r1, c5, c0, 0 @ get FSR | 42 | mrc p15, 0, r1, c5, c0, 0 @ get FSR |
43 | mrc p15, 0, r0, c6, c0, 0 @ get FAR | 43 | mrc p15, 0, r0, c6, c0, 0 @ get FAR |
44 | ldr r8, [r0] @ read arm instruction | 44 | ldr r8, [r2] @ read arm instruction |
45 | tst r8, #1 << 20 @ L = 0 -> write? | 45 | tst r8, #1 << 20 @ L = 0 -> write? |
46 | orreq r1, r1, #1 << 11 @ yes. | 46 | orreq r1, r1, #1 << 11 @ yes. |
47 | and r7, r8, #15 << 24 | 47 | and r7, r8, #15 << 24 |
diff --git a/arch/arm/mm/proc-v6.S b/arch/arm/mm/proc-v6.S index 395cc90c661..7a5337ed7d6 100644 --- a/arch/arm/mm/proc-v6.S +++ b/arch/arm/mm/proc-v6.S | |||
@@ -59,8 +59,6 @@ ENTRY(cpu_v6_proc_fin) | |||
59 | * to what would be the reset vector. | 59 | * to what would be the reset vector. |
60 | * | 60 | * |
61 | * - loc - location to jump to for soft reset | 61 | * - loc - location to jump to for soft reset |
62 | * | ||
63 | * It is assumed that: | ||
64 | */ | 62 | */ |
65 | .align 5 | 63 | .align 5 |
66 | ENTRY(cpu_v6_reset) | 64 | ENTRY(cpu_v6_reset) |
diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S index 3a285218fd1..7aaf88a3b7a 100644 --- a/arch/arm/mm/proc-v7.S +++ b/arch/arm/mm/proc-v7.S | |||
@@ -45,7 +45,14 @@ ENTRY(cpu_v7_proc_init) | |||
45 | ENDPROC(cpu_v7_proc_init) | 45 | ENDPROC(cpu_v7_proc_init) |
46 | 46 | ||
47 | ENTRY(cpu_v7_proc_fin) | 47 | ENTRY(cpu_v7_proc_fin) |
48 | mov pc, lr | 48 | stmfd sp!, {lr} |
49 | cpsid if @ disable interrupts | ||
50 | bl v7_flush_kern_cache_all | ||
51 | mrc p15, 0, r0, c1, c0, 0 @ ctrl register | ||
52 | bic r0, r0, #0x1000 @ ...i............ | ||
53 | bic r0, r0, #0x0006 @ .............ca. | ||
54 | mcr p15, 0, r0, c1, c0, 0 @ disable caches | ||
55 | ldmfd sp!, {pc} | ||
49 | ENDPROC(cpu_v7_proc_fin) | 56 | ENDPROC(cpu_v7_proc_fin) |
50 | 57 | ||
51 | /* | 58 | /* |
@@ -56,8 +63,6 @@ ENDPROC(cpu_v7_proc_fin) | |||
56 | * to what would be the reset vector. | 63 | * to what would be the reset vector. |
57 | * | 64 | * |
58 | * - loc - location to jump to for soft reset | 65 | * - loc - location to jump to for soft reset |
59 | * | ||
60 | * It is assumed that: | ||
61 | */ | 66 | */ |
62 | .align 5 | 67 | .align 5 |
63 | ENTRY(cpu_v7_reset) | 68 | ENTRY(cpu_v7_reset) |
diff --git a/arch/arm/plat-mxc/Kconfig b/arch/arm/plat-mxc/Kconfig index 8b0a1ee039f..7f7ad6f289b 100644 --- a/arch/arm/plat-mxc/Kconfig +++ b/arch/arm/plat-mxc/Kconfig | |||
@@ -9,38 +9,43 @@ choice | |||
9 | config ARCH_MX1 | 9 | config ARCH_MX1 |
10 | bool "MX1-based" | 10 | bool "MX1-based" |
11 | select CPU_ARM920T | 11 | select CPU_ARM920T |
12 | select COMMON_CLKDEV | 12 | select IMX_HAVE_IOMUX_V1 |
13 | help | 13 | help |
14 | This enables support for systems based on the Freescale i.MX1 family | 14 | This enables support for systems based on the Freescale i.MX1 family |
15 | 15 | ||
16 | config ARCH_MX2 | 16 | config ARCH_MX2 |
17 | bool "MX2-based" | 17 | bool "MX2-based" |
18 | select CPU_ARM926T | 18 | select CPU_ARM926T |
19 | select COMMON_CLKDEV | 19 | select IMX_HAVE_IOMUX_V1 |
20 | help | 20 | help |
21 | This enables support for systems based on the Freescale i.MX2 family | 21 | This enables support for systems based on the Freescale i.MX2 family |
22 | 22 | ||
23 | config ARCH_MX25 | 23 | config ARCH_MX25 |
24 | bool "MX25-based" | 24 | bool "MX25-based" |
25 | select CPU_ARM926T | 25 | select CPU_ARM926T |
26 | select COMMON_CLKDEV | 26 | select ARCH_MXC_IOMUX_V3 |
27 | select HAVE_FB_IMX | ||
27 | help | 28 | help |
28 | This enables support for systems based on the Freescale i.MX25 family | 29 | This enables support for systems based on the Freescale i.MX25 family |
29 | 30 | ||
30 | config ARCH_MX3 | 31 | config ARCH_MX3 |
31 | bool "MX3-based" | 32 | bool "MX3-based" |
32 | select CPU_V6 | 33 | select CPU_V6 |
33 | select COMMON_CLKDEV | ||
34 | help | 34 | help |
35 | This enables support for systems based on the Freescale i.MX3 family | 35 | This enables support for systems based on the Freescale i.MX3 family |
36 | 36 | ||
37 | config ARCH_MXC91231 | 37 | config ARCH_MXC91231 |
38 | bool "MXC91231-based" | 38 | bool "MXC91231-based" |
39 | select CPU_V6 | 39 | select CPU_V6 |
40 | select COMMON_CLKDEV | ||
41 | help | 40 | help |
42 | This enables support for systems based on the Freescale MXC91231 family | 41 | This enables support for systems based on the Freescale MXC91231 family |
43 | 42 | ||
43 | config ARCH_MX5 | ||
44 | bool "MX5-based" | ||
45 | select CPU_V7 | ||
46 | help | ||
47 | This enables support for systems based on the Freescale i.MX51 family | ||
48 | |||
44 | endchoice | 49 | endchoice |
45 | 50 | ||
46 | source "arch/arm/mach-mx1/Kconfig" | 51 | source "arch/arm/mach-mx1/Kconfig" |
@@ -48,12 +53,12 @@ source "arch/arm/mach-mx2/Kconfig" | |||
48 | source "arch/arm/mach-mx3/Kconfig" | 53 | source "arch/arm/mach-mx3/Kconfig" |
49 | source "arch/arm/mach-mx25/Kconfig" | 54 | source "arch/arm/mach-mx25/Kconfig" |
50 | source "arch/arm/mach-mxc91231/Kconfig" | 55 | source "arch/arm/mach-mxc91231/Kconfig" |
56 | source "arch/arm/mach-mx5/Kconfig" | ||
51 | 57 | ||
52 | endmenu | 58 | endmenu |
53 | 59 | ||
54 | config MXC_IRQ_PRIOR | 60 | config MXC_IRQ_PRIOR |
55 | bool "Use IRQ priority" | 61 | bool "Use IRQ priority" |
56 | depends on ARCH_MXC | ||
57 | help | 62 | help |
58 | Select this if you want to use prioritized IRQ handling. | 63 | Select this if you want to use prioritized IRQ handling. |
59 | This feature prevents higher priority ISR to be interrupted | 64 | This feature prevents higher priority ISR to be interrupted |
@@ -62,9 +67,16 @@ config MXC_IRQ_PRIOR | |||
62 | requirements for timing. | 67 | requirements for timing. |
63 | Say N here, unless you have a specialized requirement. | 68 | Say N here, unless you have a specialized requirement. |
64 | 69 | ||
70 | config MXC_TZIC | ||
71 | bool "Enable TrustZone Interrupt Controller" | ||
72 | depends on ARCH_MX51 | ||
73 | help | ||
74 | This will be automatically selected for all processors | ||
75 | containing this interrupt controller. | ||
76 | Say N here only if you are really sure. | ||
77 | |||
65 | config MXC_PWM | 78 | config MXC_PWM |
66 | tristate "Enable PWM driver" | 79 | tristate "Enable PWM driver" |
67 | depends on ARCH_MXC | ||
68 | select HAVE_PWM | 80 | select HAVE_PWM |
69 | help | 81 | help |
70 | Enable support for the i.MX PWM controller(s). | 82 | Enable support for the i.MX PWM controller(s). |
@@ -74,7 +86,9 @@ config MXC_ULPI | |||
74 | 86 | ||
75 | config ARCH_HAS_RNGA | 87 | config ARCH_HAS_RNGA |
76 | bool | 88 | bool |
77 | depends on ARCH_MXC | 89 | |
90 | config IMX_HAVE_IOMUX_V1 | ||
91 | bool | ||
78 | 92 | ||
79 | config ARCH_MXC_IOMUX_V3 | 93 | config ARCH_MXC_IOMUX_V3 |
80 | bool | 94 | bool |
diff --git a/arch/arm/plat-mxc/Makefile b/arch/arm/plat-mxc/Makefile index 996cbac6932..a72a5e4ca20 100644 --- a/arch/arm/plat-mxc/Makefile +++ b/arch/arm/plat-mxc/Makefile | |||
@@ -5,8 +5,12 @@ | |||
5 | # Common support | 5 | # Common support |
6 | obj-y := irq.o clock.o gpio.o time.o devices.o cpu.o system.o | 6 | obj-y := irq.o clock.o gpio.o time.o devices.o cpu.o system.o |
7 | 7 | ||
8 | obj-$(CONFIG_ARCH_MX1) += iomux-mx1-mx2.o dma-mx1-mx2.o | 8 | # MX51 uses the TZIC interrupt controller, older platforms use AVIC (irq.o) |
9 | obj-$(CONFIG_ARCH_MX2) += iomux-mx1-mx2.o dma-mx1-mx2.o | 9 | obj-$(CONFIG_MXC_TZIC) += tzic.o |
10 | |||
11 | obj-$(CONFIG_ARCH_MX1) += dma-mx1-mx2.o | ||
12 | obj-$(CONFIG_ARCH_MX2) += dma-mx1-mx2.o | ||
13 | obj-$(CONFIG_IMX_HAVE_IOMUX_V1) += iomux-v1.o | ||
10 | obj-$(CONFIG_ARCH_MXC_IOMUX_V3) += iomux-v3.o | 14 | obj-$(CONFIG_ARCH_MXC_IOMUX_V3) += iomux-v3.o |
11 | obj-$(CONFIG_MXC_PWM) += pwm.o | 15 | obj-$(CONFIG_MXC_PWM) += pwm.o |
12 | obj-$(CONFIG_USB_EHCI_MXC) += ehci.o | 16 | obj-$(CONFIG_USB_EHCI_MXC) += ehci.o |
diff --git a/arch/arm/plat-mxc/audmux-v1.c b/arch/arm/plat-mxc/audmux-v1.c index da6387dcdf2..b62917ca3f9 100644 --- a/arch/arm/plat-mxc/audmux-v1.c +++ b/arch/arm/plat-mxc/audmux-v1.c | |||
@@ -50,8 +50,18 @@ EXPORT_SYMBOL_GPL(mxc_audmux_v1_configure_port); | |||
50 | 50 | ||
51 | static int mxc_audmux_v1_init(void) | 51 | static int mxc_audmux_v1_init(void) |
52 | { | 52 | { |
53 | if (cpu_is_mx27() || cpu_is_mx21()) | 53 | #ifdef CONFIG_MACH_MX21 |
54 | audmux_base = IO_ADDRESS(AUDMUX_BASE_ADDR); | 54 | if (cpu_is_mx21()) |
55 | audmux_base = MX21_IO_ADDRESS(MX21_AUDMUX_BASE_ADDR); | ||
56 | else | ||
57 | #endif | ||
58 | #ifdef CONFIG_MACH_MX27 | ||
59 | if (cpu_is_mx27()) | ||
60 | audmux_base = MX27_IO_ADDRESS(MX27_AUDMUX_BASE_ADDR); | ||
61 | else | ||
62 | #endif | ||
63 | (void)0; | ||
64 | |||
55 | return 0; | 65 | return 0; |
56 | } | 66 | } |
57 | 67 | ||
diff --git a/arch/arm/plat-mxc/audmux-v2.c b/arch/arm/plat-mxc/audmux-v2.c index 6f21096086f..d983cd6c788 100644 --- a/arch/arm/plat-mxc/audmux-v2.c +++ b/arch/arm/plat-mxc/audmux-v2.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/err.h> | 23 | #include <linux/err.h> |
24 | #include <linux/io.h> | 24 | #include <linux/io.h> |
25 | #include <linux/clk.h> | 25 | #include <linux/clk.h> |
26 | #include <linux/debugfs.h> | ||
26 | #include <mach/audmux.h> | 27 | #include <mach/audmux.h> |
27 | #include <mach/hardware.h> | 28 | #include <mach/hardware.h> |
28 | 29 | ||
@@ -32,6 +33,140 @@ static void __iomem *audmux_base; | |||
32 | #define MXC_AUDMUX_V2_PTCR(x) ((x) * 8) | 33 | #define MXC_AUDMUX_V2_PTCR(x) ((x) * 8) |
33 | #define MXC_AUDMUX_V2_PDCR(x) ((x) * 8 + 4) | 34 | #define MXC_AUDMUX_V2_PDCR(x) ((x) * 8 + 4) |
34 | 35 | ||
36 | #ifdef CONFIG_DEBUG_FS | ||
37 | static struct dentry *audmux_debugfs_root; | ||
38 | |||
39 | static int audmux_open_file(struct inode *inode, struct file *file) | ||
40 | { | ||
41 | file->private_data = inode->i_private; | ||
42 | return 0; | ||
43 | } | ||
44 | |||
45 | /* There is an annoying discontinuity in the SSI numbering with regard | ||
46 | * to the Linux number of the devices */ | ||
47 | static const char *audmux_port_string(int port) | ||
48 | { | ||
49 | switch (port) { | ||
50 | case MX31_AUDMUX_PORT1_SSI0: | ||
51 | return "imx-ssi.0"; | ||
52 | case MX31_AUDMUX_PORT2_SSI1: | ||
53 | return "imx-ssi.1"; | ||
54 | case MX31_AUDMUX_PORT3_SSI_PINS_3: | ||
55 | return "SSI3"; | ||
56 | case MX31_AUDMUX_PORT4_SSI_PINS_4: | ||
57 | return "SSI4"; | ||
58 | case MX31_AUDMUX_PORT5_SSI_PINS_5: | ||
59 | return "SSI5"; | ||
60 | case MX31_AUDMUX_PORT6_SSI_PINS_6: | ||
61 | return "SSI6"; | ||
62 | default: | ||
63 | return "UNKNOWN"; | ||
64 | } | ||
65 | } | ||
66 | |||
67 | static ssize_t audmux_read_file(struct file *file, char __user *user_buf, | ||
68 | size_t count, loff_t *ppos) | ||
69 | { | ||
70 | ssize_t ret; | ||
71 | char *buf = kmalloc(PAGE_SIZE, GFP_KERNEL); | ||
72 | int port = (int)file->private_data; | ||
73 | u32 pdcr, ptcr; | ||
74 | |||
75 | if (!buf) | ||
76 | return -ENOMEM; | ||
77 | |||
78 | if (audmux_clk) | ||
79 | clk_enable(audmux_clk); | ||
80 | |||
81 | ptcr = readl(audmux_base + MXC_AUDMUX_V2_PTCR(port)); | ||
82 | pdcr = readl(audmux_base + MXC_AUDMUX_V2_PDCR(port)); | ||
83 | |||
84 | if (audmux_clk) | ||
85 | clk_disable(audmux_clk); | ||
86 | |||
87 | ret = snprintf(buf, PAGE_SIZE, "PDCR: %08x\nPTCR: %08x\n", | ||
88 | pdcr, ptcr); | ||
89 | |||
90 | if (ptcr & MXC_AUDMUX_V2_PTCR_TFSDIR) | ||
91 | ret += snprintf(buf + ret, PAGE_SIZE - ret, | ||
92 | "TxFS output from %s, ", | ||
93 | audmux_port_string((ptcr >> 27) & 0x7)); | ||
94 | else | ||
95 | ret += snprintf(buf + ret, PAGE_SIZE - ret, | ||
96 | "TxFS input, "); | ||
97 | |||
98 | if (ptcr & MXC_AUDMUX_V2_PTCR_TCLKDIR) | ||
99 | ret += snprintf(buf + ret, PAGE_SIZE - ret, | ||
100 | "TxClk output from %s", | ||
101 | audmux_port_string((ptcr >> 22) & 0x7)); | ||
102 | else | ||
103 | ret += snprintf(buf + ret, PAGE_SIZE - ret, | ||
104 | "TxClk input"); | ||
105 | |||
106 | ret += snprintf(buf + ret, PAGE_SIZE - ret, "\n"); | ||
107 | |||
108 | if (ptcr & MXC_AUDMUX_V2_PTCR_SYN) { | ||
109 | ret += snprintf(buf + ret, PAGE_SIZE - ret, | ||
110 | "Port is symmetric"); | ||
111 | } else { | ||
112 | if (ptcr & MXC_AUDMUX_V2_PTCR_RFSDIR) | ||
113 | ret += snprintf(buf + ret, PAGE_SIZE - ret, | ||
114 | "RxFS output from %s, ", | ||
115 | audmux_port_string((ptcr >> 17) & 0x7)); | ||
116 | else | ||
117 | ret += snprintf(buf + ret, PAGE_SIZE - ret, | ||
118 | "RxFS input, "); | ||
119 | |||
120 | if (ptcr & MXC_AUDMUX_V2_PTCR_RCLKDIR) | ||
121 | ret += snprintf(buf + ret, PAGE_SIZE - ret, | ||
122 | "RxClk output from %s", | ||
123 | audmux_port_string((ptcr >> 12) & 0x7)); | ||
124 | else | ||
125 | ret += snprintf(buf + ret, PAGE_SIZE - ret, | ||
126 | "RxClk input"); | ||
127 | } | ||
128 | |||
129 | ret += snprintf(buf + ret, PAGE_SIZE - ret, | ||
130 | "\nData received from %s\n", | ||
131 | audmux_port_string((pdcr >> 13) & 0x7)); | ||
132 | |||
133 | ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret); | ||
134 | |||
135 | kfree(buf); | ||
136 | |||
137 | return ret; | ||
138 | } | ||
139 | |||
140 | static const struct file_operations audmux_debugfs_fops = { | ||
141 | .open = audmux_open_file, | ||
142 | .read = audmux_read_file, | ||
143 | }; | ||
144 | |||
145 | static void audmux_debugfs_init(void) | ||
146 | { | ||
147 | int i; | ||
148 | char buf[20]; | ||
149 | |||
150 | audmux_debugfs_root = debugfs_create_dir("audmux", NULL); | ||
151 | if (!audmux_debugfs_root) { | ||
152 | pr_warning("Failed to create AUDMUX debugfs root\n"); | ||
153 | return; | ||
154 | } | ||
155 | |||
156 | for (i = 1; i < 8; i++) { | ||
157 | snprintf(buf, sizeof(buf), "ssi%d", i); | ||
158 | if (!debugfs_create_file(buf, 0444, audmux_debugfs_root, | ||
159 | (void *)i, &audmux_debugfs_fops)) | ||
160 | pr_warning("Failed to create AUDMUX port %d debugfs file\n", | ||
161 | i); | ||
162 | } | ||
163 | } | ||
164 | #else | ||
165 | static inline void audmux_debugfs_init(void) | ||
166 | { | ||
167 | } | ||
168 | #endif | ||
169 | |||
35 | int mxc_audmux_v2_configure_port(unsigned int port, unsigned int ptcr, | 170 | int mxc_audmux_v2_configure_port(unsigned int port, unsigned int ptcr, |
36 | unsigned int pdcr) | 171 | unsigned int pdcr) |
37 | { | 172 | { |
@@ -55,7 +190,10 @@ static int mxc_audmux_v2_init(void) | |||
55 | { | 190 | { |
56 | int ret; | 191 | int ret; |
57 | 192 | ||
58 | if (cpu_is_mx35()) { | 193 | if (cpu_is_mx31()) |
194 | audmux_base = MX31_IO_ADDRESS(MX31_AUDMUX_BASE_ADDR); | ||
195 | |||
196 | else if (cpu_is_mx35()) { | ||
59 | audmux_clk = clk_get(NULL, "audmux"); | 197 | audmux_clk = clk_get(NULL, "audmux"); |
60 | if (IS_ERR(audmux_clk)) { | 198 | if (IS_ERR(audmux_clk)) { |
61 | ret = PTR_ERR(audmux_clk); | 199 | ret = PTR_ERR(audmux_clk); |
@@ -63,10 +201,10 @@ static int mxc_audmux_v2_init(void) | |||
63 | ret); | 201 | ret); |
64 | return ret; | 202 | return ret; |
65 | } | 203 | } |
204 | audmux_base = MX35_IO_ADDRESS(MX35_AUDMUX_BASE_ADDR); | ||
66 | } | 205 | } |
67 | 206 | ||
68 | if (cpu_is_mx31() || cpu_is_mx35()) | 207 | audmux_debugfs_init(); |
69 | audmux_base = IO_ADDRESS(AUDMUX_BASE_ADDR); | ||
70 | 208 | ||
71 | return 0; | 209 | return 0; |
72 | } | 210 | } |
diff --git a/arch/arm/plat-mxc/clock.c b/arch/arm/plat-mxc/clock.c index 9e8fbd57495..323ff8ccc87 100644 --- a/arch/arm/plat-mxc/clock.c +++ b/arch/arm/plat-mxc/clock.c | |||
@@ -56,6 +56,7 @@ static void __clk_disable(struct clk *clk) | |||
56 | __clk_disable(clk->parent); | 56 | __clk_disable(clk->parent); |
57 | __clk_disable(clk->secondary); | 57 | __clk_disable(clk->secondary); |
58 | 58 | ||
59 | WARN_ON(!clk->usecount); | ||
59 | if (!(--clk->usecount) && clk->disable) | 60 | if (!(--clk->usecount) && clk->disable) |
60 | clk->disable(clk); | 61 | clk->disable(clk); |
61 | } | 62 | } |
diff --git a/arch/arm/plat-mxc/dma-mx1-mx2.c b/arch/arm/plat-mxc/dma-mx1-mx2.c index 9c1b3f9c4f4..e16014b0d13 100644 --- a/arch/arm/plat-mxc/dma-mx1-mx2.c +++ b/arch/arm/plat-mxc/dma-mx1-mx2.c | |||
@@ -128,6 +128,18 @@ struct imx_dma_channel { | |||
128 | int hw_chaining; | 128 | int hw_chaining; |
129 | }; | 129 | }; |
130 | 130 | ||
131 | static void __iomem *imx_dmav1_baseaddr; | ||
132 | |||
133 | static void imx_dmav1_writel(unsigned val, unsigned offset) | ||
134 | { | ||
135 | __raw_writel(val, imx_dmav1_baseaddr + offset); | ||
136 | } | ||
137 | |||
138 | static unsigned imx_dmav1_readl(unsigned offset) | ||
139 | { | ||
140 | return __raw_readl(imx_dmav1_baseaddr + offset); | ||
141 | } | ||
142 | |||
131 | static struct imx_dma_channel imx_dma_channels[IMX_DMA_CHANNELS]; | 143 | static struct imx_dma_channel imx_dma_channels[IMX_DMA_CHANNELS]; |
132 | 144 | ||
133 | static struct clk *dma_clk; | 145 | static struct clk *dma_clk; |
@@ -140,7 +152,6 @@ static int imx_dma_hw_chain(struct imx_dma_channel *imxdma) | |||
140 | return 0; | 152 | return 0; |
141 | } | 153 | } |
142 | 154 | ||
143 | |||
144 | /* | 155 | /* |
145 | * imx_dma_sg_next - prepare next chunk for scatter-gather DMA emulation | 156 | * imx_dma_sg_next - prepare next chunk for scatter-gather DMA emulation |
146 | */ | 157 | */ |
@@ -160,17 +171,17 @@ static inline int imx_dma_sg_next(int channel, struct scatterlist *sg) | |||
160 | imxdma->resbytes -= now; | 171 | imxdma->resbytes -= now; |
161 | 172 | ||
162 | if ((imxdma->dma_mode & DMA_MODE_MASK) == DMA_MODE_READ) | 173 | if ((imxdma->dma_mode & DMA_MODE_MASK) == DMA_MODE_READ) |
163 | __raw_writel(sg->dma_address, DMA_BASE + DMA_DAR(channel)); | 174 | imx_dmav1_writel(sg->dma_address, DMA_DAR(channel)); |
164 | else | 175 | else |
165 | __raw_writel(sg->dma_address, DMA_BASE + DMA_SAR(channel)); | 176 | imx_dmav1_writel(sg->dma_address, DMA_SAR(channel)); |
166 | 177 | ||
167 | __raw_writel(now, DMA_BASE + DMA_CNTR(channel)); | 178 | imx_dmav1_writel(now, DMA_CNTR(channel)); |
168 | 179 | ||
169 | pr_debug("imxdma%d: next sg chunk dst 0x%08x, src 0x%08x, " | 180 | pr_debug("imxdma%d: next sg chunk dst 0x%08x, src 0x%08x, " |
170 | "size 0x%08x\n", channel, | 181 | "size 0x%08x\n", channel, |
171 | __raw_readl(DMA_BASE + DMA_DAR(channel)), | 182 | imx_dmav1_readl(DMA_DAR(channel)), |
172 | __raw_readl(DMA_BASE + DMA_SAR(channel)), | 183 | imx_dmav1_readl(DMA_SAR(channel)), |
173 | __raw_readl(DMA_BASE + DMA_CNTR(channel))); | 184 | imx_dmav1_readl(DMA_CNTR(channel))); |
174 | 185 | ||
175 | return now; | 186 | return now; |
176 | } | 187 | } |
@@ -218,27 +229,26 @@ imx_dma_setup_single(int channel, dma_addr_t dma_address, | |||
218 | channel, __func__, (unsigned int)dma_address, | 229 | channel, __func__, (unsigned int)dma_address, |
219 | dma_length, dev_addr); | 230 | dma_length, dev_addr); |
220 | 231 | ||
221 | __raw_writel(dev_addr, DMA_BASE + DMA_SAR(channel)); | 232 | imx_dmav1_writel(dev_addr, DMA_SAR(channel)); |
222 | __raw_writel(dma_address, DMA_BASE + DMA_DAR(channel)); | 233 | imx_dmav1_writel(dma_address, DMA_DAR(channel)); |
223 | __raw_writel(imxdma->ccr_from_device, | 234 | imx_dmav1_writel(imxdma->ccr_from_device, DMA_CCR(channel)); |
224 | DMA_BASE + DMA_CCR(channel)); | ||
225 | } else if ((dmamode & DMA_MODE_MASK) == DMA_MODE_WRITE) { | 235 | } else if ((dmamode & DMA_MODE_MASK) == DMA_MODE_WRITE) { |
226 | pr_debug("imxdma%d: %s dma_addressg=0x%08x dma_length=%d " | 236 | pr_debug("imxdma%d: %s dma_addressg=0x%08x dma_length=%d " |
227 | "dev_addr=0x%08x for write\n", | 237 | "dev_addr=0x%08x for write\n", |
228 | channel, __func__, (unsigned int)dma_address, | 238 | channel, __func__, (unsigned int)dma_address, |
229 | dma_length, dev_addr); | 239 | dma_length, dev_addr); |
230 | 240 | ||
231 | __raw_writel(dma_address, DMA_BASE + DMA_SAR(channel)); | 241 | imx_dmav1_writel(dma_address, DMA_SAR(channel)); |
232 | __raw_writel(dev_addr, DMA_BASE + DMA_DAR(channel)); | 242 | imx_dmav1_writel(dev_addr, DMA_DAR(channel)); |
233 | __raw_writel(imxdma->ccr_to_device, | 243 | imx_dmav1_writel(imxdma->ccr_to_device, |
234 | DMA_BASE + DMA_CCR(channel)); | 244 | DMA_CCR(channel)); |
235 | } else { | 245 | } else { |
236 | printk(KERN_ERR "imxdma%d: imx_dma_setup_single bad dmamode\n", | 246 | printk(KERN_ERR "imxdma%d: imx_dma_setup_single bad dmamode\n", |
237 | channel); | 247 | channel); |
238 | return -EINVAL; | 248 | return -EINVAL; |
239 | } | 249 | } |
240 | 250 | ||
241 | __raw_writel(dma_length, DMA_BASE + DMA_CNTR(channel)); | 251 | imx_dmav1_writel(dma_length, DMA_CNTR(channel)); |
242 | 252 | ||
243 | return 0; | 253 | return 0; |
244 | } | 254 | } |
@@ -316,17 +326,15 @@ imx_dma_setup_sg(int channel, | |||
316 | "dev_addr=0x%08x for read\n", | 326 | "dev_addr=0x%08x for read\n", |
317 | channel, __func__, sg, sgcount, dma_length, dev_addr); | 327 | channel, __func__, sg, sgcount, dma_length, dev_addr); |
318 | 328 | ||
319 | __raw_writel(dev_addr, DMA_BASE + DMA_SAR(channel)); | 329 | imx_dmav1_writel(dev_addr, DMA_SAR(channel)); |
320 | __raw_writel(imxdma->ccr_from_device, | 330 | imx_dmav1_writel(imxdma->ccr_from_device, DMA_CCR(channel)); |
321 | DMA_BASE + DMA_CCR(channel)); | ||
322 | } else if ((dmamode & DMA_MODE_MASK) == DMA_MODE_WRITE) { | 331 | } else if ((dmamode & DMA_MODE_MASK) == DMA_MODE_WRITE) { |
323 | pr_debug("imxdma%d: %s sg=%p sgcount=%d total length=%d " | 332 | pr_debug("imxdma%d: %s sg=%p sgcount=%d total length=%d " |
324 | "dev_addr=0x%08x for write\n", | 333 | "dev_addr=0x%08x for write\n", |
325 | channel, __func__, sg, sgcount, dma_length, dev_addr); | 334 | channel, __func__, sg, sgcount, dma_length, dev_addr); |
326 | 335 | ||
327 | __raw_writel(dev_addr, DMA_BASE + DMA_DAR(channel)); | 336 | imx_dmav1_writel(dev_addr, DMA_DAR(channel)); |
328 | __raw_writel(imxdma->ccr_to_device, | 337 | imx_dmav1_writel(imxdma->ccr_to_device, DMA_CCR(channel)); |
329 | DMA_BASE + DMA_CCR(channel)); | ||
330 | } else { | 338 | } else { |
331 | printk(KERN_ERR "imxdma%d: imx_dma_setup_sg bad dmamode\n", | 339 | printk(KERN_ERR "imxdma%d: imx_dma_setup_sg bad dmamode\n", |
332 | channel); | 340 | channel); |
@@ -360,7 +368,7 @@ imx_dma_config_channel(int channel, unsigned int config_port, | |||
360 | imxdma->ccr_from_device = config_port | (config_mem << 2) | dreq; | 368 | imxdma->ccr_from_device = config_port | (config_mem << 2) | dreq; |
361 | imxdma->ccr_to_device = config_mem | (config_port << 2) | dreq; | 369 | imxdma->ccr_to_device = config_mem | (config_port << 2) | dreq; |
362 | 370 | ||
363 | __raw_writel(dmareq, DMA_BASE + DMA_RSSR(channel)); | 371 | imx_dmav1_writel(dmareq, DMA_RSSR(channel)); |
364 | 372 | ||
365 | return 0; | 373 | return 0; |
366 | } | 374 | } |
@@ -368,7 +376,7 @@ EXPORT_SYMBOL(imx_dma_config_channel); | |||
368 | 376 | ||
369 | void imx_dma_config_burstlen(int channel, unsigned int burstlen) | 377 | void imx_dma_config_burstlen(int channel, unsigned int burstlen) |
370 | { | 378 | { |
371 | __raw_writel(burstlen, DMA_BASE + DMA_BLR(channel)); | 379 | imx_dmav1_writel(burstlen, DMA_BLR(channel)); |
372 | } | 380 | } |
373 | EXPORT_SYMBOL(imx_dma_config_burstlen); | 381 | EXPORT_SYMBOL(imx_dma_config_burstlen); |
374 | 382 | ||
@@ -398,7 +406,7 @@ imx_dma_setup_handlers(int channel, | |||
398 | } | 406 | } |
399 | 407 | ||
400 | local_irq_save(flags); | 408 | local_irq_save(flags); |
401 | __raw_writel(1 << channel, DMA_BASE + DMA_DISR); | 409 | imx_dmav1_writel(1 << channel, DMA_DISR); |
402 | imxdma->irq_handler = irq_handler; | 410 | imxdma->irq_handler = irq_handler; |
403 | imxdma->err_handler = err_handler; | 411 | imxdma->err_handler = err_handler; |
404 | imxdma->data = data; | 412 | imxdma->data = data; |
@@ -462,22 +470,21 @@ void imx_dma_enable(int channel) | |||
462 | 470 | ||
463 | local_irq_save(flags); | 471 | local_irq_save(flags); |
464 | 472 | ||
465 | __raw_writel(1 << channel, DMA_BASE + DMA_DISR); | 473 | imx_dmav1_writel(1 << channel, DMA_DISR); |
466 | __raw_writel(__raw_readl(DMA_BASE + DMA_DIMR) & ~(1 << channel), | 474 | imx_dmav1_writel(imx_dmav1_readl(DMA_DIMR) & ~(1 << channel), DMA_DIMR); |
467 | DMA_BASE + DMA_DIMR); | 475 | imx_dmav1_writel(imx_dmav1_readl(DMA_CCR(channel)) | CCR_CEN | |
468 | __raw_writel(__raw_readl(DMA_BASE + DMA_CCR(channel)) | CCR_CEN | | 476 | CCR_ACRPT, DMA_CCR(channel)); |
469 | CCR_ACRPT, | ||
470 | DMA_BASE + DMA_CCR(channel)); | ||
471 | 477 | ||
472 | #ifdef CONFIG_ARCH_MX2 | 478 | #ifdef CONFIG_ARCH_MX2 |
473 | if (imxdma->sg && imx_dma_hw_chain(imxdma)) { | 479 | if ((cpu_is_mx21() || cpu_is_mx27()) && |
480 | imxdma->sg && imx_dma_hw_chain(imxdma)) { | ||
474 | imxdma->sg = sg_next(imxdma->sg); | 481 | imxdma->sg = sg_next(imxdma->sg); |
475 | if (imxdma->sg) { | 482 | if (imxdma->sg) { |
476 | u32 tmp; | 483 | u32 tmp; |
477 | imx_dma_sg_next(channel, imxdma->sg); | 484 | imx_dma_sg_next(channel, imxdma->sg); |
478 | tmp = __raw_readl(DMA_BASE + DMA_CCR(channel)); | 485 | tmp = imx_dmav1_readl(DMA_CCR(channel)); |
479 | __raw_writel(tmp | CCR_RPT | CCR_ACRPT, | 486 | imx_dmav1_writel(tmp | CCR_RPT | CCR_ACRPT, |
480 | DMA_BASE + DMA_CCR(channel)); | 487 | DMA_CCR(channel)); |
481 | } | 488 | } |
482 | } | 489 | } |
483 | #endif | 490 | #endif |
@@ -502,11 +509,10 @@ void imx_dma_disable(int channel) | |||
502 | del_timer(&imxdma->watchdog); | 509 | del_timer(&imxdma->watchdog); |
503 | 510 | ||
504 | local_irq_save(flags); | 511 | local_irq_save(flags); |
505 | __raw_writel(__raw_readl(DMA_BASE + DMA_DIMR) | (1 << channel), | 512 | imx_dmav1_writel(imx_dmav1_readl(DMA_DIMR) | (1 << channel), DMA_DIMR); |
506 | DMA_BASE + DMA_DIMR); | 513 | imx_dmav1_writel(imx_dmav1_readl(DMA_CCR(channel)) & ~CCR_CEN, |
507 | __raw_writel(__raw_readl(DMA_BASE + DMA_CCR(channel)) & ~CCR_CEN, | 514 | DMA_CCR(channel)); |
508 | DMA_BASE + DMA_CCR(channel)); | 515 | imx_dmav1_writel(1 << channel, DMA_DISR); |
509 | __raw_writel(1 << channel, DMA_BASE + DMA_DISR); | ||
510 | imxdma->in_use = 0; | 516 | imxdma->in_use = 0; |
511 | local_irq_restore(flags); | 517 | local_irq_restore(flags); |
512 | } | 518 | } |
@@ -517,7 +523,7 @@ static void imx_dma_watchdog(unsigned long chno) | |||
517 | { | 523 | { |
518 | struct imx_dma_channel *imxdma = &imx_dma_channels[chno]; | 524 | struct imx_dma_channel *imxdma = &imx_dma_channels[chno]; |
519 | 525 | ||
520 | __raw_writel(0, DMA_BASE + DMA_CCR(chno)); | 526 | imx_dmav1_writel(0, DMA_CCR(chno)); |
521 | imxdma->in_use = 0; | 527 | imxdma->in_use = 0; |
522 | imxdma->sg = NULL; | 528 | imxdma->sg = NULL; |
523 | 529 | ||
@@ -533,17 +539,17 @@ static irqreturn_t dma_err_handler(int irq, void *dev_id) | |||
533 | unsigned int err_mask; | 539 | unsigned int err_mask; |
534 | int errcode; | 540 | int errcode; |
535 | 541 | ||
536 | disr = __raw_readl(DMA_BASE + DMA_DISR); | 542 | disr = imx_dmav1_readl(DMA_DISR); |
537 | 543 | ||
538 | err_mask = __raw_readl(DMA_BASE + DMA_DBTOSR) | | 544 | err_mask = imx_dmav1_readl(DMA_DBTOSR) | |
539 | __raw_readl(DMA_BASE + DMA_DRTOSR) | | 545 | imx_dmav1_readl(DMA_DRTOSR) | |
540 | __raw_readl(DMA_BASE + DMA_DSESR) | | 546 | imx_dmav1_readl(DMA_DSESR) | |
541 | __raw_readl(DMA_BASE + DMA_DBOSR); | 547 | imx_dmav1_readl(DMA_DBOSR); |
542 | 548 | ||
543 | if (!err_mask) | 549 | if (!err_mask) |
544 | return IRQ_HANDLED; | 550 | return IRQ_HANDLED; |
545 | 551 | ||
546 | __raw_writel(disr & err_mask, DMA_BASE + DMA_DISR); | 552 | imx_dmav1_writel(disr & err_mask, DMA_DISR); |
547 | 553 | ||
548 | for (i = 0; i < IMX_DMA_CHANNELS; i++) { | 554 | for (i = 0; i < IMX_DMA_CHANNELS; i++) { |
549 | if (!(err_mask & (1 << i))) | 555 | if (!(err_mask & (1 << i))) |
@@ -551,20 +557,20 @@ static irqreturn_t dma_err_handler(int irq, void *dev_id) | |||
551 | imxdma = &imx_dma_channels[i]; | 557 | imxdma = &imx_dma_channels[i]; |
552 | errcode = 0; | 558 | errcode = 0; |
553 | 559 | ||
554 | if (__raw_readl(DMA_BASE + DMA_DBTOSR) & (1 << i)) { | 560 | if (imx_dmav1_readl(DMA_DBTOSR) & (1 << i)) { |
555 | __raw_writel(1 << i, DMA_BASE + DMA_DBTOSR); | 561 | imx_dmav1_writel(1 << i, DMA_DBTOSR); |
556 | errcode |= IMX_DMA_ERR_BURST; | 562 | errcode |= IMX_DMA_ERR_BURST; |
557 | } | 563 | } |
558 | if (__raw_readl(DMA_BASE + DMA_DRTOSR) & (1 << i)) { | 564 | if (imx_dmav1_readl(DMA_DRTOSR) & (1 << i)) { |
559 | __raw_writel(1 << i, DMA_BASE + DMA_DRTOSR); | 565 | imx_dmav1_writel(1 << i, DMA_DRTOSR); |
560 | errcode |= IMX_DMA_ERR_REQUEST; | 566 | errcode |= IMX_DMA_ERR_REQUEST; |
561 | } | 567 | } |
562 | if (__raw_readl(DMA_BASE + DMA_DSESR) & (1 << i)) { | 568 | if (imx_dmav1_readl(DMA_DSESR) & (1 << i)) { |
563 | __raw_writel(1 << i, DMA_BASE + DMA_DSESR); | 569 | imx_dmav1_writel(1 << i, DMA_DSESR); |
564 | errcode |= IMX_DMA_ERR_TRANSFER; | 570 | errcode |= IMX_DMA_ERR_TRANSFER; |
565 | } | 571 | } |
566 | if (__raw_readl(DMA_BASE + DMA_DBOSR) & (1 << i)) { | 572 | if (imx_dmav1_readl(DMA_DBOSR) & (1 << i)) { |
567 | __raw_writel(1 << i, DMA_BASE + DMA_DBOSR); | 573 | imx_dmav1_writel(1 << i, DMA_DBOSR); |
568 | errcode |= IMX_DMA_ERR_BUFFER; | 574 | errcode |= IMX_DMA_ERR_BUFFER; |
569 | } | 575 | } |
570 | if (imxdma->name && imxdma->err_handler) { | 576 | if (imxdma->name && imxdma->err_handler) { |
@@ -607,7 +613,7 @@ static void dma_irq_handle_channel(int chno) | |||
607 | if (imxdma->sg) { | 613 | if (imxdma->sg) { |
608 | imx_dma_sg_next(chno, imxdma->sg); | 614 | imx_dma_sg_next(chno, imxdma->sg); |
609 | 615 | ||
610 | tmp = __raw_readl(DMA_BASE + DMA_CCR(chno)); | 616 | tmp = imx_dmav1_readl(DMA_CCR(chno)); |
611 | 617 | ||
612 | if (imx_dma_hw_chain(imxdma)) { | 618 | if (imx_dma_hw_chain(imxdma)) { |
613 | /* FIXME: The timeout should probably be | 619 | /* FIXME: The timeout should probably be |
@@ -617,15 +623,13 @@ static void dma_irq_handle_channel(int chno) | |||
617 | jiffies + msecs_to_jiffies(500)); | 623 | jiffies + msecs_to_jiffies(500)); |
618 | 624 | ||
619 | tmp |= CCR_CEN | CCR_RPT | CCR_ACRPT; | 625 | tmp |= CCR_CEN | CCR_RPT | CCR_ACRPT; |
620 | __raw_writel(tmp, DMA_BASE + | 626 | imx_dmav1_writel(tmp, DMA_CCR(chno)); |
621 | DMA_CCR(chno)); | ||
622 | } else { | 627 | } else { |
623 | __raw_writel(tmp & ~CCR_CEN, DMA_BASE + | 628 | imx_dmav1_writel(tmp & ~CCR_CEN, DMA_CCR(chno)); |
624 | DMA_CCR(chno)); | ||
625 | tmp |= CCR_CEN; | 629 | tmp |= CCR_CEN; |
626 | } | 630 | } |
627 | 631 | ||
628 | __raw_writel(tmp, DMA_BASE + DMA_CCR(chno)); | 632 | imx_dmav1_writel(tmp, DMA_CCR(chno)); |
629 | 633 | ||
630 | if (imxdma->prog_handler) | 634 | if (imxdma->prog_handler) |
631 | imxdma->prog_handler(chno, imxdma->data, | 635 | imxdma->prog_handler(chno, imxdma->data, |
@@ -640,7 +644,7 @@ static void dma_irq_handle_channel(int chno) | |||
640 | } | 644 | } |
641 | } | 645 | } |
642 | 646 | ||
643 | __raw_writel(0, DMA_BASE + DMA_CCR(chno)); | 647 | imx_dmav1_writel(0, DMA_CCR(chno)); |
644 | imxdma->in_use = 0; | 648 | imxdma->in_use = 0; |
645 | if (imxdma->irq_handler) | 649 | if (imxdma->irq_handler) |
646 | imxdma->irq_handler(chno, imxdma->data); | 650 | imxdma->irq_handler(chno, imxdma->data); |
@@ -651,15 +655,16 @@ static irqreturn_t dma_irq_handler(int irq, void *dev_id) | |||
651 | int i, disr; | 655 | int i, disr; |
652 | 656 | ||
653 | #ifdef CONFIG_ARCH_MX2 | 657 | #ifdef CONFIG_ARCH_MX2 |
654 | dma_err_handler(irq, dev_id); | 658 | if (cpu_is_mx21() || cpu_is_mx27()) |
659 | dma_err_handler(irq, dev_id); | ||
655 | #endif | 660 | #endif |
656 | 661 | ||
657 | disr = __raw_readl(DMA_BASE + DMA_DISR); | 662 | disr = imx_dmav1_readl(DMA_DISR); |
658 | 663 | ||
659 | pr_debug("imxdma: dma_irq_handler called, disr=0x%08x\n", | 664 | pr_debug("imxdma: dma_irq_handler called, disr=0x%08x\n", |
660 | disr); | 665 | disr); |
661 | 666 | ||
662 | __raw_writel(disr, DMA_BASE + DMA_DISR); | 667 | imx_dmav1_writel(disr, DMA_DISR); |
663 | for (i = 0; i < IMX_DMA_CHANNELS; i++) { | 668 | for (i = 0; i < IMX_DMA_CHANNELS; i++) { |
664 | if (disr & (1 << i)) | 669 | if (disr & (1 << i)) |
665 | dma_irq_handle_channel(i); | 670 | dma_irq_handle_channel(i); |
@@ -699,17 +704,19 @@ int imx_dma_request(int channel, const char *name) | |||
699 | local_irq_restore(flags); /* request_irq() can block */ | 704 | local_irq_restore(flags); /* request_irq() can block */ |
700 | 705 | ||
701 | #ifdef CONFIG_ARCH_MX2 | 706 | #ifdef CONFIG_ARCH_MX2 |
702 | ret = request_irq(MXC_INT_DMACH0 + channel, dma_irq_handler, 0, "DMA", | 707 | if (cpu_is_mx21() || cpu_is_mx27()) { |
703 | NULL); | 708 | ret = request_irq(MX2x_INT_DMACH0 + channel, |
704 | if (ret) { | 709 | dma_irq_handler, 0, "DMA", NULL); |
705 | imxdma->name = NULL; | 710 | if (ret) { |
706 | printk(KERN_CRIT "Can't register IRQ %d for DMA channel %d\n", | 711 | imxdma->name = NULL; |
707 | MXC_INT_DMACH0 + channel, channel); | 712 | pr_crit("Can't register IRQ %d for DMA channel %d\n", |
708 | return ret; | 713 | MX2x_INT_DMACH0 + channel, channel); |
714 | return ret; | ||
715 | } | ||
716 | init_timer(&imxdma->watchdog); | ||
717 | imxdma->watchdog.function = &imx_dma_watchdog; | ||
718 | imxdma->watchdog.data = channel; | ||
709 | } | 719 | } |
710 | init_timer(&imxdma->watchdog); | ||
711 | imxdma->watchdog.function = &imx_dma_watchdog; | ||
712 | imxdma->watchdog.data = channel; | ||
713 | #endif | 720 | #endif |
714 | 721 | ||
715 | return ret; | 722 | return ret; |
@@ -738,7 +745,8 @@ void imx_dma_free(int channel) | |||
738 | imxdma->name = NULL; | 745 | imxdma->name = NULL; |
739 | 746 | ||
740 | #ifdef CONFIG_ARCH_MX2 | 747 | #ifdef CONFIG_ARCH_MX2 |
741 | free_irq(MXC_INT_DMACH0 + channel, NULL); | 748 | if (cpu_is_mx21() || cpu_is_mx27()) |
749 | free_irq(MX2x_INT_DMACH0 + channel, NULL); | ||
742 | #endif | 750 | #endif |
743 | 751 | ||
744 | local_irq_restore(flags); | 752 | local_irq_restore(flags); |
@@ -796,34 +804,53 @@ static int __init imx_dma_init(void) | |||
796 | int ret = 0; | 804 | int ret = 0; |
797 | int i; | 805 | int i; |
798 | 806 | ||
807 | #ifdef CONFIG_ARCH_MX1 | ||
808 | if (cpu_is_mx1()) | ||
809 | imx_dmav1_baseaddr = MX1_IO_ADDRESS(MX1_DMA_BASE_ADDR); | ||
810 | else | ||
811 | #endif | ||
812 | #ifdef CONFIG_MACH_MX21 | ||
813 | if (cpu_is_mx21()) | ||
814 | imx_dmav1_baseaddr = MX21_IO_ADDRESS(MX21_DMA_BASE_ADDR); | ||
815 | else | ||
816 | #endif | ||
817 | #ifdef CONFIG_MACH_MX27 | ||
818 | if (cpu_is_mx27()) | ||
819 | imx_dmav1_baseaddr = MX27_IO_ADDRESS(MX27_DMA_BASE_ADDR); | ||
820 | else | ||
821 | #endif | ||
822 | BUG(); | ||
823 | |||
799 | dma_clk = clk_get(NULL, "dma"); | 824 | dma_clk = clk_get(NULL, "dma"); |
800 | clk_enable(dma_clk); | 825 | clk_enable(dma_clk); |
801 | 826 | ||
802 | /* reset DMA module */ | 827 | /* reset DMA module */ |
803 | __raw_writel(DCR_DRST, DMA_BASE + DMA_DCR); | 828 | imx_dmav1_writel(DCR_DRST, DMA_DCR); |
804 | 829 | ||
805 | #ifdef CONFIG_ARCH_MX1 | 830 | #ifdef CONFIG_ARCH_MX1 |
806 | ret = request_irq(DMA_INT, dma_irq_handler, 0, "DMA", NULL); | 831 | if (cpu_is_mx1()) { |
807 | if (ret) { | 832 | ret = request_irq(MX1_DMA_INT, dma_irq_handler, 0, "DMA", NULL); |
808 | printk(KERN_CRIT "Wow! Can't register IRQ for DMA\n"); | 833 | if (ret) { |
809 | return ret; | 834 | pr_crit("Wow! Can't register IRQ for DMA\n"); |
810 | } | 835 | return ret; |
836 | } | ||
811 | 837 | ||
812 | ret = request_irq(DMA_ERR, dma_err_handler, 0, "DMA", NULL); | 838 | ret = request_irq(MX1_DMA_ERR, dma_err_handler, 0, "DMA", NULL); |
813 | if (ret) { | 839 | if (ret) { |
814 | printk(KERN_CRIT "Wow! Can't register ERRIRQ for DMA\n"); | 840 | pr_crit("Wow! Can't register ERRIRQ for DMA\n"); |
815 | free_irq(DMA_INT, NULL); | 841 | free_irq(MX1_DMA_INT, NULL); |
816 | return ret; | 842 | return ret; |
843 | } | ||
817 | } | 844 | } |
818 | #endif | 845 | #endif |
819 | /* enable DMA module */ | 846 | /* enable DMA module */ |
820 | __raw_writel(DCR_DEN, DMA_BASE + DMA_DCR); | 847 | imx_dmav1_writel(DCR_DEN, DMA_DCR); |
821 | 848 | ||
822 | /* clear all interrupts */ | 849 | /* clear all interrupts */ |
823 | __raw_writel((1 << IMX_DMA_CHANNELS) - 1, DMA_BASE + DMA_DISR); | 850 | imx_dmav1_writel((1 << IMX_DMA_CHANNELS) - 1, DMA_DISR); |
824 | 851 | ||
825 | /* disable interrupts */ | 852 | /* disable interrupts */ |
826 | __raw_writel((1 << IMX_DMA_CHANNELS) - 1, DMA_BASE + DMA_DIMR); | 853 | imx_dmav1_writel((1 << IMX_DMA_CHANNELS) - 1, DMA_DIMR); |
827 | 854 | ||
828 | for (i = 0; i < IMX_DMA_CHANNELS; i++) { | 855 | for (i = 0; i < IMX_DMA_CHANNELS; i++) { |
829 | imx_dma_channels[i].sg = NULL; | 856 | imx_dma_channels[i].sg = NULL; |
diff --git a/arch/arm/plat-mxc/ehci.c b/arch/arm/plat-mxc/ehci.c index 41599be882e..cb0b6387448 100644 --- a/arch/arm/plat-mxc/ehci.c +++ b/arch/arm/plat-mxc/ehci.c | |||
@@ -25,25 +25,37 @@ | |||
25 | #define USBCTRL_OTGBASE_OFFSET 0x600 | 25 | #define USBCTRL_OTGBASE_OFFSET 0x600 |
26 | 26 | ||
27 | #define MX31_OTG_SIC_SHIFT 29 | 27 | #define MX31_OTG_SIC_SHIFT 29 |
28 | #define MX31_OTG_SIC_MASK (0xf << MX31_OTG_SIC_SHIFT) | 28 | #define MX31_OTG_SIC_MASK (0x3 << MX31_OTG_SIC_SHIFT) |
29 | #define MX31_OTG_PM_BIT (1 << 24) | 29 | #define MX31_OTG_PM_BIT (1 << 24) |
30 | 30 | ||
31 | #define MX31_H2_SIC_SHIFT 21 | 31 | #define MX31_H2_SIC_SHIFT 21 |
32 | #define MX31_H2_SIC_MASK (0xf << MX31_H2_SIC_SHIFT) | 32 | #define MX31_H2_SIC_MASK (0x3 << MX31_H2_SIC_SHIFT) |
33 | #define MX31_H2_PM_BIT (1 << 16) | 33 | #define MX31_H2_PM_BIT (1 << 16) |
34 | #define MX31_H2_DT_BIT (1 << 5) | 34 | #define MX31_H2_DT_BIT (1 << 5) |
35 | 35 | ||
36 | #define MX31_H1_SIC_SHIFT 13 | 36 | #define MX31_H1_SIC_SHIFT 13 |
37 | #define MX31_H1_SIC_MASK (0xf << MX31_H1_SIC_SHIFT) | 37 | #define MX31_H1_SIC_MASK (0x3 << MX31_H1_SIC_SHIFT) |
38 | #define MX31_H1_PM_BIT (1 << 8) | 38 | #define MX31_H1_PM_BIT (1 << 8) |
39 | #define MX31_H1_DT_BIT (1 << 4) | 39 | #define MX31_H1_DT_BIT (1 << 4) |
40 | 40 | ||
41 | #define MX35_OTG_SIC_SHIFT 29 | ||
42 | #define MX35_OTG_SIC_MASK (0x3 << MX35_OTG_SIC_SHIFT) | ||
43 | #define MX35_OTG_PM_BIT (1 << 24) | ||
44 | |||
45 | #define MX35_H1_SIC_SHIFT 21 | ||
46 | #define MX35_H1_SIC_MASK (0x3 << MX35_H1_SIC_SHIFT) | ||
47 | #define MX35_H1_PM_BIT (1 << 8) | ||
48 | #define MX35_H1_IPPUE_UP_BIT (1 << 7) | ||
49 | #define MX35_H1_IPPUE_DOWN_BIT (1 << 6) | ||
50 | #define MX35_H1_TLL_BIT (1 << 5) | ||
51 | #define MX35_H1_USBTE_BIT (1 << 4) | ||
52 | |||
41 | int mxc_set_usbcontrol(int port, unsigned int flags) | 53 | int mxc_set_usbcontrol(int port, unsigned int flags) |
42 | { | 54 | { |
43 | unsigned int v; | 55 | unsigned int v; |
44 | 56 | #ifdef CONFIG_ARCH_MX3 | |
45 | if (cpu_is_mx31()) { | 57 | if (cpu_is_mx31()) { |
46 | v = readl(IO_ADDRESS(MX31_OTG_BASE_ADDR + | 58 | v = readl(MX31_IO_ADDRESS(MX31_OTG_BASE_ADDR + |
47 | USBCTRL_OTGBASE_OFFSET)); | 59 | USBCTRL_OTGBASE_OFFSET)); |
48 | 60 | ||
49 | switch (port) { | 61 | switch (port) { |
@@ -51,15 +63,15 @@ int mxc_set_usbcontrol(int port, unsigned int flags) | |||
51 | v &= ~(MX31_OTG_SIC_MASK | MX31_OTG_PM_BIT); | 63 | v &= ~(MX31_OTG_SIC_MASK | MX31_OTG_PM_BIT); |
52 | v |= (flags & MXC_EHCI_INTERFACE_MASK) | 64 | v |= (flags & MXC_EHCI_INTERFACE_MASK) |
53 | << MX31_OTG_SIC_SHIFT; | 65 | << MX31_OTG_SIC_SHIFT; |
54 | if (flags & MXC_EHCI_POWER_PINS_ENABLED) | 66 | if (!(flags & MXC_EHCI_POWER_PINS_ENABLED)) |
55 | v |= MX31_OTG_PM_BIT; | 67 | v |= MX31_OTG_PM_BIT; |
56 | 68 | ||
57 | break; | 69 | break; |
58 | case 1: /* H1 port */ | 70 | case 1: /* H1 port */ |
59 | v &= ~(MX31_H1_SIC_MASK | MX31_H1_PM_BIT); | 71 | v &= ~(MX31_H1_SIC_MASK | MX31_H1_PM_BIT | MX31_H1_DT_BIT); |
60 | v |= (flags & MXC_EHCI_INTERFACE_MASK) | 72 | v |= (flags & MXC_EHCI_INTERFACE_MASK) |
61 | << MX31_H1_SIC_SHIFT; | 73 | << MX31_H1_SIC_SHIFT; |
62 | if (flags & MXC_EHCI_POWER_PINS_ENABLED) | 74 | if (!(flags & MXC_EHCI_POWER_PINS_ENABLED)) |
63 | v |= MX31_H1_PM_BIT; | 75 | v |= MX31_H1_PM_BIT; |
64 | 76 | ||
65 | if (!(flags & MXC_EHCI_TTL_ENABLED)) | 77 | if (!(flags & MXC_EHCI_TTL_ENABLED)) |
@@ -67,7 +79,7 @@ int mxc_set_usbcontrol(int port, unsigned int flags) | |||
67 | 79 | ||
68 | break; | 80 | break; |
69 | case 2: /* H2 port */ | 81 | case 2: /* H2 port */ |
70 | v &= ~(MX31_H2_SIC_MASK | MX31_H2_PM_BIT); | 82 | v &= ~(MX31_H2_SIC_MASK | MX31_H2_PM_BIT | MX31_H2_DT_BIT); |
71 | v |= (flags & MXC_EHCI_INTERFACE_MASK) | 83 | v |= (flags & MXC_EHCI_INTERFACE_MASK) |
72 | << MX31_H2_SIC_SHIFT; | 84 | << MX31_H2_SIC_SHIFT; |
73 | if (!(flags & MXC_EHCI_POWER_PINS_ENABLED)) | 85 | if (!(flags & MXC_EHCI_POWER_PINS_ENABLED)) |
@@ -77,13 +89,103 @@ int mxc_set_usbcontrol(int port, unsigned int flags) | |||
77 | v |= MX31_H2_DT_BIT; | 89 | v |= MX31_H2_DT_BIT; |
78 | 90 | ||
79 | break; | 91 | break; |
92 | default: | ||
93 | return -EINVAL; | ||
80 | } | 94 | } |
81 | 95 | ||
82 | writel(v, IO_ADDRESS(MX31_OTG_BASE_ADDR + | 96 | writel(v, MX31_IO_ADDRESS(MX31_OTG_BASE_ADDR + |
83 | USBCTRL_OTGBASE_OFFSET)); | 97 | USBCTRL_OTGBASE_OFFSET)); |
84 | return 0; | 98 | return 0; |
85 | } | 99 | } |
86 | 100 | ||
101 | if (cpu_is_mx35()) { | ||
102 | v = readl(MX35_IO_ADDRESS(MX35_OTG_BASE_ADDR + | ||
103 | USBCTRL_OTGBASE_OFFSET)); | ||
104 | |||
105 | switch (port) { | ||
106 | case 0: /* OTG port */ | ||
107 | v &= ~(MX35_OTG_SIC_MASK | MX35_OTG_PM_BIT); | ||
108 | v |= (flags & MXC_EHCI_INTERFACE_MASK) | ||
109 | << MX35_OTG_SIC_SHIFT; | ||
110 | if (!(flags & MXC_EHCI_POWER_PINS_ENABLED)) | ||
111 | v |= MX35_OTG_PM_BIT; | ||
112 | |||
113 | break; | ||
114 | case 1: /* H1 port */ | ||
115 | v &= ~(MX35_H1_SIC_MASK | MX35_H1_PM_BIT | MX35_H1_TLL_BIT | | ||
116 | MX35_H1_USBTE_BIT | MX35_H1_IPPUE_DOWN_BIT | MX35_H1_IPPUE_UP_BIT); | ||
117 | v |= (flags & MXC_EHCI_INTERFACE_MASK) | ||
118 | << MX35_H1_SIC_SHIFT; | ||
119 | if (!(flags & MXC_EHCI_POWER_PINS_ENABLED)) | ||
120 | v |= MX35_H1_PM_BIT; | ||
121 | |||
122 | if (!(flags & MXC_EHCI_TTL_ENABLED)) | ||
123 | v |= MX35_H1_TLL_BIT; | ||
124 | |||
125 | if (flags & MXC_EHCI_INTERNAL_PHY) | ||
126 | v |= MX35_H1_USBTE_BIT; | ||
127 | |||
128 | if (flags & MXC_EHCI_IPPUE_DOWN) | ||
129 | v |= MX35_H1_IPPUE_DOWN_BIT; | ||
130 | |||
131 | if (flags & MXC_EHCI_IPPUE_UP) | ||
132 | v |= MX35_H1_IPPUE_UP_BIT; | ||
133 | |||
134 | break; | ||
135 | default: | ||
136 | return -EINVAL; | ||
137 | } | ||
138 | |||
139 | writel(v, MX35_IO_ADDRESS(MX35_OTG_BASE_ADDR + | ||
140 | USBCTRL_OTGBASE_OFFSET)); | ||
141 | return 0; | ||
142 | } | ||
143 | #endif /* CONFIG_ARCH_MX3 */ | ||
144 | #ifdef CONFIG_MACH_MX27 | ||
145 | if (cpu_is_mx27()) { | ||
146 | /* On i.MX27 we can use the i.MX31 USBCTRL bits, they | ||
147 | * are identical | ||
148 | */ | ||
149 | v = readl(MX27_IO_ADDRESS(MX27_OTG_BASE_ADDR + | ||
150 | USBCTRL_OTGBASE_OFFSET)); | ||
151 | switch (port) { | ||
152 | case 0: /* OTG port */ | ||
153 | v &= ~(MX31_OTG_SIC_MASK | MX31_OTG_PM_BIT); | ||
154 | v |= (flags & MXC_EHCI_INTERFACE_MASK) | ||
155 | << MX31_OTG_SIC_SHIFT; | ||
156 | if (!(flags & MXC_EHCI_POWER_PINS_ENABLED)) | ||
157 | v |= MX31_OTG_PM_BIT; | ||
158 | break; | ||
159 | case 1: /* H1 port */ | ||
160 | v &= ~(MX31_H1_SIC_MASK | MX31_H1_PM_BIT | MX31_H1_DT_BIT); | ||
161 | v |= (flags & MXC_EHCI_INTERFACE_MASK) | ||
162 | << MX31_H1_SIC_SHIFT; | ||
163 | if (!(flags & MXC_EHCI_POWER_PINS_ENABLED)) | ||
164 | v |= MX31_H1_PM_BIT; | ||
165 | |||
166 | if (!(flags & MXC_EHCI_TTL_ENABLED)) | ||
167 | v |= MX31_H1_DT_BIT; | ||
168 | |||
169 | break; | ||
170 | case 2: /* H2 port */ | ||
171 | v &= ~(MX31_H2_SIC_MASK | MX31_H2_PM_BIT | MX31_H2_DT_BIT); | ||
172 | v |= (flags & MXC_EHCI_INTERFACE_MASK) | ||
173 | << MX31_H2_SIC_SHIFT; | ||
174 | if (!(flags & MXC_EHCI_POWER_PINS_ENABLED)) | ||
175 | v |= MX31_H2_PM_BIT; | ||
176 | |||
177 | if (!(flags & MXC_EHCI_TTL_ENABLED)) | ||
178 | v |= MX31_H2_DT_BIT; | ||
179 | |||
180 | break; | ||
181 | default: | ||
182 | return -EINVAL; | ||
183 | } | ||
184 | writel(v, MX27_IO_ADDRESS(MX27_OTG_BASE_ADDR + | ||
185 | USBCTRL_OTGBASE_OFFSET)); | ||
186 | return 0; | ||
187 | } | ||
188 | #endif /* CONFIG_MACH_MX27 */ | ||
87 | printk(KERN_WARNING | 189 | printk(KERN_WARNING |
88 | "%s() unable to setup USBCONTROL for this CPU\n", __func__); | 190 | "%s() unable to setup USBCONTROL for this CPU\n", __func__); |
89 | return -EINVAL; | 191 | return -EINVAL; |
diff --git a/arch/arm/plat-mxc/gpio.c b/arch/arm/plat-mxc/gpio.c index d65ebe303b9..70b23893f09 100644 --- a/arch/arm/plat-mxc/gpio.c +++ b/arch/arm/plat-mxc/gpio.c | |||
@@ -140,16 +140,13 @@ static void mxc_flip_edge(struct mxc_gpio_port *port, u32 gpio) | |||
140 | val = __raw_readl(reg); | 140 | val = __raw_readl(reg); |
141 | edge = (val >> (bit << 1)) & 3; | 141 | edge = (val >> (bit << 1)) & 3; |
142 | val &= ~(0x3 << (bit << 1)); | 142 | val &= ~(0x3 << (bit << 1)); |
143 | switch (edge) { | 143 | if (edge == GPIO_INT_HIGH_LEV) { |
144 | case GPIO_INT_HIGH_LEV: | ||
145 | edge = GPIO_INT_LOW_LEV; | 144 | edge = GPIO_INT_LOW_LEV; |
146 | pr_debug("mxc: switch GPIO %d to low trigger\n", gpio); | 145 | pr_debug("mxc: switch GPIO %d to low trigger\n", gpio); |
147 | break; | 146 | } else if (edge == GPIO_INT_LOW_LEV) { |
148 | case GPIO_INT_LOW_LEV: | ||
149 | edge = GPIO_INT_HIGH_LEV; | 147 | edge = GPIO_INT_HIGH_LEV; |
150 | pr_debug("mxc: switch GPIO %d to high trigger\n", gpio); | 148 | pr_debug("mxc: switch GPIO %d to high trigger\n", gpio); |
151 | break; | 149 | } else { |
152 | default: | ||
153 | pr_err("mxc: invalid configuration for GPIO %d: %x\n", | 150 | pr_err("mxc: invalid configuration for GPIO %d: %x\n", |
154 | gpio, edge); | 151 | gpio, edge); |
155 | return; | 152 | return; |
@@ -157,25 +154,20 @@ static void mxc_flip_edge(struct mxc_gpio_port *port, u32 gpio) | |||
157 | __raw_writel(val | (edge << (bit << 1)), reg); | 154 | __raw_writel(val | (edge << (bit << 1)), reg); |
158 | } | 155 | } |
159 | 156 | ||
160 | /* handle n interrupts in one status register */ | 157 | /* handle 32 interrupts in one status register */ |
161 | static void mxc_gpio_irq_handler(struct mxc_gpio_port *port, u32 irq_stat) | 158 | static void mxc_gpio_irq_handler(struct mxc_gpio_port *port, u32 irq_stat) |
162 | { | 159 | { |
163 | u32 gpio_irq_no; | 160 | u32 gpio_irq_no_base = port->virtual_irq_start; |
164 | 161 | ||
165 | gpio_irq_no = port->virtual_irq_start; | 162 | while (irq_stat != 0) { |
166 | for (; irq_stat != 0; irq_stat >>= 1, gpio_irq_no++) { | 163 | int irqoffset = fls(irq_stat) - 1; |
167 | u32 gpio = irq_to_gpio(gpio_irq_no); | ||
168 | |||
169 | if ((irq_stat & 1) == 0) | ||
170 | continue; | ||
171 | 164 | ||
172 | BUG_ON(!(irq_desc[gpio_irq_no].handle_irq)); | 165 | if (port->both_edges & (1 << irqoffset)) |
166 | mxc_flip_edge(port, irqoffset); | ||
173 | 167 | ||
174 | if (port->both_edges & (1 << (gpio & 31))) | 168 | generic_handle_irq(gpio_irq_no_base + irqoffset); |
175 | mxc_flip_edge(port, gpio); | ||
176 | 169 | ||
177 | irq_desc[gpio_irq_no].handle_irq(gpio_irq_no, | 170 | irq_stat &= ~(1 << irqoffset); |
178 | &irq_desc[gpio_irq_no]); | ||
179 | } | 171 | } |
180 | } | 172 | } |
181 | 173 | ||
diff --git a/arch/arm/plat-mxc/include/mach/board-kzmarm11.h b/arch/arm/plat-mxc/include/mach/board-kzmarm11.h index 05ff2f31ef1..93cc66f104c 100644 --- a/arch/arm/plat-mxc/include/mach/board-kzmarm11.h +++ b/arch/arm/plat-mxc/include/mach/board-kzmarm11.h | |||
@@ -21,19 +21,19 @@ | |||
21 | /* | 21 | /* |
22 | * KZM-ARM11-01 Board Control Registers on FPGA | 22 | * KZM-ARM11-01 Board Control Registers on FPGA |
23 | */ | 23 | */ |
24 | #define KZM_ARM11_CTL1 (CS4_BASE_ADDR + 0x1000) | 24 | #define KZM_ARM11_CTL1 (MX31_CS4_BASE_ADDR + 0x1000) |
25 | #define KZM_ARM11_CTL2 (CS4_BASE_ADDR + 0x1001) | 25 | #define KZM_ARM11_CTL2 (MX31_CS4_BASE_ADDR + 0x1001) |
26 | #define KZM_ARM11_RSW1 (CS4_BASE_ADDR + 0x1002) | 26 | #define KZM_ARM11_RSW1 (MX31_CS4_BASE_ADDR + 0x1002) |
27 | #define KZM_ARM11_BACK_LIGHT (CS4_BASE_ADDR + 0x1004) | 27 | #define KZM_ARM11_BACK_LIGHT (MX31_CS4_BASE_ADDR + 0x1004) |
28 | #define KZM_ARM11_FPGA_REV (CS4_BASE_ADDR + 0x1008) | 28 | #define KZM_ARM11_FPGA_REV (MX31_CS4_BASE_ADDR + 0x1008) |
29 | #define KZM_ARM11_7SEG_LED (CS4_BASE_ADDR + 0x1010) | 29 | #define KZM_ARM11_7SEG_LED (MX31_CS4_BASE_ADDR + 0x1010) |
30 | #define KZM_ARM11_LEDS (CS4_BASE_ADDR + 0x1020) | 30 | #define KZM_ARM11_LEDS (MX31_CS4_BASE_ADDR + 0x1020) |
31 | #define KZM_ARM11_DIPSW2 (CS4_BASE_ADDR + 0x1003) | 31 | #define KZM_ARM11_DIPSW2 (MX31_CS4_BASE_ADDR + 0x1003) |
32 | 32 | ||
33 | /* | 33 | /* |
34 | * External UART for touch panel on FPGA | 34 | * External UART for touch panel on FPGA |
35 | */ | 35 | */ |
36 | #define KZM_ARM11_16550 (CS4_BASE_ADDR + 0x1050) | 36 | #define KZM_ARM11_16550 (MX31_CS4_BASE_ADDR + 0x1050) |
37 | 37 | ||
38 | #endif /* __ARM_ARCH_BOARD_KZM_ARM11_H */ | 38 | #endif /* __ARM_ARCH_BOARD_KZM_ARM11_H */ |
39 | 39 | ||
diff --git a/arch/arm/plat-mxc/include/mach/board-mx31ads.h b/arch/arm/plat-mxc/include/mach/board-mx31ads.h index 2cbfa35e82f..095a199591c 100644 --- a/arch/arm/plat-mxc/include/mach/board-mx31ads.h +++ b/arch/arm/plat-mxc/include/mach/board-mx31ads.h | |||
@@ -14,7 +14,7 @@ | |||
14 | #include <mach/hardware.h> | 14 | #include <mach/hardware.h> |
15 | 15 | ||
16 | /* Base address of PBC controller */ | 16 | /* Base address of PBC controller */ |
17 | #define PBC_BASE_ADDRESS IO_ADDRESS(CS4_BASE_ADDR) | 17 | #define PBC_BASE_ADDRESS MX31_CS4_BASE_ADDR_VIRT |
18 | /* Offsets for the PBC Controller register */ | 18 | /* Offsets for the PBC Controller register */ |
19 | 19 | ||
20 | /* PBC Board status register offset */ | 20 | /* PBC Board status register offset */ |
diff --git a/arch/arm/plat-mxc/include/mach/board-mx31lite.h b/arch/arm/plat-mxc/include/mach/board-mx31lite.h index 0184b638c26..2b2da036757 100644 --- a/arch/arm/plat-mxc/include/mach/board-mx31lite.h +++ b/arch/arm/plat-mxc/include/mach/board-mx31lite.h | |||
@@ -25,7 +25,7 @@ | |||
25 | 25 | ||
26 | #ifndef __ASSEMBLY__ | 26 | #ifndef __ASSEMBLY__ |
27 | 27 | ||
28 | enum mx31lilly_boards { | 28 | enum mx31lite_boards { |
29 | MX31LITE_NOBOARD = 0, | 29 | MX31LITE_NOBOARD = 0, |
30 | MX31LITE_DB = 1, | 30 | MX31LITE_DB = 1, |
31 | }; | 31 | }; |
diff --git a/arch/arm/plat-mxc/include/mach/board-mx31moboard.h b/arch/arm/plat-mxc/include/mach/board-mx31moboard.h index d5be6b5a6ac..fc5fec9b55f 100644 --- a/arch/arm/plat-mxc/include/mach/board-mx31moboard.h +++ b/arch/arm/plat-mxc/include/mach/board-mx31moboard.h | |||
@@ -25,6 +25,7 @@ enum mx31moboard_boards { | |||
25 | MX31NOBOARD = 0, | 25 | MX31NOBOARD = 0, |
26 | MX31DEVBOARD = 1, | 26 | MX31DEVBOARD = 1, |
27 | MX31MARXBOT = 2, | 27 | MX31MARXBOT = 2, |
28 | MX31SMARTBOT = 3, | ||
28 | }; | 29 | }; |
29 | 30 | ||
30 | /* | 31 | /* |
@@ -34,6 +35,7 @@ enum mx31moboard_boards { | |||
34 | 35 | ||
35 | extern void mx31moboard_devboard_init(void); | 36 | extern void mx31moboard_devboard_init(void); |
36 | extern void mx31moboard_marxbot_init(void); | 37 | extern void mx31moboard_marxbot_init(void); |
38 | extern void mx31moboard_smartbot_init(void); | ||
37 | 39 | ||
38 | #endif | 40 | #endif |
39 | 41 | ||
diff --git a/arch/arm/plat-mxc/include/mach/clock.h b/arch/arm/plat-mxc/include/mach/clock.h index 43a82d0c534..753a5988d85 100644 --- a/arch/arm/plat-mxc/include/mach/clock.h +++ b/arch/arm/plat-mxc/include/mach/clock.h | |||
@@ -26,13 +26,6 @@ | |||
26 | struct module; | 26 | struct module; |
27 | 27 | ||
28 | struct clk { | 28 | struct clk { |
29 | #ifndef CONFIG_COMMON_CLKDEV | ||
30 | /* As soon as i.MX1 and i.MX31 switched to clkdev, this | ||
31 | * block can go away */ | ||
32 | struct list_head node; | ||
33 | struct module *owner; | ||
34 | const char *name; | ||
35 | #endif | ||
36 | int id; | 29 | int id; |
37 | /* Source clock this clk depends on */ | 30 | /* Source clock this clk depends on */ |
38 | struct clk *parent; | 31 | struct clk *parent; |
diff --git a/arch/arm/plat-mxc/include/mach/common.h b/arch/arm/plat-mxc/include/mach/common.h index 286cb9b0a25..2941472582d 100644 --- a/arch/arm/plat-mxc/include/mach/common.h +++ b/arch/arm/plat-mxc/include/mach/common.h | |||
@@ -20,22 +20,27 @@ extern void mx25_map_io(void); | |||
20 | extern void mx27_map_io(void); | 20 | extern void mx27_map_io(void); |
21 | extern void mx31_map_io(void); | 21 | extern void mx31_map_io(void); |
22 | extern void mx35_map_io(void); | 22 | extern void mx35_map_io(void); |
23 | extern void mx51_map_io(void); | ||
23 | extern void mxc91231_map_io(void); | 24 | extern void mxc91231_map_io(void); |
24 | extern void mxc_init_irq(void __iomem *); | 25 | extern void mxc_init_irq(void __iomem *); |
26 | extern void tzic_init_irq(void __iomem *); | ||
25 | extern void mx1_init_irq(void); | 27 | extern void mx1_init_irq(void); |
26 | extern void mx21_init_irq(void); | 28 | extern void mx21_init_irq(void); |
27 | extern void mx25_init_irq(void); | 29 | extern void mx25_init_irq(void); |
28 | extern void mx27_init_irq(void); | 30 | extern void mx27_init_irq(void); |
29 | extern void mx31_init_irq(void); | 31 | extern void mx31_init_irq(void); |
30 | extern void mx35_init_irq(void); | 32 | extern void mx35_init_irq(void); |
33 | extern void mx51_init_irq(void); | ||
31 | extern void mxc91231_init_irq(void); | 34 | extern void mxc91231_init_irq(void); |
32 | extern void mxc_timer_init(struct clk *timer_clk, void __iomem *, int); | 35 | extern void mxc_timer_init(struct clk *timer_clk, void __iomem *, int); |
33 | extern int mx1_clocks_init(unsigned long fref); | 36 | extern int mx1_clocks_init(unsigned long fref); |
34 | extern int mx21_clocks_init(unsigned long lref, unsigned long fref); | 37 | extern int mx21_clocks_init(unsigned long lref, unsigned long fref); |
35 | extern int mx25_clocks_init(unsigned long fref); | 38 | extern int mx25_clocks_init(void); |
36 | extern int mx27_clocks_init(unsigned long fref); | 39 | extern int mx27_clocks_init(unsigned long fref); |
37 | extern int mx31_clocks_init(unsigned long fref); | 40 | extern int mx31_clocks_init(unsigned long fref); |
38 | extern int mx35_clocks_init(void); | 41 | extern int mx35_clocks_init(void); |
42 | extern int mx51_clocks_init(unsigned long ckil, unsigned long osc, | ||
43 | unsigned long ckih1, unsigned long ckih2); | ||
39 | extern int mxc91231_clocks_init(unsigned long fref); | 44 | extern int mxc91231_clocks_init(unsigned long fref); |
40 | extern int mxc_register_gpios(void); | 45 | extern int mxc_register_gpios(void); |
41 | extern int mxc_register_device(struct platform_device *pdev, void *data); | 46 | extern int mxc_register_device(struct platform_device *pdev, void *data); |
diff --git a/arch/arm/plat-mxc/include/mach/debug-macro.S b/arch/arm/plat-mxc/include/mach/debug-macro.S index 15b2b148a10..133d66bfb53 100644 --- a/arch/arm/plat-mxc/include/mach/debug-macro.S +++ b/arch/arm/plat-mxc/include/mach/debug-macro.S | |||
@@ -10,6 +10,7 @@ | |||
10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | #define IMX_NEEDS_DEPRECATED_SYMBOLS | ||
13 | 14 | ||
14 | #ifdef CONFIG_ARCH_MX1 | 15 | #ifdef CONFIG_ARCH_MX1 |
15 | #include <mach/mx1.h> | 16 | #include <mach/mx1.h> |
@@ -44,13 +45,22 @@ | |||
44 | #define UART_VADDR AIPS1_IO_ADDRESS(UART1_BASE_ADDR) | 45 | #define UART_VADDR AIPS1_IO_ADDRESS(UART1_BASE_ADDR) |
45 | #endif | 46 | #endif |
46 | 47 | ||
48 | #ifdef CONFIG_ARCH_MX5 | ||
49 | #ifdef UART_PADDR | ||
50 | #error "CONFIG_DEBUG_LL is incompatible with multiple archs" | ||
51 | #endif | ||
52 | #include <mach/mx51.h> | ||
53 | #define UART_PADDR MX51_UART1_BASE_ADDR | ||
54 | #define UART_VADDR MX51_AIPS1_IO_ADDRESS(MX51_UART1_BASE_ADDR) | ||
55 | #endif | ||
56 | |||
47 | #ifdef CONFIG_ARCH_MXC91231 | 57 | #ifdef CONFIG_ARCH_MXC91231 |
48 | #ifdef UART_PADDR | 58 | #ifdef UART_PADDR |
49 | #error "CONFIG_DEBUG_LL is incompatible with multiple archs" | 59 | #error "CONFIG_DEBUG_LL is incompatible with multiple archs" |
50 | #endif | 60 | #endif |
51 | #include <mach/mxc91231.h> | 61 | #include <mach/mxc91231.h> |
52 | #define UART_PADDR MXC91231_UART2_BASE_ADDR | 62 | #define UART_PADDR MXC91231_UART2_BASE_ADDR |
53 | #define UART_VADDR MXC91231_AIPS1_IO_ADDRESS(MXC91231_UART2_BASE_ADDR) | 63 | #define UART_VADDR MXC91231_IO_ADDRESS(MXC91231_UART2_BASE_ADDR) |
54 | #endif | 64 | #endif |
55 | .macro addruart,rx | 65 | .macro addruart,rx |
56 | mrc p15, 0, \rx, c1, c0 | 66 | mrc p15, 0, \rx, c1, c0 |
diff --git a/arch/arm/plat-mxc/include/mach/entry-macro.S b/arch/arm/plat-mxc/include/mach/entry-macro.S index 7cf290efe76..aeb08697726 100644 --- a/arch/arm/plat-mxc/include/mach/entry-macro.S +++ b/arch/arm/plat-mxc/include/mach/entry-macro.S | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2007 Lennert Buytenhek <buytenh@wantstofly.org> | 2 | * Copyright (C) 2007 Lennert Buytenhek <buytenh@wantstofly.org> |
3 | * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved. | 3 | * Copyright 2004-2009 Freescale Semiconductor, Inc. All Rights Reserved. |
4 | */ | 4 | */ |
5 | 5 | ||
6 | /* | 6 | /* |
@@ -18,11 +18,16 @@ | |||
18 | .endm | 18 | .endm |
19 | 19 | ||
20 | .macro get_irqnr_preamble, base, tmp | 20 | .macro get_irqnr_preamble, base, tmp |
21 | #ifndef CONFIG_MXC_TZIC | ||
21 | ldr \base, =avic_base | 22 | ldr \base, =avic_base |
22 | ldr \base, [\base] | 23 | ldr \base, [\base] |
23 | #ifdef CONFIG_MXC_IRQ_PRIOR | 24 | #ifdef CONFIG_MXC_IRQ_PRIOR |
24 | ldr r4, [\base, #AVIC_NIMASK] | 25 | ldr r4, [\base, #AVIC_NIMASK] |
25 | #endif | 26 | #endif |
27 | #elif defined CONFIG_MXC_TZIC | ||
28 | ldr \base, =tzic_base | ||
29 | ldr \base, [\base] | ||
30 | #endif /* CONFIG_MXC_TZIC */ | ||
26 | .endm | 31 | .endm |
27 | 32 | ||
28 | .macro arch_ret_to_user, tmp1, tmp2 | 33 | .macro arch_ret_to_user, tmp1, tmp2 |
@@ -32,6 +37,7 @@ | |||
32 | @ and returns its number in irqnr | 37 | @ and returns its number in irqnr |
33 | @ and returns if an interrupt occured in irqstat | 38 | @ and returns if an interrupt occured in irqstat |
34 | .macro get_irqnr_and_base, irqnr, irqstat, base, tmp | 39 | .macro get_irqnr_and_base, irqnr, irqstat, base, tmp |
40 | #ifndef CONFIG_MXC_TZIC | ||
35 | @ Load offset & priority of the highest priority | 41 | @ Load offset & priority of the highest priority |
36 | @ interrupt pending from AVIC_NIVECSR | 42 | @ interrupt pending from AVIC_NIVECSR |
37 | ldr \irqstat, [\base, #0x40] | 43 | ldr \irqstat, [\base, #0x40] |
@@ -45,6 +51,32 @@ | |||
45 | strne \tmp, [\base, #AVIC_NIMASK] | 51 | strne \tmp, [\base, #AVIC_NIMASK] |
46 | streq r4, [\base, #AVIC_NIMASK] | 52 | streq r4, [\base, #AVIC_NIMASK] |
47 | #endif | 53 | #endif |
54 | #elif defined CONFIG_MXC_TZIC | ||
55 | @ Load offset & priority of the highest priority | ||
56 | @ interrupt pending. | ||
57 | @ 0xD80 is HIPND0 register | ||
58 | mov \irqnr, #0 | ||
59 | mov \irqstat, #0x0D80 | ||
60 | 1000: | ||
61 | ldr \tmp, [\irqstat, \base] | ||
62 | cmp \tmp, #0 | ||
63 | bne 1001f | ||
64 | addeq \irqnr, \irqnr, #32 | ||
65 | addeq \irqstat, \irqstat, #4 | ||
66 | cmp \irqnr, #128 | ||
67 | blo 1000b | ||
68 | b 2001f | ||
69 | 1001: mov \irqstat, #1 | ||
70 | 1002: tst \tmp, \irqstat | ||
71 | bne 2002f | ||
72 | movs \tmp, \tmp, lsr #1 | ||
73 | addne \irqnr, \irqnr, #1 | ||
74 | bne 1002b | ||
75 | 2001: | ||
76 | mov \irqnr, #0 | ||
77 | 2002: | ||
78 | movs \irqnr, \irqnr | ||
79 | #endif | ||
48 | .endm | 80 | .endm |
49 | 81 | ||
50 | @ irq priority table (not used) | 82 | @ irq priority table (not used) |
diff --git a/arch/arm/plat-mxc/include/mach/hardware.h b/arch/arm/plat-mxc/include/mach/hardware.h index 78db75475f6..ebadf4ac43f 100644 --- a/arch/arm/plat-mxc/include/mach/hardware.h +++ b/arch/arm/plat-mxc/include/mach/hardware.h | |||
@@ -22,6 +22,15 @@ | |||
22 | 22 | ||
23 | #include <asm/sizes.h> | 23 | #include <asm/sizes.h> |
24 | 24 | ||
25 | #define IMX_IO_ADDRESS(addr, module) \ | ||
26 | ((void __force __iomem *) \ | ||
27 | (((unsigned long)((addr) - (module ## _BASE_ADDR)) < module ## _SIZE) ?\ | ||
28 | (addr) - (module ## _BASE_ADDR) + (module ## _BASE_ADDR_VIRT) : 0)) | ||
29 | |||
30 | #ifdef CONFIG_ARCH_MX5 | ||
31 | #include <mach/mx51.h> | ||
32 | #endif | ||
33 | |||
25 | #ifdef CONFIG_ARCH_MX3 | 34 | #ifdef CONFIG_ARCH_MX3 |
26 | #include <mach/mx3x.h> | 35 | #include <mach/mx3x.h> |
27 | #include <mach/mx31.h> | 36 | #include <mach/mx31.h> |
diff --git a/arch/arm/plat-mxc/include/mach/iomux-mx1.h b/arch/arm/plat-mxc/include/mach/iomux-mx1.h index bf23305c19c..6b1507cf378 100644 --- a/arch/arm/plat-mxc/include/mach/iomux-mx1.h +++ b/arch/arm/plat-mxc/include/mach/iomux-mx1.h | |||
@@ -1,166 +1,155 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2008 by Sascha Hauer <kernel@pengutronix.de> | 2 | * Copyright (C) 2008 by Sascha Hauer <kernel@pengutronix.de> |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or | 4 | * This program is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU General Public License | 5 | * modify it under the terms of the GNU General Public License |
6 | * as published by the Free Software Foundation; either version 2 | 6 | * as published by the Free Software Foundation; either version 2 |
7 | * of the License, or (at your option) any later version. | 7 | * of the License, or (at your option) any later version. |
8 | * This program is distributed in the hope that it will be useful, | 8 | * This program is distributed in the hope that it will be useful, |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
12 | * | 12 | * |
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program; if not, write to the Free Software | 14 | * along with this program; if not, write to the Free Software |
15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
16 | * MA 02110-1301, USA. | 16 | * MA 02110-1301, USA. |
17 | */ | 17 | */ |
18 | #ifndef __MACH_IOMUX_MX1_H__ | ||
19 | #define __MACH_IOMUX_MX1_H__ | ||
18 | 20 | ||
19 | #ifndef _MXC_IOMUX_MX1_H | 21 | #include <mach/iomux-v1.h> |
20 | #define _MXC_IOMUX_MX1_H | ||
21 | 22 | ||
22 | #ifndef GPIO_PORTA | 23 | #define PA0_AIN_SPI2_CLK (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 0) |
23 | #error Please include mach/iomux.h | 24 | #define PA0_AF_ETMTRACESYNC (GPIO_PORTA | GPIO_AF | 0) |
24 | #endif | 25 | #define PA1_AOUT_SPI2_RXD (GPIO_PORTA | GPIO_AOUT | GPIO_IN | 1) |
26 | #define PA1_PF_TIN (GPIO_PORTA | GPIO_PF | 1) | ||
27 | #define PA2_PF_PWM0 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 2) | ||
28 | #define PA3_PF_CSI_MCLK (GPIO_PORTA | GPIO_PF | 3) | ||
29 | #define PA4_PF_CSI_D0 (GPIO_PORTA | GPIO_PF | 4) | ||
30 | #define PA5_PF_CSI_D1 (GPIO_PORTA | GPIO_PF | 5) | ||
31 | #define PA6_PF_CSI_D2 (GPIO_PORTA | GPIO_PF | 6) | ||
32 | #define PA7_PF_CSI_D3 (GPIO_PORTA | GPIO_PF | 7) | ||
33 | #define PA8_PF_CSI_D4 (GPIO_PORTA | GPIO_PF | 8) | ||
34 | #define PA9_PF_CSI_D5 (GPIO_PORTA | GPIO_PF | 9) | ||
35 | #define PA10_PF_CSI_D6 (GPIO_PORTA | GPIO_PF | 10) | ||
36 | #define PA11_PF_CSI_D7 (GPIO_PORTA | GPIO_PF | 11) | ||
37 | #define PA12_PF_CSI_VSYNC (GPIO_PORTA | GPIO_PF | 12) | ||
38 | #define PA13_PF_CSI_HSYNC (GPIO_PORTA | GPIO_PF | 13) | ||
39 | #define PA14_PF_CSI_PIXCLK (GPIO_PORTA | GPIO_PF | 14) | ||
40 | #define PA15_PF_I2C_SDA (GPIO_PORTA | GPIO_PF | GPIO_OUT | 15) | ||
41 | #define PA16_PF_I2C_SCL (GPIO_PORTA | GPIO_PF | GPIO_OUT | 16) | ||
42 | #define PA17_AF_ETMTRACEPKT4 (GPIO_PORTA | GPIO_AF | 17) | ||
43 | #define PA17_AIN_SPI2_SS (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 17) | ||
44 | #define PA18_AF_ETMTRACEPKT5 (GPIO_PORTA | GPIO_AF | 18) | ||
45 | #define PA19_AF_ETMTRACEPKT6 (GPIO_PORTA | GPIO_AF | 19) | ||
46 | #define PA20_AF_ETMTRACEPKT7 (GPIO_PORTA | GPIO_AF | 20) | ||
47 | #define PA21_PF_A0 (GPIO_PORTA | GPIO_PF | 21) | ||
48 | #define PA22_PF_CS4 (GPIO_PORTA | GPIO_PF | 22) | ||
49 | #define PA23_PF_CS5 (GPIO_PORTA | GPIO_PF | 23) | ||
50 | #define PA24_PF_A16 (GPIO_PORTA | GPIO_PF | 24) | ||
51 | #define PA24_AF_ETMTRACEPKT0 (GPIO_PORTA | GPIO_AF | 24) | ||
52 | #define PA25_PF_A17 (GPIO_PORTA | GPIO_PF | 25) | ||
53 | #define PA25_AF_ETMTRACEPKT1 (GPIO_PORTA | GPIO_AF | 25) | ||
54 | #define PA26_PF_A18 (GPIO_PORTA | GPIO_PF | 26) | ||
55 | #define PA26_AF_ETMTRACEPKT2 (GPIO_PORTA | GPIO_AF | 26) | ||
56 | #define PA27_PF_A19 (GPIO_PORTA | GPIO_PF | 27) | ||
57 | #define PA27_AF_ETMTRACEPKT3 (GPIO_PORTA | GPIO_AF | 27) | ||
58 | #define PA28_PF_A20 (GPIO_PORTA | GPIO_PF | 28) | ||
59 | #define PA28_AF_ETMPIPESTAT0 (GPIO_PORTA | GPIO_AF | 28) | ||
60 | #define PA29_PF_A21 (GPIO_PORTA | GPIO_PF | 29) | ||
61 | #define PA29_AF_ETMPIPESTAT1 (GPIO_PORTA | GPIO_AF | 29) | ||
62 | #define PA30_PF_A22 (GPIO_PORTA | GPIO_PF | 30) | ||
63 | #define PA30_AF_ETMPIPESTAT2 (GPIO_PORTA | GPIO_AF | 30) | ||
64 | #define PA31_PF_A23 (GPIO_PORTA | GPIO_PF | 31) | ||
65 | #define PA31_AF_ETMTRACECLK (GPIO_PORTA | GPIO_AF | 31) | ||
66 | #define PB8_PF_SD_DAT0 (GPIO_PORTB | GPIO_PF | GPIO_PUEN | 8) | ||
67 | #define PB8_AF_MS_PIO (GPIO_PORTB | GPIO_AF | 8) | ||
68 | #define PB9_PF_SD_DAT1 (GPIO_PORTB | GPIO_PF | GPIO_PUEN | 9) | ||
69 | #define PB9_AF_MS_PI1 (GPIO_PORTB | GPIO_AF | 9) | ||
70 | #define PB10_PF_SD_DAT2 (GPIO_PORTB | GPIO_PF | GPIO_PUEN | 10) | ||
71 | #define PB10_AF_MS_SCLKI (GPIO_PORTB | GPIO_AF | 10) | ||
72 | #define PB11_PF_SD_DAT3 (GPIO_PORTB | GPIO_PF | 11) | ||
73 | #define PB11_AF_MS_SDIO (GPIO_PORTB | GPIO_AF | 11) | ||
74 | #define PB12_PF_SD_CLK (GPIO_PORTB | GPIO_PF | 12) | ||
75 | #define PB12_AF_MS_SCLK0 (GPIO_PORTB | GPIO_AF | 12) | ||
76 | #define PB13_PF_SD_CMD (GPIO_PORTB | GPIO_PF | GPIO_PUEN | 13) | ||
77 | #define PB13_AF_MS_BS (GPIO_PORTB | GPIO_AF | 13) | ||
78 | #define PB14_AF_SSI_RXFS (GPIO_PORTB | GPIO_AF | 14) | ||
79 | #define PB15_AF_SSI_RXCLK (GPIO_PORTB | GPIO_AF | 15) | ||
80 | #define PB16_AF_SSI_RXDAT (GPIO_PORTB | GPIO_AF | GPIO_IN | 16) | ||
81 | #define PB17_AF_SSI_TXDAT (GPIO_PORTB | GPIO_AF | GPIO_OUT | 17) | ||
82 | #define PB18_AF_SSI_TXFS (GPIO_PORTB | GPIO_AF | 18) | ||
83 | #define PB19_AF_SSI_TXCLK (GPIO_PORTB | GPIO_AF | 19) | ||
84 | #define PB20_PF_USBD_AFE (GPIO_PORTB | GPIO_PF | 20) | ||
85 | #define PB21_PF_USBD_OE (GPIO_PORTB | GPIO_PF | 21) | ||
86 | #define PB22_PF_USBD_RCV (GPIO_PORTB | GPIO_PF | 22) | ||
87 | #define PB23_PF_USBD_SUSPND (GPIO_PORTB | GPIO_PF | 23) | ||
88 | #define PB24_PF_USBD_VP (GPIO_PORTB | GPIO_PF | 24) | ||
89 | #define PB25_PF_USBD_VM (GPIO_PORTB | GPIO_PF | 25) | ||
90 | #define PB26_PF_USBD_VPO (GPIO_PORTB | GPIO_PF | 26) | ||
91 | #define PB27_PF_USBD_VMO (GPIO_PORTB | GPIO_PF | 27) | ||
92 | #define PB28_PF_UART2_CTS (GPIO_PORTB | GPIO_PF | GPIO_OUT | 28) | ||
93 | #define PB29_PF_UART2_RTS (GPIO_PORTB | GPIO_PF | GPIO_IN | 29) | ||
94 | #define PB30_PF_UART2_TXD (GPIO_PORTB | GPIO_PF | GPIO_OUT | 30) | ||
95 | #define PB31_PF_UART2_RXD (GPIO_PORTB | GPIO_PF | GPIO_IN | 31) | ||
96 | #define PC3_PF_SSI_RXFS (GPIO_PORTC | GPIO_PF | 3) | ||
97 | #define PC4_PF_SSI_RXCLK (GPIO_PORTC | GPIO_PF | 4) | ||
98 | #define PC5_PF_SSI_RXDAT (GPIO_PORTC | GPIO_PF | GPIO_IN | 5) | ||
99 | #define PC6_PF_SSI_TXDAT (GPIO_PORTC | GPIO_PF | GPIO_OUT | 6) | ||
100 | #define PC7_PF_SSI_TXFS (GPIO_PORTC | GPIO_PF | 7) | ||
101 | #define PC8_PF_SSI_TXCLK (GPIO_PORTC | GPIO_PF | 8) | ||
102 | #define PC9_PF_UART1_CTS (GPIO_PORTC | GPIO_PF | GPIO_OUT | 9) | ||
103 | #define PC10_PF_UART1_RTS (GPIO_PORTC | GPIO_PF | GPIO_IN | 10) | ||
104 | #define PC11_PF_UART1_TXD (GPIO_PORTC | GPIO_PF | GPIO_OUT | 11) | ||
105 | #define PC12_PF_UART1_RXD (GPIO_PORTC | GPIO_PF | GPIO_IN | 12) | ||
106 | #define PC13_PF_SPI1_SPI_RDY (GPIO_PORTC | GPIO_PF | 13) | ||
107 | #define PC14_PF_SPI1_SCLK (GPIO_PORTC | GPIO_PF | 14) | ||
108 | #define PC15_PF_SPI1_SS (GPIO_PORTC | GPIO_PF | 15) | ||
109 | #define PC16_PF_SPI1_MISO (GPIO_PORTC | GPIO_PF | 16) | ||
110 | #define PC17_PF_SPI1_MOSI (GPIO_PORTC | GPIO_PF | 17) | ||
111 | #define PC24_BIN_UART3_RI (GPIO_PORTC | GPIO_BIN | GPIO_OUT | 24) | ||
112 | #define PC25_BIN_UART3_DSR (GPIO_PORTC | GPIO_BIN | GPIO_OUT | 25) | ||
113 | #define PC26_AOUT_UART3_DTR (GPIO_PORTC | GPIO_AOUT | GPIO_IN | 26) | ||
114 | #define PC27_BIN_UART3_DCD (GPIO_PORTC | GPIO_BIN | GPIO_OUT | 27) | ||
115 | #define PC28_BIN_UART3_CTS (GPIO_PORTC | GPIO_BIN | GPIO_OUT | 28) | ||
116 | #define PC29_AOUT_UART3_RTS (GPIO_PORTC | GPIO_AOUT | GPIO_IN | 29) | ||
117 | #define PC30_BIN_UART3_TX (GPIO_PORTC | GPIO_BIN | 30) | ||
118 | #define PC31_AOUT_UART3_RX (GPIO_PORTC | GPIO_AOUT | GPIO_IN | 31) | ||
119 | #define PD6_PF_LSCLK (GPIO_PORTD | GPIO_PF | GPIO_OUT | 6) | ||
120 | #define PD7_PF_REV (GPIO_PORTD | GPIO_PF | 7) | ||
121 | #define PD7_AF_UART2_DTR (GPIO_PORTD | GPIO_AF | GPIO_IN | 7) | ||
122 | #define PD7_AIN_SPI2_SCLK (GPIO_PORTD | GPIO_AIN | 7) | ||
123 | #define PD8_PF_CLS (GPIO_PORTD | GPIO_PF | 8) | ||
124 | #define PD8_AF_UART2_DCD (GPIO_PORTD | GPIO_AF | GPIO_OUT | 8) | ||
125 | #define PD8_AIN_SPI2_SS (GPIO_PORTD | GPIO_AIN | 8) | ||
126 | #define PD9_PF_PS (GPIO_PORTD | GPIO_PF | 9) | ||
127 | #define PD9_AF_UART2_RI (GPIO_PORTD | GPIO_AF | GPIO_OUT | 9) | ||
128 | #define PD9_AOUT_SPI2_RXD (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 9) | ||
129 | #define PD10_PF_SPL_SPR (GPIO_PORTD | GPIO_PF | GPIO_OUT | 10) | ||
130 | #define PD10_AF_UART2_DSR (GPIO_PORTD | GPIO_AF | GPIO_OUT | 10) | ||
131 | #define PD10_AIN_SPI2_TXD (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 10) | ||
132 | #define PD11_PF_CONTRAST (GPIO_PORTD | GPIO_PF | GPIO_OUT | 11) | ||
133 | #define PD12_PF_ACD_OE (GPIO_PORTD | GPIO_PF | GPIO_OUT | 12) | ||
134 | #define PD13_PF_LP_HSYNC (GPIO_PORTD | GPIO_PF | GPIO_OUT | 13) | ||
135 | #define PD14_PF_FLM_VSYNC (GPIO_PORTD | GPIO_PF | GPIO_OUT | 14) | ||
136 | #define PD15_PF_LD0 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 15) | ||
137 | #define PD16_PF_LD1 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 16) | ||
138 | #define PD17_PF_LD2 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 17) | ||
139 | #define PD18_PF_LD3 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 18) | ||
140 | #define PD19_PF_LD4 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 19) | ||
141 | #define PD20_PF_LD5 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 20) | ||
142 | #define PD21_PF_LD6 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 21) | ||
143 | #define PD22_PF_LD7 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 22) | ||
144 | #define PD23_PF_LD8 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 23) | ||
145 | #define PD24_PF_LD9 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 24) | ||
146 | #define PD25_PF_LD10 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 25) | ||
147 | #define PD26_PF_LD11 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 26) | ||
148 | #define PD27_PF_LD12 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 27) | ||
149 | #define PD28_PF_LD13 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 28) | ||
150 | #define PD29_PF_LD14 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 29) | ||
151 | #define PD30_PF_LD15 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 30) | ||
152 | #define PD31_PF_TMR2OUT (GPIO_PORTD | GPIO_PF | 31) | ||
153 | #define PD31_BIN_SPI2_TXD (GPIO_PORTD | GPIO_BIN | 31) | ||
25 | 154 | ||
26 | /* FIXME: This list is not completed. The correct directions are | 155 | #endif /* ifndef __MACH_IOMUX_MX1_H__ */ |
27 | * missing on some (many) pins | ||
28 | */ | ||
29 | |||
30 | |||
31 | /* Primary GPIO pin functions */ | ||
32 | |||
33 | #define PA0_AIN_SPI2_CLK (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 0) | ||
34 | #define PA0_AF_ETMTRACESYNC (GPIO_PORTA | GPIO_AF | 0) | ||
35 | #define PA1_AOUT_SPI2_RXD (GPIO_PORTA | GPIO_AOUT | GPIO_IN | 1) | ||
36 | #define PA1_PF_TIN (GPIO_PORTA | GPIO_PF | 1) | ||
37 | #define PA2_PF_PWM0 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 2) | ||
38 | #define PA3_PF_CSI_MCLK (GPIO_PORTA | GPIO_PF | 3) | ||
39 | #define PA4_PF_CSI_D0 (GPIO_PORTA | GPIO_PF | 4) | ||
40 | #define PA5_PF_CSI_D1 (GPIO_PORTA | GPIO_PF | 5) | ||
41 | #define PA6_PF_CSI_D2 (GPIO_PORTA | GPIO_PF | 6) | ||
42 | #define PA7_PF_CSI_D3 (GPIO_PORTA | GPIO_PF | 7) | ||
43 | #define PA8_PF_CSI_D4 (GPIO_PORTA | GPIO_PF | 8) | ||
44 | #define PA9_PF_CSI_D5 (GPIO_PORTA | GPIO_PF | 9) | ||
45 | #define PA10_PF_CSI_D6 (GPIO_PORTA | GPIO_PF | 10) | ||
46 | #define PA11_PF_CSI_D7 (GPIO_PORTA | GPIO_PF | 11) | ||
47 | #define PA12_PF_CSI_VSYNC (GPIO_PORTA | GPIO_PF | 12) | ||
48 | #define PA13_PF_CSI_HSYNC (GPIO_PORTA | GPIO_PF | 13) | ||
49 | #define PA14_PF_CSI_PIXCLK (GPIO_PORTA | GPIO_PF | 14) | ||
50 | #define PA15_PF_I2C_SDA (GPIO_PORTA | GPIO_PF | GPIO_OUT | 15) | ||
51 | #define PA16_PF_I2C_SCL (GPIO_PORTA | GPIO_PF | GPIO_OUT | 16) | ||
52 | #define PA17_AF_ETMTRACEPKT4 (GPIO_PORTA | GPIO_AF | 17) | ||
53 | #define PA17_AIN_SPI2_SS (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 17) | ||
54 | #define PA18_AF_ETMTRACEPKT5 (GPIO_PORTA | GPIO_AF | 18) | ||
55 | #define PA19_AF_ETMTRACEPKT6 (GPIO_PORTA | GPIO_AF | 19) | ||
56 | #define PA20_AF_ETMTRACEPKT7 (GPIO_PORTA | GPIO_AF | 20) | ||
57 | #define PA21_PF_A0 (GPIO_PORTA | GPIO_PF | 21) | ||
58 | #define PA22_PF_CS4 (GPIO_PORTA | GPIO_PF | 22) | ||
59 | #define PA23_PF_CS5 (GPIO_PORTA | GPIO_PF | 23) | ||
60 | #define PA24_PF_A16 (GPIO_PORTA | GPIO_PF | 24) | ||
61 | #define PA24_AF_ETMTRACEPKT0 (GPIO_PORTA | GPIO_AF | 24) | ||
62 | #define PA25_PF_A17 (GPIO_PORTA | GPIO_PF | 25) | ||
63 | #define PA25_AF_ETMTRACEPKT1 (GPIO_PORTA | GPIO_AF | 25) | ||
64 | #define PA26_PF_A18 (GPIO_PORTA | GPIO_PF | 26) | ||
65 | #define PA26_AF_ETMTRACEPKT2 (GPIO_PORTA | GPIO_AF | 26) | ||
66 | #define PA27_PF_A19 (GPIO_PORTA | GPIO_PF | 27) | ||
67 | #define PA27_AF_ETMTRACEPKT3 (GPIO_PORTA | GPIO_AF | 27) | ||
68 | #define PA28_PF_A20 (GPIO_PORTA | GPIO_PF | 28) | ||
69 | #define PA28_AF_ETMPIPESTAT0 (GPIO_PORTA | GPIO_AF | 28) | ||
70 | #define PA29_PF_A21 (GPIO_PORTA | GPIO_PF | 29) | ||
71 | #define PA29_AF_ETMPIPESTAT1 (GPIO_PORTA | GPIO_AF | 29) | ||
72 | #define PA30_PF_A22 (GPIO_PORTA | GPIO_PF | 30) | ||
73 | #define PA30_AF_ETMPIPESTAT2 (GPIO_PORTA | GPIO_AF | 30) | ||
74 | #define PA31_PF_A23 (GPIO_PORTA | GPIO_PF | 31) | ||
75 | #define PA31_AF_ETMTRACECLK (GPIO_PORTA | GPIO_AF | 31) | ||
76 | #define PB8_PF_SD_DAT0 (GPIO_PORTB | GPIO_PF | GPIO_PUEN | 8) | ||
77 | #define PB8_AF_MS_PIO (GPIO_PORTB | GPIO_AF | 8) | ||
78 | #define PB9_PF_SD_DAT1 (GPIO_PORTB | GPIO_PF | GPIO_PUEN | 9) | ||
79 | #define PB9_AF_MS_PI1 (GPIO_PORTB | GPIO_AF | 9) | ||
80 | #define PB10_PF_SD_DAT2 (GPIO_PORTB | GPIO_PF | GPIO_PUEN | 10) | ||
81 | #define PB10_AF_MS_SCLKI (GPIO_PORTB | GPIO_AF | 10) | ||
82 | #define PB11_PF_SD_DAT3 (GPIO_PORTB | GPIO_PF | 11) | ||
83 | #define PB11_AF_MS_SDIO (GPIO_PORTB | GPIO_AF | 11) | ||
84 | #define PB12_PF_SD_CLK (GPIO_PORTB | GPIO_PF | 12) | ||
85 | #define PB12_AF_MS_SCLK0 (GPIO_PORTB | GPIO_AF | 12) | ||
86 | #define PB13_PF_SD_CMD (GPIO_PORTB | GPIO_PF | GPIO_PUEN | 13) | ||
87 | #define PB13_AF_MS_BS (GPIO_PORTB | GPIO_AF | 13) | ||
88 | #define PB14_AF_SSI_RXFS (GPIO_PORTB | GPIO_AF | 14) | ||
89 | #define PB15_AF_SSI_RXCLK (GPIO_PORTB | GPIO_AF | 15) | ||
90 | #define PB16_AF_SSI_RXDAT (GPIO_PORTB | GPIO_AF | GPIO_IN | 16) | ||
91 | #define PB17_AF_SSI_TXDAT (GPIO_PORTB | GPIO_AF | GPIO_OUT | 17) | ||
92 | #define PB18_AF_SSI_TXFS (GPIO_PORTB | GPIO_AF | 18) | ||
93 | #define PB19_AF_SSI_TXCLK (GPIO_PORTB | GPIO_AF | 19) | ||
94 | #define PB20_PF_USBD_AFE (GPIO_PORTB | GPIO_PF | 20) | ||
95 | #define PB21_PF_USBD_OE (GPIO_PORTB | GPIO_PF | 21) | ||
96 | #define PB22_PF_USBD_RCV (GPIO_PORTB | GPIO_PF | 22) | ||
97 | #define PB23_PF_USBD_SUSPND (GPIO_PORTB | GPIO_PF | 23) | ||
98 | #define PB24_PF_USBD_VP (GPIO_PORTB | GPIO_PF | 24) | ||
99 | #define PB25_PF_USBD_VM (GPIO_PORTB | GPIO_PF | 25) | ||
100 | #define PB26_PF_USBD_VPO (GPIO_PORTB | GPIO_PF | 26) | ||
101 | #define PB27_PF_USBD_VMO (GPIO_PORTB | GPIO_PF | 27) | ||
102 | #define PB28_PF_UART2_CTS (GPIO_PORTB | GPIO_PF | GPIO_OUT | 28) | ||
103 | #define PB29_PF_UART2_RTS (GPIO_PORTB | GPIO_PF | GPIO_IN | 29) | ||
104 | #define PB30_PF_UART2_TXD (GPIO_PORTB | GPIO_PF | GPIO_OUT | 30) | ||
105 | #define PB31_PF_UART2_RXD (GPIO_PORTB | GPIO_PF | GPIO_IN | 31) | ||
106 | #define PC3_PF_SSI_RXFS (GPIO_PORTC | GPIO_PF | 3) | ||
107 | #define PC4_PF_SSI_RXCLK (GPIO_PORTC | GPIO_PF | 4) | ||
108 | #define PC5_PF_SSI_RXDAT (GPIO_PORTC | GPIO_PF | GPIO_IN | 5) | ||
109 | #define PC6_PF_SSI_TXDAT (GPIO_PORTC | GPIO_PF | GPIO_OUT | 6) | ||
110 | #define PC7_PF_SSI_TXFS (GPIO_PORTC | GPIO_PF | 7) | ||
111 | #define PC8_PF_SSI_TXCLK (GPIO_PORTC | GPIO_PF | 8) | ||
112 | #define PC9_PF_UART1_CTS (GPIO_PORTC | GPIO_PF | GPIO_OUT | 9) | ||
113 | #define PC10_PF_UART1_RTS (GPIO_PORTC | GPIO_PF | GPIO_IN | 10) | ||
114 | #define PC11_PF_UART1_TXD (GPIO_PORTC | GPIO_PF | GPIO_OUT | 11) | ||
115 | #define PC12_PF_UART1_RXD (GPIO_PORTC | GPIO_PF | GPIO_IN | 12) | ||
116 | #define PC13_PF_SPI1_SPI_RDY (GPIO_PORTC | GPIO_PF | 13) | ||
117 | #define PC14_PF_SPI1_SCLK (GPIO_PORTC | GPIO_PF | 14) | ||
118 | #define PC15_PF_SPI1_SS (GPIO_PORTC | GPIO_PF | 15) | ||
119 | #define PC16_PF_SPI1_MISO (GPIO_PORTC | GPIO_PF | 16) | ||
120 | #define PC17_PF_SPI1_MOSI (GPIO_PORTC | GPIO_PF | 17) | ||
121 | #define PC24_BIN_UART3_RI (GPIO_PORTC | GPIO_BIN | GPIO_OUT | 24) | ||
122 | #define PC25_BIN_UART3_DSR (GPIO_PORTC | GPIO_BIN | GPIO_OUT | 25) | ||
123 | #define PC26_AOUT_UART3_DTR (GPIO_PORTC | GPIO_AOUT | GPIO_IN | 26) | ||
124 | #define PC27_BIN_UART3_DCD (GPIO_PORTC | GPIO_BIN | GPIO_OUT | 27) | ||
125 | #define PC28_BIN_UART3_CTS (GPIO_PORTC | GPIO_BIN | GPIO_OUT | 28) | ||
126 | #define PC29_AOUT_UART3_RTS (GPIO_PORTC | GPIO_AOUT | GPIO_IN | 29) | ||
127 | #define PC30_BIN_UART3_TX (GPIO_PORTC | GPIO_BIN | 30) | ||
128 | #define PC31_AOUT_UART3_RX (GPIO_PORTC | GPIO_AOUT | GPIO_IN | 31) | ||
129 | #define PD6_PF_LSCLK (GPIO_PORTD | GPIO_PF | GPIO_OUT | 6) | ||
130 | #define PD7_PF_REV (GPIO_PORTD | GPIO_PF | 7) | ||
131 | #define PD7_AF_UART2_DTR (GPIO_PORTD | GPIO_AF | GPIO_IN | 7) | ||
132 | #define PD7_AIN_SPI2_SCLK (GPIO_PORTD | GPIO_AIN | 7) | ||
133 | #define PD8_PF_CLS (GPIO_PORTD | GPIO_PF | 8) | ||
134 | #define PD8_AF_UART2_DCD (GPIO_PORTD | GPIO_AF | GPIO_OUT | 8) | ||
135 | #define PD8_AIN_SPI2_SS (GPIO_PORTD | GPIO_AIN | 8) | ||
136 | #define PD9_PF_PS (GPIO_PORTD | GPIO_PF | 9) | ||
137 | #define PD9_AF_UART2_RI (GPIO_PORTD | GPIO_AF | GPIO_OUT | 9) | ||
138 | #define PD9_AOUT_SPI2_RXD (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 9) | ||
139 | #define PD10_PF_SPL_SPR (GPIO_PORTD | GPIO_PF | GPIO_OUT | 10) | ||
140 | #define PD10_AF_UART2_DSR (GPIO_PORTD | GPIO_AF | GPIO_OUT | 10) | ||
141 | #define PD10_AIN_SPI2_TXD (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 10) | ||
142 | #define PD11_PF_CONTRAST (GPIO_PORTD | GPIO_PF | GPIO_OUT | 11) | ||
143 | #define PD12_PF_ACD_OE (GPIO_PORTD | GPIO_PF | GPIO_OUT | 12) | ||
144 | #define PD13_PF_LP_HSYNC (GPIO_PORTD | GPIO_PF | GPIO_OUT | 13) | ||
145 | #define PD14_PF_FLM_VSYNC (GPIO_PORTD | GPIO_PF | GPIO_OUT | 14) | ||
146 | #define PD15_PF_LD0 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 15) | ||
147 | #define PD16_PF_LD1 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 16) | ||
148 | #define PD17_PF_LD2 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 17) | ||
149 | #define PD18_PF_LD3 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 18) | ||
150 | #define PD19_PF_LD4 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 19) | ||
151 | #define PD20_PF_LD5 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 20) | ||
152 | #define PD21_PF_LD6 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 21) | ||
153 | #define PD22_PF_LD7 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 22) | ||
154 | #define PD23_PF_LD8 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 23) | ||
155 | #define PD24_PF_LD9 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 24) | ||
156 | #define PD25_PF_LD10 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 25) | ||
157 | #define PD26_PF_LD11 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 26) | ||
158 | #define PD27_PF_LD12 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 27) | ||
159 | #define PD28_PF_LD13 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 28) | ||
160 | #define PD29_PF_LD14 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 29) | ||
161 | #define PD30_PF_LD15 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 30) | ||
162 | #define PD31_PF_TMR2OUT (GPIO_PORTD | GPIO_PF | 31) | ||
163 | #define PD31_BIN_SPI2_TXD (GPIO_PORTD | GPIO_BIN | 31) | ||
164 | |||
165 | |||
166 | #endif | ||
diff --git a/arch/arm/plat-mxc/include/mach/iomux-mx21.h b/arch/arm/plat-mxc/include/mach/iomux-mx21.h index 63aaa972e27..1495dfda783 100644 --- a/arch/arm/plat-mxc/include/mach/iomux-mx21.h +++ b/arch/arm/plat-mxc/include/mach/iomux-mx21.h | |||
@@ -1,126 +1,122 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2009 by Holger Schurig <hs4233@mail.mn-solutions.de> | 2 | * Copyright (C) 2009 by Holger Schurig <hs4233@mail.mn-solutions.de> |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or | 4 | * This program is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU General Public License | 5 | * modify it under the terms of the GNU General Public License |
6 | * as published by the Free Software Foundation; either version 2 | 6 | * as published by the Free Software Foundation; either version 2 |
7 | * of the License, or (at your option) any later version. | 7 | * of the License, or (at your option) any later version. |
8 | * This program is distributed in the hope that it will be useful, | 8 | * This program is distributed in the hope that it will be useful, |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
12 | * | 12 | * |
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program; if not, write to the Free Software | 14 | * along with this program; if not, write to the Free Software |
15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
16 | * MA 02110-1301, USA. | 16 | * MA 02110-1301, USA. |
17 | */ | 17 | */ |
18 | 18 | #ifndef __MACH_IOMUX_MX21_H__ | |
19 | #ifndef _MXC_IOMUX_MX21_H | 19 | #define __MACH_IOMUX_MX21_H__ |
20 | #define _MXC_IOMUX_MX21_H | 20 | |
21 | 21 | #include <mach/iomux-mx2x.h> | |
22 | #ifndef GPIO_PORTA | 22 | #include <mach/iomux-v1.h> |
23 | #error Please include mach/iomux.h | ||
24 | #endif | ||
25 | |||
26 | 23 | ||
27 | /* Primary GPIO pin functions */ | 24 | /* Primary GPIO pin functions */ |
28 | 25 | ||
29 | #define PB22_PF_USBH1_BYP (GPIO_PORTB | GPIO_PF | 22) | 26 | #define PB22_PF_USBH1_BYP (GPIO_PORTB | GPIO_PF | 22) |
30 | #define PB25_PF_USBH1_ON (GPIO_PORTB | GPIO_PF | 25) | 27 | #define PB25_PF_USBH1_ON (GPIO_PORTB | GPIO_PF | 25) |
31 | #define PC5_PF_USBOTG_SDA (GPIO_PORTC | GPIO_PF | 5) | 28 | #define PC5_PF_USBOTG_SDA (GPIO_PORTC | GPIO_PF | 5) |
32 | #define PC6_PF_USBOTG_SCL (GPIO_PORTC | GPIO_PF | 6) | 29 | #define PC6_PF_USBOTG_SCL (GPIO_PORTC | GPIO_PF | 6) |
33 | #define PC7_PF_USBOTG_ON (GPIO_PORTC | GPIO_PF | 7) | 30 | #define PC7_PF_USBOTG_ON (GPIO_PORTC | GPIO_PF | 7) |
34 | #define PC8_PF_USBOTG_FS (GPIO_PORTC | GPIO_PF | 8) | 31 | #define PC8_PF_USBOTG_FS (GPIO_PORTC | GPIO_PF | 8) |
35 | #define PC9_PF_USBOTG_OE (GPIO_PORTC | GPIO_PF | 9) | 32 | #define PC9_PF_USBOTG_OE (GPIO_PORTC | GPIO_PF | 9) |
36 | #define PC10_PF_USBOTG_TXDM (GPIO_PORTC | GPIO_PF | 10) | 33 | #define PC10_PF_USBOTG_TXDM (GPIO_PORTC | GPIO_PF | 10) |
37 | #define PC11_PF_USBOTG_TXDP (GPIO_PORTC | GPIO_PF | 11) | 34 | #define PC11_PF_USBOTG_TXDP (GPIO_PORTC | GPIO_PF | 11) |
38 | #define PC12_PF_USBOTG_RXDM (GPIO_PORTC | GPIO_PF | 12) | 35 | #define PC12_PF_USBOTG_RXDM (GPIO_PORTC | GPIO_PF | 12) |
39 | #define PC13_PF_USBOTG_RXDP (GPIO_PORTC | GPIO_PF | 13) | 36 | #define PC13_PF_USBOTG_RXDP (GPIO_PORTC | GPIO_PF | 13) |
40 | #define PC16_PF_SAP_FS (GPIO_PORTC | GPIO_PF | 16) | 37 | #define PC16_PF_SAP_FS (GPIO_PORTC | GPIO_PF | 16) |
41 | #define PC17_PF_SAP_RXD (GPIO_PORTC | GPIO_PF | 17) | 38 | #define PC17_PF_SAP_RXD (GPIO_PORTC | GPIO_PF | 17) |
42 | #define PC18_PF_SAP_TXD (GPIO_PORTC | GPIO_PF | 18) | 39 | #define PC18_PF_SAP_TXD (GPIO_PORTC | GPIO_PF | 18) |
43 | #define PC19_PF_SAP_CLK (GPIO_PORTC | GPIO_PF | 19) | 40 | #define PC19_PF_SAP_CLK (GPIO_PORTC | GPIO_PF | 19) |
44 | #define PE0_PF_TEST_WB2 (GPIO_PORTE | GPIO_PF | 0) | 41 | #define PE0_PF_TEST_WB2 (GPIO_PORTE | GPIO_PF | 0) |
45 | #define PE1_PF_TEST_WB1 (GPIO_PORTE | GPIO_PF | 1) | 42 | #define PE1_PF_TEST_WB1 (GPIO_PORTE | GPIO_PF | 1) |
46 | #define PE2_PF_TEST_WB0 (GPIO_PORTE | GPIO_PF | 2) | 43 | #define PE2_PF_TEST_WB0 (GPIO_PORTE | GPIO_PF | 2) |
47 | #define PF1_PF_NFCE (GPIO_PORTF | GPIO_PF | 1) | 44 | #define PF1_PF_NFCE (GPIO_PORTF | GPIO_PF | 1) |
48 | #define PF3_PF_NFCLE (GPIO_PORTF | GPIO_PF | 3) | 45 | #define PF3_PF_NFCLE (GPIO_PORTF | GPIO_PF | 3) |
49 | #define PF7_PF_NFIO0 (GPIO_PORTF | GPIO_PF | 7) | 46 | #define PF7_PF_NFIO0 (GPIO_PORTF | GPIO_PF | 7) |
50 | #define PF8_PF_NFIO1 (GPIO_PORTF | GPIO_PF | 8) | 47 | #define PF8_PF_NFIO1 (GPIO_PORTF | GPIO_PF | 8) |
51 | #define PF9_PF_NFIO2 (GPIO_PORTF | GPIO_PF | 9) | 48 | #define PF9_PF_NFIO2 (GPIO_PORTF | GPIO_PF | 9) |
52 | #define PF10_PF_NFIO3 (GPIO_PORTF | GPIO_PF | 10) | 49 | #define PF10_PF_NFIO3 (GPIO_PORTF | GPIO_PF | 10) |
53 | #define PF11_PF_NFIO4 (GPIO_PORTF | GPIO_PF | 11) | 50 | #define PF11_PF_NFIO4 (GPIO_PORTF | GPIO_PF | 11) |
54 | #define PF12_PF_NFIO5 (GPIO_PORTF | GPIO_PF | 12) | 51 | #define PF12_PF_NFIO5 (GPIO_PORTF | GPIO_PF | 12) |
55 | #define PF13_PF_NFIO6 (GPIO_PORTF | GPIO_PF | 13) | 52 | #define PF13_PF_NFIO6 (GPIO_PORTF | GPIO_PF | 13) |
56 | #define PF14_PF_NFIO7 (GPIO_PORTF | GPIO_PF | 14) | 53 | #define PF14_PF_NFIO7 (GPIO_PORTF | GPIO_PF | 14) |
57 | #define PF16_PF_RES (GPIO_PORTF | GPIO_PF | 16) | 54 | #define PF16_PF_RES (GPIO_PORTF | GPIO_PF | 16) |
58 | 55 | ||
59 | /* Alternate GPIO pin functions */ | 56 | /* Alternate GPIO pin functions */ |
60 | 57 | ||
61 | #define PA5_AF_BMI_CLK_CS (GPIO_PORTA | GPIO_AF | 5) | 58 | #define PA5_AF_BMI_CLK_CS (GPIO_PORTA | GPIO_AF | 5) |
62 | #define PA6_AF_BMI_D0 (GPIO_PORTA | GPIO_AF | 6) | 59 | #define PA6_AF_BMI_D0 (GPIO_PORTA | GPIO_AF | 6) |
63 | #define PA7_AF_BMI_D1 (GPIO_PORTA | GPIO_AF | 7) | 60 | #define PA7_AF_BMI_D1 (GPIO_PORTA | GPIO_AF | 7) |
64 | #define PA8_AF_BMI_D2 (GPIO_PORTA | GPIO_AF | 8) | 61 | #define PA8_AF_BMI_D2 (GPIO_PORTA | GPIO_AF | 8) |
65 | #define PA9_AF_BMI_D3 (GPIO_PORTA | GPIO_AF | 9) | 62 | #define PA9_AF_BMI_D3 (GPIO_PORTA | GPIO_AF | 9) |
66 | #define PA10_AF_BMI_D4 (GPIO_PORTA | GPIO_AF | 10) | 63 | #define PA10_AF_BMI_D4 (GPIO_PORTA | GPIO_AF | 10) |
67 | #define PA11_AF_BMI_D5 (GPIO_PORTA | GPIO_AF | 11) | 64 | #define PA11_AF_BMI_D5 (GPIO_PORTA | GPIO_AF | 11) |
68 | #define PA12_AF_BMI_D6 (GPIO_PORTA | GPIO_AF | 12) | 65 | #define PA12_AF_BMI_D6 (GPIO_PORTA | GPIO_AF | 12) |
69 | #define PA13_AF_BMI_D7 (GPIO_PORTA | GPIO_AF | 13) | 66 | #define PA13_AF_BMI_D7 (GPIO_PORTA | GPIO_AF | 13) |
70 | #define PA14_AF_BMI_D8 (GPIO_PORTA | GPIO_AF | 14) | 67 | #define PA14_AF_BMI_D8 (GPIO_PORTA | GPIO_AF | 14) |
71 | #define PA15_AF_BMI_D9 (GPIO_PORTA | GPIO_AF | 15) | 68 | #define PA15_AF_BMI_D9 (GPIO_PORTA | GPIO_AF | 15) |
72 | #define PA16_AF_BMI_D10 (GPIO_PORTA | GPIO_AF | 16) | 69 | #define PA16_AF_BMI_D10 (GPIO_PORTA | GPIO_AF | 16) |
73 | #define PA17_AF_BMI_D11 (GPIO_PORTA | GPIO_AF | 17) | 70 | #define PA17_AF_BMI_D11 (GPIO_PORTA | GPIO_AF | 17) |
74 | #define PA18_AF_BMI_D12 (GPIO_PORTA | GPIO_AF | 18) | 71 | #define PA18_AF_BMI_D12 (GPIO_PORTA | GPIO_AF | 18) |
75 | #define PA19_AF_BMI_D13 (GPIO_PORTA | GPIO_AF | 19) | 72 | #define PA19_AF_BMI_D13 (GPIO_PORTA | GPIO_AF | 19) |
76 | #define PA20_AF_BMI_D14 (GPIO_PORTA | GPIO_AF | 20) | 73 | #define PA20_AF_BMI_D14 (GPIO_PORTA | GPIO_AF | 20) |
77 | #define PA21_AF_BMI_D15 (GPIO_PORTA | GPIO_AF | 21) | 74 | #define PA21_AF_BMI_D15 (GPIO_PORTA | GPIO_AF | 21) |
78 | #define PA22_AF_BMI_READ_REQ (GPIO_PORTA | GPIO_AF | 22) | 75 | #define PA22_AF_BMI_READ_REQ (GPIO_PORTA | GPIO_AF | 22) |
79 | #define PA23_AF_BMI_WRITE (GPIO_PORTA | GPIO_AF | 23) | 76 | #define PA23_AF_BMI_WRITE (GPIO_PORTA | GPIO_AF | 23) |
80 | #define PA29_AF_BMI_RX_FULL (GPIO_PORTA | GPIO_AF | 29) | 77 | #define PA29_AF_BMI_RX_FULL (GPIO_PORTA | GPIO_AF | 29) |
81 | #define PA30_AF_BMI_READ (GPIO_PORTA | GPIO_AF | 30) | 78 | #define PA30_AF_BMI_READ (GPIO_PORTA | GPIO_AF | 30) |
82 | 79 | ||
83 | /* AIN GPIO pin functions */ | 80 | /* AIN GPIO pin functions */ |
84 | 81 | ||
85 | #define PC14_AIN_SYS_CLK (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 14) | 82 | #define PC14_AIN_SYS_CLK (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 14) |
86 | #define PD21_AIN_USBH2_FS (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 21) | 83 | #define PD21_AIN_USBH2_FS (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 21) |
87 | #define PD22_AIN_USBH2_OE (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 22) | 84 | #define PD22_AIN_USBH2_OE (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 22) |
88 | #define PD23_AIN_USBH2_TXDM (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 23) | 85 | #define PD23_AIN_USBH2_TXDM (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 23) |
89 | #define PD24_AIN_USBH2_TXDP (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 24) | 86 | #define PD24_AIN_USBH2_TXDP (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 24) |
90 | #define PE8_AIN_IR_TXD (GPIO_PORTE | GPIO_AIN | GPIO_OUT | 8) | 87 | #define PE8_AIN_IR_TXD (GPIO_PORTE | GPIO_AIN | GPIO_OUT | 8) |
91 | #define PF0_AIN_PC_RST (GPIO_PORTF | GPIO_AIN | GPIO_OUT | 0) | 88 | #define PF0_AIN_PC_RST (GPIO_PORTF | GPIO_AIN | GPIO_OUT | 0) |
92 | #define PF1_AIN_PC_CE1 (GPIO_PORTF | GPIO_AIN | GPIO_OUT | 1) | 89 | #define PF1_AIN_PC_CE1 (GPIO_PORTF | GPIO_AIN | GPIO_OUT | 1) |
93 | #define PF2_AIN_PC_CE2 (GPIO_PORTF | GPIO_AIN | GPIO_OUT | 2) | 90 | #define PF2_AIN_PC_CE2 (GPIO_PORTF | GPIO_AIN | GPIO_OUT | 2) |
94 | #define PF3_AIN_PC_POE (GPIO_PORTF | GPIO_AIN | GPIO_OUT | 3) | 91 | #define PF3_AIN_PC_POE (GPIO_PORTF | GPIO_AIN | GPIO_OUT | 3) |
95 | #define PF4_AIN_PC_OE (GPIO_PORTF | GPIO_AIN | GPIO_OUT | 4) | 92 | #define PF4_AIN_PC_OE (GPIO_PORTF | GPIO_AIN | GPIO_OUT | 4) |
96 | #define PF5_AIN_PC_RW (GPIO_PORTF | GPIO_AIN | GPIO_OUT | 5) | 93 | #define PF5_AIN_PC_RW (GPIO_PORTF | GPIO_AIN | GPIO_OUT | 5) |
97 | 94 | ||
98 | /* BIN GPIO pin functions */ | 95 | /* BIN GPIO pin functions */ |
99 | 96 | ||
100 | #define PC14_BIN_SYS_CLK (GPIO_PORTC | GPIO_BIN | GPIO_OUT | 14) | 97 | #define PC14_BIN_SYS_CLK (GPIO_PORTC | GPIO_BIN | GPIO_OUT | 14) |
101 | #define PD27_BIN_EXT_DMA_GRANT (GPIO_PORTD | GPIO_BIN | GPIO_OUT | 27) | 98 | #define PD27_BIN_EXT_DMA_GRANT (GPIO_PORTD | GPIO_BIN | GPIO_OUT | 27) |
102 | 99 | ||
103 | /* CIN GPIO pin functions */ | 100 | /* CIN GPIO pin functions */ |
104 | 101 | ||
105 | #define PB26_CIN_USBH1_RXDAT (GPIO_PORTB | GPIO_CIN | GPIO_OUT | 26) | 102 | #define PB26_CIN_USBH1_RXDAT (GPIO_PORTB | GPIO_CIN | GPIO_OUT | 26) |
106 | 103 | ||
107 | /* AOUT GPIO pin functions */ | 104 | /* AOUT GPIO pin functions */ |
108 | 105 | ||
109 | #define PA29_AOUT_BMI_WAIT (GPIO_PORTA | GPIO_AOUT | GPIO_IN | 29) | 106 | #define PA29_AOUT_BMI_WAIT (GPIO_PORTA | GPIO_AOUT | GPIO_IN | 29) |
110 | #define PD19_AOUT_USBH2_RXDM (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 19) | 107 | #define PD19_AOUT_USBH2_RXDM (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 19) |
111 | #define PD20_AOUT_USBH2_RXDP (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 20) | 108 | #define PD20_AOUT_USBH2_RXDP (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 20) |
112 | #define PD25_AOUT_EXT_DMAREQ (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 25) | 109 | #define PD25_AOUT_EXT_DMAREQ (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 25) |
113 | #define PD26_AOUT_USBOTG_RXDAT (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 26) | 110 | #define PD26_AOUT_USBOTG_RXDAT (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 26) |
114 | #define PE9_AOUT_IR_RXD (GPIO_PORTE | GPIO_AOUT | GPIO_IN | 9) | 111 | #define PE9_AOUT_IR_RXD (GPIO_PORTE | GPIO_AOUT | GPIO_IN | 9) |
115 | #define PF6_AOUT_PC_BVD2 (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 6) | 112 | #define PF6_AOUT_PC_BVD2 (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 6) |
116 | #define PF7_AOUT_PC_BVD1 (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 7) | 113 | #define PF7_AOUT_PC_BVD1 (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 7) |
117 | #define PF8_AOUT_PC_VS2 (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 8) | 114 | #define PF8_AOUT_PC_VS2 (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 8) |
118 | #define PF9_AOUT_PC_VS1 (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 9) | 115 | #define PF9_AOUT_PC_VS1 (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 9) |
119 | #define PF10_AOUT_PC_WP (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 10) | 116 | #define PF10_AOUT_PC_WP (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 10) |
120 | #define PF11_AOUT_PC_READY (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 11) | 117 | #define PF11_AOUT_PC_READY (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 11) |
121 | #define PF12_AOUT_PC_WAIT (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 12) | 118 | #define PF12_AOUT_PC_WAIT (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 12) |
122 | #define PF13_AOUT_PC_CD2 (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 13) | 119 | #define PF13_AOUT_PC_CD2 (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 13) |
123 | #define PF14_AOUT_PC_CD1 (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 14) | 120 | #define PF14_AOUT_PC_CD1 (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 14) |
124 | 121 | ||
125 | 122 | #endif /* ifndef __MACH_IOMUX_MX21_H__ */ | |
126 | #endif | ||
diff --git a/arch/arm/plat-mxc/include/mach/iomux-mx25.h b/arch/arm/plat-mxc/include/mach/iomux-mx25.h index 9af494f0ab3..f39220d1b67 100644 --- a/arch/arm/plat-mxc/include/mach/iomux-mx25.h +++ b/arch/arm/plat-mxc/include/mach/iomux-mx25.h | |||
@@ -7,7 +7,7 @@ | |||
7 | * Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved. | 7 | * Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved. |
8 | * and | 8 | * and |
9 | * arch/arm/plat-mxc/include/mach/iomux-mx35.h | 9 | * arch/arm/plat-mxc/include/mach/iomux-mx35.h |
10 | * Copyright (C, NO_PAD_CTRL) 2009 by Jan Weitzel Phytec Messtechnik GmbH <armlinux@phytec.de> | 10 | * Copyright (C) 2009 by Jan Weitzel Phytec Messtechnik GmbH <armlinux@phytec.de> |
11 | * | 11 | * |
12 | * The code contained herein is licensed under the GNU General Public | 12 | * The code contained herein is licensed under the GNU General Public |
13 | * License. You may obtain a copy of the GNU General Public License | 13 | * License. You may obtain a copy of the GNU General Public License |
@@ -16,24 +16,11 @@ | |||
16 | * http://www.opensource.org/licenses/gpl-license.html | 16 | * http://www.opensource.org/licenses/gpl-license.html |
17 | * http://www.gnu.org/copyleft/gpl.html | 17 | * http://www.gnu.org/copyleft/gpl.html |
18 | */ | 18 | */ |
19 | #ifndef __IOMUX_MX25_H__ | 19 | #ifndef __MACH_IOMUX_MX25_H__ |
20 | #define __IOMUX_MX25_H__ | 20 | #define __MACH_IOMUX_MX25_H__ |
21 | 21 | ||
22 | #include <mach/iomux-v3.h> | 22 | #include <mach/iomux-v3.h> |
23 | 23 | ||
24 | #ifndef GPIO_PORTA | ||
25 | #error Please include mach/iomux.h | ||
26 | #endif | ||
27 | |||
28 | /* | ||
29 | * | ||
30 | * @brief MX25 I/O Pin List | ||
31 | * | ||
32 | * @ingroup GPIO_MX25 | ||
33 | */ | ||
34 | |||
35 | #ifndef __ASSEMBLY__ | ||
36 | |||
37 | /* | 24 | /* |
38 | * IOMUX/PAD Bit field definitions | 25 | * IOMUX/PAD Bit field definitions |
39 | */ | 26 | */ |
@@ -462,9 +449,11 @@ | |||
462 | #define MX25_PAD_GPIO_C__CAN2_TX IOMUX_PAD(0x3f8, 0x1fc, 0x16, 0, 0, PAD_CTL_PUS_22K_UP) | 449 | #define MX25_PAD_GPIO_C__CAN2_TX IOMUX_PAD(0x3f8, 0x1fc, 0x16, 0, 0, PAD_CTL_PUS_22K_UP) |
463 | 450 | ||
464 | #define MX25_PAD_GPIO_D__GPIO_D IOMUX_PAD(0x3fc, 0x200, 0x10, 0, 0, NO_PAD_CTRL) | 451 | #define MX25_PAD_GPIO_D__GPIO_D IOMUX_PAD(0x3fc, 0x200, 0x10, 0, 0, NO_PAD_CTRL) |
452 | #define MX25_PAD_GPIO_E__LD16 IOMUX_PAD(0x400, 0x204, 0x02, 0, 0, NO_PAD_CTRL) | ||
465 | #define MX25_PAD_GPIO_D__CAN2_RX IOMUX_PAD(0x3fc, 0x200, 0x16, 0x484, 1, PAD_CTL_PUS_22K_UP) | 453 | #define MX25_PAD_GPIO_D__CAN2_RX IOMUX_PAD(0x3fc, 0x200, 0x16, 0x484, 1, PAD_CTL_PUS_22K_UP) |
466 | 454 | ||
467 | #define MX25_PAD_GPIO_E__GPIO_E IOMUX_PAD(0x400, 0x204, 0x10, 0, 0, NO_PAD_CTRL) | 455 | #define MX25_PAD_GPIO_E__GPIO_E IOMUX_PAD(0x400, 0x204, 0x10, 0, 0, NO_PAD_CTRL) |
456 | #define MX25_PAD_GPIO_F__LD17 IOMUX_PAD(0x404, 0x208, 0x02, 0, 0, NO_PAD_CTRL) | ||
468 | #define MX25_PAD_GPIO_E__AUD7_TXD IOMUX_PAD(0x400, 0x204, 0x14, 0, 0, NO_PAD_CTRL) | 457 | #define MX25_PAD_GPIO_E__AUD7_TXD IOMUX_PAD(0x400, 0x204, 0x14, 0, 0, NO_PAD_CTRL) |
469 | 458 | ||
470 | #define MX25_PAD_GPIO_F__GPIO_F IOMUX_PAD(0x404, 0x208, 0x10, 0, 0, NO_PAD_CTRL) | 459 | #define MX25_PAD_GPIO_F__GPIO_F IOMUX_PAD(0x404, 0x208, 0x10, 0, 0, NO_PAD_CTRL) |
@@ -513,5 +502,4 @@ | |||
513 | #define MX25_PAD_CTL_GRP_DVS_SDHC1 IOMUX_PAD(0x458, 0x000, 0, 0, 0, NO_PAD_CTRL) | 502 | #define MX25_PAD_CTL_GRP_DVS_SDHC1 IOMUX_PAD(0x458, 0x000, 0, 0, 0, NO_PAD_CTRL) |
514 | #define MX25_PAD_CTL_GRP_DVS_LCD IOMUX_PAD(0x45c, 0x000, 0, 0, 0, NO_PAD_CTRL) | 503 | #define MX25_PAD_CTL_GRP_DVS_LCD IOMUX_PAD(0x45c, 0x000, 0, 0, 0, NO_PAD_CTRL) |
515 | 504 | ||
516 | #endif // __ASSEMBLY__ | 505 | #endif /* __MACH_IOMUX_MX25_H__ */ |
517 | #endif // __IOMUX_MX25_H__ | ||
diff --git a/arch/arm/plat-mxc/include/mach/iomux-mx27.h b/arch/arm/plat-mxc/include/mach/iomux-mx27.h index 5ac158b70f6..d9f9a6e32d8 100644 --- a/arch/arm/plat-mxc/include/mach/iomux-mx27.h +++ b/arch/arm/plat-mxc/include/mach/iomux-mx27.h | |||
@@ -1,207 +1,205 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2008 by Sascha Hauer <kernel@pengutronix.de> | 2 | * Copyright (C) 2008 by Sascha Hauer <kernel@pengutronix.de> |
3 | * Copyright (C) 2009 by Holger Schurig <hs4233@mail.mn-solutions.de> | 3 | * Copyright (C) 2009 by Holger Schurig <hs4233@mail.mn-solutions.de> |
4 | * | 4 | * |
5 | * This program is free software; you can redistribute it and/or | 5 | * This program is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU General Public License | 6 | * modify it under the terms of the GNU General Public License |
7 | * as published by the Free Software Foundation; either version 2 | 7 | * as published by the Free Software Foundation; either version 2 |
8 | * of the License, or (at your option) any later version. | 8 | * of the License, or (at your option) any later version. |
9 | * This program is distributed in the hope that it will be useful, | 9 | * This program is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | * GNU General Public License for more details. | 12 | * GNU General Public License for more details. |
13 | * | 13 | * |
14 | * You should have received a copy of the GNU General Public License | 14 | * You should have received a copy of the GNU General Public License |
15 | * along with this program; if not, write to the Free Software | 15 | * along with this program; if not, write to the Free Software |
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
17 | * MA 02110-1301, USA. | 17 | * MA 02110-1301, USA. |
18 | */ | 18 | */ |
19 | 19 | #ifndef __MACH_IOMUX_MX27_H__ | |
20 | #ifndef _MXC_IOMUX_MX27_H | 20 | #define __MACH_IOMUX_MX27_H__ |
21 | #define _MXC_IOMUX_MX27_H | 21 | |
22 | 22 | #include <mach/iomux-mx2x.h> | |
23 | #ifndef GPIO_PORTA | 23 | #include <mach/iomux-v1.h> |
24 | #error Please include mach/iomux.h | ||
25 | #endif | ||
26 | |||
27 | 24 | ||
28 | /* Primary GPIO pin functions */ | 25 | /* Primary GPIO pin functions */ |
29 | 26 | ||
30 | #define PA0_PF_USBH2_CLK (GPIO_PORTA | GPIO_PF | 0) | 27 | #define PA0_PF_USBH2_CLK (GPIO_PORTA | GPIO_PF | 0) |
31 | #define PA1_PF_USBH2_DIR (GPIO_PORTA | GPIO_PF | 1) | 28 | #define PA1_PF_USBH2_DIR (GPIO_PORTA | GPIO_PF | 1) |
32 | #define PA2_PF_USBH2_DATA7 (GPIO_PORTA | GPIO_PF | 2) | 29 | #define PA2_PF_USBH2_DATA7 (GPIO_PORTA | GPIO_PF | 2) |
33 | #define PA3_PF_USBH2_NXT (GPIO_PORTA | GPIO_PF | 3) | 30 | #define PA3_PF_USBH2_NXT (GPIO_PORTA | GPIO_PF | 3) |
34 | #define PA4_PF_USBH2_STP (GPIO_PORTA | GPIO_PF | 4) | 31 | #define PA4_PF_USBH2_STP (GPIO_PORTA | GPIO_PF | 4) |
35 | #define PB22_PF_USBH1_SUSP (GPIO_PORTB | GPIO_PF | 22) | 32 | #define PB22_PF_USBH1_SUSP (GPIO_PORTB | GPIO_PF | 22) |
36 | #define PB25_PF_USBH1_RCV (GPIO_PORTB | GPIO_PF | 25) | 33 | #define PB25_PF_USBH1_RCV (GPIO_PORTB | GPIO_PF | 25) |
37 | #define PC5_PF_I2C2_SDA (GPIO_PORTC | GPIO_PF | GPIO_IN | 5) | 34 | #define PC5_PF_I2C2_SDA (GPIO_PORTC | GPIO_PF | GPIO_IN | 5) |
38 | #define PC6_PF_I2C2_SCL (GPIO_PORTC | GPIO_PF | GPIO_IN | 6) | 35 | #define PC6_PF_I2C2_SCL (GPIO_PORTC | GPIO_PF | GPIO_IN | 6) |
39 | #define PC7_PF_USBOTG_DATA5 (GPIO_PORTC | GPIO_PF | GPIO_OUT | 7) | 36 | #define PC7_PF_USBOTG_DATA5 (GPIO_PORTC | GPIO_PF | GPIO_OUT | 7) |
40 | #define PC8_PF_USBOTG_DATA6 (GPIO_PORTC | GPIO_PF | GPIO_OUT | 8) | 37 | #define PC8_PF_USBOTG_DATA6 (GPIO_PORTC | GPIO_PF | GPIO_OUT | 8) |
41 | #define PC9_PF_USBOTG_DATA0 (GPIO_PORTC | GPIO_PF | GPIO_OUT | 9) | 38 | #define PC9_PF_USBOTG_DATA0 (GPIO_PORTC | GPIO_PF | GPIO_OUT | 9) |
42 | #define PC10_PF_USBOTG_DATA2 (GPIO_PORTC | GPIO_PF | GPIO_OUT | 10) | 39 | #define PC10_PF_USBOTG_DATA2 (GPIO_PORTC | GPIO_PF | GPIO_OUT | 10) |
43 | #define PC11_PF_USBOTG_DATA1 (GPIO_PORTC | GPIO_PF | GPIO_OUT | 11) | 40 | #define PC11_PF_USBOTG_DATA1 (GPIO_PORTC | GPIO_PF | GPIO_OUT | 11) |
44 | #define PC12_PF_USBOTG_DATA4 (GPIO_PORTC | GPIO_PF | GPIO_OUT | 12) | 41 | #define PC12_PF_USBOTG_DATA4 (GPIO_PORTC | GPIO_PF | GPIO_OUT | 12) |
45 | #define PC13_PF_USBOTG_DATA3 (GPIO_PORTC | GPIO_PF | GPIO_OUT | 13) | 42 | #define PC13_PF_USBOTG_DATA3 (GPIO_PORTC | GPIO_PF | GPIO_OUT | 13) |
46 | #define PC16_PF_SSI4_FS (GPIO_PORTC | GPIO_PF | GPIO_IN | 16) | 43 | #define PC16_PF_SSI4_FS (GPIO_PORTC | GPIO_PF | GPIO_IN | 16) |
47 | #define PC17_PF_SSI4_RXD (GPIO_PORTC | GPIO_PF | GPIO_IN | 17) | 44 | #define PC17_PF_SSI4_RXD (GPIO_PORTC | GPIO_PF | GPIO_IN | 17) |
48 | #define PC18_PF_SSI4_TXD (GPIO_PORTC | GPIO_PF | GPIO_IN | 18) | 45 | #define PC18_PF_SSI4_TXD (GPIO_PORTC | GPIO_PF | GPIO_IN | 18) |
49 | #define PC19_PF_SSI4_CLK (GPIO_PORTC | GPIO_PF | GPIO_IN | 19) | 46 | #define PC19_PF_SSI4_CLK (GPIO_PORTC | GPIO_PF | GPIO_IN | 19) |
50 | #define PC25_AF_GPT5_TIN (GPIO_PORTC | GPIO_AF | 25) | 47 | #define PD0_PF_SD3_CMD (GPIO_PORTD | GPIO_PF | 0) |
51 | #define PC27_AF_GPT4_TIN (GPIO_PORTC | GPIO_AF | 27) | 48 | #define PD1_PF_SD3_CLK (GPIO_PORTD | GPIO_PF | 1) |
52 | #define PD0_PF_SD3_CMD (GPIO_PORTD | GPIO_PF | 0) | 49 | #define PD2_PF_ATA_DATA0 (GPIO_PORTD | GPIO_PF | 2) |
53 | #define PD1_PF_SD3_CLK (GPIO_PORTD | GPIO_PF | 1) | 50 | #define PD3_PF_ATA_DATA1 (GPIO_PORTD | GPIO_PF | 3) |
54 | #define PD2_PF_ATA_DATA0 (GPIO_PORTD | GPIO_PF | 2) | 51 | #define PD4_PF_ATA_DATA2 (GPIO_PORTD | GPIO_PF | 4) |
55 | #define PD3_PF_ATA_DATA1 (GPIO_PORTD | GPIO_PF | 3) | 52 | #define PD5_PF_ATA_DATA3 (GPIO_PORTD | GPIO_PF | 5) |
56 | #define PD4_PF_ATA_DATA2 (GPIO_PORTD | GPIO_PF | 4) | 53 | #define PD6_PF_ATA_DATA4 (GPIO_PORTD | GPIO_PF | 6) |
57 | #define PD5_PF_ATA_DATA3 (GPIO_PORTD | GPIO_PF | 5) | 54 | #define PD7_PF_ATA_DATA5 (GPIO_PORTD | GPIO_PF | 7) |
58 | #define PD6_PF_ATA_DATA4 (GPIO_PORTD | GPIO_PF | 6) | 55 | #define PD8_PF_ATA_DATA6 (GPIO_PORTD | GPIO_PF | 8) |
59 | #define PD7_PF_ATA_DATA5 (GPIO_PORTD | GPIO_PF | 7) | 56 | #define PD9_PF_ATA_DATA7 (GPIO_PORTD | GPIO_PF | 9) |
60 | #define PD8_PF_ATA_DATA6 (GPIO_PORTD | GPIO_PF | 8) | 57 | #define PD10_PF_ATA_DATA8 (GPIO_PORTD | GPIO_PF | 10) |
61 | #define PD9_PF_ATA_DATA7 (GPIO_PORTD | GPIO_PF | 9) | 58 | #define PD11_PF_ATA_DATA9 (GPIO_PORTD | GPIO_PF | 11) |
62 | #define PD10_PF_ATA_DATA8 (GPIO_PORTD | GPIO_PF | 10) | 59 | #define PD12_PF_ATA_DATA10 (GPIO_PORTD | GPIO_PF | 12) |
63 | #define PD11_PF_ATA_DATA9 (GPIO_PORTD | GPIO_PF | 11) | 60 | #define PD13_PF_ATA_DATA11 (GPIO_PORTD | GPIO_PF | 13) |
64 | #define PD12_PF_ATA_DATA10 (GPIO_PORTD | GPIO_PF | 12) | 61 | #define PD14_PF_ATA_DATA12 (GPIO_PORTD | GPIO_PF | 14) |
65 | #define PD13_PF_ATA_DATA11 (GPIO_PORTD | GPIO_PF | 13) | 62 | #define PD15_PF_ATA_DATA13 (GPIO_PORTD | GPIO_PF | 15) |
66 | #define PD14_PF_ATA_DATA12 (GPIO_PORTD | GPIO_PF | 14) | 63 | #define PD16_PF_ATA_DATA14 (GPIO_PORTD | GPIO_PF | 16) |
67 | #define PD15_PF_ATA_DATA13 (GPIO_PORTD | GPIO_PF | 15) | 64 | #define PE0_PF_USBOTG_NXT (GPIO_PORTE | GPIO_PF | GPIO_OUT | 0) |
68 | #define PD16_PF_ATA_DATA14 (GPIO_PORTD | GPIO_PF | 16) | 65 | #define PE1_PF_USBOTG_STP (GPIO_PORTE | GPIO_PF | GPIO_OUT | 1) |
69 | #define PE0_PF_USBOTG_NXT (GPIO_PORTE | GPIO_PF | GPIO_OUT | 0) | 66 | #define PE2_PF_USBOTG_DIR (GPIO_PORTE | GPIO_PF | GPIO_OUT | 2) |
70 | #define PE1_PF_USBOTG_STP (GPIO_PORTE | GPIO_PF | GPIO_OUT | 1) | 67 | #define PE24_PF_USBOTG_CLK (GPIO_PORTE | GPIO_PF | GPIO_OUT | 24) |
71 | #define PE2_PF_USBOTG_DIR (GPIO_PORTE | GPIO_PF | GPIO_OUT | 2) | 68 | #define PE25_PF_USBOTG_DATA7 (GPIO_PORTE | GPIO_PF | GPIO_OUT | 25) |
72 | #define PE24_PF_USBOTG_CLK (GPIO_PORTE | GPIO_PF | GPIO_OUT | 24) | 69 | #define PF1_PF_NFCLE (GPIO_PORTF | GPIO_PF | 1) |
73 | #define PE25_PF_USBOTG_DATA7 (GPIO_PORTE | GPIO_PF | GPIO_OUT | 25) | 70 | #define PF3_PF_NFCE (GPIO_PORTF | GPIO_PF | 3) |
74 | #define PF1_PF_NFCLE (GPIO_PORTF | GPIO_PF | 1) | 71 | #define PF7_PF_PC_POE (GPIO_PORTF | GPIO_PF | 7) |
75 | #define PF3_PF_NFCE (GPIO_PORTF | GPIO_PF | 3) | 72 | #define PF8_PF_PC_RW (GPIO_PORTF | GPIO_PF | 8) |
76 | #define PF7_PF_PC_POE (GPIO_PORTF | GPIO_PF | 7) | 73 | #define PF9_PF_PC_IOIS16 (GPIO_PORTF | GPIO_PF | 9) |
77 | #define PF8_PF_PC_RW (GPIO_PORTF | GPIO_PF | 8) | 74 | #define PF10_PF_PC_RST (GPIO_PORTF | GPIO_PF | 10) |
78 | #define PF9_PF_PC_IOIS16 (GPIO_PORTF | GPIO_PF | 9) | 75 | #define PF11_PF_PC_BVD2 (GPIO_PORTF | GPIO_PF | 11) |
79 | #define PF10_PF_PC_RST (GPIO_PORTF | GPIO_PF | 10) | 76 | #define PF12_PF_PC_BVD1 (GPIO_PORTF | GPIO_PF | 12) |
80 | #define PF11_PF_PC_BVD2 (GPIO_PORTF | GPIO_PF | 11) | 77 | #define PF13_PF_PC_VS2 (GPIO_PORTF | GPIO_PF | 13) |
81 | #define PF12_PF_PC_BVD1 (GPIO_PORTF | GPIO_PF | 12) | 78 | #define PF14_PF_PC_VS1 (GPIO_PORTF | GPIO_PF | 14) |
82 | #define PF13_PF_PC_VS2 (GPIO_PORTF | GPIO_PF | 13) | 79 | #define PF16_PF_PC_PWRON (GPIO_PORTF | GPIO_PF | 16) |
83 | #define PF14_PF_PC_VS1 (GPIO_PORTF | GPIO_PF | 14) | 80 | #define PF17_PF_PC_READY (GPIO_PORTF | GPIO_PF | 17) |
84 | #define PF16_PF_PC_PWRON (GPIO_PORTF | GPIO_PF | 16) | 81 | #define PF18_PF_PC_WAIT (GPIO_PORTF | GPIO_PF | 18) |
85 | #define PF17_PF_PC_READY (GPIO_PORTF | GPIO_PF | 17) | 82 | #define PF19_PF_PC_CD2 (GPIO_PORTF | GPIO_PF | 19) |
86 | #define PF18_PF_PC_WAIT (GPIO_PORTF | GPIO_PF | 18) | 83 | #define PF20_PF_PC_CD1 (GPIO_PORTF | GPIO_PF | 20) |
87 | #define PF19_PF_PC_CD2 (GPIO_PORTF | GPIO_PF | 19) | 84 | #define PF23_PF_ATA_DATA15 (GPIO_PORTF | GPIO_PF | 23) |
88 | #define PF20_PF_PC_CD1 (GPIO_PORTF | GPIO_PF | 20) | ||
89 | #define PF23_PF_ATA_DATA15 (GPIO_PORTF | GPIO_PF | 23) | ||
90 | 85 | ||
91 | /* Alternate GPIO pin functions */ | 86 | /* Alternate GPIO pin functions */ |
92 | 87 | ||
93 | #define PB4_AF_MSHC_DATA0 (GPIO_PORTB | GPIO_AF | GPIO_OUT | 4) | 88 | #define PB4_AF_MSHC_DATA0 (GPIO_PORTB | GPIO_AF | GPIO_OUT | 4) |
94 | #define PB5_AF_MSHC_DATA1 (GPIO_PORTB | GPIO_AF | GPIO_OUT | 5) | 89 | #define PB5_AF_MSHC_DATA1 (GPIO_PORTB | GPIO_AF | GPIO_OUT | 5) |
95 | #define PB6_AF_MSHC_DATA2 (GPIO_PORTB | GPIO_AF | GPIO_OUT | 6) | 90 | #define PB6_AF_MSHC_DATA2 (GPIO_PORTB | GPIO_AF | GPIO_OUT | 6) |
96 | #define PB7_AF_MSHC_DATA4 (GPIO_PORTB | GPIO_AF | GPIO_OUT | 7) | 91 | #define PB7_AF_MSHC_DATA4 (GPIO_PORTB | GPIO_AF | GPIO_OUT | 7) |
97 | #define PB8_AF_MSHC_BS (GPIO_PORTB | GPIO_AF | GPIO_OUT | 8) | 92 | #define PB8_AF_MSHC_BS (GPIO_PORTB | GPIO_AF | GPIO_OUT | 8) |
98 | #define PB9_AF_MSHC_SCLK (GPIO_PORTB | GPIO_AF | GPIO_OUT | 9) | 93 | #define PB9_AF_MSHC_SCLK (GPIO_PORTB | GPIO_AF | GPIO_OUT | 9) |
99 | #define PB10_AF_UART6_TXD (GPIO_PORTB | GPIO_AF | GPIO_OUT | 10) | 94 | #define PB10_AF_UART6_TXD (GPIO_PORTB | GPIO_AF | GPIO_OUT | 10) |
100 | #define PB11_AF_UART6_RXD (GPIO_PORTB | GPIO_AF | GPIO_IN | 11) | 95 | #define PB11_AF_UART6_RXD (GPIO_PORTB | GPIO_AF | GPIO_IN | 11) |
101 | #define PB12_AF_UART6_CTS (GPIO_PORTB | GPIO_AF | GPIO_OUT | 12) | 96 | #define PB12_AF_UART6_CTS (GPIO_PORTB | GPIO_AF | GPIO_OUT | 12) |
102 | #define PB13_AF_UART6_RTS (GPIO_PORTB | GPIO_AF | GPIO_IN | 13) | 97 | #define PB13_AF_UART6_RTS (GPIO_PORTB | GPIO_AF | GPIO_IN | 13) |
103 | #define PB18_AF_UART5_TXD (GPIO_PORTB | GPIO_AF | GPIO_OUT | 18) | 98 | #define PB18_AF_UART5_TXD (GPIO_PORTB | GPIO_AF | GPIO_OUT | 18) |
104 | #define PB19_AF_UART5_RXD (GPIO_PORTB | GPIO_AF | GPIO_IN | 19) | 99 | #define PB19_AF_UART5_RXD (GPIO_PORTB | GPIO_AF | GPIO_IN | 19) |
105 | #define PB20_AF_UART5_CTS (GPIO_PORTB | GPIO_AF | GPIO_OUT | 20) | 100 | #define PB20_AF_UART5_CTS (GPIO_PORTB | GPIO_AF | GPIO_OUT | 20) |
106 | #define PB21_AF_UART5_RTS (GPIO_PORTB | GPIO_AF | GPIO_IN | 21) | 101 | #define PB21_AF_UART5_RTS (GPIO_PORTB | GPIO_AF | GPIO_IN | 21) |
107 | #define PC8_AF_FEC_MDIO (GPIO_PORTC | GPIO_AF | GPIO_IN | 8) | 102 | #define PC8_AF_FEC_MDIO (GPIO_PORTC | GPIO_AF | GPIO_IN | 8) |
108 | #define PC24_AF_GPT5_TOUT (GPIO_PORTC | GPIO_AF | 24) | 103 | #define PC24_AF_GPT5_TOUT (GPIO_PORTC | GPIO_AF | 24) |
109 | #define PC26_AF_GPT4_TOUT (GPIO_PORTC | GPIO_AF | 26) | 104 | #define PC25_AF_GPT5_TIN (GPIO_PORTC | GPIO_AF | 25) |
110 | #define PD1_AF_ETMTRACE_PKT15 (GPIO_PORTD | GPIO_AF | 1) | 105 | #define PC26_AF_GPT4_TOUT (GPIO_PORTC | GPIO_AF | 26) |
111 | #define PD6_AF_ETMTRACE_PKT14 (GPIO_PORTD | GPIO_AF | 6) | 106 | #define PC27_AF_GPT4_TIN (GPIO_PORTC | GPIO_AF | 27) |
112 | #define PD7_AF_ETMTRACE_PKT13 (GPIO_PORTD | GPIO_AF | 7) | 107 | #define PD1_AF_ETMTRACE_PKT15 (GPIO_PORTD | GPIO_AF | 1) |
113 | #define PD9_AF_ETMTRACE_PKT12 (GPIO_PORTD | GPIO_AF | 9) | 108 | #define PD6_AF_ETMTRACE_PKT14 (GPIO_PORTD | GPIO_AF | 6) |
114 | #define PD2_AF_SD3_D0 (GPIO_PORTD | GPIO_AF | 2) | 109 | #define PD7_AF_ETMTRACE_PKT13 (GPIO_PORTD | GPIO_AF | 7) |
115 | #define PD3_AF_SD3_D1 (GPIO_PORTD | GPIO_AF | 3) | 110 | #define PD9_AF_ETMTRACE_PKT12 (GPIO_PORTD | GPIO_AF | 9) |
116 | #define PD4_AF_SD3_D2 (GPIO_PORTD | GPIO_AF | 4) | 111 | #define PD2_AF_SD3_D0 (GPIO_PORTD | GPIO_AF | 2) |
117 | #define PD5_AF_SD3_D3 (GPIO_PORTD | GPIO_AF | 5) | 112 | #define PD3_AF_SD3_D1 (GPIO_PORTD | GPIO_AF | 3) |
118 | #define PD8_AF_FEC_MDIO (GPIO_PORTD | GPIO_AF | GPIO_IN | 8) | 113 | #define PD4_AF_SD3_D2 (GPIO_PORTD | GPIO_AF | 4) |
119 | #define PD10_AF_ETMTRACE_PKT11 (GPIO_PORTD | GPIO_AF | 10) | 114 | #define PD5_AF_SD3_D3 (GPIO_PORTD | GPIO_AF | 5) |
120 | #define PD11_AF_ETMTRACE_PKT10 (GPIO_PORTD | GPIO_AF | 11) | 115 | #define PD8_AF_FEC_MDIO (GPIO_PORTD | GPIO_AF | GPIO_IN | 8) |
121 | #define PD12_AF_ETMTRACE_PKT9 (GPIO_PORTD | GPIO_AF | 12) | 116 | #define PD10_AF_ETMTRACE_PKT11 (GPIO_PORTD | GPIO_AF | 10) |
122 | #define PD13_AF_ETMTRACE_PKT8 (GPIO_PORTD | GPIO_AF | 13) | 117 | #define PD11_AF_ETMTRACE_PKT10 (GPIO_PORTD | GPIO_AF | 11) |
123 | #define PD14_AF_ETMTRACE_PKT7 (GPIO_PORTD | GPIO_AF | 14) | 118 | #define PD12_AF_ETMTRACE_PKT9 (GPIO_PORTD | GPIO_AF | 12) |
124 | #define PD15_AF_ETMTRACE_PKT6 (GPIO_PORTD | GPIO_AF | 15) | 119 | #define PD13_AF_ETMTRACE_PKT8 (GPIO_PORTD | GPIO_AF | 13) |
125 | #define PD16_AF_ETMTRACE_PKT5 (GPIO_PORTD | GPIO_AF | 16) | 120 | #define PD14_AF_ETMTRACE_PKT7 (GPIO_PORTD | GPIO_AF | 14) |
126 | #define PF1_AF_ETMTRACE_PKT0 (GPIO_PORTF | GPIO_AF | 1) | 121 | #define PD15_AF_ETMTRACE_PKT6 (GPIO_PORTD | GPIO_AF | 15) |
127 | #define PF3_AF_ETMTRACE_PKT2 (GPIO_PORTF | GPIO_AF | 3) | 122 | #define PD16_AF_ETMTRACE_PKT5 (GPIO_PORTD | GPIO_AF | 16) |
128 | #define PF5_AF_ETMPIPESTAT11 (GPIO_PORTF | GPIO_AF | 5) | 123 | #define PF1_AF_ETMTRACE_PKT0 (GPIO_PORTF | GPIO_AF | 1) |
129 | #define PF7_AF_ATA_BUFFER_EN (GPIO_PORTF | GPIO_AF | 7) | 124 | #define PF3_AF_ETMTRACE_PKT2 (GPIO_PORTF | GPIO_AF | 3) |
130 | #define PF8_AF_ATA_IORDY (GPIO_PORTF | GPIO_AF | 8) | 125 | #define PF5_AF_ETMPIPESTAT11 (GPIO_PORTF | GPIO_AF | 5) |
131 | #define PF9_AF_ATA_INTRQ (GPIO_PORTF | GPIO_AF | 9) | 126 | #define PF7_AF_ATA_BUFFER_EN (GPIO_PORTF | GPIO_AF | 7) |
132 | #define PF10_AF_ATA_RESET (GPIO_PORTF | GPIO_AF | 10) | 127 | #define PF8_AF_ATA_IORDY (GPIO_PORTF | GPIO_AF | 8) |
133 | #define PF11_AF_ATA_DMACK (GPIO_PORTF | GPIO_AF | 11) | 128 | #define PF9_AF_ATA_INTRQ (GPIO_PORTF | GPIO_AF | 9) |
134 | #define PF12_AF_ATA_DMAREQ (GPIO_PORTF | GPIO_AF | 12) | 129 | #define PF10_AF_ATA_RESET (GPIO_PORTF | GPIO_AF | 10) |
135 | #define PF13_AF_ATA_DA0 (GPIO_PORTF | GPIO_AF | 13) | 130 | #define PF11_AF_ATA_DMACK (GPIO_PORTF | GPIO_AF | 11) |
136 | #define PF14_AF_ATA_DA1 (GPIO_PORTF | GPIO_AF | 14) | 131 | #define PF12_AF_ATA_DMAREQ (GPIO_PORTF | GPIO_AF | 12) |
137 | #define PF15_AF_ETMTRACE_SYNC (GPIO_PORTF | GPIO_AF | 15) | 132 | #define PF13_AF_ATA_DA0 (GPIO_PORTF | GPIO_AF | 13) |
138 | #define PF16_AF_ATA_DA2 (GPIO_PORTF | GPIO_AF | 16) | 133 | #define PF14_AF_ATA_DA1 (GPIO_PORTF | GPIO_AF | 14) |
139 | #define PF17_AF_ATA_CS0 (GPIO_PORTF | GPIO_AF | 17) | 134 | #define PF15_AF_ETMTRACE_SYNC (GPIO_PORTF | GPIO_AF | 15) |
140 | #define PF18_AF_ATA_CS1 (GPIO_PORTF | GPIO_AF | 18) | 135 | #define PF16_AF_ATA_DA2 (GPIO_PORTF | GPIO_AF | 16) |
141 | #define PF19_AF_ATA_DIOW (GPIO_PORTF | GPIO_AF | 19) | 136 | #define PF17_AF_ATA_CS0 (GPIO_PORTF | GPIO_AF | 17) |
142 | #define PF20_AF_ATA_DIOR (GPIO_PORTF | GPIO_AF | 20) | 137 | #define PF18_AF_ATA_CS1 (GPIO_PORTF | GPIO_AF | 18) |
143 | #define PF22_AF_ETMTRACE_CLK (GPIO_PORTF | GPIO_AF | 22) | 138 | #define PF19_AF_ATA_DIOW (GPIO_PORTF | GPIO_AF | 19) |
144 | #define PF23_AF_ETMTRACE_PKT4 (GPIO_PORTF | GPIO_AF | 23) | 139 | #define PF20_AF_ATA_DIOR (GPIO_PORTF | GPIO_AF | 20) |
140 | #define PF22_AF_ETMTRACE_CLK (GPIO_PORTF | GPIO_AF | 22) | ||
141 | #define PF23_AF_ETMTRACE_PKT4 (GPIO_PORTF | GPIO_AF | 23) | ||
145 | 142 | ||
146 | /* AIN GPIO pin functions */ | 143 | /* AIN GPIO pin functions */ |
147 | 144 | ||
148 | #define PC14_AIN_SSI1_MCLK (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 14) | 145 | #define PC14_AIN_SSI1_MCLK (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 14) |
149 | #define PC15_AIN_GPT6_TOUT (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 15) | 146 | #define PC15_AIN_GPT6_TOUT (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 15) |
150 | #define PD0_AIN_FEC_TXD0 (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 0) | 147 | #define PD0_AIN_FEC_TXD0 (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 0) |
151 | #define PD1_AIN_FEC_TXD1 (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 1) | 148 | #define PD1_AIN_FEC_TXD1 (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 1) |
152 | #define PD2_AIN_FEC_TXD2 (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 2) | 149 | #define PD2_AIN_FEC_TXD2 (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 2) |
153 | #define PD3_AIN_FEC_TXD3 (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 3) | 150 | #define PD3_AIN_FEC_TXD3 (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 3) |
154 | #define PD9_AIN_FEC_MDC (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 9) | 151 | #define PD9_AIN_FEC_MDC (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 9) |
155 | #define PD16_AIN_FEC_TX_ER (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 16) | 152 | #define PD16_AIN_FEC_TX_ER (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 16) |
156 | #define PD27_AIN_EXT_DMA_GRANT (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 27) | 153 | #define PD27_AIN_EXT_DMA_GRANT (GPIO_PORTD | GPIO_AIN | GPIO_OUT | 27) |
157 | #define PF23_AIN_FEC_TX_EN (GPIO_PORTF | GPIO_AIN | GPIO_OUT | 23) | 154 | #define PF23_AIN_FEC_TX_EN (GPIO_PORTF | GPIO_AIN | GPIO_OUT | 23) |
158 | 155 | ||
159 | /* BIN GPIO pin functions */ | 156 | /* BIN GPIO pin functions */ |
160 | 157 | ||
161 | #define PC14_BIN_SSI2_MCLK (GPIO_PORTC | GPIO_BIN | GPIO_OUT | 14) | 158 | #define PC14_BIN_SSI2_MCLK (GPIO_PORTC | GPIO_BIN | GPIO_OUT | 14) |
162 | 159 | ||
163 | /* CIN GPIO pin functions */ | 160 | /* CIN GPIO pin functions */ |
164 | 161 | ||
165 | #define PD2_CIN_SLCDC1_DAT0 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 2) | 162 | #define PD2_CIN_SLCDC1_DAT0 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 2) |
166 | #define PD3_CIN_SLCDC1_DAT1 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 3) | 163 | #define PD3_CIN_SLCDC1_DAT1 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 3) |
167 | #define PD4_CIN_SLCDC1_DAT2 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 4) | 164 | #define PD4_CIN_SLCDC1_DAT2 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 4) |
168 | #define PD5_CIN_SLCDC1_DAT3 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 5) | 165 | #define PD5_CIN_SLCDC1_DAT3 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 5) |
169 | #define PD6_CIN_SLCDC1_DAT4 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 6) | 166 | #define PD6_CIN_SLCDC1_DAT4 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 6) |
170 | #define PD7_CIN_SLCDC1_DAT5 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 7) | 167 | #define PD7_CIN_SLCDC1_DAT5 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 7) |
171 | #define PD8_CIN_SLCDC1_DAT6 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 8) | 168 | #define PD8_CIN_SLCDC1_DAT6 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 8) |
172 | #define PD9_CIN_SLCDC1_DAT7 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 9) | 169 | #define PD9_CIN_SLCDC1_DAT7 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 9) |
173 | #define PD10_CIN_SLCDC1_DAT8 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 10) | 170 | #define PD10_CIN_SLCDC1_DAT8 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 10) |
174 | #define PD11_CIN_SLCDC1_DAT9 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 11) | 171 | #define PD11_CIN_SLCDC1_DAT9 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 11) |
175 | #define PD12_CIN_SLCDC1_DAT10 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 12) | 172 | #define PD12_CIN_SLCDC1_DAT10 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 12) |
176 | #define PD13_CIN_SLCDC1_DAT11 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 13) | 173 | #define PD13_CIN_SLCDC1_DAT11 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 13) |
177 | #define PD14_CIN_SLCDC1_DAT12 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 14) | 174 | #define PD14_CIN_SLCDC1_DAT12 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 14) |
178 | #define PD15_CIN_SLCDC1_DAT13 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 15) | 175 | #define PD15_CIN_SLCDC1_DAT13 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 15) |
179 | #define PD16_CIN_SLCDC1_DAT14 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 16) | 176 | #define PD16_CIN_SLCDC1_DAT14 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 16) |
180 | #define PD23_CIN_SLCDC1_DAT15 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 23) | 177 | #define PD23_CIN_SLCDC1_DAT15 (GPIO_PORTD | GPIO_CIN | GPIO_OUT | 23) |
181 | #define PF27_CIN_EXT_DMA_GRANT (GPIO_PORTF | GPIO_CIN | GPIO_OUT | 27) | 178 | #define PF27_CIN_EXT_DMA_GRANT (GPIO_PORTF | GPIO_CIN | GPIO_OUT | 27) |
182 | /* LCDC_TESTx on PBxx omitted, because it's not clear what they do */ | 179 | /* LCDC_TESTx on PBxx omitted, because it's not clear what they do */ |
183 | 180 | ||
184 | /* AOUT GPIO pin functions */ | 181 | /* AOUT GPIO pin functions */ |
185 | 182 | ||
186 | #define PC14_AOUT_GPT6_TIN (GPIO_PORTC | GPIO_AOUT | GPIO_IN | 14) | 183 | #define PC14_AOUT_GPT6_TIN (GPIO_PORTC | GPIO_AOUT | GPIO_IN | 14) |
187 | #define PD4_AOUT_FEC_RX_ER (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 4) | 184 | #define PD4_AOUT_FEC_RX_ER (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 4) |
188 | #define PD5_AOUT_FEC_RXD1 (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 5) | 185 | #define PD5_AOUT_FEC_RXD1 (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 5) |
189 | #define PD6_AOUT_FEC_RXD2 (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 6) | 186 | #define PD6_AOUT_FEC_RXD2 (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 6) |
190 | #define PD7_AOUT_FEC_RXD3 (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 7) | 187 | #define PD7_AOUT_FEC_RXD3 (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 7) |
191 | #define PD10_AOUT_FEC_CRS (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 10) | 188 | #define PD10_AOUT_FEC_CRS (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 10) |
192 | #define PD11_AOUT_FEC_TX_CLK (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 11) | 189 | #define PD11_AOUT_FEC_TX_CLK (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 11) |
193 | #define PD12_AOUT_FEC_RXD0 (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 12) | 190 | #define PD12_AOUT_FEC_RXD0 (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 12) |
194 | #define PD13_AOUT_FEC_RX_DV (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 13) | 191 | #define PD13_AOUT_FEC_RX_DV (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 13) |
195 | #define PD14_AOUT_FEC_RX_CLK (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 14) | 192 | #define PD14_AOUT_FEC_RX_CLK (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 14) |
196 | #define PD15_AOUT_FEC_COL (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 15) | 193 | #define PD15_AOUT_FEC_COL (GPIO_PORTD | GPIO_AOUT | GPIO_IN | 15) |
197 | 194 | ||
198 | #define PC17_BOUT_PC_IOIS16 (GPIO_PORTC | GPIO_BOUT | GPIO_IN | 17) | 195 | /* BOUT GPIO pin functions */ |
199 | #define PC18_BOUT_PC_BVD2 (GPIO_PORTC | GPIO_BOUT | GPIO_IN | 18) | 196 | |
200 | #define PC19_BOUT_PC_BVD1 (GPIO_PORTC | GPIO_BOUT | GPIO_IN | 19) | 197 | #define PC17_BOUT_PC_IOIS16 (GPIO_PORTC | GPIO_BOUT | GPIO_IN | 17) |
201 | #define PC28_BOUT_PC_BVD2 (GPIO_PORTC | GPIO_BOUT | GPIO_IN | 28) | 198 | #define PC18_BOUT_PC_BVD2 (GPIO_PORTC | GPIO_BOUT | GPIO_IN | 18) |
202 | #define PC29_BOUT_PC_VS1 (GPIO_PORTC | GPIO_BOUT | GPIO_IN | 29) | 199 | #define PC19_BOUT_PC_BVD1 (GPIO_PORTC | GPIO_BOUT | GPIO_IN | 19) |
203 | #define PC30_BOUT_PC_READY (GPIO_PORTC | GPIO_BOUT | GPIO_IN | 30) | 200 | #define PC28_BOUT_PC_BVD2 (GPIO_PORTC | GPIO_BOUT | GPIO_IN | 28) |
204 | #define PC31_BOUT_PC_WAIT (GPIO_PORTC | GPIO_BOUT | GPIO_IN | 31) | 201 | #define PC29_BOUT_PC_VS1 (GPIO_PORTC | GPIO_BOUT | GPIO_IN | 29) |
205 | 202 | #define PC30_BOUT_PC_READY (GPIO_PORTC | GPIO_BOUT | GPIO_IN | 30) | |
206 | 203 | #define PC31_BOUT_PC_WAIT (GPIO_PORTC | GPIO_BOUT | GPIO_IN | 31) | |
207 | #endif /* _MXC_GPIO_MX1_MX2_H */ | 204 | |
205 | #endif /* __MACH_IOMUX_MX27_H__ */ | ||
diff --git a/arch/arm/plat-mxc/include/mach/iomux-mx2x.h b/arch/arm/plat-mxc/include/mach/iomux-mx2x.h index fb5ae638e79..c4f116d214f 100644 --- a/arch/arm/plat-mxc/include/mach/iomux-mx2x.h +++ b/arch/arm/plat-mxc/include/mach/iomux-mx2x.h | |||
@@ -1,237 +1,230 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2008 by Sascha Hauer <kernel@pengutronix.de> | 2 | * Copyright (C) 2008 by Sascha Hauer <kernel@pengutronix.de> |
3 | * Copyright (C) 2009 by Holger Schurig <hs4233@mail.mn-solutions.de> | 3 | * Copyright (C) 2009 by Holger Schurig <hs4233@mail.mn-solutions.de> |
4 | * | 4 | * |
5 | * This program is free software; you can redistribute it and/or | 5 | * This program is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU General Public License | 6 | * modify it under the terms of the GNU General Public License |
7 | * as published by the Free Software Foundation; either version 2 | 7 | * as published by the Free Software Foundation; either version 2 |
8 | * of the License, or (at your option) any later version. | 8 | * of the License, or (at your option) any later version. |
9 | * This program is distributed in the hope that it will be useful, | 9 | * This program is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | * GNU General Public License for more details. | 12 | * GNU General Public License for more details. |
13 | * | 13 | * |
14 | * You should have received a copy of the GNU General Public License | 14 | * You should have received a copy of the GNU General Public License |
15 | * along with this program; if not, write to the Free Software | 15 | * along with this program; if not, write to the Free Software |
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
17 | * MA 02110-1301, USA. | 17 | * MA 02110-1301, USA. |
18 | */ | 18 | */ |
19 | 19 | #ifndef __MACH_IOMUX_MX2x_H__ | |
20 | #ifndef _MXC_IOMUX_MX2x_H | 20 | #define __MACH_IOMUX_MX2x_H__ |
21 | #define _MXC_IOMUX_MX2x_H | ||
22 | |||
23 | #ifndef GPIO_PORTA | ||
24 | #error Please include mach/iomux.h | ||
25 | #endif | ||
26 | |||
27 | 21 | ||
28 | /* Primary GPIO pin functions */ | 22 | /* Primary GPIO pin functions */ |
29 | 23 | ||
30 | #define PA5_PF_LSCLK (GPIO_PORTA | GPIO_PF | GPIO_OUT | 5) | 24 | #define PA5_PF_LSCLK (GPIO_PORTA | GPIO_PF | GPIO_OUT | 5) |
31 | #define PA6_PF_LD0 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 6) | 25 | #define PA6_PF_LD0 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 6) |
32 | #define PA7_PF_LD1 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 7) | 26 | #define PA7_PF_LD1 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 7) |
33 | #define PA8_PF_LD2 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 8) | 27 | #define PA8_PF_LD2 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 8) |
34 | #define PA9_PF_LD3 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 9) | 28 | #define PA9_PF_LD3 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 9) |
35 | #define PA10_PF_LD4 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 10) | 29 | #define PA10_PF_LD4 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 10) |
36 | #define PA11_PF_LD5 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 11) | 30 | #define PA11_PF_LD5 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 11) |
37 | #define PA12_PF_LD6 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 12) | 31 | #define PA12_PF_LD6 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 12) |
38 | #define PA13_PF_LD7 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 13) | 32 | #define PA13_PF_LD7 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 13) |
39 | #define PA14_PF_LD8 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 14) | 33 | #define PA14_PF_LD8 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 14) |
40 | #define PA15_PF_LD9 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 15) | 34 | #define PA15_PF_LD9 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 15) |
41 | #define PA16_PF_LD10 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 16) | 35 | #define PA16_PF_LD10 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 16) |
42 | #define PA17_PF_LD11 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 17) | 36 | #define PA17_PF_LD11 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 17) |
43 | #define PA18_PF_LD12 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 18) | 37 | #define PA18_PF_LD12 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 18) |
44 | #define PA19_PF_LD13 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 19) | 38 | #define PA19_PF_LD13 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 19) |
45 | #define PA20_PF_LD14 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 20) | 39 | #define PA20_PF_LD14 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 20) |
46 | #define PA21_PF_LD15 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 21) | 40 | #define PA21_PF_LD15 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 21) |
47 | #define PA22_PF_LD16 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 22) | 41 | #define PA22_PF_LD16 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 22) |
48 | #define PA23_PF_LD17 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 23) | 42 | #define PA23_PF_LD17 (GPIO_PORTA | GPIO_PF | GPIO_OUT | 23) |
49 | #define PA24_PF_REV (GPIO_PORTA | GPIO_PF | GPIO_OUT | 24) | 43 | #define PA24_PF_REV (GPIO_PORTA | GPIO_PF | GPIO_OUT | 24) |
50 | #define PA25_PF_CLS (GPIO_PORTA | GPIO_PF | GPIO_OUT | 25) | 44 | #define PA25_PF_CLS (GPIO_PORTA | GPIO_PF | GPIO_OUT | 25) |
51 | #define PA26_PF_PS (GPIO_PORTA | GPIO_PF | GPIO_OUT | 26) | 45 | #define PA26_PF_PS (GPIO_PORTA | GPIO_PF | GPIO_OUT | 26) |
52 | #define PA27_PF_SPL_SPR (GPIO_PORTA | GPIO_PF | GPIO_OUT | 27) | 46 | #define PA27_PF_SPL_SPR (GPIO_PORTA | GPIO_PF | GPIO_OUT | 27) |
53 | #define PA28_PF_HSYNC (GPIO_PORTA | GPIO_PF | GPIO_OUT | 28) | 47 | #define PA28_PF_HSYNC (GPIO_PORTA | GPIO_PF | GPIO_OUT | 28) |
54 | #define PA29_PF_VSYNC (GPIO_PORTA | GPIO_PF | GPIO_OUT | 29) | 48 | #define PA29_PF_VSYNC (GPIO_PORTA | GPIO_PF | GPIO_OUT | 29) |
55 | #define PA30_PF_CONTRAST (GPIO_PORTA | GPIO_PF | GPIO_OUT | 30) | 49 | #define PA30_PF_CONTRAST (GPIO_PORTA | GPIO_PF | GPIO_OUT | 30) |
56 | #define PA31_PF_OE_ACD (GPIO_PORTA | GPIO_PF | GPIO_OUT | 31) | 50 | #define PA31_PF_OE_ACD (GPIO_PORTA | GPIO_PF | GPIO_OUT | 31) |
57 | #define PB4_PF_SD2_D0 (GPIO_PORTB | GPIO_PF | 4) | 51 | #define PB4_PF_SD2_D0 (GPIO_PORTB | GPIO_PF | 4) |
58 | #define PB5_PF_SD2_D1 (GPIO_PORTB | GPIO_PF | 5) | 52 | #define PB5_PF_SD2_D1 (GPIO_PORTB | GPIO_PF | 5) |
59 | #define PB6_PF_SD2_D2 (GPIO_PORTB | GPIO_PF | 6) | 53 | #define PB6_PF_SD2_D2 (GPIO_PORTB | GPIO_PF | 6) |
60 | #define PB7_PF_SD2_D3 (GPIO_PORTB | GPIO_PF | 7) | 54 | #define PB7_PF_SD2_D3 (GPIO_PORTB | GPIO_PF | 7) |
61 | #define PB8_PF_SD2_CMD (GPIO_PORTB | GPIO_PF | 8) | 55 | #define PB8_PF_SD2_CMD (GPIO_PORTB | GPIO_PF | 8) |
62 | #define PB9_PF_SD2_CLK (GPIO_PORTB | GPIO_PF | 9) | 56 | #define PB9_PF_SD2_CLK (GPIO_PORTB | GPIO_PF | 9) |
63 | #define PB10_PF_CSI_D0 (GPIO_PORTB | GPIO_PF | GPIO_OUT | 10) | 57 | #define PB10_PF_CSI_D0 (GPIO_PORTB | GPIO_PF | GPIO_OUT | 10) |
64 | #define PB11_PF_CSI_D1 (GPIO_PORTB | GPIO_PF | GPIO_OUT | 11) | 58 | #define PB11_PF_CSI_D1 (GPIO_PORTB | GPIO_PF | GPIO_OUT | 11) |
65 | #define PB12_PF_CSI_D2 (GPIO_PORTB | GPIO_PF | GPIO_OUT | 12) | 59 | #define PB12_PF_CSI_D2 (GPIO_PORTB | GPIO_PF | GPIO_OUT | 12) |
66 | #define PB13_PF_CSI_D3 (GPIO_PORTB | GPIO_PF | GPIO_OUT | 13) | 60 | #define PB13_PF_CSI_D3 (GPIO_PORTB | GPIO_PF | GPIO_OUT | 13) |
67 | #define PB14_PF_CSI_D4 (GPIO_PORTB | GPIO_PF | GPIO_OUT | 14) | 61 | #define PB14_PF_CSI_D4 (GPIO_PORTB | GPIO_PF | GPIO_OUT | 14) |
68 | #define PB15_PF_CSI_MCLK (GPIO_PORTB | GPIO_PF | GPIO_OUT | 15) | 62 | #define PB15_PF_CSI_MCLK (GPIO_PORTB | GPIO_PF | GPIO_OUT | 15) |
69 | #define PB16_PF_CSI_PIXCLK (GPIO_PORTB | GPIO_PF | GPIO_OUT | 16) | 63 | #define PB16_PF_CSI_PIXCLK (GPIO_PORTB | GPIO_PF | GPIO_OUT | 16) |
70 | #define PB17_PF_CSI_D5 (GPIO_PORTB | GPIO_PF | GPIO_OUT | 17) | 64 | #define PB17_PF_CSI_D5 (GPIO_PORTB | GPIO_PF | GPIO_OUT | 17) |
71 | #define PB18_PF_CSI_D6 (GPIO_PORTB | GPIO_PF | GPIO_OUT | 18) | 65 | #define PB18_PF_CSI_D6 (GPIO_PORTB | GPIO_PF | GPIO_OUT | 18) |
72 | #define PB19_PF_CSI_D7 (GPIO_PORTB | GPIO_PF | GPIO_OUT | 19) | 66 | #define PB19_PF_CSI_D7 (GPIO_PORTB | GPIO_PF | GPIO_OUT | 19) |
73 | #define PB20_PF_CSI_VSYNC (GPIO_PORTB | GPIO_PF | GPIO_OUT | 20) | 67 | #define PB20_PF_CSI_VSYNC (GPIO_PORTB | GPIO_PF | GPIO_OUT | 20) |
74 | #define PB21_PF_CSI_HSYNC (GPIO_PORTB | GPIO_PF | GPIO_OUT | 21) | 68 | #define PB21_PF_CSI_HSYNC (GPIO_PORTB | GPIO_PF | GPIO_OUT | 21) |
75 | #define PB23_PF_USB_PWR (GPIO_PORTB | GPIO_PF | 23) | 69 | #define PB23_PF_USB_PWR (GPIO_PORTB | GPIO_PF | 23) |
76 | #define PB24_PF_USB_OC (GPIO_PORTB | GPIO_PF | 24) | 70 | #define PB24_PF_USB_OC (GPIO_PORTB | GPIO_PF | 24) |
77 | #define PB26_PF_USBH1_FS (GPIO_PORTB | GPIO_PF | 26) | 71 | #define PB26_PF_USBH1_FS (GPIO_PORTB | GPIO_PF | 26) |
78 | #define PB27_PF_USBH1_OE (GPIO_PORTB | GPIO_PF | 27) | 72 | #define PB27_PF_USBH1_OE (GPIO_PORTB | GPIO_PF | 27) |
79 | #define PB28_PF_USBH1_TXDM (GPIO_PORTB | GPIO_PF | 28) | 73 | #define PB28_PF_USBH1_TXDM (GPIO_PORTB | GPIO_PF | 28) |
80 | #define PB29_PF_USBH1_TXDP (GPIO_PORTB | GPIO_PF | 29) | 74 | #define PB29_PF_USBH1_TXDP (GPIO_PORTB | GPIO_PF | 29) |
81 | #define PB30_PF_USBH1_RXDM (GPIO_PORTB | GPIO_PF | 30) | 75 | #define PB30_PF_USBH1_RXDM (GPIO_PORTB | GPIO_PF | 30) |
82 | #define PB31_PF_USBH1_RXDP (GPIO_PORTB | GPIO_PF | 31) | 76 | #define PB31_PF_USBH1_RXDP (GPIO_PORTB | GPIO_PF | 31) |
83 | #define PC14_PF_TOUT (GPIO_PORTC | GPIO_PF | 14) | 77 | #define PC14_PF_TOUT (GPIO_PORTC | GPIO_PF | 14) |
84 | #define PC15_PF_TIN (GPIO_PORTC | GPIO_PF | 15) | 78 | #define PC15_PF_TIN (GPIO_PORTC | GPIO_PF | 15) |
85 | #define PC20_PF_SSI1_FS (GPIO_PORTC | GPIO_PF | GPIO_IN | 20) | 79 | #define PC20_PF_SSI1_FS (GPIO_PORTC | GPIO_PF | GPIO_IN | 20) |
86 | #define PC21_PF_SSI1_RXD (GPIO_PORTC | GPIO_PF | GPIO_IN | 21) | 80 | #define PC21_PF_SSI1_RXD (GPIO_PORTC | GPIO_PF | GPIO_IN | 21) |
87 | #define PC22_PF_SSI1_TXD (GPIO_PORTC | GPIO_PF | GPIO_IN | 22) | 81 | #define PC22_PF_SSI1_TXD (GPIO_PORTC | GPIO_PF | GPIO_IN | 22) |
88 | #define PC23_PF_SSI1_CLK (GPIO_PORTC | GPIO_PF | GPIO_IN | 23) | 82 | #define PC23_PF_SSI1_CLK (GPIO_PORTC | GPIO_PF | GPIO_IN | 23) |
89 | #define PC24_PF_SSI2_FS (GPIO_PORTC | GPIO_PF | GPIO_IN | 24) | 83 | #define PC24_PF_SSI2_FS (GPIO_PORTC | GPIO_PF | GPIO_IN | 24) |
90 | #define PC25_PF_SSI2_RXD (GPIO_PORTC | GPIO_PF | GPIO_IN | 25) | 84 | #define PC25_PF_SSI2_RXD (GPIO_PORTC | GPIO_PF | GPIO_IN | 25) |
91 | #define PC26_PF_SSI2_TXD (GPIO_PORTC | GPIO_PF | GPIO_IN | 26) | 85 | #define PC26_PF_SSI2_TXD (GPIO_PORTC | GPIO_PF | GPIO_IN | 26) |
92 | #define PC27_PF_SSI2_CLK (GPIO_PORTC | GPIO_PF | GPIO_IN | 27) | 86 | #define PC27_PF_SSI2_CLK (GPIO_PORTC | GPIO_PF | GPIO_IN | 27) |
93 | #define PC28_PF_SSI3_FS (GPIO_PORTC | GPIO_PF | GPIO_IN | 28) | 87 | #define PC28_PF_SSI3_FS (GPIO_PORTC | GPIO_PF | GPIO_IN | 28) |
94 | #define PC29_PF_SSI3_RXD (GPIO_PORTC | GPIO_PF | GPIO_IN | 29) | 88 | #define PC29_PF_SSI3_RXD (GPIO_PORTC | GPIO_PF | GPIO_IN | 29) |
95 | #define PC30_PF_SSI3_TXD (GPIO_PORTC | GPIO_PF | GPIO_IN | 30) | 89 | #define PC30_PF_SSI3_TXD (GPIO_PORTC | GPIO_PF | GPIO_IN | 30) |
96 | #define PC31_PF_SSI3_CLK (GPIO_PORTC | GPIO_PF | GPIO_IN | 31) | 90 | #define PC31_PF_SSI3_CLK (GPIO_PORTC | GPIO_PF | GPIO_IN | 31) |
97 | #define PD17_PF_I2C_DATA (GPIO_PORTD | GPIO_PF | GPIO_OUT | 17) | 91 | #define PD17_PF_I2C_DATA (GPIO_PORTD | GPIO_PF | GPIO_OUT | 17) |
98 | #define PD18_PF_I2C_CLK (GPIO_PORTD | GPIO_PF | GPIO_OUT | 18) | 92 | #define PD18_PF_I2C_CLK (GPIO_PORTD | GPIO_PF | GPIO_OUT | 18) |
99 | #define PD19_PF_CSPI2_SS2 (GPIO_PORTD | GPIO_PF | 19) | 93 | #define PD19_PF_CSPI2_SS2 (GPIO_PORTD | GPIO_PF | 19) |
100 | #define PD20_PF_CSPI2_SS1 (GPIO_PORTD | GPIO_PF | 20) | 94 | #define PD20_PF_CSPI2_SS1 (GPIO_PORTD | GPIO_PF | 20) |
101 | #define PD21_PF_CSPI2_SS0 (GPIO_PORTD | GPIO_PF | 21) | 95 | #define PD21_PF_CSPI2_SS0 (GPIO_PORTD | GPIO_PF | 21) |
102 | #define PD22_PF_CSPI2_SCLK (GPIO_PORTD | GPIO_PF | 22) | 96 | #define PD22_PF_CSPI2_SCLK (GPIO_PORTD | GPIO_PF | 22) |
103 | #define PD23_PF_CSPI2_MISO (GPIO_PORTD | GPIO_PF | 23) | 97 | #define PD23_PF_CSPI2_MISO (GPIO_PORTD | GPIO_PF | 23) |
104 | #define PD24_PF_CSPI2_MOSI (GPIO_PORTD | GPIO_PF | 24) | 98 | #define PD24_PF_CSPI2_MOSI (GPIO_PORTD | GPIO_PF | 24) |
105 | #define PD25_PF_CSPI1_RDY (GPIO_PORTD | GPIO_PF | GPIO_OUT | 25) | 99 | #define PD25_PF_CSPI1_RDY (GPIO_PORTD | GPIO_PF | GPIO_OUT | 25) |
106 | #define PD26_PF_CSPI1_SS2 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 26) | 100 | #define PD26_PF_CSPI1_SS2 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 26) |
107 | #define PD27_PF_CSPI1_SS1 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 27) | 101 | #define PD27_PF_CSPI1_SS1 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 27) |
108 | #define PD28_PF_CSPI1_SS0 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 28) | 102 | #define PD28_PF_CSPI1_SS0 (GPIO_PORTD | GPIO_PF | GPIO_OUT | 28) |
109 | #define PD29_PF_CSPI1_SCLK (GPIO_PORTD | GPIO_PF | GPIO_OUT | 29) | 103 | #define PD29_PF_CSPI1_SCLK (GPIO_PORTD | GPIO_PF | GPIO_OUT | 29) |
110 | #define PD30_PF_CSPI1_MISO (GPIO_PORTD | GPIO_PF | GPIO_IN | 30) | 104 | #define PD30_PF_CSPI1_MISO (GPIO_PORTD | GPIO_PF | GPIO_IN | 30) |
111 | #define PD31_PF_CSPI1_MOSI (GPIO_PORTD | GPIO_PF | GPIO_OUT | 31) | 105 | #define PD31_PF_CSPI1_MOSI (GPIO_PORTD | GPIO_PF | GPIO_OUT | 31) |
112 | #define PE3_PF_UART2_CTS (GPIO_PORTE | GPIO_PF | GPIO_OUT | 3) | 106 | #define PE3_PF_UART2_CTS (GPIO_PORTE | GPIO_PF | GPIO_OUT | 3) |
113 | #define PE4_PF_UART2_RTS (GPIO_PORTE | GPIO_PF | GPIO_IN | 4) | 107 | #define PE4_PF_UART2_RTS (GPIO_PORTE | GPIO_PF | GPIO_IN | 4) |
114 | #define PE5_PF_PWMO (GPIO_PORTE | GPIO_PF | 5) | 108 | #define PE5_PF_PWMO (GPIO_PORTE | GPIO_PF | 5) |
115 | #define PE6_PF_UART2_TXD (GPIO_PORTE | GPIO_PF | GPIO_OUT | 6) | 109 | #define PE6_PF_UART2_TXD (GPIO_PORTE | GPIO_PF | GPIO_OUT | 6) |
116 | #define PE7_PF_UART2_RXD (GPIO_PORTE | GPIO_PF | GPIO_IN | 7) | 110 | #define PE7_PF_UART2_RXD (GPIO_PORTE | GPIO_PF | GPIO_IN | 7) |
117 | #define PE8_PF_UART3_TXD (GPIO_PORTE | GPIO_PF | GPIO_OUT | 8) | 111 | #define PE8_PF_UART3_TXD (GPIO_PORTE | GPIO_PF | GPIO_OUT | 8) |
118 | #define PE9_PF_UART3_RXD (GPIO_PORTE | GPIO_PF | GPIO_IN | 9) | 112 | #define PE9_PF_UART3_RXD (GPIO_PORTE | GPIO_PF | GPIO_IN | 9) |
119 | #define PE10_PF_UART3_CTS (GPIO_PORTE | GPIO_PF | GPIO_OUT | 10) | 113 | #define PE10_PF_UART3_CTS (GPIO_PORTE | GPIO_PF | GPIO_OUT | 10) |
120 | #define PE11_PF_UART3_RTS (GPIO_PORTE | GPIO_PF | GPIO_IN | 11) | 114 | #define PE11_PF_UART3_RTS (GPIO_PORTE | GPIO_PF | GPIO_IN | 11) |
121 | #define PE12_PF_UART1_TXD (GPIO_PORTE | GPIO_PF | GPIO_OUT | 12) | 115 | #define PE12_PF_UART1_TXD (GPIO_PORTE | GPIO_PF | GPIO_OUT | 12) |
122 | #define PE13_PF_UART1_RXD (GPIO_PORTE | GPIO_PF | GPIO_IN | 13) | 116 | #define PE13_PF_UART1_RXD (GPIO_PORTE | GPIO_PF | GPIO_IN | 13) |
123 | #define PE14_PF_UART1_CTS (GPIO_PORTE | GPIO_PF | GPIO_OUT | 14) | 117 | #define PE14_PF_UART1_CTS (GPIO_PORTE | GPIO_PF | GPIO_OUT | 14) |
124 | #define PE15_PF_UART1_RTS (GPIO_PORTE | GPIO_PF | GPIO_IN | 15) | 118 | #define PE15_PF_UART1_RTS (GPIO_PORTE | GPIO_PF | GPIO_IN | 15) |
125 | #define PE16_PF_RTCK (GPIO_PORTE | GPIO_PF | GPIO_OUT | 16) | 119 | #define PE16_PF_RTCK (GPIO_PORTE | GPIO_PF | GPIO_OUT | 16) |
126 | #define PE17_PF_RESET_OUT (GPIO_PORTE | GPIO_PF | 17) | 120 | #define PE17_PF_RESET_OUT (GPIO_PORTE | GPIO_PF | 17) |
127 | #define PE18_PF_SD1_D0 (GPIO_PORTE | GPIO_PF | 18) | 121 | #define PE18_PF_SD1_D0 (GPIO_PORTE | GPIO_PF | 18) |
128 | #define PE19_PF_SD1_D1 (GPIO_PORTE | GPIO_PF | 19) | 122 | #define PE19_PF_SD1_D1 (GPIO_PORTE | GPIO_PF | 19) |
129 | #define PE20_PF_SD1_D2 (GPIO_PORTE | GPIO_PF | 20) | 123 | #define PE20_PF_SD1_D2 (GPIO_PORTE | GPIO_PF | 20) |
130 | #define PE21_PF_SD1_D3 (GPIO_PORTE | GPIO_PF | 21) | 124 | #define PE21_PF_SD1_D3 (GPIO_PORTE | GPIO_PF | 21) |
131 | #define PE22_PF_SD1_CMD (GPIO_PORTE | GPIO_PF | 22) | 125 | #define PE22_PF_SD1_CMD (GPIO_PORTE | GPIO_PF | 22) |
132 | #define PE23_PF_SD1_CLK (GPIO_PORTE | GPIO_PF | 23) | 126 | #define PE23_PF_SD1_CLK (GPIO_PORTE | GPIO_PF | 23) |
133 | #define PF0_PF_NRFB (GPIO_PORTF | GPIO_PF | 0) | 127 | #define PF0_PF_NRFB (GPIO_PORTF | GPIO_PF | 0) |
134 | #define PF2_PF_NFWP (GPIO_PORTF | GPIO_PF | 2) | 128 | #define PF2_PF_NFWP (GPIO_PORTF | GPIO_PF | 2) |
135 | #define PF4_PF_NFALE (GPIO_PORTF | GPIO_PF | 4) | 129 | #define PF4_PF_NFALE (GPIO_PORTF | GPIO_PF | 4) |
136 | #define PF5_PF_NFRE (GPIO_PORTF | GPIO_PF | 5) | 130 | #define PF5_PF_NFRE (GPIO_PORTF | GPIO_PF | 5) |
137 | #define PF6_PF_NFWE (GPIO_PORTF | GPIO_PF | 6) | 131 | #define PF6_PF_NFWE (GPIO_PORTF | GPIO_PF | 6) |
138 | #define PF15_PF_CLKO (GPIO_PORTF | GPIO_PF | 15) | 132 | #define PF15_PF_CLKO (GPIO_PORTF | GPIO_PF | 15) |
139 | #define PF21_PF_CS4 (GPIO_PORTF | GPIO_PF | 21) | 133 | #define PF21_PF_CS4 (GPIO_PORTF | GPIO_PF | 21) |
140 | #define PF22_PF_CS5 (GPIO_PORTF | GPIO_PF | 22) | 134 | #define PF22_PF_CS5 (GPIO_PORTF | GPIO_PF | 22) |
141 | 135 | ||
142 | /* Alternate GPIO pin functions */ | 136 | /* Alternate GPIO pin functions */ |
143 | 137 | ||
144 | #define PB26_AF_UART4_RTS (GPIO_PORTB | GPIO_AF | GPIO_IN | 26) | 138 | #define PB26_AF_UART4_RTS (GPIO_PORTB | GPIO_AF | GPIO_IN | 26) |
145 | #define PB28_AF_UART4_TXD (GPIO_PORTB | GPIO_AF | GPIO_OUT | 28) | 139 | #define PB28_AF_UART4_TXD (GPIO_PORTB | GPIO_AF | GPIO_OUT | 28) |
146 | #define PB29_AF_UART4_CTS (GPIO_PORTB | GPIO_AF | GPIO_OUT | 29) | 140 | #define PB29_AF_UART4_CTS (GPIO_PORTB | GPIO_AF | GPIO_OUT | 29) |
147 | #define PB31_AF_UART4_RXD (GPIO_PORTB | GPIO_AF | GPIO_IN | 31) | 141 | #define PB31_AF_UART4_RXD (GPIO_PORTB | GPIO_AF | GPIO_IN | 31) |
148 | #define PC28_AF_SLCDC2_D0 (GPIO_PORTC | GPIO_AF | 28) | 142 | #define PC28_AF_SLCDC2_D0 (GPIO_PORTC | GPIO_AF | 28) |
149 | #define PC29_AF_SLCDC2_RS (GPIO_PORTC | GPIO_AF | 29) | 143 | #define PC29_AF_SLCDC2_RS (GPIO_PORTC | GPIO_AF | 29) |
150 | #define PC30_AF_SLCDC2_CS (GPIO_PORTC | GPIO_AF | 30) | 144 | #define PC30_AF_SLCDC2_CS (GPIO_PORTC | GPIO_AF | 30) |
151 | #define PC31_AF_SLCDC2_CLK (GPIO_PORTC | GPIO_AF | 31) | 145 | #define PC31_AF_SLCDC2_CLK (GPIO_PORTC | GPIO_AF | 31) |
152 | #define PD19_AF_USBH2_DATA4 (GPIO_PORTD | GPIO_AF | 19) | 146 | #define PD19_AF_USBH2_DATA4 (GPIO_PORTD | GPIO_AF | 19) |
153 | #define PD20_AF_USBH2_DATA3 (GPIO_PORTD | GPIO_AF | 20) | 147 | #define PD20_AF_USBH2_DATA3 (GPIO_PORTD | GPIO_AF | 20) |
154 | #define PD21_AF_USBH2_DATA6 (GPIO_PORTD | GPIO_AF | 21) | 148 | #define PD21_AF_USBH2_DATA6 (GPIO_PORTD | GPIO_AF | 21) |
155 | #define PD22_AF_USBH2_DATA0 (GPIO_PORTD | GPIO_AF | 22) | 149 | #define PD22_AF_USBH2_DATA0 (GPIO_PORTD | GPIO_AF | 22) |
156 | #define PD23_AF_USBH2_DATA2 (GPIO_PORTD | GPIO_AF | 23) | 150 | #define PD23_AF_USBH2_DATA2 (GPIO_PORTD | GPIO_AF | 23) |
157 | #define PD24_AF_USBH2_DATA1 (GPIO_PORTD | GPIO_AF | 24) | 151 | #define PD24_AF_USBH2_DATA1 (GPIO_PORTD | GPIO_AF | 24) |
158 | #define PD26_AF_USBH2_DATA5 (GPIO_PORTD | GPIO_AF | 26) | 152 | #define PD26_AF_USBH2_DATA5 (GPIO_PORTD | GPIO_AF | 26) |
159 | #define PE0_AF_KP_COL6 (GPIO_PORTE | GPIO_AF | 0) | 153 | #define PE0_AF_KP_COL6 (GPIO_PORTE | GPIO_AF | 0) |
160 | #define PE1_AF_KP_ROW6 (GPIO_PORTE | GPIO_AF | 1) | 154 | #define PE1_AF_KP_ROW6 (GPIO_PORTE | GPIO_AF | 1) |
161 | #define PE2_AF_KP_ROW7 (GPIO_PORTE | GPIO_AF | 2) | 155 | #define PE2_AF_KP_ROW7 (GPIO_PORTE | GPIO_AF | 2) |
162 | #define PE3_AF_KP_COL7 (GPIO_PORTE | GPIO_AF | 3) | 156 | #define PE3_AF_KP_COL7 (GPIO_PORTE | GPIO_AF | 3) |
163 | #define PE4_AF_KP_ROW7 (GPIO_PORTE | GPIO_AF | 4) | 157 | #define PE4_AF_KP_ROW7 (GPIO_PORTE | GPIO_AF | 4) |
164 | #define PE6_AF_KP_COL6 (GPIO_PORTE | GPIO_AF | 6) | 158 | #define PE6_AF_KP_COL6 (GPIO_PORTE | GPIO_AF | 6) |
165 | #define PE7_AF_KP_ROW6 (GPIO_PORTE | GPIO_AF | 7) | 159 | #define PE7_AF_KP_ROW6 (GPIO_PORTE | GPIO_AF | 7) |
166 | #define PE16_AF_OWIRE (GPIO_PORTE | GPIO_AF | 16) | 160 | #define PE16_AF_OWIRE (GPIO_PORTE | GPIO_AF | 16) |
167 | #define PE18_AF_CSPI3_MISO (GPIO_PORTE | GPIO_AF | GPIO_IN | 18) | 161 | #define PE18_AF_CSPI3_MISO (GPIO_PORTE | GPIO_AF | GPIO_IN | 18) |
168 | #define PE21_AF_CSPI3_SS (GPIO_PORTE | GPIO_AF | GPIO_OUT | 21) | 162 | #define PE21_AF_CSPI3_SS (GPIO_PORTE | GPIO_AF | GPIO_OUT | 21) |
169 | #define PE22_AF_CSPI3_MOSI (GPIO_PORTE | GPIO_AF | GPIO_OUT | 22) | 163 | #define PE22_AF_CSPI3_MOSI (GPIO_PORTE | GPIO_AF | GPIO_OUT | 22) |
170 | #define PE23_AF_CSPI3_SCLK (GPIO_PORTE | GPIO_AF | GPIO_OUT | 23) | 164 | #define PE23_AF_CSPI3_SCLK (GPIO_PORTE | GPIO_AF | GPIO_OUT | 23) |
171 | 165 | ||
172 | /* AIN GPIO pin functions */ | 166 | /* AIN GPIO pin functions */ |
173 | 167 | ||
174 | #define PA6_AIN_SLCDC1_DAT0 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 6) | 168 | #define PA6_AIN_SLCDC1_DAT0 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 6) |
175 | #define PA7_AIN_SLCDC1_DAT1 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 7) | 169 | #define PA7_AIN_SLCDC1_DAT1 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 7) |
176 | #define PA8_AIN_SLCDC1_DAT2 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 8) | 170 | #define PA8_AIN_SLCDC1_DAT2 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 8) |
177 | #define PA0_AIN_SLCDC1_DAT3 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 0) | 171 | #define PA0_AIN_SLCDC1_DAT3 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 0) |
178 | #define PA11_AIN_SLCDC1_DAT5 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 11) | 172 | #define PA11_AIN_SLCDC1_DAT5 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 11) |
179 | #define PA13_AIN_SLCDC1_DAT7 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 13) | 173 | #define PA13_AIN_SLCDC1_DAT7 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 13) |
180 | #define PA15_AIN_SLCDC1_DAT9 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 15) | 174 | #define PA15_AIN_SLCDC1_DAT9 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 15) |
181 | #define PA17_AIN_SLCDC1_DAT11 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 17) | 175 | #define PA17_AIN_SLCDC1_DAT11 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 17) |
182 | #define PA19_AIN_SLCDC1_DAT13 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 19) | 176 | #define PA19_AIN_SLCDC1_DAT13 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 19) |
183 | #define PA21_AIN_SLCDC1_DAT15 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 21) | 177 | #define PA21_AIN_SLCDC1_DAT15 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 21) |
184 | #define PA22_AIN_EXT_DMAGRANT (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 22) | 178 | #define PA22_AIN_EXT_DMAGRANT (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 22) |
185 | #define PA24_AIN_SLCDC1_D0 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 24) | 179 | #define PA24_AIN_SLCDC1_D0 (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 24) |
186 | #define PA25_AIN_SLCDC1_RS (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 25) | 180 | #define PA25_AIN_SLCDC1_RS (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 25) |
187 | #define PA26_AIN_SLCDC1_CS (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 26) | 181 | #define PA26_AIN_SLCDC1_CS (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 26) |
188 | #define PA27_AIN_SLCDC1_CLK (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 27) | 182 | #define PA27_AIN_SLCDC1_CLK (GPIO_PORTA | GPIO_AIN | GPIO_OUT | 27) |
189 | #define PB6_AIN_SLCDC1_D0 (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 6) | 183 | #define PB6_AIN_SLCDC1_D0 (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 6) |
190 | #define PB7_AIN_SLCDC1_RS (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 7) | 184 | #define PB7_AIN_SLCDC1_RS (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 7) |
191 | #define PB8_AIN_SLCDC1_CS (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 8) | 185 | #define PB8_AIN_SLCDC1_CS (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 8) |
192 | #define PB9_AIN_SLCDC1_CLK (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 9) | 186 | #define PB9_AIN_SLCDC1_CLK (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 9) |
193 | #define PB25_AIN_SLCDC1_DAT0 (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 25) | 187 | #define PB25_AIN_SLCDC1_DAT0 (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 25) |
194 | #define PB26_AIN_SLCDC1_DAT1 (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 26) | 188 | #define PB26_AIN_SLCDC1_DAT1 (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 26) |
195 | #define PB27_AIN_SLCDC1_DAT2 (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 27) | 189 | #define PB27_AIN_SLCDC1_DAT2 (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 27) |
196 | #define PB28_AIN_SLCDC1_DAT3 (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 28) | 190 | #define PB28_AIN_SLCDC1_DAT3 (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 28) |
197 | #define PB29_AIN_SLCDC1_DAT4 (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 29) | 191 | #define PB29_AIN_SLCDC1_DAT4 (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 29) |
198 | #define PB30_AIN_SLCDC1_DAT5 (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 30) | 192 | #define PB30_AIN_SLCDC1_DAT5 (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 30) |
199 | #define PB31_AIN_SLCDC1_DAT6 (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 31) | 193 | #define PB31_AIN_SLCDC1_DAT6 (GPIO_PORTB | GPIO_AIN | GPIO_OUT | 31) |
200 | #define PC5_AIN_SLCDC1_DAT7 (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 5) | 194 | #define PC5_AIN_SLCDC1_DAT7 (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 5) |
201 | #define PC6_AIN_SLCDC1_DAT8 (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 6) | 195 | #define PC6_AIN_SLCDC1_DAT8 (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 6) |
202 | #define PC7_AIN_SLCDC1_DAT9 (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 7) | 196 | #define PC7_AIN_SLCDC1_DAT9 (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 7) |
203 | #define PC8_AIN_SLCDC1_DAT10 (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 8) | 197 | #define PC8_AIN_SLCDC1_DAT10 (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 8) |
204 | #define PC9_AIN_SLCDC1_DAT11 (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 9) | 198 | #define PC9_AIN_SLCDC1_DAT11 (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 9) |
205 | #define PC10_AIN_SLCDC1_DAT12 (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 10) | 199 | #define PC10_AIN_SLCDC1_DAT12 (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 10) |
206 | #define PC11_AIN_SLCDC1_DAT13 (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 11) | 200 | #define PC11_AIN_SLCDC1_DAT13 (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 11) |
207 | #define PC12_AIN_SLCDC1_DAT14 (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 12) | 201 | #define PC12_AIN_SLCDC1_DAT14 (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 12) |
208 | #define PC13_AIN_SLCDC1_DAT15 (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 13) | 202 | #define PC13_AIN_SLCDC1_DAT15 (GPIO_PORTC | GPIO_AIN | GPIO_OUT | 13) |
209 | #define PE5_AIN_PC_SPKOUT (GPIO_PORTE | GPIO_AIN | GPIO_OUT | 5) | 203 | #define PE5_AIN_PC_SPKOUT (GPIO_PORTE | GPIO_AIN | GPIO_OUT | 5) |
210 | 204 | ||
211 | /* BIN GPIO pin functions */ | 205 | /* BIN GPIO pin functions */ |
212 | 206 | ||
213 | #define PE5_BIN_TOUT2 (GPIO_PORTE | GPIO_BIN | GPIO_OUT | 5) | 207 | #define PE5_BIN_TOUT2 (GPIO_PORTE | GPIO_BIN | GPIO_OUT | 5) |
214 | 208 | ||
215 | /* CIN GPIO pin functions */ | 209 | /* CIN GPIO pin functions */ |
216 | 210 | ||
217 | #define PA14_CIN_SLCDC1_DAT0 (GPIO_PORTA | GPIO_CIN | GPIO_OUT | 14) | 211 | #define PA14_CIN_SLCDC1_DAT0 (GPIO_PORTA | GPIO_CIN | GPIO_OUT | 14) |
218 | #define PA15_CIN_SLCDC1_DAT1 (GPIO_PORTA | GPIO_CIN | GPIO_OUT | 15) | 212 | #define PA15_CIN_SLCDC1_DAT1 (GPIO_PORTA | GPIO_CIN | GPIO_OUT | 15) |
219 | #define PA16_CIN_SLCDC1_DAT2 (GPIO_PORTA | GPIO_CIN | GPIO_OUT | 16) | 213 | #define PA16_CIN_SLCDC1_DAT2 (GPIO_PORTA | GPIO_CIN | GPIO_OUT | 16) |
220 | #define PA17_CIN_SLCDC1_DAT3 (GPIO_PORTA | GPIO_CIN | GPIO_OUT | 17) | 214 | #define PA17_CIN_SLCDC1_DAT3 (GPIO_PORTA | GPIO_CIN | GPIO_OUT | 17) |
221 | #define PA18_CIN_SLCDC1_DAT4 (GPIO_PORTA | GPIO_CIN | GPIO_OUT | 18) | 215 | #define PA18_CIN_SLCDC1_DAT4 (GPIO_PORTA | GPIO_CIN | GPIO_OUT | 18) |
222 | #define PA19_CIN_SLCDC1_DAT5 (GPIO_PORTA | GPIO_CIN | GPIO_OUT | 19) | 216 | #define PA19_CIN_SLCDC1_DAT5 (GPIO_PORTA | GPIO_CIN | GPIO_OUT | 19) |
223 | #define PA20_CIN_SLCDC1_DAT6 (GPIO_PORTA | GPIO_CIN | GPIO_OUT | 20) | 217 | #define PA20_CIN_SLCDC1_DAT6 (GPIO_PORTA | GPIO_CIN | GPIO_OUT | 20) |
224 | #define PA21_CIN_SLCDC1_DAT7 (GPIO_PORTA | GPIO_CIN | GPIO_OUT | 21) | 218 | #define PA21_CIN_SLCDC1_DAT7 (GPIO_PORTA | GPIO_CIN | GPIO_OUT | 21) |
225 | #define PB30_CIN_UART4_CTS (GPIO_PORTB | GPIO_CIN | GPIO_OUT | 30) | 219 | #define PB30_CIN_UART4_CTS (GPIO_PORTB | GPIO_CIN | GPIO_OUT | 30) |
226 | #define PE5_CIN_TOUT3 (GPIO_PORTE | GPIO_CIN | GPIO_OUT | 5) | 220 | #define PE5_CIN_TOUT3 (GPIO_PORTE | GPIO_CIN | GPIO_OUT | 5) |
227 | 221 | ||
228 | /* AOUT GPIO pin functions */ | 222 | /* AOUT GPIO pin functions */ |
229 | 223 | ||
230 | #define PB29_AOUT_UART4_RXD (GPIO_PORTB | GPIO_AOUT | GPIO_IN | 29) | 224 | #define PB29_AOUT_UART4_RXD (GPIO_PORTB | GPIO_AOUT | GPIO_IN | 29) |
231 | #define PB31_AOUT_UART4_RTS (GPIO_PORTB | GPIO_AOUT | GPIO_IN | 31) | 225 | #define PB31_AOUT_UART4_RTS (GPIO_PORTB | GPIO_AOUT | GPIO_IN | 31) |
232 | #define PC8_AOUT_USBOTG_TXR_INT (GPIO_PORTC | GPIO_AOUT | GPIO_IN | 8) | 226 | #define PC8_AOUT_USBOTG_TXR_INT (GPIO_PORTC | GPIO_AOUT | GPIO_IN | 8) |
233 | #define PC15_AOUT_WKGD (GPIO_PORTC | GPIO_AOUT | GPIO_IN | 15) | 227 | #define PC15_AOUT_WKGD (GPIO_PORTC | GPIO_AOUT | GPIO_IN | 15) |
234 | #define PF21_AOUT_DTACK (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 21) | 228 | #define PF21_AOUT_DTACK (GPIO_PORTF | GPIO_AOUT | GPIO_IN | 21) |
235 | |||
236 | 229 | ||
237 | #endif | 230 | #endif /* ifndef __MACH_IOMUX_MX2x_H__ */ |
diff --git a/arch/arm/plat-mxc/include/mach/iomux-mx3.h b/arch/arm/plat-mxc/include/mach/iomux-mx3.h index e1fc6da1cd1..e51465d7b22 100644 --- a/arch/arm/plat-mxc/include/mach/iomux-mx3.h +++ b/arch/arm/plat-mxc/include/mach/iomux-mx3.h | |||
@@ -16,12 +16,10 @@ | |||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
17 | * MA 02110-1301, USA. | 17 | * MA 02110-1301, USA. |
18 | */ | 18 | */ |
19 | 19 | #ifndef __MACH_IOMUX_MX3_H__ | |
20 | #ifndef __MACH_MX31_IOMUX_H__ | 20 | #define __MACH_IOMUX_MX3_H__ |
21 | #define __MACH_MX31_IOMUX_H__ | ||
22 | 21 | ||
23 | #include <linux/types.h> | 22 | #include <linux/types.h> |
24 | |||
25 | /* | 23 | /* |
26 | * various IOMUX output functions | 24 | * various IOMUX output functions |
27 | */ | 25 | */ |
@@ -34,7 +32,7 @@ | |||
34 | #define IOMUX_OCONFIG_ALT4 (5 << 4) /* used as alternate function 4 */ | 32 | #define IOMUX_OCONFIG_ALT4 (5 << 4) /* used as alternate function 4 */ |
35 | #define IOMUX_OCONFIG_ALT5 (6 << 4) /* used as alternate function 5 */ | 33 | #define IOMUX_OCONFIG_ALT5 (6 << 4) /* used as alternate function 5 */ |
36 | #define IOMUX_OCONFIG_ALT6 (7 << 4) /* used as alternate function 6 */ | 34 | #define IOMUX_OCONFIG_ALT6 (7 << 4) /* used as alternate function 6 */ |
37 | #define IOMUX_ICONFIG_NONE 0 /* not configured for input */ | 35 | #define IOMUX_ICONFIG_NONE 0 /* not configured for input */ |
38 | #define IOMUX_ICONFIG_GPIO 1 /* used as GPIO */ | 36 | #define IOMUX_ICONFIG_GPIO 1 /* used as GPIO */ |
39 | #define IOMUX_ICONFIG_FUNC 2 /* used as function */ | 37 | #define IOMUX_ICONFIG_FUNC 2 /* used as function */ |
40 | #define IOMUX_ICONFIG_ALT1 4 /* used as alternate function 1 */ | 38 | #define IOMUX_ICONFIG_ALT1 4 /* used as alternate function 1 */ |
@@ -167,11 +165,6 @@ int mxc_iomux_mode(unsigned int pin_mode); | |||
167 | MXC_GPIO_IRQ_START) | 165 | MXC_GPIO_IRQ_START) |
168 | 166 | ||
169 | /* | 167 | /* |
170 | * The number of gpio devices among the pads | ||
171 | */ | ||
172 | #define GPIO_PORT_MAX 3 | ||
173 | |||
174 | /* | ||
175 | * This enumeration is constructed based on the Section | 168 | * This enumeration is constructed based on the Section |
176 | * "sw_pad_ctl & sw_mux_ctl details" of the MX31 IC Spec. Each enumerated | 169 | * "sw_pad_ctl & sw_mux_ctl details" of the MX31 IC Spec. Each enumerated |
177 | * value is constructed based on the rules described above. | 170 | * value is constructed based on the rules described above. |
@@ -633,40 +626,40 @@ enum iomux_pins { | |||
633 | #define MX31_PIN_TXD2__GPIO1_28 IOMUX_MODE(MX31_PIN_TXD2, IOMUX_CONFIG_GPIO) | 626 | #define MX31_PIN_TXD2__GPIO1_28 IOMUX_MODE(MX31_PIN_TXD2, IOMUX_CONFIG_GPIO) |
634 | #define MX31_PIN_CSI_D4__GPIO3_4 IOMUX_MODE(MX31_PIN_CSI_D4, IOMUX_CONFIG_GPIO) | 627 | #define MX31_PIN_CSI_D4__GPIO3_4 IOMUX_MODE(MX31_PIN_CSI_D4, IOMUX_CONFIG_GPIO) |
635 | #define MX31_PIN_CSI_D5__GPIO3_5 IOMUX_MODE(MX31_PIN_CSI_D5, IOMUX_CONFIG_GPIO) | 628 | #define MX31_PIN_CSI_D5__GPIO3_5 IOMUX_MODE(MX31_PIN_CSI_D5, IOMUX_CONFIG_GPIO) |
636 | #define MX31_PIN_USBOTG_DATA0__USBOTG_DATA0 IOMUX_MODE(MX31_PIN_USBOTG_DATA0, IOMUX_CONFIG_FUNC) | 629 | #define MX31_PIN_USBOTG_DATA0__USBOTG_DATA0 IOMUX_MODE(MX31_PIN_USBOTG_DATA0, IOMUX_CONFIG_FUNC) |
637 | #define MX31_PIN_USBOTG_DATA1__USBOTG_DATA1 IOMUX_MODE(MX31_PIN_USBOTG_DATA1, IOMUX_CONFIG_FUNC) | 630 | #define MX31_PIN_USBOTG_DATA1__USBOTG_DATA1 IOMUX_MODE(MX31_PIN_USBOTG_DATA1, IOMUX_CONFIG_FUNC) |
638 | #define MX31_PIN_USBOTG_DATA2__USBOTG_DATA2 IOMUX_MODE(MX31_PIN_USBOTG_DATA2, IOMUX_CONFIG_FUNC) | 631 | #define MX31_PIN_USBOTG_DATA2__USBOTG_DATA2 IOMUX_MODE(MX31_PIN_USBOTG_DATA2, IOMUX_CONFIG_FUNC) |
639 | #define MX31_PIN_USBOTG_DATA3__USBOTG_DATA3 IOMUX_MODE(MX31_PIN_USBOTG_DATA3, IOMUX_CONFIG_FUNC) | 632 | #define MX31_PIN_USBOTG_DATA3__USBOTG_DATA3 IOMUX_MODE(MX31_PIN_USBOTG_DATA3, IOMUX_CONFIG_FUNC) |
640 | #define MX31_PIN_USBOTG_DATA4__USBOTG_DATA4 IOMUX_MODE(MX31_PIN_USBOTG_DATA4, IOMUX_CONFIG_FUNC) | 633 | #define MX31_PIN_USBOTG_DATA4__USBOTG_DATA4 IOMUX_MODE(MX31_PIN_USBOTG_DATA4, IOMUX_CONFIG_FUNC) |
641 | #define MX31_PIN_USBOTG_DATA5__USBOTG_DATA5 IOMUX_MODE(MX31_PIN_USBOTG_DATA5, IOMUX_CONFIG_FUNC) | 634 | #define MX31_PIN_USBOTG_DATA5__USBOTG_DATA5 IOMUX_MODE(MX31_PIN_USBOTG_DATA5, IOMUX_CONFIG_FUNC) |
642 | #define MX31_PIN_USBOTG_DATA6__USBOTG_DATA6 IOMUX_MODE(MX31_PIN_USBOTG_DATA6, IOMUX_CONFIG_FUNC) | 635 | #define MX31_PIN_USBOTG_DATA6__USBOTG_DATA6 IOMUX_MODE(MX31_PIN_USBOTG_DATA6, IOMUX_CONFIG_FUNC) |
643 | #define MX31_PIN_USBOTG_DATA7__USBOTG_DATA7 IOMUX_MODE(MX31_PIN_USBOTG_DATA7, IOMUX_CONFIG_FUNC) | 636 | #define MX31_PIN_USBOTG_DATA7__USBOTG_DATA7 IOMUX_MODE(MX31_PIN_USBOTG_DATA7, IOMUX_CONFIG_FUNC) |
644 | #define MX31_PIN_USBOTG_CLK__USBOTG_CLK IOMUX_MODE(MX31_PIN_USBOTG_CLK, IOMUX_CONFIG_FUNC) | 637 | #define MX31_PIN_USBOTG_CLK__USBOTG_CLK IOMUX_MODE(MX31_PIN_USBOTG_CLK, IOMUX_CONFIG_FUNC) |
645 | #define MX31_PIN_USBOTG_DIR__USBOTG_DIR IOMUX_MODE(MX31_PIN_USBOTG_DIR, IOMUX_CONFIG_FUNC) | 638 | #define MX31_PIN_USBOTG_DIR__USBOTG_DIR IOMUX_MODE(MX31_PIN_USBOTG_DIR, IOMUX_CONFIG_FUNC) |
646 | #define MX31_PIN_USBOTG_NXT__USBOTG_NXT IOMUX_MODE(MX31_PIN_USBOTG_NXT, IOMUX_CONFIG_FUNC) | 639 | #define MX31_PIN_USBOTG_NXT__USBOTG_NXT IOMUX_MODE(MX31_PIN_USBOTG_NXT, IOMUX_CONFIG_FUNC) |
647 | #define MX31_PIN_USBOTG_STP__USBOTG_STP IOMUX_MODE(MX31_PIN_USBOTG_STP, IOMUX_CONFIG_FUNC) | 640 | #define MX31_PIN_USBOTG_STP__USBOTG_STP IOMUX_MODE(MX31_PIN_USBOTG_STP, IOMUX_CONFIG_FUNC) |
648 | #define MX31_PIN_CSPI1_MOSI__USBH1_RXDM IOMUX_MODE(MX31_PIN_CSPI1_MOSI, IOMUX_CONFIG_ALT1) | 641 | #define MX31_PIN_CSPI1_MOSI__USBH1_RXDM IOMUX_MODE(MX31_PIN_CSPI1_MOSI, IOMUX_CONFIG_ALT1) |
649 | #define MX31_PIN_CSPI1_MISO__USBH1_RXDP IOMUX_MODE(MX31_PIN_CSPI1_MISO, IOMUX_CONFIG_ALT1) | 642 | #define MX31_PIN_CSPI1_MISO__USBH1_RXDP IOMUX_MODE(MX31_PIN_CSPI1_MISO, IOMUX_CONFIG_ALT1) |
650 | #define MX31_PIN_CSPI1_SS0__USBH1_TXDM IOMUX_MODE(MX31_PIN_CSPI1_SS0, IOMUX_CONFIG_ALT1) | 643 | #define MX31_PIN_CSPI1_SS0__USBH1_TXDM IOMUX_MODE(MX31_PIN_CSPI1_SS0, IOMUX_CONFIG_ALT1) |
651 | #define MX31_PIN_CSPI1_SS1__USBH1_TXDP IOMUX_MODE(MX31_PIN_CSPI1_SS1, IOMUX_CONFIG_ALT1) | 644 | #define MX31_PIN_CSPI1_SS1__USBH1_TXDP IOMUX_MODE(MX31_PIN_CSPI1_SS1, IOMUX_CONFIG_ALT1) |
652 | #define MX31_PIN_CSPI1_SS2__USBH1_RCV IOMUX_MODE(MX31_PIN_CSPI1_SS2, IOMUX_CONFIG_ALT1) | 645 | #define MX31_PIN_CSPI1_SS2__USBH1_RCV IOMUX_MODE(MX31_PIN_CSPI1_SS2, IOMUX_CONFIG_ALT1) |
653 | #define MX31_PIN_CSPI1_SCLK__USBH1_OEB IOMUX_MODE(MX31_PIN_CSPI1_SCLK, IOMUX_CONFIG_ALT1) | 646 | #define MX31_PIN_CSPI1_SCLK__USBH1_OEB IOMUX_MODE(MX31_PIN_CSPI1_SCLK, IOMUX_CONFIG_ALT1) |
654 | #define MX31_PIN_CSPI1_SPI_RDY__USBH1_FS IOMUX_MODE(MX31_PIN_CSPI1_SPI_RDY, IOMUX_CONFIG_ALT1) | 647 | #define MX31_PIN_CSPI1_SPI_RDY__USBH1_FS IOMUX_MODE(MX31_PIN_CSPI1_SPI_RDY, IOMUX_CONFIG_ALT1) |
655 | #define MX31_PIN_SFS6__USBH1_SUSPEND IOMUX_MODE(MX31_PIN_SFS6, IOMUX_CONFIG_FUNC) | 648 | #define MX31_PIN_SFS6__USBH1_SUSPEND IOMUX_MODE(MX31_PIN_SFS6, IOMUX_CONFIG_FUNC) |
656 | #define MX31_PIN_NFRE_B__GPIO1_11 IOMUX_MODE(MX31_PIN_NFRE_B, IOMUX_CONFIG_GPIO) | 649 | #define MX31_PIN_NFRE_B__GPIO1_11 IOMUX_MODE(MX31_PIN_NFRE_B, IOMUX_CONFIG_GPIO) |
657 | #define MX31_PIN_NFALE__GPIO1_12 IOMUX_MODE(MX31_PIN_NFALE, IOMUX_CONFIG_GPIO) | 650 | #define MX31_PIN_NFALE__GPIO1_12 IOMUX_MODE(MX31_PIN_NFALE, IOMUX_CONFIG_GPIO) |
658 | #define MX31_PIN_USBH2_DATA0__USBH2_DATA0 IOMUX_MODE(MX31_PIN_USBH2_DATA0, IOMUX_CONFIG_FUNC) | 651 | #define MX31_PIN_USBH2_DATA0__USBH2_DATA0 IOMUX_MODE(MX31_PIN_USBH2_DATA0, IOMUX_CONFIG_FUNC) |
659 | #define MX31_PIN_USBH2_DATA1__USBH2_DATA1 IOMUX_MODE(MX31_PIN_USBH2_DATA1, IOMUX_CONFIG_FUNC) | 652 | #define MX31_PIN_USBH2_DATA1__USBH2_DATA1 IOMUX_MODE(MX31_PIN_USBH2_DATA1, IOMUX_CONFIG_FUNC) |
660 | #define MX31_PIN_STXD3__USBH2_DATA2 IOMUX_MODE(MX31_PIN_STXD3, IOMUX_CONFIG_FUNC) | 653 | #define MX31_PIN_STXD3__USBH2_DATA2 IOMUX_MODE(MX31_PIN_STXD3, IOMUX_CONFIG_FUNC) |
661 | #define MX31_PIN_SRXD3__USBH2_DATA3 IOMUX_MODE(MX31_PIN_SRXD3, IOMUX_CONFIG_FUNC) | 654 | #define MX31_PIN_SRXD3__USBH2_DATA3 IOMUX_MODE(MX31_PIN_SRXD3, IOMUX_CONFIG_FUNC) |
662 | #define MX31_PIN_SCK3__USBH2_DATA4 IOMUX_MODE(MX31_PIN_SCK3, IOMUX_CONFIG_FUNC) | 655 | #define MX31_PIN_SCK3__USBH2_DATA4 IOMUX_MODE(MX31_PIN_SCK3, IOMUX_CONFIG_FUNC) |
663 | #define MX31_PIN_SFS3__USBH2_DATA5 IOMUX_MODE(MX31_PIN_SFS3, IOMUX_CONFIG_FUNC) | 656 | #define MX31_PIN_SFS3__USBH2_DATA5 IOMUX_MODE(MX31_PIN_SFS3, IOMUX_CONFIG_FUNC) |
664 | #define MX31_PIN_STXD6__USBH2_DATA6 IOMUX_MODE(MX31_PIN_STXD6, IOMUX_CONFIG_FUNC) | 657 | #define MX31_PIN_STXD6__USBH2_DATA6 IOMUX_MODE(MX31_PIN_STXD6, IOMUX_CONFIG_FUNC) |
665 | #define MX31_PIN_SRXD6__USBH2_DATA7 IOMUX_MODE(MX31_PIN_SRXD6, IOMUX_CONFIG_FUNC) | 658 | #define MX31_PIN_SRXD6__USBH2_DATA7 IOMUX_MODE(MX31_PIN_SRXD6, IOMUX_CONFIG_FUNC) |
666 | #define MX31_PIN_USBH2_CLK__USBH2_CLK IOMUX_MODE(MX31_PIN_USBH2_CLK, IOMUX_CONFIG_FUNC) | 659 | #define MX31_PIN_USBH2_CLK__USBH2_CLK IOMUX_MODE(MX31_PIN_USBH2_CLK, IOMUX_CONFIG_FUNC) |
667 | #define MX31_PIN_USBH2_DIR__USBH2_DIR IOMUX_MODE(MX31_PIN_USBH2_DIR, IOMUX_CONFIG_FUNC) | 660 | #define MX31_PIN_USBH2_DIR__USBH2_DIR IOMUX_MODE(MX31_PIN_USBH2_DIR, IOMUX_CONFIG_FUNC) |
668 | #define MX31_PIN_USBH2_NXT__USBH2_NXT IOMUX_MODE(MX31_PIN_USBH2_NXT, IOMUX_CONFIG_FUNC) | 661 | #define MX31_PIN_USBH2_NXT__USBH2_NXT IOMUX_MODE(MX31_PIN_USBH2_NXT, IOMUX_CONFIG_FUNC) |
669 | #define MX31_PIN_USBH2_STP__USBH2_STP IOMUX_MODE(MX31_PIN_USBH2_STP, IOMUX_CONFIG_FUNC) | 662 | #define MX31_PIN_USBH2_STP__USBH2_STP IOMUX_MODE(MX31_PIN_USBH2_STP, IOMUX_CONFIG_FUNC) |
670 | #define MX31_PIN_SCK6__GPIO1_25 IOMUX_MODE(MX31_PIN_SCK6, IOMUX_CONFIG_GPIO) | 663 | #define MX31_PIN_SCK6__GPIO1_25 IOMUX_MODE(MX31_PIN_SCK6, IOMUX_CONFIG_GPIO) |
671 | #define MX31_PIN_USB_OC__GPIO1_30 IOMUX_MODE(MX31_PIN_USB_OC, IOMUX_CONFIG_GPIO) | 664 | #define MX31_PIN_USB_OC__GPIO1_30 IOMUX_MODE(MX31_PIN_USB_OC, IOMUX_CONFIG_GPIO) |
672 | #define MX31_PIN_I2C_DAT__I2C1_SDA IOMUX_MODE(MX31_PIN_I2C_DAT, IOMUX_CONFIG_FUNC) | 665 | #define MX31_PIN_I2C_DAT__I2C1_SDA IOMUX_MODE(MX31_PIN_I2C_DAT, IOMUX_CONFIG_FUNC) |
@@ -711,8 +704,8 @@ enum iomux_pins { | |||
711 | #define MX31_PIN_DSR_DCE1__GPIO2_9 IOMUX_MODE(MX31_PIN_DSR_DCE1, IOMUX_CONFIG_GPIO) | 704 | #define MX31_PIN_DSR_DCE1__GPIO2_9 IOMUX_MODE(MX31_PIN_DSR_DCE1, IOMUX_CONFIG_GPIO) |
712 | #define MX31_PIN_RI_DCE1__GPIO2_10 IOMUX_MODE(MX31_PIN_RI_DCE1, IOMUX_CONFIG_GPIO) | 705 | #define MX31_PIN_RI_DCE1__GPIO2_10 IOMUX_MODE(MX31_PIN_RI_DCE1, IOMUX_CONFIG_GPIO) |
713 | #define MX31_PIN_DCD_DCE1__GPIO2_11 IOMUX_MODE(MX31_PIN_DCD_DCE1, IOMUX_CONFIG_GPIO) | 706 | #define MX31_PIN_DCD_DCE1__GPIO2_11 IOMUX_MODE(MX31_PIN_DCD_DCE1, IOMUX_CONFIG_GPIO) |
714 | #define MX31_PIN_STXD5__GPIO1_21 IOMUX_MODE(MX31_PIN_STXD5, IOMUX_CONFIG_GPIO) | 707 | #define MX31_PIN_STXD5__GPIO1_21 IOMUX_MODE(MX31_PIN_STXD5, IOMUX_CONFIG_GPIO) |
715 | #define MX31_PIN_SRXD5__GPIO1_22 IOMUX_MODE(MX31_PIN_SRXD5, IOMUX_CONFIG_GPIO) | 708 | #define MX31_PIN_SRXD5__GPIO1_22 IOMUX_MODE(MX31_PIN_SRXD5, IOMUX_CONFIG_GPIO) |
716 | #define MX31_PIN_GPIO1_3__GPIO1_3 IOMUX_MODE(MX31_PIN_GPIO1_3, IOMUX_CONFIG_GPIO) | 709 | #define MX31_PIN_GPIO1_3__GPIO1_3 IOMUX_MODE(MX31_PIN_GPIO1_3, IOMUX_CONFIG_GPIO) |
717 | #define MX31_PIN_CSPI2_SS1__CSPI3_SS1 IOMUX_MODE(MX31_PIN_CSPI2_SS1, IOMUX_CONFIG_ALT1) | 710 | #define MX31_PIN_CSPI2_SS1__CSPI3_SS1 IOMUX_MODE(MX31_PIN_CSPI2_SS1, IOMUX_CONFIG_ALT1) |
718 | #define MX31_PIN_RTS1__GPIO2_6 IOMUX_MODE(MX31_PIN_RTS1, IOMUX_CONFIG_GPIO) | 711 | #define MX31_PIN_RTS1__GPIO2_6 IOMUX_MODE(MX31_PIN_RTS1, IOMUX_CONFIG_GPIO) |
@@ -727,13 +720,14 @@ enum iomux_pins { | |||
727 | #define MX31_PIN_SCK5__SCK5 IOMUX_MODE(MX31_PIN_SCK5, IOMUX_CONFIG_FUNC) | 720 | #define MX31_PIN_SCK5__SCK5 IOMUX_MODE(MX31_PIN_SCK5, IOMUX_CONFIG_FUNC) |
728 | #define MX31_PIN_SFS5__SFS5 IOMUX_MODE(MX31_PIN_SFS5, IOMUX_CONFIG_FUNC) | 721 | #define MX31_PIN_SFS5__SFS5 IOMUX_MODE(MX31_PIN_SFS5, IOMUX_CONFIG_FUNC) |
729 | 722 | ||
730 | /*XXX: The SS0, SS1, SS2, SS3 lines of spi3 are multiplexed by cspi2_ss0, cspi2_ss1, cspi1_ss0 | 723 | /* |
731 | * cspi1_ss1*/ | 724 | * XXX: The SS0, SS1, SS2, SS3 lines of spi3 are multiplexed with cspi2_ss0, |
725 | * cspi2_ss1, cspi1_ss0 cspi1_ss1 | ||
726 | */ | ||
732 | 727 | ||
733 | /* | 728 | /* |
734 | * This function configures the pad value for a IOMUX pin. | 729 | * This function configures the pad value for a IOMUX pin. |
735 | */ | 730 | */ |
736 | void mxc_iomux_set_pad(enum iomux_pins, u32); | 731 | void mxc_iomux_set_pad(enum iomux_pins, u32); |
737 | 732 | ||
738 | #endif | 733 | #endif /* ifndef __MACH_IOMUX_MX3_H__ */ |
739 | |||
diff --git a/arch/arm/plat-mxc/include/mach/iomux-mx35.h b/arch/arm/plat-mxc/include/mach/iomux-mx35.h index 00b0ac1db22..2a24bae1b87 100644 --- a/arch/arm/plat-mxc/include/mach/iomux-mx35.h +++ b/arch/arm/plat-mxc/include/mach/iomux-mx35.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C, NO_PAD_CTRL) 2009 by Jan Weitzel Phytec Messtechnik GmbH <armlinux@phytec.de> | 2 | * Copyright (C) 2009 by Jan Weitzel Phytec Messtechnik GmbH <armlinux@phytec.de> |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or | 4 | * This program is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU General Public License | 5 | * modify it under the terms of the GNU General Public License |
@@ -671,7 +671,7 @@ | |||
671 | #define MX35_PAD_LD8__SDMA_SDMA_DEBUG_PC_8 IOMUX_PAD(0x634, 0x1d0, 6, 0x0, 0, NO_PAD_CTRL) | 671 | #define MX35_PAD_LD8__SDMA_SDMA_DEBUG_PC_8 IOMUX_PAD(0x634, 0x1d0, 6, 0x0, 0, NO_PAD_CTRL) |
672 | 672 | ||
673 | #define MX35_PAD_LD9__IPU_DISPB_DAT_9 IOMUX_PAD(0x638, 0x1d4, 0, 0x0, 0, NO_PAD_CTRL) | 673 | #define MX35_PAD_LD9__IPU_DISPB_DAT_9 IOMUX_PAD(0x638, 0x1d4, 0, 0x0, 0, NO_PAD_CTRL) |
674 | #define MX35_PAD_LD9__GPIO2_9 IOMUX_PAD(0x638, 0x1d4, 5, 0x8e4 0, NO_PAD_CTRL) | 674 | #define MX35_PAD_LD9__GPIO2_9 IOMUX_PAD(0x638, 0x1d4, 5, 0x8e4, 0, NO_PAD_CTRL) |
675 | #define MX35_PAD_LD9__SDMA_SDMA_DEBUG_PC_9 IOMUX_PAD(0x638, 0x1d4, 6, 0x0, 0, NO_PAD_CTRL) | 675 | #define MX35_PAD_LD9__SDMA_SDMA_DEBUG_PC_9 IOMUX_PAD(0x638, 0x1d4, 6, 0x0, 0, NO_PAD_CTRL) |
676 | 676 | ||
677 | #define MX35_PAD_LD10__IPU_DISPB_DAT_10 IOMUX_PAD(0x63c, 0x1d8, 0, 0x0, 0, NO_PAD_CTRL) | 677 | #define MX35_PAD_LD10__IPU_DISPB_DAT_10 IOMUX_PAD(0x63c, 0x1d8, 0, 0x0, 0, NO_PAD_CTRL) |
diff --git a/arch/arm/plat-mxc/include/mach/iomux-mx51.h b/arch/arm/plat-mxc/include/mach/iomux-mx51.h new file mode 100644 index 00000000000..b4f975e6a66 --- /dev/null +++ b/arch/arm/plat-mxc/include/mach/iomux-mx51.h | |||
@@ -0,0 +1,326 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2009-2010 Amit Kucheria <amit.kucheria@canonical.com> | ||
3 | * | ||
4 | * The code contained herein is licensed under the GNU General Public | ||
5 | * License. You may obtain a copy of the GNU General Public License | ||
6 | * Version 2 or later at the following locations: | ||
7 | * | ||
8 | * http://www.opensource.org/licenses/gpl-license.html | ||
9 | * http://www.gnu.org/copyleft/gpl.html | ||
10 | */ | ||
11 | |||
12 | #ifndef __MACH_IOMUX_MX51_H__ | ||
13 | #define __MACH_IOMUX_MX51_H__ | ||
14 | |||
15 | #include <mach/iomux-v3.h> | ||
16 | |||
17 | /* | ||
18 | * various IOMUX alternate output functions (1-7) | ||
19 | */ | ||
20 | typedef enum iomux_config { | ||
21 | IOMUX_CONFIG_ALT0, | ||
22 | IOMUX_CONFIG_ALT1, | ||
23 | IOMUX_CONFIG_ALT2, | ||
24 | IOMUX_CONFIG_ALT3, | ||
25 | IOMUX_CONFIG_ALT4, | ||
26 | IOMUX_CONFIG_ALT5, | ||
27 | IOMUX_CONFIG_ALT6, | ||
28 | IOMUX_CONFIG_ALT7, | ||
29 | IOMUX_CONFIG_GPIO, /* added to help user use GPIO mode */ | ||
30 | IOMUX_CONFIG_SION = 0x1 << 4, /* LOOPBACK:MUX SION bit */ | ||
31 | } iomux_pin_cfg_t; | ||
32 | |||
33 | /* Pad control groupings */ | ||
34 | #define MX51_UART1_PAD_CTRL (PAD_CTL_HYS | PAD_CTL_PKE | PAD_CTL_PUE | \ | ||
35 | PAD_CTL_DSE_HIGH) | ||
36 | #define MX51_UART2_PAD_CTRL (PAD_CTL_PKE | PAD_CTL_PUE | PAD_CTL_DSE_HIGH | \ | ||
37 | PAD_CTL_SRE_FAST) | ||
38 | #define MX51_UART3_PAD_CTRL (PAD_CTL_PKE | PAD_CTL_DSE_HIGH | \ | ||
39 | PAD_CTL_SRE_FAST) | ||
40 | |||
41 | /* | ||
42 | * The naming convention for the pad modes is MX51_PAD_<padname>__<padmode> | ||
43 | * If <padname> or <padmode> refers to a GPIO, it is named | ||
44 | * GPIO_<unit>_<num> see also iomux-v3.h | ||
45 | */ | ||
46 | |||
47 | /* | ||
48 | * FIXME: This was converted using scripts from existing Freescale code to | ||
49 | * this form used upstream. Need to verify the name format. | ||
50 | */ | ||
51 | |||
52 | /* PAD MUX ALT INPSE PATH PADCTRL */ | ||
53 | |||
54 | #define MX51_PAD_GPIO_2_0__EIM_D16 IOMUX_PAD(0x3f0, 0x05c, 1, 0x0, 0, NO_PAD_CTRL) | ||
55 | #define MX51_PAD_GPIO_2_1__EIM_D17 IOMUX_PAD(0x3f4, 0x060, 1, 0x0, 0, NO_PAD_CTRL) | ||
56 | #define MX51_PAD_GPIO_2_2__EIM_D18 IOMUX_PAD(0x3f8, 0x064, 1, 0x0, 0, NO_PAD_CTRL) | ||
57 | #define MX51_PAD_GPIO_2_3__EIM_D19 IOMUX_PAD(0x3fc, 0x068, 1, 0x0, 0, NO_PAD_CTRL) | ||
58 | #define MX51_PAD_GPIO_2_4__EIM_D20 IOMUX_PAD(0x400, 0x06c, 1, 0x0, 0, NO_PAD_CTRL) | ||
59 | #define MX51_PAD_GPIO_2_5__EIM_D21 IOMUX_PAD(0x404, 0x070, 1, 0x0, 0, NO_PAD_CTRL) | ||
60 | #define MX51_PAD_GPIO_2_6__EIM_D22 IOMUX_PAD(0x408, 0x074, 1, 0x0, 0, NO_PAD_CTRL) | ||
61 | #define MX51_PAD_GPIO_2_7__EIM_D23 IOMUX_PAD(0x40c, 0x078, 1, 0x0, 0, NO_PAD_CTRL) | ||
62 | |||
63 | /* Babbage UART3 */ | ||
64 | #define MX51_PAD_EIM_D24__UART3_CTS IOMUX_PAD(0x410, 0x07c, IOMUX_CONFIG_ALT3, 0x0, 0, MX51_UART3_PAD_CTRL) | ||
65 | #define MX51_PAD_EIM_D25__UART3_RXD IOMUX_PAD(0x414, 0x080, IOMUX_CONFIG_ALT3, 0x9f4, 0, MX51_UART3_PAD_CTRL) | ||
66 | #define MX51_PAD_EIM_D26__UART3_TXD IOMUX_PAD(0x418, 0x084, IOMUX_CONFIG_ALT3, 0x0, 0, MX51_UART3_PAD_CTRL) | ||
67 | #define MX51_PAD_EIM_D27__UART3_RTS IOMUX_PAD(0x41c, 0x088, IOMUX_CONFIG_ALT3, 0x9f0, 0, MX51_UART3_PAD_CTRL) | ||
68 | |||
69 | #define MX51_PAD_EIM_D28__EIM_D28 IOMUX_PAD(0x420, 0x08c, 0, 0x0, 0, NO_PAD_CTRL) | ||
70 | #define MX51_PAD_EIM_D29__EIM_D29 IOMUX_PAD(0x424, 0x090, 0, 0x0, 0, NO_PAD_CTRL) | ||
71 | #define MX51_PAD_EIM_D30__EIM_D30 IOMUX_PAD(0x428, 0x094, 0, 0x0, 0, NO_PAD_CTRL) | ||
72 | #define MX51_PAD_EIM_D31__EIM_D31 IOMUX_PAD(0x42c, 0x09c, 0, 0x0, 0, NO_PAD_CTRL) | ||
73 | |||
74 | #define MX51_PAD_GPIO_2_10__EIM_A16 IOMUX_PAD(0x430, 0x09c, 1, 0x0, 0, NO_PAD_CTRL) | ||
75 | #define MX51_PAD_GPIO_2_11__EIM_A17 IOMUX_PAD(0x434, 0x0a0, 1, 0x0, 0, NO_PAD_CTRL) | ||
76 | #define MX51_PAD_GPIO_2_12__EIM_A18 IOMUX_PAD(0x438, 0x0a4, 1, 0x0, 0, NO_PAD_CTRL) | ||
77 | #define MX51_PAD_GPIO_2_13__EIM_A19 IOMUX_PAD(0x43c, 0x0a8, 1, 0x0, 0, NO_PAD_CTRL) | ||
78 | #define MX51_PAD_GPIO_2_14__EIM_A20 IOMUX_PAD(0x440, 0x0ac, 1, 0x0, 0, NO_PAD_CTRL) | ||
79 | #define MX51_PAD_GPIO_2_15__EIM_A21 IOMUX_PAD(0x444, 0x0b0, 1, 0x0, 0, NO_PAD_CTRL) | ||
80 | #define MX51_PAD_GPIO_2_16__EIM_A22 IOMUX_PAD(0x448, 0x0b4, 1, 0x0, 0, NO_PAD_CTRL) | ||
81 | #define MX51_PAD_GPIO_2_17__EIM_A23 IOMUX_PAD(0x44c, 0x0b8, 1, 0x0, 0, NO_PAD_CTRL) | ||
82 | |||
83 | #define MX51_PAD_GPIO_2_18__EIM_A24 IOMUX_PAD(0x450, 0x0bc, 1, 0x0, 0, NO_PAD_CTRL) | ||
84 | #define MX51_PAD_GPIO_2_19__EIM_A25 IOMUX_PAD(0x454, 0x0c0, 1, 0x0, 0, NO_PAD_CTRL) | ||
85 | #define MX51_PAD_GPIO_2_20__EIM_A26 IOMUX_PAD(0x458, 0x0c4, 1, 0x0, 0, NO_PAD_CTRL) | ||
86 | #define MX51_PAD_GPIO_2_21__EIM_A27 IOMUX_PAD(0x45c, 0x0c8, 1, 0x0, 0, NO_PAD_CTRL) | ||
87 | #define MX51_PAD_EIM_EB0__EIM_EB0 IOMUX_PAD(0x460, 0x0cc, 0, 0x0, 0, NO_PAD_CTRL) | ||
88 | #define MX51_PAD_EIM_EB1__EIM_EB1 IOMUX_PAD(0x464, 0x0d0, 0, 0x0, 0, NO_PAD_CTRL) | ||
89 | #define MX51_PAD_GPIO_2_22__EIM_EB2 IOMUX_PAD(0x468, 0x0d4, 1, 0x0, 0, NO_PAD_CTRL) | ||
90 | #define MX51_PAD_GPIO_2_23__EIM_EB3 IOMUX_PAD(0x46c, 0x0d8, 1, 0x0, 0, NO_PAD_CTRL) | ||
91 | |||
92 | #define MX51_PAD_GPIO_2_24__EIM_OE IOMUX_PAD(0x470, 0x0dc, 1, 0x0, 0, NO_PAD_CTRL) | ||
93 | #define MX51_PAD_GPIO_2_25__EIM_CS0 IOMUX_PAD(0x474, 0x0e0, 1, 0x0, 0, NO_PAD_CTRL) | ||
94 | #define MX51_PAD_GPIO_2_26__EIM_CS1 IOMUX_PAD(0x478, 0x0e4, 1, 0x0, 0, NO_PAD_CTRL) | ||
95 | #define MX51_PAD_GPIO_2_27__EIM_CS2 IOMUX_PAD(0x47c, 0x0e8, 1, 0x0, 0, NO_PAD_CTRL) | ||
96 | #define MX51_PAD_GPIO_2_28__EIM_CS3 IOMUX_PAD(0x480, 0x0ec, 1, 0x0, 0, NO_PAD_CTRL) | ||
97 | #define MX51_PAD_GPIO_2_29__EIM_CS4 IOMUX_PAD(0x484, 0x0f0, 1, 0x0, 0, NO_PAD_CTRL) | ||
98 | #define MX51_PAD_GPIO_2_30__EIM_CS5 IOMUX_PAD(0x488, 0x0f4, 1, 0x0, 0, NO_PAD_CTRL) | ||
99 | #define MX51_PAD_GPIO_2_31__EIM_DTACK IOMUX_PAD(0x48c, 0x0f8, 1, 0x0, 0, NO_PAD_CTRL) | ||
100 | |||
101 | #define MX51_PAD_GPIO_3_1__EIM_LBA IOMUX_PAD(0x494, 0xFC, 1, 0x0, 0, NO_PAD_CTRL) | ||
102 | #define MX51_PAD_GPIO_3_2__EIM_CRE IOMUX_PAD(0x4A0, 0x100, 1, 0x0, 0, NO_PAD_CTRL) | ||
103 | #define MX51_PAD_DRAM_CS1__DRAM_CS1 IOMUX_PAD(0x4D0, 0x104, 0, 0x0, 0, NO_PAD_CTRL) | ||
104 | #define MX51_PAD_GPIO_3_3__NANDF_WE_B IOMUX_PAD(0x4E4, 0x108, 3, 0x0, 0, NO_PAD_CTRL) | ||
105 | #define MX51_PAD_GPIO_3_4__NANDF_RE_B IOMUX_PAD(0x4E8, 0x10C, 3, 0x0, 0, NO_PAD_CTRL) | ||
106 | #define MX51_PAD_GPIO_3_5__NANDF_ALE IOMUX_PAD(0x4EC, 0x110, 3, 0x0, 0, NO_PAD_CTRL) | ||
107 | #define MX51_PAD_GPIO_3_6__NANDF_CLE IOMUX_PAD(0x4F0, 0x114, 3, 0x0, 0, NO_PAD_CTRL) | ||
108 | #define MX51_PAD_GPIO_3_7__NANDF_WP_B IOMUX_PAD(0x4F4, 0x118, 3, 0x0, 0, NO_PAD_CTRL) | ||
109 | #define MX51_PAD_GPIO_3_8__NANDF_RB0 IOMUX_PAD(0x4F8, 0x11C, 3, 0x0, 0, NO_PAD_CTRL) | ||
110 | #define MX51_PAD_GPIO_3_9__NANDF_RB1 IOMUX_PAD(0x4FC, 0x120, 3, 0x0, 0, NO_PAD_CTRL) | ||
111 | #define MX51_PAD_GPIO_3_10__NANDF_RB2 IOMUX_PAD(0x500, 0x124, 3, 0x0, 0, NO_PAD_CTRL) | ||
112 | #define MX51_PAD_GPIO_3_11__NANDF_RB3 IOMUX_PAD(0x504, 0x128, 3, 0x0, 0, NO_PAD_CTRL) | ||
113 | #define MX51_PAD_GPIO_3_12__GPIO_NAND IOMUX_PAD(0x514, 0x12C, 3, 0x0, 0, NO_PAD_CTRL) | ||
114 | /* REVISIT: Not sure of these values | ||
115 | |||
116 | #define MX51_PAD_GPIO_1___NANDF_RB4 IOMUX_PAD(, , , 0x0, 0, NO_PAD_CTRL) | ||
117 | #define MX51_PAD_GPIO_3_13__NANDF_RB5 IOMUX_PAD(0x5D8, 0x130, 3, 0x0, 0, NO_PAD_CTRL) | ||
118 | #define MX51_PAD_GPIO_3_15__NANDF_RB7 IOMUX_PAD(0x5E0, 0x138, 3, 0x0, 0, NO_PAD_CTRL) | ||
119 | */ | ||
120 | #define MX51_PAD_GPIO_3_14__NANDF_RB6 IOMUX_PAD(0x5DC, 0x134, 3, 0x0, 0, NO_PAD_CTRL) | ||
121 | #define MX51_PAD_GPIO_3_16__NANDF_CS0 IOMUX_PAD(0x518, 0x130, 3, 0x0, 0, NO_PAD_CTRL) | ||
122 | #define MX51_PAD_GPIO_3_17__NANDF_CS1 IOMUX_PAD(0x51C, 0x134, 3, 0x0, 0, NO_PAD_CTRL) | ||
123 | #define MX51_PAD_GPIO_3_18__NANDF_CS2 IOMUX_PAD(0x520, 0x138, 3, 0x0, 0, NO_PAD_CTRL) | ||
124 | #define MX51_PAD_GPIO_3_19__NANDF_CS3 IOMUX_PAD(0x524, 0x13C, 3, 0x0, 0, NO_PAD_CTRL) | ||
125 | #define MX51_PAD_GPIO_3_20__NANDF_CS4 IOMUX_PAD(0x528, 0x140, 3, 0x0, 0, NO_PAD_CTRL) | ||
126 | #define MX51_PAD_GPIO_3_21__NANDF_CS5 IOMUX_PAD(0x52C, 0x144, 3, 0x0, 0, NO_PAD_CTRL) | ||
127 | #define MX51_PAD_GPIO_3_22__NANDF_CS6 IOMUX_PAD(0x530, 0x148, 3, 0x0, 0, NO_PAD_CTRL) | ||
128 | #define MX51_PAD_GPIO_3_23__NANDF_CS7 IOMUX_PAD(0x534, 0x14C, 3, 0x0, 0, NO_PAD_CTRL) | ||
129 | #define MX51_PAD_GPIO_3_24__NANDF_RDY_INT IOMUX_PAD(0x538, 0x150, 3, 0x0, 0, NO_PAD_CTRL) | ||
130 | #define MX51_PAD_GPIO_3_25__NANDF_D15 IOMUX_PAD(0x53C, 0x154, 3, 0x0, 0, NO_PAD_CTRL) | ||
131 | #define MX51_PAD_GPIO_3_26__NANDF_D14 IOMUX_PAD(0x540, 0x158, 3, 0x0, 0, NO_PAD_CTRL) | ||
132 | #define MX51_PAD_GPIO_3_27__NANDF_D13 IOMUX_PAD(0x544, 0x15C, 3, 0x0, 0, NO_PAD_CTRL) | ||
133 | #define MX51_PAD_GPIO_3_28__NANDF_D12 IOMUX_PAD(0x548, 0x160, 3, 0x0, 0, NO_PAD_CTRL) | ||
134 | #define MX51_PAD_GPIO_3_29__NANDF_D11 IOMUX_PAD(0x54C, 0x164, 3, 0x0, 0, NO_PAD_CTRL) | ||
135 | #define MX51_PAD_GPIO_3_30__NANDF_D10 IOMUX_PAD(0x550, 0x168, 3, 0x0, 0, NO_PAD_CTRL) | ||
136 | #define MX51_PAD_GPIO_3_31__NANDF_D9 IOMUX_PAD(0x554, 0x16C, 3, 0x0, 0, NO_PAD_CTRL) | ||
137 | #define MX51_PAD_GPIO_4_0__NANDF_D8 IOMUX_PAD(0x558, 0x170, 3, 0x0, 0, NO_PAD_CTRL) | ||
138 | #define MX51_PAD_GPIO_4_1__NANDF_D7 IOMUX_PAD(0x55C, 0x174, 3, 0x0, 0, NO_PAD_CTRL) | ||
139 | #define MX51_PAD_GPIO_4_2__NANDF_D6 IOMUX_PAD(0x560, 0x178, 3, 0x0, 0, NO_PAD_CTRL) | ||
140 | #define MX51_PAD_GPIO_4_3__NANDF_D5 IOMUX_PAD(0x564, 0x17C, 3, 0x0, 0, NO_PAD_CTRL) | ||
141 | #define MX51_PAD_GPIO_4_4__NANDF_D4 IOMUX_PAD(0x568, 0x180, 3, 0x0, 0, NO_PAD_CTRL) | ||
142 | #define MX51_PAD_GPIO_4_5__NANDF_D3 IOMUX_PAD(0x56C, 0x184, 3, 0x0, 0, NO_PAD_CTRL) | ||
143 | #define MX51_PAD_GPIO_4_6__NANDF_D2 IOMUX_PAD(0x570, 0x188, 3, 0x0, 0, NO_PAD_CTRL) | ||
144 | #define MX51_PAD_GPIO_4_7__NANDF_D1 IOMUX_PAD(0x574, 0x18C, 3, 0x0, 0, NO_PAD_CTRL) | ||
145 | #define MX51_PAD_GPIO_4_8__NANDF_D0 IOMUX_PAD(0x578, 0x190, 3, 0x0, 0, NO_PAD_CTRL) | ||
146 | #define MX51_PAD_GPIO_3_12__CSI1_D8 IOMUX_PAD(0x57C, 0x194, 3, 0x0, 0, NO_PAD_CTRL) | ||
147 | #define MX51_PAD_GPIO_3_13__CSI1_D9 IOMUX_PAD(0x580, 0x198, 3, 0x0, 0, NO_PAD_CTRL) | ||
148 | #define MX51_PAD_CSI1_D10__CSI1_D10 IOMUX_PAD(0x584, 0x19C, 0, 0x0, 0, NO_PAD_CTRL) | ||
149 | #define MX51_PAD_CSI1_D11__CSI1_D11 IOMUX_PAD(0x588, 0x1A0, 0, 0x0, 0, NO_PAD_CTRL) | ||
150 | #define MX51_PAD_CSI1_D12__CSI1_D12 IOMUX_PAD(0x58C, 0x1A4, 0, 0x0, 0, NO_PAD_CTRL) | ||
151 | #define MX51_PAD_CSI1_D13__CSI1_D13 IOMUX_PAD(0x590, 0x1A8, 0, 0x0, 0, NO_PAD_CTRL) | ||
152 | #define MX51_PAD_CSI1_D14__CSI1_D14 IOMUX_PAD(0x594, 0x1AC, 0, 0x0, 0, NO_PAD_CTRL) | ||
153 | #define MX51_PAD_CSI1_D15__CSI1_D15 IOMUX_PAD(0x598, 0x1B0, 0, 0x0, 0, NO_PAD_CTRL) | ||
154 | #define MX51_PAD_CSI1_D16__CSI1_D16 IOMUX_PAD(0x59C, 0x1B4, 0, 0x0, 0, NO_PAD_CTRL) | ||
155 | #define MX51_PAD_CSI1_D17__CSI1_D17 IOMUX_PAD(0x5A0, 0x1B8, 0, 0x0, 0, NO_PAD_CTRL) | ||
156 | #define MX51_PAD_CSI1_D18__CSI1_D18 IOMUX_PAD(0x5A4, 0x1BC, 0, 0x0, 0, NO_PAD_CTRL) | ||
157 | #define MX51_PAD_CSI1_D19__CSI1_D19 IOMUX_PAD(0x5A8, 0x1C0, 0, 0x0, 0, NO_PAD_CTRL) | ||
158 | #define MX51_PAD_CSI1_VSYNC__CSI1_VSYNC IOMUX_PAD(0x5AC, 0x1C4, 0, 0x0, 0, NO_PAD_CTRL) | ||
159 | #define MX51_PAD_CSI1_HSYNC__CSI1_HSYNC IOMUX_PAD(0x5B0, 0x1C8, 0, 0x0, 0, NO_PAD_CTRL) | ||
160 | #define MX51_PAD_CSI1_PIXCLK__CSI1_PIXCLK IOMUX_PAD(0x5B4, 0x0, 0, 0x0, 0, NO_PAD_CTRL) | ||
161 | #define MX51_PAD_CSI1_MCLK__CSI1_MCLK IOMUX_PAD(0x5B8, 0x0, 0, 0x0, 0, NO_PAD_CTRL) | ||
162 | #define MX51_PAD_CSI1_PKE0__CSI1_PKE0 IOMUX_PAD(0x860, 0x0, 0, 0x0, 0, NO_PAD_CTRL) | ||
163 | #define MX51_PAD_GPIO_4_9__CSI2_D12 IOMUX_PAD(0x5BC, 0x1CC, 3, 0x0, 0, NO_PAD_CTRL) | ||
164 | #define MX51_PAD_GPIO_4_10__CSI2_D13 IOMUX_PAD(0x5C0, 0x1D0, 3, 0x0, 0, NO_PAD_CTRL) | ||
165 | #define MX51_PAD_GPIO_4_11__CSI2_D14 IOMUX_PAD(0x5C4, 0x1D4, 3, 0x0, 0, NO_PAD_CTRL) | ||
166 | #define MX51_PAD_GPIO_4_12__CSI2_D15 IOMUX_PAD(0x5C8, 0x1D8, 3, 0x0, 0, NO_PAD_CTRL) | ||
167 | #define MX51_PAD_GPIO_4_11__CSI2_D16 IOMUX_PAD(0x5CC, 0x1DC, 3, 0x0, 0, NO_PAD_CTRL) | ||
168 | #define MX51_PAD_GPIO_4_12__CSI2_D17 IOMUX_PAD(0x5D0, 0x1E0, 3, 0x0, 0, NO_PAD_CTRL) | ||
169 | #define MX51_PAD_GPIO_4_11__CSI2_D18 IOMUX_PAD(0x5D4, 0x1E4, 3, 0x0, 0, NO_PAD_CTRL) | ||
170 | #define MX51_PAD_GPIO_4_12__CSI2_D19 IOMUX_PAD(0x5D8, 0x1E8, 3, 0x0, 0, NO_PAD_CTRL) | ||
171 | #define MX51_PAD_GPIO_4_13__CSI2_VSYNC IOMUX_PAD(0x5DC, 0x1EC, 3, 0x0, 0, NO_PAD_CTRL) | ||
172 | #define MX51_PAD_GPIO_4_14__CSI2_HSYNC IOMUX_PAD(0x5E0, 0x1F0, 3, 0x0, 0, NO_PAD_CTRL) | ||
173 | #define MX51_PAD_GPIO_4_15__CSI2_PIXCLK IOMUX_PAD(0x5E4, 0x1F4, 3, 0x0, 0, NO_PAD_CTRL) | ||
174 | #define MX51_PAD_CSI2_PKE0__CSI2_PKE0 IOMUX_PAD(0x81C, 0x0, 0, 0x0, 0, NO_PAD_CTRL) | ||
175 | #define MX51_PAD_GPIO_4_16__I2C1_CLK IOMUX_PAD(0x5E8, 0x1F8, 3, 0x0, 0, NO_PAD_CTRL) | ||
176 | #define MX51_PAD_GPIO_4_17__I2C1_DAT IOMUX_PAD(0x5EC, 0x1FC, 3, 0x0, 0, NO_PAD_CTRL) | ||
177 | #define MX51_PAD_GPIO_4_18__AUD3_BB_TXD IOMUX_PAD(0x5F0, 0x200, 3, 0x0, 0, NO_PAD_CTRL) | ||
178 | #define MX51_PAD_GPIO_4_19__AUD3_BB_RXD IOMUX_PAD(0x5F4, 0x204, 3, 0x0, 0, NO_PAD_CTRL) | ||
179 | #define MX51_PAD_GPIO_4_20__AUD3_BB_CK IOMUX_PAD(0x5F8, 0x208, 3, 0x0, 0, NO_PAD_CTRL) | ||
180 | #define MX51_PAD_GPIO_4_21__AUD3_BB_FS IOMUX_PAD(0x5FC, 0x20C, 3, 0x0, 0, NO_PAD_CTRL) | ||
181 | #define MX51_PAD_GPIO_4_22__CSPI1_MOSI IOMUX_PAD(0x600, 0x210, 3, 0x0, 0, NO_PAD_CTRL) | ||
182 | #define MX51_PAD_GPIO_4_23__CSPI1_MISO IOMUX_PAD(0x604, 0x214, 3, 0x0, 0, NO_PAD_CTRL) | ||
183 | #define MX51_PAD_GPIO_4_24__CSPI1_SS0 IOMUX_PAD(0x608, 0x218, 3, 0x0, 0, NO_PAD_CTRL) | ||
184 | #define MX51_PAD_GPIO_4_25__CSPI1_SS1 IOMUX_PAD(0x60C, 0x21C, 3, 0x0, 0, NO_PAD_CTRL) | ||
185 | #define MX51_PAD_GPIO_4_26__CSPI1_RDY IOMUX_PAD(0x610, 0x220, 3, 0x0, 0, NO_PAD_CTRL) | ||
186 | #define MX51_PAD_GPIO_4_27__CSPI1_SCLK IOMUX_PAD(0x614, 0x224, 3, 0x0, 0, NO_PAD_CTRL) | ||
187 | |||
188 | /* Babbage UART1 */ | ||
189 | #define MX51_PAD_UART1_RXD__UART1_RXD IOMUX_PAD(0x618, 0x228, IOMUX_CONFIG_ALT0, 0x9e4, 0, MX51_UART1_PAD_CTRL | PAD_CTL_SRE_FAST) | ||
190 | #define MX51_PAD_UART1_TXD__UART1_TXD IOMUX_PAD(0x61C, 0x22C, IOMUX_CONFIG_ALT0, 0x0, 0, MX51_UART1_PAD_CTRL | PAD_CTL_SRE_FAST) | ||
191 | #define MX51_PAD_UART1_RTS__UART1_RTS IOMUX_PAD(0x620, 0x230, IOMUX_CONFIG_ALT0, 0x9e0, 0, MX51_UART1_PAD_CTRL) | ||
192 | #define MX51_PAD_UART1_CTS__UART1_CTS IOMUX_PAD(0x624, 0x234, IOMUX_CONFIG_ALT0, 0x0, 0, MX51_UART1_PAD_CTRL) | ||
193 | |||
194 | /* Babbage UART2 */ | ||
195 | #define MX51_PAD_UART2_RXD__UART2_RXD IOMUX_PAD(0x628, 0x238, IOMUX_CONFIG_ALT0, 0x9ec, 2, MX51_UART2_PAD_CTRL) | ||
196 | #define MX51_PAD_UART2_TXD__UART2_TXD IOMUX_PAD(0x62C, 0x23C, IOMUX_CONFIG_ALT0, 0x0, 0, MX51_UART2_PAD_CTRL) | ||
197 | |||
198 | #define MX51_PAD_GPIO_1_22__UART3_RXD IOMUX_PAD(0x630, 0x240, 3, 0x0, 0, NO_PAD_CTRL) | ||
199 | #define MX51_PAD_GPIO_1_23__UART3_TXD IOMUX_PAD(0x634, 0x244, 3, 0x0, 0, NO_PAD_CTRL) | ||
200 | #define MX51_PAD_GPIO_1_24__OWIRE_LINE IOMUX_PAD(0x638, 0x248, 3, 0x0, 0, NO_PAD_CTRL) | ||
201 | #define MX51_PAD_KEY_ROW0__KEY_ROW0 IOMUX_PAD(0x63C, 0x24C, 0, 0x0, 0, NO_PAD_CTRL) | ||
202 | #define MX51_PAD_KEY_ROW1__KEY_ROW1 IOMUX_PAD(0x640, 0x250, 0, 0x0, 0, NO_PAD_CTRL) | ||
203 | #define MX51_PAD_KEY_ROW2__KEY_ROW2 IOMUX_PAD(0x644, 0x254, 0, 0x0, 0, NO_PAD_CTRL) | ||
204 | #define MX51_PAD_KEY_ROW3__KEY_ROW3 IOMUX_PAD(0x648, 0x258, 0, 0x0, 0, NO_PAD_CTRL) | ||
205 | #define MX51_PAD_KEY_COL0__KEY_COL0 IOMUX_PAD(0x64C, 0x25C, 0, 0x0, 0, NO_PAD_CTRL) | ||
206 | #define MX51_PAD_KEY_COL1__KEY_COL1 IOMUX_PAD(0x650, 0x260, 0, 0x0, 0, NO_PAD_CTRL) | ||
207 | #define MX51_PAD_KEY_COL2__KEY_COL2 IOMUX_PAD(0x654, 0x264, 0, 0x0, 0, NO_PAD_CTRL) | ||
208 | #define MX51_PAD_KEY_COL3__KEY_COL3 IOMUX_PAD(0x658, 0x268, 0, 0x0, 0, NO_PAD_CTRL) | ||
209 | #define MX51_PAD_KEY_COL4__KEY_COL4 IOMUX_PAD(0x65C, 0x26C, 0, 0x0, 0, NO_PAD_CTRL) | ||
210 | #define MX51_PAD_KEY_COL5__KEY_COL5 IOMUX_PAD(0x660, 0x270, 0, 0x0, 0, NO_PAD_CTRL) | ||
211 | #define MX51_PAD_GPIO_1_25__USBH1_CLK IOMUX_PAD(0x678, 0x278, 2, 0x0, 0, NO_PAD_CTRL) | ||
212 | #define MX51_PAD_GPIO_1_26__USBH1_DIR IOMUX_PAD(0x67C, 0x27C, 2, 0x0, 0, NO_PAD_CTRL) | ||
213 | #define MX51_PAD_GPIO_1_27__USBH1_STP IOMUX_PAD(0x680, 0x280, 2, 0x0, 0, NO_PAD_CTRL) | ||
214 | #define MX51_PAD_GPIO_1_28__USBH1_NXT IOMUX_PAD(0x684, 0x284, 2, 0x0, 0, NO_PAD_CTRL) | ||
215 | #define MX51_PAD_GPIO_1_11__USBH1_DATA0 IOMUX_PAD(0x688, 0x288, 2, 0x0, 0, NO_PAD_CTRL) | ||
216 | #define MX51_PAD_GPIO_1_12__USBH1_DATA1 IOMUX_PAD(0x68C, 0x28C, 2, 0x0, 0, NO_PAD_CTRL) | ||
217 | #define MX51_PAD_GPIO_1_13__USBH1_DATA2 IOMUX_PAD(0x690, 0x290, 2, 0x0, 0, NO_PAD_CTRL) | ||
218 | #define MX51_PAD_GPIO_1_14__USBH1_DATA3 IOMUX_PAD(0x694, 0x294, 2, 0x0, 0, NO_PAD_CTRL) | ||
219 | #define MX51_PAD_GPIO_1_15__USBH1_DATA4 IOMUX_PAD(0x698, 0x298, 2, 0x0, 0, NO_PAD_CTRL) | ||
220 | #define MX51_PAD_GPIO_1_16__USBH1_DATA5 IOMUX_PAD(0x69C, 0x29C, 2, 0x0, 0, NO_PAD_CTRL) | ||
221 | #define MX51_PAD_GPIO_1_17__USBH1_DATA6 IOMUX_PAD(0x6A0, 0x2A0, 2, 0x0, 0, NO_PAD_CTRL) | ||
222 | #define MX51_PAD_GPIO_1_18__USBH1_DATA7 IOMUX_PAD(0x6A4, 0x2A4, 2, 0x0, 0, NO_PAD_CTRL) | ||
223 | #define MX51_PAD_GPIO_3_0__DI1_PIN11 IOMUX_PAD(0x6A8, 0x2A8, 4, 0x0, 0, NO_PAD_CTRL) | ||
224 | #define MX51_PAD_GPIO_3_1__DI1_PIN12 IOMUX_PAD(0x6AC, 0x2AC, 4, 0x0, 0, NO_PAD_CTRL) | ||
225 | #define MX51_PAD_GPIO_3_2__DI1_PIN13 IOMUX_PAD(0x6B0, 0x2B0, 4, 0x0, 0, NO_PAD_CTRL) | ||
226 | #define MX51_PAD_GPIO_3_3__DI1_D0_CS IOMUX_PAD(0x6B4, 0x2B4, 4, 0x0, 0, NO_PAD_CTRL) | ||
227 | #define MX51_PAD_GPIO_3_4__DI1_D1_CS IOMUX_PAD(0x6B8, 0x2B8, 4, 0x0, 0, NO_PAD_CTRL) | ||
228 | #define MX51_PAD_GPIO_3_5__DISPB2_SER_DIN IOMUX_PAD(0x6BC, 0x2BC, 4, 0x0, 0, NO_PAD_CTRL) | ||
229 | #define MX51_PAD_GPIO_3_6__DISPB2_SER_DIO IOMUX_PAD(0x6C0, 0x2C0, 4, 0x0, 0, NO_PAD_CTRL) | ||
230 | #define MX51_PAD_GPIO_3_7__DISPB2_SER_CLK IOMUX_PAD(0x6C4, 0x2C4, 4, 0x0, 0, NO_PAD_CTRL) | ||
231 | #define MX51_PAD_GPIO_3_8__DISPB2_SER_RS IOMUX_PAD(0x6C8, 0x2C8, 4, 0x0, 0, NO_PAD_CTRL) | ||
232 | #define MX51_PAD_DISP1_DAT0__DISP1_DAT0 IOMUX_PAD(0x6CC, 0x2CC, 0, 0x0, 0, NO_PAD_CTRL) | ||
233 | #define MX51_PAD_DISP1_DAT1__DISP1_DAT1 IOMUX_PAD(0x6D0, 0x2D0, 0, 0x0, 0, NO_PAD_CTRL) | ||
234 | #define MX51_PAD_DISP1_DAT2__DISP1_DAT2 IOMUX_PAD(0x6D4, 0x2D4, 0, 0x0, 0, NO_PAD_CTRL) | ||
235 | #define MX51_PAD_DISP1_DAT3__DISP1_DAT3 IOMUX_PAD(0x6D8, 0x2D8, 0, 0x0, 0, NO_PAD_CTRL) | ||
236 | #define MX51_PAD_DISP1_DAT4__DISP1_DAT4 IOMUX_PAD(0x6DC, 0x2DC, 0, 0x0, 0, NO_PAD_CTRL) | ||
237 | #define MX51_PAD_DISP1_DAT5__DISP1_DAT5 IOMUX_PAD(0x6E0, 0x2E0, 0, 0x0, 0, NO_PAD_CTRL) | ||
238 | #define MX51_PAD_DISP1_DAT6__DISP1_DAT6 IOMUX_PAD(0x6E4, 0x2E4, 0, 0x0, 0, NO_PAD_CTRL) | ||
239 | #define MX51_PAD_DISP1_DAT7__DISP1_DAT7 IOMUX_PAD(0x6E8, 0x2E8, 0, 0x0, 0, NO_PAD_CTRL) | ||
240 | #define MX51_PAD_DISP1_DAT8__DISP1_DAT8 IOMUX_PAD(0x6EC, 0x2EC, 0, 0x0, 0, NO_PAD_CTRL) | ||
241 | #define MX51_PAD_DISP1_DAT9__DISP1_DAT9 IOMUX_PAD(0x6F0, 0x2F0, 0, 0x0, 0, NO_PAD_CTRL) | ||
242 | #define MX51_PAD_DISP1_DAT10__DISP1_DAT10 IOMUX_PAD(0x6F4, 0x2F4, 0, 0x0, 0, NO_PAD_CTRL) | ||
243 | #define MX51_PAD_DISP1_DAT11__DISP1_DAT11 IOMUX_PAD(0x6F8, 0x2F8, 0, 0x0, 0, NO_PAD_CTRL) | ||
244 | #define MX51_PAD_DISP1_DAT12__DISP1_DAT12 IOMUX_PAD(0x6FC, 0x2FC, 0, 0x0, 0, NO_PAD_CTRL) | ||
245 | #define MX51_PAD_DISP1_DAT13__DISP1_DAT13 IOMUX_PAD(0x700, 0x300, 0, 0x0, 0, NO_PAD_CTRL) | ||
246 | #define MX51_PAD_DISP1_DAT14__DISP1_DAT14 IOMUX_PAD(0x704, 0x304, 0, 0x0, 0, NO_PAD_CTRL) | ||
247 | #define MX51_PAD_DISP1_DAT15__DISP1_DAT15 IOMUX_PAD(0x708, 0x308, 0, 0x0, 0, NO_PAD_CTRL) | ||
248 | #define MX51_PAD_DISP1_DAT16__DISP1_DAT16 IOMUX_PAD(0x70C, 0x30C, 0, 0x0, 0, NO_PAD_CTRL) | ||
249 | #define MX51_PAD_DISP1_DAT17__DISP1_DAT17 IOMUX_PAD(0x710, 0x310, 0, 0x0, 0, NO_PAD_CTRL) | ||
250 | #define MX51_PAD_DISP1_DAT18__DISP1_DAT18 IOMUX_PAD(0x714, 0x314, 0, 0x0, 0, NO_PAD_CTRL) | ||
251 | #define MX51_PAD_DISP1_DAT19__DISP1_DAT19 IOMUX_PAD(0x718, 0x318, 0, 0x0, 0, NO_PAD_CTRL) | ||
252 | #define MX51_PAD_DISP1_DAT20__DISP1_DAT20 IOMUX_PAD(0x71C, 0x31C, 0, 0x0, 0, NO_PAD_CTRL) | ||
253 | #define MX51_PAD_DISP1_DAT21__DISP1_DAT21 IOMUX_PAD(0x720, 0x320, 0, 0x0, 0, NO_PAD_CTRL) | ||
254 | #define MX51_PAD_DISP1_DAT22__DISP1_DAT22 IOMUX_PAD(0x724, 0x324, 0, 0x0, 0, NO_PAD_CTRL) | ||
255 | #define MX51_PAD_DISP1_DAT23__DISP1_DAT23 IOMUX_PAD(0x728, 0x328, 0, 0x0, 0, NO_PAD_CTRL) | ||
256 | #define MX51_PAD_DI1_PIN3__DI1_PIN3 IOMUX_PAD(0x72C, 0x32C, 0, 0x0, 0, NO_PAD_CTRL) | ||
257 | #define MX51_PAD_DI1_PIN2__DI1_PIN2 IOMUX_PAD(0x734, 0x330, 0, 0x0, 0, NO_PAD_CTRL) | ||
258 | #define MX51_PAD_DI_GP1__DI_GP1 IOMUX_PAD(0x73C, 0x334, 0, 0x0, 0, NO_PAD_CTRL) | ||
259 | #define MX51_PAD_DI_GP2__DI_GP2 IOMUX_PAD(0x740, 0x338, 0, 0x0, 0, NO_PAD_CTRL) | ||
260 | #define MX51_PAD_DI_GP3__DI_GP3 IOMUX_PAD(0x744, 0x33C, 0, 0x0, 0, NO_PAD_CTRL) | ||
261 | #define MX51_PAD_DI2_PIN4__DI2_PIN4 IOMUX_PAD(0x748, 0x340, 0, 0x0, 0, NO_PAD_CTRL) | ||
262 | #define MX51_PAD_DI2_PIN2__DI2_PIN2 IOMUX_PAD(0x74C, 0x344, 0, 0x0, 0, NO_PAD_CTRL) | ||
263 | #define MX51_PAD_DI2_PIN3__DI2_PIN3 IOMUX_PAD(0x750, 0x348, 0, 0x0, 0, NO_PAD_CTRL) | ||
264 | #define MX51_PAD_DI2_DISP_CLK__DI2_DISP_CLK IOMUX_PAD(0x754, 0x34C, 0, 0x0, 0, NO_PAD_CTRL) | ||
265 | #define MX51_PAD_DI_GP4__DI_GP4 IOMUX_PAD(0x758, 0x350, 0, 0x0, 0, NO_PAD_CTRL) | ||
266 | #define MX51_PAD_DISP2_DAT0__DISP2_DAT0 IOMUX_PAD(0x75C, 0x354, 0, 0x0, 0, NO_PAD_CTRL) | ||
267 | #define MX51_PAD_DISP2_DAT1__DISP2_DAT1 IOMUX_PAD(0x760, 0x358, 0, 0x0, 0, NO_PAD_CTRL) | ||
268 | #define MX51_PAD_DISP2_DAT2__DISP2_DAT2 IOMUX_PAD(0x764, 0x35C, 0, 0x0, 0, NO_PAD_CTRL) | ||
269 | #define MX51_PAD_DISP2_DAT3__DISP2_DAT3 IOMUX_PAD(0x768, 0x360, 0, 0x0, 0, NO_PAD_CTRL) | ||
270 | #define MX51_PAD_DISP2_DAT4__DISP2_DAT4 IOMUX_PAD(0x76C, 0x364, 0, 0x0, 0, NO_PAD_CTRL) | ||
271 | #define MX51_PAD_DISP2_DAT5__DISP2_DAT5 IOMUX_PAD(0x770, 0x368, 0, 0x0, 0, NO_PAD_CTRL) | ||
272 | #define MX51_PAD_GPIO_1_19__DISP2_DAT6 IOMUX_PAD(0x774, 0x36C, 5, 0x0, 0, NO_PAD_CTRL) | ||
273 | #define MX51_PAD_GPIO_1_29__DISP2_DAT7 IOMUX_PAD(0x778, 0x370, 5, 0x0, 0, NO_PAD_CTRL) | ||
274 | #define MX51_PAD_GPIO_1_30__DISP2_DAT8 IOMUX_PAD(0x77C, 0x374, 5, 0x0, 0, NO_PAD_CTRL) | ||
275 | #define MX51_PAD_GPIO_1_31__DISP2_DAT9 IOMUX_PAD(0x780, 0x378, 5, 0x0, 0, NO_PAD_CTRL) | ||
276 | #define MX51_PAD_DISP2_DAT10__DISP2_DAT10 IOMUX_PAD(0x784, 0x37C, 0, 0x0, 0, NO_PAD_CTRL) | ||
277 | #define MX51_PAD_DISP2_DAT11__DISP2_DAT11 IOMUX_PAD(0x788, 0x380, 0, 0x0, 0, NO_PAD_CTRL) | ||
278 | #define MX51_PAD_DISP2_DAT12__DISP2_DAT12 IOMUX_PAD(0x78C, 0x384, 0, 0x0, 0, NO_PAD_CTRL) | ||
279 | #define MX51_PAD_DISP2_DAT13__DISP2_DAT13 IOMUX_PAD(0x790, 0x388, 0, 0x0, 0, NO_PAD_CTRL) | ||
280 | #define MX51_PAD_DISP2_DAT14__DISP2_DAT14 IOMUX_PAD(0x794, 0x38C, 0, 0x0, 0, NO_PAD_CTRL) | ||
281 | #define MX51_PAD_DISP2_DAT15__DISP2_DAT15 IOMUX_PAD(0x798, 0x390, 0, 0x0, 0, NO_PAD_CTRL) | ||
282 | #define MX51_PAD_SD1_CMD__SD1_CMD IOMUX_PAD(0x79C, 0x394, 0, 0x0, 0, NO_PAD_CTRL) | ||
283 | #define MX51_PAD_SD1_CLK__SD1_CLK IOMUX_PAD(0x7A0, 0x398, 0, 0x0, 0, NO_PAD_CTRL) | ||
284 | #define MX51_PAD_SD1_DATA0__SD1_DATA0 IOMUX_PAD(0x7A4, 0x39C, 0, 0x0, 0, NO_PAD_CTRL) | ||
285 | #define MX51_PAD_SD1_DATA1__SD1_DATA1 IOMUX_PAD(0x7A8, 0x3A0, 0, 0x0, 0, NO_PAD_CTRL) | ||
286 | #define MX51_PAD_SD1_DATA2__SD1_DATA2 IOMUX_PAD(0x7AC, 0x3A4, 0, 0x0, 0, NO_PAD_CTRL) | ||
287 | #define MX51_PAD_SD1_DATA3__SD1_DATA3 IOMUX_PAD(0x7B0, 0x3A8, 0, 0x0, 0, NO_PAD_CTRL) | ||
288 | #define MX51_PAD_GPIO_1_0__GPIO1_0 IOMUX_PAD(0x7B4, 0x3AC, 1, 0x0, 0, NO_PAD_CTRL) | ||
289 | #define MX51_PAD_GPIO_1_1__GPIO1_1 IOMUX_PAD(0x7B8, 0x3B0, 1, 0x0, 0, NO_PAD_CTRL) | ||
290 | #define MX51_PAD_SD2_CMD__SD2_CMD IOMUX_PAD(0x7BC, 0x3B4, 0, 0x0, 0, NO_PAD_CTRL) | ||
291 | #define MX51_PAD_SD2_CLK__SD2_CLK IOMUX_PAD(0x7C0, 0x3B8, 0, 0x0, 0, NO_PAD_CTRL) | ||
292 | #define MX51_PAD_SD2_DATA0__SD2_DATA0 IOMUX_PAD(0x7C4, 0x3BC, 0, 0x0, 0, NO_PAD_CTRL) | ||
293 | #define MX51_PAD_SD2_DATA1__SD2_DATA1 IOMUX_PAD(0x7C8, 0x3C0, 0, 0x0, 0, NO_PAD_CTRL) | ||
294 | #define MX51_PAD_SD2_DATA2__SD2_DATA2 IOMUX_PAD(0x7CC, 0x3C4, 0, 0x0, 0, NO_PAD_CTRL) | ||
295 | #define MX51_PAD_SD2_DATA3__SD2_DATA3 IOMUX_PAD(0x7D0, 0x3C8, 0, 0x0, 0, NO_PAD_CTRL) | ||
296 | #define MX51_PAD_GPIO_1_2__GPIO1_2 IOMUX_PAD(0x7D4, 0x3CC, 0, 0x0, 0, NO_PAD_CTRL) | ||
297 | #define MX51_PAD_GPIO_1_3__GPIO1_3 IOMUX_PAD(0x7D8, 0x3D0, 0, 0x0, 0, NO_PAD_CTRL) | ||
298 | #define MX51_PAD_PMIC_INT_REQ__PMIC_INT_REQ IOMUX_PAD(0x7FC, 0x3D4, 0, 0x0, 0, NO_PAD_CTRL) | ||
299 | #define MX51_PAD_GPIO_1_4__GPIO1_4 IOMUX_PAD(0x804, 0x3D8, 0, 0x0, 0, NO_PAD_CTRL) | ||
300 | #define MX51_PAD_GPIO_1_5__GPIO1_5 IOMUX_PAD(0x808, 0x3DC, 0, 0x0, 0, NO_PAD_CTRL) | ||
301 | #define MX51_PAD_GPIO_1_6__GPIO1_6 IOMUX_PAD(0x80C, 0x3E0, 0, 0x0, 0, NO_PAD_CTRL) | ||
302 | #define MX51_PAD_GPIO_1_7__GPIO1_7 IOMUX_PAD(0x810, 0x3E4, 0, 0x0, 0, NO_PAD_CTRL) | ||
303 | #define MX51_PAD_GPIO_1_8__GPIO1_8 IOMUX_PAD(0x814, 0x3E8, 0, 0x0, 1, \ | ||
304 | (PAD_CTL_SRE_SLOW | PAD_CTL_DSE_MED | PAD_CTL_PUS_100K_UP | PAD_CTL_HYS)) | ||
305 | #define MX51_PAD_GPIO_1_9__GPIO1_9 IOMUX_PAD(0x818, 0x3EC, 0, 0x0, 0, NO_PAD_CTRL) | ||
306 | |||
307 | /* EIM */ | ||
308 | #define MX51_PAD_EIM_DA0__EIM_DA0 IOMUX_PAD(0x7a8, 0x01c, 0, 0x0, 0, NO_PAD_CTRL) | ||
309 | #define MX51_PAD_EIM_DA1__EIM_DA1 IOMUX_PAD(0x7a8, 0x020, 0, 0x0, 0, NO_PAD_CTRL) | ||
310 | #define MX51_PAD_EIM_DA2__EIM_DA2 IOMUX_PAD(0x7a8, 0x024, 0, 0x0, 0, NO_PAD_CTRL) | ||
311 | #define MX51_PAD_EIM_DA3__EIM_DA3 IOMUX_PAD(0x7a8, 0x028, 0, 0x0, 0, NO_PAD_CTRL) | ||
312 | #define MX51_PAD_EIM_DA4__EIM_DA4 IOMUX_PAD(0x7ac, 0x02c, 0, 0x0, 0, NO_PAD_CTRL) | ||
313 | #define MX51_PAD_EIM_DA5__EIM_DA5 IOMUX_PAD(0x7ac, 0x030, 0, 0x0, 0, NO_PAD_CTRL) | ||
314 | #define MX51_PAD_EIM_DA6__EIM_DA6 IOMUX_PAD(0x7ac, 0x034, 0, 0x0, 0, NO_PAD_CTRL) | ||
315 | #define MX51_PAD_EIM_DA7__EIM_DA7 IOMUX_PAD(0x7ac, 0x038, 0, 0x0, 0, NO_PAD_CTRL) | ||
316 | |||
317 | #define MX51_PAD_EIM_DA8__EIM_DA8 IOMUX_PAD(0x7b0, 0x03c, 0, 0x0, 0, NO_PAD_CTRL) | ||
318 | #define MX51_PAD_EIM_DA9__EIM_DA9 IOMUX_PAD(0x7b0, 0x040, 0, 0x0, 0, NO_PAD_CTRL) | ||
319 | #define MX51_PAD_EIM_DA10__EIM_DA10 IOMUX_PAD(0x7b0, 0x044, 0, 0x0, 0, NO_PAD_CTRL) | ||
320 | #define MX51_PAD_EIM_DA11__EIM_DA11 IOMUX_PAD(0x7b0, 0x048, 0, 0x0, 0, NO_PAD_CTRL) | ||
321 | #define MX51_PAD_EIM_DA12__EIM_DA12 IOMUX_PAD(0x7bc, 0x04c, 0, 0x0, 0, NO_PAD_CTRL) | ||
322 | #define MX51_PAD_EIM_DA13__EIM_DA13 IOMUX_PAD(0x7bc, 0x050, 0, 0x0, 0, NO_PAD_CTRL) | ||
323 | #define MX51_PAD_EIM_DA14__EIM_DA14 IOMUX_PAD(0x7bc, 0x054, 0, 0x0, 0, NO_PAD_CTRL) | ||
324 | #define MX51_PAD_EIM_DA15__EIM_DA15 IOMUX_PAD(0x7bc, 0x058, 0, 0x0, 0, NO_PAD_CTRL) | ||
325 | |||
326 | #endif /* __MACH_IOMUX_MX51_H__ */ | ||
diff --git a/arch/arm/plat-mxc/include/mach/iomux-v1.h b/arch/arm/plat-mxc/include/mach/iomux-v1.h new file mode 100644 index 00000000000..884f5753f27 --- /dev/null +++ b/arch/arm/plat-mxc/include/mach/iomux-v1.h | |||
@@ -0,0 +1,103 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2008 by Sascha Hauer <kernel@pengutronix.de> | ||
3 | * Copyright (C) 2009 by Holger Schurig <hs4233@mail.mn-solutions.de> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or | ||
6 | * modify it under the terms of the GNU General Public License | ||
7 | * as published by the Free Software Foundation; either version 2 | ||
8 | * of the License, or (at your option) any later version. | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | ||
17 | * MA 02110-1301, USA. | ||
18 | */ | ||
19 | #ifndef __MACH_IOMUX_V1_H__ | ||
20 | #define __MACH_IOMUX_V1_H__ | ||
21 | |||
22 | /* | ||
23 | * GPIO Module and I/O Multiplexer | ||
24 | * x = 0..3 for reg_A, reg_B, reg_C, reg_D | ||
25 | */ | ||
26 | #define MXC_DDIR(x) (0x00 + ((x) << 8)) | ||
27 | #define MXC_OCR1(x) (0x04 + ((x) << 8)) | ||
28 | #define MXC_OCR2(x) (0x08 + ((x) << 8)) | ||
29 | #define MXC_ICONFA1(x) (0x0c + ((x) << 8)) | ||
30 | #define MXC_ICONFA2(x) (0x10 + ((x) << 8)) | ||
31 | #define MXC_ICONFB1(x) (0x14 + ((x) << 8)) | ||
32 | #define MXC_ICONFB2(x) (0x18 + ((x) << 8)) | ||
33 | #define MXC_DR(x) (0x1c + ((x) << 8)) | ||
34 | #define MXC_GIUS(x) (0x20 + ((x) << 8)) | ||
35 | #define MXC_SSR(x) (0x24 + ((x) << 8)) | ||
36 | #define MXC_ICR1(x) (0x28 + ((x) << 8)) | ||
37 | #define MXC_ICR2(x) (0x2c + ((x) << 8)) | ||
38 | #define MXC_IMR(x) (0x30 + ((x) << 8)) | ||
39 | #define MXC_ISR(x) (0x34 + ((x) << 8)) | ||
40 | #define MXC_GPR(x) (0x38 + ((x) << 8)) | ||
41 | #define MXC_SWR(x) (0x3c + ((x) << 8)) | ||
42 | #define MXC_PUEN(x) (0x40 + ((x) << 8)) | ||
43 | |||
44 | #define MX1_NUM_GPIO_PORT 4 | ||
45 | #define MX21_NUM_GPIO_PORT 6 | ||
46 | #define MX27_NUM_GPIO_PORT 6 | ||
47 | |||
48 | #define GPIO_PIN_MASK 0x1f | ||
49 | |||
50 | #define GPIO_PORT_SHIFT 5 | ||
51 | #define GPIO_PORT_MASK (0x7 << GPIO_PORT_SHIFT) | ||
52 | |||
53 | #define GPIO_PORTA (0 << GPIO_PORT_SHIFT) | ||
54 | #define GPIO_PORTB (1 << GPIO_PORT_SHIFT) | ||
55 | #define GPIO_PORTC (2 << GPIO_PORT_SHIFT) | ||
56 | #define GPIO_PORTD (3 << GPIO_PORT_SHIFT) | ||
57 | #define GPIO_PORTE (4 << GPIO_PORT_SHIFT) | ||
58 | #define GPIO_PORTF (5 << GPIO_PORT_SHIFT) | ||
59 | |||
60 | #define GPIO_OUT (1 << 8) | ||
61 | #define GPIO_IN (0 << 8) | ||
62 | #define GPIO_PUEN (1 << 9) | ||
63 | |||
64 | #define GPIO_PF (1 << 10) | ||
65 | #define GPIO_AF (1 << 11) | ||
66 | |||
67 | #define GPIO_OCR_SHIFT 12 | ||
68 | #define GPIO_OCR_MASK (3 << GPIO_OCR_SHIFT) | ||
69 | #define GPIO_AIN (0 << GPIO_OCR_SHIFT) | ||
70 | #define GPIO_BIN (1 << GPIO_OCR_SHIFT) | ||
71 | #define GPIO_CIN (2 << GPIO_OCR_SHIFT) | ||
72 | #define GPIO_GPIO (3 << GPIO_OCR_SHIFT) | ||
73 | |||
74 | #define GPIO_AOUT_SHIFT 14 | ||
75 | #define GPIO_AOUT_MASK (3 << GPIO_AOUT_SHIFT) | ||
76 | #define GPIO_AOUT (0 << GPIO_AOUT_SHIFT) | ||
77 | #define GPIO_AOUT_ISR (1 << GPIO_AOUT_SHIFT) | ||
78 | #define GPIO_AOUT_0 (2 << GPIO_AOUT_SHIFT) | ||
79 | #define GPIO_AOUT_1 (3 << GPIO_AOUT_SHIFT) | ||
80 | |||
81 | #define GPIO_BOUT_SHIFT 16 | ||
82 | #define GPIO_BOUT_MASK (3 << GPIO_BOUT_SHIFT) | ||
83 | #define GPIO_BOUT (0 << GPIO_BOUT_SHIFT) | ||
84 | #define GPIO_BOUT_ISR (1 << GPIO_BOUT_SHIFT) | ||
85 | #define GPIO_BOUT_0 (2 << GPIO_BOUT_SHIFT) | ||
86 | #define GPIO_BOUT_1 (3 << GPIO_BOUT_SHIFT) | ||
87 | |||
88 | /* decode irq number to use with IMR(x), ISR(x) and friends */ | ||
89 | #define IRQ_TO_REG(irq) ((irq - MXC_INTERNAL_IRQS) >> 5) | ||
90 | |||
91 | #define IRQ_GPIOA(x) (MXC_GPIO_IRQ_START + x) | ||
92 | #define IRQ_GPIOB(x) (IRQ_GPIOA(32) + x) | ||
93 | #define IRQ_GPIOC(x) (IRQ_GPIOB(32) + x) | ||
94 | #define IRQ_GPIOD(x) (IRQ_GPIOC(32) + x) | ||
95 | #define IRQ_GPIOE(x) (IRQ_GPIOD(32) + x) | ||
96 | #define IRQ_GPIOF(x) (IRQ_GPIOE(32) + x) | ||
97 | |||
98 | extern int mxc_gpio_mode(int gpio_mode); | ||
99 | extern int mxc_gpio_setup_multiple_pins(const int *pin_list, unsigned count, | ||
100 | const char *label); | ||
101 | extern void mxc_gpio_release_multiple_pins(const int *pin_list, int count); | ||
102 | |||
103 | #endif /* __MACH_IOMUX_V1_H__ */ | ||
diff --git a/arch/arm/plat-mxc/include/mach/iomux-v3.h b/arch/arm/plat-mxc/include/mach/iomux-v3.h index 1deda018489..f2f73d31d5b 100644 --- a/arch/arm/plat-mxc/include/mach/iomux-v3.h +++ b/arch/arm/plat-mxc/include/mach/iomux-v3.h | |||
@@ -81,11 +81,13 @@ struct pad_desc { | |||
81 | 81 | ||
82 | #define PAD_CTL_ODE (1 << 3) | 82 | #define PAD_CTL_ODE (1 << 3) |
83 | 83 | ||
84 | #define PAD_CTL_DSE_STANDARD (0 << 1) | 84 | #define PAD_CTL_DSE_LOW (0 << 1) |
85 | #define PAD_CTL_DSE_HIGH (1 << 1) | 85 | #define PAD_CTL_DSE_MED (1 << 1) |
86 | #define PAD_CTL_DSE_MAX (2 << 1) | 86 | #define PAD_CTL_DSE_HIGH (2 << 1) |
87 | #define PAD_CTL_DSE_MAX (3 << 1) | ||
87 | 88 | ||
88 | #define PAD_CTL_SRE_FAST (1 << 0) | 89 | #define PAD_CTL_SRE_FAST (1 << 0) |
90 | #define PAD_CTL_SRE_SLOW (0 << 0) | ||
89 | 91 | ||
90 | /* | 92 | /* |
91 | * setups a single pad in the iomuxer | 93 | * setups a single pad in the iomuxer |
diff --git a/arch/arm/plat-mxc/include/mach/iomux.h b/arch/arm/plat-mxc/include/mach/iomux.h index 011cfcd8b82..3d226d7e7be 100644 --- a/arch/arm/plat-mxc/include/mach/iomux.h +++ b/arch/arm/plat-mxc/include/mach/iomux.h | |||
@@ -1,102 +1,14 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2008 by Sascha Hauer <kernel@pengutronix.de> | 2 | * Copyright (C) 2010 Uwe Kleine-Koenig, Pengutronix |
3 | * Copyright (C) 2009 by Holger Schurig <hs4233@mail.mn-solutions.de> | 3 | * |
4 | * | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * This program is free software; you can redistribute it and/or | 5 | * under the terms of the GNU General Public License version 2 as published by |
6 | * modify it under the terms of the GNU General Public License | 6 | * the Free Software Foundation. |
7 | * as published by the Free Software Foundation; either version 2 | 7 | */ |
8 | * of the License, or (at your option) any later version. | 8 | #ifndef __MACH_IOMUX_H__ |
9 | * This program is distributed in the hope that it will be useful, | 9 | #define __MACH_IOMUX_H__ |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | ||
17 | * MA 02110-1301, USA. | ||
18 | */ | ||
19 | |||
20 | #ifndef _MXC_IOMUX_H | ||
21 | #define _MXC_IOMUX_H | ||
22 | |||
23 | /* | ||
24 | * GPIO Module and I/O Multiplexer | ||
25 | * x = 0..3 for reg_A, reg_B, reg_C, reg_D | ||
26 | */ | ||
27 | #define VA_GPIO_BASE IO_ADDRESS(GPIO_BASE_ADDR) | ||
28 | #define MXC_DDIR(x) (0x00 + ((x) << 8)) | ||
29 | #define MXC_OCR1(x) (0x04 + ((x) << 8)) | ||
30 | #define MXC_OCR2(x) (0x08 + ((x) << 8)) | ||
31 | #define MXC_ICONFA1(x) (0x0c + ((x) << 8)) | ||
32 | #define MXC_ICONFA2(x) (0x10 + ((x) << 8)) | ||
33 | #define MXC_ICONFB1(x) (0x14 + ((x) << 8)) | ||
34 | #define MXC_ICONFB2(x) (0x18 + ((x) << 8)) | ||
35 | #define MXC_DR(x) (0x1c + ((x) << 8)) | ||
36 | #define MXC_GIUS(x) (0x20 + ((x) << 8)) | ||
37 | #define MXC_SSR(x) (0x24 + ((x) << 8)) | ||
38 | #define MXC_ICR1(x) (0x28 + ((x) << 8)) | ||
39 | #define MXC_ICR2(x) (0x2c + ((x) << 8)) | ||
40 | #define MXC_IMR(x) (0x30 + ((x) << 8)) | ||
41 | #define MXC_ISR(x) (0x34 + ((x) << 8)) | ||
42 | #define MXC_GPR(x) (0x38 + ((x) << 8)) | ||
43 | #define MXC_SWR(x) (0x3c + ((x) << 8)) | ||
44 | #define MXC_PUEN(x) (0x40 + ((x) << 8)) | ||
45 | |||
46 | #ifdef CONFIG_ARCH_MX1 | ||
47 | # define GPIO_PORT_MAX 3 | ||
48 | #endif | ||
49 | #ifdef CONFIG_ARCH_MX2 | ||
50 | # define GPIO_PORT_MAX 5 | ||
51 | #endif | ||
52 | #ifdef CONFIG_ARCH_MX25 | ||
53 | # define GPIO_PORT_MAX 3 | ||
54 | #endif | ||
55 | |||
56 | #ifndef GPIO_PORT_MAX | ||
57 | # error "GPIO config port count unknown!" | ||
58 | #endif | ||
59 | |||
60 | #define GPIO_PIN_MASK 0x1f | ||
61 | |||
62 | #define GPIO_PORT_SHIFT 5 | ||
63 | #define GPIO_PORT_MASK (0x7 << GPIO_PORT_SHIFT) | ||
64 | |||
65 | #define GPIO_PORTA (0 << GPIO_PORT_SHIFT) | ||
66 | #define GPIO_PORTB (1 << GPIO_PORT_SHIFT) | ||
67 | #define GPIO_PORTC (2 << GPIO_PORT_SHIFT) | ||
68 | #define GPIO_PORTD (3 << GPIO_PORT_SHIFT) | ||
69 | #define GPIO_PORTE (4 << GPIO_PORT_SHIFT) | ||
70 | #define GPIO_PORTF (5 << GPIO_PORT_SHIFT) | ||
71 | |||
72 | #define GPIO_OUT (1 << 8) | ||
73 | #define GPIO_IN (0 << 8) | ||
74 | #define GPIO_PUEN (1 << 9) | ||
75 | |||
76 | #define GPIO_PF (1 << 10) | ||
77 | #define GPIO_AF (1 << 11) | ||
78 | |||
79 | #define GPIO_OCR_SHIFT 12 | ||
80 | #define GPIO_OCR_MASK (3 << GPIO_OCR_SHIFT) | ||
81 | #define GPIO_AIN (0 << GPIO_OCR_SHIFT) | ||
82 | #define GPIO_BIN (1 << GPIO_OCR_SHIFT) | ||
83 | #define GPIO_CIN (2 << GPIO_OCR_SHIFT) | ||
84 | #define GPIO_GPIO (3 << GPIO_OCR_SHIFT) | ||
85 | |||
86 | #define GPIO_AOUT_SHIFT 14 | ||
87 | #define GPIO_AOUT_MASK (3 << GPIO_AOUT_SHIFT) | ||
88 | #define GPIO_AOUT (0 << GPIO_AOUT_SHIFT) | ||
89 | #define GPIO_AOUT_ISR (1 << GPIO_AOUT_SHIFT) | ||
90 | #define GPIO_AOUT_0 (2 << GPIO_AOUT_SHIFT) | ||
91 | #define GPIO_AOUT_1 (3 << GPIO_AOUT_SHIFT) | ||
92 | |||
93 | #define GPIO_BOUT_SHIFT 16 | ||
94 | #define GPIO_BOUT_MASK (3 << GPIO_BOUT_SHIFT) | ||
95 | #define GPIO_BOUT (0 << GPIO_BOUT_SHIFT) | ||
96 | #define GPIO_BOUT_ISR (1 << GPIO_BOUT_SHIFT) | ||
97 | #define GPIO_BOUT_0 (2 << GPIO_BOUT_SHIFT) | ||
98 | #define GPIO_BOUT_1 (3 << GPIO_BOUT_SHIFT) | ||
99 | 10 | ||
11 | /* This file will go away, please include mach/iomux-mx... directly */ | ||
100 | 12 | ||
101 | #ifdef CONFIG_ARCH_MX1 | 13 | #ifdef CONFIG_ARCH_MX1 |
102 | #include <mach/iomux-mx1.h> | 14 | #include <mach/iomux-mx1.h> |
@@ -110,25 +22,5 @@ | |||
110 | #include <mach/iomux-mx27.h> | 22 | #include <mach/iomux-mx27.h> |
111 | #endif | 23 | #endif |
112 | #endif | 24 | #endif |
113 | #ifdef CONFIG_ARCH_MX25 | ||
114 | #include <mach/iomux-mx25.h> | ||
115 | #endif | ||
116 | 25 | ||
117 | 26 | #endif /* __MACH_IOMUX_H__ */ | |
118 | /* decode irq number to use with IMR(x), ISR(x) and friends */ | ||
119 | #define IRQ_TO_REG(irq) ((irq - MXC_INTERNAL_IRQS) >> 5) | ||
120 | |||
121 | #define IRQ_GPIOA(x) (MXC_GPIO_IRQ_START + x) | ||
122 | #define IRQ_GPIOB(x) (IRQ_GPIOA(32) + x) | ||
123 | #define IRQ_GPIOC(x) (IRQ_GPIOB(32) + x) | ||
124 | #define IRQ_GPIOD(x) (IRQ_GPIOC(32) + x) | ||
125 | #define IRQ_GPIOE(x) (IRQ_GPIOD(32) + x) | ||
126 | #define IRQ_GPIOF(x) (IRQ_GPIOE(32) + x) | ||
127 | |||
128 | |||
129 | extern void mxc_gpio_mode(int gpio_mode); | ||
130 | extern int mxc_gpio_setup_multiple_pins(const int *pin_list, unsigned count, | ||
131 | const char *label); | ||
132 | extern void mxc_gpio_release_multiple_pins(const int *pin_list, int count); | ||
133 | |||
134 | #endif | ||
diff --git a/arch/arm/plat-mxc/include/mach/irqs.h b/arch/arm/plat-mxc/include/mach/irqs.h index ead9d592168..86781f7b0c0 100644 --- a/arch/arm/plat-mxc/include/mach/irqs.h +++ b/arch/arm/plat-mxc/include/mach/irqs.h | |||
@@ -12,22 +12,29 @@ | |||
12 | #define __ASM_ARCH_MXC_IRQS_H__ | 12 | #define __ASM_ARCH_MXC_IRQS_H__ |
13 | 13 | ||
14 | /* | 14 | /* |
15 | * So far all i.MX SoCs have 64 internal interrupts | 15 | * SoCs with TZIC interrupt controller have 128 IRQs, those with AVIC have 64 |
16 | */ | 16 | */ |
17 | #ifdef CONFIG_MXC_TZIC | ||
18 | #define MXC_INTERNAL_IRQS 128 | ||
19 | #else | ||
17 | #define MXC_INTERNAL_IRQS 64 | 20 | #define MXC_INTERNAL_IRQS 64 |
21 | #endif | ||
18 | 22 | ||
19 | #define MXC_GPIO_IRQ_START MXC_INTERNAL_IRQS | 23 | #define MXC_GPIO_IRQ_START MXC_INTERNAL_IRQS |
20 | 24 | ||
21 | #if defined CONFIG_ARCH_MX1 | 25 | /* these are ordered by size to support multi-SoC kernels */ |
22 | #define MXC_GPIO_IRQS (32 * 4) | 26 | #if defined CONFIG_ARCH_MX2 |
23 | #elif defined CONFIG_ARCH_MX2 | ||
24 | #define MXC_GPIO_IRQS (32 * 6) | 27 | #define MXC_GPIO_IRQS (32 * 6) |
25 | #elif defined CONFIG_ARCH_MX3 | 28 | #elif defined CONFIG_ARCH_MX1 |
26 | #define MXC_GPIO_IRQS (32 * 3) | 29 | #define MXC_GPIO_IRQS (32 * 4) |
27 | #elif defined CONFIG_ARCH_MX25 | 30 | #elif defined CONFIG_ARCH_MX25 |
28 | #define MXC_GPIO_IRQS (32 * 4) | 31 | #define MXC_GPIO_IRQS (32 * 4) |
32 | #elif defined CONFIG_ARCH_MX5 | ||
33 | #define MXC_GPIO_IRQS (32 * 4) | ||
29 | #elif defined CONFIG_ARCH_MXC91231 | 34 | #elif defined CONFIG_ARCH_MXC91231 |
30 | #define MXC_GPIO_IRQS (32 * 4) | 35 | #define MXC_GPIO_IRQS (32 * 4) |
36 | #elif defined CONFIG_ARCH_MX3 | ||
37 | #define MXC_GPIO_IRQS (32 * 3) | ||
31 | #endif | 38 | #endif |
32 | 39 | ||
33 | /* | 40 | /* |
@@ -37,7 +44,12 @@ | |||
37 | * within sensible limits. | 44 | * within sensible limits. |
38 | */ | 45 | */ |
39 | #define MXC_BOARD_IRQ_START (MXC_INTERNAL_IRQS + MXC_GPIO_IRQS) | 46 | #define MXC_BOARD_IRQ_START (MXC_INTERNAL_IRQS + MXC_GPIO_IRQS) |
47 | |||
48 | #ifdef CONFIG_MACH_MX31ADS_WM1133_EV1 | ||
49 | #define MXC_BOARD_IRQS 80 | ||
50 | #else | ||
40 | #define MXC_BOARD_IRQS 16 | 51 | #define MXC_BOARD_IRQS 16 |
52 | #endif | ||
41 | 53 | ||
42 | #define MXC_IPU_IRQ_START (MXC_BOARD_IRQ_START + MXC_BOARD_IRQS) | 54 | #define MXC_IPU_IRQ_START (MXC_BOARD_IRQ_START + MXC_BOARD_IRQS) |
43 | 55 | ||
@@ -46,6 +58,7 @@ | |||
46 | #else | 58 | #else |
47 | #define MX3_IPU_IRQS 0 | 59 | #define MX3_IPU_IRQS 0 |
48 | #endif | 60 | #endif |
61 | /* REVISIT: Add IPU irqs on IMX51 */ | ||
49 | 62 | ||
50 | #define NR_IRQS (MXC_IPU_IRQ_START + MX3_IPU_IRQS) | 63 | #define NR_IRQS (MXC_IPU_IRQ_START + MX3_IPU_IRQS) |
51 | 64 | ||
diff --git a/arch/arm/plat-mxc/include/mach/memory.h b/arch/arm/plat-mxc/include/mach/memory.h index d3afafdcc0e..c4b40c35a6a 100644 --- a/arch/arm/plat-mxc/include/mach/memory.h +++ b/arch/arm/plat-mxc/include/mach/memory.h | |||
@@ -11,37 +11,45 @@ | |||
11 | #ifndef __ASM_ARCH_MXC_MEMORY_H__ | 11 | #ifndef __ASM_ARCH_MXC_MEMORY_H__ |
12 | #define __ASM_ARCH_MXC_MEMORY_H__ | 12 | #define __ASM_ARCH_MXC_MEMORY_H__ |
13 | 13 | ||
14 | #if defined CONFIG_ARCH_MX1 | 14 | #define MX1_PHYS_OFFSET UL(0x08000000) |
15 | #define PHYS_OFFSET UL(0x08000000) | 15 | #define MX21_PHYS_OFFSET UL(0xc0000000) |
16 | #elif defined CONFIG_ARCH_MX2 | 16 | #define MX25_PHYS_OFFSET UL(0x80000000) |
17 | #ifdef CONFIG_MACH_MX21 | 17 | #define MX27_PHYS_OFFSET UL(0xa0000000) |
18 | #define PHYS_OFFSET UL(0xC0000000) | 18 | #define MX3x_PHYS_OFFSET UL(0x80000000) |
19 | #endif | 19 | #define MX51_PHYS_OFFSET UL(0x90000000) |
20 | #ifdef CONFIG_MACH_MX27 | 20 | #define MXC91231_PHYS_OFFSET UL(0x90000000) |
21 | #define PHYS_OFFSET UL(0xA0000000) | 21 | |
22 | #endif | 22 | #if !defined(CONFIG_RUNTIME_PHYS_OFFSET) |
23 | #elif defined CONFIG_ARCH_MX3 | 23 | # if defined CONFIG_ARCH_MX1 |
24 | #define PHYS_OFFSET UL(0x80000000) | 24 | # define PHYS_OFFSET MX1_PHYS_OFFSET |
25 | #elif defined CONFIG_ARCH_MX25 | 25 | # elif defined CONFIG_MACH_MX21 |
26 | #define PHYS_OFFSET UL(0x80000000) | 26 | # define PHYS_OFFSET MX21_PHYS_OFFSET |
27 | #elif defined CONFIG_ARCH_MXC91231 | 27 | # elif defined CONFIG_ARCH_MX25 |
28 | #define PHYS_OFFSET UL(0x90000000) | 28 | # define PHYS_OFFSET MX25_PHYS_OFFSET |
29 | # elif defined CONFIG_MACH_MX27 | ||
30 | # define PHYS_OFFSET MX27_PHYS_OFFSET | ||
31 | # elif defined CONFIG_ARCH_MX3 | ||
32 | # define PHYS_OFFSET MX3x_PHYS_OFFSET | ||
33 | # elif defined CONFIG_ARCH_MXC91231 | ||
34 | # define PHYS_OFFSET MXC91231_PHYS_OFFSET | ||
35 | # elif defined CONFIG_ARCH_MX5 | ||
36 | # define PHYS_OFFSET MX51_PHYS_OFFSET | ||
37 | # endif | ||
29 | #endif | 38 | #endif |
30 | 39 | ||
31 | #if defined(CONFIG_MX1_VIDEO) | 40 | #if defined(CONFIG_MX3_VIDEO) |
32 | /* | 41 | /* |
33 | * Increase size of DMA-consistent memory region. | 42 | * Increase size of DMA-consistent memory region. |
34 | * This is required for i.MX camera driver to capture at least four VGA frames. | 43 | * This is required for mx3 camera driver to capture at least two QXGA frames. |
35 | */ | 44 | */ |
36 | #define CONSISTENT_DMA_SIZE SZ_4M | 45 | #define CONSISTENT_DMA_SIZE SZ_8M |
37 | #endif /* CONFIG_MX1_VIDEO */ | ||
38 | 46 | ||
39 | #if defined(CONFIG_MX3_VIDEO) | 47 | #elif defined(CONFIG_MX1_VIDEO) |
40 | /* | 48 | /* |
41 | * Increase size of DMA-consistent memory region. | 49 | * Increase size of DMA-consistent memory region. |
42 | * This is required for mx3 camera driver to capture at least two QXGA frames. | 50 | * This is required for i.MX camera driver to capture at least four VGA frames. |
43 | */ | 51 | */ |
44 | #define CONSISTENT_DMA_SIZE SZ_8M | 52 | #define CONSISTENT_DMA_SIZE SZ_4M |
45 | #endif /* CONFIG_MX3_VIDEO */ | 53 | #endif /* CONFIG_MX1_VIDEO */ |
46 | 54 | ||
47 | #endif /* __ASM_ARCH_MXC_MEMORY_H__ */ | 55 | #endif /* __ASM_ARCH_MXC_MEMORY_H__ */ |
diff --git a/arch/arm/plat-mxc/include/mach/mtd-xip.h b/arch/arm/plat-mxc/include/mach/mtd-xip.h deleted file mode 100644 index 1ab1bba5688..00000000000 --- a/arch/arm/plat-mxc/include/mach/mtd-xip.h +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | /* | ||
2 | * MTD primitives for XIP support. Architecture specific functions | ||
3 | * | ||
4 | * Do not include this file directly. It's included from linux/mtd/xip.h | ||
5 | * | ||
6 | * Copyright (C) 2008 Darius Augulis <augulis.darius@gmail.com>, Teltonika, Inc. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | * | ||
12 | */ | ||
13 | |||
14 | #include <mach/mxc_timer.h> | ||
15 | |||
16 | #ifndef __ARCH_IMX_MTD_XIP_H__ | ||
17 | #define __ARCH_IMX_MTD_XIP_H__ | ||
18 | |||
19 | #ifdef CONFIG_ARCH_MX1 | ||
20 | /* AITC registers */ | ||
21 | #define AITC_BASE IO_ADDRESS(AVIC_BASE_ADDR) | ||
22 | #define NIPNDH (AITC_BASE + 0x58) | ||
23 | #define NIPNDL (AITC_BASE + 0x5C) | ||
24 | #define INTENABLEH (AITC_BASE + 0x10) | ||
25 | #define INTENABLEL (AITC_BASE + 0x14) | ||
26 | /* MTD macros */ | ||
27 | #define xip_irqpending() ((__raw_readl(INTENABLEH) & __raw_readl(NIPNDH)) \ | ||
28 | || (__raw_readl(INTENABLEL) & __raw_readl(NIPNDL))) | ||
29 | #define xip_currtime() (__raw_readl(TIMER_BASE + MXC_TCN)) | ||
30 | #define xip_elapsed_since(x) (signed)((__raw_readl(TIMER_BASE + MXC_TCN) - (x)) / 96) | ||
31 | #define xip_cpu_idle() asm volatile ("mcr p15, 0, %0, c7, c0, 4" :: "r" (0)) | ||
32 | #endif /* CONFIG_ARCH_MX1 */ | ||
33 | |||
34 | #endif /* __ARCH_IMX_MTD_XIP_H__ */ | ||
diff --git a/arch/arm/plat-mxc/include/mach/mx1.h b/arch/arm/plat-mxc/include/mach/mx1.h index 1b2890a5c45..5eba7e6785d 100644 --- a/arch/arm/plat-mxc/include/mach/mx1.h +++ b/arch/arm/plat-mxc/include/mach/mx1.h | |||
@@ -9,156 +9,289 @@ | |||
9 | * published by the Free Software Foundation. | 9 | * published by the Free Software Foundation. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #ifndef __ASM_ARCH_MXC_MX1_H__ | 12 | #ifndef __MACH_MX1_H__ |
13 | #define __ASM_ARCH_MXC_MX1_H__ | 13 | #define __MACH_MX1_H__ |
14 | 14 | ||
15 | #include <mach/vmalloc.h> | 15 | #include <mach/vmalloc.h> |
16 | 16 | ||
17 | /* | 17 | /* |
18 | * Memory map | 18 | * Memory map |
19 | */ | 19 | */ |
20 | #define IMX_IO_PHYS 0x00200000 | 20 | #define MX1_IO_BASE_ADDR 0x00200000 |
21 | #define IMX_IO_SIZE 0x00100000 | 21 | #define MX1_IO_SIZE SZ_1M |
22 | #define IMX_IO_BASE VMALLOC_END | 22 | #define MX1_IO_BASE_ADDR_VIRT VMALLOC_END |
23 | 23 | ||
24 | #define IMX_CS0_PHYS 0x10000000 | 24 | #define MX1_CS0_PHYS 0x10000000 |
25 | #define IMX_CS0_SIZE 0x02000000 | 25 | #define MX1_CS0_SIZE 0x02000000 |
26 | 26 | ||
27 | #define IMX_CS1_PHYS 0x12000000 | 27 | #define MX1_CS1_PHYS 0x12000000 |
28 | #define IMX_CS1_SIZE 0x01000000 | 28 | #define MX1_CS1_SIZE 0x01000000 |
29 | 29 | ||
30 | #define IMX_CS2_PHYS 0x13000000 | 30 | #define MX1_CS2_PHYS 0x13000000 |
31 | #define IMX_CS2_SIZE 0x01000000 | 31 | #define MX1_CS2_SIZE 0x01000000 |
32 | 32 | ||
33 | #define IMX_CS3_PHYS 0x14000000 | 33 | #define MX1_CS3_PHYS 0x14000000 |
34 | #define IMX_CS3_SIZE 0x01000000 | 34 | #define MX1_CS3_SIZE 0x01000000 |
35 | 35 | ||
36 | #define IMX_CS4_PHYS 0x15000000 | 36 | #define MX1_CS4_PHYS 0x15000000 |
37 | #define IMX_CS4_SIZE 0x01000000 | 37 | #define MX1_CS4_SIZE 0x01000000 |
38 | 38 | ||
39 | #define IMX_CS5_PHYS 0x16000000 | 39 | #define MX1_CS5_PHYS 0x16000000 |
40 | #define IMX_CS5_SIZE 0x01000000 | 40 | #define MX1_CS5_SIZE 0x01000000 |
41 | 41 | ||
42 | /* | 42 | /* |
43 | * Register BASEs, based on OFFSETs | 43 | * Register BASEs, based on OFFSETs |
44 | */ | 44 | */ |
45 | #define AIPI1_BASE_ADDR (0x00000 + IMX_IO_PHYS) | 45 | #define MX1_AIPI1_BASE_ADDR (0x00000 + MX1_IO_BASE_ADDR) |
46 | #define WDT_BASE_ADDR (0x01000 + IMX_IO_PHYS) | 46 | #define MX1_WDT_BASE_ADDR (0x01000 + MX1_IO_BASE_ADDR) |
47 | #define TIM1_BASE_ADDR (0x02000 + IMX_IO_PHYS) | 47 | #define MX1_TIM1_BASE_ADDR (0x02000 + MX1_IO_BASE_ADDR) |
48 | #define TIM2_BASE_ADDR (0x03000 + IMX_IO_PHYS) | 48 | #define MX1_TIM2_BASE_ADDR (0x03000 + MX1_IO_BASE_ADDR) |
49 | #define RTC_BASE_ADDR (0x04000 + IMX_IO_PHYS) | 49 | #define MX1_RTC_BASE_ADDR (0x04000 + MX1_IO_BASE_ADDR) |
50 | #define LCDC_BASE_ADDR (0x05000 + IMX_IO_PHYS) | 50 | #define MX1_LCDC_BASE_ADDR (0x05000 + MX1_IO_BASE_ADDR) |
51 | #define UART1_BASE_ADDR (0x06000 + IMX_IO_PHYS) | 51 | #define MX1_UART1_BASE_ADDR (0x06000 + MX1_IO_BASE_ADDR) |
52 | #define UART2_BASE_ADDR (0x07000 + IMX_IO_PHYS) | 52 | #define MX1_UART2_BASE_ADDR (0x07000 + MX1_IO_BASE_ADDR) |
53 | #define PWM_BASE_ADDR (0x08000 + IMX_IO_PHYS) | 53 | #define MX1_PWM_BASE_ADDR (0x08000 + MX1_IO_BASE_ADDR) |
54 | #define DMA_BASE_ADDR (0x09000 + IMX_IO_PHYS) | 54 | #define MX1_DMA_BASE_ADDR (0x09000 + MX1_IO_BASE_ADDR) |
55 | #define AIPI2_BASE_ADDR (0x10000 + IMX_IO_PHYS) | 55 | #define MX1_AIPI2_BASE_ADDR (0x10000 + MX1_IO_BASE_ADDR) |
56 | #define SIM_BASE_ADDR (0x11000 + IMX_IO_PHYS) | 56 | #define MX1_SIM_BASE_ADDR (0x11000 + MX1_IO_BASE_ADDR) |
57 | #define USBD_BASE_ADDR (0x12000 + IMX_IO_PHYS) | 57 | #define MX1_USBD_BASE_ADDR (0x12000 + MX1_IO_BASE_ADDR) |
58 | #define SPI1_BASE_ADDR (0x13000 + IMX_IO_PHYS) | 58 | #define MX1_SPI1_BASE_ADDR (0x13000 + MX1_IO_BASE_ADDR) |
59 | #define MMC_BASE_ADDR (0x14000 + IMX_IO_PHYS) | 59 | #define MX1_MMC_BASE_ADDR (0x14000 + MX1_IO_BASE_ADDR) |
60 | #define ASP_BASE_ADDR (0x15000 + IMX_IO_PHYS) | 60 | #define MX1_ASP_BASE_ADDR (0x15000 + MX1_IO_BASE_ADDR) |
61 | #define BTA_BASE_ADDR (0x16000 + IMX_IO_PHYS) | 61 | #define MX1_BTA_BASE_ADDR (0x16000 + MX1_IO_BASE_ADDR) |
62 | #define I2C_BASE_ADDR (0x17000 + IMX_IO_PHYS) | 62 | #define MX1_I2C_BASE_ADDR (0x17000 + MX1_IO_BASE_ADDR) |
63 | #define SSI_BASE_ADDR (0x18000 + IMX_IO_PHYS) | 63 | #define MX1_SSI_BASE_ADDR (0x18000 + MX1_IO_BASE_ADDR) |
64 | #define SPI2_BASE_ADDR (0x19000 + IMX_IO_PHYS) | 64 | #define MX1_SPI2_BASE_ADDR (0x19000 + MX1_IO_BASE_ADDR) |
65 | #define MSHC_BASE_ADDR (0x1A000 + IMX_IO_PHYS) | 65 | #define MX1_MSHC_BASE_ADDR (0x1A000 + MX1_IO_BASE_ADDR) |
66 | #define CCM_BASE_ADDR (0x1B000 + IMX_IO_PHYS) | 66 | #define MX1_CCM_BASE_ADDR (0x1B000 + MX1_IO_BASE_ADDR) |
67 | #define SCM_BASE_ADDR (0x1B804 + IMX_IO_PHYS) | 67 | #define MX1_SCM_BASE_ADDR (0x1B804 + MX1_IO_BASE_ADDR) |
68 | #define GPIO_BASE_ADDR (0x1C000 + IMX_IO_PHYS) | 68 | #define MX1_GPIO_BASE_ADDR (0x1C000 + MX1_IO_BASE_ADDR) |
69 | #define EIM_BASE_ADDR (0x20000 + IMX_IO_PHYS) | 69 | #define MX1_EIM_BASE_ADDR (0x20000 + MX1_IO_BASE_ADDR) |
70 | #define SDRAMC_BASE_ADDR (0x21000 + IMX_IO_PHYS) | 70 | #define MX1_SDRAMC_BASE_ADDR (0x21000 + MX1_IO_BASE_ADDR) |
71 | #define MMA_BASE_ADDR (0x22000 + IMX_IO_PHYS) | 71 | #define MX1_MMA_BASE_ADDR (0x22000 + MX1_IO_BASE_ADDR) |
72 | #define AVIC_BASE_ADDR (0x23000 + IMX_IO_PHYS) | 72 | #define MX1_AVIC_BASE_ADDR (0x23000 + MX1_IO_BASE_ADDR) |
73 | #define CSI_BASE_ADDR (0x24000 + IMX_IO_PHYS) | 73 | #define MX1_CSI_BASE_ADDR (0x24000 + MX1_IO_BASE_ADDR) |
74 | 74 | ||
75 | /* macro to get at IO space when running virtually */ | 75 | /* macro to get at IO space when running virtually */ |
76 | #define IO_ADDRESS(x) ((x) - IMX_IO_PHYS + IMX_IO_BASE) | 76 | #define MX1_IO_ADDRESS(x) ( \ |
77 | 77 | IMX_IO_ADDRESS(x, MX1_IO)) | |
78 | /* define macros needed for entry-macro.S */ | ||
79 | #define AVIC_IO_ADDRESS(x) IO_ADDRESS(x) | ||
80 | 78 | ||
81 | /* fixed interrput numbers */ | 79 | /* fixed interrput numbers */ |
82 | #define INT_SOFTINT 0 | 80 | #define MX1_INT_SOFTINT 0 |
83 | #define CSI_INT 6 | 81 | #define MX1_CSI_INT 6 |
84 | #define DSPA_MAC_INT 7 | 82 | #define MX1_DSPA_MAC_INT 7 |
85 | #define DSPA_INT 8 | 83 | #define MX1_DSPA_INT 8 |
86 | #define COMP_INT 9 | 84 | #define MX1_COMP_INT 9 |
87 | #define MSHC_XINT 10 | 85 | #define MX1_MSHC_XINT 10 |
88 | #define GPIO_INT_PORTA 11 | 86 | #define MX1_GPIO_INT_PORTA 11 |
89 | #define GPIO_INT_PORTB 12 | 87 | #define MX1_GPIO_INT_PORTB 12 |
90 | #define GPIO_INT_PORTC 13 | 88 | #define MX1_GPIO_INT_PORTC 13 |
91 | #define LCDC_INT 14 | 89 | #define MX1_LCDC_INT 14 |
92 | #define SIM_INT 15 | 90 | #define MX1_SIM_INT 15 |
93 | #define SIM_DATA_INT 16 | 91 | #define MX1_SIM_DATA_INT 16 |
94 | #define RTC_INT 17 | 92 | #define MX1_RTC_INT 17 |
95 | #define RTC_SAMINT 18 | 93 | #define MX1_RTC_SAMINT 18 |
96 | #define UART2_MINT_PFERR 19 | 94 | #define MX1_UART2_MINT_PFERR 19 |
97 | #define UART2_MINT_RTS 20 | 95 | #define MX1_UART2_MINT_RTS 20 |
98 | #define UART2_MINT_DTR 21 | 96 | #define MX1_UART2_MINT_DTR 21 |
99 | #define UART2_MINT_UARTC 22 | 97 | #define MX1_UART2_MINT_UARTC 22 |
100 | #define UART2_MINT_TX 23 | 98 | #define MX1_UART2_MINT_TX 23 |
101 | #define UART2_MINT_RX 24 | 99 | #define MX1_UART2_MINT_RX 24 |
102 | #define UART1_MINT_PFERR 25 | 100 | #define MX1_UART1_MINT_PFERR 25 |
103 | #define UART1_MINT_RTS 26 | 101 | #define MX1_UART1_MINT_RTS 26 |
104 | #define UART1_MINT_DTR 27 | 102 | #define MX1_UART1_MINT_DTR 27 |
105 | #define UART1_MINT_UARTC 28 | 103 | #define MX1_UART1_MINT_UARTC 28 |
106 | #define UART1_MINT_TX 29 | 104 | #define MX1_UART1_MINT_TX 29 |
107 | #define UART1_MINT_RX 30 | 105 | #define MX1_UART1_MINT_RX 30 |
108 | #define VOICE_DAC_INT 31 | 106 | #define MX1_VOICE_DAC_INT 31 |
109 | #define VOICE_ADC_INT 32 | 107 | #define MX1_VOICE_ADC_INT 32 |
110 | #define PEN_DATA_INT 33 | 108 | #define MX1_PEN_DATA_INT 33 |
111 | #define PWM_INT 34 | 109 | #define MX1_PWM_INT 34 |
112 | #define SDHC_INT 35 | 110 | #define MX1_SDHC_INT 35 |
113 | #define I2C_INT 39 | 111 | #define MX1_I2C_INT 39 |
114 | #define CSPI_INT 41 | 112 | #define MX1_CSPI_INT 41 |
115 | #define SSI_TX_INT 42 | 113 | #define MX1_SSI_TX_INT 42 |
116 | #define SSI_TX_ERR_INT 43 | 114 | #define MX1_SSI_TX_ERR_INT 43 |
117 | #define SSI_RX_INT 44 | 115 | #define MX1_SSI_RX_INT 44 |
118 | #define SSI_RX_ERR_INT 45 | 116 | #define MX1_SSI_RX_ERR_INT 45 |
119 | #define TOUCH_INT 46 | 117 | #define MX1_TOUCH_INT 46 |
120 | #define USBD_INT0 47 | 118 | #define MX1_USBD_INT0 47 |
121 | #define USBD_INT1 48 | 119 | #define MX1_USBD_INT1 48 |
122 | #define USBD_INT2 49 | 120 | #define MX1_USBD_INT2 49 |
123 | #define USBD_INT3 50 | 121 | #define MX1_USBD_INT3 50 |
124 | #define USBD_INT4 51 | 122 | #define MX1_USBD_INT4 51 |
125 | #define USBD_INT5 52 | 123 | #define MX1_USBD_INT5 52 |
126 | #define USBD_INT6 53 | 124 | #define MX1_USBD_INT6 53 |
127 | #define BTSYS_INT 55 | 125 | #define MX1_BTSYS_INT 55 |
128 | #define BTTIM_INT 56 | 126 | #define MX1_BTTIM_INT 56 |
129 | #define BTWUI_INT 57 | 127 | #define MX1_BTWUI_INT 57 |
130 | #define TIM2_INT 58 | 128 | #define MX1_TIM2_INT 58 |
131 | #define TIM1_INT 59 | 129 | #define MX1_TIM1_INT 59 |
132 | #define DMA_ERR 60 | 130 | #define MX1_DMA_ERR 60 |
133 | #define DMA_INT 61 | 131 | #define MX1_DMA_INT 61 |
134 | #define GPIO_INT_PORTD 62 | 132 | #define MX1_GPIO_INT_PORTD 62 |
135 | #define WDT_INT 63 | 133 | #define MX1_WDT_INT 63 |
136 | 134 | ||
137 | /* DMA */ | 135 | /* DMA */ |
138 | #define DMA_REQ_UART3_T 2 | 136 | #define MX1_DMA_REQ_UART3_T 2 |
139 | #define DMA_REQ_UART3_R 3 | 137 | #define MX1_DMA_REQ_UART3_R 3 |
140 | #define DMA_REQ_SSI2_T 4 | 138 | #define MX1_DMA_REQ_SSI2_T 4 |
141 | #define DMA_REQ_SSI2_R 5 | 139 | #define MX1_DMA_REQ_SSI2_R 5 |
142 | #define DMA_REQ_CSI_STAT 6 | 140 | #define MX1_DMA_REQ_CSI_STAT 6 |
143 | #define DMA_REQ_CSI_R 7 | 141 | #define MX1_DMA_REQ_CSI_R 7 |
144 | #define DMA_REQ_MSHC 8 | 142 | #define MX1_DMA_REQ_MSHC 8 |
145 | #define DMA_REQ_DSPA_DCT_DOUT 9 | 143 | #define MX1_DMA_REQ_DSPA_DCT_DOUT 9 |
146 | #define DMA_REQ_DSPA_DCT_DIN 10 | 144 | #define MX1_DMA_REQ_DSPA_DCT_DIN 10 |
147 | #define DMA_REQ_DSPA_MAC 11 | 145 | #define MX1_DMA_REQ_DSPA_MAC 11 |
148 | #define DMA_REQ_EXT 12 | 146 | #define MX1_DMA_REQ_EXT 12 |
149 | #define DMA_REQ_SDHC 13 | 147 | #define MX1_DMA_REQ_SDHC 13 |
150 | #define DMA_REQ_SPI1_R 14 | 148 | #define MX1_DMA_REQ_SPI1_R 14 |
151 | #define DMA_REQ_SPI1_T 15 | 149 | #define MX1_DMA_REQ_SPI1_T 15 |
152 | #define DMA_REQ_SSI_T 16 | 150 | #define MX1_DMA_REQ_SSI_T 16 |
153 | #define DMA_REQ_SSI_R 17 | 151 | #define MX1_DMA_REQ_SSI_R 17 |
154 | #define DMA_REQ_ASP_DAC 18 | 152 | #define MX1_DMA_REQ_ASP_DAC 18 |
155 | #define DMA_REQ_ASP_ADC 19 | 153 | #define MX1_DMA_REQ_ASP_ADC 19 |
156 | #define DMA_REQ_USP_EP(x) (20 + (x)) | 154 | #define MX1_DMA_REQ_USP_EP(x) (20 + (x)) |
157 | #define DMA_REQ_SPI2_R 26 | 155 | #define MX1_DMA_REQ_SPI2_R 26 |
158 | #define DMA_REQ_SPI2_T 27 | 156 | #define MX1_DMA_REQ_SPI2_T 27 |
159 | #define DMA_REQ_UART2_T 28 | 157 | #define MX1_DMA_REQ_UART2_T 28 |
160 | #define DMA_REQ_UART2_R 29 | 158 | #define MX1_DMA_REQ_UART2_R 29 |
161 | #define DMA_REQ_UART1_T 30 | 159 | #define MX1_DMA_REQ_UART1_T 30 |
162 | #define DMA_REQ_UART1_R 31 | 160 | #define MX1_DMA_REQ_UART1_R 31 |
163 | 161 | ||
164 | #endif /* __ASM_ARCH_MXC_MX1_H__ */ | 162 | /* |
163 | * This doesn't depend on IMX_NEEDS_DEPRECATED_SYMBOLS | ||
164 | * to not break drivers/usb/gadget/imx_udc. Should go | ||
165 | * away after this driver uses the new name. | ||
166 | */ | ||
167 | #define USBD_INT0 MX1_USBD_INT0 | ||
168 | |||
169 | #ifdef IMX_NEEDS_DEPRECATED_SYMBOLS | ||
170 | /* these should go away */ | ||
171 | #define IMX_IO_PHYS MX1_IO_BASE_ADDR | ||
172 | #define IMX_IO_SIZE MX1_IO_SIZE | ||
173 | #define IMX_IO_BASE MX1_IO_BASE_ADDR_VIRT | ||
174 | #define IMX_CS0_PHYS MX1_CS0_PHYS | ||
175 | #define IMX_CS0_SIZE MX1_CS0_SIZE | ||
176 | #define IMX_CS1_PHYS MX1_CS1_PHYS | ||
177 | #define IMX_CS1_SIZE MX1_CS1_SIZE | ||
178 | #define IMX_CS2_PHYS MX1_CS2_PHYS | ||
179 | #define IMX_CS2_SIZE MX1_CS2_SIZE | ||
180 | #define IMX_CS3_PHYS MX1_CS3_PHYS | ||
181 | #define IMX_CS3_SIZE MX1_CS3_SIZE | ||
182 | #define IMX_CS4_PHYS MX1_CS4_PHYS | ||
183 | #define IMX_CS4_SIZE MX1_CS4_SIZE | ||
184 | #define IMX_CS5_PHYS MX1_CS5_PHYS | ||
185 | #define IMX_CS5_SIZE MX1_CS5_SIZE | ||
186 | #define AIPI1_BASE_ADDR MX1_AIPI1_BASE_ADDR | ||
187 | #define WDT_BASE_ADDR MX1_WDT_BASE_ADDR | ||
188 | #define TIM1_BASE_ADDR MX1_TIM1_BASE_ADDR | ||
189 | #define TIM2_BASE_ADDR MX1_TIM2_BASE_ADDR | ||
190 | #define RTC_BASE_ADDR MX1_RTC_BASE_ADDR | ||
191 | #define LCDC_BASE_ADDR MX1_LCDC_BASE_ADDR | ||
192 | #define UART1_BASE_ADDR MX1_UART1_BASE_ADDR | ||
193 | #define UART2_BASE_ADDR MX1_UART2_BASE_ADDR | ||
194 | #define PWM_BASE_ADDR MX1_PWM_BASE_ADDR | ||
195 | #define DMA_BASE_ADDR MX1_DMA_BASE_ADDR | ||
196 | #define AIPI2_BASE_ADDR MX1_AIPI2_BASE_ADDR | ||
197 | #define SIM_BASE_ADDR MX1_SIM_BASE_ADDR | ||
198 | #define USBD_BASE_ADDR MX1_USBD_BASE_ADDR | ||
199 | #define SPI1_BASE_ADDR MX1_SPI1_BASE_ADDR | ||
200 | #define MMC_BASE_ADDR MX1_MMC_BASE_ADDR | ||
201 | #define ASP_BASE_ADDR MX1_ASP_BASE_ADDR | ||
202 | #define BTA_BASE_ADDR MX1_BTA_BASE_ADDR | ||
203 | #define I2C_BASE_ADDR MX1_I2C_BASE_ADDR | ||
204 | #define SSI_BASE_ADDR MX1_SSI_BASE_ADDR | ||
205 | #define SPI2_BASE_ADDR MX1_SPI2_BASE_ADDR | ||
206 | #define MSHC_BASE_ADDR MX1_MSHC_BASE_ADDR | ||
207 | #define CCM_BASE_ADDR MX1_CCM_BASE_ADDR | ||
208 | #define SCM_BASE_ADDR MX1_SCM_BASE_ADDR | ||
209 | #define GPIO_BASE_ADDR MX1_GPIO_BASE_ADDR | ||
210 | #define EIM_BASE_ADDR MX1_EIM_BASE_ADDR | ||
211 | #define SDRAMC_BASE_ADDR MX1_SDRAMC_BASE_ADDR | ||
212 | #define MMA_BASE_ADDR MX1_MMA_BASE_ADDR | ||
213 | #define AVIC_BASE_ADDR MX1_AVIC_BASE_ADDR | ||
214 | #define CSI_BASE_ADDR MX1_CSI_BASE_ADDR | ||
215 | #define IO_ADDRESS(x) MX1_IO_ADDRESS(x) | ||
216 | #define AVIC_IO_ADDRESS(x) IO_ADDRESS(x) | ||
217 | #define INT_SOFTINT MX1_INT_SOFTINT | ||
218 | #define CSI_INT MX1_CSI_INT | ||
219 | #define DSPA_MAC_INT MX1_DSPA_MAC_INT | ||
220 | #define DSPA_INT MX1_DSPA_INT | ||
221 | #define COMP_INT MX1_COMP_INT | ||
222 | #define MSHC_XINT MX1_MSHC_XINT | ||
223 | #define GPIO_INT_PORTA MX1_GPIO_INT_PORTA | ||
224 | #define GPIO_INT_PORTB MX1_GPIO_INT_PORTB | ||
225 | #define GPIO_INT_PORTC MX1_GPIO_INT_PORTC | ||
226 | #define LCDC_INT MX1_LCDC_INT | ||
227 | #define SIM_INT MX1_SIM_INT | ||
228 | #define SIM_DATA_INT MX1_SIM_DATA_INT | ||
229 | #define RTC_INT MX1_RTC_INT | ||
230 | #define RTC_SAMINT MX1_RTC_SAMINT | ||
231 | #define UART2_MINT_PFERR MX1_UART2_MINT_PFERR | ||
232 | #define UART2_MINT_RTS MX1_UART2_MINT_RTS | ||
233 | #define UART2_MINT_DTR MX1_UART2_MINT_DTR | ||
234 | #define UART2_MINT_UARTC MX1_UART2_MINT_UARTC | ||
235 | #define UART2_MINT_TX MX1_UART2_MINT_TX | ||
236 | #define UART2_MINT_RX MX1_UART2_MINT_RX | ||
237 | #define UART1_MINT_PFERR MX1_UART1_MINT_PFERR | ||
238 | #define UART1_MINT_RTS MX1_UART1_MINT_RTS | ||
239 | #define UART1_MINT_DTR MX1_UART1_MINT_DTR | ||
240 | #define UART1_MINT_UARTC MX1_UART1_MINT_UARTC | ||
241 | #define UART1_MINT_TX MX1_UART1_MINT_TX | ||
242 | #define UART1_MINT_RX MX1_UART1_MINT_RX | ||
243 | #define VOICE_DAC_INT MX1_VOICE_DAC_INT | ||
244 | #define VOICE_ADC_INT MX1_VOICE_ADC_INT | ||
245 | #define PEN_DATA_INT MX1_PEN_DATA_INT | ||
246 | #define PWM_INT MX1_PWM_INT | ||
247 | #define SDHC_INT MX1_SDHC_INT | ||
248 | #define I2C_INT MX1_I2C_INT | ||
249 | #define CSPI_INT MX1_CSPI_INT | ||
250 | #define SSI_TX_INT MX1_SSI_TX_INT | ||
251 | #define SSI_TX_ERR_INT MX1_SSI_TX_ERR_INT | ||
252 | #define SSI_RX_INT MX1_SSI_RX_INT | ||
253 | #define SSI_RX_ERR_INT MX1_SSI_RX_ERR_INT | ||
254 | #define TOUCH_INT MX1_TOUCH_INT | ||
255 | #define USBD_INT1 MX1_USBD_INT1 | ||
256 | #define USBD_INT2 MX1_USBD_INT2 | ||
257 | #define USBD_INT3 MX1_USBD_INT3 | ||
258 | #define USBD_INT4 MX1_USBD_INT4 | ||
259 | #define USBD_INT5 MX1_USBD_INT5 | ||
260 | #define USBD_INT6 MX1_USBD_INT6 | ||
261 | #define BTSYS_INT MX1_BTSYS_INT | ||
262 | #define BTTIM_INT MX1_BTTIM_INT | ||
263 | #define BTWUI_INT MX1_BTWUI_INT | ||
264 | #define TIM2_INT MX1_TIM2_INT | ||
265 | #define TIM1_INT MX1_TIM1_INT | ||
266 | #define DMA_ERR MX1_DMA_ERR | ||
267 | #define DMA_INT MX1_DMA_INT | ||
268 | #define GPIO_INT_PORTD MX1_GPIO_INT_PORTD | ||
269 | #define WDT_INT MX1_WDT_INT | ||
270 | #define DMA_REQ_UART3_T MX1_DMA_REQ_UART3_T | ||
271 | #define DMA_REQ_UART3_R MX1_DMA_REQ_UART3_R | ||
272 | #define DMA_REQ_SSI2_T MX1_DMA_REQ_SSI2_T | ||
273 | #define DMA_REQ_SSI2_R MX1_DMA_REQ_SSI2_R | ||
274 | #define DMA_REQ_CSI_STAT MX1_DMA_REQ_CSI_STAT | ||
275 | #define DMA_REQ_CSI_R MX1_DMA_REQ_CSI_R | ||
276 | #define DMA_REQ_MSHC MX1_DMA_REQ_MSHC | ||
277 | #define DMA_REQ_DSPA_DCT_DOUT MX1_DMA_REQ_DSPA_DCT_DOUT | ||
278 | #define DMA_REQ_DSPA_DCT_DIN MX1_DMA_REQ_DSPA_DCT_DIN | ||
279 | #define DMA_REQ_DSPA_MAC MX1_DMA_REQ_DSPA_MAC | ||
280 | #define DMA_REQ_EXT MX1_DMA_REQ_EXT | ||
281 | #define DMA_REQ_SDHC MX1_DMA_REQ_SDHC | ||
282 | #define DMA_REQ_SPI1_R MX1_DMA_REQ_SPI1_R | ||
283 | #define DMA_REQ_SPI1_T MX1_DMA_REQ_SPI1_T | ||
284 | #define DMA_REQ_SSI_T MX1_DMA_REQ_SSI_T | ||
285 | #define DMA_REQ_SSI_R MX1_DMA_REQ_SSI_R | ||
286 | #define DMA_REQ_ASP_DAC MX1_DMA_REQ_ASP_DAC | ||
287 | #define DMA_REQ_ASP_ADC MX1_DMA_REQ_ASP_ADC | ||
288 | #define DMA_REQ_USP_EP(x) MX1_DMA_REQ_USP_EP(x) | ||
289 | #define DMA_REQ_SPI2_R MX1_DMA_REQ_SPI2_R | ||
290 | #define DMA_REQ_SPI2_T MX1_DMA_REQ_SPI2_T | ||
291 | #define DMA_REQ_UART2_T MX1_DMA_REQ_UART2_T | ||
292 | #define DMA_REQ_UART2_R MX1_DMA_REQ_UART2_R | ||
293 | #define DMA_REQ_UART1_T MX1_DMA_REQ_UART1_T | ||
294 | #define DMA_REQ_UART1_R MX1_DMA_REQ_UART1_R | ||
295 | #endif /* ifdef IMX_NEEDS_DEPRECATED_SYMBOLS */ | ||
296 | |||
297 | #endif /* ifndef __MACH_MX1_H__ */ | ||
diff --git a/arch/arm/plat-mxc/include/mach/mx21.h b/arch/arm/plat-mxc/include/mach/mx21.h index bb297d8765a..ed98b9c9f38 100644 --- a/arch/arm/plat-mxc/include/mach/mx21.h +++ b/arch/arm/plat-mxc/include/mach/mx21.h | |||
@@ -22,8 +22,8 @@ | |||
22 | * MA 02110-1301, USA. | 22 | * MA 02110-1301, USA. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #ifndef __ASM_ARCH_MXC_MX21_H__ | 25 | #ifndef __MACH_MX21_H__ |
26 | #define __ASM_ARCH_MXC_MX21_H__ | 26 | #define __MACH_MX21_H__ |
27 | 27 | ||
28 | #define MX21_AIPI_BASE_ADDR 0x10000000 | 28 | #define MX21_AIPI_BASE_ADDR 0x10000000 |
29 | #define MX21_AIPI_BASE_ADDR_VIRT 0xf4000000 | 29 | #define MX21_AIPI_BASE_ADDR_VIRT 0xf4000000 |
@@ -92,6 +92,11 @@ | |||
92 | 92 | ||
93 | #define MX21_IRAM_BASE_ADDR 0xffffe800 /* internal ram */ | 93 | #define MX21_IRAM_BASE_ADDR 0xffffe800 /* internal ram */ |
94 | 94 | ||
95 | #define MX21_IO_ADDRESS(x) ( \ | ||
96 | IMX_IO_ADDRESS(x, MX21_AIPI) ?: \ | ||
97 | IMX_IO_ADDRESS(x, MX21_SAHB1) ?: \ | ||
98 | IMX_IO_ADDRESS(x, MX21_X_MEMC)) | ||
99 | |||
95 | /* fixed interrupt numbers */ | 100 | /* fixed interrupt numbers */ |
96 | #define MX21_INT_CSPI3 6 | 101 | #define MX21_INT_CSPI3 6 |
97 | #define MX21_INT_GPIO 8 | 102 | #define MX21_INT_GPIO 8 |
@@ -179,6 +184,7 @@ | |||
179 | #define MX21_DMA_REQ_CSI_STAT 30 | 184 | #define MX21_DMA_REQ_CSI_STAT 30 |
180 | #define MX21_DMA_REQ_CSI_RX 31 | 185 | #define MX21_DMA_REQ_CSI_RX 31 |
181 | 186 | ||
187 | #ifdef IMX_NEEDS_DEPRECATED_SYMBOLS | ||
182 | /* these should go away */ | 188 | /* these should go away */ |
183 | #define SDRAM_BASE_ADDR MX21_SDRAM_BASE_ADDR | 189 | #define SDRAM_BASE_ADDR MX21_SDRAM_BASE_ADDR |
184 | #define CSD1_BASE_ADDR MX21_CSD1_BASE_ADDR | 190 | #define CSD1_BASE_ADDR MX21_CSD1_BASE_ADDR |
@@ -211,5 +217,6 @@ | |||
211 | #define DMA_REQ_FIRI_RX MX21_DMA_REQ_FIRI_RX | 217 | #define DMA_REQ_FIRI_RX MX21_DMA_REQ_FIRI_RX |
212 | #define DMA_REQ_BMI_TX MX21_DMA_REQ_BMI_TX | 218 | #define DMA_REQ_BMI_TX MX21_DMA_REQ_BMI_TX |
213 | #define DMA_REQ_BMI_RX MX21_DMA_REQ_BMI_RX | 219 | #define DMA_REQ_BMI_RX MX21_DMA_REQ_BMI_RX |
220 | #endif | ||
214 | 221 | ||
215 | #endif /* __ASM_ARCH_MXC_MX21_H__ */ | 222 | #endif /* ifndef __MACH_MX21_H__ */ |
diff --git a/arch/arm/plat-mxc/include/mach/mx25.h b/arch/arm/plat-mxc/include/mach/mx25.h index 854e2dc5848..4eb6e334bda 100644 --- a/arch/arm/plat-mxc/include/mach/mx25.h +++ b/arch/arm/plat-mxc/include/mach/mx25.h | |||
@@ -22,27 +22,27 @@ | |||
22 | #define MX25_GPIO3_BASE_ADDR_VIRT (MX25_AIPS2_BASE_ADDR_VIRT + 0xa4000) | 22 | #define MX25_GPIO3_BASE_ADDR_VIRT (MX25_AIPS2_BASE_ADDR_VIRT + 0xa4000) |
23 | #define MX25_GPIO4_BASE_ADDR_VIRT (MX25_AIPS2_BASE_ADDR_VIRT + 0x9c000) | 23 | #define MX25_GPIO4_BASE_ADDR_VIRT (MX25_AIPS2_BASE_ADDR_VIRT + 0x9c000) |
24 | 24 | ||
25 | #define MX25_AIPS1_IO_ADDRESS(x) \ | 25 | #define MX25_IO_ADDRESS(x) ( \ |
26 | (((x) - MX25_AIPS1_BASE_ADDR) + MX25_AIPS1_BASE_ADDR_VIRT) | 26 | IMX_IO_ADDRESS(x, MX25_AIPS1) ?: \ |
27 | #define MX25_AIPS2_IO_ADDRESS(x) \ | 27 | IMX_IO_ADDRESS(x, MX25_AIPS2) ?: \ |
28 | (((x) - MX25_AIPS2_BASE_ADDR) + MX25_AIPS2_BASE_ADDR_VIRT) | 28 | IMX_IO_ADDRESS(x, MX25_AVIC)) |
29 | #define MX25_AVIC_IO_ADDRESS(x) \ | ||
30 | (((x) - MX25_AVIC_BASE_ADDR) + MX25_AVIC_BASE_ADDR_VIRT) | ||
31 | 29 | ||
32 | #define __in_range(addr, name) ((addr) >= name##_BASE_ADDR && (addr) < name##_BASE_ADDR + name##_SIZE) | 30 | #define MX25_UART1_BASE_ADDR 0x43f90000 |
33 | 31 | #define MX25_UART2_BASE_ADDR 0x43f94000 | |
34 | #define MX25_IO_ADDRESS(x) \ | ||
35 | (void __force __iomem *) \ | ||
36 | (__in_range(x, MX25_AIPS1) ? MX25_AIPS1_IO_ADDRESS(x) : \ | ||
37 | __in_range(x, MX25_AIPS2) ? MX25_AIPS2_IO_ADDRESS(x) : \ | ||
38 | __in_range(x, MX25_AVIC) ? MX25_AVIC_IO_ADDRESS(x) : \ | ||
39 | 0xDEADBEEF) | ||
40 | |||
41 | #define UART1_BASE_ADDR 0x43f90000 | ||
42 | #define UART2_BASE_ADDR 0x43f94000 | ||
43 | 32 | ||
44 | #define MX25_FEC_BASE_ADDR 0x50038000 | 33 | #define MX25_FEC_BASE_ADDR 0x50038000 |
34 | #define MX25_NFC_BASE_ADDR 0xbb000000 | ||
35 | #define MX25_DRYICE_BASE_ADDR 0x53ffc000 | ||
36 | #define MX25_LCDC_BASE_ADDR 0x53fbc000 | ||
45 | 37 | ||
38 | #define MX25_INT_DRYICE 25 | ||
46 | #define MX25_INT_FEC 57 | 39 | #define MX25_INT_FEC 57 |
40 | #define MX25_INT_NANDFC 33 | ||
41 | #define MX25_INT_LCDC 39 | ||
42 | |||
43 | #if defined(IMX_NEEDS_DEPRECATED_SYMBOLS) | ||
44 | #define UART1_BASE_ADDR MX25_UART1_BASE_ADDR | ||
45 | #define UART2_BASE_ADDR MX25_UART2_BASE_ADDR | ||
46 | #endif | ||
47 | 47 | ||
48 | #endif /* __MACH_MX25_H__ */ | 48 | #endif /* ifndef __MACH_MX25_H__ */ |
diff --git a/arch/arm/plat-mxc/include/mach/mx27.h b/arch/arm/plat-mxc/include/mach/mx27.h index e2ae19f5171..bae9cd75bee 100644 --- a/arch/arm/plat-mxc/include/mach/mx27.h +++ b/arch/arm/plat-mxc/include/mach/mx27.h | |||
@@ -21,8 +21,12 @@ | |||
21 | * MA 02110-1301, USA. | 21 | * MA 02110-1301, USA. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #ifndef __ASM_ARCH_MXC_MX27_H__ | 24 | #ifndef __MACH_MX27_H__ |
25 | #define __ASM_ARCH_MXC_MX27_H__ | 25 | #define __MACH_MX27_H__ |
26 | |||
27 | #ifndef __ASSEMBLER__ | ||
28 | #include <linux/io.h> | ||
29 | #endif | ||
26 | 30 | ||
27 | #define MX27_AIPI_BASE_ADDR 0x10000000 | 31 | #define MX27_AIPI_BASE_ADDR 0x10000000 |
28 | #define MX27_AIPI_BASE_ADDR_VIRT 0xf4000000 | 32 | #define MX27_AIPI_BASE_ADDR_VIRT 0xf4000000 |
@@ -109,11 +113,31 @@ | |||
109 | #define MX27_M3IF_BASE_ADDR (MX27_X_MEMC_BASE_ADDR + 0x3000) | 113 | #define MX27_M3IF_BASE_ADDR (MX27_X_MEMC_BASE_ADDR + 0x3000) |
110 | #define MX27_PCMCIA_CTL_BASE_ADDR (MX27_X_MEMC_BASE_ADDR + 0x4000) | 114 | #define MX27_PCMCIA_CTL_BASE_ADDR (MX27_X_MEMC_BASE_ADDR + 0x4000) |
111 | 115 | ||
116 | #define MX27_WEIM_CSCRx_BASE_ADDR(cs) (MX27_WEIM_BASE_ADDR + (cs) * 0x10) | ||
117 | #define MX27_WEIM_CSCRxU(cs) (MX27_WEIM_CSCRx_BASE_ADDR(cs)) | ||
118 | #define MX27_WEIM_CSCRxL(cs) (MX27_WEIM_CSCRx_BASE_ADDR(cs) + 0x4) | ||
119 | #define MX27_WEIM_CSCRxA(cs) (MX27_WEIM_CSCRx_BASE_ADDR(cs) + 0x8) | ||
120 | |||
112 | #define MX27_PCMCIA_MEM_BASE_ADDR 0xdc000000 | 121 | #define MX27_PCMCIA_MEM_BASE_ADDR 0xdc000000 |
113 | 122 | ||
114 | /* IRAM */ | 123 | /* IRAM */ |
115 | #define MX27_IRAM_BASE_ADDR 0xffff4c00 /* internal ram */ | 124 | #define MX27_IRAM_BASE_ADDR 0xffff4c00 /* internal ram */ |
116 | 125 | ||
126 | #define MX27_IO_ADDRESS(x) ( \ | ||
127 | IMX_IO_ADDRESS(x, MX27_AIPI) ?: \ | ||
128 | IMX_IO_ADDRESS(x, MX27_SAHB1) ?: \ | ||
129 | IMX_IO_ADDRESS(x, MX27_X_MEMC)) | ||
130 | |||
131 | #ifndef __ASSEMBLER__ | ||
132 | static inline void mx27_setup_weimcs(size_t cs, | ||
133 | unsigned upper, unsigned lower, unsigned addional) | ||
134 | { | ||
135 | __raw_writel(upper, MX27_IO_ADDRESS(MX27_WEIM_CSCRxU(cs))); | ||
136 | __raw_writel(lower, MX27_IO_ADDRESS(MX27_WEIM_CSCRxL(cs))); | ||
137 | __raw_writel(addional, MX27_IO_ADDRESS(MX27_WEIM_CSCRxA(cs))); | ||
138 | } | ||
139 | #endif | ||
140 | |||
117 | /* fixed interrupt numbers */ | 141 | /* fixed interrupt numbers */ |
118 | #define MX27_INT_I2C2 1 | 142 | #define MX27_INT_I2C2 1 |
119 | #define MX27_INT_GPT6 2 | 143 | #define MX27_INT_GPT6 2 |
@@ -225,6 +249,7 @@ | |||
225 | extern int mx27_revision(void); | 249 | extern int mx27_revision(void); |
226 | #endif | 250 | #endif |
227 | 251 | ||
252 | #ifdef IMX_NEEDS_DEPRECATED_SYMBOLS | ||
228 | /* these should go away */ | 253 | /* these should go away */ |
229 | #define MSHC_BASE_ADDR MX27_MSHC_BASE_ADDR | 254 | #define MSHC_BASE_ADDR MX27_MSHC_BASE_ADDR |
230 | #define GPT5_BASE_ADDR MX27_GPT5_BASE_ADDR | 255 | #define GPT5_BASE_ADDR MX27_GPT5_BASE_ADDR |
@@ -292,5 +317,6 @@ extern int mx27_revision(void); | |||
292 | #define DMA_REQ_UART6_RX MX27_DMA_REQ_UART6_RX | 317 | #define DMA_REQ_UART6_RX MX27_DMA_REQ_UART6_RX |
293 | #define DMA_REQ_SDHC3 MX27_DMA_REQ_SDHC3 | 318 | #define DMA_REQ_SDHC3 MX27_DMA_REQ_SDHC3 |
294 | #define DMA_REQ_NFC MX27_DMA_REQ_NFC | 319 | #define DMA_REQ_NFC MX27_DMA_REQ_NFC |
320 | #endif | ||
295 | 321 | ||
296 | #endif /* __ASM_ARCH_MXC_MX27_H__ */ | 322 | #endif /* ifndef __MACH_MX27_H__ */ |
diff --git a/arch/arm/plat-mxc/include/mach/mx2x.h b/arch/arm/plat-mxc/include/mach/mx2x.h index f2eaf140ed0..afb895a0b5b 100644 --- a/arch/arm/plat-mxc/include/mach/mx2x.h +++ b/arch/arm/plat-mxc/include/mach/mx2x.h | |||
@@ -20,8 +20,8 @@ | |||
20 | * MA 02110-1301, USA. | 20 | * MA 02110-1301, USA. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #ifndef __ASM_ARCH_MXC_MX2x_H__ | 23 | #ifndef __MACH_MX2x_H__ |
24 | #define __ASM_ARCH_MXC_MX2x_H__ | 24 | #define __MACH_MX2x_H__ |
25 | 25 | ||
26 | /* The following addresses are common between i.MX21 and i.MX27 */ | 26 | /* The following addresses are common between i.MX21 and i.MX27 */ |
27 | 27 | ||
@@ -176,6 +176,7 @@ | |||
176 | #define MX2x_DMA_REQ_CSI_STAT 30 | 176 | #define MX2x_DMA_REQ_CSI_STAT 30 |
177 | #define MX2x_DMA_REQ_CSI_RX 31 | 177 | #define MX2x_DMA_REQ_CSI_RX 31 |
178 | 178 | ||
179 | #ifdef IMX_NEEDS_DEPRECATED_SYMBOLS | ||
179 | /* these should go away */ | 180 | /* these should go away */ |
180 | #define AIPI_BASE_ADDR MX2x_AIPI_BASE_ADDR | 181 | #define AIPI_BASE_ADDR MX2x_AIPI_BASE_ADDR |
181 | #define AIPI_BASE_ADDR_VIRT MX2x_AIPI_BASE_ADDR_VIRT | 182 | #define AIPI_BASE_ADDR_VIRT MX2x_AIPI_BASE_ADDR_VIRT |
@@ -287,5 +288,6 @@ | |||
287 | #define DMA_REQ_UART1_TX MX2x_DMA_REQ_UART1_TX | 288 | #define DMA_REQ_UART1_TX MX2x_DMA_REQ_UART1_TX |
288 | #define DMA_REQ_CSI_STAT MX2x_DMA_REQ_CSI_STAT | 289 | #define DMA_REQ_CSI_STAT MX2x_DMA_REQ_CSI_STAT |
289 | #define DMA_REQ_CSI_RX MX2x_DMA_REQ_CSI_RX | 290 | #define DMA_REQ_CSI_RX MX2x_DMA_REQ_CSI_RX |
291 | #endif | ||
290 | 292 | ||
291 | #endif /* __ASM_ARCH_MXC_MX2x_H__ */ | 293 | #endif /* ifndef __MACH_MX2x_H__ */ |
diff --git a/arch/arm/plat-mxc/include/mach/mx31.h b/arch/arm/plat-mxc/include/mach/mx31.h index b8b47d139eb..fb90e119c2b 100644 --- a/arch/arm/plat-mxc/include/mach/mx31.h +++ b/arch/arm/plat-mxc/include/mach/mx31.h | |||
@@ -1,3 +1,10 @@ | |||
1 | #ifndef __MACH_MX31_H__ | ||
2 | #define __MACH_MX31_H__ | ||
3 | |||
4 | #ifndef __ASSEMBLER__ | ||
5 | #include <linux/io.h> | ||
6 | #endif | ||
7 | |||
1 | /* | 8 | /* |
2 | * IRAM | 9 | * IRAM |
3 | */ | 10 | */ |
@@ -107,8 +114,30 @@ | |||
107 | #define MX31_EMI_CTL_BASE_ADDR (MX31_X_MEMC_BASE_ADDR + 0x4000) | 114 | #define MX31_EMI_CTL_BASE_ADDR (MX31_X_MEMC_BASE_ADDR + 0x4000) |
108 | #define MX31_PCMCIA_CTL_BASE_ADDR MX31_EMI_CTL_BASE_ADDR | 115 | #define MX31_PCMCIA_CTL_BASE_ADDR MX31_EMI_CTL_BASE_ADDR |
109 | 116 | ||
117 | #define MX31_WEIM_CSCRx_BASE_ADDR(cs) (MX31_WEIM_BASE_ADDR + (cs) * 0x10) | ||
118 | #define MX31_WEIM_CSCRxU(cs) (MX31_WEIM_CSCRx_BASE_ADDR(cs)) | ||
119 | #define MX31_WEIM_CSCRxL(cs) (MX31_WEIM_CSCRx_BASE_ADDR(cs) + 0x4) | ||
120 | #define MX31_WEIM_CSCRxA(cs) (MX31_WEIM_CSCRx_BASE_ADDR(cs) + 0x8) | ||
121 | |||
110 | #define MX31_PCMCIA_MEM_BASE_ADDR 0xbc000000 | 122 | #define MX31_PCMCIA_MEM_BASE_ADDR 0xbc000000 |
111 | 123 | ||
124 | #define MX31_IO_ADDRESS(x) ( \ | ||
125 | IMX_IO_ADDRESS(x, MX31_AIPS1) ?: \ | ||
126 | IMX_IO_ADDRESS(x, MX31_AIPS2) ?: \ | ||
127 | IMX_IO_ADDRESS(x, MX31_AVIC) ?: \ | ||
128 | IMX_IO_ADDRESS(x, MX31_X_MEMC) ?: \ | ||
129 | IMX_IO_ADDRESS(x, MX31_SPBA0)) | ||
130 | |||
131 | #ifndef __ASSEMBLER__ | ||
132 | static inline void mx31_setup_weimcs(size_t cs, | ||
133 | unsigned upper, unsigned lower, unsigned addional) | ||
134 | { | ||
135 | __raw_writel(upper, MX31_IO_ADDRESS(MX31_WEIM_CSCRxU(cs))); | ||
136 | __raw_writel(lower, MX31_IO_ADDRESS(MX31_WEIM_CSCRxL(cs))); | ||
137 | __raw_writel(addional, MX31_IO_ADDRESS(MX31_WEIM_CSCRxA(cs))); | ||
138 | } | ||
139 | #endif | ||
140 | |||
112 | #define MX31_INT_I2C3 3 | 141 | #define MX31_INT_I2C3 3 |
113 | #define MX31_INT_I2C2 4 | 142 | #define MX31_INT_I2C2 4 |
114 | #define MX31_INT_MPEG4_ENCODER 5 | 143 | #define MX31_INT_MPEG4_ENCODER 5 |
@@ -186,6 +215,7 @@ | |||
186 | #define MX31_SYSTEM_REV_MIN MX31_CHIP_REV_1_0 | 215 | #define MX31_SYSTEM_REV_MIN MX31_CHIP_REV_1_0 |
187 | #define MX31_SYSTEM_REV_NUM 3 | 216 | #define MX31_SYSTEM_REV_NUM 3 |
188 | 217 | ||
218 | #ifdef IMX_NEEDS_DEPRECATED_SYMBOLS | ||
189 | /* these should go away */ | 219 | /* these should go away */ |
190 | #define ATA_BASE_ADDR MX31_ATA_BASE_ADDR | 220 | #define ATA_BASE_ADDR MX31_ATA_BASE_ADDR |
191 | #define UART4_BASE_ADDR MX31_UART4_BASE_ADDR | 221 | #define UART4_BASE_ADDR MX31_UART4_BASE_ADDR |
@@ -216,3 +246,6 @@ | |||
216 | #define MXC_INT_UART5 MX31_INT_UART5 | 246 | #define MXC_INT_UART5 MX31_INT_UART5 |
217 | #define MXC_INT_CCM MX31_INT_CCM | 247 | #define MXC_INT_CCM MX31_INT_CCM |
218 | #define MXC_INT_PCMCIA MX31_INT_PCMCIA | 248 | #define MXC_INT_PCMCIA MX31_INT_PCMCIA |
249 | #endif | ||
250 | |||
251 | #endif /* ifndef __MACH_MX31_H__ */ | ||
diff --git a/arch/arm/plat-mxc/include/mach/mx35.h b/arch/arm/plat-mxc/include/mach/mx35.h index af871bce35b..526a55842ae 100644 --- a/arch/arm/plat-mxc/include/mach/mx35.h +++ b/arch/arm/plat-mxc/include/mach/mx35.h | |||
@@ -1,3 +1,5 @@ | |||
1 | #ifndef __MACH_MX35_H__ | ||
2 | #define __MACH_MX35_H__ | ||
1 | /* | 3 | /* |
2 | * IRAM | 4 | * IRAM |
3 | */ | 5 | */ |
@@ -104,6 +106,13 @@ | |||
104 | #define MX35_NFC_BASE_ADDR 0xbb000000 | 106 | #define MX35_NFC_BASE_ADDR 0xbb000000 |
105 | #define MX35_PCMCIA_MEM_BASE_ADDR 0xbc000000 | 107 | #define MX35_PCMCIA_MEM_BASE_ADDR 0xbc000000 |
106 | 108 | ||
109 | #define MX35_IO_ADDRESS(x) ( \ | ||
110 | IMX_IO_ADDRESS(x, MX35_AIPS1) ?: \ | ||
111 | IMX_IO_ADDRESS(x, MX35_AIPS2) ?: \ | ||
112 | IMX_IO_ADDRESS(x, MX35_AVIC) ?: \ | ||
113 | IMX_IO_ADDRESS(x, MX35_X_MEMC) ?: \ | ||
114 | IMX_IO_ADDRESS(x, MX35_SPBA0)) | ||
115 | |||
107 | /* | 116 | /* |
108 | * Interrupt numbers | 117 | * Interrupt numbers |
109 | */ | 118 | */ |
@@ -180,6 +189,7 @@ | |||
180 | #define MX35_SYSTEM_REV_MIN MX35_CHIP_REV_1_0 | 189 | #define MX35_SYSTEM_REV_MIN MX35_CHIP_REV_1_0 |
181 | #define MX35_SYSTEM_REV_NUM 3 | 190 | #define MX35_SYSTEM_REV_NUM 3 |
182 | 191 | ||
192 | #ifdef IMX_NEEDS_DEPRECATED_SYMBOLS | ||
183 | /* these should go away */ | 193 | /* these should go away */ |
184 | #define MXC_FEC_BASE_ADDR MX35_FEC_BASE_ADDR | 194 | #define MXC_FEC_BASE_ADDR MX35_FEC_BASE_ADDR |
185 | #define MXC_INT_OWIRE MX35_INT_OWIRE | 195 | #define MXC_INT_OWIRE MX35_INT_OWIRE |
@@ -195,3 +205,6 @@ | |||
195 | #define MXC_INT_MLB MX35_INT_MLB | 205 | #define MXC_INT_MLB MX35_INT_MLB |
196 | #define MXC_INT_SPDIF MX35_INT_SPDIF | 206 | #define MXC_INT_SPDIF MX35_INT_SPDIF |
197 | #define MXC_INT_FEC MX35_INT_FEC | 207 | #define MXC_INT_FEC MX35_INT_FEC |
208 | #endif | ||
209 | |||
210 | #endif /* ifndef __MACH_MX35_H__ */ | ||
diff --git a/arch/arm/plat-mxc/include/mach/mx3x.h b/arch/arm/plat-mxc/include/mach/mx3x.h index be69272407a..7a356de385f 100644 --- a/arch/arm/plat-mxc/include/mach/mx3x.h +++ b/arch/arm/plat-mxc/include/mach/mx3x.h | |||
@@ -8,8 +8,8 @@ | |||
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #ifndef __ASM_ARCH_MXC_MX31_H__ | 11 | #ifndef __MACH_MX3x_H__ |
12 | #define __ASM_ARCH_MXC_MX31_H__ | 12 | #define __MACH_MX3x_H__ |
13 | 13 | ||
14 | /* | 14 | /* |
15 | * MX31 memory map: | 15 | * MX31 memory map: |
@@ -269,6 +269,7 @@ static inline int mx31_revision(void) | |||
269 | } | 269 | } |
270 | #endif | 270 | #endif |
271 | 271 | ||
272 | #ifdef IMX_NEEDS_DEPRECATED_SYMBOLS | ||
272 | /* these should go away */ | 273 | /* these should go away */ |
273 | #define L2CC_BASE_ADDR MX3x_L2CC_BASE_ADDR | 274 | #define L2CC_BASE_ADDR MX3x_L2CC_BASE_ADDR |
274 | #define L2CC_SIZE MX3x_L2CC_SIZE | 275 | #define L2CC_SIZE MX3x_L2CC_SIZE |
@@ -401,5 +402,6 @@ static inline int mx31_revision(void) | |||
401 | #define CHIP_REV_3_2 MX3x_CHIP_REV_3_2 | 402 | #define CHIP_REV_3_2 MX3x_CHIP_REV_3_2 |
402 | #define SYSTEM_REV_MIN MX3x_SYSTEM_REV_MIN | 403 | #define SYSTEM_REV_MIN MX3x_SYSTEM_REV_MIN |
403 | #define SYSTEM_REV_NUM MX3x_SYSTEM_REV_NUM | 404 | #define SYSTEM_REV_NUM MX3x_SYSTEM_REV_NUM |
405 | #endif | ||
404 | 406 | ||
405 | #endif /* __ASM_ARCH_MXC_MX31_H__ */ | 407 | #endif /* ifndef __MACH_MX3x_H__ */ |
diff --git a/arch/arm/plat-mxc/include/mach/mx51.h b/arch/arm/plat-mxc/include/mach/mx51.h new file mode 100644 index 00000000000..771532b6b4a --- /dev/null +++ b/arch/arm/plat-mxc/include/mach/mx51.h | |||
@@ -0,0 +1,454 @@ | |||
1 | #ifndef __ASM_ARCH_MXC_MX51_H__ | ||
2 | #define __ASM_ARCH_MXC_MX51_H__ | ||
3 | |||
4 | /* | ||
5 | * MX51 memory map: | ||
6 | * | ||
7 | * | ||
8 | * Virt Phys Size What | ||
9 | * --------------------------------------------------------------------------- | ||
10 | * FA3E0000 1FFE0000 128K IRAM (SCCv2 RAM) | ||
11 | * 30000000 256M GPU | ||
12 | * 40000000 512M IPU | ||
13 | * FA200000 60000000 1M DEBUG | ||
14 | * FB100000 70000000 1M SPBA 0 | ||
15 | * FB000000 73F00000 1M AIPS 1 | ||
16 | * FB200000 83F00000 1M AIPS 2 | ||
17 | * FA100000 8FFFC000 16K TZIC (interrupt controller) | ||
18 | * 90000000 256M CSD0 SDRAM/DDR | ||
19 | * A0000000 256M CSD1 SDRAM/DDR | ||
20 | * B0000000 128M CS0 Flash | ||
21 | * B8000000 128M CS1 Flash | ||
22 | * C0000000 128M CS2 Flash | ||
23 | * C8000000 64M CS3 Flash | ||
24 | * CC000000 32M CS4 SRAM | ||
25 | * CE000000 32M CS5 SRAM | ||
26 | * F9000000 CFFF0000 64K NFC (NAND Flash AXI) | ||
27 | * | ||
28 | */ | ||
29 | |||
30 | /* | ||
31 | * IRAM | ||
32 | */ | ||
33 | #define MX51_IRAM_BASE_ADDR 0x1FFE0000 /* internal ram */ | ||
34 | #define MX51_IRAM_BASE_ADDR_VIRT 0xFA3E0000 | ||
35 | #define MX51_IRAM_PARTITIONS 16 | ||
36 | #define MX51_IRAM_PARTITIONS_TO1 12 | ||
37 | #define MX51_IRAM_SIZE (MX51_IRAM_PARTITIONS * SZ_8K) /* 128KB */ | ||
38 | |||
39 | /* | ||
40 | * NFC | ||
41 | */ | ||
42 | #define MX51_NFC_AXI_BASE_ADDR 0xCFFF0000 /* NAND flash AXI */ | ||
43 | #define MX51_NFC_AXI_BASE_ADDR_VIRT 0xF9000000 | ||
44 | #define MX51_NFC_AXI_SIZE SZ_64K | ||
45 | |||
46 | /* | ||
47 | * Graphics Memory of GPU | ||
48 | */ | ||
49 | #define MX51_GPU_BASE_ADDR 0x20000000 | ||
50 | #define MX51_GPU2D_BASE_ADDR 0xD0000000 | ||
51 | |||
52 | #define MX51_TZIC_BASE_ADDR 0x8FFFC000 | ||
53 | #define MX51_TZIC_BASE_ADDR_VIRT 0xFA100000 | ||
54 | #define MX51_TZIC_SIZE SZ_16K | ||
55 | |||
56 | #define MX51_DEBUG_BASE_ADDR 0x60000000 | ||
57 | #define MX51_DEBUG_BASE_ADDR_VIRT 0xFA200000 | ||
58 | #define MX51_DEBUG_SIZE SZ_1M | ||
59 | #define MX51_ETB_BASE_ADDR (MX51_DEBUG_BASE_ADDR + 0x00001000) | ||
60 | #define MX51_ETM_BASE_ADDR (MX51_DEBUG_BASE_ADDR + 0x00002000) | ||
61 | #define MX51_TPIU_BASE_ADDR (MX51_DEBUG_BASE_ADDR + 0x00003000) | ||
62 | #define MX51_CTI0_BASE_ADDR (MX51_DEBUG_BASE_ADDR + 0x00004000) | ||
63 | #define MX51_CTI1_BASE_ADDR (MX51_DEBUG_BASE_ADDR + 0x00005000) | ||
64 | #define MX51_CTI2_BASE_ADDR (MX51_DEBUG_BASE_ADDR + 0x00006000) | ||
65 | #define MX51_CTI3_BASE_ADDR (MX51_DEBUG_BASE_ADDR + 0x00007000) | ||
66 | #define MX51_CORTEX_DBG_BASE_ADDR (MX51_DEBUG_BASE_ADDR + 0x00008000) | ||
67 | |||
68 | /* | ||
69 | * SPBA global module enabled #0 | ||
70 | */ | ||
71 | #define MX51_SPBA0_BASE_ADDR 0x70000000 | ||
72 | #define MX51_SPBA0_BASE_ADDR_VIRT 0xFB100000 | ||
73 | #define MX51_SPBA0_SIZE SZ_1M | ||
74 | |||
75 | #define MX51_MMC_SDHC1_BASE_ADDR (MX51_SPBA0_BASE_ADDR + 0x00004000) | ||
76 | #define MX51_MMC_SDHC2_BASE_ADDR (MX51_SPBA0_BASE_ADDR + 0x00008000) | ||
77 | #define MX51_UART3_BASE_ADDR (MX51_SPBA0_BASE_ADDR + 0x0000C000) | ||
78 | #define MX51_CSPI1_BASE_ADDR (MX51_SPBA0_BASE_ADDR + 0x00010000) | ||
79 | #define MX51_SSI2_BASE_ADDR (MX51_SPBA0_BASE_ADDR + 0x00014000) | ||
80 | #define MX51_MMC_SDHC3_BASE_ADDR (MX51_SPBA0_BASE_ADDR + 0x00020000) | ||
81 | #define MX51_MMC_SDHC4_BASE_ADDR (MX51_SPBA0_BASE_ADDR + 0x00024000) | ||
82 | #define MX51_SPDIF_BASE_ADDR (MX51_SPBA0_BASE_ADDR + 0x00028000) | ||
83 | #define MX51_ATA_DMA_BASE_ADDR (MX51_SPBA0_BASE_ADDR + 0x00030000) | ||
84 | #define MX51_SLIM_DMA_BASE_ADDR (MX51_SPBA0_BASE_ADDR + 0x00034000) | ||
85 | #define MX51_HSI2C_DMA_BASE_ADDR (MX51_SPBA0_BASE_ADDR + 0x00038000) | ||
86 | #define MX51_SPBA_CTRL_BASE_ADDR (MX51_SPBA0_BASE_ADDR + 0x0003C000) | ||
87 | |||
88 | /* | ||
89 | * defines for SPBA modules | ||
90 | */ | ||
91 | #define MX51_SPBA_SDHC1 0x04 | ||
92 | #define MX51_SPBA_SDHC2 0x08 | ||
93 | #define MX51_SPBA_UART3 0x0C | ||
94 | #define MX51_SPBA_CSPI1 0x10 | ||
95 | #define MX51_SPBA_SSI2 0x14 | ||
96 | #define MX51_SPBA_SDHC3 0x20 | ||
97 | #define MX51_SPBA_SDHC4 0x24 | ||
98 | #define MX51_SPBA_SPDIF 0x28 | ||
99 | #define MX51_SPBA_ATA 0x30 | ||
100 | #define MX51_SPBA_SLIM 0x34 | ||
101 | #define MX51_SPBA_HSI2C 0x38 | ||
102 | #define MX51_SPBA_CTRL 0x3C | ||
103 | |||
104 | /* | ||
105 | * AIPS 1 | ||
106 | */ | ||
107 | #define MX51_AIPS1_BASE_ADDR 0x73F00000 | ||
108 | #define MX51_AIPS1_BASE_ADDR_VIRT 0xFB000000 | ||
109 | #define MX51_AIPS1_SIZE SZ_1M | ||
110 | |||
111 | #define MX51_OTG_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x00080000) | ||
112 | #define MX51_GPIO1_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x00084000) | ||
113 | #define MX51_GPIO2_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x00088000) | ||
114 | #define MX51_GPIO3_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x0008C000) | ||
115 | #define MX51_GPIO4_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x00090000) | ||
116 | #define MX51_KPP_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x00094000) | ||
117 | #define MX51_WDOG_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x00098000) | ||
118 | #define MX51_WDOG2_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x0009C000) | ||
119 | #define MX51_GPT1_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x000A0000) | ||
120 | #define MX51_SRTC_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x000A4000) | ||
121 | #define MX51_IOMUXC_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x000A8000) | ||
122 | #define MX51_EPIT1_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x000AC000) | ||
123 | #define MX51_EPIT2_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x000B0000) | ||
124 | #define MX51_PWM1_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x000B4000) | ||
125 | #define MX51_PWM2_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x000B8000) | ||
126 | #define MX51_UART1_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x000BC000) | ||
127 | #define MX51_UART2_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x000C0000) | ||
128 | #define MX51_SRC_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x000D0000) | ||
129 | #define MX51_CCM_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x000D4000) | ||
130 | #define MX51_GPC_BASE_ADDR (MX51_AIPS1_BASE_ADDR + 0x000D8000) | ||
131 | |||
132 | /* | ||
133 | * Defines for modules using static and dynamic DMA channels | ||
134 | */ | ||
135 | #define MX51_MXC_DMA_CHANNEL_IRAM 30 | ||
136 | #define MX51_MXC_DMA_CHANNEL_SPDIF_TX MXC_DMA_DYNAMIC_CHANNEL | ||
137 | #define MX51_MXC_DMA_CHANNEL_UART1_RX MXC_DMA_DYNAMIC_CHANNEL | ||
138 | #define MX51_MXC_DMA_CHANNEL_UART1_TX MXC_DMA_DYNAMIC_CHANNEL | ||
139 | #define MX51_MXC_DMA_CHANNEL_UART2_RX MXC_DMA_DYNAMIC_CHANNEL | ||
140 | #define MX51_MXC_DMA_CHANNEL_UART2_TX MXC_DMA_DYNAMIC_CHANNEL | ||
141 | #define MX51_MXC_DMA_CHANNEL_UART3_RX MXC_DMA_DYNAMIC_CHANNEL | ||
142 | #define MX51_MXC_DMA_CHANNEL_UART3_TX MXC_DMA_DYNAMIC_CHANNEL | ||
143 | #define MX51_MXC_DMA_CHANNEL_MMC1 MXC_DMA_DYNAMIC_CHANNEL | ||
144 | #define MX51_MXC_DMA_CHANNEL_MMC2 MXC_DMA_DYNAMIC_CHANNEL | ||
145 | #define MX51_MXC_DMA_CHANNEL_SSI1_RX MXC_DMA_DYNAMIC_CHANNEL | ||
146 | #define MX51_MXC_DMA_CHANNEL_SSI1_TX MXC_DMA_DYNAMIC_CHANNEL | ||
147 | #define MX51_MXC_DMA_CHANNEL_SSI2_RX MXC_DMA_DYNAMIC_CHANNEL | ||
148 | #ifdef CONFIG_SDMA_IRAM | ||
149 | #define MX51_MXC_DMA_CHANNEL_SSI2_TX (MX51_MXC_DMA_CHANNEL_IRAM + 1) | ||
150 | #else /*CONFIG_SDMA_IRAM */ | ||
151 | #define MX51_MXC_DMA_CHANNEL_SSI2_TX MXC_DMA_DYNAMIC_CHANNEL | ||
152 | #endif /*CONFIG_SDMA_IRAM */ | ||
153 | #define MX51_MXC_DMA_CHANNEL_CSPI1_RX MXC_DMA_DYNAMIC_CHANNEL | ||
154 | #define MX51_MXC_DMA_CHANNEL_CSPI1_TX MXC_DMA_DYNAMIC_CHANNEL | ||
155 | #define MX51_MXC_DMA_CHANNEL_CSPI2_RX MXC_DMA_DYNAMIC_CHANNEL | ||
156 | #define MX51_MXC_DMA_CHANNEL_CSPI2_TX MXC_DMA_DYNAMIC_CHANNEL | ||
157 | #define MX51_MXC_DMA_CHANNEL_CSPI3_RX MXC_DMA_DYNAMIC_CHANNEL | ||
158 | #define MX51_MXC_DMA_CHANNEL_CSPI3_TX MXC_DMA_DYNAMIC_CHANNEL | ||
159 | #define MX51_MXC_DMA_CHANNEL_ATA_RX MXC_DMA_DYNAMIC_CHANNEL | ||
160 | #define MX51_MXC_DMA_CHANNEL_ATA_TX MXC_DMA_DYNAMIC_CHANNEL | ||
161 | #define MX51_MXC_DMA_CHANNEL_MEMORY MXC_DMA_DYNAMIC_CHANNEL | ||
162 | |||
163 | /* | ||
164 | * AIPS 2 | ||
165 | */ | ||
166 | #define MX51_AIPS2_BASE_ADDR 0x83F00000 | ||
167 | #define MX51_AIPS2_BASE_ADDR_VIRT 0xFB200000 | ||
168 | #define MX51_AIPS2_SIZE SZ_1M | ||
169 | |||
170 | #define MX51_PLL1_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x00080000) | ||
171 | #define MX51_PLL2_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x00084000) | ||
172 | #define MX51_PLL3_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x00088000) | ||
173 | #define MX51_AHBMAX_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x00094000) | ||
174 | #define MX51_IIM_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x00098000) | ||
175 | #define MX51_CSU_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x0009C000) | ||
176 | #define MX51_ARM_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000A0000) | ||
177 | #define MX51_OWIRE_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000A4000) | ||
178 | #define MX51_FIRI_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000A8000) | ||
179 | #define MX51_CSPI2_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000AC000) | ||
180 | #define MX51_SDMA_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000B0000) | ||
181 | #define MX51_SCC_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000B4000) | ||
182 | #define MX51_ROMCP_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000B8000) | ||
183 | #define MX51_RTIC_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000BC000) | ||
184 | #define MX51_CSPI3_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000C0000) | ||
185 | #define MX51_I2C2_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000C4000) | ||
186 | #define MX51_I2C1_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000C8000) | ||
187 | #define MX51_SSI1_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000CC000) | ||
188 | #define MX51_AUDMUX_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000D0000) | ||
189 | #define MX51_M4IF_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000D8000) | ||
190 | #define MX51_ESDCTL_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000D9000) | ||
191 | #define MX51_WEIM_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000DA000) | ||
192 | #define MX51_NFC_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000DB000) | ||
193 | #define MX51_EMI_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000DBF00) | ||
194 | #define MX51_MIPI_HSC_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000DC000) | ||
195 | #define MX51_ATA_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000E0000) | ||
196 | #define MX51_SIM_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000E4000) | ||
197 | #define MX51_SSI3BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000E8000) | ||
198 | #define MX51_MXC_FEC_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000EC000) | ||
199 | #define MX51_TVE_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000F0000) | ||
200 | #define MX51_VPU_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000F4000) | ||
201 | #define MX51_SAHARA_BASE_ADDR (MX51_AIPS2_BASE_ADDR + 0x000F8000) | ||
202 | |||
203 | /* | ||
204 | * Memory regions and CS | ||
205 | */ | ||
206 | #define MX51_GPU_CTRL_BASE_ADDR 0x30000000 | ||
207 | #define MX51_IPU_CTRL_BASE_ADDR 0x40000000 | ||
208 | #define MX51_CSD0_BASE_ADDR 0x90000000 | ||
209 | #define MX51_CSD1_BASE_ADDR 0xA0000000 | ||
210 | #define MX51_CS0_BASE_ADDR 0xB0000000 | ||
211 | #define MX51_CS1_BASE_ADDR 0xB8000000 | ||
212 | #define MX51_CS2_BASE_ADDR 0xC0000000 | ||
213 | #define MX51_CS3_BASE_ADDR 0xC8000000 | ||
214 | #define MX51_CS4_BASE_ADDR 0xCC000000 | ||
215 | #define MX51_CS5_BASE_ADDR 0xCE000000 | ||
216 | |||
217 | /* Does given address belongs to the specified memory region? */ | ||
218 | #define ADDRESS_IN_REGION(addr, start, size) \ | ||
219 | (((addr) >= (start)) && ((addr) < (start)+(size))) | ||
220 | |||
221 | /* Does given address belongs to the specified named `module'? */ | ||
222 | #define MX51_IS_MODULE(addr, module) \ | ||
223 | ADDRESS_IN_REGION(addr, MX51_ ## module ## _BASE_ADDR, \ | ||
224 | MX51_ ## module ## _SIZE) | ||
225 | /* | ||
226 | * This macro defines the physical to virtual address mapping for all the | ||
227 | * peripheral modules. It is used by passing in the physical address as x | ||
228 | * and returning the virtual address. If the physical address is not mapped, | ||
229 | * it returns 0xDEADBEEF | ||
230 | */ | ||
231 | |||
232 | #define MX51_IO_ADDRESS(x) \ | ||
233 | (void __iomem *) \ | ||
234 | (MX51_IS_MODULE(x, IRAM) ? MX51_IRAM_IO_ADDRESS(x) : \ | ||
235 | MX51_IS_MODULE(x, TZIC) ? MX51_TZIC_IO_ADDRESS(x) : \ | ||
236 | MX51_IS_MODULE(x, DEBUG) ? MX51_DEBUG_IO_ADDRESS(x) : \ | ||
237 | MX51_IS_MODULE(x, SPBA0) ? MX51_SPBA0_IO_ADDRESS(x) : \ | ||
238 | MX51_IS_MODULE(x, AIPS1) ? MX51_AIPS1_IO_ADDRESS(x) : \ | ||
239 | MX51_IS_MODULE(x, AIPS2) ? MX51_AIPS2_IO_ADDRESS(x) : \ | ||
240 | MX51_IS_MODULE(x, NFC_AXI) ? MX51_NFC_AXI_IO_ADDRESS(x) : \ | ||
241 | 0xDEADBEEF) | ||
242 | |||
243 | /* | ||
244 | * define the address mapping macros: in physical address order | ||
245 | */ | ||
246 | #define MX51_IRAM_IO_ADDRESS(x) \ | ||
247 | (((x) - MX51_IRAM_BASE_ADDR) + MX51_IRAM_BASE_ADDR_VIRT) | ||
248 | |||
249 | #define MX51_TZIC_IO_ADDRESS(x) \ | ||
250 | (((x) - MX51_TZIC_BASE_ADDR) + MX51_TZIC_BASE_ADDR_VIRT) | ||
251 | |||
252 | #define MX51_DEBUG_IO_ADDRESS(x) \ | ||
253 | (((x) - MX51_DEBUG_BASE_ADDR) + MX51_DEBUG_BASE_ADDR_VIRT) | ||
254 | |||
255 | #define MX51_SPBA0_IO_ADDRESS(x) \ | ||
256 | (((x) - MX51_SPBA0_BASE_ADDR) + MX51_SPBA0_BASE_ADDR_VIRT) | ||
257 | |||
258 | #define MX51_AIPS1_IO_ADDRESS(x) \ | ||
259 | (((x) - MX51_AIPS1_BASE_ADDR) + MX51_AIPS1_BASE_ADDR_VIRT) | ||
260 | |||
261 | #define MX51_AIPS2_IO_ADDRESS(x) \ | ||
262 | (((x) - MX51_AIPS2_BASE_ADDR) + MX51_AIPS2_BASE_ADDR_VIRT) | ||
263 | |||
264 | #define MX51_NFC_AXI_IO_ADDRESS(x) \ | ||
265 | (((x) - MX51_NFC_AXI_BASE_ADDR) + MX51_NFC_AXI_BASE_ADDR_VIRT) | ||
266 | |||
267 | #define MX51_IS_MEM_DEVICE_NONSHARED(x) 0 | ||
268 | |||
269 | /* | ||
270 | * DMA request assignments | ||
271 | */ | ||
272 | #define MX51_DMA_REQ_SSI3_TX1 47 | ||
273 | #define MX51_DMA_REQ_SSI3_RX1 46 | ||
274 | #define MX51_DMA_REQ_SPDIF 45 | ||
275 | #define MX51_DMA_REQ_UART3_TX 44 | ||
276 | #define MX51_DMA_REQ_UART3_RX 43 | ||
277 | #define MX51_DMA_REQ_SLIM_B_TX 42 | ||
278 | #define MX51_DMA_REQ_SDHC4 41 | ||
279 | #define MX51_DMA_REQ_SDHC3 40 | ||
280 | #define MX51_DMA_REQ_CSPI_TX 39 | ||
281 | #define MX51_DMA_REQ_CSPI_RX 38 | ||
282 | #define MX51_DMA_REQ_SSI3_TX2 37 | ||
283 | #define MX51_DMA_REQ_IPU 36 | ||
284 | #define MX51_DMA_REQ_SSI3_RX2 35 | ||
285 | #define MX51_DMA_REQ_EPIT2 34 | ||
286 | #define MX51_DMA_REQ_CTI2_1 33 | ||
287 | #define MX51_DMA_REQ_EMI_WR 32 | ||
288 | #define MX51_DMA_REQ_CTI2_0 31 | ||
289 | #define MX51_DMA_REQ_EMI_RD 30 | ||
290 | #define MX51_DMA_REQ_SSI1_TX1 29 | ||
291 | #define MX51_DMA_REQ_SSI1_RX1 28 | ||
292 | #define MX51_DMA_REQ_SSI1_TX2 27 | ||
293 | #define MX51_DMA_REQ_SSI1_RX2 26 | ||
294 | #define MX51_DMA_REQ_SSI2_TX1 25 | ||
295 | #define MX51_DMA_REQ_SSI2_RX1 24 | ||
296 | #define MX51_DMA_REQ_SSI2_TX2 23 | ||
297 | #define MX51_DMA_REQ_SSI2_RX2 22 | ||
298 | #define MX51_DMA_REQ_SDHC2 21 | ||
299 | #define MX51_DMA_REQ_SDHC1 20 | ||
300 | #define MX51_DMA_REQ_UART1_TX 19 | ||
301 | #define MX51_DMA_REQ_UART1_RX 18 | ||
302 | #define MX51_DMA_REQ_UART2_TX 17 | ||
303 | #define MX51_DMA_REQ_UART2_RX 16 | ||
304 | #define MX51_DMA_REQ_GPU 15 | ||
305 | #define MX51_DMA_REQ_EXTREQ1 14 | ||
306 | #define MX51_DMA_REQ_FIRI_TX 13 | ||
307 | #define MX51_DMA_REQ_FIRI_RX 12 | ||
308 | #define MX51_DMA_REQ_HS_I2C_RX 11 | ||
309 | #define MX51_DMA_REQ_HS_I2C_TX 10 | ||
310 | #define MX51_DMA_REQ_CSPI2_TX 9 | ||
311 | #define MX51_DMA_REQ_CSPI2_RX 8 | ||
312 | #define MX51_DMA_REQ_CSPI1_TX 7 | ||
313 | #define MX51_DMA_REQ_CSPI1_RX 6 | ||
314 | #define MX51_DMA_REQ_SLIM_B 5 | ||
315 | #define MX51_DMA_REQ_ATA_TX_END 4 | ||
316 | #define MX51_DMA_REQ_ATA_TX 3 | ||
317 | #define MX51_DMA_REQ_ATA_RX 2 | ||
318 | #define MX51_DMA_REQ_GPC 1 | ||
319 | #define MX51_DMA_REQ_VPU 0 | ||
320 | |||
321 | /* | ||
322 | * Interrupt numbers | ||
323 | */ | ||
324 | #define MX51_MXC_INT_BASE 0 | ||
325 | #define MX51_MXC_INT_RESV0 0 | ||
326 | #define MX51_MXC_INT_MMC_SDHC1 1 | ||
327 | #define MX51_MXC_INT_MMC_SDHC2 2 | ||
328 | #define MX51_MXC_INT_MMC_SDHC3 3 | ||
329 | #define MX51_MXC_INT_MMC_SDHC4 4 | ||
330 | #define MX51_MXC_INT_RESV5 5 | ||
331 | #define MX51_MXC_INT_SDMA 6 | ||
332 | #define MX51_MXC_INT_IOMUX 7 | ||
333 | #define MX51_MXC_INT_NFC 8 | ||
334 | #define MX51_MXC_INT_VPU 9 | ||
335 | #define MX51_MXC_INT_IPU_ERR 10 | ||
336 | #define MX51_MXC_INT_IPU_SYN 11 | ||
337 | #define MX51_MXC_INT_GPU 12 | ||
338 | #define MX51_MXC_INT_RESV13 13 | ||
339 | #define MX51_MXC_INT_USB_H1 14 | ||
340 | #define MX51_MXC_INT_EMI 15 | ||
341 | #define MX51_MXC_INT_USB_H2 16 | ||
342 | #define MX51_MXC_INT_USB_H3 17 | ||
343 | #define MX51_MXC_INT_USB_OTG 18 | ||
344 | #define MX51_MXC_INT_SAHARA_H0 19 | ||
345 | #define MX51_MXC_INT_SAHARA_H1 20 | ||
346 | #define MX51_MXC_INT_SCC_SMN 21 | ||
347 | #define MX51_MXC_INT_SCC_STZ 22 | ||
348 | #define MX51_MXC_INT_SCC_SCM 23 | ||
349 | #define MX51_MXC_INT_SRTC_NTZ 24 | ||
350 | #define MX51_MXC_INT_SRTC_TZ 25 | ||
351 | #define MX51_MXC_INT_RTIC 26 | ||
352 | #define MX51_MXC_INT_CSU 27 | ||
353 | #define MX51_MXC_INT_SLIM_B 28 | ||
354 | #define MX51_MXC_INT_SSI1 29 | ||
355 | #define MX51_MXC_INT_SSI2 30 | ||
356 | #define MX51_MXC_INT_UART1 31 | ||
357 | #define MX51_MXC_INT_UART2 32 | ||
358 | #define MX51_MXC_INT_UART3 33 | ||
359 | #define MX51_MXC_INT_RESV34 34 | ||
360 | #define MX51_MXC_INT_RESV35 35 | ||
361 | #define MX51_MXC_INT_CSPI1 36 | ||
362 | #define MX51_MXC_INT_CSPI2 37 | ||
363 | #define MX51_MXC_INT_CSPI 38 | ||
364 | #define MX51_MXC_INT_GPT 39 | ||
365 | #define MX51_MXC_INT_EPIT1 40 | ||
366 | #define MX51_MXC_INT_EPIT2 41 | ||
367 | #define MX51_MXC_INT_GPIO1_INT7 42 | ||
368 | #define MX51_MXC_INT_GPIO1_INT6 43 | ||
369 | #define MX51_MXC_INT_GPIO1_INT5 44 | ||
370 | #define MX51_MXC_INT_GPIO1_INT4 45 | ||
371 | #define MX51_MXC_INT_GPIO1_INT3 46 | ||
372 | #define MX51_MXC_INT_GPIO1_INT2 47 | ||
373 | #define MX51_MXC_INT_GPIO1_INT1 48 | ||
374 | #define MX51_MXC_INT_GPIO1_INT0 49 | ||
375 | #define MX51_MXC_INT_GPIO1_LOW 50 | ||
376 | #define MX51_MXC_INT_GPIO1_HIGH 51 | ||
377 | #define MX51_MXC_INT_GPIO2_LOW 52 | ||
378 | #define MX51_MXC_INT_GPIO2_HIGH 53 | ||
379 | #define MX51_MXC_INT_GPIO3_LOW 54 | ||
380 | #define MX51_MXC_INT_GPIO3_HIGH 55 | ||
381 | #define MX51_MXC_INT_GPIO4_LOW 56 | ||
382 | #define MX51_MXC_INT_GPIO4_HIGH 57 | ||
383 | #define MX51_MXC_INT_WDOG1 58 | ||
384 | #define MX51_MXC_INT_WDOG2 59 | ||
385 | #define MX51_MXC_INT_KPP 60 | ||
386 | #define MX51_MXC_INT_PWM1 61 | ||
387 | #define MX51_MXC_INT_I2C1 62 | ||
388 | #define MX51_MXC_INT_I2C2 63 | ||
389 | #define MX51_MXC_INT_HS_I2C 64 | ||
390 | #define MX51_MXC_INT_RESV65 65 | ||
391 | #define MX51_MXC_INT_RESV66 66 | ||
392 | #define MX51_MXC_INT_SIM_IPB 67 | ||
393 | #define MX51_MXC_INT_SIM_DAT 68 | ||
394 | #define MX51_MXC_INT_IIM 69 | ||
395 | #define MX51_MXC_INT_ATA 70 | ||
396 | #define MX51_MXC_INT_CCM1 71 | ||
397 | #define MX51_MXC_INT_CCM2 72 | ||
398 | #define MX51_MXC_INT_GPC1 73 | ||
399 | #define MX51_MXC_INT_GPC2 74 | ||
400 | #define MX51_MXC_INT_SRC 75 | ||
401 | #define MX51_MXC_INT_NM 76 | ||
402 | #define MX51_MXC_INT_PMU 77 | ||
403 | #define MX51_MXC_INT_CTI_IRQ 78 | ||
404 | #define MX51_MXC_INT_CTI1_TG0 79 | ||
405 | #define MX51_MXC_INT_CTI1_TG1 80 | ||
406 | #define MX51_MXC_INT_MCG_ERR 81 | ||
407 | #define MX51_MXC_INT_MCG_TMR 82 | ||
408 | #define MX51_MXC_INT_MCG_FUNC 83 | ||
409 | #define MX51_MXC_INT_GPU2_IRQ 84 | ||
410 | #define MX51_MXC_INT_GPU2_BUSY 85 | ||
411 | #define MX51_MXC_INT_RESV86 86 | ||
412 | #define MX51_MXC_INT_FEC 87 | ||
413 | #define MX51_MXC_INT_OWIRE 88 | ||
414 | #define MX51_MXC_INT_CTI1_TG2 89 | ||
415 | #define MX51_MXC_INT_SJC 90 | ||
416 | #define MX51_MXC_INT_SPDIF 91 | ||
417 | #define MX51_MXC_INT_TVE 92 | ||
418 | #define MX51_MXC_INT_FIRI 93 | ||
419 | #define MX51_MXC_INT_PWM2 94 | ||
420 | #define MX51_MXC_INT_SLIM_EXP 95 | ||
421 | #define MX51_MXC_INT_SSI3 96 | ||
422 | #define MX51_MXC_INT_EMI_BOOT 97 | ||
423 | #define MX51_MXC_INT_CTI1_TG3 98 | ||
424 | #define MX51_MXC_INT_SMC_RX 99 | ||
425 | #define MX51_MXC_INT_VPU_IDLE 100 | ||
426 | #define MX51_MXC_INT_EMI_NFC 101 | ||
427 | #define MX51_MXC_INT_GPU_IDLE 102 | ||
428 | |||
429 | /* silicon revisions specific to i.MX51 */ | ||
430 | #define MX51_CHIP_REV_1_0 0x10 | ||
431 | #define MX51_CHIP_REV_1_1 0x11 | ||
432 | #define MX51_CHIP_REV_1_2 0x12 | ||
433 | #define MX51_CHIP_REV_1_3 0x13 | ||
434 | #define MX51_CHIP_REV_2_0 0x20 | ||
435 | #define MX51_CHIP_REV_2_1 0x21 | ||
436 | #define MX51_CHIP_REV_2_2 0x22 | ||
437 | #define MX51_CHIP_REV_2_3 0x23 | ||
438 | #define MX51_CHIP_REV_3_0 0x30 | ||
439 | #define MX51_CHIP_REV_3_1 0x31 | ||
440 | #define MX51_CHIP_REV_3_2 0x32 | ||
441 | |||
442 | /* Mandatory defines used globally */ | ||
443 | |||
444 | #if !defined(__ASSEMBLY__) && !defined(__MXC_BOOT_UNCOMPRESS) | ||
445 | |||
446 | extern unsigned int system_rev; | ||
447 | |||
448 | static inline unsigned int mx51_revision(void) | ||
449 | { | ||
450 | return system_rev; | ||
451 | } | ||
452 | #endif | ||
453 | |||
454 | #endif /* __ASM_ARCH_MXC_MX51_H__ */ | ||
diff --git a/arch/arm/plat-mxc/include/mach/mxc.h b/arch/arm/plat-mxc/include/mach/mxc.h index 51990536b84..a790bf21297 100644 --- a/arch/arm/plat-mxc/include/mach/mxc.h +++ b/arch/arm/plat-mxc/include/mach/mxc.h | |||
@@ -30,6 +30,7 @@ | |||
30 | #define MXC_CPU_MX27 27 | 30 | #define MXC_CPU_MX27 27 |
31 | #define MXC_CPU_MX31 31 | 31 | #define MXC_CPU_MX31 31 |
32 | #define MXC_CPU_MX35 35 | 32 | #define MXC_CPU_MX35 35 |
33 | #define MXC_CPU_MX51 51 | ||
33 | #define MXC_CPU_MXC91231 91231 | 34 | #define MXC_CPU_MXC91231 91231 |
34 | 35 | ||
35 | #ifndef __ASSEMBLY__ | 36 | #ifndef __ASSEMBLY__ |
@@ -108,6 +109,18 @@ extern unsigned int __mxc_cpu_type; | |||
108 | # define cpu_is_mx35() (0) | 109 | # define cpu_is_mx35() (0) |
109 | #endif | 110 | #endif |
110 | 111 | ||
112 | #ifdef CONFIG_ARCH_MX5 | ||
113 | # ifdef mxc_cpu_type | ||
114 | # undef mxc_cpu_type | ||
115 | # define mxc_cpu_type __mxc_cpu_type | ||
116 | # else | ||
117 | # define mxc_cpu_type MXC_CPU_MX51 | ||
118 | # endif | ||
119 | # define cpu_is_mx51() (mxc_cpu_type == MXC_CPU_MX51) | ||
120 | #else | ||
121 | # define cpu_is_mx51() (0) | ||
122 | #endif | ||
123 | |||
111 | #ifdef CONFIG_ARCH_MXC91231 | 124 | #ifdef CONFIG_ARCH_MXC91231 |
112 | # ifdef mxc_cpu_type | 125 | # ifdef mxc_cpu_type |
113 | # undef mxc_cpu_type | 126 | # undef mxc_cpu_type |
@@ -121,9 +134,10 @@ extern unsigned int __mxc_cpu_type; | |||
121 | #endif | 134 | #endif |
122 | 135 | ||
123 | #if defined(CONFIG_ARCH_MX3) || defined(CONFIG_ARCH_MX2) | 136 | #if defined(CONFIG_ARCH_MX3) || defined(CONFIG_ARCH_MX2) |
124 | #define CSCR_U(n) (IO_ADDRESS(WEIM_BASE_ADDR) + n * 0x10) | 137 | /* These are deprecated, use mx[23][157]_setup_weimcs instead. */ |
125 | #define CSCR_L(n) (IO_ADDRESS(WEIM_BASE_ADDR) + n * 0x10 + 0x4) | 138 | #define CSCR_U(n) (IO_ADDRESS(WEIM_BASE_ADDR + n * 0x10)) |
126 | #define CSCR_A(n) (IO_ADDRESS(WEIM_BASE_ADDR) + n * 0x10 + 0x8) | 139 | #define CSCR_L(n) (IO_ADDRESS(WEIM_BASE_ADDR + n * 0x10 + 0x4)) |
140 | #define CSCR_A(n) (IO_ADDRESS(WEIM_BASE_ADDR + n * 0x10 + 0x8)) | ||
127 | #endif | 141 | #endif |
128 | 142 | ||
129 | #define cpu_is_mx3() (cpu_is_mx31() || cpu_is_mx35() || cpu_is_mxc91231()) | 143 | #define cpu_is_mx3() (cpu_is_mx31() || cpu_is_mx35() || cpu_is_mxc91231()) |
diff --git a/arch/arm/plat-mxc/include/mach/mxc91231.h b/arch/arm/plat-mxc/include/mach/mxc91231.h index 81484d1ef23..5182b986b78 100644 --- a/arch/arm/plat-mxc/include/mach/mxc91231.h +++ b/arch/arm/plat-mxc/include/mach/mxc91231.h | |||
@@ -184,60 +184,22 @@ | |||
184 | #define MXC91231_CS4_BASE_ADDR 0xB4000000 | 184 | #define MXC91231_CS4_BASE_ADDR 0xB4000000 |
185 | #define MXC91231_CS5_BASE_ADDR 0xB6000000 | 185 | #define MXC91231_CS5_BASE_ADDR 0xB6000000 |
186 | 186 | ||
187 | /* Is given address belongs to the specified memory region? */ | ||
188 | #define ADDRESS_IN_REGION(addr, start, size) \ | ||
189 | (((addr) >= (start)) && ((addr) < (start)+(size))) | ||
190 | |||
191 | /* Is given address belongs to the specified named `module'? */ | ||
192 | #define MXC91231_IS_MODULE(addr, module) \ | ||
193 | ADDRESS_IN_REGION(addr, MXC91231_ ## module ## _BASE_ADDR, \ | ||
194 | MXC91231_ ## module ## _SIZE) | ||
195 | /* | 187 | /* |
196 | * This macro defines the physical to virtual address mapping for all the | 188 | * This macro defines the physical to virtual address mapping for all the |
197 | * peripheral modules. It is used by passing in the physical address as x | 189 | * peripheral modules. It is used by passing in the physical address as x |
198 | * and returning the virtual address. If the physical address is not mapped, | 190 | * and returning the virtual address. If the physical address is not mapped, |
199 | * it returns 0xDEADBEEF | 191 | * it returns 0. |
200 | */ | ||
201 | |||
202 | #define MXC91231_IO_ADDRESS(x) \ | ||
203 | (void __iomem *) \ | ||
204 | (MXC91231_IS_MODULE(x, L2CC) ? MXC91231_L2CC_IO_ADDRESS(x) : \ | ||
205 | MXC91231_IS_MODULE(x, AIPS1) ? MXC91231_AIPS1_IO_ADDRESS(x) : \ | ||
206 | MXC91231_IS_MODULE(x, AIPS2) ? MXC91231_AIPS2_IO_ADDRESS(x) : \ | ||
207 | MXC91231_IS_MODULE(x, SPBA0) ? MXC91231_SPBA0_IO_ADDRESS(x) : \ | ||
208 | MXC91231_IS_MODULE(x, SPBA1) ? MXC91231_SPBA1_IO_ADDRESS(x) : \ | ||
209 | MXC91231_IS_MODULE(x, ROMP) ? MXC91231_ROMP_IO_ADDRESS(x) : \ | ||
210 | MXC91231_IS_MODULE(x, AVIC) ? MXC91231_AVIC_IO_ADDRESS(x) : \ | ||
211 | MXC91231_IS_MODULE(x, X_MEMC) ? MXC91231_X_MEMC_IO_ADDRESS(x) : \ | ||
212 | 0xDEADBEEF) | ||
213 | |||
214 | |||
215 | /* | ||
216 | * define the address mapping macros: in physical address order | ||
217 | */ | 192 | */ |
218 | #define MXC91231_L2CC_IO_ADDRESS(x) \ | ||
219 | (((x) - MXC91231_L2CC_BASE_ADDR) + MXC91231_L2CC_BASE_ADDR_VIRT) | ||
220 | |||
221 | #define MXC91231_AIPS1_IO_ADDRESS(x) \ | ||
222 | (((x) - MXC91231_AIPS1_BASE_ADDR) + MXC91231_AIPS1_BASE_ADDR_VIRT) | ||
223 | |||
224 | #define MXC91231_SPBA0_IO_ADDRESS(x) \ | ||
225 | (((x) - MXC91231_SPBA0_BASE_ADDR) + MXC91231_SPBA0_BASE_ADDR_VIRT) | ||
226 | |||
227 | #define MXC91231_SPBA1_IO_ADDRESS(x) \ | ||
228 | (((x) - MXC91231_SPBA1_BASE_ADDR) + MXC91231_SPBA1_BASE_ADDR_VIRT) | ||
229 | |||
230 | #define MXC91231_AIPS2_IO_ADDRESS(x) \ | ||
231 | (((x) - MXC91231_AIPS2_BASE_ADDR) + MXC91231_AIPS2_BASE_ADDR_VIRT) | ||
232 | |||
233 | #define MXC91231_ROMP_IO_ADDRESS(x) \ | ||
234 | (((x) - MXC91231_ROMP_BASE_ADDR) + MXC91231_ROMP_BASE_ADDR_VIRT) | ||
235 | |||
236 | #define MXC91231_AVIC_IO_ADDRESS(x) \ | ||
237 | (((x) - MXC91231_AVIC_BASE_ADDR) + MXC91231_AVIC_BASE_ADDR_VIRT) | ||
238 | 193 | ||
239 | #define MXC91231_X_MEMC_IO_ADDRESS(x) \ | 194 | #define MXC91231_IO_ADDRESS(x) ( \ |
240 | (((x) - MXC91231_X_MEMC_BASE_ADDR) + MXC91231_X_MEMC_BASE_ADDR_VIRT) | 195 | IMX_IO_ADDRESS(x, MXC91231_L2CC) ?: \ |
196 | IMX_IO_ADDRESS(x, MXC91231_X_MEMC) ?: \ | ||
197 | IMX_IO_ADDRESS(x, MXC91231_ROMP) ?: \ | ||
198 | IMX_IO_ADDRESS(x, MXC91231_AVIC) ?: \ | ||
199 | IMX_IO_ADDRESS(x, MXC91231_AIPS1) ?: \ | ||
200 | IMX_IO_ADDRESS(x, MXC91231_SPBA0) ?: \ | ||
201 | IMX_IO_ADDRESS(x, MXC91231_SPBA1) ?: \ | ||
202 | IMX_IO_ADDRESS(x, MXC91231_AIPS2)) | ||
241 | 203 | ||
242 | /* | 204 | /* |
243 | * Interrupt numbers | 205 | * Interrupt numbers |
diff --git a/arch/arm/plat-mxc/include/mach/mxc_ehci.h b/arch/arm/plat-mxc/include/mach/mxc_ehci.h index 8f796239393..4b9b8368c0c 100644 --- a/arch/arm/plat-mxc/include/mach/mxc_ehci.h +++ b/arch/arm/plat-mxc/include/mach/mxc_ehci.h | |||
@@ -22,6 +22,10 @@ | |||
22 | #define MXC_EHCI_POWER_PINS_ENABLED (1 << 5) | 22 | #define MXC_EHCI_POWER_PINS_ENABLED (1 << 5) |
23 | #define MXC_EHCI_TTL_ENABLED (1 << 6) | 23 | #define MXC_EHCI_TTL_ENABLED (1 << 6) |
24 | 24 | ||
25 | #define MXC_EHCI_INTERNAL_PHY (1 << 7) | ||
26 | #define MXC_EHCI_IPPUE_DOWN (1 << 8) | ||
27 | #define MXC_EHCI_IPPUE_UP (1 << 9) | ||
28 | |||
25 | struct mxc_usbh_platform_data { | 29 | struct mxc_usbh_platform_data { |
26 | int (*init)(struct platform_device *pdev); | 30 | int (*init)(struct platform_device *pdev); |
27 | int (*exit)(struct platform_device *pdev); | 31 | int (*exit)(struct platform_device *pdev); |
diff --git a/arch/arm/plat-mxc/include/mach/ssi.h b/arch/arm/plat-mxc/include/mach/ssi.h new file mode 100644 index 00000000000..c34ded523f1 --- /dev/null +++ b/arch/arm/plat-mxc/include/mach/ssi.h | |||
@@ -0,0 +1,18 @@ | |||
1 | #ifndef __MACH_SSI_H | ||
2 | #define __MACH_SSI_H | ||
3 | |||
4 | struct snd_ac97; | ||
5 | |||
6 | extern unsigned char imx_ssi_fiq_start, imx_ssi_fiq_end; | ||
7 | extern unsigned long imx_ssi_fiq_base, imx_ssi_fiq_tx_buffer, imx_ssi_fiq_rx_buffer; | ||
8 | |||
9 | struct imx_ssi_platform_data { | ||
10 | unsigned int flags; | ||
11 | #define IMX_SSI_DMA (1 << 0) | ||
12 | #define IMX_SSI_USE_AC97 (1 << 1) | ||
13 | void (*ac97_reset) (struct snd_ac97 *ac97); | ||
14 | void (*ac97_warm_reset)(struct snd_ac97 *ac97); | ||
15 | }; | ||
16 | |||
17 | #endif /* __MACH_SSI_H */ | ||
18 | |||
diff --git a/arch/arm/plat-mxc/include/mach/timex.h b/arch/arm/plat-mxc/include/mach/timex.h index 527a6c24788..024416ed11c 100644 --- a/arch/arm/plat-mxc/include/mach/timex.h +++ b/arch/arm/plat-mxc/include/mach/timex.h | |||
@@ -28,6 +28,8 @@ | |||
28 | #define CLOCK_TICK_RATE 16625000 | 28 | #define CLOCK_TICK_RATE 16625000 |
29 | #elif defined CONFIG_ARCH_MX25 | 29 | #elif defined CONFIG_ARCH_MX25 |
30 | #define CLOCK_TICK_RATE 16000000 | 30 | #define CLOCK_TICK_RATE 16000000 |
31 | #elif defined CONFIG_ARCH_MX5 | ||
32 | #define CLOCK_TICK_RATE 8000000 | ||
31 | #elif defined CONFIG_ARCH_MXC91231 | 33 | #elif defined CONFIG_ARCH_MXC91231 |
32 | #define CLOCK_TICK_RATE 13000000 | 34 | #define CLOCK_TICK_RATE 13000000 |
33 | #endif | 35 | #endif |
diff --git a/arch/arm/plat-mxc/include/mach/uncompress.h b/arch/arm/plat-mxc/include/mach/uncompress.h index 4d5d395ad63..52e476a150c 100644 --- a/arch/arm/plat-mxc/include/mach/uncompress.h +++ b/arch/arm/plat-mxc/include/mach/uncompress.h | |||
@@ -1,8 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/plat-mxc/include/mach/uncompress.h | 2 | * arch/arm/plat-mxc/include/mach/uncompress.h |
3 | * | 3 | * |
4 | * | ||
5 | * | ||
6 | * Copyright (C) 1999 ARM Limited | 4 | * Copyright (C) 1999 ARM Limited |
7 | * Copyright (C) Shane Nay (shane@minirl.com) | 5 | * Copyright (C) Shane Nay (shane@minirl.com) |
8 | * | 6 | * |
@@ -25,7 +23,6 @@ | |||
25 | 23 | ||
26 | #define __MXC_BOOT_UNCOMPRESS | 24 | #define __MXC_BOOT_UNCOMPRESS |
27 | 25 | ||
28 | #include <mach/hardware.h> | ||
29 | #include <asm/mach-types.h> | 26 | #include <asm/mach-types.h> |
30 | 27 | ||
31 | static unsigned long uart_base; | 28 | static unsigned long uart_base; |
@@ -60,7 +57,9 @@ static void putc(int ch) | |||
60 | UART(TXR) = ch; | 57 | UART(TXR) = ch; |
61 | } | 58 | } |
62 | 59 | ||
63 | #define flush() do { } while (0) | 60 | static inline void flush(void) |
61 | { | ||
62 | } | ||
64 | 63 | ||
65 | #define MX1_UART1_BASE_ADDR 0x00206000 | 64 | #define MX1_UART1_BASE_ADDR 0x00206000 |
66 | #define MX25_UART1_BASE_ADDR 0x43f90000 | 65 | #define MX25_UART1_BASE_ADDR 0x43f90000 |
diff --git a/arch/arm/plat-mxc/iomux-mx1-mx2.c b/arch/arm/plat-mxc/iomux-mx1-mx2.c deleted file mode 100644 index a37163ce280..00000000000 --- a/arch/arm/plat-mxc/iomux-mx1-mx2.c +++ /dev/null | |||
@@ -1,157 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-mxc/generic.c | ||
3 | * | ||
4 | * author: Sascha Hauer | ||
5 | * Created: april 20th, 2004 | ||
6 | * Copyright: Synertronixx GmbH | ||
7 | * | ||
8 | * Common code for i.MX machines | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License as published by | ||
12 | * the Free Software Foundation; either version 2 of the License, or | ||
13 | * (at your option) any later version. | ||
14 | * | ||
15 | * This program is distributed in the hope that it will be useful, | ||
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
18 | * GNU General Public License for more details. | ||
19 | * | ||
20 | * You should have received a copy of the GNU General Public License | ||
21 | * along with this program; if not, write to the Free Software | ||
22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
23 | * | ||
24 | */ | ||
25 | |||
26 | #include <linux/errno.h> | ||
27 | #include <linux/init.h> | ||
28 | #include <linux/kernel.h> | ||
29 | #include <linux/module.h> | ||
30 | #include <linux/string.h> | ||
31 | #include <linux/gpio.h> | ||
32 | |||
33 | #include <mach/hardware.h> | ||
34 | #include <asm/mach/map.h> | ||
35 | #include <mach/iomux.h> | ||
36 | |||
37 | void mxc_gpio_mode(int gpio_mode) | ||
38 | { | ||
39 | unsigned int pin = gpio_mode & GPIO_PIN_MASK; | ||
40 | unsigned int port = (gpio_mode & GPIO_PORT_MASK) >> GPIO_PORT_SHIFT; | ||
41 | unsigned int ocr = (gpio_mode & GPIO_OCR_MASK) >> GPIO_OCR_SHIFT; | ||
42 | unsigned int tmp; | ||
43 | |||
44 | /* Pullup enable */ | ||
45 | tmp = __raw_readl(VA_GPIO_BASE + MXC_PUEN(port)); | ||
46 | if (gpio_mode & GPIO_PUEN) | ||
47 | tmp |= (1 << pin); | ||
48 | else | ||
49 | tmp &= ~(1 << pin); | ||
50 | __raw_writel(tmp, VA_GPIO_BASE + MXC_PUEN(port)); | ||
51 | |||
52 | /* Data direction */ | ||
53 | tmp = __raw_readl(VA_GPIO_BASE + MXC_DDIR(port)); | ||
54 | if (gpio_mode & GPIO_OUT) | ||
55 | tmp |= 1 << pin; | ||
56 | else | ||
57 | tmp &= ~(1 << pin); | ||
58 | __raw_writel(tmp, VA_GPIO_BASE + MXC_DDIR(port)); | ||
59 | |||
60 | /* Primary / alternate function */ | ||
61 | tmp = __raw_readl(VA_GPIO_BASE + MXC_GPR(port)); | ||
62 | if (gpio_mode & GPIO_AF) | ||
63 | tmp |= (1 << pin); | ||
64 | else | ||
65 | tmp &= ~(1 << pin); | ||
66 | __raw_writel(tmp, VA_GPIO_BASE + MXC_GPR(port)); | ||
67 | |||
68 | /* use as gpio? */ | ||
69 | tmp = __raw_readl(VA_GPIO_BASE + MXC_GIUS(port)); | ||
70 | if (gpio_mode & (GPIO_PF | GPIO_AF)) | ||
71 | tmp &= ~(1 << pin); | ||
72 | else | ||
73 | tmp |= (1 << pin); | ||
74 | __raw_writel(tmp, VA_GPIO_BASE + MXC_GIUS(port)); | ||
75 | |||
76 | if (pin < 16) { | ||
77 | tmp = __raw_readl(VA_GPIO_BASE + MXC_OCR1(port)); | ||
78 | tmp &= ~(3 << (pin * 2)); | ||
79 | tmp |= (ocr << (pin * 2)); | ||
80 | __raw_writel(tmp, VA_GPIO_BASE + MXC_OCR1(port)); | ||
81 | |||
82 | tmp = __raw_readl(VA_GPIO_BASE + MXC_ICONFA1(port)); | ||
83 | tmp &= ~(3 << (pin * 2)); | ||
84 | tmp |= ((gpio_mode >> GPIO_AOUT_SHIFT) & 3) << (pin * 2); | ||
85 | __raw_writel(tmp, VA_GPIO_BASE + MXC_ICONFA1(port)); | ||
86 | |||
87 | tmp = __raw_readl(VA_GPIO_BASE + MXC_ICONFB1(port)); | ||
88 | tmp &= ~(3 << (pin * 2)); | ||
89 | tmp |= ((gpio_mode >> GPIO_BOUT_SHIFT) & 3) << (pin * 2); | ||
90 | __raw_writel(tmp, VA_GPIO_BASE + MXC_ICONFB1(port)); | ||
91 | } else { | ||
92 | pin -= 16; | ||
93 | |||
94 | tmp = __raw_readl(VA_GPIO_BASE + MXC_OCR2(port)); | ||
95 | tmp &= ~(3 << (pin * 2)); | ||
96 | tmp |= (ocr << (pin * 2)); | ||
97 | __raw_writel(tmp, VA_GPIO_BASE + MXC_OCR2(port)); | ||
98 | |||
99 | tmp = __raw_readl(VA_GPIO_BASE + MXC_ICONFA2(port)); | ||
100 | tmp &= ~(3 << (pin * 2)); | ||
101 | tmp |= ((gpio_mode >> GPIO_AOUT_SHIFT) & 3) << (pin * 2); | ||
102 | __raw_writel(tmp, VA_GPIO_BASE + MXC_ICONFA2(port)); | ||
103 | |||
104 | tmp = __raw_readl(VA_GPIO_BASE + MXC_ICONFB2(port)); | ||
105 | tmp &= ~(3 << (pin * 2)); | ||
106 | tmp |= ((gpio_mode >> GPIO_BOUT_SHIFT) & 3) << (pin * 2); | ||
107 | __raw_writel(tmp, VA_GPIO_BASE + MXC_ICONFB2(port)); | ||
108 | } | ||
109 | } | ||
110 | EXPORT_SYMBOL(mxc_gpio_mode); | ||
111 | |||
112 | int mxc_gpio_setup_multiple_pins(const int *pin_list, unsigned count, | ||
113 | const char *label) | ||
114 | { | ||
115 | const int *p = pin_list; | ||
116 | int i; | ||
117 | unsigned gpio; | ||
118 | unsigned mode; | ||
119 | int ret = -EINVAL; | ||
120 | |||
121 | for (i = 0; i < count; i++) { | ||
122 | gpio = *p & (GPIO_PIN_MASK | GPIO_PORT_MASK); | ||
123 | mode = *p & ~(GPIO_PIN_MASK | GPIO_PORT_MASK); | ||
124 | |||
125 | if (gpio >= (GPIO_PORT_MAX + 1) * 32) | ||
126 | goto setup_error; | ||
127 | |||
128 | ret = gpio_request(gpio, label); | ||
129 | if (ret) | ||
130 | goto setup_error; | ||
131 | |||
132 | mxc_gpio_mode(gpio | mode); | ||
133 | |||
134 | p++; | ||
135 | } | ||
136 | return 0; | ||
137 | |||
138 | setup_error: | ||
139 | mxc_gpio_release_multiple_pins(pin_list, i); | ||
140 | return ret; | ||
141 | } | ||
142 | EXPORT_SYMBOL(mxc_gpio_setup_multiple_pins); | ||
143 | |||
144 | void mxc_gpio_release_multiple_pins(const int *pin_list, int count) | ||
145 | { | ||
146 | const int *p = pin_list; | ||
147 | int i; | ||
148 | |||
149 | for (i = 0; i < count; i++) { | ||
150 | unsigned gpio = *p & (GPIO_PIN_MASK | GPIO_PORT_MASK); | ||
151 | gpio_free(gpio); | ||
152 | p++; | ||
153 | } | ||
154 | |||
155 | } | ||
156 | EXPORT_SYMBOL(mxc_gpio_release_multiple_pins); | ||
157 | |||
diff --git a/arch/arm/plat-mxc/iomux-v1.c b/arch/arm/plat-mxc/iomux-v1.c new file mode 100644 index 00000000000..960a02cbcba --- /dev/null +++ b/arch/arm/plat-mxc/iomux-v1.c | |||
@@ -0,0 +1,238 @@ | |||
1 | /* | ||
2 | * arch/arm/plat-mxc/iomux-v1.c | ||
3 | * | ||
4 | * Copyright (C) 2004 Sascha Hauer, Synertronixx GmbH | ||
5 | * Copyright (C) 2009 Uwe Kleine-Koenig, Pengutronix | ||
6 | * | ||
7 | * Common code for i.MX1, i.MX21 and i.MX27 | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License as published by | ||
11 | * the Free Software Foundation; either version 2 of the License, or | ||
12 | * (at your option) any later version. | ||
13 | * | ||
14 | * This program is distributed in the hope that it will be useful, | ||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | * GNU General Public License for more details. | ||
18 | * | ||
19 | * You should have received a copy of the GNU General Public License | ||
20 | * along with this program; if not, write to the Free Software Foundation, Inc., | ||
21 | * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | ||
22 | */ | ||
23 | |||
24 | #include <linux/errno.h> | ||
25 | #include <linux/init.h> | ||
26 | #include <linux/kernel.h> | ||
27 | #include <linux/module.h> | ||
28 | #include <linux/string.h> | ||
29 | #include <linux/gpio.h> | ||
30 | |||
31 | #include <mach/hardware.h> | ||
32 | #include <asm/mach/map.h> | ||
33 | #include <mach/iomux-v1.h> | ||
34 | |||
35 | static void __iomem *imx_iomuxv1_baseaddr; | ||
36 | static unsigned imx_iomuxv1_numports; | ||
37 | |||
38 | static inline unsigned long imx_iomuxv1_readl(unsigned offset) | ||
39 | { | ||
40 | return __raw_readl(imx_iomuxv1_baseaddr + offset); | ||
41 | } | ||
42 | |||
43 | static inline void imx_iomuxv1_writel(unsigned long val, unsigned offset) | ||
44 | { | ||
45 | __raw_writel(val, imx_iomuxv1_baseaddr + offset); | ||
46 | } | ||
47 | |||
48 | static inline void imx_iomuxv1_rmwl(unsigned offset, | ||
49 | unsigned long mask, unsigned long value) | ||
50 | { | ||
51 | unsigned long reg = imx_iomuxv1_readl(offset); | ||
52 | |||
53 | reg &= ~mask; | ||
54 | reg |= value; | ||
55 | |||
56 | imx_iomuxv1_writel(reg, offset); | ||
57 | } | ||
58 | |||
59 | static inline void imx_iomuxv1_set_puen( | ||
60 | unsigned int port, unsigned int pin, int on) | ||
61 | { | ||
62 | unsigned long mask = 1 << pin; | ||
63 | |||
64 | imx_iomuxv1_rmwl(MXC_PUEN(port), mask, on ? mask : 0); | ||
65 | } | ||
66 | |||
67 | static inline void imx_iomuxv1_set_ddir( | ||
68 | unsigned int port, unsigned int pin, int out) | ||
69 | { | ||
70 | unsigned long mask = 1 << pin; | ||
71 | |||
72 | imx_iomuxv1_rmwl(MXC_DDIR(port), mask, out ? mask : 0); | ||
73 | } | ||
74 | |||
75 | static inline void imx_iomuxv1_set_gpr( | ||
76 | unsigned int port, unsigned int pin, int af) | ||
77 | { | ||
78 | unsigned long mask = 1 << pin; | ||
79 | |||
80 | imx_iomuxv1_rmwl(MXC_GPR(port), mask, af ? mask : 0); | ||
81 | } | ||
82 | |||
83 | static inline void imx_iomuxv1_set_gius( | ||
84 | unsigned int port, unsigned int pin, int inuse) | ||
85 | { | ||
86 | unsigned long mask = 1 << pin; | ||
87 | |||
88 | imx_iomuxv1_rmwl(MXC_GIUS(port), mask, inuse ? mask : 0); | ||
89 | } | ||
90 | |||
91 | static inline void imx_iomuxv1_set_ocr( | ||
92 | unsigned int port, unsigned int pin, unsigned int ocr) | ||
93 | { | ||
94 | unsigned long shift = (pin & 0xf) << 1; | ||
95 | unsigned long mask = 3 << shift; | ||
96 | unsigned long value = ocr << shift; | ||
97 | unsigned long offset = pin < 16 ? MXC_OCR1(port) : MXC_OCR2(port); | ||
98 | |||
99 | imx_iomuxv1_rmwl(offset, mask, value); | ||
100 | } | ||
101 | |||
102 | static inline void imx_iomuxv1_set_iconfa( | ||
103 | unsigned int port, unsigned int pin, unsigned int aout) | ||
104 | { | ||
105 | unsigned long shift = (pin & 0xf) << 1; | ||
106 | unsigned long mask = 3 << shift; | ||
107 | unsigned long value = aout << shift; | ||
108 | unsigned long offset = pin < 16 ? MXC_ICONFA1(port) : MXC_ICONFA2(port); | ||
109 | |||
110 | imx_iomuxv1_rmwl(offset, mask, value); | ||
111 | } | ||
112 | |||
113 | static inline void imx_iomuxv1_set_iconfb( | ||
114 | unsigned int port, unsigned int pin, unsigned int bout) | ||
115 | { | ||
116 | unsigned long shift = (pin & 0xf) << 1; | ||
117 | unsigned long mask = 3 << shift; | ||
118 | unsigned long value = bout << shift; | ||
119 | unsigned long offset = pin < 16 ? MXC_ICONFB1(port) : MXC_ICONFB2(port); | ||
120 | |||
121 | imx_iomuxv1_rmwl(offset, mask, value); | ||
122 | } | ||
123 | |||
124 | int mxc_gpio_mode(int gpio_mode) | ||
125 | { | ||
126 | unsigned int pin = gpio_mode & GPIO_PIN_MASK; | ||
127 | unsigned int port = (gpio_mode & GPIO_PORT_MASK) >> GPIO_PORT_SHIFT; | ||
128 | unsigned int ocr = (gpio_mode & GPIO_OCR_MASK) >> GPIO_OCR_SHIFT; | ||
129 | unsigned int aout = (gpio_mode >> GPIO_AOUT_SHIFT) & 3; | ||
130 | unsigned int bout = (gpio_mode >> GPIO_BOUT_SHIFT) & 3; | ||
131 | |||
132 | if (port >= imx_iomuxv1_numports) | ||
133 | return -EINVAL; | ||
134 | |||
135 | /* Pullup enable */ | ||
136 | imx_iomuxv1_set_puen(port, pin, gpio_mode & GPIO_PUEN); | ||
137 | |||
138 | /* Data direction */ | ||
139 | imx_iomuxv1_set_ddir(port, pin, gpio_mode & GPIO_OUT); | ||
140 | |||
141 | /* Primary / alternate function */ | ||
142 | imx_iomuxv1_set_gpr(port, pin, gpio_mode & GPIO_AF); | ||
143 | |||
144 | /* use as gpio? */ | ||
145 | imx_iomuxv1_set_gius(port, pin, !(gpio_mode & (GPIO_PF | GPIO_AF))); | ||
146 | |||
147 | imx_iomuxv1_set_ocr(port, pin, ocr); | ||
148 | |||
149 | imx_iomuxv1_set_iconfa(port, pin, aout); | ||
150 | |||
151 | imx_iomuxv1_set_iconfb(port, pin, bout); | ||
152 | |||
153 | return 0; | ||
154 | } | ||
155 | EXPORT_SYMBOL(mxc_gpio_mode); | ||
156 | |||
157 | static int imx_iomuxv1_setup_multiple(const int *list, unsigned count) | ||
158 | { | ||
159 | size_t i; | ||
160 | int ret; | ||
161 | |||
162 | for (i = 0; i < count; ++i) { | ||
163 | ret = mxc_gpio_mode(list[i]); | ||
164 | |||
165 | if (ret) | ||
166 | return ret; | ||
167 | } | ||
168 | |||
169 | return ret; | ||
170 | } | ||
171 | |||
172 | int mxc_gpio_setup_multiple_pins(const int *pin_list, unsigned count, | ||
173 | const char *label) | ||
174 | { | ||
175 | size_t i; | ||
176 | int ret; | ||
177 | |||
178 | for (i = 0; i < count; ++i) { | ||
179 | unsigned gpio = pin_list[i] & (GPIO_PIN_MASK | GPIO_PORT_MASK); | ||
180 | |||
181 | ret = gpio_request(gpio, label); | ||
182 | if (ret) | ||
183 | goto err_gpio_request; | ||
184 | } | ||
185 | |||
186 | ret = imx_iomuxv1_setup_multiple(pin_list, count); | ||
187 | if (ret) | ||
188 | goto err_setup; | ||
189 | |||
190 | return 0; | ||
191 | |||
192 | err_setup: | ||
193 | BUG_ON(i != count); | ||
194 | |||
195 | err_gpio_request: | ||
196 | mxc_gpio_release_multiple_pins(pin_list, i); | ||
197 | |||
198 | return ret; | ||
199 | } | ||
200 | EXPORT_SYMBOL(mxc_gpio_setup_multiple_pins); | ||
201 | |||
202 | void mxc_gpio_release_multiple_pins(const int *pin_list, int count) | ||
203 | { | ||
204 | size_t i; | ||
205 | |||
206 | for (i = 0; i < count; ++i) { | ||
207 | unsigned gpio = pin_list[i] & (GPIO_PIN_MASK | GPIO_PORT_MASK); | ||
208 | |||
209 | gpio_free(gpio); | ||
210 | } | ||
211 | } | ||
212 | EXPORT_SYMBOL(mxc_gpio_release_multiple_pins); | ||
213 | |||
214 | static int imx_iomuxv1_init(void) | ||
215 | { | ||
216 | #ifdef CONFIG_ARCH_MX1 | ||
217 | if (cpu_is_mx1()) { | ||
218 | imx_iomuxv1_baseaddr = MX1_IO_ADDRESS(MX1_GPIO_BASE_ADDR); | ||
219 | imx_iomuxv1_numports = MX1_NUM_GPIO_PORT; | ||
220 | } else | ||
221 | #endif | ||
222 | #ifdef CONFIG_MACH_MX21 | ||
223 | if (cpu_is_mx21()) { | ||
224 | imx_iomuxv1_baseaddr = MX21_IO_ADDRESS(MX21_GPIO_BASE_ADDR); | ||
225 | imx_iomuxv1_numports = MX21_NUM_GPIO_PORT; | ||
226 | } else | ||
227 | #endif | ||
228 | #ifdef CONFIG_MACH_MX27 | ||
229 | if (cpu_is_mx27()) { | ||
230 | imx_iomuxv1_baseaddr = MX27_IO_ADDRESS(MX27_GPIO_BASE_ADDR); | ||
231 | imx_iomuxv1_numports = MX27_NUM_GPIO_PORT; | ||
232 | } else | ||
233 | #endif | ||
234 | return -ENODEV; | ||
235 | |||
236 | return 0; | ||
237 | } | ||
238 | pure_initcall(imx_iomuxv1_init); | ||
diff --git a/arch/arm/plat-mxc/time.c b/arch/arm/plat-mxc/time.c index 844567ee35f..c1ce51abdba 100644 --- a/arch/arm/plat-mxc/time.c +++ b/arch/arm/plat-mxc/time.c | |||
@@ -30,9 +30,15 @@ | |||
30 | #include <asm/mach/time.h> | 30 | #include <asm/mach/time.h> |
31 | #include <mach/common.h> | 31 | #include <mach/common.h> |
32 | 32 | ||
33 | /* | ||
34 | * There are 2 versions of the timer hardware on Freescale MXC hardware. | ||
35 | * Version 1: MX1/MXL, MX21, MX27. | ||
36 | * Version 2: MX25, MX31, MX35, MX37, MX51 | ||
37 | */ | ||
38 | |||
33 | /* defines common for all i.MX */ | 39 | /* defines common for all i.MX */ |
34 | #define MXC_TCTL 0x00 | 40 | #define MXC_TCTL 0x00 |
35 | #define MXC_TCTL_TEN (1 << 0) | 41 | #define MXC_TCTL_TEN (1 << 0) /* Enable module */ |
36 | #define MXC_TPRER 0x04 | 42 | #define MXC_TPRER 0x04 |
37 | 43 | ||
38 | /* MX1, MX21, MX27 */ | 44 | /* MX1, MX21, MX27 */ |
@@ -47,8 +53,8 @@ | |||
47 | #define MX2_TSTAT_CAPT (1 << 1) | 53 | #define MX2_TSTAT_CAPT (1 << 1) |
48 | #define MX2_TSTAT_COMP (1 << 0) | 54 | #define MX2_TSTAT_COMP (1 << 0) |
49 | 55 | ||
50 | /* MX31, MX35, MX25, MXC91231 */ | 56 | /* MX31, MX35, MX25, MXC91231, MX5 */ |
51 | #define MX3_TCTL_WAITEN (1 << 3) | 57 | #define MX3_TCTL_WAITEN (1 << 3) /* Wait enable mode */ |
52 | #define MX3_TCTL_CLK_IPG (1 << 6) | 58 | #define MX3_TCTL_CLK_IPG (1 << 6) |
53 | #define MX3_TCTL_FRR (1 << 9) | 59 | #define MX3_TCTL_FRR (1 << 9) |
54 | #define MX3_IR 0x0c | 60 | #define MX3_IR 0x0c |
@@ -57,6 +63,9 @@ | |||
57 | #define MX3_TCN 0x24 | 63 | #define MX3_TCN 0x24 |
58 | #define MX3_TCMP 0x10 | 64 | #define MX3_TCMP 0x10 |
59 | 65 | ||
66 | #define timer_is_v1() (cpu_is_mx1() || cpu_is_mx21() || cpu_is_mx27()) | ||
67 | #define timer_is_v2() (!timer_is_v1()) | ||
68 | |||
60 | static struct clock_event_device clockevent_mxc; | 69 | static struct clock_event_device clockevent_mxc; |
61 | static enum clock_event_mode clockevent_mode = CLOCK_EVT_MODE_UNUSED; | 70 | static enum clock_event_mode clockevent_mode = CLOCK_EVT_MODE_UNUSED; |
62 | 71 | ||
@@ -66,7 +75,7 @@ static inline void gpt_irq_disable(void) | |||
66 | { | 75 | { |
67 | unsigned int tmp; | 76 | unsigned int tmp; |
68 | 77 | ||
69 | if (cpu_is_mx3() || cpu_is_mx25()) | 78 | if (timer_is_v2()) |
70 | __raw_writel(0, timer_base + MX3_IR); | 79 | __raw_writel(0, timer_base + MX3_IR); |
71 | else { | 80 | else { |
72 | tmp = __raw_readl(timer_base + MXC_TCTL); | 81 | tmp = __raw_readl(timer_base + MXC_TCTL); |
@@ -76,7 +85,7 @@ static inline void gpt_irq_disable(void) | |||
76 | 85 | ||
77 | static inline void gpt_irq_enable(void) | 86 | static inline void gpt_irq_enable(void) |
78 | { | 87 | { |
79 | if (cpu_is_mx3() || cpu_is_mx25()) | 88 | if (timer_is_v2()) |
80 | __raw_writel(1<<0, timer_base + MX3_IR); | 89 | __raw_writel(1<<0, timer_base + MX3_IR); |
81 | else { | 90 | else { |
82 | __raw_writel(__raw_readl(timer_base + MXC_TCTL) | MX1_2_TCTL_IRQEN, | 91 | __raw_writel(__raw_readl(timer_base + MXC_TCTL) | MX1_2_TCTL_IRQEN, |
@@ -86,11 +95,13 @@ static inline void gpt_irq_enable(void) | |||
86 | 95 | ||
87 | static void gpt_irq_acknowledge(void) | 96 | static void gpt_irq_acknowledge(void) |
88 | { | 97 | { |
89 | if (cpu_is_mx1()) | 98 | if (timer_is_v1()) { |
90 | __raw_writel(0, timer_base + MX1_2_TSTAT); | 99 | if (cpu_is_mx1()) |
91 | if (cpu_is_mx2()) | 100 | __raw_writel(0, timer_base + MX1_2_TSTAT); |
92 | __raw_writel(MX2_TSTAT_CAPT | MX2_TSTAT_COMP, timer_base + MX1_2_TSTAT); | 101 | else |
93 | if (cpu_is_mx3() || cpu_is_mx25()) | 102 | __raw_writel(MX2_TSTAT_CAPT | MX2_TSTAT_COMP, |
103 | timer_base + MX1_2_TSTAT); | ||
104 | } else if (timer_is_v2()) | ||
94 | __raw_writel(MX3_TSTAT_OF1, timer_base + MX3_TSTAT); | 105 | __raw_writel(MX3_TSTAT_OF1, timer_base + MX3_TSTAT); |
95 | } | 106 | } |
96 | 107 | ||
@@ -117,7 +128,7 @@ static int __init mxc_clocksource_init(struct clk *timer_clk) | |||
117 | { | 128 | { |
118 | unsigned int c = clk_get_rate(timer_clk); | 129 | unsigned int c = clk_get_rate(timer_clk); |
119 | 130 | ||
120 | if (cpu_is_mx3() || cpu_is_mx25()) | 131 | if (timer_is_v2()) |
121 | clocksource_mxc.read = mx3_get_cycles; | 132 | clocksource_mxc.read = mx3_get_cycles; |
122 | 133 | ||
123 | clocksource_mxc.mult = clocksource_hz2mult(c, | 134 | clocksource_mxc.mult = clocksource_hz2mult(c, |
@@ -180,7 +191,7 @@ static void mxc_set_mode(enum clock_event_mode mode, | |||
180 | 191 | ||
181 | if (mode != clockevent_mode) { | 192 | if (mode != clockevent_mode) { |
182 | /* Set event time into far-far future */ | 193 | /* Set event time into far-far future */ |
183 | if (cpu_is_mx3() || cpu_is_mx25()) | 194 | if (timer_is_v2()) |
184 | __raw_writel(__raw_readl(timer_base + MX3_TCN) - 3, | 195 | __raw_writel(__raw_readl(timer_base + MX3_TCN) - 3, |
185 | timer_base + MX3_TCMP); | 196 | timer_base + MX3_TCMP); |
186 | else | 197 | else |
@@ -233,7 +244,7 @@ static irqreturn_t mxc_timer_interrupt(int irq, void *dev_id) | |||
233 | struct clock_event_device *evt = &clockevent_mxc; | 244 | struct clock_event_device *evt = &clockevent_mxc; |
234 | uint32_t tstat; | 245 | uint32_t tstat; |
235 | 246 | ||
236 | if (cpu_is_mx3() || cpu_is_mx25()) | 247 | if (timer_is_v2()) |
237 | tstat = __raw_readl(timer_base + MX3_TSTAT); | 248 | tstat = __raw_readl(timer_base + MX3_TSTAT); |
238 | else | 249 | else |
239 | tstat = __raw_readl(timer_base + MX1_2_TSTAT); | 250 | tstat = __raw_readl(timer_base + MX1_2_TSTAT); |
@@ -264,7 +275,7 @@ static int __init mxc_clockevent_init(struct clk *timer_clk) | |||
264 | { | 275 | { |
265 | unsigned int c = clk_get_rate(timer_clk); | 276 | unsigned int c = clk_get_rate(timer_clk); |
266 | 277 | ||
267 | if (cpu_is_mx3() || cpu_is_mx25()) | 278 | if (timer_is_v2()) |
268 | clockevent_mxc.set_next_event = mx3_set_next_event; | 279 | clockevent_mxc.set_next_event = mx3_set_next_event; |
269 | 280 | ||
270 | clockevent_mxc.mult = div_sc(c, NSEC_PER_SEC, | 281 | clockevent_mxc.mult = div_sc(c, NSEC_PER_SEC, |
@@ -296,7 +307,7 @@ void __init mxc_timer_init(struct clk *timer_clk, void __iomem *base, int irq) | |||
296 | __raw_writel(0, timer_base + MXC_TCTL); | 307 | __raw_writel(0, timer_base + MXC_TCTL); |
297 | __raw_writel(0, timer_base + MXC_TPRER); /* see datasheet note */ | 308 | __raw_writel(0, timer_base + MXC_TPRER); /* see datasheet note */ |
298 | 309 | ||
299 | if (cpu_is_mx3() || cpu_is_mx25()) | 310 | if (timer_is_v2()) |
300 | tctl_val = MX3_TCTL_CLK_IPG | MX3_TCTL_FRR | MX3_TCTL_WAITEN | MXC_TCTL_TEN; | 311 | tctl_val = MX3_TCTL_CLK_IPG | MX3_TCTL_FRR | MX3_TCTL_WAITEN | MXC_TCTL_TEN; |
301 | else | 312 | else |
302 | tctl_val = MX1_2_TCTL_FRR | MX1_2_TCTL_CLK_PCLK1 | MXC_TCTL_TEN; | 313 | tctl_val = MX1_2_TCTL_FRR | MX1_2_TCTL_CLK_PCLK1 | MXC_TCTL_TEN; |
diff --git a/arch/arm/plat-mxc/tzic.c b/arch/arm/plat-mxc/tzic.c new file mode 100644 index 00000000000..afa6709db0b --- /dev/null +++ b/arch/arm/plat-mxc/tzic.c | |||
@@ -0,0 +1,172 @@ | |||
1 | /* | ||
2 | * Copyright 2004-2009 Freescale Semiconductor, Inc. All Rights Reserved. | ||
3 | * | ||
4 | * The code contained herein is licensed under the GNU General Public | ||
5 | * License. You may obtain a copy of the GNU General Public License | ||
6 | * Version 2 or later at the following locations: | ||
7 | * | ||
8 | * http://www.opensource.org/licenses/gpl-license.html | ||
9 | * http://www.gnu.org/copyleft/gpl.html | ||
10 | */ | ||
11 | |||
12 | #include <linux/module.h> | ||
13 | #include <linux/moduleparam.h> | ||
14 | #include <linux/init.h> | ||
15 | #include <linux/device.h> | ||
16 | #include <linux/errno.h> | ||
17 | #include <linux/io.h> | ||
18 | |||
19 | #include <asm/mach/irq.h> | ||
20 | |||
21 | #include <mach/hardware.h> | ||
22 | |||
23 | /* | ||
24 | ***************************************** | ||
25 | * TZIC Registers * | ||
26 | ***************************************** | ||
27 | */ | ||
28 | |||
29 | #define TZIC_INTCNTL 0x0000 /* Control register */ | ||
30 | #define TZIC_INTTYPE 0x0004 /* Controller Type register */ | ||
31 | #define TZIC_IMPID 0x0008 /* Distributor Implementer Identification */ | ||
32 | #define TZIC_PRIOMASK 0x000C /* Priority Mask Reg */ | ||
33 | #define TZIC_SYNCCTRL 0x0010 /* Synchronizer Control register */ | ||
34 | #define TZIC_DSMINT 0x0014 /* DSM interrupt Holdoffregister */ | ||
35 | #define TZIC_INTSEC0(i) (0x0080 + ((i) << 2)) /* Interrupt Security Reg 0 */ | ||
36 | #define TZIC_ENSET0(i) (0x0100 + ((i) << 2)) /* Enable Set Reg 0 */ | ||
37 | #define TZIC_ENCLEAR0(i) (0x0180 + ((i) << 2)) /* Enable Clear Reg 0 */ | ||
38 | #define TZIC_SRCSET0 0x0200 /* Source Set Register 0 */ | ||
39 | #define TZIC_SRCCLAR0 0x0280 /* Source Clear Register 0 */ | ||
40 | #define TZIC_PRIORITY0 0x0400 /* Priority Register 0 */ | ||
41 | #define TZIC_PND0 0x0D00 /* Pending Register 0 */ | ||
42 | #define TZIC_HIPND0 0x0D80 /* High Priority Pending Register */ | ||
43 | #define TZIC_WAKEUP0(i) (0x0E00 + ((i) << 2)) /* Wakeup Config Register */ | ||
44 | #define TZIC_SWINT 0x0F00 /* Software Interrupt Rigger Register */ | ||
45 | #define TZIC_ID0 0x0FD0 /* Indentification Register 0 */ | ||
46 | |||
47 | void __iomem *tzic_base; /* Used as irq controller base in entry-macro.S */ | ||
48 | |||
49 | /** | ||
50 | * tzic_mask_irq() - Disable interrupt number "irq" in the TZIC | ||
51 | * | ||
52 | * @param irq interrupt source number | ||
53 | */ | ||
54 | static void tzic_mask_irq(unsigned int irq) | ||
55 | { | ||
56 | int index, off; | ||
57 | |||
58 | index = irq >> 5; | ||
59 | off = irq & 0x1F; | ||
60 | __raw_writel(1 << off, tzic_base + TZIC_ENCLEAR0(index)); | ||
61 | } | ||
62 | |||
63 | /** | ||
64 | * tzic_unmask_irq() - Enable interrupt number "irq" in the TZIC | ||
65 | * | ||
66 | * @param irq interrupt source number | ||
67 | */ | ||
68 | static void tzic_unmask_irq(unsigned int irq) | ||
69 | { | ||
70 | int index, off; | ||
71 | |||
72 | index = irq >> 5; | ||
73 | off = irq & 0x1F; | ||
74 | __raw_writel(1 << off, tzic_base + TZIC_ENSET0(index)); | ||
75 | } | ||
76 | |||
77 | static unsigned int wakeup_intr[4]; | ||
78 | |||
79 | /** | ||
80 | * tzic_set_wake_irq() - Set interrupt number "irq" in the TZIC as a wake-up source. | ||
81 | * | ||
82 | * @param irq interrupt source number | ||
83 | * @param enable enable as wake-up if equal to non-zero | ||
84 | * disble as wake-up if equal to zero | ||
85 | * | ||
86 | * @return This function returns 0 on success. | ||
87 | */ | ||
88 | static int tzic_set_wake_irq(unsigned int irq, unsigned int enable) | ||
89 | { | ||
90 | unsigned int index, off; | ||
91 | |||
92 | index = irq >> 5; | ||
93 | off = irq & 0x1F; | ||
94 | |||
95 | if (index > 3) | ||
96 | return -EINVAL; | ||
97 | |||
98 | if (enable) | ||
99 | wakeup_intr[index] |= (1 << off); | ||
100 | else | ||
101 | wakeup_intr[index] &= ~(1 << off); | ||
102 | |||
103 | return 0; | ||
104 | } | ||
105 | |||
106 | static struct irq_chip mxc_tzic_chip = { | ||
107 | .name = "MXC_TZIC", | ||
108 | .ack = tzic_mask_irq, | ||
109 | .mask = tzic_mask_irq, | ||
110 | .unmask = tzic_unmask_irq, | ||
111 | .set_wake = tzic_set_wake_irq, | ||
112 | }; | ||
113 | |||
114 | /* | ||
115 | * This function initializes the TZIC hardware and disables all the | ||
116 | * interrupts. It registers the interrupt enable and disable functions | ||
117 | * to the kernel for each interrupt source. | ||
118 | */ | ||
119 | void __init tzic_init_irq(void __iomem *irqbase) | ||
120 | { | ||
121 | int i; | ||
122 | |||
123 | tzic_base = irqbase; | ||
124 | /* put the TZIC into the reset value with | ||
125 | * all interrupts disabled | ||
126 | */ | ||
127 | i = __raw_readl(tzic_base + TZIC_INTCNTL); | ||
128 | |||
129 | __raw_writel(0x80010001, tzic_base + TZIC_INTCNTL); | ||
130 | __raw_writel(0x1f, tzic_base + TZIC_PRIOMASK); | ||
131 | __raw_writel(0x02, tzic_base + TZIC_SYNCCTRL); | ||
132 | |||
133 | for (i = 0; i < 4; i++) | ||
134 | __raw_writel(0xFFFFFFFF, tzic_base + TZIC_INTSEC0(i)); | ||
135 | |||
136 | /* disable all interrupts */ | ||
137 | for (i = 0; i < 4; i++) | ||
138 | __raw_writel(0xFFFFFFFF, tzic_base + TZIC_ENCLEAR0(i)); | ||
139 | |||
140 | /* all IRQ no FIQ Warning :: No selection */ | ||
141 | |||
142 | for (i = 0; i < MXC_INTERNAL_IRQS; i++) { | ||
143 | set_irq_chip(i, &mxc_tzic_chip); | ||
144 | set_irq_handler(i, handle_level_irq); | ||
145 | set_irq_flags(i, IRQF_VALID); | ||
146 | } | ||
147 | |||
148 | pr_info("TrustZone Interrupt Controller (TZIC) initialized\n"); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * tzic_enable_wake() - enable wakeup interrupt | ||
153 | * | ||
154 | * @param is_idle 1 if called in idle loop (ENSET0 register); | ||
155 | * 0 to be used when called from low power entry | ||
156 | * @return 0 if successful; non-zero otherwise | ||
157 | */ | ||
158 | int tzic_enable_wake(int is_idle) | ||
159 | { | ||
160 | unsigned int i, v; | ||
161 | |||
162 | __raw_writel(1, tzic_base + TZIC_DSMINT); | ||
163 | if (unlikely(__raw_readl(tzic_base + TZIC_DSMINT) == 0)) | ||
164 | return -EAGAIN; | ||
165 | |||
166 | for (i = 0; i < 4; i++) { | ||
167 | v = is_idle ? __raw_readl(TZIC_ENSET0(i)) : wakeup_intr[i]; | ||
168 | __raw_writel(v, TZIC_WAKEUP0(i)); | ||
169 | } | ||
170 | |||
171 | return 0; | ||
172 | } | ||
diff --git a/arch/arm/plat-nomadik/timer.c b/arch/arm/plat-nomadik/timer.c index 62f18ad43a2..fa7cb3a57cb 100644 --- a/arch/arm/plat-nomadik/timer.c +++ b/arch/arm/plat-nomadik/timer.c | |||
@@ -49,24 +49,17 @@ static struct clocksource nmdk_clksrc = { | |||
49 | static void nmdk_clkevt_mode(enum clock_event_mode mode, | 49 | static void nmdk_clkevt_mode(enum clock_event_mode mode, |
50 | struct clock_event_device *dev) | 50 | struct clock_event_device *dev) |
51 | { | 51 | { |
52 | unsigned long flags; | ||
53 | |||
54 | switch (mode) { | 52 | switch (mode) { |
55 | case CLOCK_EVT_MODE_PERIODIC: | 53 | case CLOCK_EVT_MODE_PERIODIC: |
56 | /* enable interrupts -- and count current value? */ | 54 | /* count current value? */ |
57 | raw_local_irq_save(flags); | ||
58 | writel(readl(mtu_base + MTU_IMSC) | 1, mtu_base + MTU_IMSC); | 55 | writel(readl(mtu_base + MTU_IMSC) | 1, mtu_base + MTU_IMSC); |
59 | raw_local_irq_restore(flags); | ||
60 | break; | 56 | break; |
61 | case CLOCK_EVT_MODE_ONESHOT: | 57 | case CLOCK_EVT_MODE_ONESHOT: |
62 | BUG(); /* Not supported, yet */ | 58 | BUG(); /* Not supported, yet */ |
63 | /* FALLTHROUGH */ | 59 | /* FALLTHROUGH */ |
64 | case CLOCK_EVT_MODE_SHUTDOWN: | 60 | case CLOCK_EVT_MODE_SHUTDOWN: |
65 | case CLOCK_EVT_MODE_UNUSED: | 61 | case CLOCK_EVT_MODE_UNUSED: |
66 | /* disable irq */ | ||
67 | raw_local_irq_save(flags); | ||
68 | writel(readl(mtu_base + MTU_IMSC) & ~1, mtu_base + MTU_IMSC); | 62 | writel(readl(mtu_base + MTU_IMSC) & ~1, mtu_base + MTU_IMSC); |
69 | raw_local_irq_restore(flags); | ||
70 | break; | 63 | break; |
71 | case CLOCK_EVT_MODE_RESUME: | 64 | case CLOCK_EVT_MODE_RESUME: |
72 | break; | 65 | break; |
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c index d9f8c844c38..4becbdd1935 100644 --- a/arch/arm/plat-omap/clock.c +++ b/arch/arm/plat-omap/clock.c | |||
@@ -391,7 +391,7 @@ static struct dentry *clk_debugfs_root; | |||
391 | static int clk_debugfs_register_one(struct clk *c) | 391 | static int clk_debugfs_register_one(struct clk *c) |
392 | { | 392 | { |
393 | int err; | 393 | int err; |
394 | struct dentry *d, *child; | 394 | struct dentry *d, *child, *child_tmp; |
395 | struct clk *pa = c->parent; | 395 | struct clk *pa = c->parent; |
396 | char s[255]; | 396 | char s[255]; |
397 | char *p = s; | 397 | char *p = s; |
@@ -423,7 +423,7 @@ static int clk_debugfs_register_one(struct clk *c) | |||
423 | 423 | ||
424 | err_out: | 424 | err_out: |
425 | d = c->dent; | 425 | d = c->dent; |
426 | list_for_each_entry(child, &d->d_subdirs, d_u.d_child) | 426 | list_for_each_entry_safe(child, child_tmp, &d->d_subdirs, d_u.d_child) |
427 | debugfs_remove(child); | 427 | debugfs_remove(child); |
428 | debugfs_remove(c->dent); | 428 | debugfs_remove(c->dent); |
429 | return err; | 429 | return err; |
diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c index bf1eaf3a27d..dddc0273bc8 100644 --- a/arch/arm/plat-omap/common.c +++ b/arch/arm/plat-omap/common.c | |||
@@ -172,6 +172,32 @@ unsigned long long sched_clock(void) | |||
172 | clocksource_32k.mult, clocksource_32k.shift); | 172 | clocksource_32k.mult, clocksource_32k.shift); |
173 | } | 173 | } |
174 | 174 | ||
175 | /** | ||
176 | * read_persistent_clock - Return time from a persistent clock. | ||
177 | * | ||
178 | * Reads the time from a source which isn't disabled during PM, the | ||
179 | * 32k sync timer. Convert the cycles elapsed since last read into | ||
180 | * nsecs and adds to a monotonically increasing timespec. | ||
181 | */ | ||
182 | static struct timespec persistent_ts; | ||
183 | static cycles_t cycles, last_cycles; | ||
184 | void read_persistent_clock(struct timespec *ts) | ||
185 | { | ||
186 | unsigned long long nsecs; | ||
187 | cycles_t delta; | ||
188 | struct timespec *tsp = &persistent_ts; | ||
189 | |||
190 | last_cycles = cycles; | ||
191 | cycles = clocksource_32k.read(&clocksource_32k); | ||
192 | delta = cycles - last_cycles; | ||
193 | |||
194 | nsecs = clocksource_cyc2ns(delta, | ||
195 | clocksource_32k.mult, clocksource_32k.shift); | ||
196 | |||
197 | timespec_add_ns(tsp, nsecs); | ||
198 | *ts = *tsp; | ||
199 | } | ||
200 | |||
175 | static int __init omap_init_clocksource_32k(void) | 201 | static int __init omap_init_clocksource_32k(void) |
176 | { | 202 | { |
177 | static char err[] __initdata = KERN_ERR | 203 | static char err[] __initdata = KERN_ERR |
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index 09d82b3c66c..728c6420418 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c | |||
@@ -1183,7 +1183,7 @@ void omap_dma_unlink_lch(int lch_head, int lch_queue) | |||
1183 | } | 1183 | } |
1184 | 1184 | ||
1185 | if ((dma_chan[lch_head].flags & OMAP_DMA_ACTIVE) || | 1185 | if ((dma_chan[lch_head].flags & OMAP_DMA_ACTIVE) || |
1186 | (dma_chan[lch_head].flags & OMAP_DMA_ACTIVE)) { | 1186 | (dma_chan[lch_queue].flags & OMAP_DMA_ACTIVE)) { |
1187 | printk(KERN_ERR "omap_dma: You need to stop the DMA channels " | 1187 | printk(KERN_ERR "omap_dma: You need to stop the DMA channels " |
1188 | "before unlinking\n"); | 1188 | "before unlinking\n"); |
1189 | dump_stack(); | 1189 | dump_stack(); |
diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c index 64f407ee0f4..08ccf892252 100644 --- a/arch/arm/plat-omap/dmtimer.c +++ b/arch/arm/plat-omap/dmtimer.c | |||
@@ -551,6 +551,19 @@ void omap_dm_timer_stop(struct omap_dm_timer *timer) | |||
551 | if (l & OMAP_TIMER_CTRL_ST) { | 551 | if (l & OMAP_TIMER_CTRL_ST) { |
552 | l &= ~0x1; | 552 | l &= ~0x1; |
553 | omap_dm_timer_write_reg(timer, OMAP_TIMER_CTRL_REG, l); | 553 | omap_dm_timer_write_reg(timer, OMAP_TIMER_CTRL_REG, l); |
554 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ | ||
555 | defined(CONFIG_ARCH_OMAP4) | ||
556 | /* Readback to make sure write has completed */ | ||
557 | omap_dm_timer_read_reg(timer, OMAP_TIMER_CTRL_REG); | ||
558 | /* | ||
559 | * Wait for functional clock period x 3.5 to make sure that | ||
560 | * timer is stopped | ||
561 | */ | ||
562 | udelay(3500000 / clk_get_rate(timer->fclk) + 1); | ||
563 | /* Ack possibly pending interrupt */ | ||
564 | omap_dm_timer_write_reg(timer, OMAP_TIMER_STAT_REG, | ||
565 | OMAP_TIMER_INT_OVERFLOW); | ||
566 | #endif | ||
554 | } | 567 | } |
555 | } | 568 | } |
556 | EXPORT_SYMBOL_GPL(omap_dm_timer_stop); | 569 | EXPORT_SYMBOL_GPL(omap_dm_timer_stop); |
diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index d17620c50c2..d2422c766cc 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c | |||
@@ -750,6 +750,7 @@ static inline void set_24xx_gpio_triggering(struct gpio_bank *bank, int gpio, | |||
750 | } | 750 | } |
751 | #endif | 751 | #endif |
752 | 752 | ||
753 | #ifdef CONFIG_ARCH_OMAP1 | ||
753 | /* | 754 | /* |
754 | * This only applies to chips that can't do both rising and falling edge | 755 | * This only applies to chips that can't do both rising and falling edge |
755 | * detection at once. For all other chips, this function is a noop. | 756 | * detection at once. For all other chips, this function is a noop. |
@@ -760,11 +761,9 @@ static void _toggle_gpio_edge_triggering(struct gpio_bank *bank, int gpio) | |||
760 | u32 l = 0; | 761 | u32 l = 0; |
761 | 762 | ||
762 | switch (bank->method) { | 763 | switch (bank->method) { |
763 | #ifdef CONFIG_ARCH_OMAP1 | ||
764 | case METHOD_MPUIO: | 764 | case METHOD_MPUIO: |
765 | reg += OMAP_MPUIO_GPIO_INT_EDGE; | 765 | reg += OMAP_MPUIO_GPIO_INT_EDGE; |
766 | break; | 766 | break; |
767 | #endif | ||
768 | #ifdef CONFIG_ARCH_OMAP15XX | 767 | #ifdef CONFIG_ARCH_OMAP15XX |
769 | case METHOD_GPIO_1510: | 768 | case METHOD_GPIO_1510: |
770 | reg += OMAP1510_GPIO_INT_CONTROL; | 769 | reg += OMAP1510_GPIO_INT_CONTROL; |
@@ -787,6 +786,7 @@ static void _toggle_gpio_edge_triggering(struct gpio_bank *bank, int gpio) | |||
787 | 786 | ||
788 | __raw_writel(l, reg); | 787 | __raw_writel(l, reg); |
789 | } | 788 | } |
789 | #endif | ||
790 | 790 | ||
791 | static int _set_gpio_triggering(struct gpio_bank *bank, int gpio, int trigger) | 791 | static int _set_gpio_triggering(struct gpio_bank *bank, int gpio, int trigger) |
792 | { | 792 | { |
diff --git a/arch/arm/plat-omap/include/plat/cpu.h b/arch/arm/plat-omap/include/plat/cpu.h index 9a028bdebb0..a162f585b1e 100644 --- a/arch/arm/plat-omap/include/plat/cpu.h +++ b/arch/arm/plat-omap/include/plat/cpu.h | |||
@@ -434,6 +434,7 @@ IS_OMAP_TYPE(3517, 0x3517) | |||
434 | #define OMAP3430_REV_ES2_1 0x34302034 | 434 | #define OMAP3430_REV_ES2_1 0x34302034 |
435 | #define OMAP3430_REV_ES3_0 0x34303034 | 435 | #define OMAP3430_REV_ES3_0 0x34303034 |
436 | #define OMAP3430_REV_ES3_1 0x34304034 | 436 | #define OMAP3430_REV_ES3_1 0x34304034 |
437 | #define OMAP3430_REV_ES3_1_2 0x34305034 | ||
437 | 438 | ||
438 | #define OMAP3630_REV_ES1_0 0x36300034 | 439 | #define OMAP3630_REV_ES1_0 0x36300034 |
439 | 440 | ||
diff --git a/arch/arm/plat-omap/include/plat/irqs.h b/arch/arm/plat-omap/include/plat/irqs.h index 97d6c50c3dc..c0ab7c80f72 100644 --- a/arch/arm/plat-omap/include/plat/irqs.h +++ b/arch/arm/plat-omap/include/plat/irqs.h | |||
@@ -499,6 +499,9 @@ extern void omap_init_irq(void); | |||
499 | extern int omap_irq_pending(void); | 499 | extern int omap_irq_pending(void); |
500 | void omap_intc_save_context(void); | 500 | void omap_intc_save_context(void); |
501 | void omap_intc_restore_context(void); | 501 | void omap_intc_restore_context(void); |
502 | void omap3_intc_suspend(void); | ||
503 | void omap3_intc_prepare_idle(void); | ||
504 | void omap3_intc_resume_idle(void); | ||
502 | #endif | 505 | #endif |
503 | 506 | ||
504 | #include <mach/hardware.h> | 507 | #include <mach/hardware.h> |
diff --git a/arch/arm/plat-omap/include/plat/omap_hwmod.h b/arch/arm/plat-omap/include/plat/omap_hwmod.h index 007935a921e..33933256a22 100644 --- a/arch/arm/plat-omap/include/plat/omap_hwmod.h +++ b/arch/arm/plat-omap/include/plat/omap_hwmod.h | |||
@@ -227,6 +227,7 @@ struct omap_hwmod_ocp_if { | |||
227 | #define SYSC_HAS_SIDLEMODE (1 << 5) | 227 | #define SYSC_HAS_SIDLEMODE (1 << 5) |
228 | #define SYSC_HAS_MIDLEMODE (1 << 6) | 228 | #define SYSC_HAS_MIDLEMODE (1 << 6) |
229 | #define SYSS_MISSING (1 << 7) | 229 | #define SYSS_MISSING (1 << 7) |
230 | #define SYSC_NO_CACHE (1 << 8) /* XXX SW flag, belongs elsewhere */ | ||
230 | 231 | ||
231 | /* omap_hwmod_sysconfig.clockact flags */ | 232 | /* omap_hwmod_sysconfig.clockact flags */ |
232 | #define CLOCKACT_TEST_BOTH 0x0 | 233 | #define CLOCKACT_TEST_BOTH 0x0 |
diff --git a/arch/arm/plat-omap/omap_device.c b/arch/arm/plat-omap/omap_device.c index 1e5648d3e3d..2ed72013c2e 100644 --- a/arch/arm/plat-omap/omap_device.c +++ b/arch/arm/plat-omap/omap_device.c | |||
@@ -89,16 +89,6 @@ | |||
89 | #define USE_WAKEUP_LAT 0 | 89 | #define USE_WAKEUP_LAT 0 |
90 | #define IGNORE_WAKEUP_LAT 1 | 90 | #define IGNORE_WAKEUP_LAT 1 |
91 | 91 | ||
92 | /* XXX this should be moved into a separate file */ | ||
93 | #if defined(CONFIG_ARCH_OMAP2420) | ||
94 | # define OMAP_32KSYNCT_BASE 0x48004000 | ||
95 | #elif defined(CONFIG_ARCH_OMAP2430) | ||
96 | # define OMAP_32KSYNCT_BASE 0x49020000 | ||
97 | #elif defined(CONFIG_ARCH_OMAP3430) | ||
98 | # define OMAP_32KSYNCT_BASE 0x48320000 | ||
99 | #else | ||
100 | # error Unknown OMAP device | ||
101 | #endif | ||
102 | 92 | ||
103 | /* Private functions */ | 93 | /* Private functions */ |
104 | 94 | ||
diff --git a/arch/arm/plat-orion/pcie.c b/arch/arm/plat-orion/pcie.c index d41d41d78ad..54c84a492a0 100644 --- a/arch/arm/plat-orion/pcie.c +++ b/arch/arm/plat-orion/pcie.c | |||
@@ -133,6 +133,12 @@ static void __init orion_pcie_setup_wins(void __iomem *base, | |||
133 | } | 133 | } |
134 | 134 | ||
135 | /* | 135 | /* |
136 | * Round up 'size' to the nearest power of two. | ||
137 | */ | ||
138 | if ((size & (size - 1)) != 0) | ||
139 | size = 1 << fls(size); | ||
140 | |||
141 | /* | ||
136 | * Setup BAR[1] to all DRAM banks. | 142 | * Setup BAR[1] to all DRAM banks. |
137 | */ | 143 | */ |
138 | writel(dram->cs[0].base, base + PCIE_BAR_LO_OFF(1)); | 144 | writel(dram->cs[0].base, base + PCIE_BAR_LO_OFF(1)); |
diff --git a/arch/arm/tools/mach-types b/arch/arm/tools/mach-types index c3a74ce24ef..31c2f4c30a9 100644 --- a/arch/arm/tools/mach-types +++ b/arch/arm/tools/mach-types | |||
@@ -12,7 +12,7 @@ | |||
12 | # | 12 | # |
13 | # http://www.arm.linux.org.uk/developer/machines/?action=new | 13 | # http://www.arm.linux.org.uk/developer/machines/?action=new |
14 | # | 14 | # |
15 | # Last update: Wed Dec 16 20:06:34 2009 | 15 | # Last update: Sat Feb 20 14:16:15 2010 |
16 | # | 16 | # |
17 | # machine_is_xxx CONFIG_xxxx MACH_TYPE_xxx number | 17 | # machine_is_xxx CONFIG_xxxx MACH_TYPE_xxx number |
18 | # | 18 | # |
@@ -2257,7 +2257,7 @@ oratisalog MACH_ORATISALOG ORATISALOG 2268 | |||
2257 | oratismadi MACH_ORATISMADI ORATISMADI 2269 | 2257 | oratismadi MACH_ORATISMADI ORATISMADI 2269 |
2258 | oratisot16 MACH_ORATISOT16 ORATISOT16 2270 | 2258 | oratisot16 MACH_ORATISOT16 ORATISOT16 2270 |
2259 | oratisdesk MACH_ORATISDESK ORATISDESK 2271 | 2259 | oratisdesk MACH_ORATISDESK ORATISDESK 2271 |
2260 | v2_ca9 MACH_V2P_CA9 V2P_CA9 2272 | 2260 | vexpress MACH_VEXPRESS VEXPRESS 2272 |
2261 | sintexo MACH_SINTEXO SINTEXO 2273 | 2261 | sintexo MACH_SINTEXO SINTEXO 2273 |
2262 | cm3389 MACH_CM3389 CM3389 2274 | 2262 | cm3389 MACH_CM3389 CM3389 2274 |
2263 | omap3_cio MACH_OMAP3_CIO OMAP3_CIO 2275 | 2263 | omap3_cio MACH_OMAP3_CIO OMAP3_CIO 2275 |
@@ -2536,6 +2536,7 @@ davinci_dm6467tevm MACH_DAVINCI_DM6467TEVM DAVINCI_DM6467TEVM 2548 | |||
2536 | c3ax03 MACH_C3AX03 C3AX03 2549 | 2536 | c3ax03 MACH_C3AX03 C3AX03 2549 |
2537 | mxt_td60 MACH_MXT_TD60 MXT_TD60 2550 | 2537 | mxt_td60 MACH_MXT_TD60 MXT_TD60 2550 |
2538 | esyx MACH_ESYX ESYX 2551 | 2538 | esyx MACH_ESYX ESYX 2551 |
2539 | dove_db2 MACH_DOVE_DB2 DOVE_DB2 2552 | ||
2539 | bulldog MACH_BULLDOG BULLDOG 2553 | 2540 | bulldog MACH_BULLDOG BULLDOG 2553 |
2540 | derell_me2000 MACH_DERELL_ME2000 DERELL_ME2000 2554 | 2541 | derell_me2000 MACH_DERELL_ME2000 DERELL_ME2000 2554 |
2541 | bcmring_base MACH_BCMRING_BASE BCMRING_BASE 2555 | 2542 | bcmring_base MACH_BCMRING_BASE BCMRING_BASE 2555 |
@@ -2555,6 +2556,7 @@ iseo MACH_ISEO ISEO 2568 | |||
2555 | cezanne MACH_CEZANNE CEZANNE 2569 | 2556 | cezanne MACH_CEZANNE CEZANNE 2569 |
2556 | lucca MACH_LUCCA LUCCA 2570 | 2557 | lucca MACH_LUCCA LUCCA 2570 |
2557 | supersmart MACH_SUPERSMART SUPERSMART 2571 | 2558 | supersmart MACH_SUPERSMART SUPERSMART 2571 |
2559 | arm11_board MACH_CS_MISANO CS_MISANO 2572 | ||
2558 | magnolia2 MACH_MAGNOLIA2 MAGNOLIA2 2573 | 2560 | magnolia2 MACH_MAGNOLIA2 MAGNOLIA2 2573 |
2559 | emxx MACH_EMXX EMXX 2574 | 2561 | emxx MACH_EMXX EMXX 2574 |
2560 | outlaw MACH_OUTLAW OUTLAW 2575 | 2562 | outlaw MACH_OUTLAW OUTLAW 2575 |
@@ -2578,3 +2580,101 @@ glacier MACH_GLACIER GLACIER 2592 | |||
2578 | phrazer_bulldog MACH_PHRAZER_BULLDOG PHRAZER_BULLDOG 2593 | 2580 | phrazer_bulldog MACH_PHRAZER_BULLDOG PHRAZER_BULLDOG 2593 |
2579 | omap3_bulldog MACH_OMAP3_BULLDOG OMAP3_BULLDOG 2594 | 2581 | omap3_bulldog MACH_OMAP3_BULLDOG OMAP3_BULLDOG 2594 |
2580 | pca101 MACH_PCA101 PCA101 2595 | 2582 | pca101 MACH_PCA101 PCA101 2595 |
2583 | buzzc MACH_BUZZC BUZZC 2596 | ||
2584 | sasie2 MACH_SASIE2 SASIE2 2597 | ||
2585 | davinci_cio MACH_DAVINCI_CIO DAVINCI_CIO 2598 | ||
2586 | smartmeter_dl MACH_SMARTMETER_DL SMARTMETER_DL 2599 | ||
2587 | wzl6410 MACH_WZL6410 WZL6410 2600 | ||
2588 | wzl6410m MACH_WZL6410M WZL6410M 2601 | ||
2589 | wzl6410f MACH_WZL6410F WZL6410F 2602 | ||
2590 | wzl6410i MACH_WZL6410I WZL6410I 2603 | ||
2591 | spacecom1 MACH_SPACECOM1 SPACECOM1 2604 | ||
2592 | pingu920 MACH_PINGU920 PINGU920 2605 | ||
2593 | bravoc MACH_BRAVOC BRAVOC 2606 | ||
2594 | cybo2440 MACH_CYBO2440 CYBO2440 2607 | ||
2595 | vdssw MACH_VDSSW VDSSW 2608 | ||
2596 | romulus MACH_ROMULUS ROMULUS 2609 | ||
2597 | omap_magic MACH_OMAP_MAGIC OMAP_MAGIC 2610 | ||
2598 | eltd100 MACH_ELTD100 ELTD100 2611 | ||
2599 | capc7117 MACH_CAPC7117 CAPC7117 2612 | ||
2600 | swan MACH_SWAN SWAN 2613 | ||
2601 | veu MACH_VEU VEU 2614 | ||
2602 | rm2 MACH_RM2 RM2 2615 | ||
2603 | tt2100 MACH_TT2100 TT2100 2616 | ||
2604 | venice MACH_VENICE VENICE 2617 | ||
2605 | pc7323 MACH_PC7323 PC7323 2618 | ||
2606 | masp MACH_MASP MASP 2619 | ||
2607 | fujitsu_tvstbsoc0 MACH_FUJITSU_TVSTBSOC FUJITSU_TVSTBSOC 2620 | ||
2608 | fujitsu_tvstbsoc1 MACH_FUJITSU_TVSTBSOC1 FUJITSU_TVSTBSOC1 2621 | ||
2609 | lexikon MACH_LEXIKON LEXIKON 2622 | ||
2610 | mini2440v2 MACH_MINI2440V2 MINI2440V2 2623 | ||
2611 | icontrol MACH_ICONTROL ICONTROL 2624 | ||
2612 | sheevad MACH_SHEEVAD SHEEVAD 2625 | ||
2613 | qsd8x50a_st1_1 MACH_QSD8X50A_ST1_1 QSD8X50A_ST1_1 2626 | ||
2614 | qsd8x50a_st1_5 MACH_QSD8X50A_ST1_5 QSD8X50A_ST1_5 2627 | ||
2615 | bee MACH_BEE BEE 2628 | ||
2616 | mx23evk MACH_MX23EVK MX23EVK 2629 | ||
2617 | ap4evb MACH_AP4EVB AP4EVB 2630 | ||
2618 | stockholm MACH_STOCKHOLM STOCKHOLM 2631 | ||
2619 | lpc_h3131 MACH_LPC_H3131 LPC_H3131 2632 | ||
2620 | stingray MACH_STINGRAY STINGRAY 2633 | ||
2621 | kraken MACH_KRAKEN KRAKEN 2634 | ||
2622 | gw2388 MACH_GW2388 GW2388 2635 | ||
2623 | jadecpu MACH_JADECPU JADECPU 2636 | ||
2624 | carlisle MACH_CARLISLE CARLISLE 2637 | ||
2625 | lux_sf9 MACH_LUX_SFT9 LUX_SFT9 2638 | ||
2626 | nemid_tb MACH_NEMID_TB NEMID_TB 2639 | ||
2627 | terrier MACH_TERRIER TERRIER 2640 | ||
2628 | turbot MACH_TURBOT TURBOT 2641 | ||
2629 | sanddab MACH_SANDDAB SANDDAB 2642 | ||
2630 | mx35_cicada MACH_MX35_CICADA MX35_CICADA 2643 | ||
2631 | ghi2703d MACH_GHI2703D GHI2703D 2644 | ||
2632 | lux_sfx9 MACH_LUX_SFX9 LUX_SFX9 2645 | ||
2633 | lux_sf9g MACH_LUX_SF9G LUX_SF9G 2646 | ||
2634 | lux_edk9 MACH_LUX_EDK9 LUX_EDK9 2647 | ||
2635 | hw90240 MACH_HW90240 HW90240 2648 | ||
2636 | dm365_leopard MACH_DM365_LEOPARD DM365_LEOPARD 2649 | ||
2637 | mityomapl138 MACH_MITYOMAPL138 MITYOMAPL138 2650 | ||
2638 | scat110 MACH_SCAT110 SCAT110 2651 | ||
2639 | acer_a1 MACH_ACER_A1 ACER_A1 2652 | ||
2640 | cmcontrol MACH_CMCONTROL CMCONTROL 2653 | ||
2641 | pelco_lamar MACH_PELCO_LAMAR PELCO_LAMAR 2654 | ||
2642 | rfp43 MACH_RFP43 RFP43 2655 | ||
2643 | sk86r0301 MACH_SK86R0301 SK86R0301 2656 | ||
2644 | ctpxa MACH_CTPXA CTPXA 2657 | ||
2645 | epb_arm9_a MACH_EPB_ARM9_A EPB_ARM9_A 2658 | ||
2646 | guruplug MACH_GURUPLUG GURUPLUG 2659 | ||
2647 | spear310 MACH_SPEAR310 SPEAR310 2660 | ||
2648 | spear320 MACH_SPEAR320 SPEAR320 2661 | ||
2649 | robotx MACH_ROBOTX ROBOTX 2662 | ||
2650 | lsxhl MACH_LSXHL LSXHL 2663 | ||
2651 | smartlite MACH_SMARTLITE SMARTLITE 2664 | ||
2652 | cws2 MACH_CWS2 CWS2 2665 | ||
2653 | m619 MACH_M619 M619 2666 | ||
2654 | smartview MACH_SMARTVIEW SMARTVIEW 2667 | ||
2655 | lsa_salsa MACH_LSA_SALSA LSA_SALSA 2668 | ||
2656 | kizbox MACH_KIZBOX KIZBOX 2669 | ||
2657 | htccharmer MACH_HTCCHARMER HTCCHARMER 2670 | ||
2658 | guf_neso_lt MACH_GUF_NESO_LT GUF_NESO_LT 2671 | ||
2659 | pm9g45 MACH_PM9G45 PM9G45 2672 | ||
2660 | htcpanther MACH_HTCPANTHER HTCPANTHER 2673 | ||
2661 | htcpanther_cdma MACH_HTCPANTHER_CDMA HTCPANTHER_CDMA 2674 | ||
2662 | reb01 MACH_REB01 REB01 2675 | ||
2663 | aquila MACH_AQUILA AQUILA 2676 | ||
2664 | spark_sls_hw2 MACH_SPARK_SLS_HW2 SPARK_SLS_HW2 2677 | ||
2665 | sheeva_esata MACH_ESATA_SHEEVAPLUG ESATA_SHEEVAPLUG 2678 | ||
2666 | surf7x30 MACH_SURF7X30 SURF7X30 2679 | ||
2667 | micro2440 MACH_MICRO2440 MICRO2440 2680 | ||
2668 | am2440 MACH_AM2440 AM2440 2681 | ||
2669 | tq2440 MACH_TQ2440 TQ2440 2682 | ||
2670 | lpc2478oem MACH_LPC2478OEM LPC2478OEM 2683 | ||
2671 | ak880x MACH_AK880X AK880X 2684 | ||
2672 | cobra3530 MACH_COBRA3530 COBRA3530 2685 | ||
2673 | pmppb MACH_PMPPB PMPPB 2686 | ||
2674 | u6715 MACH_U6715 U6715 2687 | ||
2675 | axar1500_sender MACH_AXAR1500_SENDER AXAR1500_SENDER 2688 | ||
2676 | g30_dvb MACH_G30_DVB G30_DVB 2689 | ||
2677 | vc088x MACH_VC088X VC088X 2690 | ||
2678 | mioa702 MACH_MIOA702 MIOA702 2691 | ||
2679 | hpmin MACH_HPMIN HPMIN 2692 | ||
2680 | ak880xak MACH_AK880XAK AK880XAK 2693 | ||
diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c index f60a5400a25..a63c4be99b3 100644 --- a/arch/arm/vfp/vfpmodule.c +++ b/arch/arm/vfp/vfpmodule.c | |||
@@ -197,10 +197,13 @@ static void vfp_raise_exceptions(u32 exceptions, u32 inst, u32 fpscr, struct pt_ | |||
197 | } | 197 | } |
198 | 198 | ||
199 | /* | 199 | /* |
200 | * Update the FPSCR with the additional exception flags. | 200 | * If any of the status flags are set, update the FPSCR. |
201 | * Comparison instructions always return at least one of | 201 | * Comparison instructions always return at least one of |
202 | * these flags set. | 202 | * these flags set. |
203 | */ | 203 | */ |
204 | if (exceptions & (FPSCR_N|FPSCR_Z|FPSCR_C|FPSCR_V)) | ||
205 | fpscr &= ~(FPSCR_N|FPSCR_Z|FPSCR_C|FPSCR_V); | ||
206 | |||
204 | fpscr |= exceptions; | 207 | fpscr |= exceptions; |
205 | 208 | ||
206 | fmxr(FPSCR, fpscr); | 209 | fmxr(FPSCR, fpscr); |