diff options
Diffstat (limited to 'arch/arm')
255 files changed, 8959 insertions, 4405 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index d778a699f577..1c4119c60040 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -46,6 +46,10 @@ config GENERIC_CLOCKEVENTS_BROADCAST | |||
46 | depends on GENERIC_CLOCKEVENTS | 46 | depends on GENERIC_CLOCKEVENTS |
47 | default y if SMP && !LOCAL_TIMERS | 47 | default y if SMP && !LOCAL_TIMERS |
48 | 48 | ||
49 | config HAVE_TCM | ||
50 | bool | ||
51 | select GENERIC_ALLOCATOR | ||
52 | |||
49 | config NO_IOPORT | 53 | config NO_IOPORT |
50 | bool | 54 | bool |
51 | 55 | ||
@@ -649,6 +653,7 @@ config ARCH_U300 | |||
649 | bool "ST-Ericsson U300 Series" | 653 | bool "ST-Ericsson U300 Series" |
650 | depends on MMU | 654 | depends on MMU |
651 | select CPU_ARM926T | 655 | select CPU_ARM926T |
656 | select HAVE_TCM | ||
652 | select ARM_AMBA | 657 | select ARM_AMBA |
653 | select ARM_VIC | 658 | select ARM_VIC |
654 | select GENERIC_TIME | 659 | select GENERIC_TIME |
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 54661125a8bf..a73caaf66763 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -14,7 +14,7 @@ LDFLAGS_vmlinux :=-p --no-undefined -X | |||
14 | ifeq ($(CONFIG_CPU_ENDIAN_BE8),y) | 14 | ifeq ($(CONFIG_CPU_ENDIAN_BE8),y) |
15 | LDFLAGS_vmlinux += --be8 | 15 | LDFLAGS_vmlinux += --be8 |
16 | endif | 16 | endif |
17 | CPPFLAGS_vmlinux.lds = -DTEXT_OFFSET=$(TEXT_OFFSET) | 17 | |
18 | OBJCOPYFLAGS :=-O binary -R .note -R .note.gnu.build-id -R .comment -S | 18 | OBJCOPYFLAGS :=-O binary -R .note -R .note.gnu.build-id -R .comment -S |
19 | GZFLAGS :=-9 | 19 | GZFLAGS :=-9 |
20 | #KBUILD_CFLAGS +=-pipe | 20 | #KBUILD_CFLAGS +=-pipe |
@@ -279,7 +279,7 @@ define archhelp | |||
279 | echo ' (supply initrd image via make variable INITRD=<path>)' | 279 | echo ' (supply initrd image via make variable INITRD=<path>)' |
280 | echo ' install - Install uncompressed kernel' | 280 | echo ' install - Install uncompressed kernel' |
281 | echo ' zinstall - Install compressed kernel' | 281 | echo ' zinstall - Install compressed kernel' |
282 | echo ' Install using (your) ~/bin/installkernel or' | 282 | echo ' Install using (your) ~/bin/$(INSTALLKERNEL) or' |
283 | echo ' (distribution) /sbin/installkernel or' | 283 | echo ' (distribution) /sbin/$(INSTALLKERNEL) or' |
284 | echo ' install to $$(INSTALL_PATH) and run lilo' | 284 | echo ' install to $$(INSTALL_PATH) and run lilo' |
285 | endef | 285 | endef |
diff --git a/arch/arm/boot/install.sh b/arch/arm/boot/install.sh index 9f9bed207345..06ea7d42ce8e 100644 --- a/arch/arm/boot/install.sh +++ b/arch/arm/boot/install.sh | |||
@@ -21,8 +21,8 @@ | |||
21 | # | 21 | # |
22 | 22 | ||
23 | # User may have a custom install script | 23 | # User may have a custom install script |
24 | if [ -x ~/bin/${CROSS_COMPILE}installkernel ]; then exec ~/bin/${CROSS_COMPILE}installkernel "$@"; fi | 24 | if [ -x ~/bin/${INSTALLKERNEL} ]; then exec ~/bin/${INSTALLKERNEL} "$@"; fi |
25 | if [ -x /sbin/${CROSS_COMPILE}installkernel ]; then exec /sbin/${CROSS_COMPILE}installkernel "$@"; fi | 25 | if [ -x /sbin/${INSTALLKERNEL} ]; then exec /sbin/${INSTALLKERNEL} "$@"; fi |
26 | 26 | ||
27 | if [ "$(basename $2)" = "zImage" ]; then | 27 | if [ "$(basename $2)" = "zImage" ]; then |
28 | # Compressed install | 28 | # Compressed install |
diff --git a/arch/arm/common/locomo.c b/arch/arm/common/locomo.c index 2293f0ce061e..bd36c778c819 100644 --- a/arch/arm/common/locomo.c +++ b/arch/arm/common/locomo.c | |||
@@ -865,6 +865,7 @@ void locomo_gpio_set_dir(struct device *dev, unsigned int bits, unsigned int dir | |||
865 | 865 | ||
866 | spin_unlock_irqrestore(&lchip->lock, flags); | 866 | spin_unlock_irqrestore(&lchip->lock, flags); |
867 | } | 867 | } |
868 | EXPORT_SYMBOL(locomo_gpio_set_dir); | ||
868 | 869 | ||
869 | int locomo_gpio_read_level(struct device *dev, unsigned int bits) | 870 | int locomo_gpio_read_level(struct device *dev, unsigned int bits) |
870 | { | 871 | { |
@@ -882,6 +883,7 @@ int locomo_gpio_read_level(struct device *dev, unsigned int bits) | |||
882 | ret &= bits; | 883 | ret &= bits; |
883 | return ret; | 884 | return ret; |
884 | } | 885 | } |
886 | EXPORT_SYMBOL(locomo_gpio_read_level); | ||
885 | 887 | ||
886 | int locomo_gpio_read_output(struct device *dev, unsigned int bits) | 888 | int locomo_gpio_read_output(struct device *dev, unsigned int bits) |
887 | { | 889 | { |
@@ -899,6 +901,7 @@ int locomo_gpio_read_output(struct device *dev, unsigned int bits) | |||
899 | ret &= bits; | 901 | ret &= bits; |
900 | return ret; | 902 | return ret; |
901 | } | 903 | } |
904 | EXPORT_SYMBOL(locomo_gpio_read_output); | ||
902 | 905 | ||
903 | void locomo_gpio_write(struct device *dev, unsigned int bits, unsigned int set) | 906 | void locomo_gpio_write(struct device *dev, unsigned int bits, unsigned int set) |
904 | { | 907 | { |
@@ -920,6 +923,7 @@ void locomo_gpio_write(struct device *dev, unsigned int bits, unsigned int set) | |||
920 | 923 | ||
921 | spin_unlock_irqrestore(&lchip->lock, flags); | 924 | spin_unlock_irqrestore(&lchip->lock, flags); |
922 | } | 925 | } |
926 | EXPORT_SYMBOL(locomo_gpio_write); | ||
923 | 927 | ||
924 | static void locomo_m62332_sendbit(void *mapbase, int bit) | 928 | static void locomo_m62332_sendbit(void *mapbase, int bit) |
925 | { | 929 | { |
@@ -1084,13 +1088,12 @@ void locomo_m62332_senddata(struct locomo_dev *ldev, unsigned int dac_data, int | |||
1084 | 1088 | ||
1085 | spin_unlock_irqrestore(&lchip->lock, flags); | 1089 | spin_unlock_irqrestore(&lchip->lock, flags); |
1086 | } | 1090 | } |
1091 | EXPORT_SYMBOL(locomo_m62332_senddata); | ||
1087 | 1092 | ||
1088 | /* | 1093 | /* |
1089 | * Frontlight control | 1094 | * Frontlight control |
1090 | */ | 1095 | */ |
1091 | 1096 | ||
1092 | static struct locomo *locomo_chip_driver(struct locomo_dev *ldev); | ||
1093 | |||
1094 | void locomo_frontlight_set(struct locomo_dev *dev, int duty, int vr, int bpwf) | 1097 | void locomo_frontlight_set(struct locomo_dev *dev, int duty, int vr, int bpwf) |
1095 | { | 1098 | { |
1096 | unsigned long flags; | 1099 | unsigned long flags; |
@@ -1182,11 +1185,13 @@ int locomo_driver_register(struct locomo_driver *driver) | |||
1182 | driver->drv.bus = &locomo_bus_type; | 1185 | driver->drv.bus = &locomo_bus_type; |
1183 | return driver_register(&driver->drv); | 1186 | return driver_register(&driver->drv); |
1184 | } | 1187 | } |
1188 | EXPORT_SYMBOL(locomo_driver_register); | ||
1185 | 1189 | ||
1186 | void locomo_driver_unregister(struct locomo_driver *driver) | 1190 | void locomo_driver_unregister(struct locomo_driver *driver) |
1187 | { | 1191 | { |
1188 | driver_unregister(&driver->drv); | 1192 | driver_unregister(&driver->drv); |
1189 | } | 1193 | } |
1194 | EXPORT_SYMBOL(locomo_driver_unregister); | ||
1190 | 1195 | ||
1191 | static int __init locomo_init(void) | 1196 | static int __init locomo_init(void) |
1192 | { | 1197 | { |
@@ -1208,11 +1213,3 @@ module_exit(locomo_exit); | |||
1208 | MODULE_DESCRIPTION("Sharp LoCoMo core driver"); | 1213 | MODULE_DESCRIPTION("Sharp LoCoMo core driver"); |
1209 | MODULE_LICENSE("GPL"); | 1214 | MODULE_LICENSE("GPL"); |
1210 | MODULE_AUTHOR("John Lenz <lenz@cs.wisc.edu>"); | 1215 | MODULE_AUTHOR("John Lenz <lenz@cs.wisc.edu>"); |
1211 | |||
1212 | EXPORT_SYMBOL(locomo_driver_register); | ||
1213 | EXPORT_SYMBOL(locomo_driver_unregister); | ||
1214 | EXPORT_SYMBOL(locomo_gpio_set_dir); | ||
1215 | EXPORT_SYMBOL(locomo_gpio_read_level); | ||
1216 | EXPORT_SYMBOL(locomo_gpio_read_output); | ||
1217 | EXPORT_SYMBOL(locomo_gpio_write); | ||
1218 | EXPORT_SYMBOL(locomo_m62332_senddata); | ||
diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c index ef12794c3c68..8ba7044c554d 100644 --- a/arch/arm/common/sa1111.c +++ b/arch/arm/common/sa1111.c | |||
@@ -1032,6 +1032,7 @@ unsigned int sa1111_pll_clock(struct sa1111_dev *sadev) | |||
1032 | 1032 | ||
1033 | return __sa1111_pll_clock(sachip); | 1033 | return __sa1111_pll_clock(sachip); |
1034 | } | 1034 | } |
1035 | EXPORT_SYMBOL(sa1111_pll_clock); | ||
1035 | 1036 | ||
1036 | /** | 1037 | /** |
1037 | * sa1111_select_audio_mode - select I2S or AC link mode | 1038 | * sa1111_select_audio_mode - select I2S or AC link mode |
@@ -1059,6 +1060,7 @@ void sa1111_select_audio_mode(struct sa1111_dev *sadev, int mode) | |||
1059 | 1060 | ||
1060 | spin_unlock_irqrestore(&sachip->lock, flags); | 1061 | spin_unlock_irqrestore(&sachip->lock, flags); |
1061 | } | 1062 | } |
1063 | EXPORT_SYMBOL(sa1111_select_audio_mode); | ||
1062 | 1064 | ||
1063 | /** | 1065 | /** |
1064 | * sa1111_set_audio_rate - set the audio sample rate | 1066 | * sa1111_set_audio_rate - set the audio sample rate |
@@ -1083,6 +1085,7 @@ int sa1111_set_audio_rate(struct sa1111_dev *sadev, int rate) | |||
1083 | 1085 | ||
1084 | return 0; | 1086 | return 0; |
1085 | } | 1087 | } |
1088 | EXPORT_SYMBOL(sa1111_set_audio_rate); | ||
1086 | 1089 | ||
1087 | /** | 1090 | /** |
1088 | * sa1111_get_audio_rate - get the audio sample rate | 1091 | * sa1111_get_audio_rate - get the audio sample rate |
@@ -1100,6 +1103,7 @@ int sa1111_get_audio_rate(struct sa1111_dev *sadev) | |||
1100 | 1103 | ||
1101 | return __sa1111_pll_clock(sachip) / (256 * div); | 1104 | return __sa1111_pll_clock(sachip) / (256 * div); |
1102 | } | 1105 | } |
1106 | EXPORT_SYMBOL(sa1111_get_audio_rate); | ||
1103 | 1107 | ||
1104 | void sa1111_set_io_dir(struct sa1111_dev *sadev, | 1108 | void sa1111_set_io_dir(struct sa1111_dev *sadev, |
1105 | unsigned int bits, unsigned int dir, | 1109 | unsigned int bits, unsigned int dir, |
@@ -1128,6 +1132,7 @@ void sa1111_set_io_dir(struct sa1111_dev *sadev, | |||
1128 | MODIFY_BITS(gpio + SA1111_GPIO_PCSDR, (bits >> 16) & 255, sleep_dir >> 16); | 1132 | MODIFY_BITS(gpio + SA1111_GPIO_PCSDR, (bits >> 16) & 255, sleep_dir >> 16); |
1129 | spin_unlock_irqrestore(&sachip->lock, flags); | 1133 | spin_unlock_irqrestore(&sachip->lock, flags); |
1130 | } | 1134 | } |
1135 | EXPORT_SYMBOL(sa1111_set_io_dir); | ||
1131 | 1136 | ||
1132 | void sa1111_set_io(struct sa1111_dev *sadev, unsigned int bits, unsigned int v) | 1137 | void sa1111_set_io(struct sa1111_dev *sadev, unsigned int bits, unsigned int v) |
1133 | { | 1138 | { |
@@ -1142,6 +1147,7 @@ void sa1111_set_io(struct sa1111_dev *sadev, unsigned int bits, unsigned int v) | |||
1142 | MODIFY_BITS(gpio + SA1111_GPIO_PCDWR, (bits >> 16) & 255, v >> 16); | 1147 | MODIFY_BITS(gpio + SA1111_GPIO_PCDWR, (bits >> 16) & 255, v >> 16); |
1143 | spin_unlock_irqrestore(&sachip->lock, flags); | 1148 | spin_unlock_irqrestore(&sachip->lock, flags); |
1144 | } | 1149 | } |
1150 | EXPORT_SYMBOL(sa1111_set_io); | ||
1145 | 1151 | ||
1146 | void sa1111_set_sleep_io(struct sa1111_dev *sadev, unsigned int bits, unsigned int v) | 1152 | void sa1111_set_sleep_io(struct sa1111_dev *sadev, unsigned int bits, unsigned int v) |
1147 | { | 1153 | { |
@@ -1156,6 +1162,7 @@ void sa1111_set_sleep_io(struct sa1111_dev *sadev, unsigned int bits, unsigned i | |||
1156 | MODIFY_BITS(gpio + SA1111_GPIO_PCSSR, (bits >> 16) & 255, v >> 16); | 1162 | MODIFY_BITS(gpio + SA1111_GPIO_PCSSR, (bits >> 16) & 255, v >> 16); |
1157 | spin_unlock_irqrestore(&sachip->lock, flags); | 1163 | spin_unlock_irqrestore(&sachip->lock, flags); |
1158 | } | 1164 | } |
1165 | EXPORT_SYMBOL(sa1111_set_sleep_io); | ||
1159 | 1166 | ||
1160 | /* | 1167 | /* |
1161 | * Individual device operations. | 1168 | * Individual device operations. |
@@ -1176,6 +1183,7 @@ void sa1111_enable_device(struct sa1111_dev *sadev) | |||
1176 | sa1111_writel(val | sadev->skpcr_mask, sachip->base + SA1111_SKPCR); | 1183 | sa1111_writel(val | sadev->skpcr_mask, sachip->base + SA1111_SKPCR); |
1177 | spin_unlock_irqrestore(&sachip->lock, flags); | 1184 | spin_unlock_irqrestore(&sachip->lock, flags); |
1178 | } | 1185 | } |
1186 | EXPORT_SYMBOL(sa1111_enable_device); | ||
1179 | 1187 | ||
1180 | /** | 1188 | /** |
1181 | * sa1111_disable_device - disable an on-chip SA1111 function block | 1189 | * sa1111_disable_device - disable an on-chip SA1111 function block |
@@ -1192,6 +1200,7 @@ void sa1111_disable_device(struct sa1111_dev *sadev) | |||
1192 | sa1111_writel(val & ~sadev->skpcr_mask, sachip->base + SA1111_SKPCR); | 1200 | sa1111_writel(val & ~sadev->skpcr_mask, sachip->base + SA1111_SKPCR); |
1193 | spin_unlock_irqrestore(&sachip->lock, flags); | 1201 | spin_unlock_irqrestore(&sachip->lock, flags); |
1194 | } | 1202 | } |
1203 | EXPORT_SYMBOL(sa1111_disable_device); | ||
1195 | 1204 | ||
1196 | /* | 1205 | /* |
1197 | * SA1111 "Register Access Bus." | 1206 | * SA1111 "Register Access Bus." |
@@ -1259,17 +1268,20 @@ struct bus_type sa1111_bus_type = { | |||
1259 | .suspend = sa1111_bus_suspend, | 1268 | .suspend = sa1111_bus_suspend, |
1260 | .resume = sa1111_bus_resume, | 1269 | .resume = sa1111_bus_resume, |
1261 | }; | 1270 | }; |
1271 | EXPORT_SYMBOL(sa1111_bus_type); | ||
1262 | 1272 | ||
1263 | int sa1111_driver_register(struct sa1111_driver *driver) | 1273 | int sa1111_driver_register(struct sa1111_driver *driver) |
1264 | { | 1274 | { |
1265 | driver->drv.bus = &sa1111_bus_type; | 1275 | driver->drv.bus = &sa1111_bus_type; |
1266 | return driver_register(&driver->drv); | 1276 | return driver_register(&driver->drv); |
1267 | } | 1277 | } |
1278 | EXPORT_SYMBOL(sa1111_driver_register); | ||
1268 | 1279 | ||
1269 | void sa1111_driver_unregister(struct sa1111_driver *driver) | 1280 | void sa1111_driver_unregister(struct sa1111_driver *driver) |
1270 | { | 1281 | { |
1271 | driver_unregister(&driver->drv); | 1282 | driver_unregister(&driver->drv); |
1272 | } | 1283 | } |
1284 | EXPORT_SYMBOL(sa1111_driver_unregister); | ||
1273 | 1285 | ||
1274 | static int __init sa1111_init(void) | 1286 | static int __init sa1111_init(void) |
1275 | { | 1287 | { |
@@ -1290,16 +1302,3 @@ module_exit(sa1111_exit); | |||
1290 | 1302 | ||
1291 | MODULE_DESCRIPTION("Intel Corporation SA1111 core driver"); | 1303 | MODULE_DESCRIPTION("Intel Corporation SA1111 core driver"); |
1292 | MODULE_LICENSE("GPL"); | 1304 | MODULE_LICENSE("GPL"); |
1293 | |||
1294 | EXPORT_SYMBOL(sa1111_select_audio_mode); | ||
1295 | EXPORT_SYMBOL(sa1111_set_audio_rate); | ||
1296 | EXPORT_SYMBOL(sa1111_get_audio_rate); | ||
1297 | EXPORT_SYMBOL(sa1111_set_io_dir); | ||
1298 | EXPORT_SYMBOL(sa1111_set_io); | ||
1299 | EXPORT_SYMBOL(sa1111_set_sleep_io); | ||
1300 | EXPORT_SYMBOL(sa1111_enable_device); | ||
1301 | EXPORT_SYMBOL(sa1111_disable_device); | ||
1302 | EXPORT_SYMBOL(sa1111_pll_clock); | ||
1303 | EXPORT_SYMBOL(sa1111_bus_type); | ||
1304 | EXPORT_SYMBOL(sa1111_driver_register); | ||
1305 | EXPORT_SYMBOL(sa1111_driver_unregister); | ||
diff --git a/arch/arm/common/vic.c b/arch/arm/common/vic.c index 920ced0b73c5..f232941de8ab 100644 --- a/arch/arm/common/vic.c +++ b/arch/arm/common/vic.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/list.h> | 22 | #include <linux/list.h> |
23 | #include <linux/io.h> | 23 | #include <linux/io.h> |
24 | #include <linux/sysdev.h> | 24 | #include <linux/sysdev.h> |
25 | #include <linux/device.h> | ||
25 | #include <linux/amba/bus.h> | 26 | #include <linux/amba/bus.h> |
26 | 27 | ||
27 | #include <asm/mach/irq.h> | 28 | #include <asm/mach/irq.h> |
diff --git a/arch/arm/configs/h3600_defconfig b/arch/arm/configs/h3600_defconfig index 1502957db2c3..f6aed7747d4d 100644 --- a/arch/arm/configs/h3600_defconfig +++ b/arch/arm/configs/h3600_defconfig | |||
@@ -90,7 +90,6 @@ CONFIG_ARCH_SA1100=y | |||
90 | # CONFIG_SA1100_COLLIE is not set | 90 | # CONFIG_SA1100_COLLIE is not set |
91 | # CONFIG_SA1100_H3100 is not set | 91 | # CONFIG_SA1100_H3100 is not set |
92 | CONFIG_SA1100_H3600=y | 92 | CONFIG_SA1100_H3600=y |
93 | CONFIG_SA1100_H3XXX=y | ||
94 | # CONFIG_SA1100_BADGE4 is not set | 93 | # CONFIG_SA1100_BADGE4 is not set |
95 | # CONFIG_SA1100_JORNADA720 is not set | 94 | # CONFIG_SA1100_JORNADA720 is not set |
96 | # CONFIG_SA1100_HACKKIT is not set | 95 | # CONFIG_SA1100_HACKKIT is not set |
diff --git a/arch/arm/configs/iop33x_defconfig b/arch/arm/configs/iop33x_defconfig index eec488298267..ed2d59d01829 100644 --- a/arch/arm/configs/iop33x_defconfig +++ b/arch/arm/configs/iop33x_defconfig | |||
@@ -1,29 +1,26 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.24-rc5 | 3 | # Linux kernel version: 2.6.31-rc6 |
4 | # Wed Dec 12 16:11:27 2007 | 4 | # Tue Aug 18 13:41:41 2009 |
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 is not set | 8 | CONFIG_GENERIC_GPIO=y |
9 | # CONFIG_GENERIC_TIME is not set | ||
10 | # CONFIG_GENERIC_CLOCKEVENTS is not set | ||
11 | CONFIG_MMU=y | 9 | CONFIG_MMU=y |
12 | # CONFIG_NO_IOPORT is not set | ||
13 | CONFIG_GENERIC_HARDIRQS=y | 10 | CONFIG_GENERIC_HARDIRQS=y |
14 | CONFIG_STACKTRACE_SUPPORT=y | 11 | CONFIG_STACKTRACE_SUPPORT=y |
12 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | ||
15 | CONFIG_LOCKDEP_SUPPORT=y | 13 | CONFIG_LOCKDEP_SUPPORT=y |
16 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | 14 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y |
17 | CONFIG_HARDIRQS_SW_RESEND=y | 15 | CONFIG_HARDIRQS_SW_RESEND=y |
18 | CONFIG_GENERIC_IRQ_PROBE=y | 16 | CONFIG_GENERIC_IRQ_PROBE=y |
19 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | 17 | CONFIG_RWSEM_GENERIC_SPINLOCK=y |
20 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
21 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
22 | CONFIG_GENERIC_HWEIGHT=y | 18 | CONFIG_GENERIC_HWEIGHT=y |
23 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 19 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
24 | CONFIG_ZONE_DMA=y | 20 | CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y |
25 | CONFIG_VECTORS_BASE=0xffff0000 | 21 | CONFIG_VECTORS_BASE=0xffff0000 |
26 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | 22 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" |
23 | CONFIG_CONSTRUCTORS=y | ||
27 | 24 | ||
28 | # | 25 | # |
29 | # General setup | 26 | # General setup |
@@ -40,21 +37,39 @@ CONFIG_SYSVIPC_SYSCTL=y | |||
40 | CONFIG_BSD_PROCESS_ACCT=y | 37 | CONFIG_BSD_PROCESS_ACCT=y |
41 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | 38 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set |
42 | # CONFIG_TASKSTATS is not set | 39 | # CONFIG_TASKSTATS is not set |
43 | # CONFIG_USER_NS is not set | ||
44 | # CONFIG_PID_NS is not set | ||
45 | # CONFIG_AUDIT is not set | 40 | # CONFIG_AUDIT is not set |
41 | |||
42 | # | ||
43 | # RCU Subsystem | ||
44 | # | ||
45 | # CONFIG_CLASSIC_RCU is not set | ||
46 | CONFIG_TREE_RCU=y | ||
47 | # CONFIG_PREEMPT_RCU is not set | ||
48 | # CONFIG_RCU_TRACE is not set | ||
49 | CONFIG_RCU_FANOUT=32 | ||
50 | # CONFIG_RCU_FANOUT_EXACT is not set | ||
51 | # CONFIG_TREE_RCU_TRACE is not set | ||
52 | # CONFIG_PREEMPT_RCU_TRACE is not set | ||
46 | # CONFIG_IKCONFIG is not set | 53 | # CONFIG_IKCONFIG is not set |
47 | CONFIG_LOG_BUF_SHIFT=14 | 54 | CONFIG_LOG_BUF_SHIFT=14 |
55 | # CONFIG_GROUP_SCHED is not set | ||
48 | # CONFIG_CGROUPS is not set | 56 | # CONFIG_CGROUPS is not set |
49 | CONFIG_FAIR_GROUP_SCHED=y | 57 | # CONFIG_SYSFS_DEPRECATED_V2 is not set |
50 | CONFIG_FAIR_USER_SCHED=y | ||
51 | # CONFIG_FAIR_CGROUP_SCHED is not set | ||
52 | CONFIG_SYSFS_DEPRECATED=y | ||
53 | # CONFIG_RELAY is not set | 58 | # CONFIG_RELAY is not set |
59 | CONFIG_NAMESPACES=y | ||
60 | # CONFIG_UTS_NS is not set | ||
61 | # CONFIG_IPC_NS is not set | ||
62 | # CONFIG_USER_NS is not set | ||
63 | # CONFIG_PID_NS is not set | ||
64 | # CONFIG_NET_NS is not set | ||
54 | CONFIG_BLK_DEV_INITRD=y | 65 | CONFIG_BLK_DEV_INITRD=y |
55 | CONFIG_INITRAMFS_SOURCE="" | 66 | CONFIG_INITRAMFS_SOURCE="" |
67 | CONFIG_RD_GZIP=y | ||
68 | CONFIG_RD_BZIP2=y | ||
69 | CONFIG_RD_LZMA=y | ||
56 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 70 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
57 | CONFIG_SYSCTL=y | 71 | CONFIG_SYSCTL=y |
72 | CONFIG_ANON_INODES=y | ||
58 | # CONFIG_EMBEDDED is not set | 73 | # CONFIG_EMBEDDED is not set |
59 | CONFIG_UID16=y | 74 | CONFIG_UID16=y |
60 | CONFIG_SYSCTL_SYSCALL=y | 75 | CONFIG_SYSCTL_SYSCALL=y |
@@ -67,29 +82,48 @@ CONFIG_BUG=y | |||
67 | CONFIG_ELF_CORE=y | 82 | CONFIG_ELF_CORE=y |
68 | CONFIG_BASE_FULL=y | 83 | CONFIG_BASE_FULL=y |
69 | CONFIG_FUTEX=y | 84 | CONFIG_FUTEX=y |
70 | CONFIG_ANON_INODES=y | ||
71 | CONFIG_EPOLL=y | 85 | CONFIG_EPOLL=y |
72 | CONFIG_SIGNALFD=y | 86 | CONFIG_SIGNALFD=y |
87 | CONFIG_TIMERFD=y | ||
73 | CONFIG_EVENTFD=y | 88 | CONFIG_EVENTFD=y |
74 | CONFIG_SHMEM=y | 89 | CONFIG_SHMEM=y |
90 | CONFIG_AIO=y | ||
91 | |||
92 | # | ||
93 | # Performance Counters | ||
94 | # | ||
75 | CONFIG_VM_EVENT_COUNTERS=y | 95 | CONFIG_VM_EVENT_COUNTERS=y |
96 | CONFIG_PCI_QUIRKS=y | ||
97 | # CONFIG_STRIP_ASM_SYMS is not set | ||
98 | CONFIG_COMPAT_BRK=y | ||
76 | CONFIG_SLAB=y | 99 | CONFIG_SLAB=y |
77 | # CONFIG_SLUB is not set | 100 | # CONFIG_SLUB is not set |
78 | # CONFIG_SLOB is not set | 101 | # CONFIG_SLOB is not set |
102 | # CONFIG_PROFILING is not set | ||
103 | # CONFIG_MARKERS is not set | ||
104 | CONFIG_HAVE_OPROFILE=y | ||
105 | # CONFIG_KPROBES is not set | ||
106 | CONFIG_HAVE_KPROBES=y | ||
107 | CONFIG_HAVE_KRETPROBES=y | ||
108 | |||
109 | # | ||
110 | # GCOV-based kernel profiling | ||
111 | # | ||
112 | # CONFIG_SLOW_WORK is not set | ||
113 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | ||
114 | CONFIG_SLABINFO=y | ||
79 | CONFIG_RT_MUTEXES=y | 115 | CONFIG_RT_MUTEXES=y |
80 | # CONFIG_TINY_SHMEM is not set | ||
81 | CONFIG_BASE_SMALL=0 | 116 | CONFIG_BASE_SMALL=0 |
82 | CONFIG_MODULES=y | 117 | CONFIG_MODULES=y |
118 | # CONFIG_MODULE_FORCE_LOAD is not set | ||
83 | CONFIG_MODULE_UNLOAD=y | 119 | CONFIG_MODULE_UNLOAD=y |
84 | # CONFIG_MODULE_FORCE_UNLOAD is not set | 120 | # CONFIG_MODULE_FORCE_UNLOAD is not set |
85 | # CONFIG_MODVERSIONS is not set | 121 | # CONFIG_MODVERSIONS is not set |
86 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 122 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
87 | CONFIG_KMOD=y | ||
88 | CONFIG_BLOCK=y | 123 | CONFIG_BLOCK=y |
89 | # CONFIG_LBD is not set | 124 | CONFIG_LBDAF=y |
90 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
91 | # CONFIG_LSF is not set | ||
92 | # CONFIG_BLK_DEV_BSG is not set | 125 | # CONFIG_BLK_DEV_BSG is not set |
126 | # CONFIG_BLK_DEV_INTEGRITY is not set | ||
93 | 127 | ||
94 | # | 128 | # |
95 | # IO Schedulers | 129 | # IO Schedulers |
@@ -103,6 +137,7 @@ CONFIG_IOSCHED_CFQ=y | |||
103 | CONFIG_DEFAULT_CFQ=y | 137 | CONFIG_DEFAULT_CFQ=y |
104 | # CONFIG_DEFAULT_NOOP is not set | 138 | # CONFIG_DEFAULT_NOOP is not set |
105 | CONFIG_DEFAULT_IOSCHED="cfq" | 139 | CONFIG_DEFAULT_IOSCHED="cfq" |
140 | # CONFIG_FREEZER is not set | ||
106 | 141 | ||
107 | # | 142 | # |
108 | # System Type | 143 | # System Type |
@@ -112,15 +147,15 @@ CONFIG_DEFAULT_IOSCHED="cfq" | |||
112 | # CONFIG_ARCH_REALVIEW is not set | 147 | # CONFIG_ARCH_REALVIEW is not set |
113 | # CONFIG_ARCH_VERSATILE is not set | 148 | # CONFIG_ARCH_VERSATILE is not set |
114 | # CONFIG_ARCH_AT91 is not set | 149 | # CONFIG_ARCH_AT91 is not set |
115 | # CONFIG_ARCH_CLPS7500 is not set | ||
116 | # CONFIG_ARCH_CLPS711X is not set | 150 | # CONFIG_ARCH_CLPS711X is not set |
117 | # CONFIG_ARCH_CO285 is not set | 151 | # CONFIG_ARCH_GEMINI is not set |
118 | # CONFIG_ARCH_EBSA110 is not set | 152 | # CONFIG_ARCH_EBSA110 is not set |
119 | # CONFIG_ARCH_EP93XX is not set | 153 | # CONFIG_ARCH_EP93XX is not set |
120 | # CONFIG_ARCH_FOOTBRIDGE is not set | 154 | # CONFIG_ARCH_FOOTBRIDGE is not set |
155 | # CONFIG_ARCH_MXC is not set | ||
156 | # CONFIG_ARCH_STMP3XXX is not set | ||
121 | # CONFIG_ARCH_NETX is not set | 157 | # CONFIG_ARCH_NETX is not set |
122 | # CONFIG_ARCH_H720X is not set | 158 | # CONFIG_ARCH_H720X is not set |
123 | # CONFIG_ARCH_IMX is not set | ||
124 | # CONFIG_ARCH_IOP13XX is not set | 159 | # CONFIG_ARCH_IOP13XX is not set |
125 | # CONFIG_ARCH_IOP32X is not set | 160 | # CONFIG_ARCH_IOP32X is not set |
126 | CONFIG_ARCH_IOP33X=y | 161 | CONFIG_ARCH_IOP33X=y |
@@ -128,19 +163,26 @@ CONFIG_ARCH_IOP33X=y | |||
128 | # CONFIG_ARCH_IXP2000 is not set | 163 | # CONFIG_ARCH_IXP2000 is not set |
129 | # CONFIG_ARCH_IXP4XX is not set | 164 | # CONFIG_ARCH_IXP4XX is not set |
130 | # CONFIG_ARCH_L7200 is not set | 165 | # CONFIG_ARCH_L7200 is not set |
166 | # CONFIG_ARCH_KIRKWOOD is not set | ||
167 | # CONFIG_ARCH_LOKI is not set | ||
168 | # CONFIG_ARCH_MV78XX0 is not set | ||
169 | # CONFIG_ARCH_ORION5X is not set | ||
170 | # CONFIG_ARCH_MMP is not set | ||
131 | # CONFIG_ARCH_KS8695 is not set | 171 | # CONFIG_ARCH_KS8695 is not set |
132 | # CONFIG_ARCH_NS9XXX is not set | 172 | # CONFIG_ARCH_NS9XXX is not set |
133 | # CONFIG_ARCH_MXC is not set | 173 | # CONFIG_ARCH_W90X900 is not set |
134 | # CONFIG_ARCH_PNX4008 is not set | 174 | # CONFIG_ARCH_PNX4008 is not set |
135 | # CONFIG_ARCH_PXA is not set | 175 | # CONFIG_ARCH_PXA is not set |
176 | # CONFIG_ARCH_MSM is not set | ||
136 | # CONFIG_ARCH_RPC is not set | 177 | # CONFIG_ARCH_RPC is not set |
137 | # CONFIG_ARCH_SA1100 is not set | 178 | # CONFIG_ARCH_SA1100 is not set |
138 | # CONFIG_ARCH_S3C2410 is not set | 179 | # CONFIG_ARCH_S3C2410 is not set |
180 | # CONFIG_ARCH_S3C64XX is not set | ||
139 | # CONFIG_ARCH_SHARK is not set | 181 | # CONFIG_ARCH_SHARK is not set |
140 | # CONFIG_ARCH_LH7A40X is not set | 182 | # CONFIG_ARCH_LH7A40X is not set |
183 | # CONFIG_ARCH_U300 is not set | ||
141 | # CONFIG_ARCH_DAVINCI is not set | 184 | # CONFIG_ARCH_DAVINCI is not set |
142 | # CONFIG_ARCH_OMAP is not set | 185 | # CONFIG_ARCH_OMAP is not set |
143 | CONFIG_IOP3XX_ATU=y | ||
144 | 186 | ||
145 | # | 187 | # |
146 | # IOP33x Implementation Options | 188 | # IOP33x Implementation Options |
@@ -151,14 +193,6 @@ CONFIG_IOP3XX_ATU=y | |||
151 | # | 193 | # |
152 | CONFIG_ARCH_IQ80331=y | 194 | CONFIG_ARCH_IQ80331=y |
153 | CONFIG_MACH_IQ80332=y | 195 | CONFIG_MACH_IQ80332=y |
154 | |||
155 | # | ||
156 | # Boot options | ||
157 | # | ||
158 | |||
159 | # | ||
160 | # Power management | ||
161 | # | ||
162 | CONFIG_PLAT_IOP=y | 196 | CONFIG_PLAT_IOP=y |
163 | 197 | ||
164 | # | 198 | # |
@@ -168,6 +202,7 @@ CONFIG_CPU_32=y | |||
168 | CONFIG_CPU_XSCALE=y | 202 | CONFIG_CPU_XSCALE=y |
169 | CONFIG_CPU_32v5=y | 203 | CONFIG_CPU_32v5=y |
170 | CONFIG_CPU_ABRT_EV5T=y | 204 | CONFIG_CPU_ABRT_EV5T=y |
205 | CONFIG_CPU_PABRT_NOIFAR=y | ||
171 | CONFIG_CPU_CACHE_VIVT=y | 206 | CONFIG_CPU_CACHE_VIVT=y |
172 | CONFIG_CPU_TLB_V4WBI=y | 207 | CONFIG_CPU_TLB_V4WBI=y |
173 | CONFIG_CPU_CP15=y | 208 | CONFIG_CPU_CP15=y |
@@ -178,7 +213,6 @@ CONFIG_CPU_CP15_MMU=y | |||
178 | # | 213 | # |
179 | # CONFIG_ARM_THUMB is not set | 214 | # CONFIG_ARM_THUMB is not set |
180 | # CONFIG_CPU_DCACHE_DISABLE is not set | 215 | # CONFIG_CPU_DCACHE_DISABLE is not set |
181 | # CONFIG_OUTER_CACHE is not set | ||
182 | # CONFIG_IWMMXT is not set | 216 | # CONFIG_IWMMXT is not set |
183 | CONFIG_XSCALE_PMU=y | 217 | CONFIG_XSCALE_PMU=y |
184 | 218 | ||
@@ -190,41 +224,55 @@ CONFIG_PCI_SYSCALL=y | |||
190 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 224 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
191 | CONFIG_PCI_LEGACY=y | 225 | CONFIG_PCI_LEGACY=y |
192 | # CONFIG_PCI_DEBUG is not set | 226 | # CONFIG_PCI_DEBUG is not set |
227 | # CONFIG_PCI_STUB is not set | ||
228 | # CONFIG_PCI_IOV is not set | ||
193 | # CONFIG_PCCARD is not set | 229 | # CONFIG_PCCARD is not set |
194 | 230 | ||
195 | # | 231 | # |
196 | # Kernel Features | 232 | # Kernel Features |
197 | # | 233 | # |
198 | # CONFIG_TICK_ONESHOT is not set | 234 | CONFIG_VMSPLIT_3G=y |
235 | # CONFIG_VMSPLIT_2G is not set | ||
236 | # CONFIG_VMSPLIT_1G is not set | ||
237 | CONFIG_PAGE_OFFSET=0xC0000000 | ||
199 | # CONFIG_PREEMPT is not set | 238 | # CONFIG_PREEMPT is not set |
200 | CONFIG_HZ=100 | 239 | CONFIG_HZ=100 |
201 | # CONFIG_AEABI is not set | 240 | # CONFIG_AEABI is not set |
202 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | 241 | # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set |
242 | # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set | ||
243 | # CONFIG_HIGHMEM is not set | ||
203 | CONFIG_SELECT_MEMORY_MODEL=y | 244 | CONFIG_SELECT_MEMORY_MODEL=y |
204 | CONFIG_FLATMEM_MANUAL=y | 245 | CONFIG_FLATMEM_MANUAL=y |
205 | # CONFIG_DISCONTIGMEM_MANUAL is not set | 246 | # CONFIG_DISCONTIGMEM_MANUAL is not set |
206 | # CONFIG_SPARSEMEM_MANUAL is not set | 247 | # CONFIG_SPARSEMEM_MANUAL is not set |
207 | CONFIG_FLATMEM=y | 248 | CONFIG_FLATMEM=y |
208 | CONFIG_FLAT_NODE_MEM_MAP=y | 249 | CONFIG_FLAT_NODE_MEM_MAP=y |
209 | # CONFIG_SPARSEMEM_STATIC is not set | 250 | CONFIG_PAGEFLAGS_EXTENDED=y |
210 | # CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not set | ||
211 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | 251 | CONFIG_SPLIT_PTLOCK_CPUS=4096 |
212 | # CONFIG_RESOURCES_64BIT is not set | 252 | # CONFIG_PHYS_ADDR_T_64BIT is not set |
213 | CONFIG_ZONE_DMA_FLAG=1 | 253 | CONFIG_ZONE_DMA_FLAG=0 |
214 | CONFIG_BOUNCE=y | ||
215 | CONFIG_VIRT_TO_BUS=y | 254 | CONFIG_VIRT_TO_BUS=y |
255 | CONFIG_HAVE_MLOCK=y | ||
256 | CONFIG_HAVE_MLOCKED_PAGE_BIT=y | ||
257 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 | ||
216 | CONFIG_ALIGNMENT_TRAP=y | 258 | CONFIG_ALIGNMENT_TRAP=y |
259 | # CONFIG_UACCESS_WITH_MEMCPY is not set | ||
217 | 260 | ||
218 | # | 261 | # |
219 | # Boot options | 262 | # Boot options |
220 | # | 263 | # |
221 | CONFIG_ZBOOT_ROM_TEXT=0x0 | 264 | CONFIG_ZBOOT_ROM_TEXT=0x0 |
222 | CONFIG_ZBOOT_ROM_BSS=0x0 | 265 | CONFIG_ZBOOT_ROM_BSS=0x0 |
223 | CONFIG_CMDLINE="console=ttyS0,115200 root=/dev/nfs ip=bootp cachepolicy=writealloc" | 266 | CONFIG_CMDLINE="console=ttyS0,115200 root=/dev/nfs ip=bootp cachepolicy=writealloc iop3xx_init_atu=y" |
224 | # CONFIG_XIP_KERNEL is not set | 267 | # CONFIG_XIP_KERNEL is not set |
225 | # CONFIG_KEXEC is not set | 268 | # CONFIG_KEXEC is not set |
226 | 269 | ||
227 | # | 270 | # |
271 | # CPU Power Management | ||
272 | # | ||
273 | # CONFIG_CPU_IDLE is not set | ||
274 | |||
275 | # | ||
228 | # Floating point emulation | 276 | # Floating point emulation |
229 | # | 277 | # |
230 | 278 | ||
@@ -239,6 +287,8 @@ CONFIG_FPE_NWFPE=y | |||
239 | # Userspace binary formats | 287 | # Userspace binary formats |
240 | # | 288 | # |
241 | CONFIG_BINFMT_ELF=y | 289 | CONFIG_BINFMT_ELF=y |
290 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set | ||
291 | CONFIG_HAVE_AOUT=y | ||
242 | CONFIG_BINFMT_AOUT=y | 292 | CONFIG_BINFMT_AOUT=y |
243 | # CONFIG_BINFMT_MISC is not set | 293 | # CONFIG_BINFMT_MISC is not set |
244 | # CONFIG_ARTHUR is not set | 294 | # CONFIG_ARTHUR is not set |
@@ -247,11 +297,7 @@ CONFIG_BINFMT_AOUT=y | |||
247 | # Power management options | 297 | # Power management options |
248 | # | 298 | # |
249 | # CONFIG_PM is not set | 299 | # CONFIG_PM is not set |
250 | CONFIG_SUSPEND_UP_POSSIBLE=y | 300 | CONFIG_ARCH_SUSPEND_POSSIBLE=y |
251 | |||
252 | # | ||
253 | # Networking | ||
254 | # | ||
255 | CONFIG_NET=y | 301 | CONFIG_NET=y |
256 | 302 | ||
257 | # | 303 | # |
@@ -264,6 +310,7 @@ CONFIG_XFRM=y | |||
264 | # CONFIG_XFRM_USER is not set | 310 | # CONFIG_XFRM_USER is not set |
265 | # CONFIG_XFRM_SUB_POLICY is not set | 311 | # CONFIG_XFRM_SUB_POLICY is not set |
266 | # CONFIG_XFRM_MIGRATE is not set | 312 | # CONFIG_XFRM_MIGRATE is not set |
313 | # CONFIG_XFRM_STATISTICS is not set | ||
267 | # CONFIG_NET_KEY is not set | 314 | # CONFIG_NET_KEY is not set |
268 | CONFIG_INET=y | 315 | CONFIG_INET=y |
269 | CONFIG_IP_MULTICAST=y | 316 | CONFIG_IP_MULTICAST=y |
@@ -310,6 +357,7 @@ CONFIG_IPV6=y | |||
310 | # CONFIG_IPV6_SIT is not set | 357 | # CONFIG_IPV6_SIT is not set |
311 | # CONFIG_IPV6_TUNNEL is not set | 358 | # CONFIG_IPV6_TUNNEL is not set |
312 | # CONFIG_IPV6_MULTIPLE_TABLES is not set | 359 | # CONFIG_IPV6_MULTIPLE_TABLES is not set |
360 | # CONFIG_IPV6_MROUTE is not set | ||
313 | # CONFIG_NETWORK_SECMARK is not set | 361 | # CONFIG_NETWORK_SECMARK is not set |
314 | # CONFIG_NETFILTER is not set | 362 | # CONFIG_NETFILTER is not set |
315 | # CONFIG_IP_DCCP is not set | 363 | # CONFIG_IP_DCCP is not set |
@@ -317,6 +365,7 @@ CONFIG_IPV6=y | |||
317 | # CONFIG_TIPC is not set | 365 | # CONFIG_TIPC is not set |
318 | # CONFIG_ATM is not set | 366 | # CONFIG_ATM is not set |
319 | # CONFIG_BRIDGE is not set | 367 | # CONFIG_BRIDGE is not set |
368 | # CONFIG_NET_DSA is not set | ||
320 | # CONFIG_VLAN_8021Q is not set | 369 | # CONFIG_VLAN_8021Q is not set |
321 | # CONFIG_DECNET is not set | 370 | # CONFIG_DECNET is not set |
322 | # CONFIG_LLC2 is not set | 371 | # CONFIG_LLC2 is not set |
@@ -326,24 +375,31 @@ CONFIG_IPV6=y | |||
326 | # CONFIG_LAPB is not set | 375 | # CONFIG_LAPB is not set |
327 | # CONFIG_ECONET is not set | 376 | # CONFIG_ECONET is not set |
328 | # CONFIG_WAN_ROUTER is not set | 377 | # CONFIG_WAN_ROUTER is not set |
378 | # CONFIG_PHONET is not set | ||
379 | # CONFIG_IEEE802154 is not set | ||
329 | # CONFIG_NET_SCHED is not set | 380 | # CONFIG_NET_SCHED is not set |
381 | # CONFIG_DCB is not set | ||
330 | 382 | ||
331 | # | 383 | # |
332 | # Network testing | 384 | # Network testing |
333 | # | 385 | # |
334 | # CONFIG_NET_PKTGEN is not set | 386 | # CONFIG_NET_PKTGEN is not set |
335 | # CONFIG_HAMRADIO is not set | 387 | # CONFIG_HAMRADIO is not set |
388 | # CONFIG_CAN is not set | ||
336 | # CONFIG_IRDA is not set | 389 | # CONFIG_IRDA is not set |
337 | # CONFIG_BT is not set | 390 | # CONFIG_BT is not set |
338 | # CONFIG_AF_RXRPC is not set | 391 | # CONFIG_AF_RXRPC is not set |
392 | CONFIG_WIRELESS=y | ||
393 | # CONFIG_CFG80211 is not set | ||
394 | # CONFIG_WIRELESS_OLD_REGULATORY is not set | ||
395 | # CONFIG_WIRELESS_EXT is not set | ||
396 | # CONFIG_LIB80211 is not set | ||
339 | 397 | ||
340 | # | 398 | # |
341 | # Wireless | 399 | # CFG80211 needs to be enabled for MAC80211 |
342 | # | 400 | # |
343 | # CONFIG_CFG80211 is not set | 401 | CONFIG_MAC80211_DEFAULT_PS_VALUE=0 |
344 | # CONFIG_WIRELESS_EXT is not set | 402 | # CONFIG_WIMAX is not set |
345 | # CONFIG_MAC80211 is not set | ||
346 | # CONFIG_IEEE80211 is not set | ||
347 | # CONFIG_RFKILL is not set | 403 | # CONFIG_RFKILL is not set |
348 | # CONFIG_NET_9P is not set | 404 | # CONFIG_NET_9P is not set |
349 | 405 | ||
@@ -357,7 +413,9 @@ CONFIG_IPV6=y | |||
357 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | 413 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" |
358 | CONFIG_STANDALONE=y | 414 | CONFIG_STANDALONE=y |
359 | CONFIG_PREVENT_FIRMWARE_BUILD=y | 415 | CONFIG_PREVENT_FIRMWARE_BUILD=y |
360 | # CONFIG_FW_LOADER is not set | 416 | CONFIG_FW_LOADER=y |
417 | CONFIG_FIRMWARE_IN_KERNEL=y | ||
418 | CONFIG_EXTRA_FIRMWARE="" | ||
361 | # CONFIG_DEBUG_DRIVER is not set | 419 | # CONFIG_DEBUG_DRIVER is not set |
362 | # CONFIG_DEBUG_DEVRES is not set | 420 | # CONFIG_DEBUG_DEVRES is not set |
363 | # CONFIG_SYS_HYPERVISOR is not set | 421 | # CONFIG_SYS_HYPERVISOR is not set |
@@ -366,12 +424,14 @@ CONFIG_MTD=y | |||
366 | # CONFIG_MTD_DEBUG is not set | 424 | # CONFIG_MTD_DEBUG is not set |
367 | # CONFIG_MTD_CONCAT is not set | 425 | # CONFIG_MTD_CONCAT is not set |
368 | CONFIG_MTD_PARTITIONS=y | 426 | CONFIG_MTD_PARTITIONS=y |
427 | # CONFIG_MTD_TESTS is not set | ||
369 | CONFIG_MTD_REDBOOT_PARTS=y | 428 | CONFIG_MTD_REDBOOT_PARTS=y |
370 | CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1 | 429 | CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1 |
371 | CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED=y | 430 | CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED=y |
372 | CONFIG_MTD_REDBOOT_PARTS_READONLY=y | 431 | CONFIG_MTD_REDBOOT_PARTS_READONLY=y |
373 | # CONFIG_MTD_CMDLINE_PARTS is not set | 432 | # CONFIG_MTD_CMDLINE_PARTS is not set |
374 | # CONFIG_MTD_AFS_PARTS is not set | 433 | # CONFIG_MTD_AFS_PARTS is not set |
434 | # CONFIG_MTD_AR7_PARTS is not set | ||
375 | 435 | ||
376 | # | 436 | # |
377 | # User Modules And Translation Layers | 437 | # User Modules And Translation Layers |
@@ -421,9 +481,7 @@ CONFIG_MTD_CFI_UTIL=y | |||
421 | # | 481 | # |
422 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | 482 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set |
423 | CONFIG_MTD_PHYSMAP=y | 483 | CONFIG_MTD_PHYSMAP=y |
424 | CONFIG_MTD_PHYSMAP_START=0x0 | 484 | # CONFIG_MTD_PHYSMAP_COMPAT is not set |
425 | CONFIG_MTD_PHYSMAP_LEN=0x0 | ||
426 | CONFIG_MTD_PHYSMAP_BANKWIDTH=1 | ||
427 | # CONFIG_MTD_ARM_INTEGRATOR is not set | 485 | # CONFIG_MTD_ARM_INTEGRATOR is not set |
428 | # CONFIG_MTD_INTEL_VR_NOR is not set | 486 | # CONFIG_MTD_INTEL_VR_NOR is not set |
429 | # CONFIG_MTD_PLATRAM is not set | 487 | # CONFIG_MTD_PLATRAM is not set |
@@ -447,6 +505,11 @@ CONFIG_MTD_PHYSMAP_BANKWIDTH=1 | |||
447 | # CONFIG_MTD_ONENAND is not set | 505 | # CONFIG_MTD_ONENAND is not set |
448 | 506 | ||
449 | # | 507 | # |
508 | # LPDDR flash memory drivers | ||
509 | # | ||
510 | # CONFIG_MTD_LPDDR is not set | ||
511 | |||
512 | # | ||
450 | # UBI - Unsorted block images | 513 | # UBI - Unsorted block images |
451 | # | 514 | # |
452 | # CONFIG_MTD_UBI is not set | 515 | # CONFIG_MTD_UBI is not set |
@@ -463,14 +526,29 @@ CONFIG_BLK_DEV_NBD=y | |||
463 | CONFIG_BLK_DEV_RAM=y | 526 | CONFIG_BLK_DEV_RAM=y |
464 | CONFIG_BLK_DEV_RAM_COUNT=16 | 527 | CONFIG_BLK_DEV_RAM_COUNT=16 |
465 | CONFIG_BLK_DEV_RAM_SIZE=8192 | 528 | CONFIG_BLK_DEV_RAM_SIZE=8192 |
466 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | 529 | # CONFIG_BLK_DEV_XIP is not set |
467 | # CONFIG_CDROM_PKTCDVD is not set | 530 | # CONFIG_CDROM_PKTCDVD is not set |
468 | # CONFIG_ATA_OVER_ETH is not set | 531 | # CONFIG_ATA_OVER_ETH is not set |
532 | # CONFIG_MG_DISK is not set | ||
469 | CONFIG_MISC_DEVICES=y | 533 | CONFIG_MISC_DEVICES=y |
470 | # CONFIG_PHANTOM is not set | 534 | # CONFIG_PHANTOM is not set |
471 | # CONFIG_EEPROM_93CX6 is not set | ||
472 | # CONFIG_SGI_IOC4 is not set | 535 | # CONFIG_SGI_IOC4 is not set |
473 | # CONFIG_TIFM_CORE is not set | 536 | # CONFIG_TIFM_CORE is not set |
537 | # CONFIG_ICS932S401 is not set | ||
538 | # CONFIG_ENCLOSURE_SERVICES is not set | ||
539 | # CONFIG_HP_ILO is not set | ||
540 | # CONFIG_ISL29003 is not set | ||
541 | # CONFIG_C2PORT is not set | ||
542 | |||
543 | # | ||
544 | # EEPROM support | ||
545 | # | ||
546 | # CONFIG_EEPROM_AT24 is not set | ||
547 | # CONFIG_EEPROM_LEGACY is not set | ||
548 | # CONFIG_EEPROM_MAX6875 is not set | ||
549 | # CONFIG_EEPROM_93CX6 is not set | ||
550 | # CONFIG_CB710_CORE is not set | ||
551 | CONFIG_HAVE_IDE=y | ||
474 | # CONFIG_IDE is not set | 552 | # CONFIG_IDE is not set |
475 | 553 | ||
476 | # | 554 | # |
@@ -492,10 +570,6 @@ CONFIG_BLK_DEV_SD=y | |||
492 | # CONFIG_BLK_DEV_SR is not set | 570 | # CONFIG_BLK_DEV_SR is not set |
493 | CONFIG_CHR_DEV_SG=y | 571 | CONFIG_CHR_DEV_SG=y |
494 | # CONFIG_CHR_DEV_SCH is not set | 572 | # CONFIG_CHR_DEV_SCH is not set |
495 | |||
496 | # | ||
497 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
498 | # | ||
499 | # CONFIG_SCSI_MULTI_LUN is not set | 573 | # CONFIG_SCSI_MULTI_LUN is not set |
500 | # CONFIG_SCSI_CONSTANTS is not set | 574 | # CONFIG_SCSI_CONSTANTS is not set |
501 | # CONFIG_SCSI_LOGGING is not set | 575 | # CONFIG_SCSI_LOGGING is not set |
@@ -512,6 +586,8 @@ CONFIG_SCSI_WAIT_SCAN=m | |||
512 | # CONFIG_SCSI_SRP_ATTRS is not set | 586 | # CONFIG_SCSI_SRP_ATTRS is not set |
513 | CONFIG_SCSI_LOWLEVEL=y | 587 | CONFIG_SCSI_LOWLEVEL=y |
514 | # CONFIG_ISCSI_TCP is not set | 588 | # CONFIG_ISCSI_TCP is not set |
589 | # CONFIG_SCSI_CXGB3_ISCSI is not set | ||
590 | # CONFIG_SCSI_BNX2_ISCSI is not set | ||
515 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set | 591 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set |
516 | # CONFIG_SCSI_3W_9XXX is not set | 592 | # CONFIG_SCSI_3W_9XXX is not set |
517 | # CONFIG_SCSI_ACARD is not set | 593 | # CONFIG_SCSI_ACARD is not set |
@@ -520,13 +596,18 @@ CONFIG_SCSI_LOWLEVEL=y | |||
520 | # CONFIG_SCSI_AIC7XXX_OLD is not set | 596 | # CONFIG_SCSI_AIC7XXX_OLD is not set |
521 | # CONFIG_SCSI_AIC79XX is not set | 597 | # CONFIG_SCSI_AIC79XX is not set |
522 | # CONFIG_SCSI_AIC94XX is not set | 598 | # CONFIG_SCSI_AIC94XX is not set |
599 | # CONFIG_SCSI_MVSAS is not set | ||
523 | # CONFIG_SCSI_DPT_I2O is not set | 600 | # CONFIG_SCSI_DPT_I2O is not set |
524 | # CONFIG_SCSI_ADVANSYS is not set | 601 | # CONFIG_SCSI_ADVANSYS is not set |
525 | # CONFIG_SCSI_ARCMSR is not set | 602 | # CONFIG_SCSI_ARCMSR is not set |
526 | # CONFIG_MEGARAID_NEWGEN is not set | 603 | # CONFIG_MEGARAID_NEWGEN is not set |
527 | # CONFIG_MEGARAID_LEGACY is not set | 604 | # CONFIG_MEGARAID_LEGACY is not set |
528 | # CONFIG_MEGARAID_SAS is not set | 605 | # CONFIG_MEGARAID_SAS is not set |
606 | # CONFIG_SCSI_MPT2SAS is not set | ||
529 | # CONFIG_SCSI_HPTIOP is not set | 607 | # CONFIG_SCSI_HPTIOP is not set |
608 | # CONFIG_LIBFC is not set | ||
609 | # CONFIG_LIBFCOE is not set | ||
610 | # CONFIG_FCOE is not set | ||
530 | # CONFIG_SCSI_DMX3191D is not set | 611 | # CONFIG_SCSI_DMX3191D is not set |
531 | # CONFIG_SCSI_FUTURE_DOMAIN is not set | 612 | # CONFIG_SCSI_FUTURE_DOMAIN is not set |
532 | # CONFIG_SCSI_IPS is not set | 613 | # CONFIG_SCSI_IPS is not set |
@@ -543,15 +624,18 @@ CONFIG_SCSI_LOWLEVEL=y | |||
543 | # CONFIG_SCSI_NSP32 is not set | 624 | # CONFIG_SCSI_NSP32 is not set |
544 | # CONFIG_SCSI_DEBUG is not set | 625 | # CONFIG_SCSI_DEBUG is not set |
545 | # CONFIG_SCSI_SRP is not set | 626 | # CONFIG_SCSI_SRP is not set |
627 | # CONFIG_SCSI_DH is not set | ||
628 | # CONFIG_SCSI_OSD_INITIATOR is not set | ||
546 | # CONFIG_ATA is not set | 629 | # CONFIG_ATA is not set |
547 | CONFIG_MD=y | 630 | CONFIG_MD=y |
548 | CONFIG_BLK_DEV_MD=y | 631 | CONFIG_BLK_DEV_MD=y |
632 | CONFIG_MD_AUTODETECT=y | ||
549 | CONFIG_MD_LINEAR=y | 633 | CONFIG_MD_LINEAR=y |
550 | CONFIG_MD_RAID0=y | 634 | CONFIG_MD_RAID0=y |
551 | CONFIG_MD_RAID1=y | 635 | CONFIG_MD_RAID1=y |
552 | # CONFIG_MD_RAID10 is not set | 636 | # CONFIG_MD_RAID10 is not set |
553 | CONFIG_MD_RAID456=y | 637 | CONFIG_MD_RAID456=y |
554 | # CONFIG_MD_RAID5_RESHAPE is not set | 638 | CONFIG_MD_RAID6_PQ=y |
555 | # CONFIG_MD_MULTIPATH is not set | 639 | # CONFIG_MD_MULTIPATH is not set |
556 | # CONFIG_MD_FAULTY is not set | 640 | # CONFIG_MD_FAULTY is not set |
557 | CONFIG_BLK_DEV_DM=y | 641 | CONFIG_BLK_DEV_DM=y |
@@ -568,27 +652,34 @@ CONFIG_BLK_DEV_DM=y | |||
568 | # | 652 | # |
569 | # IEEE 1394 (FireWire) support | 653 | # IEEE 1394 (FireWire) support |
570 | # | 654 | # |
655 | |||
656 | # | ||
657 | # You can enable one or both FireWire driver stacks. | ||
658 | # | ||
659 | |||
660 | # | ||
661 | # See the help texts for more information. | ||
662 | # | ||
571 | # CONFIG_FIREWIRE is not set | 663 | # CONFIG_FIREWIRE is not set |
572 | # CONFIG_IEEE1394 is not set | 664 | # CONFIG_IEEE1394 is not set |
573 | # CONFIG_I2O is not set | 665 | # CONFIG_I2O is not set |
574 | CONFIG_NETDEVICES=y | 666 | CONFIG_NETDEVICES=y |
575 | # CONFIG_NETDEVICES_MULTIQUEUE is not set | ||
576 | # CONFIG_DUMMY is not set | 667 | # CONFIG_DUMMY is not set |
577 | # CONFIG_BONDING is not set | 668 | # CONFIG_BONDING is not set |
578 | # CONFIG_MACVLAN is not set | 669 | # CONFIG_MACVLAN is not set |
579 | # CONFIG_EQUALIZER is not set | 670 | # CONFIG_EQUALIZER is not set |
580 | # CONFIG_TUN is not set | 671 | # CONFIG_TUN is not set |
581 | # CONFIG_VETH is not set | 672 | # CONFIG_VETH is not set |
582 | # CONFIG_IP1000 is not set | ||
583 | # CONFIG_ARCNET is not set | 673 | # CONFIG_ARCNET is not set |
584 | # CONFIG_NET_ETHERNET is not set | 674 | # CONFIG_NET_ETHERNET is not set |
585 | CONFIG_NETDEV_1000=y | 675 | CONFIG_NETDEV_1000=y |
586 | # CONFIG_ACENIC is not set | 676 | # CONFIG_ACENIC is not set |
587 | # CONFIG_DL2K is not set | 677 | # CONFIG_DL2K is not set |
588 | CONFIG_E1000=y | 678 | CONFIG_E1000=y |
589 | CONFIG_E1000_NAPI=y | ||
590 | # CONFIG_E1000_DISABLE_PACKET_SPLIT is not set | ||
591 | # CONFIG_E1000E is not set | 679 | # CONFIG_E1000E is not set |
680 | # CONFIG_IP1000 is not set | ||
681 | # CONFIG_IGB is not set | ||
682 | # CONFIG_IGBVF is not set | ||
592 | # CONFIG_NS83820 is not set | 683 | # CONFIG_NS83820 is not set |
593 | # CONFIG_HAMACHI is not set | 684 | # CONFIG_HAMACHI is not set |
594 | # CONFIG_YELLOWFIN is not set | 685 | # CONFIG_YELLOWFIN is not set |
@@ -596,23 +687,34 @@ CONFIG_E1000_NAPI=y | |||
596 | # CONFIG_SIS190 is not set | 687 | # CONFIG_SIS190 is not set |
597 | # CONFIG_SKGE is not set | 688 | # CONFIG_SKGE is not set |
598 | # CONFIG_SKY2 is not set | 689 | # CONFIG_SKY2 is not set |
599 | # CONFIG_SK98LIN is not set | ||
600 | # CONFIG_VIA_VELOCITY is not set | 690 | # CONFIG_VIA_VELOCITY is not set |
601 | # CONFIG_TIGON3 is not set | 691 | # CONFIG_TIGON3 is not set |
602 | # CONFIG_BNX2 is not set | 692 | # CONFIG_BNX2 is not set |
693 | # CONFIG_CNIC is not set | ||
603 | # CONFIG_QLA3XXX is not set | 694 | # CONFIG_QLA3XXX is not set |
604 | # CONFIG_ATL1 is not set | 695 | # CONFIG_ATL1 is not set |
696 | # CONFIG_ATL1E is not set | ||
697 | # CONFIG_ATL1C is not set | ||
698 | # CONFIG_JME is not set | ||
605 | CONFIG_NETDEV_10000=y | 699 | CONFIG_NETDEV_10000=y |
606 | # CONFIG_CHELSIO_T1 is not set | 700 | # CONFIG_CHELSIO_T1 is not set |
701 | CONFIG_CHELSIO_T3_DEPENDS=y | ||
607 | # CONFIG_CHELSIO_T3 is not set | 702 | # CONFIG_CHELSIO_T3 is not set |
703 | # CONFIG_ENIC is not set | ||
608 | # CONFIG_IXGBE is not set | 704 | # CONFIG_IXGBE is not set |
609 | # CONFIG_IXGB is not set | 705 | # CONFIG_IXGB is not set |
610 | # CONFIG_S2IO is not set | 706 | # CONFIG_S2IO is not set |
707 | # CONFIG_VXGE is not set | ||
611 | # CONFIG_MYRI10GE is not set | 708 | # CONFIG_MYRI10GE is not set |
612 | # CONFIG_NETXEN_NIC is not set | 709 | # CONFIG_NETXEN_NIC is not set |
613 | # CONFIG_NIU is not set | 710 | # CONFIG_NIU is not set |
711 | # CONFIG_MLX4_EN is not set | ||
614 | # CONFIG_MLX4_CORE is not set | 712 | # CONFIG_MLX4_CORE is not set |
615 | # CONFIG_TEHUTI is not set | 713 | # CONFIG_TEHUTI is not set |
714 | # CONFIG_BNX2X is not set | ||
715 | # CONFIG_QLGE is not set | ||
716 | # CONFIG_SFC is not set | ||
717 | # CONFIG_BE2NET is not set | ||
616 | # CONFIG_TR is not set | 718 | # CONFIG_TR is not set |
617 | 719 | ||
618 | # | 720 | # |
@@ -620,13 +722,16 @@ CONFIG_NETDEV_10000=y | |||
620 | # | 722 | # |
621 | # CONFIG_WLAN_PRE80211 is not set | 723 | # CONFIG_WLAN_PRE80211 is not set |
622 | # CONFIG_WLAN_80211 is not set | 724 | # CONFIG_WLAN_80211 is not set |
725 | |||
726 | # | ||
727 | # Enable WiMAX (Networking options) to see the WiMAX drivers | ||
728 | # | ||
623 | # CONFIG_WAN is not set | 729 | # CONFIG_WAN is not set |
624 | # CONFIG_FDDI is not set | 730 | # CONFIG_FDDI is not set |
625 | # CONFIG_HIPPI is not set | 731 | # CONFIG_HIPPI is not set |
626 | # CONFIG_PPP is not set | 732 | # CONFIG_PPP is not set |
627 | # CONFIG_SLIP is not set | 733 | # CONFIG_SLIP is not set |
628 | # CONFIG_NET_FC is not set | 734 | # CONFIG_NET_FC is not set |
629 | # CONFIG_SHAPER is not set | ||
630 | # CONFIG_NETCONSOLE is not set | 735 | # CONFIG_NETCONSOLE is not set |
631 | # CONFIG_NETPOLL is not set | 736 | # CONFIG_NETPOLL is not set |
632 | # CONFIG_NET_POLL_CONTROLLER is not set | 737 | # CONFIG_NET_POLL_CONTROLLER is not set |
@@ -670,10 +775,13 @@ CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | |||
670 | # Character devices | 775 | # Character devices |
671 | # | 776 | # |
672 | CONFIG_VT=y | 777 | CONFIG_VT=y |
778 | CONFIG_CONSOLE_TRANSLATIONS=y | ||
673 | CONFIG_VT_CONSOLE=y | 779 | CONFIG_VT_CONSOLE=y |
674 | CONFIG_HW_CONSOLE=y | 780 | CONFIG_HW_CONSOLE=y |
675 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | 781 | # CONFIG_VT_HW_CONSOLE_BINDING is not set |
782 | CONFIG_DEVKMEM=y | ||
676 | # CONFIG_SERIAL_NONSTANDARD is not set | 783 | # CONFIG_SERIAL_NONSTANDARD is not set |
784 | # CONFIG_NOZOMI is not set | ||
677 | 785 | ||
678 | # | 786 | # |
679 | # Serial drivers | 787 | # Serial drivers |
@@ -692,11 +800,12 @@ CONFIG_SERIAL_CORE=y | |||
692 | CONFIG_SERIAL_CORE_CONSOLE=y | 800 | CONFIG_SERIAL_CORE_CONSOLE=y |
693 | # CONFIG_SERIAL_JSM is not set | 801 | # CONFIG_SERIAL_JSM is not set |
694 | CONFIG_UNIX98_PTYS=y | 802 | CONFIG_UNIX98_PTYS=y |
803 | # CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set | ||
695 | CONFIG_LEGACY_PTYS=y | 804 | CONFIG_LEGACY_PTYS=y |
696 | CONFIG_LEGACY_PTY_COUNT=256 | 805 | CONFIG_LEGACY_PTY_COUNT=256 |
697 | # CONFIG_IPMI_HANDLER is not set | 806 | # CONFIG_IPMI_HANDLER is not set |
698 | CONFIG_HW_RANDOM=y | 807 | CONFIG_HW_RANDOM=y |
699 | # CONFIG_NVRAM is not set | 808 | # CONFIG_HW_RANDOM_TIMERIOMEM is not set |
700 | # CONFIG_R3964 is not set | 809 | # CONFIG_R3964 is not set |
701 | # CONFIG_APPLICOM is not set | 810 | # CONFIG_APPLICOM is not set |
702 | # CONFIG_RAW_DRIVER is not set | 811 | # CONFIG_RAW_DRIVER is not set |
@@ -705,16 +814,14 @@ CONFIG_DEVPORT=y | |||
705 | CONFIG_I2C=y | 814 | CONFIG_I2C=y |
706 | CONFIG_I2C_BOARDINFO=y | 815 | CONFIG_I2C_BOARDINFO=y |
707 | CONFIG_I2C_CHARDEV=y | 816 | CONFIG_I2C_CHARDEV=y |
817 | CONFIG_I2C_HELPER_AUTO=y | ||
708 | 818 | ||
709 | # | 819 | # |
710 | # I2C Algorithms | 820 | # I2C Hardware Bus support |
711 | # | 821 | # |
712 | # CONFIG_I2C_ALGOBIT is not set | ||
713 | # CONFIG_I2C_ALGOPCF is not set | ||
714 | # CONFIG_I2C_ALGOPCA is not set | ||
715 | 822 | ||
716 | # | 823 | # |
717 | # I2C Hardware Bus support | 824 | # PC SMBus host controller drivers |
718 | # | 825 | # |
719 | # CONFIG_I2C_ALI1535 is not set | 826 | # CONFIG_I2C_ALI1535 is not set |
720 | # CONFIG_I2C_ALI1563 is not set | 827 | # CONFIG_I2C_ALI1563 is not set |
@@ -722,50 +829,82 @@ CONFIG_I2C_CHARDEV=y | |||
722 | # CONFIG_I2C_AMD756 is not set | 829 | # CONFIG_I2C_AMD756 is not set |
723 | # CONFIG_I2C_AMD8111 is not set | 830 | # CONFIG_I2C_AMD8111 is not set |
724 | # CONFIG_I2C_I801 is not set | 831 | # CONFIG_I2C_I801 is not set |
725 | # CONFIG_I2C_I810 is not set | 832 | # CONFIG_I2C_ISCH is not set |
726 | # CONFIG_I2C_PIIX4 is not set | 833 | # CONFIG_I2C_PIIX4 is not set |
727 | CONFIG_I2C_IOP3XX=y | ||
728 | # CONFIG_I2C_NFORCE2 is not set | 834 | # CONFIG_I2C_NFORCE2 is not set |
729 | # CONFIG_I2C_OCORES is not set | ||
730 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
731 | # CONFIG_I2C_PROSAVAGE is not set | ||
732 | # CONFIG_I2C_SAVAGE4 is not set | ||
733 | # CONFIG_I2C_SIMTEC is not set | ||
734 | # CONFIG_I2C_SIS5595 is not set | 835 | # CONFIG_I2C_SIS5595 is not set |
735 | # CONFIG_I2C_SIS630 is not set | 836 | # CONFIG_I2C_SIS630 is not set |
736 | # CONFIG_I2C_SIS96X is not set | 837 | # CONFIG_I2C_SIS96X is not set |
737 | # CONFIG_I2C_TAOS_EVM is not set | ||
738 | # CONFIG_I2C_STUB is not set | ||
739 | # CONFIG_I2C_VIA is not set | 838 | # CONFIG_I2C_VIA is not set |
740 | # CONFIG_I2C_VIAPRO is not set | 839 | # CONFIG_I2C_VIAPRO is not set |
840 | |||
841 | # | ||
842 | # I2C system bus drivers (mostly embedded / system-on-chip) | ||
843 | # | ||
844 | # CONFIG_I2C_GPIO is not set | ||
845 | CONFIG_I2C_IOP3XX=y | ||
846 | # CONFIG_I2C_OCORES is not set | ||
847 | # CONFIG_I2C_SIMTEC is not set | ||
848 | |||
849 | # | ||
850 | # External I2C/SMBus adapter drivers | ||
851 | # | ||
852 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
853 | # CONFIG_I2C_TAOS_EVM is not set | ||
854 | |||
855 | # | ||
856 | # Graphics adapter I2C/DDC channel drivers | ||
857 | # | ||
741 | # CONFIG_I2C_VOODOO3 is not set | 858 | # CONFIG_I2C_VOODOO3 is not set |
742 | 859 | ||
743 | # | 860 | # |
861 | # Other I2C/SMBus bus drivers | ||
862 | # | ||
863 | # CONFIG_I2C_PCA_PLATFORM is not set | ||
864 | # CONFIG_I2C_STUB is not set | ||
865 | |||
866 | # | ||
744 | # Miscellaneous I2C Chip support | 867 | # Miscellaneous I2C Chip support |
745 | # | 868 | # |
746 | # CONFIG_SENSORS_DS1337 is not set | ||
747 | # CONFIG_SENSORS_DS1374 is not set | ||
748 | # CONFIG_DS1682 is not set | 869 | # CONFIG_DS1682 is not set |
749 | # CONFIG_EEPROM_LEGACY is not set | ||
750 | # CONFIG_SENSORS_PCF8574 is not set | 870 | # CONFIG_SENSORS_PCF8574 is not set |
871 | # CONFIG_PCF8575 is not set | ||
751 | # CONFIG_SENSORS_PCA9539 is not set | 872 | # CONFIG_SENSORS_PCA9539 is not set |
752 | # CONFIG_SENSORS_PCF8591 is not set | ||
753 | # CONFIG_SENSORS_MAX6875 is not set | ||
754 | # CONFIG_SENSORS_TSL2550 is not set | 873 | # CONFIG_SENSORS_TSL2550 is not set |
755 | # CONFIG_I2C_DEBUG_CORE is not set | 874 | # CONFIG_I2C_DEBUG_CORE is not set |
756 | # CONFIG_I2C_DEBUG_ALGO is not set | 875 | # CONFIG_I2C_DEBUG_ALGO is not set |
757 | # CONFIG_I2C_DEBUG_BUS is not set | 876 | # CONFIG_I2C_DEBUG_BUS is not set |
758 | # CONFIG_I2C_DEBUG_CHIP is not set | 877 | # CONFIG_I2C_DEBUG_CHIP is not set |
878 | # CONFIG_SPI is not set | ||
879 | CONFIG_ARCH_REQUIRE_GPIOLIB=y | ||
880 | CONFIG_GPIOLIB=y | ||
881 | # CONFIG_DEBUG_GPIO is not set | ||
882 | # CONFIG_GPIO_SYSFS is not set | ||
759 | 883 | ||
760 | # | 884 | # |
761 | # SPI support | 885 | # Memory mapped GPIO expanders: |
886 | # | ||
887 | |||
888 | # | ||
889 | # I2C GPIO expanders: | ||
890 | # | ||
891 | # CONFIG_GPIO_MAX732X is not set | ||
892 | # CONFIG_GPIO_PCA953X is not set | ||
893 | # CONFIG_GPIO_PCF857X is not set | ||
894 | |||
895 | # | ||
896 | # PCI GPIO expanders: | ||
897 | # | ||
898 | # CONFIG_GPIO_BT8XX is not set | ||
899 | |||
900 | # | ||
901 | # SPI GPIO expanders: | ||
762 | # | 902 | # |
763 | # CONFIG_SPI is not set | ||
764 | # CONFIG_SPI_MASTER is not set | ||
765 | # CONFIG_W1 is not set | 903 | # CONFIG_W1 is not set |
766 | # CONFIG_POWER_SUPPLY is not set | 904 | # CONFIG_POWER_SUPPLY is not set |
767 | CONFIG_HWMON=y | 905 | CONFIG_HWMON=y |
768 | # CONFIG_HWMON_VID is not set | 906 | # CONFIG_HWMON_VID is not set |
907 | # CONFIG_SENSORS_AD7414 is not set | ||
769 | # CONFIG_SENSORS_AD7418 is not set | 908 | # CONFIG_SENSORS_AD7418 is not set |
770 | # CONFIG_SENSORS_ADM1021 is not set | 909 | # CONFIG_SENSORS_ADM1021 is not set |
771 | # CONFIG_SENSORS_ADM1025 is not set | 910 | # CONFIG_SENSORS_ADM1025 is not set |
@@ -773,13 +912,17 @@ CONFIG_HWMON=y | |||
773 | # CONFIG_SENSORS_ADM1029 is not set | 912 | # CONFIG_SENSORS_ADM1029 is not set |
774 | # CONFIG_SENSORS_ADM1031 is not set | 913 | # CONFIG_SENSORS_ADM1031 is not set |
775 | # CONFIG_SENSORS_ADM9240 is not set | 914 | # CONFIG_SENSORS_ADM9240 is not set |
915 | # CONFIG_SENSORS_ADT7462 is not set | ||
776 | # CONFIG_SENSORS_ADT7470 is not set | 916 | # CONFIG_SENSORS_ADT7470 is not set |
917 | # CONFIG_SENSORS_ADT7473 is not set | ||
918 | # CONFIG_SENSORS_ADT7475 is not set | ||
777 | # CONFIG_SENSORS_ATXP1 is not set | 919 | # CONFIG_SENSORS_ATXP1 is not set |
778 | # CONFIG_SENSORS_DS1621 is not set | 920 | # CONFIG_SENSORS_DS1621 is not set |
779 | # CONFIG_SENSORS_I5K_AMB is not set | 921 | # CONFIG_SENSORS_I5K_AMB is not set |
780 | # CONFIG_SENSORS_F71805F is not set | 922 | # CONFIG_SENSORS_F71805F is not set |
781 | # CONFIG_SENSORS_F71882FG is not set | 923 | # CONFIG_SENSORS_F71882FG is not set |
782 | # CONFIG_SENSORS_F75375S is not set | 924 | # CONFIG_SENSORS_F75375S is not set |
925 | # CONFIG_SENSORS_G760A is not set | ||
783 | # CONFIG_SENSORS_GL518SM is not set | 926 | # CONFIG_SENSORS_GL518SM is not set |
784 | # CONFIG_SENSORS_GL520SM is not set | 927 | # CONFIG_SENSORS_GL520SM is not set |
785 | # CONFIG_SENSORS_IT87 is not set | 928 | # CONFIG_SENSORS_IT87 is not set |
@@ -794,16 +937,23 @@ CONFIG_HWMON=y | |||
794 | # CONFIG_SENSORS_LM90 is not set | 937 | # CONFIG_SENSORS_LM90 is not set |
795 | # CONFIG_SENSORS_LM92 is not set | 938 | # CONFIG_SENSORS_LM92 is not set |
796 | # CONFIG_SENSORS_LM93 is not set | 939 | # CONFIG_SENSORS_LM93 is not set |
940 | # CONFIG_SENSORS_LTC4215 is not set | ||
941 | # CONFIG_SENSORS_LTC4245 is not set | ||
942 | # CONFIG_SENSORS_LM95241 is not set | ||
797 | # CONFIG_SENSORS_MAX1619 is not set | 943 | # CONFIG_SENSORS_MAX1619 is not set |
798 | # CONFIG_SENSORS_MAX6650 is not set | 944 | # CONFIG_SENSORS_MAX6650 is not set |
799 | # CONFIG_SENSORS_PC87360 is not set | 945 | # CONFIG_SENSORS_PC87360 is not set |
800 | # CONFIG_SENSORS_PC87427 is not set | 946 | # CONFIG_SENSORS_PC87427 is not set |
947 | # CONFIG_SENSORS_PCF8591 is not set | ||
948 | # CONFIG_SENSORS_SHT15 is not set | ||
801 | # CONFIG_SENSORS_SIS5595 is not set | 949 | # CONFIG_SENSORS_SIS5595 is not set |
802 | # CONFIG_SENSORS_DME1737 is not set | 950 | # CONFIG_SENSORS_DME1737 is not set |
803 | # CONFIG_SENSORS_SMSC47M1 is not set | 951 | # CONFIG_SENSORS_SMSC47M1 is not set |
804 | # CONFIG_SENSORS_SMSC47M192 is not set | 952 | # CONFIG_SENSORS_SMSC47M192 is not set |
805 | # CONFIG_SENSORS_SMSC47B397 is not set | 953 | # CONFIG_SENSORS_SMSC47B397 is not set |
954 | # CONFIG_SENSORS_ADS7828 is not set | ||
806 | # CONFIG_SENSORS_THMC50 is not set | 955 | # CONFIG_SENSORS_THMC50 is not set |
956 | # CONFIG_SENSORS_TMP401 is not set | ||
807 | # CONFIG_SENSORS_VIA686A is not set | 957 | # CONFIG_SENSORS_VIA686A is not set |
808 | # CONFIG_SENSORS_VT1211 is not set | 958 | # CONFIG_SENSORS_VT1211 is not set |
809 | # CONFIG_SENSORS_VT8231 is not set | 959 | # CONFIG_SENSORS_VT8231 is not set |
@@ -812,28 +962,38 @@ CONFIG_HWMON=y | |||
812 | # CONFIG_SENSORS_W83792D is not set | 962 | # CONFIG_SENSORS_W83792D is not set |
813 | # CONFIG_SENSORS_W83793 is not set | 963 | # CONFIG_SENSORS_W83793 is not set |
814 | # CONFIG_SENSORS_W83L785TS is not set | 964 | # CONFIG_SENSORS_W83L785TS is not set |
965 | # CONFIG_SENSORS_W83L786NG is not set | ||
815 | # CONFIG_SENSORS_W83627HF is not set | 966 | # CONFIG_SENSORS_W83627HF is not set |
816 | # CONFIG_SENSORS_W83627EHF is not set | 967 | # CONFIG_SENSORS_W83627EHF is not set |
817 | # CONFIG_HWMON_DEBUG_CHIP is not set | 968 | # CONFIG_HWMON_DEBUG_CHIP is not set |
969 | # CONFIG_THERMAL is not set | ||
970 | # CONFIG_THERMAL_HWMON is not set | ||
818 | # CONFIG_WATCHDOG is not set | 971 | # CONFIG_WATCHDOG is not set |
972 | CONFIG_SSB_POSSIBLE=y | ||
819 | 973 | ||
820 | # | 974 | # |
821 | # Sonics Silicon Backplane | 975 | # Sonics Silicon Backplane |
822 | # | 976 | # |
823 | CONFIG_SSB_POSSIBLE=y | ||
824 | # CONFIG_SSB is not set | 977 | # CONFIG_SSB is not set |
825 | 978 | ||
826 | # | 979 | # |
827 | # Multifunction device drivers | 980 | # Multifunction device drivers |
828 | # | 981 | # |
982 | # CONFIG_MFD_CORE is not set | ||
829 | # CONFIG_MFD_SM501 is not set | 983 | # CONFIG_MFD_SM501 is not set |
830 | 984 | # CONFIG_MFD_ASIC3 is not set | |
831 | # | 985 | # CONFIG_HTC_EGPIO is not set |
832 | # Multimedia devices | 986 | # CONFIG_HTC_PASIC3 is not set |
833 | # | 987 | # CONFIG_TPS65010 is not set |
834 | # CONFIG_VIDEO_DEV is not set | 988 | # CONFIG_TWL4030_CORE is not set |
835 | # CONFIG_DVB_CORE is not set | 989 | # CONFIG_MFD_TMIO is not set |
836 | CONFIG_DAB=y | 990 | # CONFIG_MFD_TC6393XB is not set |
991 | # CONFIG_PMIC_DA903X is not set | ||
992 | # CONFIG_MFD_WM8400 is not set | ||
993 | # CONFIG_MFD_WM8350_I2C is not set | ||
994 | # CONFIG_MFD_PCF50633 is not set | ||
995 | # CONFIG_AB3100_CORE is not set | ||
996 | # CONFIG_MEDIA_SUPPORT is not set | ||
837 | 997 | ||
838 | # | 998 | # |
839 | # Graphics support | 999 | # Graphics support |
@@ -854,15 +1014,16 @@ CONFIG_DAB=y | |||
854 | # | 1014 | # |
855 | # CONFIG_VGA_CONSOLE is not set | 1015 | # CONFIG_VGA_CONSOLE is not set |
856 | CONFIG_DUMMY_CONSOLE=y | 1016 | CONFIG_DUMMY_CONSOLE=y |
857 | |||
858 | # | ||
859 | # Sound | ||
860 | # | ||
861 | # CONFIG_SOUND is not set | 1017 | # CONFIG_SOUND is not set |
862 | CONFIG_HID_SUPPORT=y | 1018 | CONFIG_HID_SUPPORT=y |
863 | CONFIG_HID=y | 1019 | CONFIG_HID=y |
864 | # CONFIG_HID_DEBUG is not set | 1020 | # CONFIG_HID_DEBUG is not set |
865 | # CONFIG_HIDRAW is not set | 1021 | # CONFIG_HIDRAW is not set |
1022 | # CONFIG_HID_PID is not set | ||
1023 | |||
1024 | # | ||
1025 | # Special HID drivers | ||
1026 | # | ||
866 | CONFIG_USB_SUPPORT=y | 1027 | CONFIG_USB_SUPPORT=y |
867 | CONFIG_USB_ARCH_HAS_HCD=y | 1028 | CONFIG_USB_ARCH_HAS_HCD=y |
868 | CONFIG_USB_ARCH_HAS_OHCI=y | 1029 | CONFIG_USB_ARCH_HAS_OHCI=y |
@@ -870,14 +1031,21 @@ CONFIG_USB_ARCH_HAS_EHCI=y | |||
870 | # CONFIG_USB is not set | 1031 | # CONFIG_USB is not set |
871 | 1032 | ||
872 | # | 1033 | # |
873 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | 1034 | # Enable Host or Gadget support to see Inventra options |
874 | # | 1035 | # |
875 | 1036 | ||
876 | # | 1037 | # |
877 | # USB Gadget Support | 1038 | # NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may |
878 | # | 1039 | # |
879 | # CONFIG_USB_GADGET is not set | 1040 | # CONFIG_USB_GADGET is not set |
1041 | |||
1042 | # | ||
1043 | # OTG and related infrastructure | ||
1044 | # | ||
1045 | # CONFIG_UWB is not set | ||
880 | # CONFIG_MMC is not set | 1046 | # CONFIG_MMC is not set |
1047 | # CONFIG_MEMSTICK is not set | ||
1048 | # CONFIG_ACCESSIBILITY is not set | ||
881 | # CONFIG_NEW_LEDS is not set | 1049 | # CONFIG_NEW_LEDS is not set |
882 | CONFIG_RTC_LIB=y | 1050 | CONFIG_RTC_LIB=y |
883 | # CONFIG_RTC_CLASS is not set | 1051 | # CONFIG_RTC_CLASS is not set |
@@ -893,6 +1061,12 @@ CONFIG_DMA_ENGINE=y | |||
893 | # DMA Clients | 1061 | # DMA Clients |
894 | # | 1062 | # |
895 | CONFIG_NET_DMA=y | 1063 | CONFIG_NET_DMA=y |
1064 | # CONFIG_ASYNC_TX_DMA is not set | ||
1065 | # CONFIG_DMATEST is not set | ||
1066 | # CONFIG_AUXDISPLAY is not set | ||
1067 | # CONFIG_REGULATOR is not set | ||
1068 | # CONFIG_UIO is not set | ||
1069 | # CONFIG_STAGING is not set | ||
896 | 1070 | ||
897 | # | 1071 | # |
898 | # File systems | 1072 | # File systems |
@@ -901,10 +1075,11 @@ CONFIG_EXT2_FS=y | |||
901 | # CONFIG_EXT2_FS_XATTR is not set | 1075 | # CONFIG_EXT2_FS_XATTR is not set |
902 | # CONFIG_EXT2_FS_XIP is not set | 1076 | # CONFIG_EXT2_FS_XIP is not set |
903 | CONFIG_EXT3_FS=y | 1077 | CONFIG_EXT3_FS=y |
1078 | # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set | ||
904 | CONFIG_EXT3_FS_XATTR=y | 1079 | CONFIG_EXT3_FS_XATTR=y |
905 | # CONFIG_EXT3_FS_POSIX_ACL is not set | 1080 | # CONFIG_EXT3_FS_POSIX_ACL is not set |
906 | # CONFIG_EXT3_FS_SECURITY is not set | 1081 | # CONFIG_EXT3_FS_SECURITY is not set |
907 | # CONFIG_EXT4DEV_FS is not set | 1082 | # CONFIG_EXT4_FS is not set |
908 | CONFIG_JBD=y | 1083 | CONFIG_JBD=y |
909 | CONFIG_FS_MBCACHE=y | 1084 | CONFIG_FS_MBCACHE=y |
910 | # CONFIG_REISERFS_FS is not set | 1085 | # CONFIG_REISERFS_FS is not set |
@@ -913,17 +1088,23 @@ CONFIG_FS_MBCACHE=y | |||
913 | # CONFIG_XFS_FS is not set | 1088 | # CONFIG_XFS_FS is not set |
914 | # CONFIG_GFS2_FS is not set | 1089 | # CONFIG_GFS2_FS is not set |
915 | # CONFIG_OCFS2_FS is not set | 1090 | # CONFIG_OCFS2_FS is not set |
916 | # CONFIG_MINIX_FS is not set | 1091 | # CONFIG_BTRFS_FS is not set |
917 | # CONFIG_ROMFS_FS is not set | 1092 | CONFIG_FILE_LOCKING=y |
1093 | CONFIG_FSNOTIFY=y | ||
1094 | CONFIG_DNOTIFY=y | ||
918 | CONFIG_INOTIFY=y | 1095 | CONFIG_INOTIFY=y |
919 | CONFIG_INOTIFY_USER=y | 1096 | CONFIG_INOTIFY_USER=y |
920 | # CONFIG_QUOTA is not set | 1097 | # CONFIG_QUOTA is not set |
921 | CONFIG_DNOTIFY=y | ||
922 | # CONFIG_AUTOFS_FS is not set | 1098 | # CONFIG_AUTOFS_FS is not set |
923 | # CONFIG_AUTOFS4_FS is not set | 1099 | # CONFIG_AUTOFS4_FS is not set |
924 | # CONFIG_FUSE_FS is not set | 1100 | # CONFIG_FUSE_FS is not set |
925 | 1101 | ||
926 | # | 1102 | # |
1103 | # Caches | ||
1104 | # | ||
1105 | # CONFIG_FSCACHE is not set | ||
1106 | |||
1107 | # | ||
927 | # CD-ROM/DVD Filesystems | 1108 | # CD-ROM/DVD Filesystems |
928 | # | 1109 | # |
929 | # CONFIG_ISO9660_FS is not set | 1110 | # CONFIG_ISO9660_FS is not set |
@@ -941,15 +1122,13 @@ CONFIG_DNOTIFY=y | |||
941 | # | 1122 | # |
942 | CONFIG_PROC_FS=y | 1123 | CONFIG_PROC_FS=y |
943 | CONFIG_PROC_SYSCTL=y | 1124 | CONFIG_PROC_SYSCTL=y |
1125 | CONFIG_PROC_PAGE_MONITOR=y | ||
944 | CONFIG_SYSFS=y | 1126 | CONFIG_SYSFS=y |
945 | CONFIG_TMPFS=y | 1127 | CONFIG_TMPFS=y |
946 | # CONFIG_TMPFS_POSIX_ACL is not set | 1128 | # CONFIG_TMPFS_POSIX_ACL is not set |
947 | # CONFIG_HUGETLB_PAGE is not set | 1129 | # CONFIG_HUGETLB_PAGE is not set |
948 | # CONFIG_CONFIGFS_FS is not set | 1130 | # CONFIG_CONFIGFS_FS is not set |
949 | 1131 | CONFIG_MISC_FILESYSTEMS=y | |
950 | # | ||
951 | # Miscellaneous filesystems | ||
952 | # | ||
953 | # CONFIG_ADFS_FS is not set | 1132 | # CONFIG_ADFS_FS is not set |
954 | # CONFIG_AFFS_FS is not set | 1133 | # CONFIG_AFFS_FS is not set |
955 | # CONFIG_HFS_FS is not set | 1134 | # CONFIG_HFS_FS is not set |
@@ -959,29 +1138,31 @@ CONFIG_TMPFS=y | |||
959 | # CONFIG_EFS_FS is not set | 1138 | # CONFIG_EFS_FS is not set |
960 | # CONFIG_JFFS2_FS is not set | 1139 | # CONFIG_JFFS2_FS is not set |
961 | CONFIG_CRAMFS=y | 1140 | CONFIG_CRAMFS=y |
1141 | # CONFIG_SQUASHFS is not set | ||
962 | # CONFIG_VXFS_FS is not set | 1142 | # CONFIG_VXFS_FS is not set |
1143 | # CONFIG_MINIX_FS is not set | ||
1144 | # CONFIG_OMFS_FS is not set | ||
963 | # CONFIG_HPFS_FS is not set | 1145 | # CONFIG_HPFS_FS is not set |
964 | # CONFIG_QNX4FS_FS is not set | 1146 | # CONFIG_QNX4FS_FS is not set |
1147 | # CONFIG_ROMFS_FS is not set | ||
965 | # CONFIG_SYSV_FS is not set | 1148 | # CONFIG_SYSV_FS is not set |
966 | # CONFIG_UFS_FS is not set | 1149 | # CONFIG_UFS_FS is not set |
1150 | # CONFIG_NILFS2_FS is not set | ||
967 | CONFIG_NETWORK_FILESYSTEMS=y | 1151 | CONFIG_NETWORK_FILESYSTEMS=y |
968 | CONFIG_NFS_FS=y | 1152 | CONFIG_NFS_FS=y |
969 | CONFIG_NFS_V3=y | 1153 | CONFIG_NFS_V3=y |
970 | # CONFIG_NFS_V3_ACL is not set | 1154 | # CONFIG_NFS_V3_ACL is not set |
971 | # CONFIG_NFS_V4 is not set | 1155 | # CONFIG_NFS_V4 is not set |
972 | # CONFIG_NFS_DIRECTIO is not set | 1156 | CONFIG_ROOT_NFS=y |
973 | CONFIG_NFSD=y | 1157 | CONFIG_NFSD=y |
974 | CONFIG_NFSD_V3=y | 1158 | CONFIG_NFSD_V3=y |
975 | # CONFIG_NFSD_V3_ACL is not set | 1159 | # CONFIG_NFSD_V3_ACL is not set |
976 | # CONFIG_NFSD_V4 is not set | 1160 | # CONFIG_NFSD_V4 is not set |
977 | # CONFIG_NFSD_TCP is not set | ||
978 | CONFIG_ROOT_NFS=y | ||
979 | CONFIG_LOCKD=y | 1161 | CONFIG_LOCKD=y |
980 | CONFIG_LOCKD_V4=y | 1162 | CONFIG_LOCKD_V4=y |
981 | CONFIG_EXPORTFS=y | 1163 | CONFIG_EXPORTFS=y |
982 | CONFIG_NFS_COMMON=y | 1164 | CONFIG_NFS_COMMON=y |
983 | CONFIG_SUNRPC=y | 1165 | CONFIG_SUNRPC=y |
984 | # CONFIG_SUNRPC_BIND34 is not set | ||
985 | # CONFIG_RPCSEC_GSS_KRB5 is not set | 1166 | # CONFIG_RPCSEC_GSS_KRB5 is not set |
986 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | 1167 | # CONFIG_RPCSEC_GSS_SPKM3 is not set |
987 | # CONFIG_SMB_FS is not set | 1168 | # CONFIG_SMB_FS is not set |
@@ -1013,9 +1194,6 @@ CONFIG_MSDOS_PARTITION=y | |||
1013 | # CONFIG_SYSV68_PARTITION is not set | 1194 | # CONFIG_SYSV68_PARTITION is not set |
1014 | # CONFIG_NLS is not set | 1195 | # CONFIG_NLS is not set |
1015 | # CONFIG_DLM is not set | 1196 | # CONFIG_DLM is not set |
1016 | CONFIG_INSTRUMENTATION=y | ||
1017 | # CONFIG_PROFILING is not set | ||
1018 | # CONFIG_MARKERS is not set | ||
1019 | 1197 | ||
1020 | # | 1198 | # |
1021 | # Kernel hacking | 1199 | # Kernel hacking |
@@ -1023,6 +1201,7 @@ CONFIG_INSTRUMENTATION=y | |||
1023 | # CONFIG_PRINTK_TIME is not set | 1201 | # CONFIG_PRINTK_TIME is not set |
1024 | CONFIG_ENABLE_WARN_DEPRECATED=y | 1202 | CONFIG_ENABLE_WARN_DEPRECATED=y |
1025 | CONFIG_ENABLE_MUST_CHECK=y | 1203 | CONFIG_ENABLE_MUST_CHECK=y |
1204 | CONFIG_FRAME_WARN=1024 | ||
1026 | CONFIG_MAGIC_SYSRQ=y | 1205 | CONFIG_MAGIC_SYSRQ=y |
1027 | # CONFIG_UNUSED_SYMBOLS is not set | 1206 | # CONFIG_UNUSED_SYMBOLS is not set |
1028 | # CONFIG_DEBUG_FS is not set | 1207 | # CONFIG_DEBUG_FS is not set |
@@ -1030,10 +1209,17 @@ CONFIG_MAGIC_SYSRQ=y | |||
1030 | CONFIG_DEBUG_KERNEL=y | 1209 | CONFIG_DEBUG_KERNEL=y |
1031 | # CONFIG_DEBUG_SHIRQ is not set | 1210 | # CONFIG_DEBUG_SHIRQ is not set |
1032 | CONFIG_DETECT_SOFTLOCKUP=y | 1211 | CONFIG_DETECT_SOFTLOCKUP=y |
1212 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set | ||
1213 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 | ||
1214 | CONFIG_DETECT_HUNG_TASK=y | ||
1215 | # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set | ||
1216 | CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 | ||
1033 | CONFIG_SCHED_DEBUG=y | 1217 | CONFIG_SCHED_DEBUG=y |
1034 | # CONFIG_SCHEDSTATS is not set | 1218 | # CONFIG_SCHEDSTATS is not set |
1035 | # CONFIG_TIMER_STATS is not set | 1219 | # CONFIG_TIMER_STATS is not set |
1220 | # CONFIG_DEBUG_OBJECTS is not set | ||
1036 | # CONFIG_DEBUG_SLAB is not set | 1221 | # CONFIG_DEBUG_SLAB is not set |
1222 | # CONFIG_DEBUG_KMEMLEAK is not set | ||
1037 | # CONFIG_DEBUG_RT_MUTEXES is not set | 1223 | # CONFIG_DEBUG_RT_MUTEXES is not set |
1038 | # CONFIG_RT_MUTEX_TESTER is not set | 1224 | # CONFIG_RT_MUTEX_TESTER is not set |
1039 | # CONFIG_DEBUG_SPINLOCK is not set | 1225 | # CONFIG_DEBUG_SPINLOCK is not set |
@@ -1047,16 +1233,41 @@ CONFIG_SCHED_DEBUG=y | |||
1047 | CONFIG_DEBUG_BUGVERBOSE=y | 1233 | CONFIG_DEBUG_BUGVERBOSE=y |
1048 | # CONFIG_DEBUG_INFO is not set | 1234 | # CONFIG_DEBUG_INFO is not set |
1049 | # CONFIG_DEBUG_VM is not set | 1235 | # CONFIG_DEBUG_VM is not set |
1236 | # CONFIG_DEBUG_WRITECOUNT is not set | ||
1237 | CONFIG_DEBUG_MEMORY_INIT=y | ||
1050 | # CONFIG_DEBUG_LIST is not set | 1238 | # CONFIG_DEBUG_LIST is not set |
1051 | # CONFIG_DEBUG_SG is not set | 1239 | # CONFIG_DEBUG_SG is not set |
1240 | # CONFIG_DEBUG_NOTIFIERS is not set | ||
1052 | CONFIG_FRAME_POINTER=y | 1241 | CONFIG_FRAME_POINTER=y |
1053 | # CONFIG_FORCED_INLINING is not set | ||
1054 | # CONFIG_BOOT_PRINTK_DELAY is not set | 1242 | # CONFIG_BOOT_PRINTK_DELAY is not set |
1055 | # CONFIG_RCU_TORTURE_TEST is not set | 1243 | # CONFIG_RCU_TORTURE_TEST is not set |
1244 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | ||
1245 | # CONFIG_BACKTRACE_SELF_TEST is not set | ||
1246 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set | ||
1056 | # CONFIG_FAULT_INJECTION is not set | 1247 | # CONFIG_FAULT_INJECTION is not set |
1248 | # CONFIG_LATENCYTOP is not set | ||
1249 | # CONFIG_SYSCTL_SYSCALL_CHECK is not set | ||
1250 | # CONFIG_PAGE_POISONING is not set | ||
1251 | CONFIG_HAVE_FUNCTION_TRACER=y | ||
1252 | CONFIG_TRACING_SUPPORT=y | ||
1253 | CONFIG_FTRACE=y | ||
1254 | # CONFIG_FUNCTION_TRACER is not set | ||
1255 | # CONFIG_SCHED_TRACER is not set | ||
1256 | # CONFIG_ENABLE_DEFAULT_TRACERS is not set | ||
1257 | # CONFIG_BOOT_TRACER is not set | ||
1258 | CONFIG_BRANCH_PROFILE_NONE=y | ||
1259 | # CONFIG_PROFILE_ANNOTATED_BRANCHES is not set | ||
1260 | # CONFIG_PROFILE_ALL_BRANCHES is not set | ||
1261 | # CONFIG_STACK_TRACER is not set | ||
1262 | # CONFIG_KMEMTRACE is not set | ||
1263 | # CONFIG_WORKQUEUE_TRACER is not set | ||
1264 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
1057 | # CONFIG_SAMPLES is not set | 1265 | # CONFIG_SAMPLES is not set |
1266 | CONFIG_HAVE_ARCH_KGDB=y | ||
1267 | # CONFIG_KGDB is not set | ||
1058 | CONFIG_DEBUG_USER=y | 1268 | CONFIG_DEBUG_USER=y |
1059 | # CONFIG_DEBUG_ERRORS is not set | 1269 | # CONFIG_DEBUG_ERRORS is not set |
1270 | # CONFIG_DEBUG_STACK_USAGE is not set | ||
1060 | CONFIG_DEBUG_LL=y | 1271 | CONFIG_DEBUG_LL=y |
1061 | # CONFIG_DEBUG_ICEDCC is not set | 1272 | # CONFIG_DEBUG_ICEDCC is not set |
1062 | 1273 | ||
@@ -1065,24 +1276,117 @@ CONFIG_DEBUG_LL=y | |||
1065 | # | 1276 | # |
1066 | # CONFIG_KEYS is not set | 1277 | # CONFIG_KEYS is not set |
1067 | # CONFIG_SECURITY is not set | 1278 | # CONFIG_SECURITY is not set |
1279 | # CONFIG_SECURITYFS is not set | ||
1068 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | 1280 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set |
1069 | CONFIG_XOR_BLOCKS=y | 1281 | CONFIG_XOR_BLOCKS=y |
1070 | CONFIG_ASYNC_CORE=y | 1282 | CONFIG_ASYNC_CORE=y |
1071 | CONFIG_ASYNC_MEMCPY=y | 1283 | CONFIG_ASYNC_MEMCPY=y |
1072 | CONFIG_ASYNC_XOR=y | 1284 | CONFIG_ASYNC_XOR=y |
1073 | # CONFIG_CRYPTO is not set | 1285 | CONFIG_CRYPTO=y |
1286 | |||
1287 | # | ||
1288 | # Crypto core or helper | ||
1289 | # | ||
1290 | # CONFIG_CRYPTO_FIPS is not set | ||
1291 | # CONFIG_CRYPTO_MANAGER is not set | ||
1292 | # CONFIG_CRYPTO_MANAGER2 is not set | ||
1293 | # CONFIG_CRYPTO_GF128MUL is not set | ||
1294 | # CONFIG_CRYPTO_NULL is not set | ||
1295 | # CONFIG_CRYPTO_CRYPTD is not set | ||
1296 | # CONFIG_CRYPTO_AUTHENC is not set | ||
1297 | # CONFIG_CRYPTO_TEST is not set | ||
1298 | |||
1299 | # | ||
1300 | # Authenticated Encryption with Associated Data | ||
1301 | # | ||
1302 | # CONFIG_CRYPTO_CCM is not set | ||
1303 | # CONFIG_CRYPTO_GCM is not set | ||
1304 | # CONFIG_CRYPTO_SEQIV is not set | ||
1305 | |||
1306 | # | ||
1307 | # Block modes | ||
1308 | # | ||
1309 | # CONFIG_CRYPTO_CBC is not set | ||
1310 | # CONFIG_CRYPTO_CTR is not set | ||
1311 | # CONFIG_CRYPTO_CTS is not set | ||
1312 | # CONFIG_CRYPTO_ECB is not set | ||
1313 | # CONFIG_CRYPTO_LRW is not set | ||
1314 | # CONFIG_CRYPTO_PCBC is not set | ||
1315 | # CONFIG_CRYPTO_XTS is not set | ||
1316 | |||
1317 | # | ||
1318 | # Hash modes | ||
1319 | # | ||
1320 | # CONFIG_CRYPTO_HMAC is not set | ||
1321 | # CONFIG_CRYPTO_XCBC is not set | ||
1322 | |||
1323 | # | ||
1324 | # Digest | ||
1325 | # | ||
1326 | # CONFIG_CRYPTO_CRC32C is not set | ||
1327 | # CONFIG_CRYPTO_MD4 is not set | ||
1328 | # CONFIG_CRYPTO_MD5 is not set | ||
1329 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
1330 | # CONFIG_CRYPTO_RMD128 is not set | ||
1331 | # CONFIG_CRYPTO_RMD160 is not set | ||
1332 | # CONFIG_CRYPTO_RMD256 is not set | ||
1333 | # CONFIG_CRYPTO_RMD320 is not set | ||
1334 | # CONFIG_CRYPTO_SHA1 is not set | ||
1335 | # CONFIG_CRYPTO_SHA256 is not set | ||
1336 | # CONFIG_CRYPTO_SHA512 is not set | ||
1337 | # CONFIG_CRYPTO_TGR192 is not set | ||
1338 | # CONFIG_CRYPTO_WP512 is not set | ||
1339 | |||
1340 | # | ||
1341 | # Ciphers | ||
1342 | # | ||
1343 | # CONFIG_CRYPTO_AES is not set | ||
1344 | # CONFIG_CRYPTO_ANUBIS is not set | ||
1345 | # CONFIG_CRYPTO_ARC4 is not set | ||
1346 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
1347 | # CONFIG_CRYPTO_CAMELLIA is not set | ||
1348 | # CONFIG_CRYPTO_CAST5 is not set | ||
1349 | # CONFIG_CRYPTO_CAST6 is not set | ||
1350 | # CONFIG_CRYPTO_DES is not set | ||
1351 | # CONFIG_CRYPTO_FCRYPT is not set | ||
1352 | # CONFIG_CRYPTO_KHAZAD is not set | ||
1353 | # CONFIG_CRYPTO_SALSA20 is not set | ||
1354 | # CONFIG_CRYPTO_SEED is not set | ||
1355 | # CONFIG_CRYPTO_SERPENT is not set | ||
1356 | # CONFIG_CRYPTO_TEA is not set | ||
1357 | # CONFIG_CRYPTO_TWOFISH is not set | ||
1358 | |||
1359 | # | ||
1360 | # Compression | ||
1361 | # | ||
1362 | # CONFIG_CRYPTO_DEFLATE is not set | ||
1363 | # CONFIG_CRYPTO_ZLIB is not set | ||
1364 | # CONFIG_CRYPTO_LZO is not set | ||
1365 | |||
1366 | # | ||
1367 | # Random Number Generation | ||
1368 | # | ||
1369 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | ||
1370 | CONFIG_CRYPTO_HW=y | ||
1371 | # CONFIG_CRYPTO_DEV_HIFN_795X is not set | ||
1372 | # CONFIG_BINARY_PRINTF is not set | ||
1074 | 1373 | ||
1075 | # | 1374 | # |
1076 | # Library routines | 1375 | # Library routines |
1077 | # | 1376 | # |
1377 | CONFIG_GENERIC_FIND_LAST_BIT=y | ||
1078 | # CONFIG_CRC_CCITT is not set | 1378 | # CONFIG_CRC_CCITT is not set |
1079 | # CONFIG_CRC16 is not set | 1379 | # CONFIG_CRC16 is not set |
1380 | # CONFIG_CRC_T10DIF is not set | ||
1080 | # CONFIG_CRC_ITU_T is not set | 1381 | # CONFIG_CRC_ITU_T is not set |
1081 | # CONFIG_CRC32 is not set | 1382 | # CONFIG_CRC32 is not set |
1082 | # CONFIG_CRC7 is not set | 1383 | # CONFIG_CRC7 is not set |
1083 | # CONFIG_LIBCRC32C is not set | 1384 | # CONFIG_LIBCRC32C is not set |
1084 | CONFIG_ZLIB_INFLATE=y | 1385 | CONFIG_ZLIB_INFLATE=y |
1085 | CONFIG_PLIST=y | 1386 | CONFIG_DECOMPRESS_GZIP=y |
1387 | CONFIG_DECOMPRESS_BZIP2=y | ||
1388 | CONFIG_DECOMPRESS_LZMA=y | ||
1086 | CONFIG_HAS_IOMEM=y | 1389 | CONFIG_HAS_IOMEM=y |
1087 | CONFIG_HAS_IOPORT=y | 1390 | CONFIG_HAS_IOPORT=y |
1088 | CONFIG_HAS_DMA=y | 1391 | CONFIG_HAS_DMA=y |
1392 | CONFIG_NLATTR=y | ||
diff --git a/arch/arm/configs/littleton_defconfig b/arch/arm/configs/littleton_defconfig deleted file mode 100644 index 1db496908052..000000000000 --- a/arch/arm/configs/littleton_defconfig +++ /dev/null | |||
@@ -1,783 +0,0 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.24-rc5 | ||
4 | # Fri Dec 21 11:06:19 2007 | ||
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_MMU=y | ||
12 | # CONFIG_NO_IOPORT is not set | ||
13 | CONFIG_GENERIC_HARDIRQS=y | ||
14 | CONFIG_STACKTRACE_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_ILOG2_U32 is not set | ||
21 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
22 | CONFIG_GENERIC_HWEIGHT=y | ||
23 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
24 | CONFIG_ZONE_DMA=y | ||
25 | CONFIG_ARCH_MTD_XIP=y | ||
26 | CONFIG_VECTORS_BASE=0xffff0000 | ||
27 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
28 | |||
29 | # | ||
30 | # General setup | ||
31 | # | ||
32 | CONFIG_EXPERIMENTAL=y | ||
33 | CONFIG_BROKEN_ON_SMP=y | ||
34 | CONFIG_LOCK_KERNEL=y | ||
35 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
36 | CONFIG_LOCALVERSION="" | ||
37 | CONFIG_LOCALVERSION_AUTO=y | ||
38 | CONFIG_SWAP=y | ||
39 | CONFIG_SYSVIPC=y | ||
40 | CONFIG_SYSVIPC_SYSCTL=y | ||
41 | # CONFIG_POSIX_MQUEUE is not set | ||
42 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
43 | # CONFIG_TASKSTATS is not set | ||
44 | # CONFIG_USER_NS is not set | ||
45 | # CONFIG_PID_NS is not set | ||
46 | # CONFIG_AUDIT is not set | ||
47 | # CONFIG_IKCONFIG is not set | ||
48 | CONFIG_LOG_BUF_SHIFT=14 | ||
49 | # CONFIG_CGROUPS is not set | ||
50 | CONFIG_FAIR_GROUP_SCHED=y | ||
51 | CONFIG_FAIR_USER_SCHED=y | ||
52 | # CONFIG_FAIR_CGROUP_SCHED is not set | ||
53 | CONFIG_SYSFS_DEPRECATED=y | ||
54 | # CONFIG_RELAY is not set | ||
55 | CONFIG_BLK_DEV_INITRD=y | ||
56 | CONFIG_INITRAMFS_SOURCE="" | ||
57 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
58 | CONFIG_SYSCTL=y | ||
59 | # CONFIG_EMBEDDED is not set | ||
60 | CONFIG_UID16=y | ||
61 | CONFIG_SYSCTL_SYSCALL=y | ||
62 | CONFIG_KALLSYMS=y | ||
63 | # CONFIG_KALLSYMS_ALL is not set | ||
64 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
65 | CONFIG_HOTPLUG=y | ||
66 | CONFIG_PRINTK=y | ||
67 | CONFIG_BUG=y | ||
68 | CONFIG_ELF_CORE=y | ||
69 | CONFIG_BASE_FULL=y | ||
70 | CONFIG_FUTEX=y | ||
71 | CONFIG_ANON_INODES=y | ||
72 | CONFIG_EPOLL=y | ||
73 | CONFIG_SIGNALFD=y | ||
74 | CONFIG_EVENTFD=y | ||
75 | CONFIG_SHMEM=y | ||
76 | CONFIG_VM_EVENT_COUNTERS=y | ||
77 | CONFIG_SLAB=y | ||
78 | # CONFIG_SLUB is not set | ||
79 | # CONFIG_SLOB is not set | ||
80 | CONFIG_RT_MUTEXES=y | ||
81 | # CONFIG_TINY_SHMEM is not set | ||
82 | CONFIG_BASE_SMALL=0 | ||
83 | CONFIG_MODULES=y | ||
84 | CONFIG_MODULE_UNLOAD=y | ||
85 | CONFIG_MODULE_FORCE_UNLOAD=y | ||
86 | # CONFIG_MODVERSIONS is not set | ||
87 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
88 | # CONFIG_KMOD is not set | ||
89 | CONFIG_BLOCK=y | ||
90 | # CONFIG_LBD is not set | ||
91 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
92 | # CONFIG_LSF is not set | ||
93 | # CONFIG_BLK_DEV_BSG is not set | ||
94 | |||
95 | # | ||
96 | # IO Schedulers | ||
97 | # | ||
98 | CONFIG_IOSCHED_NOOP=y | ||
99 | CONFIG_IOSCHED_AS=y | ||
100 | CONFIG_IOSCHED_DEADLINE=y | ||
101 | CONFIG_IOSCHED_CFQ=y | ||
102 | # CONFIG_DEFAULT_AS is not set | ||
103 | # CONFIG_DEFAULT_DEADLINE is not set | ||
104 | CONFIG_DEFAULT_CFQ=y | ||
105 | # CONFIG_DEFAULT_NOOP is not set | ||
106 | CONFIG_DEFAULT_IOSCHED="cfq" | ||
107 | |||
108 | # | ||
109 | # System Type | ||
110 | # | ||
111 | # CONFIG_ARCH_AAEC2000 is not set | ||
112 | # CONFIG_ARCH_INTEGRATOR is not set | ||
113 | # CONFIG_ARCH_REALVIEW is not set | ||
114 | # CONFIG_ARCH_VERSATILE is not set | ||
115 | # CONFIG_ARCH_AT91 is not set | ||
116 | # CONFIG_ARCH_CLPS7500 is not set | ||
117 | # CONFIG_ARCH_CLPS711X is not set | ||
118 | # CONFIG_ARCH_CO285 is not set | ||
119 | # CONFIG_ARCH_EBSA110 is not set | ||
120 | # CONFIG_ARCH_EP93XX is not set | ||
121 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
122 | # CONFIG_ARCH_NETX is not set | ||
123 | # CONFIG_ARCH_H720X is not set | ||
124 | # CONFIG_ARCH_IMX is not set | ||
125 | # CONFIG_ARCH_IOP13XX is not set | ||
126 | # CONFIG_ARCH_IOP32X is not set | ||
127 | # CONFIG_ARCH_IOP33X is not set | ||
128 | # CONFIG_ARCH_IXP23XX is not set | ||
129 | # CONFIG_ARCH_IXP2000 is not set | ||
130 | # CONFIG_ARCH_IXP4XX is not set | ||
131 | # CONFIG_ARCH_L7200 is not set | ||
132 | # CONFIG_ARCH_KS8695 is not set | ||
133 | # CONFIG_ARCH_NS9XXX is not set | ||
134 | # CONFIG_ARCH_MXC is not set | ||
135 | # CONFIG_ARCH_PNX4008 is not set | ||
136 | CONFIG_ARCH_PXA=y | ||
137 | # CONFIG_ARCH_RPC is not set | ||
138 | # CONFIG_ARCH_SA1100 is not set | ||
139 | # CONFIG_ARCH_S3C2410 is not set | ||
140 | # CONFIG_ARCH_SHARK is not set | ||
141 | # CONFIG_ARCH_LH7A40X is not set | ||
142 | # CONFIG_ARCH_DAVINCI is not set | ||
143 | # CONFIG_ARCH_OMAP is not set | ||
144 | |||
145 | # | ||
146 | # Intel PXA2xx/PXA3xx Implementations | ||
147 | # | ||
148 | |||
149 | # | ||
150 | # Supported PXA3xx Processor Variants | ||
151 | # | ||
152 | CONFIG_CPU_PXA300=y | ||
153 | CONFIG_CPU_PXA310=y | ||
154 | # CONFIG_CPU_PXA320 is not set | ||
155 | # CONFIG_ARCH_LUBBOCK is not set | ||
156 | # CONFIG_MACH_LOGICPD_PXA270 is not set | ||
157 | # CONFIG_MACH_MAINSTONE is not set | ||
158 | # CONFIG_ARCH_PXA_IDP is not set | ||
159 | # CONFIG_PXA_SHARPSL is not set | ||
160 | # CONFIG_MACH_TRIZEPS4 is not set | ||
161 | # CONFIG_MACH_EM_X270 is not set | ||
162 | # CONFIG_MACH_ZYLONITE is not set | ||
163 | CONFIG_MACH_LITTLETON=y | ||
164 | # CONFIG_MACH_ARMCORE is not set | ||
165 | CONFIG_PXA3xx=y | ||
166 | CONFIG_PXA_SSP=y | ||
167 | |||
168 | # | ||
169 | # Boot options | ||
170 | # | ||
171 | |||
172 | # | ||
173 | # Power management | ||
174 | # | ||
175 | |||
176 | # | ||
177 | # Processor Type | ||
178 | # | ||
179 | CONFIG_CPU_32=y | ||
180 | CONFIG_CPU_XSC3=y | ||
181 | CONFIG_CPU_32v5=y | ||
182 | CONFIG_CPU_ABRT_EV5T=y | ||
183 | CONFIG_CPU_CACHE_VIVT=y | ||
184 | CONFIG_CPU_TLB_V4WBI=y | ||
185 | CONFIG_CPU_CP15=y | ||
186 | CONFIG_CPU_CP15_MMU=y | ||
187 | CONFIG_IO_36=y | ||
188 | |||
189 | # | ||
190 | # Processor Features | ||
191 | # | ||
192 | # CONFIG_ARM_THUMB is not set | ||
193 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
194 | # CONFIG_CPU_BPREDICT_DISABLE is not set | ||
195 | # CONFIG_OUTER_CACHE is not set | ||
196 | CONFIG_IWMMXT=y | ||
197 | |||
198 | # | ||
199 | # Bus support | ||
200 | # | ||
201 | # CONFIG_PCI_SYSCALL is not set | ||
202 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
203 | # CONFIG_PCCARD is not set | ||
204 | |||
205 | # | ||
206 | # Kernel Features | ||
207 | # | ||
208 | CONFIG_TICK_ONESHOT=y | ||
209 | # CONFIG_NO_HZ is not set | ||
210 | # CONFIG_HIGH_RES_TIMERS is not set | ||
211 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
212 | CONFIG_PREEMPT=y | ||
213 | CONFIG_HZ=100 | ||
214 | CONFIG_AEABI=y | ||
215 | CONFIG_OABI_COMPAT=y | ||
216 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
217 | CONFIG_SELECT_MEMORY_MODEL=y | ||
218 | CONFIG_FLATMEM_MANUAL=y | ||
219 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
220 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
221 | CONFIG_FLATMEM=y | ||
222 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
223 | # CONFIG_SPARSEMEM_STATIC is not set | ||
224 | # CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not set | ||
225 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
226 | # CONFIG_RESOURCES_64BIT is not set | ||
227 | CONFIG_ZONE_DMA_FLAG=1 | ||
228 | CONFIG_BOUNCE=y | ||
229 | CONFIG_VIRT_TO_BUS=y | ||
230 | CONFIG_ALIGNMENT_TRAP=y | ||
231 | |||
232 | # | ||
233 | # Boot options | ||
234 | # | ||
235 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
236 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
237 | 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=ttyS2,38400 mem=64M" | ||
238 | # CONFIG_XIP_KERNEL is not set | ||
239 | # CONFIG_KEXEC is not set | ||
240 | |||
241 | # | ||
242 | # CPU Frequency scaling | ||
243 | # | ||
244 | # CONFIG_CPU_FREQ is not set | ||
245 | |||
246 | # | ||
247 | # Floating point emulation | ||
248 | # | ||
249 | |||
250 | # | ||
251 | # At least one emulation must be selected | ||
252 | # | ||
253 | CONFIG_FPE_NWFPE=y | ||
254 | # CONFIG_FPE_NWFPE_XP is not set | ||
255 | # CONFIG_FPE_FASTFPE is not set | ||
256 | |||
257 | # | ||
258 | # Userspace binary formats | ||
259 | # | ||
260 | CONFIG_BINFMT_ELF=y | ||
261 | # CONFIG_BINFMT_AOUT is not set | ||
262 | # CONFIG_BINFMT_MISC is not set | ||
263 | |||
264 | # | ||
265 | # Power management options | ||
266 | # | ||
267 | # CONFIG_PM is not set | ||
268 | CONFIG_SUSPEND_UP_POSSIBLE=y | ||
269 | |||
270 | # | ||
271 | # Networking | ||
272 | # | ||
273 | CONFIG_NET=y | ||
274 | |||
275 | # | ||
276 | # Networking options | ||
277 | # | ||
278 | CONFIG_PACKET=y | ||
279 | # CONFIG_PACKET_MMAP is not set | ||
280 | CONFIG_UNIX=y | ||
281 | CONFIG_XFRM=y | ||
282 | # CONFIG_XFRM_USER is not set | ||
283 | # CONFIG_XFRM_SUB_POLICY is not set | ||
284 | # CONFIG_XFRM_MIGRATE is not set | ||
285 | # CONFIG_NET_KEY is not set | ||
286 | CONFIG_INET=y | ||
287 | # CONFIG_IP_MULTICAST is not set | ||
288 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
289 | CONFIG_IP_FIB_HASH=y | ||
290 | CONFIG_IP_PNP=y | ||
291 | # CONFIG_IP_PNP_DHCP is not set | ||
292 | # CONFIG_IP_PNP_BOOTP is not set | ||
293 | # CONFIG_IP_PNP_RARP is not set | ||
294 | # CONFIG_NET_IPIP is not set | ||
295 | # CONFIG_NET_IPGRE is not set | ||
296 | # CONFIG_ARPD is not set | ||
297 | # CONFIG_SYN_COOKIES is not set | ||
298 | # CONFIG_INET_AH is not set | ||
299 | # CONFIG_INET_ESP is not set | ||
300 | # CONFIG_INET_IPCOMP is not set | ||
301 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
302 | # CONFIG_INET_TUNNEL is not set | ||
303 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | ||
304 | CONFIG_INET_XFRM_MODE_TUNNEL=y | ||
305 | CONFIG_INET_XFRM_MODE_BEET=y | ||
306 | # CONFIG_INET_LRO is not set | ||
307 | CONFIG_INET_DIAG=y | ||
308 | CONFIG_INET_TCP_DIAG=y | ||
309 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
310 | CONFIG_TCP_CONG_CUBIC=y | ||
311 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
312 | # CONFIG_TCP_MD5SIG is not set | ||
313 | # CONFIG_IPV6 is not set | ||
314 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
315 | # CONFIG_INET6_TUNNEL is not set | ||
316 | # CONFIG_NETWORK_SECMARK is not set | ||
317 | # CONFIG_NETFILTER is not set | ||
318 | # CONFIG_IP_DCCP is not set | ||
319 | # CONFIG_IP_SCTP is not set | ||
320 | # CONFIG_TIPC is not set | ||
321 | # CONFIG_ATM is not set | ||
322 | # CONFIG_BRIDGE is not set | ||
323 | # CONFIG_VLAN_8021Q is not set | ||
324 | # CONFIG_DECNET is not set | ||
325 | # CONFIG_LLC2 is not set | ||
326 | # CONFIG_IPX is not set | ||
327 | # CONFIG_ATALK is not set | ||
328 | # CONFIG_X25 is not set | ||
329 | # CONFIG_LAPB is not set | ||
330 | # CONFIG_ECONET is not set | ||
331 | # CONFIG_WAN_ROUTER is not set | ||
332 | # CONFIG_NET_SCHED is not set | ||
333 | |||
334 | # | ||
335 | # Network testing | ||
336 | # | ||
337 | # CONFIG_NET_PKTGEN is not set | ||
338 | # CONFIG_HAMRADIO is not set | ||
339 | # CONFIG_IRDA is not set | ||
340 | # CONFIG_BT is not set | ||
341 | # CONFIG_AF_RXRPC is not set | ||
342 | |||
343 | # | ||
344 | # Wireless | ||
345 | # | ||
346 | # CONFIG_CFG80211 is not set | ||
347 | # CONFIG_WIRELESS_EXT is not set | ||
348 | # CONFIG_MAC80211 is not set | ||
349 | # CONFIG_IEEE80211 is not set | ||
350 | # CONFIG_RFKILL is not set | ||
351 | # CONFIG_NET_9P is not set | ||
352 | |||
353 | # | ||
354 | # Device Drivers | ||
355 | # | ||
356 | |||
357 | # | ||
358 | # Generic Driver Options | ||
359 | # | ||
360 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
361 | # CONFIG_STANDALONE is not set | ||
362 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set | ||
363 | CONFIG_FW_LOADER=y | ||
364 | # CONFIG_DEBUG_DRIVER is not set | ||
365 | # CONFIG_DEBUG_DEVRES is not set | ||
366 | # CONFIG_SYS_HYPERVISOR is not set | ||
367 | # CONFIG_CONNECTOR is not set | ||
368 | # CONFIG_MTD is not set | ||
369 | # CONFIG_PARPORT is not set | ||
370 | # CONFIG_BLK_DEV is not set | ||
371 | # CONFIG_MISC_DEVICES is not set | ||
372 | # CONFIG_IDE is not set | ||
373 | |||
374 | # | ||
375 | # SCSI device support | ||
376 | # | ||
377 | # CONFIG_RAID_ATTRS is not set | ||
378 | # CONFIG_SCSI is not set | ||
379 | # CONFIG_SCSI_DMA is not set | ||
380 | # CONFIG_SCSI_NETLINK is not set | ||
381 | # CONFIG_ATA is not set | ||
382 | # CONFIG_MD is not set | ||
383 | CONFIG_NETDEVICES=y | ||
384 | # CONFIG_NETDEVICES_MULTIQUEUE is not set | ||
385 | # CONFIG_DUMMY is not set | ||
386 | # CONFIG_BONDING is not set | ||
387 | # CONFIG_MACVLAN is not set | ||
388 | # CONFIG_EQUALIZER is not set | ||
389 | # CONFIG_TUN is not set | ||
390 | # CONFIG_VETH is not set | ||
391 | # CONFIG_PHYLIB is not set | ||
392 | CONFIG_NET_ETHERNET=y | ||
393 | CONFIG_MII=y | ||
394 | # CONFIG_AX88796 is not set | ||
395 | CONFIG_SMC91X=y | ||
396 | # CONFIG_DM9000 is not set | ||
397 | # CONFIG_SMC911X is not set | ||
398 | # CONFIG_IBM_NEW_EMAC_ZMII is not set | ||
399 | # CONFIG_IBM_NEW_EMAC_RGMII is not set | ||
400 | # CONFIG_IBM_NEW_EMAC_TAH is not set | ||
401 | # CONFIG_IBM_NEW_EMAC_EMAC4 is not set | ||
402 | # CONFIG_B44 is not set | ||
403 | # CONFIG_NETDEV_1000 is not set | ||
404 | # CONFIG_NETDEV_10000 is not set | ||
405 | |||
406 | # | ||
407 | # Wireless LAN | ||
408 | # | ||
409 | # CONFIG_WLAN_PRE80211 is not set | ||
410 | # CONFIG_WLAN_80211 is not set | ||
411 | # CONFIG_WAN is not set | ||
412 | # CONFIG_PPP is not set | ||
413 | # CONFIG_SLIP is not set | ||
414 | # CONFIG_SHAPER is not set | ||
415 | # CONFIG_NETCONSOLE is not set | ||
416 | # CONFIG_NETPOLL is not set | ||
417 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
418 | # CONFIG_ISDN is not set | ||
419 | |||
420 | # | ||
421 | # Input device support | ||
422 | # | ||
423 | CONFIG_INPUT=y | ||
424 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
425 | # CONFIG_INPUT_POLLDEV is not set | ||
426 | |||
427 | # | ||
428 | # Userland interfaces | ||
429 | # | ||
430 | CONFIG_INPUT_MOUSEDEV=y | ||
431 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
432 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
433 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
434 | # CONFIG_INPUT_JOYDEV is not set | ||
435 | # CONFIG_INPUT_EVDEV is not set | ||
436 | # CONFIG_INPUT_EVBUG is not set | ||
437 | |||
438 | # | ||
439 | # Input Device Drivers | ||
440 | # | ||
441 | # CONFIG_INPUT_KEYBOARD is not set | ||
442 | # CONFIG_INPUT_MOUSE is not set | ||
443 | # CONFIG_INPUT_JOYSTICK is not set | ||
444 | # CONFIG_INPUT_TABLET is not set | ||
445 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
446 | # CONFIG_INPUT_MISC is not set | ||
447 | |||
448 | # | ||
449 | # Hardware I/O ports | ||
450 | # | ||
451 | # CONFIG_SERIO is not set | ||
452 | # CONFIG_GAMEPORT is not set | ||
453 | |||
454 | # | ||
455 | # Character devices | ||
456 | # | ||
457 | CONFIG_VT=y | ||
458 | CONFIG_VT_CONSOLE=y | ||
459 | CONFIG_HW_CONSOLE=y | ||
460 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
461 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
462 | |||
463 | # | ||
464 | # Serial drivers | ||
465 | # | ||
466 | # CONFIG_SERIAL_8250 is not set | ||
467 | |||
468 | # | ||
469 | # Non-8250 serial port support | ||
470 | # | ||
471 | CONFIG_SERIAL_PXA=y | ||
472 | CONFIG_SERIAL_PXA_CONSOLE=y | ||
473 | CONFIG_SERIAL_CORE=y | ||
474 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
475 | CONFIG_UNIX98_PTYS=y | ||
476 | # CONFIG_LEGACY_PTYS is not set | ||
477 | # CONFIG_IPMI_HANDLER is not set | ||
478 | # CONFIG_HW_RANDOM is not set | ||
479 | # CONFIG_NVRAM is not set | ||
480 | # CONFIG_R3964 is not set | ||
481 | # CONFIG_RAW_DRIVER is not set | ||
482 | # CONFIG_TCG_TPM is not set | ||
483 | # CONFIG_I2C is not set | ||
484 | |||
485 | # | ||
486 | # SPI support | ||
487 | # | ||
488 | # CONFIG_SPI is not set | ||
489 | # CONFIG_SPI_MASTER is not set | ||
490 | # CONFIG_W1 is not set | ||
491 | # CONFIG_POWER_SUPPLY is not set | ||
492 | # CONFIG_HWMON is not set | ||
493 | # CONFIG_WATCHDOG is not set | ||
494 | |||
495 | # | ||
496 | # Sonics Silicon Backplane | ||
497 | # | ||
498 | CONFIG_SSB_POSSIBLE=y | ||
499 | # CONFIG_SSB is not set | ||
500 | |||
501 | # | ||
502 | # Multifunction device drivers | ||
503 | # | ||
504 | # CONFIG_MFD_SM501 is not set | ||
505 | |||
506 | # | ||
507 | # Multimedia devices | ||
508 | # | ||
509 | # CONFIG_VIDEO_DEV is not set | ||
510 | # CONFIG_DVB_CORE is not set | ||
511 | # CONFIG_DAB is not set | ||
512 | |||
513 | # | ||
514 | # Graphics support | ||
515 | # | ||
516 | # CONFIG_VGASTATE is not set | ||
517 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
518 | CONFIG_FB=y | ||
519 | # CONFIG_FIRMWARE_EDID is not set | ||
520 | # CONFIG_FB_DDC is not set | ||
521 | CONFIG_FB_CFB_FILLRECT=y | ||
522 | CONFIG_FB_CFB_COPYAREA=y | ||
523 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
524 | # CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set | ||
525 | # CONFIG_FB_SYS_FILLRECT is not set | ||
526 | # CONFIG_FB_SYS_COPYAREA is not set | ||
527 | # CONFIG_FB_SYS_IMAGEBLIT is not set | ||
528 | # CONFIG_FB_SYS_FOPS is not set | ||
529 | CONFIG_FB_DEFERRED_IO=y | ||
530 | # CONFIG_FB_SVGALIB is not set | ||
531 | # CONFIG_FB_MACMODES is not set | ||
532 | # CONFIG_FB_BACKLIGHT is not set | ||
533 | # CONFIG_FB_MODE_HELPERS is not set | ||
534 | # CONFIG_FB_TILEBLITTING is not set | ||
535 | |||
536 | # | ||
537 | # Frame buffer hardware drivers | ||
538 | # | ||
539 | # CONFIG_FB_S1D13XXX is not set | ||
540 | CONFIG_FB_PXA=y | ||
541 | # CONFIG_FB_PXA_PARAMETERS is not set | ||
542 | # CONFIG_FB_MBX is not set | ||
543 | # CONFIG_FB_VIRTUAL is not set | ||
544 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
545 | |||
546 | # | ||
547 | # Display device support | ||
548 | # | ||
549 | # CONFIG_DISPLAY_SUPPORT is not set | ||
550 | |||
551 | # | ||
552 | # Console display driver support | ||
553 | # | ||
554 | # CONFIG_VGA_CONSOLE is not set | ||
555 | CONFIG_DUMMY_CONSOLE=y | ||
556 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
557 | # CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set | ||
558 | # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set | ||
559 | CONFIG_FONTS=y | ||
560 | # CONFIG_FONT_8x8 is not set | ||
561 | CONFIG_FONT_8x16=y | ||
562 | # CONFIG_FONT_6x11 is not set | ||
563 | # CONFIG_FONT_7x14 is not set | ||
564 | # CONFIG_FONT_PEARL_8x8 is not set | ||
565 | # CONFIG_FONT_ACORN_8x8 is not set | ||
566 | # CONFIG_FONT_MINI_4x6 is not set | ||
567 | # CONFIG_FONT_SUN8x16 is not set | ||
568 | # CONFIG_FONT_SUN12x22 is not set | ||
569 | # CONFIG_FONT_10x18 is not set | ||
570 | CONFIG_LOGO=y | ||
571 | CONFIG_LOGO_LINUX_MONO=y | ||
572 | CONFIG_LOGO_LINUX_VGA16=y | ||
573 | CONFIG_LOGO_LINUX_CLUT224=y | ||
574 | |||
575 | # | ||
576 | # Sound | ||
577 | # | ||
578 | # CONFIG_SOUND is not set | ||
579 | # CONFIG_HID_SUPPORT is not set | ||
580 | # CONFIG_USB_SUPPORT is not set | ||
581 | # CONFIG_MMC is not set | ||
582 | # CONFIG_NEW_LEDS is not set | ||
583 | CONFIG_RTC_LIB=y | ||
584 | # CONFIG_RTC_CLASS is not set | ||
585 | |||
586 | # | ||
587 | # File systems | ||
588 | # | ||
589 | # CONFIG_EXT2_FS is not set | ||
590 | # CONFIG_EXT3_FS is not set | ||
591 | # CONFIG_EXT4DEV_FS is not set | ||
592 | # CONFIG_REISERFS_FS is not set | ||
593 | # CONFIG_JFS_FS is not set | ||
594 | CONFIG_FS_POSIX_ACL=y | ||
595 | # CONFIG_XFS_FS is not set | ||
596 | # CONFIG_GFS2_FS is not set | ||
597 | # CONFIG_OCFS2_FS is not set | ||
598 | # CONFIG_MINIX_FS is not set | ||
599 | # CONFIG_ROMFS_FS is not set | ||
600 | # CONFIG_INOTIFY is not set | ||
601 | # CONFIG_QUOTA is not set | ||
602 | # CONFIG_DNOTIFY is not set | ||
603 | # CONFIG_AUTOFS_FS is not set | ||
604 | # CONFIG_AUTOFS4_FS is not set | ||
605 | # CONFIG_FUSE_FS is not set | ||
606 | |||
607 | # | ||
608 | # CD-ROM/DVD Filesystems | ||
609 | # | ||
610 | # CONFIG_ISO9660_FS is not set | ||
611 | # CONFIG_UDF_FS is not set | ||
612 | |||
613 | # | ||
614 | # DOS/FAT/NT Filesystems | ||
615 | # | ||
616 | # CONFIG_MSDOS_FS is not set | ||
617 | # CONFIG_VFAT_FS is not set | ||
618 | # CONFIG_NTFS_FS is not set | ||
619 | |||
620 | # | ||
621 | # Pseudo filesystems | ||
622 | # | ||
623 | CONFIG_PROC_FS=y | ||
624 | CONFIG_PROC_SYSCTL=y | ||
625 | CONFIG_SYSFS=y | ||
626 | # CONFIG_TMPFS is not set | ||
627 | # CONFIG_HUGETLB_PAGE is not set | ||
628 | # CONFIG_CONFIGFS_FS is not set | ||
629 | |||
630 | # | ||
631 | # Miscellaneous filesystems | ||
632 | # | ||
633 | # CONFIG_ADFS_FS is not set | ||
634 | # CONFIG_AFFS_FS is not set | ||
635 | # CONFIG_HFS_FS is not set | ||
636 | # CONFIG_HFSPLUS_FS is not set | ||
637 | # CONFIG_BEFS_FS is not set | ||
638 | # CONFIG_BFS_FS is not set | ||
639 | # CONFIG_EFS_FS is not set | ||
640 | # CONFIG_CRAMFS is not set | ||
641 | # CONFIG_VXFS_FS is not set | ||
642 | # CONFIG_HPFS_FS is not set | ||
643 | # CONFIG_QNX4FS_FS is not set | ||
644 | # CONFIG_SYSV_FS is not set | ||
645 | # CONFIG_UFS_FS is not set | ||
646 | CONFIG_NETWORK_FILESYSTEMS=y | ||
647 | CONFIG_NFS_FS=y | ||
648 | CONFIG_NFS_V3=y | ||
649 | CONFIG_NFS_V3_ACL=y | ||
650 | CONFIG_NFS_V4=y | ||
651 | CONFIG_NFS_DIRECTIO=y | ||
652 | # CONFIG_NFSD is not set | ||
653 | CONFIG_ROOT_NFS=y | ||
654 | CONFIG_LOCKD=y | ||
655 | CONFIG_LOCKD_V4=y | ||
656 | CONFIG_NFS_ACL_SUPPORT=y | ||
657 | CONFIG_NFS_COMMON=y | ||
658 | CONFIG_SUNRPC=y | ||
659 | CONFIG_SUNRPC_GSS=y | ||
660 | # CONFIG_SUNRPC_BIND34 is not set | ||
661 | CONFIG_RPCSEC_GSS_KRB5=y | ||
662 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
663 | # CONFIG_SMB_FS is not set | ||
664 | # CONFIG_CIFS is not set | ||
665 | # CONFIG_NCP_FS is not set | ||
666 | # CONFIG_CODA_FS is not set | ||
667 | # CONFIG_AFS_FS is not set | ||
668 | |||
669 | # | ||
670 | # Partition Types | ||
671 | # | ||
672 | # CONFIG_PARTITION_ADVANCED is not set | ||
673 | CONFIG_MSDOS_PARTITION=y | ||
674 | # CONFIG_NLS is not set | ||
675 | # CONFIG_DLM is not set | ||
676 | # CONFIG_INSTRUMENTATION is not set | ||
677 | |||
678 | # | ||
679 | # Kernel hacking | ||
680 | # | ||
681 | CONFIG_PRINTK_TIME=y | ||
682 | CONFIG_ENABLE_WARN_DEPRECATED=y | ||
683 | CONFIG_ENABLE_MUST_CHECK=y | ||
684 | CONFIG_MAGIC_SYSRQ=y | ||
685 | # CONFIG_UNUSED_SYMBOLS is not set | ||
686 | # CONFIG_DEBUG_FS is not set | ||
687 | # CONFIG_HEADERS_CHECK is not set | ||
688 | CONFIG_DEBUG_KERNEL=y | ||
689 | # CONFIG_DEBUG_SHIRQ is not set | ||
690 | CONFIG_DETECT_SOFTLOCKUP=y | ||
691 | CONFIG_SCHED_DEBUG=y | ||
692 | # CONFIG_SCHEDSTATS is not set | ||
693 | # CONFIG_TIMER_STATS is not set | ||
694 | # CONFIG_DEBUG_SLAB is not set | ||
695 | # CONFIG_DEBUG_PREEMPT is not set | ||
696 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
697 | # CONFIG_RT_MUTEX_TESTER is not set | ||
698 | # CONFIG_DEBUG_SPINLOCK is not set | ||
699 | # CONFIG_DEBUG_MUTEXES is not set | ||
700 | # CONFIG_DEBUG_LOCK_ALLOC is not set | ||
701 | # CONFIG_PROVE_LOCKING is not set | ||
702 | # CONFIG_LOCK_STAT is not set | ||
703 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
704 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
705 | # CONFIG_DEBUG_KOBJECT is not set | ||
706 | CONFIG_DEBUG_BUGVERBOSE=y | ||
707 | CONFIG_DEBUG_INFO=y | ||
708 | # CONFIG_DEBUG_VM is not set | ||
709 | # CONFIG_DEBUG_LIST is not set | ||
710 | # CONFIG_DEBUG_SG is not set | ||
711 | CONFIG_FRAME_POINTER=y | ||
712 | CONFIG_FORCED_INLINING=y | ||
713 | # CONFIG_BOOT_PRINTK_DELAY is not set | ||
714 | # CONFIG_RCU_TORTURE_TEST is not set | ||
715 | # CONFIG_FAULT_INJECTION is not set | ||
716 | # CONFIG_SAMPLES is not set | ||
717 | CONFIG_DEBUG_USER=y | ||
718 | CONFIG_DEBUG_ERRORS=y | ||
719 | CONFIG_DEBUG_LL=y | ||
720 | # CONFIG_DEBUG_ICEDCC is not set | ||
721 | |||
722 | # | ||
723 | # Security options | ||
724 | # | ||
725 | # CONFIG_KEYS is not set | ||
726 | # CONFIG_SECURITY is not set | ||
727 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | ||
728 | CONFIG_CRYPTO=y | ||
729 | CONFIG_CRYPTO_ALGAPI=y | ||
730 | CONFIG_CRYPTO_BLKCIPHER=y | ||
731 | CONFIG_CRYPTO_MANAGER=y | ||
732 | # CONFIG_CRYPTO_HMAC is not set | ||
733 | # CONFIG_CRYPTO_XCBC is not set | ||
734 | # CONFIG_CRYPTO_NULL is not set | ||
735 | # CONFIG_CRYPTO_MD4 is not set | ||
736 | CONFIG_CRYPTO_MD5=y | ||
737 | # CONFIG_CRYPTO_SHA1 is not set | ||
738 | # CONFIG_CRYPTO_SHA256 is not set | ||
739 | # CONFIG_CRYPTO_SHA512 is not set | ||
740 | # CONFIG_CRYPTO_WP512 is not set | ||
741 | # CONFIG_CRYPTO_TGR192 is not set | ||
742 | # CONFIG_CRYPTO_GF128MUL is not set | ||
743 | # CONFIG_CRYPTO_ECB is not set | ||
744 | CONFIG_CRYPTO_CBC=y | ||
745 | # CONFIG_CRYPTO_PCBC is not set | ||
746 | # CONFIG_CRYPTO_LRW is not set | ||
747 | # CONFIG_CRYPTO_XTS is not set | ||
748 | # CONFIG_CRYPTO_CRYPTD is not set | ||
749 | CONFIG_CRYPTO_DES=y | ||
750 | # CONFIG_CRYPTO_FCRYPT is not set | ||
751 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
752 | # CONFIG_CRYPTO_TWOFISH is not set | ||
753 | # CONFIG_CRYPTO_SERPENT is not set | ||
754 | # CONFIG_CRYPTO_AES is not set | ||
755 | # CONFIG_CRYPTO_CAST5 is not set | ||
756 | # CONFIG_CRYPTO_CAST6 is not set | ||
757 | # CONFIG_CRYPTO_TEA is not set | ||
758 | # CONFIG_CRYPTO_ARC4 is not set | ||
759 | # CONFIG_CRYPTO_KHAZAD is not set | ||
760 | # CONFIG_CRYPTO_ANUBIS is not set | ||
761 | # CONFIG_CRYPTO_SEED is not set | ||
762 | # CONFIG_CRYPTO_DEFLATE is not set | ||
763 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
764 | # CONFIG_CRYPTO_CRC32C is not set | ||
765 | # CONFIG_CRYPTO_CAMELLIA is not set | ||
766 | # CONFIG_CRYPTO_TEST is not set | ||
767 | # CONFIG_CRYPTO_AUTHENC is not set | ||
768 | CONFIG_CRYPTO_HW=y | ||
769 | |||
770 | # | ||
771 | # Library routines | ||
772 | # | ||
773 | CONFIG_BITREVERSE=y | ||
774 | CONFIG_CRC_CCITT=y | ||
775 | # CONFIG_CRC16 is not set | ||
776 | # CONFIG_CRC_ITU_T is not set | ||
777 | CONFIG_CRC32=y | ||
778 | # CONFIG_CRC7 is not set | ||
779 | # CONFIG_LIBCRC32C is not set | ||
780 | CONFIG_PLIST=y | ||
781 | CONFIG_HAS_IOMEM=y | ||
782 | CONFIG_HAS_IOPORT=y | ||
783 | CONFIG_HAS_DMA=y | ||
diff --git a/arch/arm/configs/omap3_beagle_defconfig b/arch/arm/configs/omap3_beagle_defconfig index 357d4021e2d0..b3c8cce0f8fb 100644 --- a/arch/arm/configs/omap3_beagle_defconfig +++ b/arch/arm/configs/omap3_beagle_defconfig | |||
@@ -969,7 +969,6 @@ CONFIG_USB_ETH_RNDIS=y | |||
969 | # | 969 | # |
970 | CONFIG_USB_OTG_UTILS=y | 970 | CONFIG_USB_OTG_UTILS=y |
971 | # CONFIG_USB_GPIO_VBUS is not set | 971 | # CONFIG_USB_GPIO_VBUS is not set |
972 | # CONFIG_ISP1301_OMAP is not set | ||
973 | CONFIG_TWL4030_USB=y | 972 | CONFIG_TWL4030_USB=y |
974 | # CONFIG_NOP_USB_XCEIV is not set | 973 | # CONFIG_NOP_USB_XCEIV is not set |
975 | CONFIG_MMC=y | 974 | CONFIG_MMC=y |
diff --git a/arch/arm/configs/pxa3xx_defconfig b/arch/arm/configs/pxa3xx_defconfig new file mode 100644 index 000000000000..733b851e5b7e --- /dev/null +++ b/arch/arm/configs/pxa3xx_defconfig | |||
@@ -0,0 +1,1332 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.31-rc1 | ||
4 | # Mon Jul 13 22:48:49 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_MMU=y | ||
13 | CONFIG_GENERIC_HARDIRQS=y | ||
14 | CONFIG_STACKTRACE_SUPPORT=y | ||
15 | CONFIG_HAVE_LATENCYTOP_SUPPORT=y | ||
16 | CONFIG_LOCKDEP_SUPPORT=y | ||
17 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
18 | CONFIG_HARDIRQS_SW_RESEND=y | ||
19 | CONFIG_GENERIC_IRQ_PROBE=y | ||
20 | CONFIG_RWSEM_GENERIC_SPINLOCK=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_LOCK_KERNEL=y | ||
35 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
36 | CONFIG_LOCALVERSION="" | ||
37 | CONFIG_LOCALVERSION_AUTO=y | ||
38 | CONFIG_SWAP=y | ||
39 | CONFIG_SYSVIPC=y | ||
40 | CONFIG_SYSVIPC_SYSCTL=y | ||
41 | # CONFIG_POSIX_MQUEUE is not set | ||
42 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
43 | # CONFIG_TASKSTATS is not set | ||
44 | # CONFIG_AUDIT is not set | ||
45 | |||
46 | # | ||
47 | # RCU Subsystem | ||
48 | # | ||
49 | # CONFIG_CLASSIC_RCU is not set | ||
50 | CONFIG_TREE_RCU=y | ||
51 | # CONFIG_PREEMPT_RCU is not set | ||
52 | # CONFIG_RCU_TRACE is not set | ||
53 | CONFIG_RCU_FANOUT=32 | ||
54 | # CONFIG_RCU_FANOUT_EXACT is not set | ||
55 | # CONFIG_TREE_RCU_TRACE is not set | ||
56 | # CONFIG_PREEMPT_RCU_TRACE is not set | ||
57 | # CONFIG_IKCONFIG is not set | ||
58 | CONFIG_LOG_BUF_SHIFT=18 | ||
59 | CONFIG_GROUP_SCHED=y | ||
60 | CONFIG_FAIR_GROUP_SCHED=y | ||
61 | # CONFIG_RT_GROUP_SCHED is not set | ||
62 | CONFIG_USER_SCHED=y | ||
63 | # CONFIG_CGROUP_SCHED is not set | ||
64 | # CONFIG_CGROUPS is not set | ||
65 | CONFIG_SYSFS_DEPRECATED=y | ||
66 | CONFIG_SYSFS_DEPRECATED_V2=y | ||
67 | # CONFIG_RELAY is not set | ||
68 | CONFIG_NAMESPACES=y | ||
69 | # CONFIG_UTS_NS is not set | ||
70 | # CONFIG_IPC_NS is not set | ||
71 | # CONFIG_USER_NS is not set | ||
72 | # CONFIG_PID_NS is not set | ||
73 | # CONFIG_NET_NS is not set | ||
74 | # CONFIG_BLK_DEV_INITRD is not set | ||
75 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | ||
76 | CONFIG_SYSCTL=y | ||
77 | CONFIG_ANON_INODES=y | ||
78 | # CONFIG_EMBEDDED is not set | ||
79 | CONFIG_UID16=y | ||
80 | CONFIG_SYSCTL_SYSCALL=y | ||
81 | CONFIG_KALLSYMS=y | ||
82 | CONFIG_KALLSYMS_ALL=y | ||
83 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
84 | CONFIG_HOTPLUG=y | ||
85 | CONFIG_PRINTK=y | ||
86 | CONFIG_BUG=y | ||
87 | CONFIG_ELF_CORE=y | ||
88 | CONFIG_BASE_FULL=y | ||
89 | CONFIG_FUTEX=y | ||
90 | CONFIG_EPOLL=y | ||
91 | CONFIG_SIGNALFD=y | ||
92 | CONFIG_TIMERFD=y | ||
93 | CONFIG_EVENTFD=y | ||
94 | CONFIG_SHMEM=y | ||
95 | CONFIG_AIO=y | ||
96 | |||
97 | # | ||
98 | # Performance Counters | ||
99 | # | ||
100 | CONFIG_VM_EVENT_COUNTERS=y | ||
101 | # CONFIG_STRIP_ASM_SYMS is not set | ||
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_MARKERS is not set | ||
108 | CONFIG_HAVE_OPROFILE=y | ||
109 | # CONFIG_KPROBES is not set | ||
110 | CONFIG_HAVE_KPROBES=y | ||
111 | CONFIG_HAVE_KRETPROBES=y | ||
112 | CONFIG_HAVE_CLK=y | ||
113 | |||
114 | # | ||
115 | # GCOV-based kernel profiling | ||
116 | # | ||
117 | # CONFIG_SLOW_WORK is not set | ||
118 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | ||
119 | CONFIG_SLABINFO=y | ||
120 | CONFIG_RT_MUTEXES=y | ||
121 | CONFIG_BASE_SMALL=0 | ||
122 | CONFIG_MODULES=y | ||
123 | # CONFIG_MODULE_FORCE_LOAD is not set | ||
124 | # CONFIG_MODULE_UNLOAD is not set | ||
125 | # CONFIG_MODVERSIONS is not set | ||
126 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
127 | CONFIG_BLOCK=y | ||
128 | CONFIG_LBDAF=y | ||
129 | # CONFIG_BLK_DEV_BSG is not set | ||
130 | # CONFIG_BLK_DEV_INTEGRITY is not set | ||
131 | |||
132 | # | ||
133 | # IO Schedulers | ||
134 | # | ||
135 | CONFIG_IOSCHED_NOOP=y | ||
136 | CONFIG_IOSCHED_AS=y | ||
137 | CONFIG_IOSCHED_DEADLINE=y | ||
138 | CONFIG_IOSCHED_CFQ=y | ||
139 | # CONFIG_DEFAULT_AS is not set | ||
140 | # CONFIG_DEFAULT_DEADLINE is not set | ||
141 | CONFIG_DEFAULT_CFQ=y | ||
142 | # CONFIG_DEFAULT_NOOP is not set | ||
143 | CONFIG_DEFAULT_IOSCHED="cfq" | ||
144 | # CONFIG_FREEZER is not set | ||
145 | |||
146 | # | ||
147 | # System Type | ||
148 | # | ||
149 | # CONFIG_ARCH_AAEC2000 is not set | ||
150 | # CONFIG_ARCH_INTEGRATOR is not set | ||
151 | # CONFIG_ARCH_REALVIEW is not set | ||
152 | # CONFIG_ARCH_VERSATILE is not set | ||
153 | # CONFIG_ARCH_AT91 is not set | ||
154 | # CONFIG_ARCH_CLPS711X is not set | ||
155 | # CONFIG_ARCH_GEMINI is not set | ||
156 | # CONFIG_ARCH_EBSA110 is not set | ||
157 | # CONFIG_ARCH_EP93XX is not set | ||
158 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
159 | # CONFIG_ARCH_MXC is not set | ||
160 | # CONFIG_ARCH_STMP3XXX is not set | ||
161 | # CONFIG_ARCH_NETX is not set | ||
162 | # CONFIG_ARCH_H720X is not set | ||
163 | # CONFIG_ARCH_IOP13XX is not set | ||
164 | # CONFIG_ARCH_IOP32X is not set | ||
165 | # CONFIG_ARCH_IOP33X is not set | ||
166 | # CONFIG_ARCH_IXP23XX is not set | ||
167 | # CONFIG_ARCH_IXP2000 is not set | ||
168 | # CONFIG_ARCH_IXP4XX is not set | ||
169 | # CONFIG_ARCH_L7200 is not set | ||
170 | # CONFIG_ARCH_KIRKWOOD is not set | ||
171 | # CONFIG_ARCH_LOKI is not set | ||
172 | # CONFIG_ARCH_MV78XX0 is not set | ||
173 | # CONFIG_ARCH_ORION5X is not set | ||
174 | # CONFIG_ARCH_MMP is not set | ||
175 | # CONFIG_ARCH_KS8695 is not set | ||
176 | # CONFIG_ARCH_NS9XXX is not set | ||
177 | # CONFIG_ARCH_W90X900 is not set | ||
178 | # CONFIG_ARCH_PNX4008 is not set | ||
179 | CONFIG_ARCH_PXA=y | ||
180 | # CONFIG_ARCH_MSM is not set | ||
181 | # CONFIG_ARCH_RPC is not set | ||
182 | # CONFIG_ARCH_SA1100 is not set | ||
183 | # CONFIG_ARCH_S3C2410 is not set | ||
184 | # CONFIG_ARCH_S3C64XX is not set | ||
185 | # CONFIG_ARCH_SHARK is not set | ||
186 | # CONFIG_ARCH_LH7A40X is not set | ||
187 | # CONFIG_ARCH_U300 is not set | ||
188 | # CONFIG_ARCH_DAVINCI is not set | ||
189 | # CONFIG_ARCH_OMAP is not set | ||
190 | |||
191 | # | ||
192 | # Intel PXA2xx/PXA3xx Implementations | ||
193 | # | ||
194 | |||
195 | # | ||
196 | # Supported PXA3xx Processor Variants | ||
197 | # | ||
198 | CONFIG_CPU_PXA300=y | ||
199 | CONFIG_CPU_PXA310=y | ||
200 | CONFIG_CPU_PXA320=y | ||
201 | CONFIG_CPU_PXA930=y | ||
202 | CONFIG_CPU_PXA935=y | ||
203 | # CONFIG_ARCH_GUMSTIX is not set | ||
204 | # CONFIG_MACH_INTELMOTE2 is not set | ||
205 | # CONFIG_MACH_STARGATE2 is not set | ||
206 | # CONFIG_ARCH_LUBBOCK is not set | ||
207 | # CONFIG_MACH_LOGICPD_PXA270 is not set | ||
208 | # CONFIG_MACH_MAINSTONE is not set | ||
209 | # CONFIG_MACH_MP900C is not set | ||
210 | # CONFIG_ARCH_PXA_IDP is not set | ||
211 | # CONFIG_PXA_SHARPSL is not set | ||
212 | # CONFIG_ARCH_VIPER is not set | ||
213 | # CONFIG_ARCH_PXA_ESERIES is not set | ||
214 | # CONFIG_TRIZEPS_PXA is not set | ||
215 | # CONFIG_MACH_H5000 is not set | ||
216 | # CONFIG_MACH_EM_X270 is not set | ||
217 | # CONFIG_MACH_EXEDA is not set | ||
218 | # CONFIG_MACH_COLIBRI is not set | ||
219 | # CONFIG_MACH_COLIBRI300 is not set | ||
220 | # CONFIG_MACH_COLIBRI320 is not set | ||
221 | CONFIG_MACH_ZYLONITE=y | ||
222 | CONFIG_MACH_LITTLETON=y | ||
223 | CONFIG_MACH_TAVOREVB=y | ||
224 | CONFIG_MACH_SAAR=y | ||
225 | # CONFIG_MACH_ARMCORE is not set | ||
226 | # CONFIG_MACH_CM_X300 is not set | ||
227 | # CONFIG_MACH_H4700 is not set | ||
228 | # CONFIG_MACH_MAGICIAN is not set | ||
229 | # CONFIG_MACH_HIMALAYA is not set | ||
230 | # CONFIG_MACH_MIOA701 is not set | ||
231 | # CONFIG_MACH_PCM027 is not set | ||
232 | # CONFIG_ARCH_PXA_PALM is not set | ||
233 | # CONFIG_MACH_CSB726 is not set | ||
234 | # CONFIG_PXA_EZX is not set | ||
235 | CONFIG_PXA3xx=y | ||
236 | CONFIG_PXA_SSP=y | ||
237 | CONFIG_PXA_HAVE_BOARD_IRQS=y | ||
238 | CONFIG_PLAT_PXA=y | ||
239 | |||
240 | # | ||
241 | # Processor Type | ||
242 | # | ||
243 | CONFIG_CPU_32=y | ||
244 | CONFIG_CPU_XSC3=y | ||
245 | CONFIG_CPU_32v5=y | ||
246 | CONFIG_CPU_ABRT_EV5T=y | ||
247 | CONFIG_CPU_PABRT_NOIFAR=y | ||
248 | CONFIG_CPU_CACHE_VIVT=y | ||
249 | CONFIG_CPU_TLB_V4WBI=y | ||
250 | CONFIG_CPU_CP15=y | ||
251 | CONFIG_CPU_CP15_MMU=y | ||
252 | CONFIG_IO_36=y | ||
253 | |||
254 | # | ||
255 | # Processor Features | ||
256 | # | ||
257 | CONFIG_ARM_THUMB=y | ||
258 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
259 | # CONFIG_CPU_BPREDICT_DISABLE is not set | ||
260 | CONFIG_OUTER_CACHE=y | ||
261 | CONFIG_CACHE_XSC3L2=y | ||
262 | CONFIG_IWMMXT=y | ||
263 | CONFIG_COMMON_CLKDEV=y | ||
264 | |||
265 | # | ||
266 | # Bus support | ||
267 | # | ||
268 | # CONFIG_PCI_SYSCALL is not set | ||
269 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
270 | # CONFIG_PCCARD is not set | ||
271 | |||
272 | # | ||
273 | # Kernel Features | ||
274 | # | ||
275 | CONFIG_TICK_ONESHOT=y | ||
276 | # CONFIG_NO_HZ is not set | ||
277 | # CONFIG_HIGH_RES_TIMERS is not set | ||
278 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
279 | CONFIG_VMSPLIT_3G=y | ||
280 | # CONFIG_VMSPLIT_2G is not set | ||
281 | # CONFIG_VMSPLIT_1G is not set | ||
282 | CONFIG_PAGE_OFFSET=0xC0000000 | ||
283 | CONFIG_PREEMPT=y | ||
284 | CONFIG_HZ=100 | ||
285 | CONFIG_AEABI=y | ||
286 | CONFIG_OABI_COMPAT=y | ||
287 | # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set | ||
288 | # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set | ||
289 | # CONFIG_HIGHMEM is not set | ||
290 | CONFIG_SELECT_MEMORY_MODEL=y | ||
291 | CONFIG_FLATMEM_MANUAL=y | ||
292 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
293 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
294 | CONFIG_FLATMEM=y | ||
295 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
296 | CONFIG_PAGEFLAGS_EXTENDED=y | ||
297 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
298 | # CONFIG_PHYS_ADDR_T_64BIT is not set | ||
299 | CONFIG_ZONE_DMA_FLAG=0 | ||
300 | CONFIG_VIRT_TO_BUS=y | ||
301 | CONFIG_HAVE_MLOCK=y | ||
302 | CONFIG_HAVE_MLOCKED_PAGE_BIT=y | ||
303 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 | ||
304 | CONFIG_ALIGNMENT_TRAP=y | ||
305 | # CONFIG_UACCESS_WITH_MEMCPY is not set | ||
306 | |||
307 | # | ||
308 | # Boot options | ||
309 | # | ||
310 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
311 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
312 | 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=64M debug" | ||
313 | # CONFIG_XIP_KERNEL is not set | ||
314 | # CONFIG_KEXEC is not set | ||
315 | |||
316 | # | ||
317 | # CPU Power Management | ||
318 | # | ||
319 | # CONFIG_CPU_FREQ is not set | ||
320 | # CONFIG_CPU_IDLE is not set | ||
321 | |||
322 | # | ||
323 | # Floating point emulation | ||
324 | # | ||
325 | |||
326 | # | ||
327 | # At least one emulation must be selected | ||
328 | # | ||
329 | CONFIG_FPE_NWFPE=y | ||
330 | # CONFIG_FPE_NWFPE_XP is not set | ||
331 | # CONFIG_FPE_FASTFPE is not set | ||
332 | |||
333 | # | ||
334 | # Userspace binary formats | ||
335 | # | ||
336 | CONFIG_BINFMT_ELF=y | ||
337 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set | ||
338 | CONFIG_HAVE_AOUT=y | ||
339 | # CONFIG_BINFMT_AOUT is not set | ||
340 | # CONFIG_BINFMT_MISC is not set | ||
341 | |||
342 | # | ||
343 | # Power management options | ||
344 | # | ||
345 | # CONFIG_PM is not set | ||
346 | CONFIG_ARCH_SUSPEND_POSSIBLE=y | ||
347 | CONFIG_NET=y | ||
348 | |||
349 | # | ||
350 | # Networking options | ||
351 | # | ||
352 | CONFIG_PACKET=y | ||
353 | # CONFIG_PACKET_MMAP is not set | ||
354 | CONFIG_UNIX=y | ||
355 | # CONFIG_NET_KEY is not set | ||
356 | CONFIG_INET=y | ||
357 | # CONFIG_IP_MULTICAST is not set | ||
358 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
359 | CONFIG_IP_FIB_HASH=y | ||
360 | CONFIG_IP_PNP=y | ||
361 | # CONFIG_IP_PNP_DHCP is not set | ||
362 | # CONFIG_IP_PNP_BOOTP is not set | ||
363 | # CONFIG_IP_PNP_RARP is not set | ||
364 | # CONFIG_NET_IPIP is not set | ||
365 | # CONFIG_NET_IPGRE is not set | ||
366 | # CONFIG_ARPD is not set | ||
367 | # CONFIG_SYN_COOKIES is not set | ||
368 | # CONFIG_INET_AH is not set | ||
369 | # CONFIG_INET_ESP is not set | ||
370 | # CONFIG_INET_IPCOMP is not set | ||
371 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
372 | # CONFIG_INET_TUNNEL is not set | ||
373 | # CONFIG_INET_XFRM_MODE_TRANSPORT is not set | ||
374 | # CONFIG_INET_XFRM_MODE_TUNNEL is not set | ||
375 | # CONFIG_INET_XFRM_MODE_BEET is not set | ||
376 | # CONFIG_INET_LRO is not set | ||
377 | # CONFIG_INET_DIAG is not set | ||
378 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
379 | CONFIG_TCP_CONG_CUBIC=y | ||
380 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
381 | # CONFIG_TCP_MD5SIG is not set | ||
382 | # CONFIG_IPV6 is not set | ||
383 | # CONFIG_NETWORK_SECMARK is not set | ||
384 | # CONFIG_NETFILTER is not set | ||
385 | # CONFIG_IP_DCCP is not set | ||
386 | # CONFIG_IP_SCTP is not set | ||
387 | # CONFIG_TIPC is not set | ||
388 | # CONFIG_ATM is not set | ||
389 | # CONFIG_BRIDGE is not set | ||
390 | # CONFIG_NET_DSA is not set | ||
391 | # CONFIG_VLAN_8021Q is not set | ||
392 | # CONFIG_DECNET is not set | ||
393 | # CONFIG_LLC2 is not set | ||
394 | # CONFIG_IPX is not set | ||
395 | # CONFIG_ATALK is not set | ||
396 | # CONFIG_X25 is not set | ||
397 | # CONFIG_LAPB is not set | ||
398 | # CONFIG_ECONET is not set | ||
399 | # CONFIG_WAN_ROUTER is not set | ||
400 | # CONFIG_PHONET is not set | ||
401 | # CONFIG_IEEE802154 is not set | ||
402 | # CONFIG_NET_SCHED is not set | ||
403 | # CONFIG_DCB is not set | ||
404 | |||
405 | # | ||
406 | # Network testing | ||
407 | # | ||
408 | # CONFIG_NET_PKTGEN is not set | ||
409 | # CONFIG_HAMRADIO is not set | ||
410 | # CONFIG_CAN is not set | ||
411 | # CONFIG_IRDA is not set | ||
412 | # CONFIG_BT is not set | ||
413 | # CONFIG_AF_RXRPC is not set | ||
414 | # CONFIG_WIRELESS is not set | ||
415 | # CONFIG_WIMAX is not set | ||
416 | # CONFIG_RFKILL is not set | ||
417 | # CONFIG_NET_9P is not set | ||
418 | |||
419 | # | ||
420 | # Device Drivers | ||
421 | # | ||
422 | |||
423 | # | ||
424 | # Generic Driver Options | ||
425 | # | ||
426 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
427 | # CONFIG_STANDALONE is not set | ||
428 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set | ||
429 | CONFIG_FW_LOADER=y | ||
430 | CONFIG_FIRMWARE_IN_KERNEL=y | ||
431 | CONFIG_EXTRA_FIRMWARE="" | ||
432 | # CONFIG_DEBUG_DRIVER is not set | ||
433 | # CONFIG_DEBUG_DEVRES is not set | ||
434 | # CONFIG_SYS_HYPERVISOR is not set | ||
435 | # CONFIG_CONNECTOR is not set | ||
436 | CONFIG_MTD=y | ||
437 | # CONFIG_MTD_DEBUG is not set | ||
438 | CONFIG_MTD_CONCAT=y | ||
439 | CONFIG_MTD_PARTITIONS=y | ||
440 | # CONFIG_MTD_TESTS is not set | ||
441 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
442 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
443 | # CONFIG_MTD_AFS_PARTS is not set | ||
444 | # CONFIG_MTD_AR7_PARTS is not set | ||
445 | |||
446 | # | ||
447 | # User Modules And Translation Layers | ||
448 | # | ||
449 | CONFIG_MTD_CHAR=y | ||
450 | CONFIG_MTD_BLKDEVS=y | ||
451 | CONFIG_MTD_BLOCK=y | ||
452 | # CONFIG_FTL is not set | ||
453 | # CONFIG_NFTL is not set | ||
454 | # CONFIG_INFTL is not set | ||
455 | # CONFIG_RFD_FTL is not set | ||
456 | # CONFIG_SSFDC is not set | ||
457 | # CONFIG_MTD_OOPS is not set | ||
458 | |||
459 | # | ||
460 | # RAM/ROM/Flash chip drivers | ||
461 | # | ||
462 | # CONFIG_MTD_CFI is not set | ||
463 | # CONFIG_MTD_JEDECPROBE is not set | ||
464 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
465 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
466 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
467 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
468 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
469 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
470 | CONFIG_MTD_CFI_I1=y | ||
471 | CONFIG_MTD_CFI_I2=y | ||
472 | # CONFIG_MTD_CFI_I4 is not set | ||
473 | # CONFIG_MTD_CFI_I8 is not set | ||
474 | # CONFIG_MTD_RAM is not set | ||
475 | # CONFIG_MTD_ROM is not set | ||
476 | # CONFIG_MTD_ABSENT is not set | ||
477 | |||
478 | # | ||
479 | # Mapping drivers for chip access | ||
480 | # | ||
481 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
482 | # CONFIG_MTD_PLATRAM is not set | ||
483 | |||
484 | # | ||
485 | # Self-contained MTD device drivers | ||
486 | # | ||
487 | # CONFIG_MTD_DATAFLASH is not set | ||
488 | # CONFIG_MTD_M25P80 is not set | ||
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=y | ||
502 | # CONFIG_MTD_NAND_ECC_SMC is not set | ||
503 | # CONFIG_MTD_NAND_MUSEUM_IDS is not set | ||
504 | # CONFIG_MTD_NAND_H1900 is not set | ||
505 | # CONFIG_MTD_NAND_GPIO is not set | ||
506 | CONFIG_MTD_NAND_IDS=y | ||
507 | # CONFIG_MTD_NAND_DISKONCHIP is not set | ||
508 | # CONFIG_MTD_NAND_SHARPSL is not set | ||
509 | CONFIG_MTD_NAND_PXA3xx=y | ||
510 | CONFIG_MTD_NAND_PXA3xx_BUILTIN=y | ||
511 | # CONFIG_MTD_NAND_NANDSIM is not set | ||
512 | # CONFIG_MTD_NAND_PLATFORM is not set | ||
513 | CONFIG_MTD_ONENAND=y | ||
514 | CONFIG_MTD_ONENAND_VERIFY_WRITE=y | ||
515 | CONFIG_MTD_ONENAND_GENERIC=y | ||
516 | # CONFIG_MTD_ONENAND_OTP is not set | ||
517 | # CONFIG_MTD_ONENAND_2X_PROGRAM is not set | ||
518 | # CONFIG_MTD_ONENAND_SIM is not set | ||
519 | |||
520 | # | ||
521 | # LPDDR flash memory drivers | ||
522 | # | ||
523 | # CONFIG_MTD_LPDDR is not set | ||
524 | |||
525 | # | ||
526 | # UBI - Unsorted block images | ||
527 | # | ||
528 | # CONFIG_MTD_UBI is not set | ||
529 | # CONFIG_PARPORT is not set | ||
530 | CONFIG_BLK_DEV=y | ||
531 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
532 | CONFIG_BLK_DEV_LOOP=y | ||
533 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
534 | # CONFIG_BLK_DEV_NBD is not set | ||
535 | CONFIG_BLK_DEV_RAM=y | ||
536 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
537 | CONFIG_BLK_DEV_RAM_SIZE=4096 | ||
538 | # CONFIG_BLK_DEV_XIP is not set | ||
539 | # CONFIG_CDROM_PKTCDVD is not set | ||
540 | # CONFIG_ATA_OVER_ETH is not set | ||
541 | # CONFIG_MG_DISK is not set | ||
542 | # CONFIG_MISC_DEVICES is not set | ||
543 | CONFIG_HAVE_IDE=y | ||
544 | # CONFIG_IDE is not set | ||
545 | |||
546 | # | ||
547 | # SCSI device support | ||
548 | # | ||
549 | # CONFIG_RAID_ATTRS is not set | ||
550 | # CONFIG_SCSI is not set | ||
551 | # CONFIG_SCSI_DMA is not set | ||
552 | # CONFIG_SCSI_NETLINK is not set | ||
553 | # CONFIG_ATA is not set | ||
554 | # CONFIG_MD is not set | ||
555 | CONFIG_NETDEVICES=y | ||
556 | # CONFIG_DUMMY is not set | ||
557 | # CONFIG_BONDING is not set | ||
558 | # CONFIG_MACVLAN is not set | ||
559 | # CONFIG_EQUALIZER is not set | ||
560 | # CONFIG_TUN is not set | ||
561 | # CONFIG_VETH is not set | ||
562 | # CONFIG_PHYLIB is not set | ||
563 | CONFIG_NET_ETHERNET=y | ||
564 | CONFIG_MII=y | ||
565 | # CONFIG_AX88796 is not set | ||
566 | CONFIG_SMC91X=y | ||
567 | # CONFIG_DM9000 is not set | ||
568 | # CONFIG_ENC28J60 is not set | ||
569 | # CONFIG_ETHOC is not set | ||
570 | # CONFIG_SMC911X is not set | ||
571 | # CONFIG_SMSC911X is not set | ||
572 | # CONFIG_DNET is not set | ||
573 | # CONFIG_IBM_NEW_EMAC_ZMII is not set | ||
574 | # CONFIG_IBM_NEW_EMAC_RGMII is not set | ||
575 | # CONFIG_IBM_NEW_EMAC_TAH is not set | ||
576 | # CONFIG_IBM_NEW_EMAC_EMAC4 is not set | ||
577 | # CONFIG_IBM_NEW_EMAC_NO_FLOW_CTRL is not set | ||
578 | # CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set | ||
579 | # CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set | ||
580 | # CONFIG_B44 is not set | ||
581 | # CONFIG_KS8842 is not set | ||
582 | # CONFIG_NETDEV_1000 is not set | ||
583 | # CONFIG_NETDEV_10000 is not set | ||
584 | |||
585 | # | ||
586 | # Wireless LAN | ||
587 | # | ||
588 | # CONFIG_WLAN_PRE80211 is not set | ||
589 | # CONFIG_WLAN_80211 is not set | ||
590 | |||
591 | # | ||
592 | # Enable WiMAX (Networking options) to see the WiMAX drivers | ||
593 | # | ||
594 | # CONFIG_WAN is not set | ||
595 | # CONFIG_PPP is not set | ||
596 | # CONFIG_SLIP is not set | ||
597 | # CONFIG_NETCONSOLE is not set | ||
598 | # CONFIG_NETPOLL is not set | ||
599 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
600 | # CONFIG_ISDN is not set | ||
601 | |||
602 | # | ||
603 | # Input device support | ||
604 | # | ||
605 | CONFIG_INPUT=y | ||
606 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
607 | # CONFIG_INPUT_POLLDEV is not set | ||
608 | |||
609 | # | ||
610 | # Userland interfaces | ||
611 | # | ||
612 | CONFIG_INPUT_MOUSEDEV=y | ||
613 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
614 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
615 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
616 | # CONFIG_INPUT_JOYDEV is not set | ||
617 | # CONFIG_INPUT_EVDEV is not set | ||
618 | # CONFIG_INPUT_EVBUG is not set | ||
619 | |||
620 | # | ||
621 | # Input Device Drivers | ||
622 | # | ||
623 | CONFIG_INPUT_KEYBOARD=y | ||
624 | # CONFIG_KEYBOARD_ATKBD is not set | ||
625 | # CONFIG_KEYBOARD_SUNKBD is not set | ||
626 | # CONFIG_KEYBOARD_LKKBD is not set | ||
627 | # CONFIG_KEYBOARD_XTKBD is not set | ||
628 | # CONFIG_KEYBOARD_NEWTON is not set | ||
629 | # CONFIG_KEYBOARD_STOWAWAY is not set | ||
630 | # CONFIG_KEYBOARD_LM8323 is not set | ||
631 | CONFIG_KEYBOARD_PXA27x=y | ||
632 | CONFIG_KEYBOARD_PXA930_ROTARY=y | ||
633 | CONFIG_KEYBOARD_GPIO=y | ||
634 | CONFIG_INPUT_MOUSE=y | ||
635 | CONFIG_MOUSE_PS2=y | ||
636 | CONFIG_MOUSE_PS2_ALPS=y | ||
637 | CONFIG_MOUSE_PS2_LOGIPS2PP=y | ||
638 | CONFIG_MOUSE_PS2_SYNAPTICS=y | ||
639 | CONFIG_MOUSE_PS2_TRACKPOINT=y | ||
640 | # CONFIG_MOUSE_PS2_ELANTECH is not set | ||
641 | # CONFIG_MOUSE_PS2_TOUCHKIT is not set | ||
642 | # CONFIG_MOUSE_SERIAL is not set | ||
643 | # CONFIG_MOUSE_VSXXXAA is not set | ||
644 | # CONFIG_MOUSE_GPIO is not set | ||
645 | CONFIG_MOUSE_PXA930_TRKBALL=y | ||
646 | # CONFIG_MOUSE_SYNAPTICS_I2C is not set | ||
647 | # CONFIG_INPUT_JOYSTICK is not set | ||
648 | # CONFIG_INPUT_TABLET is not set | ||
649 | CONFIG_INPUT_TOUCHSCREEN=y | ||
650 | # CONFIG_TOUCHSCREEN_ADS7846 is not set | ||
651 | # CONFIG_TOUCHSCREEN_AD7877 is not set | ||
652 | # CONFIG_TOUCHSCREEN_AD7879_I2C is not set | ||
653 | # CONFIG_TOUCHSCREEN_AD7879_SPI is not set | ||
654 | # CONFIG_TOUCHSCREEN_AD7879 is not set | ||
655 | CONFIG_TOUCHSCREEN_DA9034=y | ||
656 | # CONFIG_TOUCHSCREEN_EETI is not set | ||
657 | # CONFIG_TOUCHSCREEN_FUJITSU is not set | ||
658 | # CONFIG_TOUCHSCREEN_GUNZE is not set | ||
659 | # CONFIG_TOUCHSCREEN_ELO is not set | ||
660 | # CONFIG_TOUCHSCREEN_WACOM_W8001 is not set | ||
661 | # CONFIG_TOUCHSCREEN_MTOUCH is not set | ||
662 | # CONFIG_TOUCHSCREEN_INEXIO is not set | ||
663 | # CONFIG_TOUCHSCREEN_MK712 is not set | ||
664 | # CONFIG_TOUCHSCREEN_PENMOUNT is not set | ||
665 | # CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set | ||
666 | # CONFIG_TOUCHSCREEN_TOUCHWIN is not set | ||
667 | # CONFIG_TOUCHSCREEN_TOUCHIT213 is not set | ||
668 | # CONFIG_TOUCHSCREEN_TSC2007 is not set | ||
669 | # CONFIG_TOUCHSCREEN_W90X900 is not set | ||
670 | # CONFIG_INPUT_MISC is not set | ||
671 | |||
672 | # | ||
673 | # Hardware I/O ports | ||
674 | # | ||
675 | CONFIG_SERIO=y | ||
676 | CONFIG_SERIO_SERPORT=y | ||
677 | CONFIG_SERIO_LIBPS2=y | ||
678 | # CONFIG_SERIO_RAW is not set | ||
679 | # CONFIG_GAMEPORT is not set | ||
680 | |||
681 | # | ||
682 | # Character devices | ||
683 | # | ||
684 | CONFIG_VT=y | ||
685 | CONFIG_CONSOLE_TRANSLATIONS=y | ||
686 | CONFIG_VT_CONSOLE=y | ||
687 | CONFIG_HW_CONSOLE=y | ||
688 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
689 | CONFIG_DEVKMEM=y | ||
690 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
691 | |||
692 | # | ||
693 | # Serial drivers | ||
694 | # | ||
695 | # CONFIG_SERIAL_8250 is not set | ||
696 | |||
697 | # | ||
698 | # Non-8250 serial port support | ||
699 | # | ||
700 | # CONFIG_SERIAL_MAX3100 is not set | ||
701 | CONFIG_SERIAL_PXA=y | ||
702 | CONFIG_SERIAL_PXA_CONSOLE=y | ||
703 | CONFIG_SERIAL_CORE=y | ||
704 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
705 | CONFIG_UNIX98_PTYS=y | ||
706 | # CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set | ||
707 | # CONFIG_LEGACY_PTYS is not set | ||
708 | # CONFIG_IPMI_HANDLER is not set | ||
709 | # CONFIG_HW_RANDOM is not set | ||
710 | # CONFIG_R3964 is not set | ||
711 | # CONFIG_RAW_DRIVER is not set | ||
712 | # CONFIG_TCG_TPM is not set | ||
713 | CONFIG_I2C=y | ||
714 | CONFIG_I2C_BOARDINFO=y | ||
715 | # CONFIG_I2C_CHARDEV is not set | ||
716 | # CONFIG_I2C_HELPER_AUTO is not set | ||
717 | |||
718 | # | ||
719 | # I2C Algorithms | ||
720 | # | ||
721 | # CONFIG_I2C_ALGOBIT is not set | ||
722 | # CONFIG_I2C_ALGOPCF is not set | ||
723 | # CONFIG_I2C_ALGOPCA is not set | ||
724 | |||
725 | # | ||
726 | # I2C Hardware Bus support | ||
727 | # | ||
728 | |||
729 | # | ||
730 | # I2C system bus drivers (mostly embedded / system-on-chip) | ||
731 | # | ||
732 | # CONFIG_I2C_DESIGNWARE is not set | ||
733 | # CONFIG_I2C_GPIO is not set | ||
734 | # CONFIG_I2C_OCORES is not set | ||
735 | CONFIG_I2C_PXA=y | ||
736 | # CONFIG_I2C_PXA_SLAVE is not set | ||
737 | # CONFIG_I2C_SIMTEC is not set | ||
738 | |||
739 | # | ||
740 | # External I2C/SMBus adapter drivers | ||
741 | # | ||
742 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
743 | # CONFIG_I2C_TAOS_EVM is not set | ||
744 | |||
745 | # | ||
746 | # Other I2C/SMBus bus drivers | ||
747 | # | ||
748 | # CONFIG_I2C_PCA_PLATFORM is not set | ||
749 | # CONFIG_I2C_STUB is not set | ||
750 | |||
751 | # | ||
752 | # Miscellaneous I2C Chip support | ||
753 | # | ||
754 | # CONFIG_DS1682 is not set | ||
755 | # CONFIG_SENSORS_TSL2550 is not set | ||
756 | # CONFIG_I2C_DEBUG_CORE is not set | ||
757 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
758 | # CONFIG_I2C_DEBUG_BUS is not set | ||
759 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
760 | CONFIG_SPI=y | ||
761 | # CONFIG_SPI_DEBUG is not set | ||
762 | CONFIG_SPI_MASTER=y | ||
763 | |||
764 | # | ||
765 | # SPI Master Controller Drivers | ||
766 | # | ||
767 | # CONFIG_SPI_BITBANG is not set | ||
768 | # CONFIG_SPI_GPIO is not set | ||
769 | CONFIG_SPI_PXA2XX=y | ||
770 | |||
771 | # | ||
772 | # SPI Protocol Masters | ||
773 | # | ||
774 | # CONFIG_SPI_SPIDEV is not set | ||
775 | # CONFIG_SPI_TLE62X0 is not set | ||
776 | CONFIG_ARCH_REQUIRE_GPIOLIB=y | ||
777 | CONFIG_GPIOLIB=y | ||
778 | # CONFIG_DEBUG_GPIO is not set | ||
779 | # CONFIG_GPIO_SYSFS is not set | ||
780 | |||
781 | # | ||
782 | # Memory mapped GPIO expanders: | ||
783 | # | ||
784 | |||
785 | # | ||
786 | # I2C GPIO expanders: | ||
787 | # | ||
788 | CONFIG_GPIO_MAX732X=y | ||
789 | CONFIG_GPIO_PCA953X=y | ||
790 | CONFIG_GPIO_PCF857X=y | ||
791 | |||
792 | # | ||
793 | # PCI GPIO expanders: | ||
794 | # | ||
795 | |||
796 | # | ||
797 | # SPI GPIO expanders: | ||
798 | # | ||
799 | CONFIG_GPIO_MAX7301=y | ||
800 | # CONFIG_GPIO_MCP23S08 is not set | ||
801 | # CONFIG_W1 is not set | ||
802 | CONFIG_POWER_SUPPLY=y | ||
803 | CONFIG_POWER_SUPPLY_DEBUG=y | ||
804 | CONFIG_PDA_POWER=y | ||
805 | # CONFIG_BATTERY_DS2760 is not set | ||
806 | # CONFIG_BATTERY_BQ27x00 is not set | ||
807 | CONFIG_BATTERY_DA9030=y | ||
808 | # CONFIG_BATTERY_MAX17040 is not set | ||
809 | # CONFIG_HWMON is not set | ||
810 | # CONFIG_THERMAL is not set | ||
811 | # CONFIG_THERMAL_HWMON is not set | ||
812 | # CONFIG_WATCHDOG is not set | ||
813 | CONFIG_SSB_POSSIBLE=y | ||
814 | |||
815 | # | ||
816 | # Sonics Silicon Backplane | ||
817 | # | ||
818 | # CONFIG_SSB is not set | ||
819 | |||
820 | # | ||
821 | # Multifunction device drivers | ||
822 | # | ||
823 | # CONFIG_MFD_CORE is not set | ||
824 | # CONFIG_MFD_SM501 is not set | ||
825 | # CONFIG_MFD_ASIC3 is not set | ||
826 | # CONFIG_HTC_EGPIO is not set | ||
827 | # CONFIG_HTC_PASIC3 is not set | ||
828 | # CONFIG_TPS65010 is not set | ||
829 | # CONFIG_TWL4030_CORE is not set | ||
830 | # CONFIG_MFD_TMIO is not set | ||
831 | # CONFIG_MFD_T7L66XB is not set | ||
832 | # CONFIG_MFD_TC6387XB is not set | ||
833 | # CONFIG_MFD_TC6393XB is not set | ||
834 | CONFIG_PMIC_DA903X=y | ||
835 | # CONFIG_MFD_WM8400 is not set | ||
836 | # CONFIG_MFD_WM8350_I2C is not set | ||
837 | # CONFIG_MFD_PCF50633 is not set | ||
838 | # CONFIG_AB3100_CORE is not set | ||
839 | # CONFIG_EZX_PCAP is not set | ||
840 | # CONFIG_MEDIA_SUPPORT is not set | ||
841 | |||
842 | # | ||
843 | # Graphics support | ||
844 | # | ||
845 | # CONFIG_VGASTATE is not set | ||
846 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
847 | CONFIG_FB=y | ||
848 | # CONFIG_FIRMWARE_EDID is not set | ||
849 | # CONFIG_FB_DDC is not set | ||
850 | # CONFIG_FB_BOOT_VESA_SUPPORT is not set | ||
851 | CONFIG_FB_CFB_FILLRECT=y | ||
852 | CONFIG_FB_CFB_COPYAREA=y | ||
853 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
854 | # CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set | ||
855 | # CONFIG_FB_SYS_FILLRECT is not set | ||
856 | # CONFIG_FB_SYS_COPYAREA is not set | ||
857 | # CONFIG_FB_SYS_IMAGEBLIT is not set | ||
858 | # CONFIG_FB_FOREIGN_ENDIAN is not set | ||
859 | # CONFIG_FB_SYS_FOPS is not set | ||
860 | # CONFIG_FB_SVGALIB is not set | ||
861 | # CONFIG_FB_MACMODES is not set | ||
862 | # CONFIG_FB_BACKLIGHT is not set | ||
863 | # CONFIG_FB_MODE_HELPERS is not set | ||
864 | # CONFIG_FB_TILEBLITTING is not set | ||
865 | |||
866 | # | ||
867 | # Frame buffer hardware drivers | ||
868 | # | ||
869 | # CONFIG_FB_S1D13XXX is not set | ||
870 | CONFIG_FB_PXA=y | ||
871 | # CONFIG_FB_PXA_OVERLAY is not set | ||
872 | # CONFIG_FB_PXA_SMARTPANEL is not set | ||
873 | # CONFIG_FB_PXA_PARAMETERS is not set | ||
874 | # CONFIG_FB_MBX is not set | ||
875 | # CONFIG_FB_W100 is not set | ||
876 | # CONFIG_FB_VIRTUAL is not set | ||
877 | # CONFIG_FB_METRONOME is not set | ||
878 | # CONFIG_FB_MB862XX is not set | ||
879 | # CONFIG_FB_BROADSHEET is not set | ||
880 | CONFIG_BACKLIGHT_LCD_SUPPORT=y | ||
881 | CONFIG_LCD_CLASS_DEVICE=y | ||
882 | # CONFIG_LCD_LTV350QV is not set | ||
883 | # CONFIG_LCD_ILI9320 is not set | ||
884 | CONFIG_LCD_TDO24M=y | ||
885 | # CONFIG_LCD_VGG2432A4 is not set | ||
886 | # CONFIG_LCD_PLATFORM is not set | ||
887 | CONFIG_BACKLIGHT_CLASS_DEVICE=y | ||
888 | # CONFIG_BACKLIGHT_GENERIC is not set | ||
889 | CONFIG_BACKLIGHT_PWM=y | ||
890 | CONFIG_BACKLIGHT_DA903X=y | ||
891 | |||
892 | # | ||
893 | # Display device support | ||
894 | # | ||
895 | # CONFIG_DISPLAY_SUPPORT is not set | ||
896 | |||
897 | # | ||
898 | # Console display driver support | ||
899 | # | ||
900 | # CONFIG_VGA_CONSOLE is not set | ||
901 | CONFIG_DUMMY_CONSOLE=y | ||
902 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
903 | CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y | ||
904 | # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set | ||
905 | CONFIG_FONTS=y | ||
906 | # CONFIG_FONT_8x8 is not set | ||
907 | # CONFIG_FONT_8x16 is not set | ||
908 | CONFIG_FONT_6x11=y | ||
909 | # CONFIG_FONT_7x14 is not set | ||
910 | # CONFIG_FONT_PEARL_8x8 is not set | ||
911 | # CONFIG_FONT_ACORN_8x8 is not set | ||
912 | # CONFIG_FONT_MINI_4x6 is not set | ||
913 | # CONFIG_FONT_SUN8x16 is not set | ||
914 | # CONFIG_FONT_SUN12x22 is not set | ||
915 | # CONFIG_FONT_10x18 is not set | ||
916 | CONFIG_LOGO=y | ||
917 | CONFIG_LOGO_LINUX_MONO=y | ||
918 | CONFIG_LOGO_LINUX_VGA16=y | ||
919 | CONFIG_LOGO_LINUX_CLUT224=y | ||
920 | # CONFIG_SOUND is not set | ||
921 | # CONFIG_HID_SUPPORT is not set | ||
922 | # CONFIG_USB_SUPPORT is not set | ||
923 | CONFIG_MMC=y | ||
924 | # CONFIG_MMC_DEBUG is not set | ||
925 | # CONFIG_MMC_UNSAFE_RESUME is not set | ||
926 | |||
927 | # | ||
928 | # MMC/SD/SDIO Card Drivers | ||
929 | # | ||
930 | CONFIG_MMC_BLOCK=y | ||
931 | CONFIG_MMC_BLOCK_BOUNCE=y | ||
932 | # CONFIG_SDIO_UART is not set | ||
933 | # CONFIG_MMC_TEST is not set | ||
934 | |||
935 | # | ||
936 | # MMC/SD/SDIO Host Controller Drivers | ||
937 | # | ||
938 | CONFIG_MMC_PXA=y | ||
939 | # CONFIG_MMC_SDHCI is not set | ||
940 | # CONFIG_MMC_SPI is not set | ||
941 | # CONFIG_MEMSTICK is not set | ||
942 | # CONFIG_ACCESSIBILITY is not set | ||
943 | CONFIG_NEW_LEDS=y | ||
944 | CONFIG_LEDS_CLASS=m | ||
945 | |||
946 | # | ||
947 | # LED drivers | ||
948 | # | ||
949 | # CONFIG_LEDS_PCA9532 is not set | ||
950 | CONFIG_LEDS_GPIO=m | ||
951 | CONFIG_LEDS_GPIO_PLATFORM=y | ||
952 | # CONFIG_LEDS_LP5521 is not set | ||
953 | # CONFIG_LEDS_PCA955X is not set | ||
954 | CONFIG_LEDS_DA903X=m | ||
955 | # CONFIG_LEDS_DAC124S085 is not set | ||
956 | # CONFIG_LEDS_PWM is not set | ||
957 | # CONFIG_LEDS_BD2802 is not set | ||
958 | |||
959 | # | ||
960 | # LED Triggers | ||
961 | # | ||
962 | CONFIG_LEDS_TRIGGERS=y | ||
963 | CONFIG_LEDS_TRIGGER_TIMER=m | ||
964 | CONFIG_LEDS_TRIGGER_HEARTBEAT=m | ||
965 | CONFIG_LEDS_TRIGGER_BACKLIGHT=m | ||
966 | CONFIG_LEDS_TRIGGER_GPIO=m | ||
967 | CONFIG_LEDS_TRIGGER_DEFAULT_ON=m | ||
968 | |||
969 | # | ||
970 | # iptables trigger is under Netfilter config (LED target) | ||
971 | # | ||
972 | CONFIG_RTC_LIB=y | ||
973 | # CONFIG_RTC_CLASS is not set | ||
974 | # CONFIG_DMADEVICES is not set | ||
975 | # CONFIG_AUXDISPLAY is not set | ||
976 | CONFIG_REGULATOR=y | ||
977 | CONFIG_REGULATOR_DEBUG=y | ||
978 | # CONFIG_REGULATOR_FIXED_VOLTAGE is not set | ||
979 | CONFIG_REGULATOR_VIRTUAL_CONSUMER=y | ||
980 | # CONFIG_REGULATOR_USERSPACE_CONSUMER is not set | ||
981 | # CONFIG_REGULATOR_BQ24022 is not set | ||
982 | # CONFIG_REGULATOR_MAX1586 is not set | ||
983 | CONFIG_REGULATOR_DA903X=y | ||
984 | # CONFIG_REGULATOR_LP3971 is not set | ||
985 | # CONFIG_UIO is not set | ||
986 | # CONFIG_STAGING is not set | ||
987 | |||
988 | # | ||
989 | # File systems | ||
990 | # | ||
991 | # CONFIG_EXT2_FS is not set | ||
992 | # CONFIG_EXT3_FS is not set | ||
993 | # CONFIG_EXT4_FS is not set | ||
994 | # CONFIG_REISERFS_FS is not set | ||
995 | # CONFIG_JFS_FS is not set | ||
996 | CONFIG_FS_POSIX_ACL=y | ||
997 | # CONFIG_XFS_FS is not set | ||
998 | # CONFIG_GFS2_FS is not set | ||
999 | # CONFIG_OCFS2_FS is not set | ||
1000 | # CONFIG_BTRFS_FS is not set | ||
1001 | CONFIG_FILE_LOCKING=y | ||
1002 | CONFIG_FSNOTIFY=y | ||
1003 | CONFIG_DNOTIFY=y | ||
1004 | # CONFIG_INOTIFY is not set | ||
1005 | CONFIG_INOTIFY_USER=y | ||
1006 | # CONFIG_QUOTA is not set | ||
1007 | # CONFIG_AUTOFS_FS is not set | ||
1008 | # CONFIG_AUTOFS4_FS is not set | ||
1009 | # CONFIG_FUSE_FS is not set | ||
1010 | |||
1011 | # | ||
1012 | # Caches | ||
1013 | # | ||
1014 | # CONFIG_FSCACHE is not set | ||
1015 | |||
1016 | # | ||
1017 | # CD-ROM/DVD Filesystems | ||
1018 | # | ||
1019 | # CONFIG_ISO9660_FS is not set | ||
1020 | # CONFIG_UDF_FS is not set | ||
1021 | |||
1022 | # | ||
1023 | # DOS/FAT/NT Filesystems | ||
1024 | # | ||
1025 | # CONFIG_MSDOS_FS is not set | ||
1026 | # CONFIG_VFAT_FS is not set | ||
1027 | # CONFIG_NTFS_FS is not set | ||
1028 | |||
1029 | # | ||
1030 | # Pseudo filesystems | ||
1031 | # | ||
1032 | CONFIG_PROC_FS=y | ||
1033 | CONFIG_PROC_SYSCTL=y | ||
1034 | CONFIG_PROC_PAGE_MONITOR=y | ||
1035 | CONFIG_SYSFS=y | ||
1036 | # CONFIG_TMPFS is not set | ||
1037 | # CONFIG_HUGETLB_PAGE is not set | ||
1038 | # CONFIG_CONFIGFS_FS is not set | ||
1039 | CONFIG_MISC_FILESYSTEMS=y | ||
1040 | # CONFIG_ADFS_FS is not set | ||
1041 | # CONFIG_AFFS_FS is not set | ||
1042 | # CONFIG_HFS_FS is not set | ||
1043 | # CONFIG_HFSPLUS_FS is not set | ||
1044 | # CONFIG_BEFS_FS is not set | ||
1045 | # CONFIG_BFS_FS is not set | ||
1046 | # CONFIG_EFS_FS is not set | ||
1047 | CONFIG_JFFS2_FS=y | ||
1048 | CONFIG_JFFS2_FS_DEBUG=0 | ||
1049 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
1050 | CONFIG_JFFS2_FS_WBUF_VERIFY=y | ||
1051 | # CONFIG_JFFS2_SUMMARY is not set | ||
1052 | # CONFIG_JFFS2_FS_XATTR is not set | ||
1053 | CONFIG_JFFS2_COMPRESSION_OPTIONS=y | ||
1054 | CONFIG_JFFS2_ZLIB=y | ||
1055 | CONFIG_JFFS2_LZO=y | ||
1056 | CONFIG_JFFS2_RTIME=y | ||
1057 | CONFIG_JFFS2_RUBIN=y | ||
1058 | # CONFIG_JFFS2_CMODE_NONE is not set | ||
1059 | CONFIG_JFFS2_CMODE_PRIORITY=y | ||
1060 | # CONFIG_JFFS2_CMODE_SIZE is not set | ||
1061 | # CONFIG_JFFS2_CMODE_FAVOURLZO is not set | ||
1062 | # CONFIG_CRAMFS is not set | ||
1063 | # CONFIG_SQUASHFS is not set | ||
1064 | # CONFIG_VXFS_FS is not set | ||
1065 | # CONFIG_MINIX_FS is not set | ||
1066 | # CONFIG_OMFS_FS is not set | ||
1067 | # CONFIG_HPFS_FS is not set | ||
1068 | # CONFIG_QNX4FS_FS is not set | ||
1069 | # CONFIG_ROMFS_FS is not set | ||
1070 | # CONFIG_SYSV_FS is not set | ||
1071 | # CONFIG_UFS_FS is not set | ||
1072 | # CONFIG_NILFS2_FS is not set | ||
1073 | CONFIG_NETWORK_FILESYSTEMS=y | ||
1074 | CONFIG_NFS_FS=y | ||
1075 | CONFIG_NFS_V3=y | ||
1076 | CONFIG_NFS_V3_ACL=y | ||
1077 | CONFIG_NFS_V4=y | ||
1078 | # CONFIG_NFS_V4_1 is not set | ||
1079 | CONFIG_ROOT_NFS=y | ||
1080 | # CONFIG_NFSD is not set | ||
1081 | CONFIG_LOCKD=y | ||
1082 | CONFIG_LOCKD_V4=y | ||
1083 | CONFIG_NFS_ACL_SUPPORT=y | ||
1084 | CONFIG_NFS_COMMON=y | ||
1085 | CONFIG_SUNRPC=y | ||
1086 | CONFIG_SUNRPC_GSS=y | ||
1087 | CONFIG_RPCSEC_GSS_KRB5=y | ||
1088 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
1089 | # CONFIG_SMB_FS is not set | ||
1090 | # CONFIG_CIFS is not set | ||
1091 | # CONFIG_NCP_FS is not set | ||
1092 | # CONFIG_CODA_FS is not set | ||
1093 | # CONFIG_AFS_FS is not set | ||
1094 | |||
1095 | # | ||
1096 | # Partition Types | ||
1097 | # | ||
1098 | # CONFIG_PARTITION_ADVANCED is not set | ||
1099 | CONFIG_MSDOS_PARTITION=y | ||
1100 | CONFIG_NLS=y | ||
1101 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
1102 | # CONFIG_NLS_CODEPAGE_437 is not set | ||
1103 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
1104 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
1105 | # CONFIG_NLS_CODEPAGE_850 is not set | ||
1106 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
1107 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
1108 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
1109 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
1110 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
1111 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
1112 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
1113 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
1114 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
1115 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
1116 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
1117 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
1118 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
1119 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
1120 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
1121 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
1122 | # CONFIG_NLS_ISO8859_8 is not set | ||
1123 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
1124 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
1125 | # CONFIG_NLS_ASCII is not set | ||
1126 | # CONFIG_NLS_ISO8859_1 is not set | ||
1127 | # CONFIG_NLS_ISO8859_2 is not set | ||
1128 | # CONFIG_NLS_ISO8859_3 is not set | ||
1129 | # CONFIG_NLS_ISO8859_4 is not set | ||
1130 | # CONFIG_NLS_ISO8859_5 is not set | ||
1131 | # CONFIG_NLS_ISO8859_6 is not set | ||
1132 | # CONFIG_NLS_ISO8859_7 is not set | ||
1133 | # CONFIG_NLS_ISO8859_9 is not set | ||
1134 | # CONFIG_NLS_ISO8859_13 is not set | ||
1135 | # CONFIG_NLS_ISO8859_14 is not set | ||
1136 | # CONFIG_NLS_ISO8859_15 is not set | ||
1137 | # CONFIG_NLS_KOI8_R is not set | ||
1138 | # CONFIG_NLS_KOI8_U is not set | ||
1139 | # CONFIG_NLS_UTF8 is not set | ||
1140 | # CONFIG_DLM is not set | ||
1141 | |||
1142 | # | ||
1143 | # Kernel hacking | ||
1144 | # | ||
1145 | CONFIG_PRINTK_TIME=y | ||
1146 | CONFIG_ENABLE_WARN_DEPRECATED=y | ||
1147 | CONFIG_ENABLE_MUST_CHECK=y | ||
1148 | CONFIG_FRAME_WARN=1024 | ||
1149 | CONFIG_MAGIC_SYSRQ=y | ||
1150 | # CONFIG_UNUSED_SYMBOLS is not set | ||
1151 | # CONFIG_DEBUG_FS is not set | ||
1152 | # CONFIG_HEADERS_CHECK is not set | ||
1153 | CONFIG_DEBUG_KERNEL=y | ||
1154 | CONFIG_DEBUG_SHIRQ=y | ||
1155 | CONFIG_DETECT_SOFTLOCKUP=y | ||
1156 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=y | ||
1157 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=1 | ||
1158 | CONFIG_DETECT_HUNG_TASK=y | ||
1159 | # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set | ||
1160 | CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 | ||
1161 | # CONFIG_SCHED_DEBUG is not set | ||
1162 | # CONFIG_SCHEDSTATS is not set | ||
1163 | # CONFIG_TIMER_STATS is not set | ||
1164 | # CONFIG_DEBUG_OBJECTS is not set | ||
1165 | # CONFIG_DEBUG_SLAB is not set | ||
1166 | # CONFIG_DEBUG_KMEMLEAK is not set | ||
1167 | CONFIG_DEBUG_PREEMPT=y | ||
1168 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
1169 | # CONFIG_RT_MUTEX_TESTER is not set | ||
1170 | CONFIG_DEBUG_SPINLOCK=y | ||
1171 | # CONFIG_DEBUG_MUTEXES is not set | ||
1172 | # CONFIG_DEBUG_LOCK_ALLOC is not set | ||
1173 | # CONFIG_PROVE_LOCKING is not set | ||
1174 | # CONFIG_LOCK_STAT is not set | ||
1175 | CONFIG_DEBUG_SPINLOCK_SLEEP=y | ||
1176 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
1177 | # CONFIG_DEBUG_KOBJECT is not set | ||
1178 | CONFIG_DEBUG_BUGVERBOSE=y | ||
1179 | # CONFIG_DEBUG_INFO is not set | ||
1180 | # CONFIG_DEBUG_VM is not set | ||
1181 | # CONFIG_DEBUG_WRITECOUNT is not set | ||
1182 | CONFIG_DEBUG_MEMORY_INIT=y | ||
1183 | # CONFIG_DEBUG_LIST is not set | ||
1184 | # CONFIG_DEBUG_SG is not set | ||
1185 | # CONFIG_DEBUG_NOTIFIERS is not set | ||
1186 | # CONFIG_BOOT_PRINTK_DELAY is not set | ||
1187 | # CONFIG_RCU_TORTURE_TEST is not set | ||
1188 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | ||
1189 | # CONFIG_BACKTRACE_SELF_TEST is not set | ||
1190 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set | ||
1191 | # CONFIG_FAULT_INJECTION is not set | ||
1192 | # CONFIG_LATENCYTOP is not set | ||
1193 | # CONFIG_SYSCTL_SYSCALL_CHECK is not set | ||
1194 | # CONFIG_PAGE_POISONING is not set | ||
1195 | CONFIG_HAVE_FUNCTION_TRACER=y | ||
1196 | CONFIG_TRACING_SUPPORT=y | ||
1197 | # CONFIG_FTRACE is not set | ||
1198 | # CONFIG_SAMPLES is not set | ||
1199 | CONFIG_HAVE_ARCH_KGDB=y | ||
1200 | # CONFIG_KGDB is not set | ||
1201 | # CONFIG_KMEMCHECK is not set | ||
1202 | CONFIG_ARM_UNWIND=y | ||
1203 | CONFIG_DEBUG_USER=y | ||
1204 | # CONFIG_DEBUG_ERRORS is not set | ||
1205 | # CONFIG_DEBUG_STACK_USAGE is not set | ||
1206 | # CONFIG_DEBUG_LL is not set | ||
1207 | |||
1208 | # | ||
1209 | # Security options | ||
1210 | # | ||
1211 | # CONFIG_KEYS is not set | ||
1212 | # CONFIG_SECURITY is not set | ||
1213 | # CONFIG_SECURITYFS is not set | ||
1214 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | ||
1215 | CONFIG_CRYPTO=y | ||
1216 | |||
1217 | # | ||
1218 | # Crypto core or helper | ||
1219 | # | ||
1220 | # CONFIG_CRYPTO_FIPS is not set | ||
1221 | CONFIG_CRYPTO_ALGAPI=y | ||
1222 | CONFIG_CRYPTO_ALGAPI2=y | ||
1223 | CONFIG_CRYPTO_AEAD2=y | ||
1224 | CONFIG_CRYPTO_BLKCIPHER=y | ||
1225 | CONFIG_CRYPTO_BLKCIPHER2=y | ||
1226 | CONFIG_CRYPTO_HASH=y | ||
1227 | CONFIG_CRYPTO_HASH2=y | ||
1228 | CONFIG_CRYPTO_RNG2=y | ||
1229 | CONFIG_CRYPTO_PCOMP=y | ||
1230 | CONFIG_CRYPTO_MANAGER=y | ||
1231 | CONFIG_CRYPTO_MANAGER2=y | ||
1232 | # CONFIG_CRYPTO_GF128MUL is not set | ||
1233 | # CONFIG_CRYPTO_NULL is not set | ||
1234 | CONFIG_CRYPTO_WORKQUEUE=y | ||
1235 | # CONFIG_CRYPTO_CRYPTD is not set | ||
1236 | # CONFIG_CRYPTO_AUTHENC is not set | ||
1237 | # CONFIG_CRYPTO_TEST is not set | ||
1238 | |||
1239 | # | ||
1240 | # Authenticated Encryption with Associated Data | ||
1241 | # | ||
1242 | # CONFIG_CRYPTO_CCM is not set | ||
1243 | # CONFIG_CRYPTO_GCM is not set | ||
1244 | # CONFIG_CRYPTO_SEQIV is not set | ||
1245 | |||
1246 | # | ||
1247 | # Block modes | ||
1248 | # | ||
1249 | CONFIG_CRYPTO_CBC=y | ||
1250 | # CONFIG_CRYPTO_CTR is not set | ||
1251 | # CONFIG_CRYPTO_CTS is not set | ||
1252 | # CONFIG_CRYPTO_ECB is not set | ||
1253 | # CONFIG_CRYPTO_LRW is not set | ||
1254 | # CONFIG_CRYPTO_PCBC is not set | ||
1255 | # CONFIG_CRYPTO_XTS is not set | ||
1256 | |||
1257 | # | ||
1258 | # Hash modes | ||
1259 | # | ||
1260 | # CONFIG_CRYPTO_HMAC is not set | ||
1261 | # CONFIG_CRYPTO_XCBC is not set | ||
1262 | |||
1263 | # | ||
1264 | # Digest | ||
1265 | # | ||
1266 | # CONFIG_CRYPTO_CRC32C is not set | ||
1267 | # CONFIG_CRYPTO_MD4 is not set | ||
1268 | CONFIG_CRYPTO_MD5=y | ||
1269 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
1270 | # CONFIG_CRYPTO_RMD128 is not set | ||
1271 | # CONFIG_CRYPTO_RMD160 is not set | ||
1272 | # CONFIG_CRYPTO_RMD256 is not set | ||
1273 | # CONFIG_CRYPTO_RMD320 is not set | ||
1274 | # CONFIG_CRYPTO_SHA1 is not set | ||
1275 | # CONFIG_CRYPTO_SHA256 is not set | ||
1276 | # CONFIG_CRYPTO_SHA512 is not set | ||
1277 | # CONFIG_CRYPTO_TGR192 is not set | ||
1278 | # CONFIG_CRYPTO_WP512 is not set | ||
1279 | |||
1280 | # | ||
1281 | # Ciphers | ||
1282 | # | ||
1283 | # CONFIG_CRYPTO_AES is not set | ||
1284 | # CONFIG_CRYPTO_ANUBIS is not set | ||
1285 | # CONFIG_CRYPTO_ARC4 is not set | ||
1286 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
1287 | # CONFIG_CRYPTO_CAMELLIA is not set | ||
1288 | # CONFIG_CRYPTO_CAST5 is not set | ||
1289 | # CONFIG_CRYPTO_CAST6 is not set | ||
1290 | CONFIG_CRYPTO_DES=y | ||
1291 | # CONFIG_CRYPTO_FCRYPT is not set | ||
1292 | # CONFIG_CRYPTO_KHAZAD is not set | ||
1293 | # CONFIG_CRYPTO_SALSA20 is not set | ||
1294 | # CONFIG_CRYPTO_SEED is not set | ||
1295 | # CONFIG_CRYPTO_SERPENT is not set | ||
1296 | # CONFIG_CRYPTO_TEA is not set | ||
1297 | # CONFIG_CRYPTO_TWOFISH is not set | ||
1298 | |||
1299 | # | ||
1300 | # Compression | ||
1301 | # | ||
1302 | # CONFIG_CRYPTO_DEFLATE is not set | ||
1303 | # CONFIG_CRYPTO_ZLIB is not set | ||
1304 | # CONFIG_CRYPTO_LZO is not set | ||
1305 | |||
1306 | # | ||
1307 | # Random Number Generation | ||
1308 | # | ||
1309 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | ||
1310 | # CONFIG_CRYPTO_HW is not set | ||
1311 | # CONFIG_BINARY_PRINTF is not set | ||
1312 | |||
1313 | # | ||
1314 | # Library routines | ||
1315 | # | ||
1316 | CONFIG_BITREVERSE=y | ||
1317 | CONFIG_GENERIC_FIND_LAST_BIT=y | ||
1318 | # CONFIG_CRC_CCITT is not set | ||
1319 | # CONFIG_CRC16 is not set | ||
1320 | # CONFIG_CRC_T10DIF is not set | ||
1321 | # CONFIG_CRC_ITU_T is not set | ||
1322 | CONFIG_CRC32=y | ||
1323 | # CONFIG_CRC7 is not set | ||
1324 | # CONFIG_LIBCRC32C is not set | ||
1325 | CONFIG_ZLIB_INFLATE=y | ||
1326 | CONFIG_ZLIB_DEFLATE=y | ||
1327 | CONFIG_LZO_COMPRESS=y | ||
1328 | CONFIG_LZO_DECOMPRESS=y | ||
1329 | CONFIG_HAS_IOMEM=y | ||
1330 | CONFIG_HAS_IOPORT=y | ||
1331 | CONFIG_HAS_DMA=y | ||
1332 | CONFIG_NLATTR=y | ||
diff --git a/arch/arm/configs/xcep_defconfig b/arch/arm/configs/xcep_defconfig new file mode 100644 index 000000000000..33bb7250946b --- /dev/null +++ b/arch/arm/configs/xcep_defconfig | |||
@@ -0,0 +1,1129 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.31-rc6 | ||
4 | # Thu Aug 20 09:02:37 2009 | ||
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_MMU=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_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_INIT_ENV_ARG_LIMIT=32 | ||
34 | CONFIG_LOCALVERSION=".xcep-itech" | ||
35 | # CONFIG_LOCALVERSION_AUTO is not set | ||
36 | CONFIG_SYSVIPC=y | ||
37 | CONFIG_SYSVIPC_SYSCTL=y | ||
38 | # CONFIG_POSIX_MQUEUE is not set | ||
39 | CONFIG_BSD_PROCESS_ACCT=y | ||
40 | # CONFIG_BSD_PROCESS_ACCT_V3 is not set | ||
41 | # CONFIG_TASKSTATS is not set | ||
42 | # CONFIG_AUDIT is not set | ||
43 | |||
44 | # | ||
45 | # RCU Subsystem | ||
46 | # | ||
47 | CONFIG_CLASSIC_RCU=y | ||
48 | # CONFIG_TREE_RCU is not set | ||
49 | # CONFIG_PREEMPT_RCU is not set | ||
50 | # CONFIG_TREE_RCU_TRACE is not set | ||
51 | # CONFIG_PREEMPT_RCU_TRACE is not set | ||
52 | CONFIG_IKCONFIG=y | ||
53 | CONFIG_IKCONFIG_PROC=y | ||
54 | CONFIG_LOG_BUF_SHIFT=16 | ||
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 is not set | ||
61 | CONFIG_BLK_DEV_INITRD=y | ||
62 | CONFIG_INITRAMFS_SOURCE="" | ||
63 | CONFIG_RD_GZIP=y | ||
64 | # CONFIG_RD_BZIP2 is not set | ||
65 | # CONFIG_RD_LZMA is not set | ||
66 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
67 | CONFIG_SYSCTL=y | ||
68 | CONFIG_ANON_INODES=y | ||
69 | CONFIG_EMBEDDED=y | ||
70 | # CONFIG_UID16 is not set | ||
71 | CONFIG_SYSCTL_SYSCALL=y | ||
72 | CONFIG_KALLSYMS=y | ||
73 | # CONFIG_KALLSYMS_ALL is not set | ||
74 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
75 | CONFIG_HOTPLUG=y | ||
76 | CONFIG_PRINTK=y | ||
77 | CONFIG_BUG=y | ||
78 | CONFIG_ELF_CORE=y | ||
79 | CONFIG_BASE_FULL=y | ||
80 | CONFIG_FUTEX=y | ||
81 | CONFIG_EPOLL=y | ||
82 | CONFIG_SIGNALFD=y | ||
83 | CONFIG_TIMERFD=y | ||
84 | CONFIG_EVENTFD=y | ||
85 | # CONFIG_SHMEM is not set | ||
86 | CONFIG_AIO=y | ||
87 | |||
88 | # | ||
89 | # Performance Counters | ||
90 | # | ||
91 | # CONFIG_VM_EVENT_COUNTERS is not set | ||
92 | CONFIG_STRIP_ASM_SYMS=y | ||
93 | # CONFIG_COMPAT_BRK is not set | ||
94 | # CONFIG_SLAB is not set | ||
95 | # CONFIG_SLUB is not set | ||
96 | CONFIG_SLOB=y | ||
97 | # CONFIG_PROFILING is not set | ||
98 | CONFIG_TRACEPOINTS=y | ||
99 | CONFIG_MARKERS=y | ||
100 | CONFIG_HAVE_OPROFILE=y | ||
101 | CONFIG_KPROBES=y | ||
102 | CONFIG_KRETPROBES=y | ||
103 | CONFIG_HAVE_KPROBES=y | ||
104 | CONFIG_HAVE_KRETPROBES=y | ||
105 | CONFIG_HAVE_CLK=y | ||
106 | |||
107 | # | ||
108 | # GCOV-based kernel profiling | ||
109 | # | ||
110 | # CONFIG_SLOW_WORK is not set | ||
111 | CONFIG_HAVE_GENERIC_DMA_COHERENT=y | ||
112 | CONFIG_RT_MUTEXES=y | ||
113 | CONFIG_BASE_SMALL=0 | ||
114 | CONFIG_MODULES=y | ||
115 | # CONFIG_MODULE_FORCE_LOAD is not set | ||
116 | CONFIG_MODULE_UNLOAD=y | ||
117 | # CONFIG_MODULE_FORCE_UNLOAD is not set | ||
118 | CONFIG_MODVERSIONS=y | ||
119 | CONFIG_MODULE_SRCVERSION_ALL=y | ||
120 | # CONFIG_BLOCK is not set | ||
121 | # CONFIG_FREEZER is not set | ||
122 | |||
123 | # | ||
124 | # System Type | ||
125 | # | ||
126 | # CONFIG_ARCH_AAEC2000 is not set | ||
127 | # CONFIG_ARCH_INTEGRATOR is not set | ||
128 | # CONFIG_ARCH_REALVIEW is not set | ||
129 | # CONFIG_ARCH_VERSATILE is not set | ||
130 | # CONFIG_ARCH_AT91 is not set | ||
131 | # CONFIG_ARCH_CLPS711X is not set | ||
132 | # CONFIG_ARCH_GEMINI is not set | ||
133 | # CONFIG_ARCH_EBSA110 is not set | ||
134 | # CONFIG_ARCH_EP93XX is not set | ||
135 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
136 | # CONFIG_ARCH_MXC is not set | ||
137 | # CONFIG_ARCH_STMP3XXX is not set | ||
138 | # CONFIG_ARCH_NETX is not set | ||
139 | # CONFIG_ARCH_H720X is not set | ||
140 | # CONFIG_ARCH_IOP13XX is not set | ||
141 | # CONFIG_ARCH_IOP32X is not set | ||
142 | # CONFIG_ARCH_IOP33X is not set | ||
143 | # CONFIG_ARCH_IXP23XX is not set | ||
144 | # CONFIG_ARCH_IXP2000 is not set | ||
145 | # CONFIG_ARCH_IXP4XX is not set | ||
146 | # CONFIG_ARCH_L7200 is not set | ||
147 | # CONFIG_ARCH_KIRKWOOD is not set | ||
148 | # CONFIG_ARCH_LOKI is not set | ||
149 | # CONFIG_ARCH_MV78XX0 is not set | ||
150 | # CONFIG_ARCH_ORION5X is not set | ||
151 | # CONFIG_ARCH_MMP is not set | ||
152 | # CONFIG_ARCH_KS8695 is not set | ||
153 | # CONFIG_ARCH_NS9XXX is not set | ||
154 | # CONFIG_ARCH_W90X900 is not set | ||
155 | # CONFIG_ARCH_PNX4008 is not set | ||
156 | CONFIG_ARCH_PXA=y | ||
157 | # CONFIG_ARCH_MSM is not set | ||
158 | # CONFIG_ARCH_RPC is not set | ||
159 | # CONFIG_ARCH_SA1100 is not set | ||
160 | # CONFIG_ARCH_S3C2410 is not set | ||
161 | # CONFIG_ARCH_S3C64XX is not set | ||
162 | # CONFIG_ARCH_SHARK is not set | ||
163 | # CONFIG_ARCH_LH7A40X is not set | ||
164 | # CONFIG_ARCH_U300 is not set | ||
165 | # CONFIG_ARCH_DAVINCI is not set | ||
166 | # CONFIG_ARCH_OMAP is not set | ||
167 | |||
168 | # | ||
169 | # Intel PXA2xx/PXA3xx Implementations | ||
170 | # | ||
171 | # CONFIG_ARCH_GUMSTIX is not set | ||
172 | # CONFIG_MACH_INTELMOTE2 is not set | ||
173 | # CONFIG_MACH_STARGATE2 is not set | ||
174 | # CONFIG_ARCH_LUBBOCK is not set | ||
175 | # CONFIG_MACH_LOGICPD_PXA270 is not set | ||
176 | # CONFIG_MACH_MAINSTONE is not set | ||
177 | # CONFIG_MACH_MP900C is not set | ||
178 | # CONFIG_ARCH_PXA_IDP is not set | ||
179 | # CONFIG_PXA_SHARPSL is not set | ||
180 | # CONFIG_ARCH_VIPER is not set | ||
181 | # CONFIG_ARCH_PXA_ESERIES is not set | ||
182 | # CONFIG_TRIZEPS_PXA is not set | ||
183 | # CONFIG_MACH_H5000 is not set | ||
184 | # CONFIG_MACH_EM_X270 is not set | ||
185 | # CONFIG_MACH_EXEDA is not set | ||
186 | # CONFIG_MACH_COLIBRI is not set | ||
187 | # CONFIG_MACH_COLIBRI300 is not set | ||
188 | # CONFIG_MACH_COLIBRI320 is not set | ||
189 | # CONFIG_MACH_ZYLONITE is not set | ||
190 | # CONFIG_MACH_LITTLETON is not set | ||
191 | # CONFIG_MACH_TAVOREVB is not set | ||
192 | # CONFIG_MACH_SAAR is not set | ||
193 | # CONFIG_MACH_ARMCORE is not set | ||
194 | # CONFIG_MACH_CM_X300 is not set | ||
195 | # CONFIG_MACH_H4700 is not set | ||
196 | # CONFIG_MACH_MAGICIAN is not set | ||
197 | # CONFIG_MACH_HIMALAYA is not set | ||
198 | # CONFIG_MACH_MIOA701 is not set | ||
199 | # CONFIG_MACH_PCM027 is not set | ||
200 | # CONFIG_ARCH_PXA_PALM is not set | ||
201 | # CONFIG_MACH_CSB726 is not set | ||
202 | # CONFIG_PXA_EZX is not set | ||
203 | CONFIG_MACH_XCEP=y | ||
204 | CONFIG_PXA25x=y | ||
205 | CONFIG_PXA_SSP=y | ||
206 | CONFIG_PLAT_PXA=y | ||
207 | |||
208 | # | ||
209 | # Processor Type | ||
210 | # | ||
211 | CONFIG_CPU_32=y | ||
212 | CONFIG_CPU_XSCALE=y | ||
213 | CONFIG_CPU_32v5=y | ||
214 | CONFIG_CPU_ABRT_EV5T=y | ||
215 | CONFIG_CPU_PABRT_NOIFAR=y | ||
216 | CONFIG_CPU_CACHE_VIVT=y | ||
217 | CONFIG_CPU_TLB_V4WBI=y | ||
218 | CONFIG_CPU_CP15=y | ||
219 | CONFIG_CPU_CP15_MMU=y | ||
220 | |||
221 | # | ||
222 | # Processor Features | ||
223 | # | ||
224 | CONFIG_ARM_THUMB=y | ||
225 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
226 | CONFIG_IWMMXT=y | ||
227 | CONFIG_XSCALE_PMU=y | ||
228 | CONFIG_COMMON_CLKDEV=y | ||
229 | |||
230 | # | ||
231 | # Bus support | ||
232 | # | ||
233 | # CONFIG_PCI_SYSCALL is not set | ||
234 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
235 | # CONFIG_PCCARD is not set | ||
236 | |||
237 | # | ||
238 | # Kernel Features | ||
239 | # | ||
240 | CONFIG_TICK_ONESHOT=y | ||
241 | CONFIG_NO_HZ=y | ||
242 | CONFIG_HIGH_RES_TIMERS=y | ||
243 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
244 | CONFIG_VMSPLIT_3G=y | ||
245 | # CONFIG_VMSPLIT_2G is not set | ||
246 | # CONFIG_VMSPLIT_1G is not set | ||
247 | CONFIG_PAGE_OFFSET=0xC0000000 | ||
248 | # CONFIG_PREEMPT is not set | ||
249 | CONFIG_HZ=100 | ||
250 | CONFIG_AEABI=y | ||
251 | CONFIG_OABI_COMPAT=y | ||
252 | # CONFIG_ARCH_SPARSEMEM_DEFAULT is not set | ||
253 | # CONFIG_ARCH_SELECT_MEMORY_MODEL is not set | ||
254 | # CONFIG_HIGHMEM is not set | ||
255 | CONFIG_SELECT_MEMORY_MODEL=y | ||
256 | CONFIG_FLATMEM_MANUAL=y | ||
257 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
258 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
259 | CONFIG_FLATMEM=y | ||
260 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
261 | CONFIG_PAGEFLAGS_EXTENDED=y | ||
262 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
263 | # CONFIG_PHYS_ADDR_T_64BIT is not set | ||
264 | CONFIG_ZONE_DMA_FLAG=0 | ||
265 | CONFIG_VIRT_TO_BUS=y | ||
266 | CONFIG_HAVE_MLOCK=y | ||
267 | CONFIG_HAVE_MLOCKED_PAGE_BIT=y | ||
268 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 | ||
269 | CONFIG_ALIGNMENT_TRAP=y | ||
270 | # CONFIG_UACCESS_WITH_MEMCPY is not set | ||
271 | |||
272 | # | ||
273 | # Boot options | ||
274 | # | ||
275 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
276 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
277 | CONFIG_CMDLINE="root=mtd4 rootfstype=jffs2 ro console=ttyS0,115200" | ||
278 | # CONFIG_XIP_KERNEL is not set | ||
279 | # CONFIG_KEXEC is not set | ||
280 | |||
281 | # | ||
282 | # CPU Power Management | ||
283 | # | ||
284 | # CONFIG_CPU_FREQ is not set | ||
285 | # CONFIG_CPU_IDLE is not set | ||
286 | |||
287 | # | ||
288 | # Floating point emulation | ||
289 | # | ||
290 | |||
291 | # | ||
292 | # At least one emulation must be selected | ||
293 | # | ||
294 | CONFIG_FPE_NWFPE=y | ||
295 | # CONFIG_FPE_NWFPE_XP is not set | ||
296 | # CONFIG_FPE_FASTFPE is not set | ||
297 | |||
298 | # | ||
299 | # Userspace binary formats | ||
300 | # | ||
301 | CONFIG_BINFMT_ELF=y | ||
302 | # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set | ||
303 | CONFIG_HAVE_AOUT=y | ||
304 | # CONFIG_BINFMT_AOUT is not set | ||
305 | # CONFIG_BINFMT_MISC is not set | ||
306 | |||
307 | # | ||
308 | # Power management options | ||
309 | # | ||
310 | # CONFIG_PM is not set | ||
311 | CONFIG_ARCH_SUSPEND_POSSIBLE=y | ||
312 | CONFIG_NET=y | ||
313 | |||
314 | # | ||
315 | # Networking options | ||
316 | # | ||
317 | CONFIG_PACKET=m | ||
318 | CONFIG_PACKET_MMAP=y | ||
319 | CONFIG_UNIX=y | ||
320 | CONFIG_XFRM=y | ||
321 | # CONFIG_XFRM_USER is not set | ||
322 | # CONFIG_XFRM_SUB_POLICY is not set | ||
323 | # CONFIG_XFRM_MIGRATE is not set | ||
324 | # CONFIG_XFRM_STATISTICS is not set | ||
325 | CONFIG_NET_KEY=y | ||
326 | # CONFIG_NET_KEY_MIGRATE is not set | ||
327 | CONFIG_INET=y | ||
328 | CONFIG_IP_MULTICAST=y | ||
329 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
330 | CONFIG_IP_FIB_HASH=y | ||
331 | CONFIG_IP_PNP=y | ||
332 | CONFIG_IP_PNP_DHCP=y | ||
333 | CONFIG_IP_PNP_BOOTP=y | ||
334 | # CONFIG_IP_PNP_RARP is not set | ||
335 | # CONFIG_NET_IPIP is not set | ||
336 | # CONFIG_NET_IPGRE is not set | ||
337 | # CONFIG_IP_MROUTE is not set | ||
338 | # CONFIG_ARPD is not set | ||
339 | # CONFIG_SYN_COOKIES is not set | ||
340 | # CONFIG_INET_AH is not set | ||
341 | # CONFIG_INET_ESP is not set | ||
342 | # CONFIG_INET_IPCOMP is not set | ||
343 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
344 | # CONFIG_INET_TUNNEL is not set | ||
345 | # CONFIG_INET_XFRM_MODE_TRANSPORT is not set | ||
346 | # CONFIG_INET_XFRM_MODE_TUNNEL is not set | ||
347 | # CONFIG_INET_XFRM_MODE_BEET is not set | ||
348 | CONFIG_INET_LRO=y | ||
349 | # CONFIG_INET_DIAG is not set | ||
350 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
351 | CONFIG_TCP_CONG_CUBIC=y | ||
352 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
353 | # CONFIG_TCP_MD5SIG is not set | ||
354 | # CONFIG_IPV6 is not set | ||
355 | # CONFIG_NETWORK_SECMARK is not set | ||
356 | # CONFIG_NETFILTER is not set | ||
357 | # CONFIG_IP_DCCP is not set | ||
358 | # CONFIG_IP_SCTP is not set | ||
359 | # CONFIG_TIPC is not set | ||
360 | # CONFIG_ATM is not set | ||
361 | # CONFIG_BRIDGE is not set | ||
362 | # CONFIG_NET_DSA is not set | ||
363 | # CONFIG_VLAN_8021Q is not set | ||
364 | # CONFIG_DECNET is not set | ||
365 | # CONFIG_LLC2 is not set | ||
366 | # CONFIG_IPX is not set | ||
367 | # CONFIG_ATALK is not set | ||
368 | # CONFIG_X25 is not set | ||
369 | # CONFIG_LAPB is not set | ||
370 | # CONFIG_ECONET is not set | ||
371 | # CONFIG_WAN_ROUTER is not set | ||
372 | # CONFIG_PHONET is not set | ||
373 | # CONFIG_IEEE802154 is not set | ||
374 | # CONFIG_NET_SCHED is not set | ||
375 | # CONFIG_DCB is not set | ||
376 | |||
377 | # | ||
378 | # Network testing | ||
379 | # | ||
380 | # CONFIG_NET_PKTGEN is not set | ||
381 | # CONFIG_NET_TCPPROBE is not set | ||
382 | # CONFIG_NET_DROP_MONITOR is not set | ||
383 | # CONFIG_HAMRADIO is not set | ||
384 | # CONFIG_CAN is not set | ||
385 | # CONFIG_IRDA is not set | ||
386 | # CONFIG_BT is not set | ||
387 | # CONFIG_AF_RXRPC is not set | ||
388 | # CONFIG_WIRELESS is not set | ||
389 | # CONFIG_WIMAX is not set | ||
390 | # CONFIG_RFKILL is not set | ||
391 | # CONFIG_NET_9P is not set | ||
392 | |||
393 | # | ||
394 | # Device Drivers | ||
395 | # | ||
396 | |||
397 | # | ||
398 | # Generic Driver Options | ||
399 | # | ||
400 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
401 | CONFIG_STANDALONE=y | ||
402 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set | ||
403 | # CONFIG_FW_LOADER is not set | ||
404 | # CONFIG_DEBUG_DRIVER is not set | ||
405 | # CONFIG_DEBUG_DEVRES is not set | ||
406 | # CONFIG_SYS_HYPERVISOR is not set | ||
407 | # CONFIG_CONNECTOR is not set | ||
408 | CONFIG_MTD=y | ||
409 | # CONFIG_MTD_DEBUG is not set | ||
410 | CONFIG_MTD_CONCAT=y | ||
411 | CONFIG_MTD_PARTITIONS=y | ||
412 | # CONFIG_MTD_TESTS is not set | ||
413 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
414 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
415 | # CONFIG_MTD_AFS_PARTS is not set | ||
416 | # CONFIG_MTD_AR7_PARTS is not set | ||
417 | |||
418 | # | ||
419 | # User Modules And Translation Layers | ||
420 | # | ||
421 | CONFIG_MTD_CHAR=y | ||
422 | # CONFIG_MTD_OOPS is not set | ||
423 | |||
424 | # | ||
425 | # RAM/ROM/Flash chip drivers | ||
426 | # | ||
427 | CONFIG_MTD_CFI=y | ||
428 | # CONFIG_MTD_JEDECPROBE is not set | ||
429 | CONFIG_MTD_GEN_PROBE=y | ||
430 | # CONFIG_MTD_CFI_ADV_OPTIONS is not set | ||
431 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
432 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
433 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
434 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
435 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
436 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
437 | CONFIG_MTD_CFI_I1=y | ||
438 | CONFIG_MTD_CFI_I2=y | ||
439 | # CONFIG_MTD_CFI_I4 is not set | ||
440 | # CONFIG_MTD_CFI_I8 is not set | ||
441 | CONFIG_MTD_CFI_INTELEXT=y | ||
442 | # CONFIG_MTD_CFI_AMDSTD is not set | ||
443 | # CONFIG_MTD_CFI_STAA is not set | ||
444 | CONFIG_MTD_CFI_UTIL=y | ||
445 | # CONFIG_MTD_RAM is not set | ||
446 | # CONFIG_MTD_ROM is not set | ||
447 | # CONFIG_MTD_ABSENT is not set | ||
448 | # CONFIG_MTD_XIP is not set | ||
449 | |||
450 | # | ||
451 | # Mapping drivers for chip access | ||
452 | # | ||
453 | CONFIG_MTD_COMPLEX_MAPPINGS=y | ||
454 | CONFIG_MTD_PHYSMAP=y | ||
455 | # CONFIG_MTD_PHYSMAP_COMPAT is not set | ||
456 | CONFIG_MTD_PXA2XX=y | ||
457 | # CONFIG_MTD_ARM_INTEGRATOR is not set | ||
458 | # CONFIG_MTD_PLATRAM is not set | ||
459 | |||
460 | # | ||
461 | # Self-contained MTD device drivers | ||
462 | # | ||
463 | # CONFIG_MTD_SLRAM is not set | ||
464 | # CONFIG_MTD_PHRAM is not set | ||
465 | # CONFIG_MTD_MTDRAM is not set | ||
466 | |||
467 | # | ||
468 | # Disk-On-Chip Device Drivers | ||
469 | # | ||
470 | # CONFIG_MTD_DOC2000 is not set | ||
471 | # CONFIG_MTD_DOC2001 is not set | ||
472 | # CONFIG_MTD_DOC2001PLUS is not set | ||
473 | # CONFIG_MTD_NAND is not set | ||
474 | # CONFIG_MTD_ONENAND is not set | ||
475 | |||
476 | # | ||
477 | # LPDDR flash memory drivers | ||
478 | # | ||
479 | # CONFIG_MTD_LPDDR is not set | ||
480 | |||
481 | # | ||
482 | # UBI - Unsorted block images | ||
483 | # | ||
484 | # CONFIG_MTD_UBI is not set | ||
485 | # CONFIG_PARPORT is not set | ||
486 | # CONFIG_MISC_DEVICES is not set | ||
487 | CONFIG_HAVE_IDE=y | ||
488 | |||
489 | # | ||
490 | # SCSI device support | ||
491 | # | ||
492 | # CONFIG_SCSI_DMA is not set | ||
493 | # CONFIG_SCSI_NETLINK is not set | ||
494 | CONFIG_NETDEVICES=y | ||
495 | # CONFIG_DUMMY is not set | ||
496 | # CONFIG_BONDING is not set | ||
497 | # CONFIG_MACVLAN is not set | ||
498 | # CONFIG_EQUALIZER is not set | ||
499 | # CONFIG_TUN is not set | ||
500 | # CONFIG_VETH is not set | ||
501 | # CONFIG_PHYLIB is not set | ||
502 | CONFIG_NET_ETHERNET=y | ||
503 | CONFIG_MII=y | ||
504 | # CONFIG_AX88796 is not set | ||
505 | CONFIG_SMC91X=y | ||
506 | # CONFIG_DM9000 is not set | ||
507 | # CONFIG_ETHOC is not set | ||
508 | # CONFIG_SMC911X is not set | ||
509 | # CONFIG_SMSC911X is not set | ||
510 | # CONFIG_DNET is not set | ||
511 | # CONFIG_IBM_NEW_EMAC_ZMII is not set | ||
512 | # CONFIG_IBM_NEW_EMAC_RGMII is not set | ||
513 | # CONFIG_IBM_NEW_EMAC_TAH is not set | ||
514 | # CONFIG_IBM_NEW_EMAC_EMAC4 is not set | ||
515 | # CONFIG_IBM_NEW_EMAC_NO_FLOW_CTRL is not set | ||
516 | # CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set | ||
517 | # CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set | ||
518 | # CONFIG_B44 is not set | ||
519 | # CONFIG_KS8842 is not set | ||
520 | # CONFIG_NETDEV_1000 is not set | ||
521 | # CONFIG_NETDEV_10000 is not set | ||
522 | |||
523 | # | ||
524 | # Wireless LAN | ||
525 | # | ||
526 | # CONFIG_WLAN_PRE80211 is not set | ||
527 | # CONFIG_WLAN_80211 is not set | ||
528 | |||
529 | # | ||
530 | # Enable WiMAX (Networking options) to see the WiMAX drivers | ||
531 | # | ||
532 | # CONFIG_WAN is not set | ||
533 | # CONFIG_PPP is not set | ||
534 | # CONFIG_SLIP is not set | ||
535 | # CONFIG_NETCONSOLE is not set | ||
536 | # CONFIG_NETPOLL is not set | ||
537 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
538 | # CONFIG_ISDN is not set | ||
539 | |||
540 | # | ||
541 | # Input device support | ||
542 | # | ||
543 | CONFIG_INPUT=y | ||
544 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
545 | # CONFIG_INPUT_POLLDEV is not set | ||
546 | |||
547 | # | ||
548 | # Userland interfaces | ||
549 | # | ||
550 | # CONFIG_INPUT_MOUSEDEV is not set | ||
551 | # CONFIG_INPUT_JOYDEV is not set | ||
552 | # CONFIG_INPUT_EVDEV is not set | ||
553 | # CONFIG_INPUT_EVBUG is not set | ||
554 | |||
555 | # | ||
556 | # Input Device Drivers | ||
557 | # | ||
558 | # CONFIG_INPUT_KEYBOARD is not set | ||
559 | # CONFIG_INPUT_MOUSE is not set | ||
560 | # CONFIG_INPUT_JOYSTICK is not set | ||
561 | # CONFIG_INPUT_TABLET is not set | ||
562 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
563 | # CONFIG_INPUT_MISC is not set | ||
564 | |||
565 | # | ||
566 | # Hardware I/O ports | ||
567 | # | ||
568 | # CONFIG_SERIO is not set | ||
569 | # CONFIG_GAMEPORT is not set | ||
570 | |||
571 | # | ||
572 | # Character devices | ||
573 | # | ||
574 | CONFIG_VT=y | ||
575 | CONFIG_CONSOLE_TRANSLATIONS=y | ||
576 | CONFIG_VT_CONSOLE=y | ||
577 | CONFIG_HW_CONSOLE=y | ||
578 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
579 | # CONFIG_DEVKMEM is not set | ||
580 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
581 | |||
582 | # | ||
583 | # Serial drivers | ||
584 | # | ||
585 | # CONFIG_SERIAL_8250 is not set | ||
586 | |||
587 | # | ||
588 | # Non-8250 serial port support | ||
589 | # | ||
590 | CONFIG_SERIAL_PXA=y | ||
591 | CONFIG_SERIAL_PXA_CONSOLE=y | ||
592 | CONFIG_SERIAL_CORE=y | ||
593 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
594 | CONFIG_UNIX98_PTYS=y | ||
595 | # CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set | ||
596 | # CONFIG_LEGACY_PTYS is not set | ||
597 | # CONFIG_IPMI_HANDLER is not set | ||
598 | # CONFIG_HW_RANDOM is not set | ||
599 | # CONFIG_R3964 is not set | ||
600 | # CONFIG_TCG_TPM is not set | ||
601 | CONFIG_I2C=m | ||
602 | CONFIG_I2C_BOARDINFO=y | ||
603 | CONFIG_I2C_CHARDEV=m | ||
604 | CONFIG_I2C_HELPER_AUTO=y | ||
605 | |||
606 | # | ||
607 | # I2C Hardware Bus support | ||
608 | # | ||
609 | |||
610 | # | ||
611 | # I2C system bus drivers (mostly embedded / system-on-chip) | ||
612 | # | ||
613 | # CONFIG_I2C_DESIGNWARE is not set | ||
614 | # CONFIG_I2C_GPIO is not set | ||
615 | # CONFIG_I2C_OCORES is not set | ||
616 | CONFIG_I2C_PXA=m | ||
617 | # CONFIG_I2C_PXA_SLAVE is not set | ||
618 | # CONFIG_I2C_SIMTEC is not set | ||
619 | |||
620 | # | ||
621 | # External I2C/SMBus adapter drivers | ||
622 | # | ||
623 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
624 | # CONFIG_I2C_TAOS_EVM is not set | ||
625 | |||
626 | # | ||
627 | # Other I2C/SMBus bus drivers | ||
628 | # | ||
629 | # CONFIG_I2C_PCA_PLATFORM is not set | ||
630 | # CONFIG_I2C_STUB is not set | ||
631 | |||
632 | # | ||
633 | # Miscellaneous I2C Chip support | ||
634 | # | ||
635 | # CONFIG_DS1682 is not set | ||
636 | # CONFIG_SENSORS_PCF8574 is not set | ||
637 | # CONFIG_PCF8575 is not set | ||
638 | # CONFIG_SENSORS_PCA9539 is not set | ||
639 | # CONFIG_SENSORS_TSL2550 is not set | ||
640 | # CONFIG_I2C_DEBUG_CORE is not set | ||
641 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
642 | # CONFIG_I2C_DEBUG_BUS is not set | ||
643 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
644 | # CONFIG_SPI is not set | ||
645 | CONFIG_ARCH_REQUIRE_GPIOLIB=y | ||
646 | CONFIG_GPIOLIB=y | ||
647 | # CONFIG_DEBUG_GPIO is not set | ||
648 | # CONFIG_GPIO_SYSFS is not set | ||
649 | |||
650 | # | ||
651 | # Memory mapped GPIO expanders: | ||
652 | # | ||
653 | |||
654 | # | ||
655 | # I2C GPIO expanders: | ||
656 | # | ||
657 | # CONFIG_GPIO_MAX732X is not set | ||
658 | # CONFIG_GPIO_PCA953X is not set | ||
659 | # CONFIG_GPIO_PCF857X is not set | ||
660 | |||
661 | # | ||
662 | # PCI GPIO expanders: | ||
663 | # | ||
664 | |||
665 | # | ||
666 | # SPI GPIO expanders: | ||
667 | # | ||
668 | # CONFIG_W1 is not set | ||
669 | # CONFIG_POWER_SUPPLY is not set | ||
670 | CONFIG_HWMON=m | ||
671 | # CONFIG_HWMON_VID is not set | ||
672 | # CONFIG_SENSORS_AD7414 is not set | ||
673 | # CONFIG_SENSORS_AD7418 is not set | ||
674 | CONFIG_SENSORS_ADM1021=m | ||
675 | # CONFIG_SENSORS_ADM1025 is not set | ||
676 | # CONFIG_SENSORS_ADM1026 is not set | ||
677 | # CONFIG_SENSORS_ADM1029 is not set | ||
678 | # CONFIG_SENSORS_ADM1031 is not set | ||
679 | # CONFIG_SENSORS_ADM9240 is not set | ||
680 | # CONFIG_SENSORS_ADT7462 is not set | ||
681 | # CONFIG_SENSORS_ADT7470 is not set | ||
682 | # CONFIG_SENSORS_ADT7473 is not set | ||
683 | # CONFIG_SENSORS_ADT7475 is not set | ||
684 | # CONFIG_SENSORS_ATXP1 is not set | ||
685 | # CONFIG_SENSORS_DS1621 is not set | ||
686 | # CONFIG_SENSORS_F71805F is not set | ||
687 | # CONFIG_SENSORS_F71882FG is not set | ||
688 | # CONFIG_SENSORS_F75375S is not set | ||
689 | # CONFIG_SENSORS_G760A is not set | ||
690 | # CONFIG_SENSORS_GL518SM is not set | ||
691 | # CONFIG_SENSORS_GL520SM is not set | ||
692 | # CONFIG_SENSORS_IT87 is not set | ||
693 | # CONFIG_SENSORS_LM63 is not set | ||
694 | # CONFIG_SENSORS_LM75 is not set | ||
695 | # CONFIG_SENSORS_LM77 is not set | ||
696 | # CONFIG_SENSORS_LM78 is not set | ||
697 | # CONFIG_SENSORS_LM80 is not set | ||
698 | # CONFIG_SENSORS_LM83 is not set | ||
699 | # CONFIG_SENSORS_LM85 is not set | ||
700 | # CONFIG_SENSORS_LM87 is not set | ||
701 | # CONFIG_SENSORS_LM90 is not set | ||
702 | # CONFIG_SENSORS_LM92 is not set | ||
703 | # CONFIG_SENSORS_LM93 is not set | ||
704 | # CONFIG_SENSORS_LTC4215 is not set | ||
705 | # CONFIG_SENSORS_LTC4245 is not set | ||
706 | # CONFIG_SENSORS_LM95241 is not set | ||
707 | # CONFIG_SENSORS_MAX1619 is not set | ||
708 | CONFIG_SENSORS_MAX6650=m | ||
709 | # CONFIG_SENSORS_PC87360 is not set | ||
710 | # CONFIG_SENSORS_PC87427 is not set | ||
711 | # CONFIG_SENSORS_PCF8591 is not set | ||
712 | # CONFIG_SENSORS_SHT15 is not set | ||
713 | # CONFIG_SENSORS_DME1737 is not set | ||
714 | # CONFIG_SENSORS_SMSC47M1 is not set | ||
715 | # CONFIG_SENSORS_SMSC47M192 is not set | ||
716 | # CONFIG_SENSORS_SMSC47B397 is not set | ||
717 | # CONFIG_SENSORS_ADS7828 is not set | ||
718 | # CONFIG_SENSORS_THMC50 is not set | ||
719 | # CONFIG_SENSORS_TMP401 is not set | ||
720 | # CONFIG_SENSORS_VT1211 is not set | ||
721 | # CONFIG_SENSORS_W83781D is not set | ||
722 | # CONFIG_SENSORS_W83791D is not set | ||
723 | # CONFIG_SENSORS_W83792D is not set | ||
724 | # CONFIG_SENSORS_W83793 is not set | ||
725 | # CONFIG_SENSORS_W83L785TS is not set | ||
726 | # CONFIG_SENSORS_W83L786NG is not set | ||
727 | # CONFIG_SENSORS_W83627HF is not set | ||
728 | # CONFIG_SENSORS_W83627EHF is not set | ||
729 | # CONFIG_HWMON_DEBUG_CHIP is not set | ||
730 | # CONFIG_THERMAL is not set | ||
731 | # CONFIG_WATCHDOG is not set | ||
732 | CONFIG_SSB_POSSIBLE=y | ||
733 | |||
734 | # | ||
735 | # Sonics Silicon Backplane | ||
736 | # | ||
737 | # CONFIG_SSB is not set | ||
738 | |||
739 | # | ||
740 | # Multifunction device drivers | ||
741 | # | ||
742 | # CONFIG_MFD_CORE is not set | ||
743 | # CONFIG_MFD_SM501 is not set | ||
744 | # CONFIG_MFD_ASIC3 is not set | ||
745 | # CONFIG_HTC_EGPIO is not set | ||
746 | # CONFIG_HTC_PASIC3 is not set | ||
747 | # CONFIG_TPS65010 is not set | ||
748 | # CONFIG_MFD_TMIO is not set | ||
749 | # CONFIG_MFD_T7L66XB is not set | ||
750 | # CONFIG_MFD_TC6387XB is not set | ||
751 | # CONFIG_MFD_TC6393XB is not set | ||
752 | # CONFIG_MFD_WM8400 is not set | ||
753 | # CONFIG_MFD_WM8350_I2C is not set | ||
754 | # CONFIG_MFD_PCF50633 is not set | ||
755 | # CONFIG_AB3100_CORE is not set | ||
756 | # CONFIG_MEDIA_SUPPORT is not set | ||
757 | |||
758 | # | ||
759 | # Graphics support | ||
760 | # | ||
761 | # CONFIG_VGASTATE is not set | ||
762 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
763 | # CONFIG_FB is not set | ||
764 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
765 | |||
766 | # | ||
767 | # Display device support | ||
768 | # | ||
769 | # CONFIG_DISPLAY_SUPPORT is not set | ||
770 | |||
771 | # | ||
772 | # Console display driver support | ||
773 | # | ||
774 | # CONFIG_VGA_CONSOLE is not set | ||
775 | CONFIG_DUMMY_CONSOLE=y | ||
776 | # CONFIG_SOUND is not set | ||
777 | # CONFIG_HID_SUPPORT is not set | ||
778 | # CONFIG_USB_SUPPORT is not set | ||
779 | # CONFIG_MMC is not set | ||
780 | # CONFIG_MEMSTICK is not set | ||
781 | # CONFIG_ACCESSIBILITY is not set | ||
782 | # CONFIG_NEW_LEDS is not set | ||
783 | CONFIG_RTC_LIB=y | ||
784 | CONFIG_RTC_CLASS=m | ||
785 | |||
786 | # | ||
787 | # RTC interfaces | ||
788 | # | ||
789 | CONFIG_RTC_INTF_SYSFS=y | ||
790 | CONFIG_RTC_INTF_PROC=y | ||
791 | CONFIG_RTC_INTF_DEV=y | ||
792 | # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set | ||
793 | # CONFIG_RTC_DRV_TEST is not set | ||
794 | |||
795 | # | ||
796 | # I2C RTC drivers | ||
797 | # | ||
798 | # CONFIG_RTC_DRV_DS1307 is not set | ||
799 | # CONFIG_RTC_DRV_DS1374 is not set | ||
800 | # CONFIG_RTC_DRV_DS1672 is not set | ||
801 | # CONFIG_RTC_DRV_MAX6900 is not set | ||
802 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
803 | # CONFIG_RTC_DRV_ISL1208 is not set | ||
804 | # CONFIG_RTC_DRV_X1205 is not set | ||
805 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
806 | # CONFIG_RTC_DRV_PCF8583 is not set | ||
807 | # CONFIG_RTC_DRV_M41T80 is not set | ||
808 | # CONFIG_RTC_DRV_S35390A is not set | ||
809 | # CONFIG_RTC_DRV_FM3130 is not set | ||
810 | # CONFIG_RTC_DRV_RX8581 is not set | ||
811 | # CONFIG_RTC_DRV_RX8025 is not set | ||
812 | |||
813 | # | ||
814 | # SPI RTC drivers | ||
815 | # | ||
816 | |||
817 | # | ||
818 | # Platform RTC drivers | ||
819 | # | ||
820 | # CONFIG_RTC_DRV_CMOS is not set | ||
821 | # CONFIG_RTC_DRV_DS1286 is not set | ||
822 | # CONFIG_RTC_DRV_DS1511 is not set | ||
823 | # CONFIG_RTC_DRV_DS1553 is not set | ||
824 | # CONFIG_RTC_DRV_DS1742 is not set | ||
825 | # CONFIG_RTC_DRV_STK17TA8 is not set | ||
826 | # CONFIG_RTC_DRV_M48T86 is not set | ||
827 | # CONFIG_RTC_DRV_M48T35 is not set | ||
828 | # CONFIG_RTC_DRV_M48T59 is not set | ||
829 | # CONFIG_RTC_DRV_BQ4802 is not set | ||
830 | # CONFIG_RTC_DRV_V3020 is not set | ||
831 | |||
832 | # | ||
833 | # on-CPU RTC drivers | ||
834 | # | ||
835 | CONFIG_RTC_DRV_SA1100=m | ||
836 | # CONFIG_RTC_DRV_PXA is not set | ||
837 | CONFIG_DMADEVICES=y | ||
838 | |||
839 | # | ||
840 | # DMA Devices | ||
841 | # | ||
842 | # CONFIG_AUXDISPLAY is not set | ||
843 | # CONFIG_REGULATOR is not set | ||
844 | # CONFIG_UIO is not set | ||
845 | # CONFIG_STAGING is not set | ||
846 | |||
847 | # | ||
848 | # File systems | ||
849 | # | ||
850 | CONFIG_FILE_LOCKING=y | ||
851 | # CONFIG_FSNOTIFY is not set | ||
852 | # CONFIG_DNOTIFY is not set | ||
853 | # CONFIG_INOTIFY is not set | ||
854 | # CONFIG_INOTIFY_USER is not set | ||
855 | # CONFIG_QUOTA is not set | ||
856 | # CONFIG_AUTOFS_FS is not set | ||
857 | # CONFIG_AUTOFS4_FS is not set | ||
858 | # CONFIG_FUSE_FS is not set | ||
859 | |||
860 | # | ||
861 | # Caches | ||
862 | # | ||
863 | # CONFIG_FSCACHE is not set | ||
864 | |||
865 | # | ||
866 | # Pseudo filesystems | ||
867 | # | ||
868 | CONFIG_PROC_FS=y | ||
869 | CONFIG_PROC_SYSCTL=y | ||
870 | CONFIG_PROC_PAGE_MONITOR=y | ||
871 | CONFIG_SYSFS=y | ||
872 | CONFIG_TMPFS=y | ||
873 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
874 | # CONFIG_HUGETLB_PAGE is not set | ||
875 | # CONFIG_CONFIGFS_FS is not set | ||
876 | CONFIG_MISC_FILESYSTEMS=y | ||
877 | CONFIG_JFFS2_FS=y | ||
878 | CONFIG_JFFS2_FS_DEBUG=0 | ||
879 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
880 | CONFIG_JFFS2_FS_WBUF_VERIFY=y | ||
881 | # CONFIG_JFFS2_SUMMARY is not set | ||
882 | # CONFIG_JFFS2_FS_XATTR is not set | ||
883 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | ||
884 | CONFIG_JFFS2_ZLIB=y | ||
885 | # CONFIG_JFFS2_LZO is not set | ||
886 | CONFIG_JFFS2_RTIME=y | ||
887 | # CONFIG_JFFS2_RUBIN is not set | ||
888 | # CONFIG_ROMFS_FS is not set | ||
889 | CONFIG_NETWORK_FILESYSTEMS=y | ||
890 | CONFIG_NFS_FS=m | ||
891 | CONFIG_NFS_V3=y | ||
892 | # CONFIG_NFS_V3_ACL is not set | ||
893 | # CONFIG_NFS_V4 is not set | ||
894 | # CONFIG_NFSD is not set | ||
895 | CONFIG_LOCKD=m | ||
896 | CONFIG_LOCKD_V4=y | ||
897 | CONFIG_NFS_COMMON=y | ||
898 | CONFIG_SUNRPC=m | ||
899 | # CONFIG_RPCSEC_GSS_KRB5 is not set | ||
900 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
901 | # CONFIG_SMB_FS is not set | ||
902 | # CONFIG_CIFS is not set | ||
903 | # CONFIG_NCP_FS is not set | ||
904 | # CONFIG_CODA_FS is not set | ||
905 | # CONFIG_AFS_FS is not set | ||
906 | CONFIG_NLS=m | ||
907 | CONFIG_NLS_DEFAULT="utf8" | ||
908 | # CONFIG_NLS_CODEPAGE_437 is not set | ||
909 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
910 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
911 | # CONFIG_NLS_CODEPAGE_850 is not set | ||
912 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
913 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
914 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
915 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
916 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
917 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
918 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
919 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
920 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
921 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
922 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
923 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
924 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
925 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
926 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
927 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
928 | # CONFIG_NLS_ISO8859_8 is not set | ||
929 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
930 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
931 | # CONFIG_NLS_ASCII is not set | ||
932 | # CONFIG_NLS_ISO8859_1 is not set | ||
933 | # CONFIG_NLS_ISO8859_2 is not set | ||
934 | # CONFIG_NLS_ISO8859_3 is not set | ||
935 | # CONFIG_NLS_ISO8859_4 is not set | ||
936 | # CONFIG_NLS_ISO8859_5 is not set | ||
937 | # CONFIG_NLS_ISO8859_6 is not set | ||
938 | # CONFIG_NLS_ISO8859_7 is not set | ||
939 | # CONFIG_NLS_ISO8859_9 is not set | ||
940 | # CONFIG_NLS_ISO8859_13 is not set | ||
941 | # CONFIG_NLS_ISO8859_14 is not set | ||
942 | # CONFIG_NLS_ISO8859_15 is not set | ||
943 | # CONFIG_NLS_KOI8_R is not set | ||
944 | # CONFIG_NLS_KOI8_U is not set | ||
945 | CONFIG_NLS_UTF8=m | ||
946 | # CONFIG_DLM is not set | ||
947 | |||
948 | # | ||
949 | # Kernel hacking | ||
950 | # | ||
951 | CONFIG_PRINTK_TIME=y | ||
952 | CONFIG_ENABLE_WARN_DEPRECATED=y | ||
953 | CONFIG_ENABLE_MUST_CHECK=y | ||
954 | CONFIG_FRAME_WARN=1024 | ||
955 | # CONFIG_MAGIC_SYSRQ is not set | ||
956 | # CONFIG_UNUSED_SYMBOLS is not set | ||
957 | # CONFIG_DEBUG_FS is not set | ||
958 | # CONFIG_HEADERS_CHECK is not set | ||
959 | CONFIG_DEBUG_KERNEL=y | ||
960 | # CONFIG_DEBUG_SHIRQ is not set | ||
961 | CONFIG_DETECT_SOFTLOCKUP=y | ||
962 | # CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set | ||
963 | CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 | ||
964 | CONFIG_DETECT_HUNG_TASK=y | ||
965 | # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set | ||
966 | CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 | ||
967 | # CONFIG_SCHED_DEBUG is not set | ||
968 | # CONFIG_SCHEDSTATS is not set | ||
969 | # CONFIG_TIMER_STATS is not set | ||
970 | # CONFIG_DEBUG_OBJECTS is not set | ||
971 | # CONFIG_DEBUG_KMEMLEAK is not set | ||
972 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
973 | # CONFIG_RT_MUTEX_TESTER is not set | ||
974 | # CONFIG_DEBUG_SPINLOCK is not set | ||
975 | # CONFIG_DEBUG_MUTEXES is not set | ||
976 | # CONFIG_DEBUG_LOCK_ALLOC is not set | ||
977 | # CONFIG_PROVE_LOCKING is not set | ||
978 | # CONFIG_LOCK_STAT is not set | ||
979 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
980 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
981 | # CONFIG_DEBUG_KOBJECT is not set | ||
982 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
983 | # CONFIG_DEBUG_INFO is not set | ||
984 | # CONFIG_DEBUG_VM is not set | ||
985 | # CONFIG_DEBUG_WRITECOUNT is not set | ||
986 | # CONFIG_DEBUG_MEMORY_INIT is not set | ||
987 | # CONFIG_DEBUG_LIST is not set | ||
988 | # CONFIG_DEBUG_SG is not set | ||
989 | # CONFIG_DEBUG_NOTIFIERS is not set | ||
990 | CONFIG_FRAME_POINTER=y | ||
991 | # CONFIG_BOOT_PRINTK_DELAY is not set | ||
992 | # CONFIG_RCU_TORTURE_TEST is not set | ||
993 | # CONFIG_RCU_CPU_STALL_DETECTOR is not set | ||
994 | # CONFIG_KPROBES_SANITY_TEST is not set | ||
995 | # CONFIG_BACKTRACE_SELF_TEST is not set | ||
996 | # CONFIG_FAULT_INJECTION is not set | ||
997 | # CONFIG_LATENCYTOP is not set | ||
998 | CONFIG_SYSCTL_SYSCALL_CHECK=y | ||
999 | # CONFIG_PAGE_POISONING is not set | ||
1000 | CONFIG_HAVE_FUNCTION_TRACER=y | ||
1001 | CONFIG_TRACING_SUPPORT=y | ||
1002 | # CONFIG_FTRACE is not set | ||
1003 | # CONFIG_SAMPLES is not set | ||
1004 | CONFIG_HAVE_ARCH_KGDB=y | ||
1005 | # CONFIG_KGDB is not set | ||
1006 | # CONFIG_ARM_UNWIND is not set | ||
1007 | # CONFIG_DEBUG_USER is not set | ||
1008 | # CONFIG_DEBUG_ERRORS is not set | ||
1009 | # CONFIG_DEBUG_STACK_USAGE is not set | ||
1010 | # CONFIG_DEBUG_LL is not set | ||
1011 | |||
1012 | # | ||
1013 | # Security options | ||
1014 | # | ||
1015 | # CONFIG_KEYS is not set | ||
1016 | # CONFIG_SECURITY is not set | ||
1017 | # CONFIG_SECURITYFS is not set | ||
1018 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | ||
1019 | CONFIG_CRYPTO=y | ||
1020 | |||
1021 | # | ||
1022 | # Crypto core or helper | ||
1023 | # | ||
1024 | # CONFIG_CRYPTO_FIPS is not set | ||
1025 | CONFIG_CRYPTO_ALGAPI=m | ||
1026 | CONFIG_CRYPTO_ALGAPI2=m | ||
1027 | CONFIG_CRYPTO_HASH=m | ||
1028 | CONFIG_CRYPTO_HASH2=m | ||
1029 | # CONFIG_CRYPTO_MANAGER is not set | ||
1030 | # CONFIG_CRYPTO_MANAGER2 is not set | ||
1031 | # CONFIG_CRYPTO_GF128MUL is not set | ||
1032 | # CONFIG_CRYPTO_NULL is not set | ||
1033 | # CONFIG_CRYPTO_CRYPTD is not set | ||
1034 | # CONFIG_CRYPTO_AUTHENC is not set | ||
1035 | # CONFIG_CRYPTO_TEST is not set | ||
1036 | |||
1037 | # | ||
1038 | # Authenticated Encryption with Associated Data | ||
1039 | # | ||
1040 | # CONFIG_CRYPTO_CCM is not set | ||
1041 | # CONFIG_CRYPTO_GCM is not set | ||
1042 | # CONFIG_CRYPTO_SEQIV is not set | ||
1043 | |||
1044 | # | ||
1045 | # Block modes | ||
1046 | # | ||
1047 | # CONFIG_CRYPTO_CBC is not set | ||
1048 | # CONFIG_CRYPTO_CTR is not set | ||
1049 | # CONFIG_CRYPTO_CTS is not set | ||
1050 | # CONFIG_CRYPTO_ECB is not set | ||
1051 | # CONFIG_CRYPTO_LRW is not set | ||
1052 | # CONFIG_CRYPTO_PCBC is not set | ||
1053 | # CONFIG_CRYPTO_XTS is not set | ||
1054 | |||
1055 | # | ||
1056 | # Hash modes | ||
1057 | # | ||
1058 | # CONFIG_CRYPTO_HMAC is not set | ||
1059 | # CONFIG_CRYPTO_XCBC is not set | ||
1060 | |||
1061 | # | ||
1062 | # Digest | ||
1063 | # | ||
1064 | CONFIG_CRYPTO_CRC32C=m | ||
1065 | # CONFIG_CRYPTO_MD4 is not set | ||
1066 | # CONFIG_CRYPTO_MD5 is not set | ||
1067 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
1068 | # CONFIG_CRYPTO_RMD128 is not set | ||
1069 | # CONFIG_CRYPTO_RMD160 is not set | ||
1070 | # CONFIG_CRYPTO_RMD256 is not set | ||
1071 | # CONFIG_CRYPTO_RMD320 is not set | ||
1072 | # CONFIG_CRYPTO_SHA1 is not set | ||
1073 | # CONFIG_CRYPTO_SHA256 is not set | ||
1074 | # CONFIG_CRYPTO_SHA512 is not set | ||
1075 | # CONFIG_CRYPTO_TGR192 is not set | ||
1076 | # CONFIG_CRYPTO_WP512 is not set | ||
1077 | |||
1078 | # | ||
1079 | # Ciphers | ||
1080 | # | ||
1081 | # CONFIG_CRYPTO_AES is not set | ||
1082 | # CONFIG_CRYPTO_ANUBIS is not set | ||
1083 | # CONFIG_CRYPTO_ARC4 is not set | ||
1084 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
1085 | # CONFIG_CRYPTO_CAMELLIA is not set | ||
1086 | # CONFIG_CRYPTO_CAST5 is not set | ||
1087 | # CONFIG_CRYPTO_CAST6 is not set | ||
1088 | # CONFIG_CRYPTO_DES is not set | ||
1089 | # CONFIG_CRYPTO_FCRYPT is not set | ||
1090 | # CONFIG_CRYPTO_KHAZAD is not set | ||
1091 | # CONFIG_CRYPTO_SALSA20 is not set | ||
1092 | # CONFIG_CRYPTO_SEED is not set | ||
1093 | # CONFIG_CRYPTO_SERPENT is not set | ||
1094 | # CONFIG_CRYPTO_TEA is not set | ||
1095 | # CONFIG_CRYPTO_TWOFISH is not set | ||
1096 | |||
1097 | # | ||
1098 | # Compression | ||
1099 | # | ||
1100 | # CONFIG_CRYPTO_DEFLATE is not set | ||
1101 | # CONFIG_CRYPTO_ZLIB is not set | ||
1102 | # CONFIG_CRYPTO_LZO is not set | ||
1103 | |||
1104 | # | ||
1105 | # Random Number Generation | ||
1106 | # | ||
1107 | # CONFIG_CRYPTO_ANSI_CPRNG is not set | ||
1108 | # CONFIG_CRYPTO_HW is not set | ||
1109 | # CONFIG_BINARY_PRINTF is not set | ||
1110 | |||
1111 | # | ||
1112 | # Library routines | ||
1113 | # | ||
1114 | CONFIG_BITREVERSE=y | ||
1115 | CONFIG_GENERIC_FIND_LAST_BIT=y | ||
1116 | # CONFIG_CRC_CCITT is not set | ||
1117 | # CONFIG_CRC16 is not set | ||
1118 | # CONFIG_CRC_T10DIF is not set | ||
1119 | # CONFIG_CRC_ITU_T is not set | ||
1120 | CONFIG_CRC32=y | ||
1121 | # CONFIG_CRC7 is not set | ||
1122 | CONFIG_LIBCRC32C=m | ||
1123 | CONFIG_ZLIB_INFLATE=y | ||
1124 | CONFIG_ZLIB_DEFLATE=y | ||
1125 | CONFIG_DECOMPRESS_GZIP=y | ||
1126 | CONFIG_HAS_IOMEM=y | ||
1127 | CONFIG_HAS_IOPORT=y | ||
1128 | CONFIG_HAS_DMA=y | ||
1129 | CONFIG_NLATTR=y | ||
diff --git a/arch/arm/configs/zylonite_defconfig b/arch/arm/configs/zylonite_defconfig deleted file mode 100644 index 7949d04a3602..000000000000 --- a/arch/arm/configs/zylonite_defconfig +++ /dev/null | |||
@@ -1,736 +0,0 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.23 | ||
4 | # Tue Oct 23 13:33:20 2007 | ||
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_MMU=y | ||
12 | # CONFIG_NO_IOPORT is not set | ||
13 | CONFIG_GENERIC_HARDIRQS=y | ||
14 | CONFIG_STACKTRACE_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_ILOG2_U32 is not set | ||
21 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
22 | CONFIG_GENERIC_HWEIGHT=y | ||
23 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
24 | CONFIG_ZONE_DMA=y | ||
25 | CONFIG_ARCH_MTD_XIP=y | ||
26 | CONFIG_VECTORS_BASE=0xffff0000 | ||
27 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
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=y | ||
37 | CONFIG_SWAP=y | ||
38 | CONFIG_SYSVIPC=y | ||
39 | CONFIG_SYSVIPC_SYSCTL=y | ||
40 | # CONFIG_POSIX_MQUEUE is not set | ||
41 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
42 | # CONFIG_TASKSTATS is not set | ||
43 | # CONFIG_USER_NS is not set | ||
44 | # CONFIG_AUDIT is not set | ||
45 | # CONFIG_IKCONFIG is not set | ||
46 | CONFIG_LOG_BUF_SHIFT=18 | ||
47 | # CONFIG_CGROUPS is not set | ||
48 | CONFIG_FAIR_GROUP_SCHED=y | ||
49 | CONFIG_FAIR_USER_SCHED=y | ||
50 | # CONFIG_FAIR_CGROUP_SCHED is not set | ||
51 | CONFIG_SYSFS_DEPRECATED=y | ||
52 | # CONFIG_RELAY is not set | ||
53 | # CONFIG_BLK_DEV_INITRD is not set | ||
54 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | ||
55 | CONFIG_SYSCTL=y | ||
56 | # CONFIG_EMBEDDED is not set | ||
57 | CONFIG_UID16=y | ||
58 | CONFIG_SYSCTL_SYSCALL=y | ||
59 | CONFIG_KALLSYMS=y | ||
60 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
61 | CONFIG_HOTPLUG=y | ||
62 | CONFIG_PRINTK=y | ||
63 | CONFIG_BUG=y | ||
64 | CONFIG_ELF_CORE=y | ||
65 | CONFIG_BASE_FULL=y | ||
66 | CONFIG_FUTEX=y | ||
67 | CONFIG_ANON_INODES=y | ||
68 | CONFIG_EPOLL=y | ||
69 | CONFIG_SIGNALFD=y | ||
70 | CONFIG_EVENTFD=y | ||
71 | CONFIG_SHMEM=y | ||
72 | CONFIG_VM_EVENT_COUNTERS=y | ||
73 | CONFIG_SLUB_DEBUG=y | ||
74 | # CONFIG_SLAB is not set | ||
75 | CONFIG_SLUB=y | ||
76 | # CONFIG_SLOB is not set | ||
77 | CONFIG_RT_MUTEXES=y | ||
78 | # CONFIG_TINY_SHMEM is not set | ||
79 | CONFIG_BASE_SMALL=0 | ||
80 | CONFIG_MODULES=y | ||
81 | # CONFIG_MODULE_UNLOAD is not set | ||
82 | # CONFIG_MODVERSIONS is not set | ||
83 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
84 | # CONFIG_KMOD is not set | ||
85 | CONFIG_BLOCK=y | ||
86 | # CONFIG_LBD is not set | ||
87 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
88 | # CONFIG_LSF is not set | ||
89 | # CONFIG_BLK_DEV_BSG is not set | ||
90 | |||
91 | # | ||
92 | # IO Schedulers | ||
93 | # | ||
94 | CONFIG_IOSCHED_NOOP=y | ||
95 | CONFIG_IOSCHED_AS=y | ||
96 | CONFIG_IOSCHED_DEADLINE=y | ||
97 | CONFIG_IOSCHED_CFQ=y | ||
98 | # CONFIG_DEFAULT_AS is not set | ||
99 | # CONFIG_DEFAULT_DEADLINE is not set | ||
100 | CONFIG_DEFAULT_CFQ=y | ||
101 | # CONFIG_DEFAULT_NOOP is not set | ||
102 | CONFIG_DEFAULT_IOSCHED="cfq" | ||
103 | |||
104 | # | ||
105 | # System Type | ||
106 | # | ||
107 | # CONFIG_ARCH_AAEC2000 is not set | ||
108 | # CONFIG_ARCH_INTEGRATOR is not set | ||
109 | # CONFIG_ARCH_REALVIEW is not set | ||
110 | # CONFIG_ARCH_VERSATILE is not set | ||
111 | # CONFIG_ARCH_AT91 is not set | ||
112 | # CONFIG_ARCH_CLPS7500 is not set | ||
113 | # CONFIG_ARCH_CLPS711X is not set | ||
114 | # CONFIG_ARCH_CO285 is not set | ||
115 | # CONFIG_ARCH_EBSA110 is not set | ||
116 | # CONFIG_ARCH_EP93XX is not set | ||
117 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
118 | # CONFIG_ARCH_NETX is not set | ||
119 | # CONFIG_ARCH_H720X is not set | ||
120 | # CONFIG_ARCH_IMX is not set | ||
121 | # CONFIG_ARCH_IOP13XX is not set | ||
122 | # CONFIG_ARCH_IOP32X is not set | ||
123 | # CONFIG_ARCH_IOP33X is not set | ||
124 | # CONFIG_ARCH_IXP23XX is not set | ||
125 | # CONFIG_ARCH_IXP2000 is not set | ||
126 | # CONFIG_ARCH_IXP4XX is not set | ||
127 | # CONFIG_ARCH_L7200 is not set | ||
128 | # CONFIG_ARCH_KS8695 is not set | ||
129 | # CONFIG_ARCH_NS9XXX is not set | ||
130 | # CONFIG_ARCH_MXC is not set | ||
131 | # CONFIG_ARCH_PNX4008 is not set | ||
132 | CONFIG_ARCH_PXA=y | ||
133 | # CONFIG_ARCH_RPC is not set | ||
134 | # CONFIG_ARCH_SA1100 is not set | ||
135 | # CONFIG_ARCH_S3C2410 is not set | ||
136 | # CONFIG_ARCH_SHARK is not set | ||
137 | # CONFIG_ARCH_LH7A40X is not set | ||
138 | # CONFIG_ARCH_DAVINCI is not set | ||
139 | # CONFIG_ARCH_OMAP is not set | ||
140 | |||
141 | # | ||
142 | # Intel PXA2xx/PXA3xx Implementations | ||
143 | # | ||
144 | |||
145 | # | ||
146 | # Supported PXA3xx Processor Variants | ||
147 | # | ||
148 | CONFIG_CPU_PXA300=y | ||
149 | CONFIG_CPU_PXA310=y | ||
150 | CONFIG_CPU_PXA320=y | ||
151 | # CONFIG_ARCH_LUBBOCK is not set | ||
152 | # CONFIG_MACH_LOGICPD_PXA270 is not set | ||
153 | # CONFIG_MACH_MAINSTONE is not set | ||
154 | # CONFIG_ARCH_PXA_IDP is not set | ||
155 | # CONFIG_PXA_SHARPSL is not set | ||
156 | # CONFIG_MACH_TRIZEPS4 is not set | ||
157 | # CONFIG_MACH_EM_X270 is not set | ||
158 | CONFIG_MACH_ZYLONITE=y | ||
159 | # CONFIG_MACH_ARMCORE is not set | ||
160 | CONFIG_PXA3xx=y | ||
161 | |||
162 | # | ||
163 | # Boot options | ||
164 | # | ||
165 | |||
166 | # | ||
167 | # Power management | ||
168 | # | ||
169 | |||
170 | # | ||
171 | # Processor Type | ||
172 | # | ||
173 | CONFIG_CPU_32=y | ||
174 | CONFIG_CPU_XSC3=y | ||
175 | CONFIG_CPU_32v5=y | ||
176 | CONFIG_CPU_ABRT_EV5T=y | ||
177 | CONFIG_CPU_CACHE_VIVT=y | ||
178 | CONFIG_CPU_TLB_V4WBI=y | ||
179 | CONFIG_CPU_CP15=y | ||
180 | CONFIG_CPU_CP15_MMU=y | ||
181 | CONFIG_IO_36=y | ||
182 | |||
183 | # | ||
184 | # Processor Features | ||
185 | # | ||
186 | # CONFIG_ARM_THUMB is not set | ||
187 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
188 | # CONFIG_CPU_BPREDICT_DISABLE is not set | ||
189 | # CONFIG_OUTER_CACHE is not set | ||
190 | CONFIG_IWMMXT=y | ||
191 | |||
192 | # | ||
193 | # Bus support | ||
194 | # | ||
195 | # CONFIG_PCI_SYSCALL is not set | ||
196 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
197 | # CONFIG_PCCARD is not set | ||
198 | |||
199 | # | ||
200 | # Kernel Features | ||
201 | # | ||
202 | # CONFIG_TICK_ONESHOT is not set | ||
203 | # CONFIG_NO_HZ is not set | ||
204 | # CONFIG_HIGH_RES_TIMERS is not set | ||
205 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
206 | # CONFIG_PREEMPT is not set | ||
207 | CONFIG_HZ=100 | ||
208 | CONFIG_AEABI=y | ||
209 | CONFIG_OABI_COMPAT=y | ||
210 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
211 | CONFIG_SELECT_MEMORY_MODEL=y | ||
212 | CONFIG_FLATMEM_MANUAL=y | ||
213 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
214 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
215 | CONFIG_FLATMEM=y | ||
216 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
217 | # CONFIG_SPARSEMEM_STATIC is not set | ||
218 | # CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not set | ||
219 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
220 | # CONFIG_RESOURCES_64BIT is not set | ||
221 | CONFIG_ZONE_DMA_FLAG=1 | ||
222 | CONFIG_BOUNCE=y | ||
223 | CONFIG_VIRT_TO_BUS=y | ||
224 | CONFIG_ALIGNMENT_TRAP=y | ||
225 | |||
226 | # | ||
227 | # Boot options | ||
228 | # | ||
229 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
230 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
231 | CONFIG_CMDLINE="root=/dev/nfs rootfstype=nfs nfsroot=192.168.1.100:/nfs/rootfs/ ip=192.168.1.101:192.168.1.100::255.255.255.0::eth0:on console=ttyS0,38400 mem=64M debug" | ||
232 | # CONFIG_XIP_KERNEL is not set | ||
233 | # CONFIG_KEXEC is not set | ||
234 | |||
235 | # | ||
236 | # Floating point emulation | ||
237 | # | ||
238 | |||
239 | # | ||
240 | # At least one emulation must be selected | ||
241 | # | ||
242 | CONFIG_FPE_NWFPE=y | ||
243 | # CONFIG_FPE_NWFPE_XP is not set | ||
244 | # CONFIG_FPE_FASTFPE is not set | ||
245 | |||
246 | # | ||
247 | # Userspace binary formats | ||
248 | # | ||
249 | CONFIG_BINFMT_ELF=y | ||
250 | # CONFIG_BINFMT_AOUT is not set | ||
251 | # CONFIG_BINFMT_MISC is not set | ||
252 | |||
253 | # | ||
254 | # Power management options | ||
255 | # | ||
256 | # CONFIG_PM is not set | ||
257 | CONFIG_SUSPEND_UP_POSSIBLE=y | ||
258 | |||
259 | # | ||
260 | # Networking | ||
261 | # | ||
262 | CONFIG_NET=y | ||
263 | |||
264 | # | ||
265 | # Networking options | ||
266 | # | ||
267 | CONFIG_PACKET=y | ||
268 | # CONFIG_PACKET_MMAP is not set | ||
269 | CONFIG_UNIX=y | ||
270 | # CONFIG_NET_KEY is not set | ||
271 | CONFIG_INET=y | ||
272 | # CONFIG_IP_MULTICAST is not set | ||
273 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
274 | CONFIG_IP_FIB_HASH=y | ||
275 | CONFIG_IP_PNP=y | ||
276 | CONFIG_IP_PNP_DHCP=y | ||
277 | CONFIG_IP_PNP_BOOTP=y | ||
278 | CONFIG_IP_PNP_RARP=y | ||
279 | # CONFIG_NET_IPIP is not set | ||
280 | # CONFIG_NET_IPGRE is not set | ||
281 | # CONFIG_ARPD is not set | ||
282 | # CONFIG_SYN_COOKIES is not set | ||
283 | # CONFIG_INET_AH is not set | ||
284 | # CONFIG_INET_ESP is not set | ||
285 | # CONFIG_INET_IPCOMP is not set | ||
286 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
287 | # CONFIG_INET_TUNNEL is not set | ||
288 | # CONFIG_INET_XFRM_MODE_TRANSPORT is not set | ||
289 | # CONFIG_INET_XFRM_MODE_TUNNEL is not set | ||
290 | # CONFIG_INET_XFRM_MODE_BEET is not set | ||
291 | # CONFIG_INET_LRO is not set | ||
292 | # CONFIG_INET_DIAG is not set | ||
293 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
294 | CONFIG_TCP_CONG_CUBIC=y | ||
295 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
296 | # CONFIG_TCP_MD5SIG is not set | ||
297 | # CONFIG_IPV6 is not set | ||
298 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
299 | # CONFIG_INET6_TUNNEL is not set | ||
300 | # CONFIG_NETWORK_SECMARK is not set | ||
301 | # CONFIG_NETFILTER is not set | ||
302 | # CONFIG_IP_DCCP is not set | ||
303 | # CONFIG_IP_SCTP is not set | ||
304 | # CONFIG_TIPC is not set | ||
305 | # CONFIG_ATM is not set | ||
306 | # CONFIG_BRIDGE is not set | ||
307 | # CONFIG_VLAN_8021Q is not set | ||
308 | # CONFIG_DECNET is not set | ||
309 | # CONFIG_LLC2 is not set | ||
310 | # CONFIG_IPX is not set | ||
311 | # CONFIG_ATALK is not set | ||
312 | # CONFIG_X25 is not set | ||
313 | # CONFIG_LAPB is not set | ||
314 | # CONFIG_ECONET is not set | ||
315 | # CONFIG_WAN_ROUTER is not set | ||
316 | # CONFIG_NET_SCHED is not set | ||
317 | |||
318 | # | ||
319 | # Network testing | ||
320 | # | ||
321 | # CONFIG_NET_PKTGEN is not set | ||
322 | # CONFIG_HAMRADIO is not set | ||
323 | # CONFIG_IRDA is not set | ||
324 | # CONFIG_BT is not set | ||
325 | # CONFIG_AF_RXRPC is not set | ||
326 | |||
327 | # | ||
328 | # Wireless | ||
329 | # | ||
330 | # CONFIG_CFG80211 is not set | ||
331 | # CONFIG_WIRELESS_EXT is not set | ||
332 | # CONFIG_MAC80211 is not set | ||
333 | # CONFIG_IEEE80211 is not set | ||
334 | # CONFIG_RFKILL is not set | ||
335 | # CONFIG_NET_9P is not set | ||
336 | |||
337 | # | ||
338 | # Device Drivers | ||
339 | # | ||
340 | |||
341 | # | ||
342 | # Generic Driver Options | ||
343 | # | ||
344 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
345 | CONFIG_STANDALONE=y | ||
346 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
347 | CONFIG_FW_LOADER=y | ||
348 | # CONFIG_SYS_HYPERVISOR is not set | ||
349 | # CONFIG_CONNECTOR is not set | ||
350 | # CONFIG_MTD is not set | ||
351 | # CONFIG_PARPORT is not set | ||
352 | # CONFIG_BLK_DEV is not set | ||
353 | # CONFIG_MISC_DEVICES is not set | ||
354 | # CONFIG_IDE is not set | ||
355 | |||
356 | # | ||
357 | # SCSI device support | ||
358 | # | ||
359 | # CONFIG_RAID_ATTRS is not set | ||
360 | # CONFIG_SCSI is not set | ||
361 | # CONFIG_SCSI_DMA is not set | ||
362 | # CONFIG_SCSI_NETLINK is not set | ||
363 | # CONFIG_ATA is not set | ||
364 | # CONFIG_MD is not set | ||
365 | CONFIG_NETDEVICES=y | ||
366 | # CONFIG_NETDEVICES_MULTIQUEUE is not set | ||
367 | # CONFIG_DUMMY is not set | ||
368 | # CONFIG_BONDING is not set | ||
369 | # CONFIG_MACVLAN is not set | ||
370 | # CONFIG_EQUALIZER is not set | ||
371 | # CONFIG_TUN is not set | ||
372 | # CONFIG_VETH is not set | ||
373 | # CONFIG_PHYLIB is not set | ||
374 | CONFIG_NET_ETHERNET=y | ||
375 | CONFIG_MII=y | ||
376 | # CONFIG_AX88796 is not set | ||
377 | CONFIG_SMC91X=y | ||
378 | # CONFIG_DM9000 is not set | ||
379 | # CONFIG_SMC911X is not set | ||
380 | # CONFIG_IBM_NEW_EMAC_ZMII is not set | ||
381 | # CONFIG_IBM_NEW_EMAC_RGMII is not set | ||
382 | # CONFIG_IBM_NEW_EMAC_TAH is not set | ||
383 | # CONFIG_IBM_NEW_EMAC_EMAC4 is not set | ||
384 | # CONFIG_B44 is not set | ||
385 | # CONFIG_NETDEV_1000 is not set | ||
386 | # CONFIG_NETDEV_10000 is not set | ||
387 | |||
388 | # | ||
389 | # Wireless LAN | ||
390 | # | ||
391 | # CONFIG_WLAN_PRE80211 is not set | ||
392 | # CONFIG_WLAN_80211 is not set | ||
393 | # CONFIG_WAN is not set | ||
394 | # CONFIG_PPP is not set | ||
395 | # CONFIG_SLIP is not set | ||
396 | # CONFIG_SHAPER is not set | ||
397 | # CONFIG_NETCONSOLE is not set | ||
398 | # CONFIG_NETPOLL is not set | ||
399 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
400 | # CONFIG_ISDN is not set | ||
401 | |||
402 | # | ||
403 | # Input device support | ||
404 | # | ||
405 | CONFIG_INPUT=y | ||
406 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
407 | # CONFIG_INPUT_POLLDEV is not set | ||
408 | |||
409 | # | ||
410 | # Userland interfaces | ||
411 | # | ||
412 | CONFIG_INPUT_MOUSEDEV=y | ||
413 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
414 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
415 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
416 | # CONFIG_INPUT_JOYDEV is not set | ||
417 | # CONFIG_INPUT_EVDEV is not set | ||
418 | # CONFIG_INPUT_EVBUG is not set | ||
419 | |||
420 | # | ||
421 | # Input Device Drivers | ||
422 | # | ||
423 | # CONFIG_INPUT_KEYBOARD is not set | ||
424 | # CONFIG_INPUT_MOUSE is not set | ||
425 | # CONFIG_INPUT_JOYSTICK is not set | ||
426 | # CONFIG_INPUT_TABLET is not set | ||
427 | # CONFIG_INPUT_TOUCHSCREEN is not set | ||
428 | # CONFIG_INPUT_MISC is not set | ||
429 | |||
430 | # | ||
431 | # Hardware I/O ports | ||
432 | # | ||
433 | # CONFIG_SERIO is not set | ||
434 | # CONFIG_GAMEPORT is not set | ||
435 | |||
436 | # | ||
437 | # Character devices | ||
438 | # | ||
439 | CONFIG_VT=y | ||
440 | CONFIG_VT_CONSOLE=y | ||
441 | CONFIG_HW_CONSOLE=y | ||
442 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
443 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
444 | |||
445 | # | ||
446 | # Serial drivers | ||
447 | # | ||
448 | # CONFIG_SERIAL_8250 is not set | ||
449 | |||
450 | # | ||
451 | # Non-8250 serial port support | ||
452 | # | ||
453 | CONFIG_SERIAL_PXA=y | ||
454 | CONFIG_SERIAL_PXA_CONSOLE=y | ||
455 | CONFIG_SERIAL_CORE=y | ||
456 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
457 | CONFIG_UNIX98_PTYS=y | ||
458 | # CONFIG_LEGACY_PTYS is not set | ||
459 | # CONFIG_IPMI_HANDLER is not set | ||
460 | # CONFIG_HW_RANDOM is not set | ||
461 | # CONFIG_NVRAM is not set | ||
462 | # CONFIG_R3964 is not set | ||
463 | # CONFIG_RAW_DRIVER is not set | ||
464 | # CONFIG_TCG_TPM is not set | ||
465 | # CONFIG_I2C is not set | ||
466 | |||
467 | # | ||
468 | # SPI support | ||
469 | # | ||
470 | # CONFIG_SPI is not set | ||
471 | # CONFIG_SPI_MASTER is not set | ||
472 | # CONFIG_W1 is not set | ||
473 | # CONFIG_POWER_SUPPLY is not set | ||
474 | # CONFIG_HWMON is not set | ||
475 | |||
476 | # | ||
477 | # Sonics Silicon Backplane | ||
478 | # | ||
479 | CONFIG_SSB_POSSIBLE=y | ||
480 | # CONFIG_SSB is not set | ||
481 | |||
482 | # | ||
483 | # Multifunction device drivers | ||
484 | # | ||
485 | # CONFIG_MFD_SM501 is not set | ||
486 | |||
487 | # | ||
488 | # Multimedia devices | ||
489 | # | ||
490 | # CONFIG_VIDEO_DEV is not set | ||
491 | # CONFIG_DVB_CORE is not set | ||
492 | # CONFIG_DAB is not set | ||
493 | |||
494 | # | ||
495 | # Graphics support | ||
496 | # | ||
497 | # CONFIG_VGASTATE is not set | ||
498 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
499 | CONFIG_FB=y | ||
500 | # CONFIG_FIRMWARE_EDID is not set | ||
501 | # CONFIG_FB_DDC is not set | ||
502 | CONFIG_FB_CFB_FILLRECT=y | ||
503 | CONFIG_FB_CFB_COPYAREA=y | ||
504 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
505 | # CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set | ||
506 | # CONFIG_FB_SYS_FILLRECT is not set | ||
507 | # CONFIG_FB_SYS_COPYAREA is not set | ||
508 | # CONFIG_FB_SYS_IMAGEBLIT is not set | ||
509 | # CONFIG_FB_SYS_FOPS is not set | ||
510 | CONFIG_FB_DEFERRED_IO=y | ||
511 | # CONFIG_FB_SVGALIB is not set | ||
512 | # CONFIG_FB_MACMODES is not set | ||
513 | # CONFIG_FB_BACKLIGHT is not set | ||
514 | # CONFIG_FB_MODE_HELPERS is not set | ||
515 | # CONFIG_FB_TILEBLITTING is not set | ||
516 | |||
517 | # | ||
518 | # Frame buffer hardware drivers | ||
519 | # | ||
520 | # CONFIG_FB_S1D13XXX is not set | ||
521 | CONFIG_FB_PXA=y | ||
522 | # CONFIG_FB_PXA_PARAMETERS is not set | ||
523 | # CONFIG_FB_MBX is not set | ||
524 | # CONFIG_FB_VIRTUAL is not set | ||
525 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
526 | |||
527 | # | ||
528 | # Display device support | ||
529 | # | ||
530 | # CONFIG_DISPLAY_SUPPORT is not set | ||
531 | |||
532 | # | ||
533 | # Console display driver support | ||
534 | # | ||
535 | # CONFIG_VGA_CONSOLE is not set | ||
536 | CONFIG_DUMMY_CONSOLE=y | ||
537 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
538 | CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y | ||
539 | # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set | ||
540 | CONFIG_FONTS=y | ||
541 | # CONFIG_FONT_8x8 is not set | ||
542 | # CONFIG_FONT_8x16 is not set | ||
543 | CONFIG_FONT_6x11=y | ||
544 | # CONFIG_FONT_7x14 is not set | ||
545 | # CONFIG_FONT_PEARL_8x8 is not set | ||
546 | # CONFIG_FONT_ACORN_8x8 is not set | ||
547 | # CONFIG_FONT_MINI_4x6 is not set | ||
548 | # CONFIG_FONT_SUN8x16 is not set | ||
549 | # CONFIG_FONT_SUN12x22 is not set | ||
550 | # CONFIG_FONT_10x18 is not set | ||
551 | CONFIG_LOGO=y | ||
552 | CONFIG_LOGO_LINUX_MONO=y | ||
553 | CONFIG_LOGO_LINUX_VGA16=y | ||
554 | CONFIG_LOGO_LINUX_CLUT224=y | ||
555 | |||
556 | # | ||
557 | # Sound | ||
558 | # | ||
559 | # CONFIG_SOUND is not set | ||
560 | # CONFIG_HID_SUPPORT is not set | ||
561 | # CONFIG_USB_SUPPORT is not set | ||
562 | # CONFIG_MMC is not set | ||
563 | # CONFIG_NEW_LEDS is not set | ||
564 | CONFIG_RTC_LIB=y | ||
565 | # CONFIG_RTC_CLASS is not set | ||
566 | |||
567 | # | ||
568 | # File systems | ||
569 | # | ||
570 | # CONFIG_EXT2_FS is not set | ||
571 | # CONFIG_EXT3_FS is not set | ||
572 | # CONFIG_EXT4DEV_FS is not set | ||
573 | # CONFIG_REISERFS_FS is not set | ||
574 | # CONFIG_JFS_FS is not set | ||
575 | CONFIG_FS_POSIX_ACL=y | ||
576 | # CONFIG_XFS_FS is not set | ||
577 | # CONFIG_GFS2_FS is not set | ||
578 | # CONFIG_OCFS2_FS is not set | ||
579 | # CONFIG_MINIX_FS is not set | ||
580 | # CONFIG_ROMFS_FS is not set | ||
581 | # CONFIG_INOTIFY is not set | ||
582 | # CONFIG_QUOTA is not set | ||
583 | CONFIG_DNOTIFY=y | ||
584 | # CONFIG_AUTOFS_FS is not set | ||
585 | # CONFIG_AUTOFS4_FS is not set | ||
586 | # CONFIG_FUSE_FS is not set | ||
587 | |||
588 | # | ||
589 | # CD-ROM/DVD Filesystems | ||
590 | # | ||
591 | # CONFIG_ISO9660_FS is not set | ||
592 | # CONFIG_UDF_FS is not set | ||
593 | |||
594 | # | ||
595 | # DOS/FAT/NT Filesystems | ||
596 | # | ||
597 | # CONFIG_MSDOS_FS is not set | ||
598 | # CONFIG_VFAT_FS is not set | ||
599 | # CONFIG_NTFS_FS is not set | ||
600 | |||
601 | # | ||
602 | # Pseudo filesystems | ||
603 | # | ||
604 | CONFIG_PROC_FS=y | ||
605 | CONFIG_PROC_SYSCTL=y | ||
606 | CONFIG_SYSFS=y | ||
607 | # CONFIG_TMPFS is not set | ||
608 | # CONFIG_HUGETLB_PAGE is not set | ||
609 | # CONFIG_CONFIGFS_FS is not set | ||
610 | |||
611 | # | ||
612 | # Miscellaneous filesystems | ||
613 | # | ||
614 | # CONFIG_ADFS_FS is not set | ||
615 | # CONFIG_AFFS_FS is not set | ||
616 | # CONFIG_HFS_FS is not set | ||
617 | # CONFIG_HFSPLUS_FS is not set | ||
618 | # CONFIG_BEFS_FS is not set | ||
619 | # CONFIG_BFS_FS is not set | ||
620 | # CONFIG_EFS_FS is not set | ||
621 | # CONFIG_CRAMFS is not set | ||
622 | # CONFIG_VXFS_FS is not set | ||
623 | # CONFIG_HPFS_FS is not set | ||
624 | # CONFIG_QNX4FS_FS is not set | ||
625 | # CONFIG_SYSV_FS is not set | ||
626 | # CONFIG_UFS_FS is not set | ||
627 | CONFIG_NETWORK_FILESYSTEMS=y | ||
628 | CONFIG_NFS_FS=y | ||
629 | CONFIG_NFS_V3=y | ||
630 | CONFIG_NFS_V3_ACL=y | ||
631 | CONFIG_NFS_V4=y | ||
632 | CONFIG_NFS_DIRECTIO=y | ||
633 | # CONFIG_NFSD is not set | ||
634 | CONFIG_ROOT_NFS=y | ||
635 | CONFIG_LOCKD=y | ||
636 | CONFIG_LOCKD_V4=y | ||
637 | CONFIG_NFS_ACL_SUPPORT=y | ||
638 | CONFIG_NFS_COMMON=y | ||
639 | CONFIG_SUNRPC=y | ||
640 | CONFIG_SUNRPC_GSS=y | ||
641 | # CONFIG_SUNRPC_BIND34 is not set | ||
642 | CONFIG_RPCSEC_GSS_KRB5=y | ||
643 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
644 | # CONFIG_SMB_FS is not set | ||
645 | # CONFIG_CIFS is not set | ||
646 | # CONFIG_NCP_FS is not set | ||
647 | # CONFIG_CODA_FS is not set | ||
648 | # CONFIG_AFS_FS is not set | ||
649 | |||
650 | # | ||
651 | # Partition Types | ||
652 | # | ||
653 | # CONFIG_PARTITION_ADVANCED is not set | ||
654 | CONFIG_MSDOS_PARTITION=y | ||
655 | # CONFIG_NLS is not set | ||
656 | # CONFIG_DLM is not set | ||
657 | # CONFIG_INSTRUMENTATION is not set | ||
658 | |||
659 | # | ||
660 | # Kernel hacking | ||
661 | # | ||
662 | # CONFIG_PRINTK_TIME is not set | ||
663 | CONFIG_ENABLE_MUST_CHECK=y | ||
664 | # CONFIG_MAGIC_SYSRQ is not set | ||
665 | # CONFIG_UNUSED_SYMBOLS is not set | ||
666 | # CONFIG_DEBUG_FS is not set | ||
667 | # CONFIG_HEADERS_CHECK is not set | ||
668 | # CONFIG_DEBUG_KERNEL is not set | ||
669 | # CONFIG_SLUB_DEBUG_ON is not set | ||
670 | CONFIG_DEBUG_BUGVERBOSE=y | ||
671 | CONFIG_FRAME_POINTER=y | ||
672 | # CONFIG_SAMPLES is not set | ||
673 | CONFIG_DEBUG_USER=y | ||
674 | |||
675 | # | ||
676 | # Security options | ||
677 | # | ||
678 | # CONFIG_KEYS is not set | ||
679 | # CONFIG_SECURITY is not set | ||
680 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | ||
681 | CONFIG_CRYPTO=y | ||
682 | CONFIG_CRYPTO_ALGAPI=y | ||
683 | CONFIG_CRYPTO_BLKCIPHER=y | ||
684 | CONFIG_CRYPTO_MANAGER=y | ||
685 | # CONFIG_CRYPTO_HMAC is not set | ||
686 | # CONFIG_CRYPTO_XCBC is not set | ||
687 | # CONFIG_CRYPTO_NULL is not set | ||
688 | # CONFIG_CRYPTO_MD4 is not set | ||
689 | CONFIG_CRYPTO_MD5=y | ||
690 | # CONFIG_CRYPTO_SHA1 is not set | ||
691 | # CONFIG_CRYPTO_SHA256 is not set | ||
692 | # CONFIG_CRYPTO_SHA512 is not set | ||
693 | # CONFIG_CRYPTO_WP512 is not set | ||
694 | # CONFIG_CRYPTO_TGR192 is not set | ||
695 | # CONFIG_CRYPTO_GF128MUL is not set | ||
696 | # CONFIG_CRYPTO_ECB is not set | ||
697 | CONFIG_CRYPTO_CBC=y | ||
698 | # CONFIG_CRYPTO_PCBC is not set | ||
699 | # CONFIG_CRYPTO_LRW is not set | ||
700 | # CONFIG_CRYPTO_XTS is not set | ||
701 | # CONFIG_CRYPTO_CRYPTD is not set | ||
702 | CONFIG_CRYPTO_DES=y | ||
703 | # CONFIG_CRYPTO_FCRYPT is not set | ||
704 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
705 | # CONFIG_CRYPTO_TWOFISH is not set | ||
706 | # CONFIG_CRYPTO_SERPENT is not set | ||
707 | # CONFIG_CRYPTO_AES is not set | ||
708 | # CONFIG_CRYPTO_CAST5 is not set | ||
709 | # CONFIG_CRYPTO_CAST6 is not set | ||
710 | # CONFIG_CRYPTO_TEA is not set | ||
711 | # CONFIG_CRYPTO_ARC4 is not set | ||
712 | # CONFIG_CRYPTO_KHAZAD is not set | ||
713 | # CONFIG_CRYPTO_ANUBIS is not set | ||
714 | # CONFIG_CRYPTO_SEED is not set | ||
715 | # CONFIG_CRYPTO_DEFLATE is not set | ||
716 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
717 | # CONFIG_CRYPTO_CRC32C is not set | ||
718 | # CONFIG_CRYPTO_CAMELLIA is not set | ||
719 | # CONFIG_CRYPTO_TEST is not set | ||
720 | # CONFIG_CRYPTO_AUTHENC is not set | ||
721 | # CONFIG_CRYPTO_HW is not set | ||
722 | |||
723 | # | ||
724 | # Library routines | ||
725 | # | ||
726 | CONFIG_BITREVERSE=y | ||
727 | # CONFIG_CRC_CCITT is not set | ||
728 | # CONFIG_CRC16 is not set | ||
729 | # CONFIG_CRC_ITU_T is not set | ||
730 | CONFIG_CRC32=y | ||
731 | # CONFIG_CRC7 is not set | ||
732 | # CONFIG_LIBCRC32C is not set | ||
733 | CONFIG_PLIST=y | ||
734 | CONFIG_HAS_IOMEM=y | ||
735 | CONFIG_HAS_IOPORT=y | ||
736 | CONFIG_HAS_DMA=y | ||
diff --git a/arch/arm/include/asm/atomic.h b/arch/arm/include/asm/atomic.h index 9ed2377fe8e5..d0daeab2234e 100644 --- a/arch/arm/include/asm/atomic.h +++ b/arch/arm/include/asm/atomic.h | |||
@@ -19,31 +19,21 @@ | |||
19 | 19 | ||
20 | #ifdef __KERNEL__ | 20 | #ifdef __KERNEL__ |
21 | 21 | ||
22 | /* | ||
23 | * On ARM, ordinary assignment (str instruction) doesn't clear the local | ||
24 | * strex/ldrex monitor on some implementations. The reason we can use it for | ||
25 | * atomic_set() is the clrex or dummy strex done on every exception return. | ||
26 | */ | ||
22 | #define atomic_read(v) ((v)->counter) | 27 | #define atomic_read(v) ((v)->counter) |
28 | #define atomic_set(v,i) (((v)->counter) = (i)) | ||
23 | 29 | ||
24 | #if __LINUX_ARM_ARCH__ >= 6 | 30 | #if __LINUX_ARM_ARCH__ >= 6 |
25 | 31 | ||
26 | /* | 32 | /* |
27 | * ARMv6 UP and SMP safe atomic ops. We use load exclusive and | 33 | * ARMv6 UP and SMP safe atomic ops. We use load exclusive and |
28 | * store exclusive to ensure that these are atomic. We may loop | 34 | * store exclusive to ensure that these are atomic. We may loop |
29 | * to ensure that the update happens. Writing to 'v->counter' | 35 | * to ensure that the update happens. |
30 | * without using the following operations WILL break the atomic | ||
31 | * nature of these ops. | ||
32 | */ | 36 | */ |
33 | static inline void atomic_set(atomic_t *v, int i) | ||
34 | { | ||
35 | unsigned long tmp; | ||
36 | |||
37 | __asm__ __volatile__("@ atomic_set\n" | ||
38 | "1: ldrex %0, [%1]\n" | ||
39 | " strex %0, %2, [%1]\n" | ||
40 | " teq %0, #0\n" | ||
41 | " bne 1b" | ||
42 | : "=&r" (tmp) | ||
43 | : "r" (&v->counter), "r" (i) | ||
44 | : "cc"); | ||
45 | } | ||
46 | |||
47 | static inline void atomic_add(int i, atomic_t *v) | 37 | static inline void atomic_add(int i, atomic_t *v) |
48 | { | 38 | { |
49 | unsigned long tmp; | 39 | unsigned long tmp; |
@@ -163,8 +153,6 @@ static inline void atomic_clear_mask(unsigned long mask, unsigned long *addr) | |||
163 | #error SMP not supported on pre-ARMv6 CPUs | 153 | #error SMP not supported on pre-ARMv6 CPUs |
164 | #endif | 154 | #endif |
165 | 155 | ||
166 | #define atomic_set(v,i) (((v)->counter) = (i)) | ||
167 | |||
168 | static inline int atomic_add_return(int i, atomic_t *v) | 156 | static inline int atomic_add_return(int i, atomic_t *v) |
169 | { | 157 | { |
170 | unsigned long flags; | 158 | unsigned long flags; |
diff --git a/arch/arm/include/asm/bitops.h b/arch/arm/include/asm/bitops.h index 63a481fbbed4..338ff19ae447 100644 --- a/arch/arm/include/asm/bitops.h +++ b/arch/arm/include/asm/bitops.h | |||
@@ -84,7 +84,7 @@ ____atomic_test_and_set_bit(unsigned int bit, volatile unsigned long *p) | |||
84 | *p = res | mask; | 84 | *p = res | mask; |
85 | raw_local_irq_restore(flags); | 85 | raw_local_irq_restore(flags); |
86 | 86 | ||
87 | return res & mask; | 87 | return (res & mask) != 0; |
88 | } | 88 | } |
89 | 89 | ||
90 | static inline int | 90 | static inline int |
@@ -101,7 +101,7 @@ ____atomic_test_and_clear_bit(unsigned int bit, volatile unsigned long *p) | |||
101 | *p = res & ~mask; | 101 | *p = res & ~mask; |
102 | raw_local_irq_restore(flags); | 102 | raw_local_irq_restore(flags); |
103 | 103 | ||
104 | return res & mask; | 104 | return (res & mask) != 0; |
105 | } | 105 | } |
106 | 106 | ||
107 | static inline int | 107 | static inline int |
@@ -118,7 +118,7 @@ ____atomic_test_and_change_bit(unsigned int bit, volatile unsigned long *p) | |||
118 | *p = res ^ mask; | 118 | *p = res ^ mask; |
119 | raw_local_irq_restore(flags); | 119 | raw_local_irq_restore(flags); |
120 | 120 | ||
121 | return res & mask; | 121 | return (res & mask) != 0; |
122 | } | 122 | } |
123 | 123 | ||
124 | #include <asm-generic/bitops/non-atomic.h> | 124 | #include <asm-generic/bitops/non-atomic.h> |
diff --git a/arch/arm/include/asm/cache.h b/arch/arm/include/asm/cache.h index feaa75f0013e..66c160b8547f 100644 --- a/arch/arm/include/asm/cache.h +++ b/arch/arm/include/asm/cache.h | |||
@@ -4,7 +4,7 @@ | |||
4 | #ifndef __ASMARM_CACHE_H | 4 | #ifndef __ASMARM_CACHE_H |
5 | #define __ASMARM_CACHE_H | 5 | #define __ASMARM_CACHE_H |
6 | 6 | ||
7 | #define L1_CACHE_SHIFT 5 | 7 | #define L1_CACHE_SHIFT CONFIG_ARM_L1_CACHE_SHIFT |
8 | #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) | 8 | #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) |
9 | 9 | ||
10 | /* | 10 | /* |
diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h index 1a711ea8418b..fd03fb63a332 100644 --- a/arch/arm/include/asm/cacheflush.h +++ b/arch/arm/include/asm/cacheflush.h | |||
@@ -334,14 +334,14 @@ static inline void outer_flush_range(unsigned long start, unsigned long end) | |||
334 | #ifndef CONFIG_CPU_CACHE_VIPT | 334 | #ifndef CONFIG_CPU_CACHE_VIPT |
335 | static inline void flush_cache_mm(struct mm_struct *mm) | 335 | static inline void flush_cache_mm(struct mm_struct *mm) |
336 | { | 336 | { |
337 | if (cpu_isset(smp_processor_id(), mm->cpu_vm_mask)) | 337 | if (cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm))) |
338 | __cpuc_flush_user_all(); | 338 | __cpuc_flush_user_all(); |
339 | } | 339 | } |
340 | 340 | ||
341 | static inline void | 341 | static inline void |
342 | flush_cache_range(struct vm_area_struct *vma, unsigned long start, unsigned long end) | 342 | flush_cache_range(struct vm_area_struct *vma, unsigned long start, unsigned long end) |
343 | { | 343 | { |
344 | if (cpu_isset(smp_processor_id(), vma->vm_mm->cpu_vm_mask)) | 344 | if (cpumask_test_cpu(smp_processor_id(), mm_cpumask(vma->vm_mm))) |
345 | __cpuc_flush_user_range(start & PAGE_MASK, PAGE_ALIGN(end), | 345 | __cpuc_flush_user_range(start & PAGE_MASK, PAGE_ALIGN(end), |
346 | vma->vm_flags); | 346 | vma->vm_flags); |
347 | } | 347 | } |
@@ -349,7 +349,7 @@ flush_cache_range(struct vm_area_struct *vma, unsigned long start, unsigned long | |||
349 | static inline void | 349 | static inline void |
350 | flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, unsigned long pfn) | 350 | flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, unsigned long pfn) |
351 | { | 351 | { |
352 | if (cpu_isset(smp_processor_id(), vma->vm_mm->cpu_vm_mask)) { | 352 | if (cpumask_test_cpu(smp_processor_id(), mm_cpumask(vma->vm_mm))) { |
353 | unsigned long addr = user_addr & PAGE_MASK; | 353 | unsigned long addr = user_addr & PAGE_MASK; |
354 | __cpuc_flush_user_range(addr, addr + PAGE_SIZE, vma->vm_flags); | 354 | __cpuc_flush_user_range(addr, addr + PAGE_SIZE, vma->vm_flags); |
355 | } | 355 | } |
@@ -360,7 +360,7 @@ flush_ptrace_access(struct vm_area_struct *vma, struct page *page, | |||
360 | unsigned long uaddr, void *kaddr, | 360 | unsigned long uaddr, void *kaddr, |
361 | unsigned long len, int write) | 361 | unsigned long len, int write) |
362 | { | 362 | { |
363 | if (cpu_isset(smp_processor_id(), vma->vm_mm->cpu_vm_mask)) { | 363 | if (cpumask_test_cpu(smp_processor_id(), mm_cpumask(vma->vm_mm))) { |
364 | unsigned long addr = (unsigned long)kaddr; | 364 | unsigned long addr = (unsigned long)kaddr; |
365 | __cpuc_coherent_kern_range(addr, addr + len); | 365 | __cpuc_coherent_kern_range(addr, addr + len); |
366 | } | 366 | } |
diff --git a/arch/arm/include/asm/cputype.h b/arch/arm/include/asm/cputype.h index b3e656c6fb78..20ae96cc0020 100644 --- a/arch/arm/include/asm/cputype.h +++ b/arch/arm/include/asm/cputype.h | |||
@@ -63,6 +63,11 @@ static inline unsigned int __attribute_const__ read_cpuid_cachetype(void) | |||
63 | return read_cpuid(CPUID_CACHETYPE); | 63 | return read_cpuid(CPUID_CACHETYPE); |
64 | } | 64 | } |
65 | 65 | ||
66 | static inline unsigned int __attribute_const__ read_cpuid_tcmstatus(void) | ||
67 | { | ||
68 | return read_cpuid(CPUID_TCM); | ||
69 | } | ||
70 | |||
66 | /* | 71 | /* |
67 | * Intel's XScale3 core supports some v6 features (supersections, L2) | 72 | * Intel's XScale3 core supports some v6 features (supersections, L2) |
68 | * but advertises itself as v5 as it does not support the v6 ISA. For | 73 | * but advertises itself as v5 as it does not support the v6 ISA. For |
@@ -73,7 +78,10 @@ static inline unsigned int __attribute_const__ read_cpuid_cachetype(void) | |||
73 | #else | 78 | #else |
74 | static inline int cpu_is_xsc3(void) | 79 | static inline int cpu_is_xsc3(void) |
75 | { | 80 | { |
76 | if ((read_cpuid_id() & 0xffffe000) == 0x69056000) | 81 | unsigned int id; |
82 | id = read_cpuid_id() & 0xffffe000; | ||
83 | /* It covers both Intel ID and Marvell ID */ | ||
84 | if ((id == 0x69056000) || (id == 0x56056000)) | ||
77 | return 1; | 85 | return 1; |
78 | 86 | ||
79 | return 0; | 87 | return 0; |
diff --git a/arch/arm/include/asm/glue.h b/arch/arm/include/asm/glue.h index a0e39d5d00c9..234a3fc1c78e 100644 --- a/arch/arm/include/asm/glue.h +++ b/arch/arm/include/asm/glue.h | |||
@@ -120,25 +120,39 @@ | |||
120 | #endif | 120 | #endif |
121 | 121 | ||
122 | /* | 122 | /* |
123 | * Prefetch abort handler. If the CPU has an IFAR use that, otherwise | 123 | * Prefetch Abort Model |
124 | * use the address of the aborted instruction | 124 | * ================ |
125 | * | ||
126 | * We have the following to choose from: | ||
127 | * legacy - no IFSR, no IFAR | ||
128 | * v6 - ARMv6: IFSR, no IFAR | ||
129 | * v7 - ARMv7: IFSR and IFAR | ||
125 | */ | 130 | */ |
131 | |||
126 | #undef CPU_PABORT_HANDLER | 132 | #undef CPU_PABORT_HANDLER |
127 | #undef MULTI_PABORT | 133 | #undef MULTI_PABORT |
128 | 134 | ||
129 | #ifdef CONFIG_CPU_PABRT_IFAR | 135 | #ifdef CONFIG_CPU_PABRT_LEGACY |
136 | # ifdef CPU_PABORT_HANDLER | ||
137 | # define MULTI_PABORT 1 | ||
138 | # else | ||
139 | # define CPU_PABORT_HANDLER legacy_pabort | ||
140 | # endif | ||
141 | #endif | ||
142 | |||
143 | #ifdef CONFIG_CPU_PABRT_V6 | ||
130 | # ifdef CPU_PABORT_HANDLER | 144 | # ifdef CPU_PABORT_HANDLER |
131 | # define MULTI_PABORT 1 | 145 | # define MULTI_PABORT 1 |
132 | # else | 146 | # else |
133 | # define CPU_PABORT_HANDLER(reg, insn) mrc p15, 0, reg, cr6, cr0, 2 | 147 | # define CPU_PABORT_HANDLER v6_pabort |
134 | # endif | 148 | # endif |
135 | #endif | 149 | #endif |
136 | 150 | ||
137 | #ifdef CONFIG_CPU_PABRT_NOIFAR | 151 | #ifdef CONFIG_CPU_PABRT_V7 |
138 | # ifdef CPU_PABORT_HANDLER | 152 | # ifdef CPU_PABORT_HANDLER |
139 | # define MULTI_PABORT 1 | 153 | # define MULTI_PABORT 1 |
140 | # else | 154 | # else |
141 | # define CPU_PABORT_HANDLER(reg, insn) mov reg, insn | 155 | # define CPU_PABORT_HANDLER v7_pabort |
142 | # endif | 156 | # endif |
143 | #endif | 157 | #endif |
144 | 158 | ||
diff --git a/arch/arm/include/asm/hardware/iop3xx-adma.h b/arch/arm/include/asm/hardware/iop3xx-adma.h index 83e6ba338e2c..1a8c7279a28b 100644 --- a/arch/arm/include/asm/hardware/iop3xx-adma.h +++ b/arch/arm/include/asm/hardware/iop3xx-adma.h | |||
@@ -187,11 +187,74 @@ union iop3xx_desc { | |||
187 | void *ptr; | 187 | void *ptr; |
188 | }; | 188 | }; |
189 | 189 | ||
190 | /* No support for p+q operations */ | ||
191 | static inline int | ||
192 | iop_chan_pq_slot_count(size_t len, int src_cnt, int *slots_per_op) | ||
193 | { | ||
194 | BUG(); | ||
195 | return 0; | ||
196 | } | ||
197 | |||
198 | static inline void | ||
199 | iop_desc_init_pq(struct iop_adma_desc_slot *desc, int src_cnt, | ||
200 | unsigned long flags) | ||
201 | { | ||
202 | BUG(); | ||
203 | } | ||
204 | |||
205 | static inline void | ||
206 | iop_desc_set_pq_addr(struct iop_adma_desc_slot *desc, dma_addr_t *addr) | ||
207 | { | ||
208 | BUG(); | ||
209 | } | ||
210 | |||
211 | static inline void | ||
212 | iop_desc_set_pq_src_addr(struct iop_adma_desc_slot *desc, int src_idx, | ||
213 | dma_addr_t addr, unsigned char coef) | ||
214 | { | ||
215 | BUG(); | ||
216 | } | ||
217 | |||
218 | static inline int | ||
219 | iop_chan_pq_zero_sum_slot_count(size_t len, int src_cnt, int *slots_per_op) | ||
220 | { | ||
221 | BUG(); | ||
222 | return 0; | ||
223 | } | ||
224 | |||
225 | static inline void | ||
226 | iop_desc_init_pq_zero_sum(struct iop_adma_desc_slot *desc, int src_cnt, | ||
227 | unsigned long flags) | ||
228 | { | ||
229 | BUG(); | ||
230 | } | ||
231 | |||
232 | static inline void | ||
233 | iop_desc_set_pq_zero_sum_byte_count(struct iop_adma_desc_slot *desc, u32 len) | ||
234 | { | ||
235 | BUG(); | ||
236 | } | ||
237 | |||
238 | #define iop_desc_set_pq_zero_sum_src_addr iop_desc_set_pq_src_addr | ||
239 | |||
240 | static inline void | ||
241 | iop_desc_set_pq_zero_sum_addr(struct iop_adma_desc_slot *desc, int pq_idx, | ||
242 | dma_addr_t *src) | ||
243 | { | ||
244 | BUG(); | ||
245 | } | ||
246 | |||
190 | static inline int iop_adma_get_max_xor(void) | 247 | static inline int iop_adma_get_max_xor(void) |
191 | { | 248 | { |
192 | return 32; | 249 | return 32; |
193 | } | 250 | } |
194 | 251 | ||
252 | static inline int iop_adma_get_max_pq(void) | ||
253 | { | ||
254 | BUG(); | ||
255 | return 0; | ||
256 | } | ||
257 | |||
195 | static inline u32 iop_chan_get_current_descriptor(struct iop_adma_chan *chan) | 258 | static inline u32 iop_chan_get_current_descriptor(struct iop_adma_chan *chan) |
196 | { | 259 | { |
197 | int id = chan->device->id; | 260 | int id = chan->device->id; |
@@ -332,6 +395,11 @@ static inline int iop_chan_zero_sum_slot_count(size_t len, int src_cnt, | |||
332 | return slot_cnt; | 395 | return slot_cnt; |
333 | } | 396 | } |
334 | 397 | ||
398 | static inline int iop_desc_is_pq(struct iop_adma_desc_slot *desc) | ||
399 | { | ||
400 | return 0; | ||
401 | } | ||
402 | |||
335 | static inline u32 iop_desc_get_dest_addr(struct iop_adma_desc_slot *desc, | 403 | static inline u32 iop_desc_get_dest_addr(struct iop_adma_desc_slot *desc, |
336 | struct iop_adma_chan *chan) | 404 | struct iop_adma_chan *chan) |
337 | { | 405 | { |
@@ -349,6 +417,14 @@ static inline u32 iop_desc_get_dest_addr(struct iop_adma_desc_slot *desc, | |||
349 | return 0; | 417 | return 0; |
350 | } | 418 | } |
351 | 419 | ||
420 | |||
421 | static inline u32 iop_desc_get_qdest_addr(struct iop_adma_desc_slot *desc, | ||
422 | struct iop_adma_chan *chan) | ||
423 | { | ||
424 | BUG(); | ||
425 | return 0; | ||
426 | } | ||
427 | |||
352 | static inline u32 iop_desc_get_byte_count(struct iop_adma_desc_slot *desc, | 428 | static inline u32 iop_desc_get_byte_count(struct iop_adma_desc_slot *desc, |
353 | struct iop_adma_chan *chan) | 429 | struct iop_adma_chan *chan) |
354 | { | 430 | { |
@@ -756,13 +832,14 @@ static inline void iop_desc_set_block_fill_val(struct iop_adma_desc_slot *desc, | |||
756 | hw_desc->src[0] = val; | 832 | hw_desc->src[0] = val; |
757 | } | 833 | } |
758 | 834 | ||
759 | static inline int iop_desc_get_zero_result(struct iop_adma_desc_slot *desc) | 835 | static inline enum sum_check_flags |
836 | iop_desc_get_zero_result(struct iop_adma_desc_slot *desc) | ||
760 | { | 837 | { |
761 | struct iop3xx_desc_aau *hw_desc = desc->hw_desc; | 838 | struct iop3xx_desc_aau *hw_desc = desc->hw_desc; |
762 | struct iop3xx_aau_desc_ctrl desc_ctrl = hw_desc->desc_ctrl_field; | 839 | struct iop3xx_aau_desc_ctrl desc_ctrl = hw_desc->desc_ctrl_field; |
763 | 840 | ||
764 | iop_paranoia(!(desc_ctrl.tx_complete && desc_ctrl.zero_result_en)); | 841 | iop_paranoia(!(desc_ctrl.tx_complete && desc_ctrl.zero_result_en)); |
765 | return desc_ctrl.zero_result_err; | 842 | return desc_ctrl.zero_result_err << SUM_CHECK_P; |
766 | } | 843 | } |
767 | 844 | ||
768 | static inline void iop_chan_append(struct iop_adma_chan *chan) | 845 | static inline void iop_chan_append(struct iop_adma_chan *chan) |
diff --git a/arch/arm/include/asm/hardware/iop3xx.h b/arch/arm/include/asm/hardware/iop3xx.h index 4b8e7f559929..8d60ad267e3a 100644 --- a/arch/arm/include/asm/hardware/iop3xx.h +++ b/arch/arm/include/asm/hardware/iop3xx.h | |||
@@ -215,6 +215,7 @@ extern int iop3xx_get_init_atu(void); | |||
215 | * IOP3XX I/O and Mem space regions for PCI autoconfiguration | 215 | * IOP3XX I/O and Mem space regions for PCI autoconfiguration |
216 | */ | 216 | */ |
217 | #define IOP3XX_PCI_LOWER_MEM_PA 0x80000000 | 217 | #define IOP3XX_PCI_LOWER_MEM_PA 0x80000000 |
218 | #define IOP3XX_PCI_MEM_WINDOW_SIZE 0x08000000 | ||
218 | 219 | ||
219 | #define IOP3XX_PCI_IO_WINDOW_SIZE 0x00010000 | 220 | #define IOP3XX_PCI_IO_WINDOW_SIZE 0x00010000 |
220 | #define IOP3XX_PCI_LOWER_IO_PA 0x90000000 | 221 | #define IOP3XX_PCI_LOWER_IO_PA 0x90000000 |
diff --git a/arch/arm/include/asm/hardware/iop_adma.h b/arch/arm/include/asm/hardware/iop_adma.h index 385c6e8cbbd2..59b8c3892f76 100644 --- a/arch/arm/include/asm/hardware/iop_adma.h +++ b/arch/arm/include/asm/hardware/iop_adma.h | |||
@@ -86,6 +86,7 @@ struct iop_adma_chan { | |||
86 | * @idx: pool index | 86 | * @idx: pool index |
87 | * @unmap_src_cnt: number of xor sources | 87 | * @unmap_src_cnt: number of xor sources |
88 | * @unmap_len: transaction bytecount | 88 | * @unmap_len: transaction bytecount |
89 | * @tx_list: list of descriptors that are associated with one operation | ||
89 | * @async_tx: support for the async_tx api | 90 | * @async_tx: support for the async_tx api |
90 | * @group_list: list of slots that make up a multi-descriptor transaction | 91 | * @group_list: list of slots that make up a multi-descriptor transaction |
91 | * for example transfer lengths larger than the supported hw max | 92 | * for example transfer lengths larger than the supported hw max |
@@ -102,10 +103,12 @@ struct iop_adma_desc_slot { | |||
102 | u16 idx; | 103 | u16 idx; |
103 | u16 unmap_src_cnt; | 104 | u16 unmap_src_cnt; |
104 | size_t unmap_len; | 105 | size_t unmap_len; |
106 | struct list_head tx_list; | ||
105 | struct dma_async_tx_descriptor async_tx; | 107 | struct dma_async_tx_descriptor async_tx; |
106 | union { | 108 | union { |
107 | u32 *xor_check_result; | 109 | u32 *xor_check_result; |
108 | u32 *crc32_result; | 110 | u32 *crc32_result; |
111 | u32 *pq_check_result; | ||
109 | }; | 112 | }; |
110 | }; | 113 | }; |
111 | 114 | ||
diff --git a/arch/arm/include/asm/mach/mmc.h b/arch/arm/include/asm/mach/mmc.h deleted file mode 100644 index b490ecc79def..000000000000 --- a/arch/arm/include/asm/mach/mmc.h +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/include/asm/mach/mmc.h | ||
3 | */ | ||
4 | #ifndef ASMARM_MACH_MMC_H | ||
5 | #define ASMARM_MACH_MMC_H | ||
6 | |||
7 | #include <linux/mmc/host.h> | ||
8 | |||
9 | struct mmc_platform_data { | ||
10 | unsigned int ocr_mask; /* available voltages */ | ||
11 | u32 (*translate_vdd)(struct device *, unsigned int); | ||
12 | unsigned int (*status)(struct device *); | ||
13 | int gpio_wp; | ||
14 | int gpio_cd; | ||
15 | }; | ||
16 | |||
17 | #endif | ||
diff --git a/arch/arm/include/asm/mmu_context.h b/arch/arm/include/asm/mmu_context.h index bcdb9291ef0c..de6cefb329dd 100644 --- a/arch/arm/include/asm/mmu_context.h +++ b/arch/arm/include/asm/mmu_context.h | |||
@@ -103,14 +103,15 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next, | |||
103 | 103 | ||
104 | #ifdef CONFIG_SMP | 104 | #ifdef CONFIG_SMP |
105 | /* check for possible thread migration */ | 105 | /* check for possible thread migration */ |
106 | if (!cpus_empty(next->cpu_vm_mask) && !cpu_isset(cpu, next->cpu_vm_mask)) | 106 | if (!cpumask_empty(mm_cpumask(next)) && |
107 | !cpumask_test_cpu(cpu, mm_cpumask(next))) | ||
107 | __flush_icache_all(); | 108 | __flush_icache_all(); |
108 | #endif | 109 | #endif |
109 | if (!cpu_test_and_set(cpu, next->cpu_vm_mask) || prev != next) { | 110 | if (!cpumask_test_and_set_cpu(cpu, mm_cpumask(next)) || prev != next) { |
110 | check_context(next); | 111 | check_context(next); |
111 | cpu_switch_mm(next->pgd, next); | 112 | cpu_switch_mm(next->pgd, next); |
112 | if (cache_is_vivt()) | 113 | if (cache_is_vivt()) |
113 | cpu_clear(cpu, prev->cpu_vm_mask); | 114 | cpumask_clear_cpu(cpu, mm_cpumask(prev)); |
114 | } | 115 | } |
115 | #endif | 116 | #endif |
116 | } | 117 | } |
diff --git a/arch/arm/include/asm/smp.h b/arch/arm/include/asm/smp.h index a06e735b262a..e0d763be1846 100644 --- a/arch/arm/include/asm/smp.h +++ b/arch/arm/include/asm/smp.h | |||
@@ -93,7 +93,6 @@ extern void platform_cpu_enable(unsigned int cpu); | |||
93 | 93 | ||
94 | extern void arch_send_call_function_single_ipi(int cpu); | 94 | extern void arch_send_call_function_single_ipi(int cpu); |
95 | extern void arch_send_call_function_ipi_mask(const struct cpumask *mask); | 95 | extern void arch_send_call_function_ipi_mask(const struct cpumask *mask); |
96 | #define arch_send_call_function_ipi_mask arch_send_call_function_ipi_mask | ||
97 | 96 | ||
98 | /* | 97 | /* |
99 | * show local interrupt info | 98 | * show local interrupt info |
diff --git a/arch/arm/include/asm/smp_plat.h b/arch/arm/include/asm/smp_plat.h new file mode 100644 index 000000000000..59303e200845 --- /dev/null +++ b/arch/arm/include/asm/smp_plat.h | |||
@@ -0,0 +1,16 @@ | |||
1 | /* | ||
2 | * ARM specific SMP header, this contains our implementation | ||
3 | * details. | ||
4 | */ | ||
5 | #ifndef __ASMARM_SMP_PLAT_H | ||
6 | #define __ASMARM_SMP_PLAT_H | ||
7 | |||
8 | #include <asm/cputype.h> | ||
9 | |||
10 | /* all SMP configurations have the extended CPUID registers */ | ||
11 | static inline int tlb_ops_need_broadcast(void) | ||
12 | { | ||
13 | return ((read_cpuid_ext(CPUID_EXT_MMFR3) >> 12) & 0xf) < 2; | ||
14 | } | ||
15 | |||
16 | #endif | ||
diff --git a/arch/arm/include/asm/tcm.h b/arch/arm/include/asm/tcm.h new file mode 100644 index 000000000000..5929ef5d927a --- /dev/null +++ b/arch/arm/include/asm/tcm.h | |||
@@ -0,0 +1,31 @@ | |||
1 | /* | ||
2 | * | ||
3 | * Copyright (C) 2008-2009 ST-Ericsson AB | ||
4 | * License terms: GNU General Public License (GPL) version 2 | ||
5 | * | ||
6 | * Author: Rickard Andersson <rickard.andersson@stericsson.com> | ||
7 | * Author: Linus Walleij <linus.walleij@stericsson.com> | ||
8 | * | ||
9 | */ | ||
10 | #ifndef __ASMARM_TCM_H | ||
11 | #define __ASMARM_TCM_H | ||
12 | |||
13 | #ifndef CONFIG_HAVE_TCM | ||
14 | #error "You should not be including tcm.h unless you have a TCM!" | ||
15 | #endif | ||
16 | |||
17 | #include <linux/compiler.h> | ||
18 | |||
19 | /* Tag variables with this */ | ||
20 | #define __tcmdata __section(.tcm.data) | ||
21 | /* Tag constants with this */ | ||
22 | #define __tcmconst __section(.tcm.rodata) | ||
23 | /* Tag functions inside TCM called from outside TCM with this */ | ||
24 | #define __tcmfunc __attribute__((long_call)) __section(.tcm.text) noinline | ||
25 | /* Tag function inside TCM called from inside TCM with this */ | ||
26 | #define __tcmlocalfunc __section(.tcm.text) | ||
27 | |||
28 | void *tcm_alloc(size_t len); | ||
29 | void tcm_free(void *addr, size_t len); | ||
30 | |||
31 | #endif | ||
diff --git a/arch/arm/include/asm/tlbflush.h b/arch/arm/include/asm/tlbflush.h index c964f3fc3bc5..a45ab5dd8255 100644 --- a/arch/arm/include/asm/tlbflush.h +++ b/arch/arm/include/asm/tlbflush.h | |||
@@ -350,7 +350,7 @@ static inline void local_flush_tlb_mm(struct mm_struct *mm) | |||
350 | if (tlb_flag(TLB_WB)) | 350 | if (tlb_flag(TLB_WB)) |
351 | dsb(); | 351 | dsb(); |
352 | 352 | ||
353 | if (cpu_isset(smp_processor_id(), mm->cpu_vm_mask)) { | 353 | if (cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm))) { |
354 | if (tlb_flag(TLB_V3_FULL)) | 354 | if (tlb_flag(TLB_V3_FULL)) |
355 | asm("mcr p15, 0, %0, c6, c0, 0" : : "r" (zero) : "cc"); | 355 | asm("mcr p15, 0, %0, c6, c0, 0" : : "r" (zero) : "cc"); |
356 | if (tlb_flag(TLB_V4_U_FULL)) | 356 | if (tlb_flag(TLB_V4_U_FULL)) |
@@ -388,7 +388,7 @@ local_flush_tlb_page(struct vm_area_struct *vma, unsigned long uaddr) | |||
388 | if (tlb_flag(TLB_WB)) | 388 | if (tlb_flag(TLB_WB)) |
389 | dsb(); | 389 | dsb(); |
390 | 390 | ||
391 | if (cpu_isset(smp_processor_id(), vma->vm_mm->cpu_vm_mask)) { | 391 | if (cpumask_test_cpu(smp_processor_id(), mm_cpumask(vma->vm_mm))) { |
392 | if (tlb_flag(TLB_V3_PAGE)) | 392 | if (tlb_flag(TLB_V3_PAGE)) |
393 | asm("mcr p15, 0, %0, c6, c0, 0" : : "r" (uaddr) : "cc"); | 393 | asm("mcr p15, 0, %0, c6, c0, 0" : : "r" (uaddr) : "cc"); |
394 | if (tlb_flag(TLB_V4_U_PAGE)) | 394 | if (tlb_flag(TLB_V4_U_PAGE)) |
diff --git a/arch/arm/include/asm/unified.h b/arch/arm/include/asm/unified.h index 073e85b9b961..bc631161e9c6 100644 --- a/arch/arm/include/asm/unified.h +++ b/arch/arm/include/asm/unified.h | |||
@@ -35,7 +35,9 @@ | |||
35 | 35 | ||
36 | #define ARM(x...) | 36 | #define ARM(x...) |
37 | #define THUMB(x...) x | 37 | #define THUMB(x...) x |
38 | #ifdef __ASSEMBLY__ | ||
38 | #define W(instr) instr.w | 39 | #define W(instr) instr.w |
40 | #endif | ||
39 | #define BSYM(sym) sym + 1 | 41 | #define BSYM(sym) sym + 1 |
40 | 42 | ||
41 | #else /* !CONFIG_THUMB2_KERNEL */ | 43 | #else /* !CONFIG_THUMB2_KERNEL */ |
@@ -45,7 +47,9 @@ | |||
45 | 47 | ||
46 | #define ARM(x...) x | 48 | #define ARM(x...) x |
47 | #define THUMB(x...) | 49 | #define THUMB(x...) |
50 | #ifdef __ASSEMBLY__ | ||
48 | #define W(instr) instr | 51 | #define W(instr) instr |
52 | #endif | ||
49 | #define BSYM(sym) sym | 53 | #define BSYM(sym) sym |
50 | 54 | ||
51 | #endif /* CONFIG_THUMB2_KERNEL */ | 55 | #endif /* CONFIG_THUMB2_KERNEL */ |
diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h index 89f7eade20af..7020217fc49f 100644 --- a/arch/arm/include/asm/unistd.h +++ b/arch/arm/include/asm/unistd.h | |||
@@ -456,6 +456,7 @@ | |||
456 | * Unimplemented (or alternatively implemented) syscalls | 456 | * Unimplemented (or alternatively implemented) syscalls |
457 | */ | 457 | */ |
458 | #define __IGNORE_fadvise64_64 1 | 458 | #define __IGNORE_fadvise64_64 1 |
459 | #define __IGNORE_migrate_pages 1 | ||
459 | 460 | ||
460 | #endif /* __KERNEL__ */ | 461 | #endif /* __KERNEL__ */ |
461 | #endif /* __ASM_ARM_UNISTD_H */ | 462 | #endif /* __ASM_ARM_UNISTD_H */ |
diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile index 3213c9382b17..79087dd6d869 100644 --- a/arch/arm/kernel/Makefile +++ b/arch/arm/kernel/Makefile | |||
@@ -2,7 +2,8 @@ | |||
2 | # Makefile for the linux kernel. | 2 | # Makefile for the linux kernel. |
3 | # | 3 | # |
4 | 4 | ||
5 | AFLAGS_head.o := -DTEXT_OFFSET=$(TEXT_OFFSET) | 5 | CPPFLAGS_vmlinux.lds := -DTEXT_OFFSET=$(TEXT_OFFSET) |
6 | AFLAGS_head.o := -DTEXT_OFFSET=$(TEXT_OFFSET) | ||
6 | 7 | ||
7 | ifdef CONFIG_DYNAMIC_FTRACE | 8 | ifdef CONFIG_DYNAMIC_FTRACE |
8 | CFLAGS_REMOVE_ftrace.o = -pg | 9 | CFLAGS_REMOVE_ftrace.o = -pg |
@@ -34,6 +35,7 @@ obj-$(CONFIG_OABI_COMPAT) += sys_oabi-compat.o | |||
34 | obj-$(CONFIG_ARM_THUMBEE) += thumbee.o | 35 | obj-$(CONFIG_ARM_THUMBEE) += thumbee.o |
35 | obj-$(CONFIG_KGDB) += kgdb.o | 36 | obj-$(CONFIG_KGDB) += kgdb.o |
36 | obj-$(CONFIG_ARM_UNWIND) += unwind.o | 37 | obj-$(CONFIG_ARM_UNWIND) += unwind.o |
38 | obj-$(CONFIG_HAVE_TCM) += tcm.o | ||
37 | 39 | ||
38 | obj-$(CONFIG_CRUNCH) += crunch.o crunch-bits.o | 40 | obj-$(CONFIG_CRUNCH) += crunch.o crunch-bits.o |
39 | AFLAGS_crunch-bits.o := -Wa,-mcpu=ep9312 | 41 | AFLAGS_crunch-bits.o := -Wa,-mcpu=ep9312 |
diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S index 3d727a8a23bc..322410be573c 100644 --- a/arch/arm/kernel/entry-armv.S +++ b/arch/arm/kernel/entry-armv.S | |||
@@ -272,7 +272,15 @@ __und_svc: | |||
272 | @ | 272 | @ |
273 | @ r0 - instruction | 273 | @ r0 - instruction |
274 | @ | 274 | @ |
275 | #ifndef CONFIG_THUMB2_KERNEL | ||
275 | ldr r0, [r2, #-4] | 276 | ldr r0, [r2, #-4] |
277 | #else | ||
278 | ldrh r0, [r2, #-2] @ Thumb instruction at LR - 2 | ||
279 | and r9, r0, #0xf800 | ||
280 | cmp r9, #0xe800 @ 32-bit instruction if xx >= 0 | ||
281 | ldrhhs r9, [r2] @ bottom 16 bits | ||
282 | orrhs r0, r9, r0, lsl #16 | ||
283 | #endif | ||
276 | adr r9, BSYM(1f) | 284 | adr r9, BSYM(1f) |
277 | bl call_fpe | 285 | bl call_fpe |
278 | 286 | ||
@@ -303,22 +311,16 @@ __pabt_svc: | |||
303 | tst r3, #PSR_I_BIT | 311 | tst r3, #PSR_I_BIT |
304 | biceq r9, r9, #PSR_I_BIT | 312 | biceq r9, r9, #PSR_I_BIT |
305 | 313 | ||
306 | @ | ||
307 | @ set args, then call main handler | ||
308 | @ | ||
309 | @ r0 - address of faulting instruction | ||
310 | @ r1 - pointer to registers on stack | ||
311 | @ | ||
312 | #ifdef MULTI_PABORT | ||
313 | mov r0, r2 @ pass address of aborted instruction. | 314 | mov r0, r2 @ pass address of aborted instruction. |
315 | #ifdef MULTI_PABORT | ||
314 | ldr r4, .LCprocfns | 316 | ldr r4, .LCprocfns |
315 | mov lr, pc | 317 | mov lr, pc |
316 | ldr pc, [r4, #PROCESSOR_PABT_FUNC] | 318 | ldr pc, [r4, #PROCESSOR_PABT_FUNC] |
317 | #else | 319 | #else |
318 | CPU_PABORT_HANDLER(r0, r2) | 320 | bl CPU_PABORT_HANDLER |
319 | #endif | 321 | #endif |
320 | msr cpsr_c, r9 @ Maybe enable interrupts | 322 | msr cpsr_c, r9 @ Maybe enable interrupts |
321 | mov r1, sp @ regs | 323 | mov r2, sp @ regs |
322 | bl do_PrefetchAbort @ call abort handler | 324 | bl do_PrefetchAbort @ call abort handler |
323 | 325 | ||
324 | @ | 326 | @ |
@@ -678,7 +680,9 @@ ENTRY(fp_enter) | |||
678 | .word no_fp | 680 | .word no_fp |
679 | .previous | 681 | .previous |
680 | 682 | ||
681 | no_fp: mov pc, lr | 683 | ENTRY(no_fp) |
684 | mov pc, lr | ||
685 | ENDPROC(no_fp) | ||
682 | 686 | ||
683 | __und_usr_unknown: | 687 | __und_usr_unknown: |
684 | enable_irq | 688 | enable_irq |
@@ -691,16 +695,16 @@ ENDPROC(__und_usr_unknown) | |||
691 | __pabt_usr: | 695 | __pabt_usr: |
692 | usr_entry | 696 | usr_entry |
693 | 697 | ||
694 | #ifdef MULTI_PABORT | ||
695 | mov r0, r2 @ pass address of aborted instruction. | 698 | mov r0, r2 @ pass address of aborted instruction. |
699 | #ifdef MULTI_PABORT | ||
696 | ldr r4, .LCprocfns | 700 | ldr r4, .LCprocfns |
697 | mov lr, pc | 701 | mov lr, pc |
698 | ldr pc, [r4, #PROCESSOR_PABT_FUNC] | 702 | ldr pc, [r4, #PROCESSOR_PABT_FUNC] |
699 | #else | 703 | #else |
700 | CPU_PABORT_HANDLER(r0, r2) | 704 | bl CPU_PABORT_HANDLER |
701 | #endif | 705 | #endif |
702 | enable_irq @ Enable interrupts | 706 | enable_irq @ Enable interrupts |
703 | mov r1, sp @ regs | 707 | mov r2, sp @ regs |
704 | bl do_PrefetchAbort @ call abort handler | 708 | bl do_PrefetchAbort @ call abort handler |
705 | UNWIND(.fnend ) | 709 | UNWIND(.fnend ) |
706 | /* fall through */ | 710 | /* fall through */ |
@@ -734,13 +738,6 @@ ENTRY(__switch_to) | |||
734 | #ifdef CONFIG_MMU | 738 | #ifdef CONFIG_MMU |
735 | ldr r6, [r2, #TI_CPU_DOMAIN] | 739 | ldr r6, [r2, #TI_CPU_DOMAIN] |
736 | #endif | 740 | #endif |
737 | #if __LINUX_ARM_ARCH__ >= 6 | ||
738 | #ifdef CONFIG_CPU_32v6K | ||
739 | clrex | ||
740 | #else | ||
741 | strex r5, r4, [ip] @ Clear exclusive monitor | ||
742 | #endif | ||
743 | #endif | ||
744 | #if defined(CONFIG_HAS_TLS_REG) | 741 | #if defined(CONFIG_HAS_TLS_REG) |
745 | mcr p15, 0, r3, c13, c0, 3 @ set TLS register | 742 | mcr p15, 0, r3, c13, c0, 3 @ set TLS register |
746 | #elif !defined(CONFIG_TLS_REG_EMUL) | 743 | #elif !defined(CONFIG_TLS_REG_EMUL) |
diff --git a/arch/arm/kernel/entry-common.S b/arch/arm/kernel/entry-common.S index 807cfebb0f44..f0fe95b7085d 100644 --- a/arch/arm/kernel/entry-common.S +++ b/arch/arm/kernel/entry-common.S | |||
@@ -126,7 +126,7 @@ ENTRY(__gnu_mcount_nc) | |||
126 | cmp r0, r2 | 126 | cmp r0, r2 |
127 | bne gnu_trace | 127 | bne gnu_trace |
128 | ldmia sp!, {r0-r3, ip, lr} | 128 | ldmia sp!, {r0-r3, ip, lr} |
129 | bx ip | 129 | mov pc, ip |
130 | 130 | ||
131 | gnu_trace: | 131 | gnu_trace: |
132 | ldr r1, [sp, #20] @ lr of instrumented routine | 132 | ldr r1, [sp, #20] @ lr of instrumented routine |
@@ -135,7 +135,7 @@ gnu_trace: | |||
135 | mov lr, pc | 135 | mov lr, pc |
136 | mov pc, r2 | 136 | mov pc, r2 |
137 | ldmia sp!, {r0-r3, ip, lr} | 137 | ldmia sp!, {r0-r3, ip, lr} |
138 | bx ip | 138 | mov pc, ip |
139 | 139 | ||
140 | ENTRY(mcount) | 140 | ENTRY(mcount) |
141 | stmdb sp!, {r0-r3, lr} | 141 | stmdb sp!, {r0-r3, lr} |
@@ -425,13 +425,6 @@ sys_mmap2: | |||
425 | #endif | 425 | #endif |
426 | ENDPROC(sys_mmap2) | 426 | ENDPROC(sys_mmap2) |
427 | 427 | ||
428 | ENTRY(pabort_ifar) | ||
429 | mrc p15, 0, r0, cr6, cr0, 2 | ||
430 | ENTRY(pabort_noifar) | ||
431 | mov pc, lr | ||
432 | ENDPROC(pabort_ifar) | ||
433 | ENDPROC(pabort_noifar) | ||
434 | |||
435 | #ifdef CONFIG_OABI_COMPAT | 428 | #ifdef CONFIG_OABI_COMPAT |
436 | 429 | ||
437 | /* | 430 | /* |
diff --git a/arch/arm/kernel/entry-header.S b/arch/arm/kernel/entry-header.S index a4eaf4f920c5..ac34c0d9384b 100644 --- a/arch/arm/kernel/entry-header.S +++ b/arch/arm/kernel/entry-header.S | |||
@@ -76,13 +76,27 @@ | |||
76 | #ifndef CONFIG_THUMB2_KERNEL | 76 | #ifndef CONFIG_THUMB2_KERNEL |
77 | .macro svc_exit, rpsr | 77 | .macro svc_exit, rpsr |
78 | msr spsr_cxsf, \rpsr | 78 | msr spsr_cxsf, \rpsr |
79 | #if defined(CONFIG_CPU_32v6K) | ||
80 | clrex @ clear the exclusive monitor | ||
79 | ldmia sp, {r0 - pc}^ @ load r0 - pc, cpsr | 81 | ldmia sp, {r0 - pc}^ @ load r0 - pc, cpsr |
82 | #elif defined (CONFIG_CPU_V6) | ||
83 | ldr r0, [sp] | ||
84 | strex r1, r2, [sp] @ clear the exclusive monitor | ||
85 | ldmib sp, {r1 - pc}^ @ load r1 - pc, cpsr | ||
86 | #else | ||
87 | ldmia sp, {r0 - pc}^ @ load r0 - pc, cpsr | ||
88 | #endif | ||
80 | .endm | 89 | .endm |
81 | 90 | ||
82 | .macro restore_user_regs, fast = 0, offset = 0 | 91 | .macro restore_user_regs, fast = 0, offset = 0 |
83 | ldr r1, [sp, #\offset + S_PSR] @ get calling cpsr | 92 | ldr r1, [sp, #\offset + S_PSR] @ get calling cpsr |
84 | ldr lr, [sp, #\offset + S_PC]! @ get pc | 93 | ldr lr, [sp, #\offset + S_PC]! @ get pc |
85 | msr spsr_cxsf, r1 @ save in spsr_svc | 94 | msr spsr_cxsf, r1 @ save in spsr_svc |
95 | #if defined(CONFIG_CPU_32v6K) | ||
96 | clrex @ clear the exclusive monitor | ||
97 | #elif defined (CONFIG_CPU_V6) | ||
98 | strex r1, r2, [sp] @ clear the exclusive monitor | ||
99 | #endif | ||
86 | .if \fast | 100 | .if \fast |
87 | ldmdb sp, {r1 - lr}^ @ get calling r1 - lr | 101 | ldmdb sp, {r1 - lr}^ @ get calling r1 - lr |
88 | .else | 102 | .else |
@@ -98,6 +112,7 @@ | |||
98 | .endm | 112 | .endm |
99 | #else /* CONFIG_THUMB2_KERNEL */ | 113 | #else /* CONFIG_THUMB2_KERNEL */ |
100 | .macro svc_exit, rpsr | 114 | .macro svc_exit, rpsr |
115 | clrex @ clear the exclusive monitor | ||
101 | ldr r0, [sp, #S_SP] @ top of the stack | 116 | ldr r0, [sp, #S_SP] @ top of the stack |
102 | ldr r1, [sp, #S_PC] @ return address | 117 | ldr r1, [sp, #S_PC] @ return address |
103 | tst r0, #4 @ orig stack 8-byte aligned? | 118 | tst r0, #4 @ orig stack 8-byte aligned? |
@@ -110,6 +125,7 @@ | |||
110 | .endm | 125 | .endm |
111 | 126 | ||
112 | .macro restore_user_regs, fast = 0, offset = 0 | 127 | .macro restore_user_regs, fast = 0, offset = 0 |
128 | clrex @ clear the exclusive monitor | ||
113 | mov r2, sp | 129 | mov r2, sp |
114 | load_user_sp_lr r2, r3, \offset + S_SP @ calling sp, lr | 130 | load_user_sp_lr r2, r3, \offset + S_SP @ calling sp, lr |
115 | ldr r1, [sp, #\offset + S_PSR] @ get calling cpsr | 131 | ldr r1, [sp, #\offset + S_PSR] @ get calling cpsr |
diff --git a/arch/arm/kernel/head-common.S b/arch/arm/kernel/head-common.S index 93ad576b2d74..885a7214418d 100644 --- a/arch/arm/kernel/head-common.S +++ b/arch/arm/kernel/head-common.S | |||
@@ -13,6 +13,7 @@ | |||
13 | 13 | ||
14 | #define ATAG_CORE 0x54410001 | 14 | #define ATAG_CORE 0x54410001 |
15 | #define ATAG_CORE_SIZE ((2*4 + 3*4) >> 2) | 15 | #define ATAG_CORE_SIZE ((2*4 + 3*4) >> 2) |
16 | #define ATAG_CORE_SIZE_EMPTY ((2*4) >> 2) | ||
16 | 17 | ||
17 | .align 2 | 18 | .align 2 |
18 | .type __switch_data, %object | 19 | .type __switch_data, %object |
@@ -251,7 +252,8 @@ __vet_atags: | |||
251 | bne 1f | 252 | bne 1f |
252 | 253 | ||
253 | ldr r5, [r2, #0] @ is first tag ATAG_CORE? | 254 | ldr r5, [r2, #0] @ is first tag ATAG_CORE? |
254 | subs r5, r5, #ATAG_CORE_SIZE | 255 | cmp r5, #ATAG_CORE_SIZE |
256 | cmpne r5, #ATAG_CORE_SIZE_EMPTY | ||
255 | bne 1f | 257 | bne 1f |
256 | ldr r5, [r2, #4] | 258 | ldr r5, [r2, #4] |
257 | ldr r6, =ATAG_CORE | 259 | ldr r6, =ATAG_CORE |
diff --git a/arch/arm/kernel/init_task.c b/arch/arm/kernel/init_task.c index 3f470866bb89..e7cbb50dc356 100644 --- a/arch/arm/kernel/init_task.c +++ b/arch/arm/kernel/init_task.c | |||
@@ -24,9 +24,8 @@ static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand); | |||
24 | * | 24 | * |
25 | * The things we do for performance.. | 25 | * The things we do for performance.. |
26 | */ | 26 | */ |
27 | union thread_union init_thread_union | 27 | union thread_union init_thread_union __init_task_data = |
28 | __attribute__((__section__(".data.init_task"))) = | 28 | { INIT_THREAD_INFO(init_task) }; |
29 | { INIT_THREAD_INFO(init_task) }; | ||
30 | 29 | ||
31 | /* | 30 | /* |
32 | * Initial task structure. | 31 | * Initial task structure. |
diff --git a/arch/arm/kernel/kprobes.c b/arch/arm/kernel/kprobes.c index f692efddd449..60c62c377fa9 100644 --- a/arch/arm/kernel/kprobes.c +++ b/arch/arm/kernel/kprobes.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/kernel.h> | 22 | #include <linux/kernel.h> |
23 | #include <linux/kprobes.h> | 23 | #include <linux/kprobes.h> |
24 | #include <linux/module.h> | 24 | #include <linux/module.h> |
25 | #include <linux/stop_machine.h> | ||
25 | #include <linux/stringify.h> | 26 | #include <linux/stringify.h> |
26 | #include <asm/traps.h> | 27 | #include <asm/traps.h> |
27 | #include <asm/cacheflush.h> | 28 | #include <asm/cacheflush.h> |
@@ -83,10 +84,24 @@ void __kprobes arch_arm_kprobe(struct kprobe *p) | |||
83 | flush_insns(p->addr, 1); | 84 | flush_insns(p->addr, 1); |
84 | } | 85 | } |
85 | 86 | ||
87 | /* | ||
88 | * The actual disarming is done here on each CPU and synchronized using | ||
89 | * stop_machine. This synchronization is necessary on SMP to avoid removing | ||
90 | * a probe between the moment the 'Undefined Instruction' exception is raised | ||
91 | * and the moment the exception handler reads the faulting instruction from | ||
92 | * memory. | ||
93 | */ | ||
94 | int __kprobes __arch_disarm_kprobe(void *p) | ||
95 | { | ||
96 | struct kprobe *kp = p; | ||
97 | *kp->addr = kp->opcode; | ||
98 | flush_insns(kp->addr, 1); | ||
99 | return 0; | ||
100 | } | ||
101 | |||
86 | void __kprobes arch_disarm_kprobe(struct kprobe *p) | 102 | void __kprobes arch_disarm_kprobe(struct kprobe *p) |
87 | { | 103 | { |
88 | *p->addr = p->opcode; | 104 | stop_machine(__arch_disarm_kprobe, p, &cpu_online_map); |
89 | flush_insns(p->addr, 1); | ||
90 | } | 105 | } |
91 | 106 | ||
92 | void __kprobes arch_remove_kprobe(struct kprobe *p) | 107 | void __kprobes arch_remove_kprobe(struct kprobe *p) |
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index d4d4f77c91b2..c6c57b640b6b 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c | |||
@@ -45,6 +45,7 @@ | |||
45 | 45 | ||
46 | #include "compat.h" | 46 | #include "compat.h" |
47 | #include "atags.h" | 47 | #include "atags.h" |
48 | #include "tcm.h" | ||
48 | 49 | ||
49 | #ifndef MEM_SIZE | 50 | #ifndef MEM_SIZE |
50 | #define MEM_SIZE (16*1024*1024) | 51 | #define MEM_SIZE (16*1024*1024) |
@@ -749,6 +750,7 @@ void __init setup_arch(char **cmdline_p) | |||
749 | #endif | 750 | #endif |
750 | 751 | ||
751 | cpu_init(); | 752 | cpu_init(); |
753 | tcm_init(); | ||
752 | 754 | ||
753 | /* | 755 | /* |
754 | * Set up various architecture-specific pointers | 756 | * Set up various architecture-specific pointers |
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index de885fd256c5..57162af53dc9 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <asm/tlbflush.h> | 36 | #include <asm/tlbflush.h> |
37 | #include <asm/ptrace.h> | 37 | #include <asm/ptrace.h> |
38 | #include <asm/localtimer.h> | 38 | #include <asm/localtimer.h> |
39 | #include <asm/smp_plat.h> | ||
39 | 40 | ||
40 | /* | 41 | /* |
41 | * as from 2.5, kernels no longer have an init_tasks structure | 42 | * as from 2.5, kernels no longer have an init_tasks structure |
@@ -153,7 +154,7 @@ int __cpuinit __cpu_up(unsigned int cpu) | |||
153 | /* | 154 | /* |
154 | * __cpu_disable runs on the processor to be shutdown. | 155 | * __cpu_disable runs on the processor to be shutdown. |
155 | */ | 156 | */ |
156 | int __cpuexit __cpu_disable(void) | 157 | int __cpu_disable(void) |
157 | { | 158 | { |
158 | unsigned int cpu = smp_processor_id(); | 159 | unsigned int cpu = smp_processor_id(); |
159 | struct task_struct *p; | 160 | struct task_struct *p; |
@@ -189,7 +190,7 @@ int __cpuexit __cpu_disable(void) | |||
189 | read_lock(&tasklist_lock); | 190 | read_lock(&tasklist_lock); |
190 | for_each_process(p) { | 191 | for_each_process(p) { |
191 | if (p->mm) | 192 | if (p->mm) |
192 | cpu_clear(cpu, p->mm->cpu_vm_mask); | 193 | cpumask_clear_cpu(cpu, mm_cpumask(p->mm)); |
193 | } | 194 | } |
194 | read_unlock(&tasklist_lock); | 195 | read_unlock(&tasklist_lock); |
195 | 196 | ||
@@ -200,7 +201,7 @@ int __cpuexit __cpu_disable(void) | |||
200 | * called on the thread which is asking for a CPU to be shutdown - | 201 | * called on the thread which is asking for a CPU to be shutdown - |
201 | * waits until shutdown has completed, or it is timed out. | 202 | * waits until shutdown has completed, or it is timed out. |
202 | */ | 203 | */ |
203 | void __cpuexit __cpu_die(unsigned int cpu) | 204 | void __cpu_die(unsigned int cpu) |
204 | { | 205 | { |
205 | if (!platform_cpu_kill(cpu)) | 206 | if (!platform_cpu_kill(cpu)) |
206 | printk("CPU%u: unable to kill\n", cpu); | 207 | printk("CPU%u: unable to kill\n", cpu); |
@@ -214,7 +215,7 @@ void __cpuexit __cpu_die(unsigned int cpu) | |||
214 | * of the other hotplug-cpu capable cores, so presumably coming | 215 | * of the other hotplug-cpu capable cores, so presumably coming |
215 | * out of idle fixes this. | 216 | * out of idle fixes this. |
216 | */ | 217 | */ |
217 | void __cpuexit cpu_die(void) | 218 | void __ref cpu_die(void) |
218 | { | 219 | { |
219 | unsigned int cpu = smp_processor_id(); | 220 | unsigned int cpu = smp_processor_id(); |
220 | 221 | ||
@@ -257,7 +258,7 @@ asmlinkage void __cpuinit secondary_start_kernel(void) | |||
257 | atomic_inc(&mm->mm_users); | 258 | atomic_inc(&mm->mm_users); |
258 | atomic_inc(&mm->mm_count); | 259 | atomic_inc(&mm->mm_count); |
259 | current->active_mm = mm; | 260 | current->active_mm = mm; |
260 | cpu_set(cpu, mm->cpu_vm_mask); | 261 | cpumask_set_cpu(cpu, mm_cpumask(mm)); |
261 | cpu_switch_mm(mm->pgd, mm); | 262 | cpu_switch_mm(mm->pgd, mm); |
262 | enter_lazy_tlb(mm, current); | 263 | enter_lazy_tlb(mm, current); |
263 | local_flush_tlb_all(); | 264 | local_flush_tlb_all(); |
@@ -586,12 +587,6 @@ struct tlb_args { | |||
586 | unsigned long ta_end; | 587 | unsigned long ta_end; |
587 | }; | 588 | }; |
588 | 589 | ||
589 | /* all SMP configurations have the extended CPUID registers */ | ||
590 | static inline int tlb_ops_need_broadcast(void) | ||
591 | { | ||
592 | return ((read_cpuid_ext(CPUID_EXT_MMFR3) >> 12) & 0xf) < 2; | ||
593 | } | ||
594 | |||
595 | static inline void ipi_flush_tlb_all(void *ignored) | 590 | static inline void ipi_flush_tlb_all(void *ignored) |
596 | { | 591 | { |
597 | local_flush_tlb_all(); | 592 | local_flush_tlb_all(); |
@@ -643,7 +638,7 @@ void flush_tlb_all(void) | |||
643 | void flush_tlb_mm(struct mm_struct *mm) | 638 | void flush_tlb_mm(struct mm_struct *mm) |
644 | { | 639 | { |
645 | if (tlb_ops_need_broadcast()) | 640 | if (tlb_ops_need_broadcast()) |
646 | on_each_cpu_mask(ipi_flush_tlb_mm, mm, 1, &mm->cpu_vm_mask); | 641 | on_each_cpu_mask(ipi_flush_tlb_mm, mm, 1, mm_cpumask(mm)); |
647 | else | 642 | else |
648 | local_flush_tlb_mm(mm); | 643 | local_flush_tlb_mm(mm); |
649 | } | 644 | } |
@@ -654,7 +649,7 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long uaddr) | |||
654 | struct tlb_args ta; | 649 | struct tlb_args ta; |
655 | ta.ta_vma = vma; | 650 | ta.ta_vma = vma; |
656 | ta.ta_start = uaddr; | 651 | ta.ta_start = uaddr; |
657 | on_each_cpu_mask(ipi_flush_tlb_page, &ta, 1, &vma->vm_mm->cpu_vm_mask); | 652 | on_each_cpu_mask(ipi_flush_tlb_page, &ta, 1, mm_cpumask(vma->vm_mm)); |
658 | } else | 653 | } else |
659 | local_flush_tlb_page(vma, uaddr); | 654 | local_flush_tlb_page(vma, uaddr); |
660 | } | 655 | } |
@@ -677,7 +672,7 @@ void flush_tlb_range(struct vm_area_struct *vma, | |||
677 | ta.ta_vma = vma; | 672 | ta.ta_vma = vma; |
678 | ta.ta_start = start; | 673 | ta.ta_start = start; |
679 | ta.ta_end = end; | 674 | ta.ta_end = end; |
680 | on_each_cpu_mask(ipi_flush_tlb_range, &ta, 1, &vma->vm_mm->cpu_vm_mask); | 675 | on_each_cpu_mask(ipi_flush_tlb_range, &ta, 1, mm_cpumask(vma->vm_mm)); |
681 | } else | 676 | } else |
682 | local_flush_tlb_range(vma, start, end); | 677 | local_flush_tlb_range(vma, start, end); |
683 | } | 678 | } |
diff --git a/arch/arm/kernel/smp_twd.c b/arch/arm/kernel/smp_twd.c index d8c88c633c6f..a73a34dccf2a 100644 --- a/arch/arm/kernel/smp_twd.c +++ b/arch/arm/kernel/smp_twd.c | |||
@@ -166,10 +166,12 @@ void __cpuinit twd_timer_setup(struct clock_event_device *clk) | |||
166 | clockevents_register_device(clk); | 166 | clockevents_register_device(clk); |
167 | } | 167 | } |
168 | 168 | ||
169 | #ifdef CONFIG_HOTPLUG_CPU | ||
169 | /* | 170 | /* |
170 | * take a local timer down | 171 | * take a local timer down |
171 | */ | 172 | */ |
172 | void __cpuexit twd_timer_stop(void) | 173 | void twd_timer_stop(void) |
173 | { | 174 | { |
174 | __raw_writel(0, twd_base + TWD_TIMER_CONTROL); | 175 | __raw_writel(0, twd_base + TWD_TIMER_CONTROL); |
175 | } | 176 | } |
177 | #endif | ||
diff --git a/arch/arm/kernel/sys_arm.c b/arch/arm/kernel/sys_arm.c index b3ec641b5cf8..78ecaac65206 100644 --- a/arch/arm/kernel/sys_arm.c +++ b/arch/arm/kernel/sys_arm.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <linux/mman.h> | 25 | #include <linux/mman.h> |
26 | #include <linux/fs.h> | 26 | #include <linux/fs.h> |
27 | #include <linux/file.h> | 27 | #include <linux/file.h> |
28 | #include <linux/utsname.h> | ||
29 | #include <linux/ipc.h> | 28 | #include <linux/ipc.h> |
30 | #include <linux/uaccess.h> | 29 | #include <linux/uaccess.h> |
31 | 30 | ||
diff --git a/arch/arm/kernel/tcm.c b/arch/arm/kernel/tcm.c new file mode 100644 index 000000000000..e50303868f1b --- /dev/null +++ b/arch/arm/kernel/tcm.c | |||
@@ -0,0 +1,246 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2008-2009 ST-Ericsson AB | ||
3 | * License terms: GNU General Public License (GPL) version 2 | ||
4 | * TCM memory handling for ARM systems | ||
5 | * | ||
6 | * Author: Linus Walleij <linus.walleij@stericsson.com> | ||
7 | * Author: Rickard Andersson <rickard.andersson@stericsson.com> | ||
8 | */ | ||
9 | #include <linux/init.h> | ||
10 | #include <linux/kernel.h> | ||
11 | #include <linux/module.h> | ||
12 | #include <linux/stddef.h> | ||
13 | #include <linux/ioport.h> | ||
14 | #include <linux/genalloc.h> | ||
15 | #include <linux/string.h> /* memcpy */ | ||
16 | #include <asm/page.h> /* PAGE_SHIFT */ | ||
17 | #include <asm/cputype.h> | ||
18 | #include <asm/mach/map.h> | ||
19 | #include <mach/memory.h> | ||
20 | #include "tcm.h" | ||
21 | |||
22 | /* Scream and warn about misuse */ | ||
23 | #if !defined(ITCM_OFFSET) || !defined(ITCM_END) || \ | ||
24 | !defined(DTCM_OFFSET) || !defined(DTCM_END) | ||
25 | #error "TCM support selected but offsets not defined!" | ||
26 | #endif | ||
27 | |||
28 | static struct gen_pool *tcm_pool; | ||
29 | |||
30 | /* TCM section definitions from the linker */ | ||
31 | extern char __itcm_start, __sitcm_text, __eitcm_text; | ||
32 | extern char __dtcm_start, __sdtcm_data, __edtcm_data; | ||
33 | |||
34 | /* | ||
35 | * TCM memory resources | ||
36 | */ | ||
37 | static struct resource dtcm_res = { | ||
38 | .name = "DTCM RAM", | ||
39 | .start = DTCM_OFFSET, | ||
40 | .end = DTCM_END, | ||
41 | .flags = IORESOURCE_MEM | ||
42 | }; | ||
43 | |||
44 | static struct resource itcm_res = { | ||
45 | .name = "ITCM RAM", | ||
46 | .start = ITCM_OFFSET, | ||
47 | .end = ITCM_END, | ||
48 | .flags = IORESOURCE_MEM | ||
49 | }; | ||
50 | |||
51 | static struct map_desc dtcm_iomap[] __initdata = { | ||
52 | { | ||
53 | .virtual = DTCM_OFFSET, | ||
54 | .pfn = __phys_to_pfn(DTCM_OFFSET), | ||
55 | .length = (DTCM_END - DTCM_OFFSET + 1), | ||
56 | .type = MT_UNCACHED | ||
57 | } | ||
58 | }; | ||
59 | |||
60 | static struct map_desc itcm_iomap[] __initdata = { | ||
61 | { | ||
62 | .virtual = ITCM_OFFSET, | ||
63 | .pfn = __phys_to_pfn(ITCM_OFFSET), | ||
64 | .length = (ITCM_END - ITCM_OFFSET + 1), | ||
65 | .type = MT_UNCACHED | ||
66 | } | ||
67 | }; | ||
68 | |||
69 | /* | ||
70 | * Allocate a chunk of TCM memory | ||
71 | */ | ||
72 | void *tcm_alloc(size_t len) | ||
73 | { | ||
74 | unsigned long vaddr; | ||
75 | |||
76 | if (!tcm_pool) | ||
77 | return NULL; | ||
78 | |||
79 | vaddr = gen_pool_alloc(tcm_pool, len); | ||
80 | if (!vaddr) | ||
81 | return NULL; | ||
82 | |||
83 | return (void *) vaddr; | ||
84 | } | ||
85 | EXPORT_SYMBOL(tcm_alloc); | ||
86 | |||
87 | /* | ||
88 | * Free a chunk of TCM memory | ||
89 | */ | ||
90 | void tcm_free(void *addr, size_t len) | ||
91 | { | ||
92 | gen_pool_free(tcm_pool, (unsigned long) addr, len); | ||
93 | } | ||
94 | EXPORT_SYMBOL(tcm_free); | ||
95 | |||
96 | |||
97 | static void __init setup_tcm_bank(u8 type, u32 offset, u32 expected_size) | ||
98 | { | ||
99 | const int tcm_sizes[16] = { 0, -1, -1, 4, 8, 16, 32, 64, 128, | ||
100 | 256, 512, 1024, -1, -1, -1, -1 }; | ||
101 | u32 tcm_region; | ||
102 | int tcm_size; | ||
103 | |||
104 | /* Read the special TCM region register c9, 0 */ | ||
105 | if (!type) | ||
106 | asm("mrc p15, 0, %0, c9, c1, 0" | ||
107 | : "=r" (tcm_region)); | ||
108 | else | ||
109 | asm("mrc p15, 0, %0, c9, c1, 1" | ||
110 | : "=r" (tcm_region)); | ||
111 | |||
112 | tcm_size = tcm_sizes[(tcm_region >> 2) & 0x0f]; | ||
113 | if (tcm_size < 0) { | ||
114 | pr_err("CPU: %sTCM of unknown size!\n", | ||
115 | type ? "I" : "D"); | ||
116 | } else { | ||
117 | pr_info("CPU: found %sTCM %dk @ %08x, %senabled\n", | ||
118 | type ? "I" : "D", | ||
119 | tcm_size, | ||
120 | (tcm_region & 0xfffff000U), | ||
121 | (tcm_region & 1) ? "" : "not "); | ||
122 | } | ||
123 | |||
124 | if (tcm_size != expected_size) { | ||
125 | pr_crit("CPU: %sTCM was detected %dk but expected %dk!\n", | ||
126 | type ? "I" : "D", | ||
127 | tcm_size, | ||
128 | expected_size); | ||
129 | /* Adjust to the expected size? what can we do... */ | ||
130 | } | ||
131 | |||
132 | /* Force move the TCM bank to where we want it, enable */ | ||
133 | tcm_region = offset | (tcm_region & 0x00000ffeU) | 1; | ||
134 | |||
135 | if (!type) | ||
136 | asm("mcr p15, 0, %0, c9, c1, 0" | ||
137 | : /* No output operands */ | ||
138 | : "r" (tcm_region)); | ||
139 | else | ||
140 | asm("mcr p15, 0, %0, c9, c1, 1" | ||
141 | : /* No output operands */ | ||
142 | : "r" (tcm_region)); | ||
143 | |||
144 | pr_debug("CPU: moved %sTCM %dk to %08x, enabled\n", | ||
145 | type ? "I" : "D", | ||
146 | tcm_size, | ||
147 | (tcm_region & 0xfffff000U)); | ||
148 | } | ||
149 | |||
150 | /* | ||
151 | * This initializes the TCM memory | ||
152 | */ | ||
153 | void __init tcm_init(void) | ||
154 | { | ||
155 | u32 tcm_status = read_cpuid_tcmstatus(); | ||
156 | char *start; | ||
157 | char *end; | ||
158 | char *ram; | ||
159 | |||
160 | /* Setup DTCM if present */ | ||
161 | if (tcm_status & (1 << 16)) { | ||
162 | setup_tcm_bank(0, DTCM_OFFSET, | ||
163 | (DTCM_END - DTCM_OFFSET + 1) >> 10); | ||
164 | request_resource(&iomem_resource, &dtcm_res); | ||
165 | iotable_init(dtcm_iomap, 1); | ||
166 | /* Copy data from RAM to DTCM */ | ||
167 | start = &__sdtcm_data; | ||
168 | end = &__edtcm_data; | ||
169 | ram = &__dtcm_start; | ||
170 | memcpy(start, ram, (end-start)); | ||
171 | pr_debug("CPU DTCM: copied data from %p - %p\n", start, end); | ||
172 | } | ||
173 | |||
174 | /* Setup ITCM if present */ | ||
175 | if (tcm_status & 1) { | ||
176 | setup_tcm_bank(1, ITCM_OFFSET, | ||
177 | (ITCM_END - ITCM_OFFSET + 1) >> 10); | ||
178 | request_resource(&iomem_resource, &itcm_res); | ||
179 | iotable_init(itcm_iomap, 1); | ||
180 | /* Copy code from RAM to ITCM */ | ||
181 | start = &__sitcm_text; | ||
182 | end = &__eitcm_text; | ||
183 | ram = &__itcm_start; | ||
184 | memcpy(start, ram, (end-start)); | ||
185 | pr_debug("CPU ITCM: copied code from %p - %p\n", start, end); | ||
186 | } | ||
187 | } | ||
188 | |||
189 | /* | ||
190 | * This creates the TCM memory pool and has to be done later, | ||
191 | * during the core_initicalls, since the allocator is not yet | ||
192 | * up and running when the first initialization runs. | ||
193 | */ | ||
194 | static int __init setup_tcm_pool(void) | ||
195 | { | ||
196 | u32 tcm_status = read_cpuid_tcmstatus(); | ||
197 | u32 dtcm_pool_start = (u32) &__edtcm_data; | ||
198 | u32 itcm_pool_start = (u32) &__eitcm_text; | ||
199 | int ret; | ||
200 | |||
201 | /* | ||
202 | * Set up malloc pool, 2^2 = 4 bytes granularity since | ||
203 | * the TCM is sometimes just 4 KiB. NB: pages and cache | ||
204 | * line alignments does not matter in TCM! | ||
205 | */ | ||
206 | tcm_pool = gen_pool_create(2, -1); | ||
207 | |||
208 | pr_debug("Setting up TCM memory pool\n"); | ||
209 | |||
210 | /* Add the rest of DTCM to the TCM pool */ | ||
211 | if (tcm_status & (1 << 16)) { | ||
212 | if (dtcm_pool_start < DTCM_END) { | ||
213 | ret = gen_pool_add(tcm_pool, dtcm_pool_start, | ||
214 | DTCM_END - dtcm_pool_start + 1, -1); | ||
215 | if (ret) { | ||
216 | pr_err("CPU DTCM: could not add DTCM " \ | ||
217 | "remainder to pool!\n"); | ||
218 | return ret; | ||
219 | } | ||
220 | pr_debug("CPU DTCM: Added %08x bytes @ %08x to " \ | ||
221 | "the TCM memory pool\n", | ||
222 | DTCM_END - dtcm_pool_start + 1, | ||
223 | dtcm_pool_start); | ||
224 | } | ||
225 | } | ||
226 | |||
227 | /* Add the rest of ITCM to the TCM pool */ | ||
228 | if (tcm_status & 1) { | ||
229 | if (itcm_pool_start < ITCM_END) { | ||
230 | ret = gen_pool_add(tcm_pool, itcm_pool_start, | ||
231 | ITCM_END - itcm_pool_start + 1, -1); | ||
232 | if (ret) { | ||
233 | pr_err("CPU ITCM: could not add ITCM " \ | ||
234 | "remainder to pool!\n"); | ||
235 | return ret; | ||
236 | } | ||
237 | pr_debug("CPU ITCM: Added %08x bytes @ %08x to " \ | ||
238 | "the TCM memory pool\n", | ||
239 | ITCM_END - itcm_pool_start + 1, | ||
240 | itcm_pool_start); | ||
241 | } | ||
242 | } | ||
243 | return 0; | ||
244 | } | ||
245 | |||
246 | core_initcall(setup_tcm_pool); | ||
diff --git a/arch/arm/kernel/tcm.h b/arch/arm/kernel/tcm.h new file mode 100644 index 000000000000..8015ad434a40 --- /dev/null +++ b/arch/arm/kernel/tcm.h | |||
@@ -0,0 +1,17 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2008-2009 ST-Ericsson AB | ||
3 | * License terms: GNU General Public License (GPL) version 2 | ||
4 | * TCM memory handling for ARM systems | ||
5 | * | ||
6 | * Author: Linus Walleij <linus.walleij@stericsson.com> | ||
7 | * Author: Rickard Andersson <rickard.andersson@stericsson.com> | ||
8 | */ | ||
9 | |||
10 | #ifdef CONFIG_HAVE_TCM | ||
11 | void __init tcm_init(void); | ||
12 | #else | ||
13 | /* No TCM support, just blank inlines to be optimized out */ | ||
14 | inline void tcm_init(void) | ||
15 | { | ||
16 | } | ||
17 | #endif | ||
diff --git a/arch/arm/kernel/time.c b/arch/arm/kernel/time.c index 4cdc4a0bd02d..d38cdf2c8276 100644 --- a/arch/arm/kernel/time.c +++ b/arch/arm/kernel/time.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/interrupt.h> | 21 | #include <linux/interrupt.h> |
22 | #include <linux/time.h> | 22 | #include <linux/time.h> |
23 | #include <linux/init.h> | 23 | #include <linux/init.h> |
24 | #include <linux/sched.h> | ||
24 | #include <linux/smp.h> | 25 | #include <linux/smp.h> |
25 | #include <linux/timex.h> | 26 | #include <linux/timex.h> |
26 | #include <linux/errno.h> | 27 | #include <linux/errno.h> |
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c index 57eb0f6f6005..f838f36eb702 100644 --- a/arch/arm/kernel/traps.c +++ b/arch/arm/kernel/traps.c | |||
@@ -45,21 +45,21 @@ static int __init user_debug_setup(char *str) | |||
45 | __setup("user_debug=", user_debug_setup); | 45 | __setup("user_debug=", user_debug_setup); |
46 | #endif | 46 | #endif |
47 | 47 | ||
48 | static void dump_mem(const char *str, unsigned long bottom, unsigned long top); | 48 | static void dump_mem(const char *, const char *, unsigned long, unsigned long); |
49 | 49 | ||
50 | void dump_backtrace_entry(unsigned long where, unsigned long from, unsigned long frame) | 50 | void dump_backtrace_entry(unsigned long where, unsigned long from, unsigned long frame) |
51 | { | 51 | { |
52 | #ifdef CONFIG_KALLSYMS | 52 | #ifdef CONFIG_KALLSYMS |
53 | printk("[<%08lx>] ", where); | 53 | char sym1[KSYM_SYMBOL_LEN], sym2[KSYM_SYMBOL_LEN]; |
54 | print_symbol("(%s) ", where); | 54 | sprint_symbol(sym1, where); |
55 | printk("from [<%08lx>] ", from); | 55 | sprint_symbol(sym2, from); |
56 | print_symbol("(%s)\n", from); | 56 | printk("[<%08lx>] (%s) from [<%08lx>] (%s)\n", where, sym1, from, sym2); |
57 | #else | 57 | #else |
58 | printk("Function entered at [<%08lx>] from [<%08lx>]\n", where, from); | 58 | printk("Function entered at [<%08lx>] from [<%08lx>]\n", where, from); |
59 | #endif | 59 | #endif |
60 | 60 | ||
61 | if (in_exception_text(where)) | 61 | if (in_exception_text(where)) |
62 | dump_mem("Exception stack", frame + 4, frame + 4 + sizeof(struct pt_regs)); | 62 | dump_mem("", "Exception stack", frame + 4, frame + 4 + sizeof(struct pt_regs)); |
63 | } | 63 | } |
64 | 64 | ||
65 | #ifndef CONFIG_ARM_UNWIND | 65 | #ifndef CONFIG_ARM_UNWIND |
@@ -81,9 +81,10 @@ static int verify_stack(unsigned long sp) | |||
81 | /* | 81 | /* |
82 | * Dump out the contents of some memory nicely... | 82 | * Dump out the contents of some memory nicely... |
83 | */ | 83 | */ |
84 | static void dump_mem(const char *str, unsigned long bottom, unsigned long top) | 84 | static void dump_mem(const char *lvl, const char *str, unsigned long bottom, |
85 | unsigned long top) | ||
85 | { | 86 | { |
86 | unsigned long p = bottom & ~31; | 87 | unsigned long first; |
87 | mm_segment_t fs; | 88 | mm_segment_t fs; |
88 | int i; | 89 | int i; |
89 | 90 | ||
@@ -95,33 +96,37 @@ static void dump_mem(const char *str, unsigned long bottom, unsigned long top) | |||
95 | fs = get_fs(); | 96 | fs = get_fs(); |
96 | set_fs(KERNEL_DS); | 97 | set_fs(KERNEL_DS); |
97 | 98 | ||
98 | printk("%s(0x%08lx to 0x%08lx)\n", str, bottom, top); | 99 | printk("%s%s(0x%08lx to 0x%08lx)\n", lvl, str, bottom, top); |
99 | 100 | ||
100 | for (p = bottom & ~31; p < top;) { | 101 | for (first = bottom & ~31; first < top; first += 32) { |
101 | printk("%04lx: ", p & 0xffff); | 102 | unsigned long p; |
103 | char str[sizeof(" 12345678") * 8 + 1]; | ||
102 | 104 | ||
103 | for (i = 0; i < 8; i++, p += 4) { | 105 | memset(str, ' ', sizeof(str)); |
104 | unsigned int val; | 106 | str[sizeof(str) - 1] = '\0'; |
105 | 107 | ||
106 | if (p < bottom || p >= top) | 108 | for (p = first, i = 0; i < 8 && p < top; i++, p += 4) { |
107 | printk(" "); | 109 | if (p >= bottom && p < top) { |
108 | else { | 110 | unsigned long val; |
109 | __get_user(val, (unsigned long *)p); | 111 | if (__get_user(val, (unsigned long *)p) == 0) |
110 | printk("%08x ", val); | 112 | sprintf(str + i * 9, " %08lx", val); |
113 | else | ||
114 | sprintf(str + i * 9, " ????????"); | ||
111 | } | 115 | } |
112 | } | 116 | } |
113 | printk ("\n"); | 117 | printk("%s%04lx:%s\n", lvl, first & 0xffff, str); |
114 | } | 118 | } |
115 | 119 | ||
116 | set_fs(fs); | 120 | set_fs(fs); |
117 | } | 121 | } |
118 | 122 | ||
119 | static void dump_instr(struct pt_regs *regs) | 123 | static void dump_instr(const char *lvl, struct pt_regs *regs) |
120 | { | 124 | { |
121 | unsigned long addr = instruction_pointer(regs); | 125 | unsigned long addr = instruction_pointer(regs); |
122 | const int thumb = thumb_mode(regs); | 126 | const int thumb = thumb_mode(regs); |
123 | const int width = thumb ? 4 : 8; | 127 | const int width = thumb ? 4 : 8; |
124 | mm_segment_t fs; | 128 | mm_segment_t fs; |
129 | char str[sizeof("00000000 ") * 5 + 2 + 1], *p = str; | ||
125 | int i; | 130 | int i; |
126 | 131 | ||
127 | /* | 132 | /* |
@@ -132,7 +137,6 @@ static void dump_instr(struct pt_regs *regs) | |||
132 | fs = get_fs(); | 137 | fs = get_fs(); |
133 | set_fs(KERNEL_DS); | 138 | set_fs(KERNEL_DS); |
134 | 139 | ||
135 | printk("Code: "); | ||
136 | for (i = -4; i < 1; i++) { | 140 | for (i = -4; i < 1; i++) { |
137 | unsigned int val, bad; | 141 | unsigned int val, bad; |
138 | 142 | ||
@@ -142,13 +146,14 @@ static void dump_instr(struct pt_regs *regs) | |||
142 | bad = __get_user(val, &((u32 *)addr)[i]); | 146 | bad = __get_user(val, &((u32 *)addr)[i]); |
143 | 147 | ||
144 | if (!bad) | 148 | if (!bad) |
145 | printk(i == 0 ? "(%0*x) " : "%0*x ", width, val); | 149 | p += sprintf(p, i == 0 ? "(%0*x) " : "%0*x ", |
150 | width, val); | ||
146 | else { | 151 | else { |
147 | printk("bad PC value."); | 152 | p += sprintf(p, "bad PC value"); |
148 | break; | 153 | break; |
149 | } | 154 | } |
150 | } | 155 | } |
151 | printk("\n"); | 156 | printk("%sCode: %s\n", lvl, str); |
152 | 157 | ||
153 | set_fs(fs); | 158 | set_fs(fs); |
154 | } | 159 | } |
@@ -224,18 +229,19 @@ static void __die(const char *str, int err, struct thread_info *thread, struct p | |||
224 | struct task_struct *tsk = thread->task; | 229 | struct task_struct *tsk = thread->task; |
225 | static int die_counter; | 230 | static int die_counter; |
226 | 231 | ||
227 | printk("Internal error: %s: %x [#%d]" S_PREEMPT S_SMP "\n", | 232 | printk(KERN_EMERG "Internal error: %s: %x [#%d]" S_PREEMPT S_SMP "\n", |
228 | str, err, ++die_counter); | 233 | str, err, ++die_counter); |
234 | sysfs_printk_last_file(); | ||
229 | print_modules(); | 235 | print_modules(); |
230 | __show_regs(regs); | 236 | __show_regs(regs); |
231 | printk("Process %s (pid: %d, stack limit = 0x%p)\n", | 237 | printk(KERN_EMERG "Process %.*s (pid: %d, stack limit = 0x%p)\n", |
232 | tsk->comm, task_pid_nr(tsk), thread + 1); | 238 | TASK_COMM_LEN, tsk->comm, task_pid_nr(tsk), thread + 1); |
233 | 239 | ||
234 | if (!user_mode(regs) || in_interrupt()) { | 240 | if (!user_mode(regs) || in_interrupt()) { |
235 | dump_mem("Stack: ", regs->ARM_sp, | 241 | dump_mem(KERN_EMERG, "Stack: ", regs->ARM_sp, |
236 | THREAD_SIZE + (unsigned long)task_stack_page(tsk)); | 242 | THREAD_SIZE + (unsigned long)task_stack_page(tsk)); |
237 | dump_backtrace(regs, tsk); | 243 | dump_backtrace(regs, tsk); |
238 | dump_instr(regs); | 244 | dump_instr(KERN_EMERG, regs); |
239 | } | 245 | } |
240 | } | 246 | } |
241 | 247 | ||
@@ -250,13 +256,14 @@ NORET_TYPE void die(const char *str, struct pt_regs *regs, int err) | |||
250 | 256 | ||
251 | oops_enter(); | 257 | oops_enter(); |
252 | 258 | ||
253 | console_verbose(); | ||
254 | spin_lock_irq(&die_lock); | 259 | spin_lock_irq(&die_lock); |
260 | console_verbose(); | ||
255 | bust_spinlocks(1); | 261 | bust_spinlocks(1); |
256 | __die(str, err, thread, regs); | 262 | __die(str, err, thread, regs); |
257 | bust_spinlocks(0); | 263 | bust_spinlocks(0); |
258 | add_taint(TAINT_DIE); | 264 | add_taint(TAINT_DIE); |
259 | spin_unlock_irq(&die_lock); | 265 | spin_unlock_irq(&die_lock); |
266 | oops_exit(); | ||
260 | 267 | ||
261 | if (in_interrupt()) | 268 | if (in_interrupt()) |
262 | panic("Fatal exception in interrupt"); | 269 | panic("Fatal exception in interrupt"); |
@@ -264,7 +271,6 @@ NORET_TYPE void die(const char *str, struct pt_regs *regs, int err) | |||
264 | if (panic_on_oops) | 271 | if (panic_on_oops) |
265 | panic("Fatal exception"); | 272 | panic("Fatal exception"); |
266 | 273 | ||
267 | oops_exit(); | ||
268 | do_exit(SIGSEGV); | 274 | do_exit(SIGSEGV); |
269 | } | 275 | } |
270 | 276 | ||
@@ -349,7 +355,7 @@ asmlinkage void __exception do_undefinstr(struct pt_regs *regs) | |||
349 | if (user_debug & UDBG_UNDEFINED) { | 355 | if (user_debug & UDBG_UNDEFINED) { |
350 | printk(KERN_INFO "%s (%d): undefined instruction: pc=%p\n", | 356 | printk(KERN_INFO "%s (%d): undefined instruction: pc=%p\n", |
351 | current->comm, task_pid_nr(current), pc); | 357 | current->comm, task_pid_nr(current), pc); |
352 | dump_instr(regs); | 358 | dump_instr(KERN_INFO, regs); |
353 | } | 359 | } |
354 | #endif | 360 | #endif |
355 | 361 | ||
@@ -400,7 +406,7 @@ static int bad_syscall(int n, struct pt_regs *regs) | |||
400 | if (user_debug & UDBG_SYSCALL) { | 406 | if (user_debug & UDBG_SYSCALL) { |
401 | printk(KERN_ERR "[%d] %s: obsolete system call %08x.\n", | 407 | printk(KERN_ERR "[%d] %s: obsolete system call %08x.\n", |
402 | task_pid_nr(current), current->comm, n); | 408 | task_pid_nr(current), current->comm, n); |
403 | dump_instr(regs); | 409 | dump_instr(KERN_ERR, regs); |
404 | } | 410 | } |
405 | #endif | 411 | #endif |
406 | 412 | ||
@@ -418,12 +424,14 @@ static int bad_syscall(int n, struct pt_regs *regs) | |||
418 | static inline void | 424 | static inline void |
419 | do_cache_op(unsigned long start, unsigned long end, int flags) | 425 | do_cache_op(unsigned long start, unsigned long end, int flags) |
420 | { | 426 | { |
427 | struct mm_struct *mm = current->active_mm; | ||
421 | struct vm_area_struct *vma; | 428 | struct vm_area_struct *vma; |
422 | 429 | ||
423 | if (end < start || flags) | 430 | if (end < start || flags) |
424 | return; | 431 | return; |
425 | 432 | ||
426 | vma = find_vma(current->active_mm, start); | 433 | down_read(&mm->mmap_sem); |
434 | vma = find_vma(mm, start); | ||
427 | if (vma && vma->vm_start < end) { | 435 | if (vma && vma->vm_start < end) { |
428 | if (start < vma->vm_start) | 436 | if (start < vma->vm_start) |
429 | start = vma->vm_start; | 437 | start = vma->vm_start; |
@@ -432,6 +440,7 @@ do_cache_op(unsigned long start, unsigned long end, int flags) | |||
432 | 440 | ||
433 | flush_cache_user_range(vma, start, end); | 441 | flush_cache_user_range(vma, start, end); |
434 | } | 442 | } |
443 | up_read(&mm->mmap_sem); | ||
435 | } | 444 | } |
436 | 445 | ||
437 | /* | 446 | /* |
@@ -576,7 +585,7 @@ asmlinkage int arm_syscall(int no, struct pt_regs *regs) | |||
576 | if (user_debug & UDBG_SYSCALL) { | 585 | if (user_debug & UDBG_SYSCALL) { |
577 | printk("[%d] %s: arm syscall %d\n", | 586 | printk("[%d] %s: arm syscall %d\n", |
578 | task_pid_nr(current), current->comm, no); | 587 | task_pid_nr(current), current->comm, no); |
579 | dump_instr(regs); | 588 | dump_instr("", regs); |
580 | if (user_mode(regs)) { | 589 | if (user_mode(regs)) { |
581 | __show_regs(regs); | 590 | __show_regs(regs); |
582 | c_backtrace(regs->ARM_fp, processor_mode(regs)); | 591 | c_backtrace(regs->ARM_fp, processor_mode(regs)); |
@@ -653,7 +662,7 @@ baddataabort(int code, unsigned long instr, struct pt_regs *regs) | |||
653 | if (user_debug & UDBG_BADABORT) { | 662 | if (user_debug & UDBG_BADABORT) { |
654 | printk(KERN_ERR "[%d] %s: bad data abort: code %d instr 0x%08lx\n", | 663 | printk(KERN_ERR "[%d] %s: bad data abort: code %d instr 0x%08lx\n", |
655 | task_pid_nr(current), current->comm, code, instr); | 664 | task_pid_nr(current), current->comm, code, instr); |
656 | dump_instr(regs); | 665 | dump_instr(KERN_ERR, regs); |
657 | show_pte(current->mm, addr); | 666 | show_pte(current->mm, addr); |
658 | } | 667 | } |
659 | #endif | 668 | #endif |
diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S index 5cc4812c9763..aecf87dfbaec 100644 --- a/arch/arm/kernel/vmlinux.lds.S +++ b/arch/arm/kernel/vmlinux.lds.S | |||
@@ -199,6 +199,63 @@ SECTIONS | |||
199 | } | 199 | } |
200 | _edata_loc = __data_loc + SIZEOF(.data); | 200 | _edata_loc = __data_loc + SIZEOF(.data); |
201 | 201 | ||
202 | #ifdef CONFIG_HAVE_TCM | ||
203 | /* | ||
204 | * We align everything to a page boundary so we can | ||
205 | * free it after init has commenced and TCM contents have | ||
206 | * been copied to its destination. | ||
207 | */ | ||
208 | .tcm_start : { | ||
209 | . = ALIGN(PAGE_SIZE); | ||
210 | __tcm_start = .; | ||
211 | __itcm_start = .; | ||
212 | } | ||
213 | |||
214 | /* | ||
215 | * Link these to the ITCM RAM | ||
216 | * Put VMA to the TCM address and LMA to the common RAM | ||
217 | * and we'll upload the contents from RAM to TCM and free | ||
218 | * the used RAM after that. | ||
219 | */ | ||
220 | .text_itcm ITCM_OFFSET : AT(__itcm_start) | ||
221 | { | ||
222 | __sitcm_text = .; | ||
223 | *(.tcm.text) | ||
224 | *(.tcm.rodata) | ||
225 | . = ALIGN(4); | ||
226 | __eitcm_text = .; | ||
227 | } | ||
228 | |||
229 | /* | ||
230 | * Reset the dot pointer, this is needed to create the | ||
231 | * relative __dtcm_start below (to be used as extern in code). | ||
232 | */ | ||
233 | . = ADDR(.tcm_start) + SIZEOF(.tcm_start) + SIZEOF(.text_itcm); | ||
234 | |||
235 | .dtcm_start : { | ||
236 | __dtcm_start = .; | ||
237 | } | ||
238 | |||
239 | /* TODO: add remainder of ITCM as well, that can be used for data! */ | ||
240 | .data_dtcm DTCM_OFFSET : AT(__dtcm_start) | ||
241 | { | ||
242 | . = ALIGN(4); | ||
243 | __sdtcm_data = .; | ||
244 | *(.tcm.data) | ||
245 | . = ALIGN(4); | ||
246 | __edtcm_data = .; | ||
247 | } | ||
248 | |||
249 | /* Reset the dot pointer or the linker gets confused */ | ||
250 | . = ADDR(.dtcm_start) + SIZEOF(.data_dtcm); | ||
251 | |||
252 | /* End marker for freeing TCM copy in linked object */ | ||
253 | .tcm_end : AT(ADDR(.dtcm_start) + SIZEOF(.data_dtcm)){ | ||
254 | . = ALIGN(PAGE_SIZE); | ||
255 | __tcm_end = .; | ||
256 | } | ||
257 | #endif | ||
258 | |||
202 | .bss : { | 259 | .bss : { |
203 | __bss_start = .; /* BSS */ | 260 | __bss_start = .; /* BSS */ |
204 | *(.bss) | 261 | *(.bss) |
diff --git a/arch/arm/lib/copy_page.S b/arch/arm/lib/copy_page.S index 6ae04db1ca4f..6ee2f6706f86 100644 --- a/arch/arm/lib/copy_page.S +++ b/arch/arm/lib/copy_page.S | |||
@@ -12,8 +12,9 @@ | |||
12 | #include <linux/linkage.h> | 12 | #include <linux/linkage.h> |
13 | #include <asm/assembler.h> | 13 | #include <asm/assembler.h> |
14 | #include <asm/asm-offsets.h> | 14 | #include <asm/asm-offsets.h> |
15 | #include <asm/cache.h> | ||
15 | 16 | ||
16 | #define COPY_COUNT (PAGE_SZ/64 PLD( -1 )) | 17 | #define COPY_COUNT (PAGE_SZ / (2 * L1_CACHE_BYTES) PLD( -1 )) |
17 | 18 | ||
18 | .text | 19 | .text |
19 | .align 5 | 20 | .align 5 |
@@ -26,17 +27,16 @@ | |||
26 | ENTRY(copy_page) | 27 | ENTRY(copy_page) |
27 | stmfd sp!, {r4, lr} @ 2 | 28 | stmfd sp!, {r4, lr} @ 2 |
28 | PLD( pld [r1, #0] ) | 29 | PLD( pld [r1, #0] ) |
29 | PLD( pld [r1, #32] ) | 30 | PLD( pld [r1, #L1_CACHE_BYTES] ) |
30 | mov r2, #COPY_COUNT @ 1 | 31 | mov r2, #COPY_COUNT @ 1 |
31 | ldmia r1!, {r3, r4, ip, lr} @ 4+1 | 32 | ldmia r1!, {r3, r4, ip, lr} @ 4+1 |
32 | 1: PLD( pld [r1, #64] ) | 33 | 1: PLD( pld [r1, #2 * L1_CACHE_BYTES]) |
33 | PLD( pld [r1, #96] ) | 34 | PLD( pld [r1, #3 * L1_CACHE_BYTES]) |
34 | 2: stmia r0!, {r3, r4, ip, lr} @ 4 | 35 | 2: |
35 | ldmia r1!, {r3, r4, ip, lr} @ 4+1 | 36 | .rept (2 * L1_CACHE_BYTES / 16 - 1) |
36 | stmia r0!, {r3, r4, ip, lr} @ 4 | ||
37 | ldmia r1!, {r3, r4, ip, lr} @ 4+1 | ||
38 | stmia r0!, {r3, r4, ip, lr} @ 4 | 37 | stmia r0!, {r3, r4, ip, lr} @ 4 |
39 | ldmia r1!, {r3, r4, ip, lr} @ 4 | 38 | ldmia r1!, {r3, r4, ip, lr} @ 4 |
39 | .endr | ||
40 | subs r2, r2, #1 @ 1 | 40 | subs r2, r2, #1 @ 1 |
41 | stmia r0!, {r3, r4, ip, lr} @ 4 | 41 | stmia r0!, {r3, r4, ip, lr} @ 4 |
42 | ldmgtia r1!, {r3, r4, ip, lr} @ 4 | 42 | ldmgtia r1!, {r3, r4, ip, lr} @ 4 |
diff --git a/arch/arm/mach-at91/at91cap9_devices.c b/arch/arm/mach-at91/at91cap9_devices.c index 412aa49ad2fb..d1f775e86353 100644 --- a/arch/arm/mach-at91/at91cap9_devices.c +++ b/arch/arm/mach-at91/at91cap9_devices.c | |||
@@ -771,9 +771,9 @@ void __init at91_add_device_pwm(u32 mask) {} | |||
771 | * AC97 | 771 | * AC97 |
772 | * -------------------------------------------------------------------- */ | 772 | * -------------------------------------------------------------------- */ |
773 | 773 | ||
774 | #if defined(CONFIG_SND_AT91_AC97) || defined(CONFIG_SND_AT91_AC97_MODULE) | 774 | #if defined(CONFIG_SND_ATMEL_AC97C) || defined(CONFIG_SND_ATMEL_AC97C_MODULE) |
775 | static u64 ac97_dmamask = DMA_BIT_MASK(32); | 775 | static u64 ac97_dmamask = DMA_BIT_MASK(32); |
776 | static struct atmel_ac97_data ac97_data; | 776 | static struct ac97c_platform_data ac97_data; |
777 | 777 | ||
778 | static struct resource ac97_resources[] = { | 778 | static struct resource ac97_resources[] = { |
779 | [0] = { | 779 | [0] = { |
@@ -789,7 +789,7 @@ static struct resource ac97_resources[] = { | |||
789 | }; | 789 | }; |
790 | 790 | ||
791 | static struct platform_device at91cap9_ac97_device = { | 791 | static struct platform_device at91cap9_ac97_device = { |
792 | .name = "ac97c", | 792 | .name = "atmel_ac97c", |
793 | .id = 1, | 793 | .id = 1, |
794 | .dev = { | 794 | .dev = { |
795 | .dma_mask = &ac97_dmamask, | 795 | .dma_mask = &ac97_dmamask, |
@@ -800,7 +800,7 @@ static struct platform_device at91cap9_ac97_device = { | |||
800 | .num_resources = ARRAY_SIZE(ac97_resources), | 800 | .num_resources = ARRAY_SIZE(ac97_resources), |
801 | }; | 801 | }; |
802 | 802 | ||
803 | void __init at91_add_device_ac97(struct atmel_ac97_data *data) | 803 | void __init at91_add_device_ac97(struct ac97c_platform_data *data) |
804 | { | 804 | { |
805 | if (!data) | 805 | if (!data) |
806 | return; | 806 | return; |
@@ -818,7 +818,7 @@ void __init at91_add_device_ac97(struct atmel_ac97_data *data) | |||
818 | platform_device_register(&at91cap9_ac97_device); | 818 | platform_device_register(&at91cap9_ac97_device); |
819 | } | 819 | } |
820 | #else | 820 | #else |
821 | void __init at91_add_device_ac97(struct atmel_ac97_data *data) {} | 821 | void __init at91_add_device_ac97(struct ac97c_platform_data *data) {} |
822 | #endif | 822 | #endif |
823 | 823 | ||
824 | 824 | ||
diff --git a/arch/arm/mach-at91/at91sam9263_devices.c b/arch/arm/mach-at91/at91sam9263_devices.c index 55719a974276..fb5c23af1017 100644 --- a/arch/arm/mach-at91/at91sam9263_devices.c +++ b/arch/arm/mach-at91/at91sam9263_devices.c | |||
@@ -757,6 +757,42 @@ void __init at91_add_device_ac97(struct ac97c_platform_data *data) | |||
757 | void __init at91_add_device_ac97(struct ac97c_platform_data *data) {} | 757 | void __init at91_add_device_ac97(struct ac97c_platform_data *data) {} |
758 | #endif | 758 | #endif |
759 | 759 | ||
760 | /* -------------------------------------------------------------------- | ||
761 | * CAN Controller | ||
762 | * -------------------------------------------------------------------- */ | ||
763 | |||
764 | #if defined(CONFIG_CAN_AT91) || defined(CONFIG_CAN_AT91_MODULE) | ||
765 | static struct resource can_resources[] = { | ||
766 | [0] = { | ||
767 | .start = AT91SAM9263_BASE_CAN, | ||
768 | .end = AT91SAM9263_BASE_CAN + SZ_16K - 1, | ||
769 | .flags = IORESOURCE_MEM, | ||
770 | }, | ||
771 | [1] = { | ||
772 | .start = AT91SAM9263_ID_CAN, | ||
773 | .end = AT91SAM9263_ID_CAN, | ||
774 | .flags = IORESOURCE_IRQ, | ||
775 | }, | ||
776 | }; | ||
777 | |||
778 | static struct platform_device at91sam9263_can_device = { | ||
779 | .name = "at91_can", | ||
780 | .id = -1, | ||
781 | .resource = can_resources, | ||
782 | .num_resources = ARRAY_SIZE(can_resources), | ||
783 | }; | ||
784 | |||
785 | void __init at91_add_device_can(struct at91_can_data *data) | ||
786 | { | ||
787 | at91_set_A_periph(AT91_PIN_PA13, 0); /* CANTX */ | ||
788 | at91_set_A_periph(AT91_PIN_PA14, 0); /* CANRX */ | ||
789 | at91sam9263_can_device.dev.platform_data = data; | ||
790 | |||
791 | platform_device_register(&at91sam9263_can_device); | ||
792 | } | ||
793 | #else | ||
794 | void __init at91_add_device_can(struct at91_can_data *data) {} | ||
795 | #endif | ||
760 | 796 | ||
761 | /* -------------------------------------------------------------------- | 797 | /* -------------------------------------------------------------------- |
762 | * LCD Controller | 798 | * LCD Controller |
diff --git a/arch/arm/mach-at91/at91sam9g45_devices.c b/arch/arm/mach-at91/at91sam9g45_devices.c index d746e8621bc2..d581cff80c4c 100644 --- a/arch/arm/mach-at91/at91sam9g45_devices.c +++ b/arch/arm/mach-at91/at91sam9g45_devices.c | |||
@@ -24,11 +24,59 @@ | |||
24 | #include <mach/at91sam9g45.h> | 24 | #include <mach/at91sam9g45.h> |
25 | #include <mach/at91sam9g45_matrix.h> | 25 | #include <mach/at91sam9g45_matrix.h> |
26 | #include <mach/at91sam9_smc.h> | 26 | #include <mach/at91sam9_smc.h> |
27 | #include <mach/at_hdmac.h> | ||
27 | 28 | ||
28 | #include "generic.h" | 29 | #include "generic.h" |
29 | 30 | ||
30 | 31 | ||
31 | /* -------------------------------------------------------------------- | 32 | /* -------------------------------------------------------------------- |
33 | * HDMAC - AHB DMA Controller | ||
34 | * -------------------------------------------------------------------- */ | ||
35 | |||
36 | #if defined(CONFIG_AT_HDMAC) || defined(CONFIG_AT_HDMAC_MODULE) | ||
37 | static u64 hdmac_dmamask = DMA_BIT_MASK(32); | ||
38 | |||
39 | static struct at_dma_platform_data atdma_pdata = { | ||
40 | .nr_channels = 8, | ||
41 | }; | ||
42 | |||
43 | static struct resource hdmac_resources[] = { | ||
44 | [0] = { | ||
45 | .start = AT91_BASE_SYS + AT91_DMA, | ||
46 | .end = AT91_BASE_SYS + AT91_DMA + SZ_512 - 1, | ||
47 | .flags = IORESOURCE_MEM, | ||
48 | }, | ||
49 | [2] = { | ||
50 | .start = AT91SAM9G45_ID_DMA, | ||
51 | .end = AT91SAM9G45_ID_DMA, | ||
52 | .flags = IORESOURCE_IRQ, | ||
53 | }, | ||
54 | }; | ||
55 | |||
56 | static struct platform_device at_hdmac_device = { | ||
57 | .name = "at_hdmac", | ||
58 | .id = -1, | ||
59 | .dev = { | ||
60 | .dma_mask = &hdmac_dmamask, | ||
61 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
62 | .platform_data = &atdma_pdata, | ||
63 | }, | ||
64 | .resource = hdmac_resources, | ||
65 | .num_resources = ARRAY_SIZE(hdmac_resources), | ||
66 | }; | ||
67 | |||
68 | void __init at91_add_device_hdmac(void) | ||
69 | { | ||
70 | dma_cap_set(DMA_MEMCPY, atdma_pdata.cap_mask); | ||
71 | dma_cap_set(DMA_SLAVE, atdma_pdata.cap_mask); | ||
72 | platform_device_register(&at_hdmac_device); | ||
73 | } | ||
74 | #else | ||
75 | void __init at91_add_device_hdmac(void) {} | ||
76 | #endif | ||
77 | |||
78 | |||
79 | /* -------------------------------------------------------------------- | ||
32 | * USB Host (OHCI) | 80 | * USB Host (OHCI) |
33 | * -------------------------------------------------------------------- */ | 81 | * -------------------------------------------------------------------- */ |
34 | 82 | ||
@@ -550,6 +598,61 @@ void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) | |||
550 | 598 | ||
551 | 599 | ||
552 | /* -------------------------------------------------------------------- | 600 | /* -------------------------------------------------------------------- |
601 | * AC97 | ||
602 | * -------------------------------------------------------------------- */ | ||
603 | |||
604 | #if defined(CONFIG_SND_ATMEL_AC97C) || defined(CONFIG_SND_ATMEL_AC97C_MODULE) | ||
605 | static u64 ac97_dmamask = DMA_BIT_MASK(32); | ||
606 | static struct ac97c_platform_data ac97_data; | ||
607 | |||
608 | static struct resource ac97_resources[] = { | ||
609 | [0] = { | ||
610 | .start = AT91SAM9G45_BASE_AC97C, | ||
611 | .end = AT91SAM9G45_BASE_AC97C + SZ_16K - 1, | ||
612 | .flags = IORESOURCE_MEM, | ||
613 | }, | ||
614 | [1] = { | ||
615 | .start = AT91SAM9G45_ID_AC97C, | ||
616 | .end = AT91SAM9G45_ID_AC97C, | ||
617 | .flags = IORESOURCE_IRQ, | ||
618 | }, | ||
619 | }; | ||
620 | |||
621 | static struct platform_device at91sam9g45_ac97_device = { | ||
622 | .name = "atmel_ac97c", | ||
623 | .id = 0, | ||
624 | .dev = { | ||
625 | .dma_mask = &ac97_dmamask, | ||
626 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
627 | .platform_data = &ac97_data, | ||
628 | }, | ||
629 | .resource = ac97_resources, | ||
630 | .num_resources = ARRAY_SIZE(ac97_resources), | ||
631 | }; | ||
632 | |||
633 | void __init at91_add_device_ac97(struct ac97c_platform_data *data) | ||
634 | { | ||
635 | if (!data) | ||
636 | return; | ||
637 | |||
638 | at91_set_A_periph(AT91_PIN_PD8, 0); /* AC97FS */ | ||
639 | at91_set_A_periph(AT91_PIN_PD9, 0); /* AC97CK */ | ||
640 | at91_set_A_periph(AT91_PIN_PD7, 0); /* AC97TX */ | ||
641 | at91_set_A_periph(AT91_PIN_PD6, 0); /* AC97RX */ | ||
642 | |||
643 | /* reset */ | ||
644 | if (data->reset_pin) | ||
645 | at91_set_gpio_output(data->reset_pin, 0); | ||
646 | |||
647 | ac97_data = *data; | ||
648 | platform_device_register(&at91sam9g45_ac97_device); | ||
649 | } | ||
650 | #else | ||
651 | void __init at91_add_device_ac97(struct ac97c_platform_data *data) {} | ||
652 | #endif | ||
653 | |||
654 | |||
655 | /* -------------------------------------------------------------------- | ||
553 | * LCD Controller | 656 | * LCD Controller |
554 | * -------------------------------------------------------------------- */ | 657 | * -------------------------------------------------------------------- */ |
555 | 658 | ||
@@ -1220,6 +1323,7 @@ void __init at91_add_device_serial(void) {} | |||
1220 | */ | 1323 | */ |
1221 | static int __init at91_add_standard_devices(void) | 1324 | static int __init at91_add_standard_devices(void) |
1222 | { | 1325 | { |
1326 | at91_add_device_hdmac(); | ||
1223 | at91_add_device_rtc(); | 1327 | at91_add_device_rtc(); |
1224 | at91_add_device_rtt(); | 1328 | at91_add_device_rtt(); |
1225 | at91_add_device_watchdog(); | 1329 | at91_add_device_watchdog(); |
diff --git a/arch/arm/mach-at91/at91sam9rl_devices.c b/arch/arm/mach-at91/at91sam9rl_devices.c index 728186515cdf..d345f5453dbe 100644 --- a/arch/arm/mach-at91/at91sam9rl_devices.c +++ b/arch/arm/mach-at91/at91sam9rl_devices.c | |||
@@ -21,11 +21,57 @@ | |||
21 | #include <mach/at91sam9rl.h> | 21 | #include <mach/at91sam9rl.h> |
22 | #include <mach/at91sam9rl_matrix.h> | 22 | #include <mach/at91sam9rl_matrix.h> |
23 | #include <mach/at91sam9_smc.h> | 23 | #include <mach/at91sam9_smc.h> |
24 | #include <mach/at_hdmac.h> | ||
24 | 25 | ||
25 | #include "generic.h" | 26 | #include "generic.h" |
26 | 27 | ||
27 | 28 | ||
28 | /* -------------------------------------------------------------------- | 29 | /* -------------------------------------------------------------------- |
30 | * HDMAC - AHB DMA Controller | ||
31 | * -------------------------------------------------------------------- */ | ||
32 | |||
33 | #if defined(CONFIG_AT_HDMAC) || defined(CONFIG_AT_HDMAC_MODULE) | ||
34 | static u64 hdmac_dmamask = DMA_BIT_MASK(32); | ||
35 | |||
36 | static struct at_dma_platform_data atdma_pdata = { | ||
37 | .nr_channels = 2, | ||
38 | }; | ||
39 | |||
40 | static struct resource hdmac_resources[] = { | ||
41 | [0] = { | ||
42 | .start = AT91_BASE_SYS + AT91_DMA, | ||
43 | .end = AT91_BASE_SYS + AT91_DMA + SZ_512 - 1, | ||
44 | .flags = IORESOURCE_MEM, | ||
45 | }, | ||
46 | [2] = { | ||
47 | .start = AT91SAM9RL_ID_DMA, | ||
48 | .end = AT91SAM9RL_ID_DMA, | ||
49 | .flags = IORESOURCE_IRQ, | ||
50 | }, | ||
51 | }; | ||
52 | |||
53 | static struct platform_device at_hdmac_device = { | ||
54 | .name = "at_hdmac", | ||
55 | .id = -1, | ||
56 | .dev = { | ||
57 | .dma_mask = &hdmac_dmamask, | ||
58 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
59 | .platform_data = &atdma_pdata, | ||
60 | }, | ||
61 | .resource = hdmac_resources, | ||
62 | .num_resources = ARRAY_SIZE(hdmac_resources), | ||
63 | }; | ||
64 | |||
65 | void __init at91_add_device_hdmac(void) | ||
66 | { | ||
67 | dma_cap_set(DMA_MEMCPY, atdma_pdata.cap_mask); | ||
68 | platform_device_register(&at_hdmac_device); | ||
69 | } | ||
70 | #else | ||
71 | void __init at91_add_device_hdmac(void) {} | ||
72 | #endif | ||
73 | |||
74 | /* -------------------------------------------------------------------- | ||
29 | * USB HS Device (Gadget) | 75 | * USB HS Device (Gadget) |
30 | * -------------------------------------------------------------------- */ | 76 | * -------------------------------------------------------------------- */ |
31 | 77 | ||
@@ -398,6 +444,61 @@ void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) | |||
398 | 444 | ||
399 | 445 | ||
400 | /* -------------------------------------------------------------------- | 446 | /* -------------------------------------------------------------------- |
447 | * AC97 | ||
448 | * -------------------------------------------------------------------- */ | ||
449 | |||
450 | #if defined(CONFIG_SND_ATMEL_AC97C) || defined(CONFIG_SND_ATMEL_AC97C_MODULE) | ||
451 | static u64 ac97_dmamask = DMA_BIT_MASK(32); | ||
452 | static struct ac97c_platform_data ac97_data; | ||
453 | |||
454 | static struct resource ac97_resources[] = { | ||
455 | [0] = { | ||
456 | .start = AT91SAM9RL_BASE_AC97C, | ||
457 | .end = AT91SAM9RL_BASE_AC97C + SZ_16K - 1, | ||
458 | .flags = IORESOURCE_MEM, | ||
459 | }, | ||
460 | [1] = { | ||
461 | .start = AT91SAM9RL_ID_AC97C, | ||
462 | .end = AT91SAM9RL_ID_AC97C, | ||
463 | .flags = IORESOURCE_IRQ, | ||
464 | }, | ||
465 | }; | ||
466 | |||
467 | static struct platform_device at91sam9rl_ac97_device = { | ||
468 | .name = "atmel_ac97c", | ||
469 | .id = 0, | ||
470 | .dev = { | ||
471 | .dma_mask = &ac97_dmamask, | ||
472 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
473 | .platform_data = &ac97_data, | ||
474 | }, | ||
475 | .resource = ac97_resources, | ||
476 | .num_resources = ARRAY_SIZE(ac97_resources), | ||
477 | }; | ||
478 | |||
479 | void __init at91_add_device_ac97(struct ac97c_platform_data *data) | ||
480 | { | ||
481 | if (!data) | ||
482 | return; | ||
483 | |||
484 | at91_set_A_periph(AT91_PIN_PD1, 0); /* AC97FS */ | ||
485 | at91_set_A_periph(AT91_PIN_PD2, 0); /* AC97CK */ | ||
486 | at91_set_A_periph(AT91_PIN_PD3, 0); /* AC97TX */ | ||
487 | at91_set_A_periph(AT91_PIN_PD4, 0); /* AC97RX */ | ||
488 | |||
489 | /* reset */ | ||
490 | if (data->reset_pin) | ||
491 | at91_set_gpio_output(data->reset_pin, 0); | ||
492 | |||
493 | ac97_data = *data; | ||
494 | platform_device_register(&at91sam9rl_ac97_device); | ||
495 | } | ||
496 | #else | ||
497 | void __init at91_add_device_ac97(struct ac97c_platform_data *data) {} | ||
498 | #endif | ||
499 | |||
500 | |||
501 | /* -------------------------------------------------------------------- | ||
401 | * LCD Controller | 502 | * LCD Controller |
402 | * -------------------------------------------------------------------- */ | 503 | * -------------------------------------------------------------------- */ |
403 | 504 | ||
@@ -1103,6 +1204,7 @@ void __init at91_add_device_serial(void) {} | |||
1103 | */ | 1204 | */ |
1104 | static int __init at91_add_standard_devices(void) | 1205 | static int __init at91_add_standard_devices(void) |
1105 | { | 1206 | { |
1207 | at91_add_device_hdmac(); | ||
1106 | at91_add_device_rtc(); | 1208 | at91_add_device_rtc(); |
1107 | at91_add_device_rtt(); | 1209 | at91_add_device_rtt(); |
1108 | at91_add_device_watchdog(); | 1210 | at91_add_device_watchdog(); |
diff --git a/arch/arm/mach-at91/board-cap9adk.c b/arch/arm/mach-at91/board-cap9adk.c index 83a1a0fef47b..d6940870e403 100644 --- a/arch/arm/mach-at91/board-cap9adk.c +++ b/arch/arm/mach-at91/board-cap9adk.c | |||
@@ -364,7 +364,7 @@ static struct atmel_lcdfb_info __initdata cap9adk_lcdc_data; | |||
364 | /* | 364 | /* |
365 | * AC97 | 365 | * AC97 |
366 | */ | 366 | */ |
367 | static struct atmel_ac97_data cap9adk_ac97_data = { | 367 | static struct ac97c_platform_data cap9adk_ac97_data = { |
368 | // .reset_pin = ... not connected | 368 | // .reset_pin = ... not connected |
369 | }; | 369 | }; |
370 | 370 | ||
diff --git a/arch/arm/mach-at91/board-neocore926.c b/arch/arm/mach-at91/board-neocore926.c index 8c0b71c95be4..7c1e382330fb 100644 --- a/arch/arm/mach-at91/board-neocore926.c +++ b/arch/arm/mach-at91/board-neocore926.c | |||
@@ -340,7 +340,7 @@ static void __init neocore926_add_device_buttons(void) {} | |||
340 | /* | 340 | /* |
341 | * AC97 | 341 | * AC97 |
342 | */ | 342 | */ |
343 | static struct atmel_ac97_data neocore926_ac97_data = { | 343 | static struct ac97c_platform_data neocore926_ac97_data = { |
344 | .reset_pin = AT91_PIN_PA13, | 344 | .reset_pin = AT91_PIN_PA13, |
345 | }; | 345 | }; |
346 | 346 | ||
diff --git a/arch/arm/mach-at91/board-sam9263ek.c b/arch/arm/mach-at91/board-sam9263ek.c index 26f1aa6049af..2d867fb0630f 100644 --- a/arch/arm/mach-at91/board-sam9263ek.c +++ b/arch/arm/mach-at91/board-sam9263ek.c | |||
@@ -400,6 +400,23 @@ static struct gpio_led ek_pwm_led[] = { | |||
400 | } | 400 | } |
401 | }; | 401 | }; |
402 | 402 | ||
403 | /* | ||
404 | * CAN | ||
405 | */ | ||
406 | static void sam9263ek_transceiver_switch(int on) | ||
407 | { | ||
408 | if (on) { | ||
409 | at91_set_gpio_output(AT91_PIN_PA18, 1); /* CANRXEN */ | ||
410 | at91_set_gpio_output(AT91_PIN_PA19, 0); /* CANRS */ | ||
411 | } else { | ||
412 | at91_set_gpio_output(AT91_PIN_PA18, 0); /* CANRXEN */ | ||
413 | at91_set_gpio_output(AT91_PIN_PA19, 1); /* CANRS */ | ||
414 | } | ||
415 | } | ||
416 | |||
417 | static struct at91_can_data ek_can_data = { | ||
418 | .transceiver_switch = sam9263ek_transceiver_switch, | ||
419 | }; | ||
403 | 420 | ||
404 | static void __init ek_board_init(void) | 421 | static void __init ek_board_init(void) |
405 | { | 422 | { |
@@ -431,6 +448,8 @@ static void __init ek_board_init(void) | |||
431 | /* LEDs */ | 448 | /* LEDs */ |
432 | at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds)); | 449 | at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds)); |
433 | at91_pwm_leds(ek_pwm_led, ARRAY_SIZE(ek_pwm_led)); | 450 | at91_pwm_leds(ek_pwm_led, ARRAY_SIZE(ek_pwm_led)); |
451 | /* CAN */ | ||
452 | at91_add_device_can(&ek_can_data); | ||
434 | } | 453 | } |
435 | 454 | ||
436 | MACHINE_START(AT91SAM9263EK, "Atmel AT91SAM9263-EK") | 455 | MACHINE_START(AT91SAM9263EK, "Atmel AT91SAM9263-EK") |
diff --git a/arch/arm/mach-at91/board-sam9m10g45ek.c b/arch/arm/mach-at91/board-sam9m10g45ek.c index b8558eae5229..64c3843f323d 100644 --- a/arch/arm/mach-at91/board-sam9m10g45ek.c +++ b/arch/arm/mach-at91/board-sam9m10g45ek.c | |||
@@ -311,6 +311,14 @@ static void __init ek_add_device_buttons(void) {} | |||
311 | 311 | ||
312 | 312 | ||
313 | /* | 313 | /* |
314 | * AC97 | ||
315 | * reset_pin is not connected: NRST | ||
316 | */ | ||
317 | static struct ac97c_platform_data ek_ac97_data = { | ||
318 | }; | ||
319 | |||
320 | |||
321 | /* | ||
314 | * LEDs ... these could all be PWM-driven, for variable brightness | 322 | * LEDs ... these could all be PWM-driven, for variable brightness |
315 | */ | 323 | */ |
316 | static struct gpio_led ek_leds[] = { | 324 | static struct gpio_led ek_leds[] = { |
@@ -372,6 +380,8 @@ static void __init ek_board_init(void) | |||
372 | at91_add_device_lcdc(&ek_lcdc_data); | 380 | at91_add_device_lcdc(&ek_lcdc_data); |
373 | /* Push Buttons */ | 381 | /* Push Buttons */ |
374 | ek_add_device_buttons(); | 382 | ek_add_device_buttons(); |
383 | /* AC97 */ | ||
384 | at91_add_device_ac97(&ek_ac97_data); | ||
375 | /* LEDs */ | 385 | /* LEDs */ |
376 | at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds)); | 386 | at91_gpio_leds(ek_leds, ARRAY_SIZE(ek_leds)); |
377 | at91_pwm_leds(ek_pwm_led, ARRAY_SIZE(ek_pwm_led)); | 387 | at91_pwm_leds(ek_pwm_led, ARRAY_SIZE(ek_pwm_led)); |
diff --git a/arch/arm/mach-at91/board-sam9rlek.c b/arch/arm/mach-at91/board-sam9rlek.c index 94ffb5c103b9..bd28e989e54e 100644 --- a/arch/arm/mach-at91/board-sam9rlek.c +++ b/arch/arm/mach-at91/board-sam9rlek.c | |||
@@ -211,6 +211,14 @@ static struct atmel_lcdfb_info __initdata ek_lcdc_data; | |||
211 | 211 | ||
212 | 212 | ||
213 | /* | 213 | /* |
214 | * AC97 | ||
215 | * reset_pin is not connected: NRST | ||
216 | */ | ||
217 | static struct ac97c_platform_data ek_ac97_data = { | ||
218 | }; | ||
219 | |||
220 | |||
221 | /* | ||
214 | * LEDs | 222 | * LEDs |
215 | */ | 223 | */ |
216 | static struct gpio_led ek_leds[] = { | 224 | static struct gpio_led ek_leds[] = { |
@@ -299,6 +307,8 @@ static void __init ek_board_init(void) | |||
299 | at91_add_device_mmc(0, &ek_mmc_data); | 307 | at91_add_device_mmc(0, &ek_mmc_data); |
300 | /* LCD Controller */ | 308 | /* LCD Controller */ |
301 | at91_add_device_lcdc(&ek_lcdc_data); | 309 | at91_add_device_lcdc(&ek_lcdc_data); |
310 | /* AC97 */ | ||
311 | at91_add_device_ac97(&ek_ac97_data); | ||
302 | /* Touch Screen Controller */ | 312 | /* Touch Screen Controller */ |
303 | at91_add_device_tsadcc(); | 313 | at91_add_device_tsadcc(); |
304 | /* LEDs */ | 314 | /* LEDs */ |
diff --git a/arch/arm/mach-at91/include/mach/board.h b/arch/arm/mach-at91/include/mach/board.h index 583f38a38df7..2f4fcedc02ba 100644 --- a/arch/arm/mach-at91/include/mach/board.h +++ b/arch/arm/mach-at91/include/mach/board.h | |||
@@ -188,6 +188,12 @@ extern void __init at91_add_device_isi(void); | |||
188 | /* Touchscreen Controller */ | 188 | /* Touchscreen Controller */ |
189 | extern void __init at91_add_device_tsadcc(void); | 189 | extern void __init at91_add_device_tsadcc(void); |
190 | 190 | ||
191 | /* CAN */ | ||
192 | struct at91_can_data { | ||
193 | void (*transceiver_switch)(int on); | ||
194 | }; | ||
195 | extern void __init at91_add_device_can(struct at91_can_data *data); | ||
196 | |||
191 | /* LEDs */ | 197 | /* LEDs */ |
192 | extern void __init at91_init_leds(u8 cpu_led, u8 timer_led); | 198 | extern void __init at91_init_leds(u8 cpu_led, u8 timer_led); |
193 | extern void __init at91_gpio_leds(struct gpio_led *leds, int nr); | 199 | extern void __init at91_gpio_leds(struct gpio_led *leds, int nr); |
diff --git a/arch/arm/mach-bcmring/core.c b/arch/arm/mach-bcmring/core.c index 492c649f451e..e590bbe0a7b4 100644 --- a/arch/arm/mach-bcmring/core.c +++ b/arch/arm/mach-bcmring/core.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #include <linux/clocksource.h> | 31 | #include <linux/clocksource.h> |
32 | #include <linux/clockchips.h> | 32 | #include <linux/clockchips.h> |
33 | 33 | ||
34 | #include <linux/amba/bus.h> | ||
35 | #include <mach/csp/mm_addr.h> | 34 | #include <mach/csp/mm_addr.h> |
36 | #include <mach/hardware.h> | 35 | #include <mach/hardware.h> |
37 | #include <asm/clkdev.h> | 36 | #include <asm/clkdev.h> |
@@ -45,7 +44,6 @@ | |||
45 | #include <asm/mach/irq.h> | 44 | #include <asm/mach/irq.h> |
46 | #include <asm/mach/time.h> | 45 | #include <asm/mach/time.h> |
47 | #include <asm/mach/map.h> | 46 | #include <asm/mach/map.h> |
48 | #include <asm/mach/mmc.h> | ||
49 | 47 | ||
50 | #include <cfg_global.h> | 48 | #include <cfg_global.h> |
51 | 49 | ||
@@ -273,12 +271,12 @@ static struct irqaction bcmring_timer_irq = { | |||
273 | .handler = bcmring_timer_interrupt, | 271 | .handler = bcmring_timer_interrupt, |
274 | }; | 272 | }; |
275 | 273 | ||
276 | static cycle_t bcmring_get_cycles_timer1(void) | 274 | static cycle_t bcmring_get_cycles_timer1(struct clocksource *cs) |
277 | { | 275 | { |
278 | return ~readl(TIMER1_VA_BASE + TIMER_VALUE); | 276 | return ~readl(TIMER1_VA_BASE + TIMER_VALUE); |
279 | } | 277 | } |
280 | 278 | ||
281 | static cycle_t bcmring_get_cycles_timer3(void) | 279 | static cycle_t bcmring_get_cycles_timer3(struct clocksource *cs) |
282 | { | 280 | { |
283 | return ~readl(TIMER3_VA_BASE + TIMER_VALUE); | 281 | return ~readl(TIMER3_VA_BASE + TIMER_VALUE); |
284 | } | 282 | } |
diff --git a/arch/arm/mach-bcmring/include/mach/system.h b/arch/arm/mach-bcmring/include/mach/system.h index cdbf93c694a6..38b37060d426 100644 --- a/arch/arm/mach-bcmring/include/mach/system.h +++ b/arch/arm/mach-bcmring/include/mach/system.h | |||
@@ -29,7 +29,7 @@ static inline void arch_idle(void) | |||
29 | cpu_do_idle(); | 29 | cpu_do_idle(); |
30 | } | 30 | } |
31 | 31 | ||
32 | static inline void arch_reset(char mode, char *cmd) | 32 | static inline void arch_reset(char mode, const char *cmd) |
33 | { | 33 | { |
34 | printk("arch_reset:%c %x\n", mode, bcmring_arch_warm_reboot); | 34 | printk("arch_reset:%c %x\n", mode, bcmring_arch_warm_reboot); |
35 | 35 | ||
diff --git a/arch/arm/mach-davinci/board-dm365-evm.c b/arch/arm/mach-davinci/board-dm365-evm.c index a1d5e7dac741..52dd8046b305 100644 --- a/arch/arm/mach-davinci/board-dm365-evm.c +++ b/arch/arm/mach-davinci/board-dm365-evm.c | |||
@@ -35,7 +35,6 @@ | |||
35 | #include <mach/common.h> | 35 | #include <mach/common.h> |
36 | #include <mach/i2c.h> | 36 | #include <mach/i2c.h> |
37 | #include <mach/serial.h> | 37 | #include <mach/serial.h> |
38 | #include <mach/common.h> | ||
39 | #include <mach/mmc.h> | 38 | #include <mach/mmc.h> |
40 | #include <mach/nand.h> | 39 | #include <mach/nand.h> |
41 | 40 | ||
diff --git a/arch/arm/mach-ep93xx/Kconfig b/arch/arm/mach-ep93xx/Kconfig index d7291c682a64..9167c3d2a5ed 100644 --- a/arch/arm/mach-ep93xx/Kconfig +++ b/arch/arm/mach-ep93xx/Kconfig | |||
@@ -17,13 +17,31 @@ config EP93XX_SDCE3_SYNC_PHYS_OFFSET | |||
17 | bool "0x00000000 - SDCE3/SyncBoot" | 17 | bool "0x00000000 - SDCE3/SyncBoot" |
18 | help | 18 | help |
19 | Select this option if you want support for EP93xx boards with the | 19 | Select this option if you want support for EP93xx boards with the |
20 | first SDRAM bank at 0x00000000 | 20 | first SDRAM bank at 0x00000000. |
21 | 21 | ||
22 | config EP93XX_SDCE0_PHYS_OFFSET | 22 | config EP93XX_SDCE0_PHYS_OFFSET |
23 | bool "0xc0000000 - SDCEO" | 23 | bool "0xc0000000 - SDCEO" |
24 | help | 24 | help |
25 | Select this option if you want support for EP93xx boards with the | 25 | Select this option if you want support for EP93xx boards with the |
26 | first SDRAM bank at 0xc0000000 | 26 | first SDRAM bank at 0xc0000000. |
27 | |||
28 | config EP93XX_SDCE1_PHYS_OFFSET | ||
29 | bool "0xd0000000 - SDCE1" | ||
30 | help | ||
31 | Select this option if you want support for EP93xx boards with the | ||
32 | first SDRAM bank at 0xd0000000. | ||
33 | |||
34 | config EP93XX_SDCE2_PHYS_OFFSET | ||
35 | bool "0xe0000000 - SDCE2" | ||
36 | help | ||
37 | Select this option if you want support for EP93xx boards with the | ||
38 | first SDRAM bank at 0xe0000000. | ||
39 | |||
40 | config EP93XX_SDCE3_ASYNC_PHYS_OFFSET | ||
41 | bool "0xf0000000 - SDCE3/AsyncBoot" | ||
42 | help | ||
43 | Select this option if you want support for EP93xx boards with the | ||
44 | first SDRAM bank at 0xf0000000. | ||
27 | 45 | ||
28 | endchoice | 46 | endchoice |
29 | 47 | ||
@@ -112,28 +130,36 @@ config MACH_MICRO9 | |||
112 | bool | 130 | bool |
113 | 131 | ||
114 | config MACH_MICRO9H | 132 | config MACH_MICRO9H |
115 | bool "Support Contec Hypercontrol Micro9-H" | 133 | bool "Support Contec Micro9-High" |
116 | depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET | 134 | depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET |
117 | select MACH_MICRO9 | 135 | select MACH_MICRO9 |
118 | help | 136 | help |
119 | Say 'Y' here if you want your kernel to support the | 137 | Say 'Y' here if you want your kernel to support the |
120 | Contec Hypercontrol Micro9-H board. | 138 | Contec Micro9-High board. |
121 | 139 | ||
122 | config MACH_MICRO9M | 140 | config MACH_MICRO9M |
123 | bool "Support Contec Hypercontrol Micro9-M" | 141 | bool "Support Contec Micro9-Mid" |
124 | depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET | 142 | depends on EP93XX_SDCE3_ASYNC_PHYS_OFFSET |
125 | select MACH_MICRO9 | 143 | select MACH_MICRO9 |
126 | help | 144 | help |
127 | Say 'Y' here if you want your kernel to support the | 145 | Say 'Y' here if you want your kernel to support the |
128 | Contec Hypercontrol Micro9-M board. | 146 | Contec Micro9-Mid board. |
129 | 147 | ||
130 | config MACH_MICRO9L | 148 | config MACH_MICRO9L |
131 | bool "Support Contec Hypercontrol Micro9-L" | 149 | bool "Support Contec Micro9-Lite" |
132 | depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET | 150 | depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET |
133 | select MACH_MICRO9 | 151 | select MACH_MICRO9 |
134 | help | 152 | help |
135 | Say 'Y' here if you want your kernel to support the | 153 | Say 'Y' here if you want your kernel to support the |
136 | Contec Hypercontrol Micro9-L board. | 154 | Contec Micro9-Lite board. |
155 | |||
156 | config MACH_MICRO9S | ||
157 | bool "Support Contec Micro9-Slim" | ||
158 | depends on EP93XX_SDCE3_ASYNC_PHYS_OFFSET | ||
159 | select MACH_MICRO9 | ||
160 | help | ||
161 | Say 'Y' here if you want your kernel to support the | ||
162 | Contec Micro9-Slim board. | ||
137 | 163 | ||
138 | config MACH_TS72XX | 164 | config MACH_TS72XX |
139 | bool "Support Technologic Systems TS-72xx SBC" | 165 | bool "Support Technologic Systems TS-72xx SBC" |
diff --git a/arch/arm/mach-ep93xx/Makefile.boot b/arch/arm/mach-ep93xx/Makefile.boot index 27a085a8f12a..0ad33f15c622 100644 --- a/arch/arm/mach-ep93xx/Makefile.boot +++ b/arch/arm/mach-ep93xx/Makefile.boot | |||
@@ -3,3 +3,12 @@ params_phys-$(CONFIG_EP93XX_SDCE3_SYNC_PHYS_OFFSET) := 0x00000100 | |||
3 | 3 | ||
4 | zreladdr-$(CONFIG_EP93XX_SDCE0_PHYS_OFFSET) := 0xc0008000 | 4 | zreladdr-$(CONFIG_EP93XX_SDCE0_PHYS_OFFSET) := 0xc0008000 |
5 | params_phys-$(CONFIG_EP93XX_SDCE0_PHYS_OFFSET) := 0xc0000100 | 5 | params_phys-$(CONFIG_EP93XX_SDCE0_PHYS_OFFSET) := 0xc0000100 |
6 | |||
7 | zreladdr-$(CONFIG_EP93XX_SDCE1_PHYS_OFFSET) := 0xd0008000 | ||
8 | params_phys-$(CONFIG_EP93XX_SDCE1_PHYS_OFFSET) := 0xd0000100 | ||
9 | |||
10 | zreladdr-$(CONFIG_EP93XX_SDCE2_PHYS_OFFSET) := 0xe0008000 | ||
11 | params_phys-$(CONFIG_EP93XX_SDCE2_PHYS_OFFSET) := 0xe0000100 | ||
12 | |||
13 | zreladdr-$(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET) := 0xf0008000 | ||
14 | params_phys-$(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET) := 0xf0000100 | ||
diff --git a/arch/arm/mach-ep93xx/clock.c b/arch/arm/mach-ep93xx/clock.c index dda19cd76194..1d0f9d8aff2e 100644 --- a/arch/arm/mach-ep93xx/clock.c +++ b/arch/arm/mach-ep93xx/clock.c | |||
@@ -16,13 +16,16 @@ | |||
16 | #include <linux/module.h> | 16 | #include <linux/module.h> |
17 | #include <linux/string.h> | 17 | #include <linux/string.h> |
18 | #include <linux/io.h> | 18 | #include <linux/io.h> |
19 | #include <linux/spinlock.h> | ||
20 | |||
21 | #include <mach/hardware.h> | ||
19 | 22 | ||
20 | #include <asm/clkdev.h> | 23 | #include <asm/clkdev.h> |
21 | #include <asm/div64.h> | 24 | #include <asm/div64.h> |
22 | #include <mach/hardware.h> | ||
23 | 25 | ||
24 | 26 | ||
25 | struct clk { | 27 | struct clk { |
28 | struct clk *parent; | ||
26 | unsigned long rate; | 29 | unsigned long rate; |
27 | int users; | 30 | int users; |
28 | int sw_locked; | 31 | int sw_locked; |
@@ -39,40 +42,60 @@ static unsigned long get_uart_rate(struct clk *clk); | |||
39 | static int set_keytchclk_rate(struct clk *clk, unsigned long rate); | 42 | static int set_keytchclk_rate(struct clk *clk, unsigned long rate); |
40 | static int set_div_rate(struct clk *clk, unsigned long rate); | 43 | static int set_div_rate(struct clk *clk, unsigned long rate); |
41 | 44 | ||
45 | |||
46 | static struct clk clk_xtali = { | ||
47 | .rate = EP93XX_EXT_CLK_RATE, | ||
48 | }; | ||
42 | static struct clk clk_uart1 = { | 49 | static struct clk clk_uart1 = { |
50 | .parent = &clk_xtali, | ||
43 | .sw_locked = 1, | 51 | .sw_locked = 1, |
44 | .enable_reg = EP93XX_SYSCON_DEVCFG, | 52 | .enable_reg = EP93XX_SYSCON_DEVCFG, |
45 | .enable_mask = EP93XX_SYSCON_DEVCFG_U1EN, | 53 | .enable_mask = EP93XX_SYSCON_DEVCFG_U1EN, |
46 | .get_rate = get_uart_rate, | 54 | .get_rate = get_uart_rate, |
47 | }; | 55 | }; |
48 | static struct clk clk_uart2 = { | 56 | static struct clk clk_uart2 = { |
57 | .parent = &clk_xtali, | ||
49 | .sw_locked = 1, | 58 | .sw_locked = 1, |
50 | .enable_reg = EP93XX_SYSCON_DEVCFG, | 59 | .enable_reg = EP93XX_SYSCON_DEVCFG, |
51 | .enable_mask = EP93XX_SYSCON_DEVCFG_U2EN, | 60 | .enable_mask = EP93XX_SYSCON_DEVCFG_U2EN, |
52 | .get_rate = get_uart_rate, | 61 | .get_rate = get_uart_rate, |
53 | }; | 62 | }; |
54 | static struct clk clk_uart3 = { | 63 | static struct clk clk_uart3 = { |
64 | .parent = &clk_xtali, | ||
55 | .sw_locked = 1, | 65 | .sw_locked = 1, |
56 | .enable_reg = EP93XX_SYSCON_DEVCFG, | 66 | .enable_reg = EP93XX_SYSCON_DEVCFG, |
57 | .enable_mask = EP93XX_SYSCON_DEVCFG_U3EN, | 67 | .enable_mask = EP93XX_SYSCON_DEVCFG_U3EN, |
58 | .get_rate = get_uart_rate, | 68 | .get_rate = get_uart_rate, |
59 | }; | 69 | }; |
60 | static struct clk clk_pll1; | 70 | static struct clk clk_pll1 = { |
61 | static struct clk clk_f; | 71 | .parent = &clk_xtali, |
62 | static struct clk clk_h; | 72 | }; |
63 | static struct clk clk_p; | 73 | static struct clk clk_f = { |
64 | static struct clk clk_pll2; | 74 | .parent = &clk_pll1, |
75 | }; | ||
76 | static struct clk clk_h = { | ||
77 | .parent = &clk_pll1, | ||
78 | }; | ||
79 | static struct clk clk_p = { | ||
80 | .parent = &clk_pll1, | ||
81 | }; | ||
82 | static struct clk clk_pll2 = { | ||
83 | .parent = &clk_xtali, | ||
84 | }; | ||
65 | static struct clk clk_usb_host = { | 85 | static struct clk clk_usb_host = { |
86 | .parent = &clk_pll2, | ||
66 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 87 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
67 | .enable_mask = EP93XX_SYSCON_PWRCNT_USH_EN, | 88 | .enable_mask = EP93XX_SYSCON_PWRCNT_USH_EN, |
68 | }; | 89 | }; |
69 | static struct clk clk_keypad = { | 90 | static struct clk clk_keypad = { |
91 | .parent = &clk_xtali, | ||
70 | .sw_locked = 1, | 92 | .sw_locked = 1, |
71 | .enable_reg = EP93XX_SYSCON_KEYTCHCLKDIV, | 93 | .enable_reg = EP93XX_SYSCON_KEYTCHCLKDIV, |
72 | .enable_mask = EP93XX_SYSCON_KEYTCHCLKDIV_KEN, | 94 | .enable_mask = EP93XX_SYSCON_KEYTCHCLKDIV_KEN, |
73 | .set_rate = set_keytchclk_rate, | 95 | .set_rate = set_keytchclk_rate, |
74 | }; | 96 | }; |
75 | static struct clk clk_pwm = { | 97 | static struct clk clk_pwm = { |
98 | .parent = &clk_xtali, | ||
76 | .rate = EP93XX_EXT_CLK_RATE, | 99 | .rate = EP93XX_EXT_CLK_RATE, |
77 | }; | 100 | }; |
78 | 101 | ||
@@ -85,50 +108,62 @@ static struct clk clk_video = { | |||
85 | 108 | ||
86 | /* DMA Clocks */ | 109 | /* DMA Clocks */ |
87 | static struct clk clk_m2p0 = { | 110 | static struct clk clk_m2p0 = { |
111 | .parent = &clk_h, | ||
88 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 112 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
89 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P0, | 113 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P0, |
90 | }; | 114 | }; |
91 | static struct clk clk_m2p1 = { | 115 | static struct clk clk_m2p1 = { |
116 | .parent = &clk_h, | ||
92 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 117 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
93 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P1, | 118 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P1, |
94 | }; | 119 | }; |
95 | static struct clk clk_m2p2 = { | 120 | static struct clk clk_m2p2 = { |
121 | .parent = &clk_h, | ||
96 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 122 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
97 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P2, | 123 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P2, |
98 | }; | 124 | }; |
99 | static struct clk clk_m2p3 = { | 125 | static struct clk clk_m2p3 = { |
126 | .parent = &clk_h, | ||
100 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 127 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
101 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P3, | 128 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P3, |
102 | }; | 129 | }; |
103 | static struct clk clk_m2p4 = { | 130 | static struct clk clk_m2p4 = { |
131 | .parent = &clk_h, | ||
104 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 132 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
105 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P4, | 133 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P4, |
106 | }; | 134 | }; |
107 | static struct clk clk_m2p5 = { | 135 | static struct clk clk_m2p5 = { |
136 | .parent = &clk_h, | ||
108 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 137 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
109 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P5, | 138 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P5, |
110 | }; | 139 | }; |
111 | static struct clk clk_m2p6 = { | 140 | static struct clk clk_m2p6 = { |
141 | .parent = &clk_h, | ||
112 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 142 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
113 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P6, | 143 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P6, |
114 | }; | 144 | }; |
115 | static struct clk clk_m2p7 = { | 145 | static struct clk clk_m2p7 = { |
146 | .parent = &clk_h, | ||
116 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 147 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
117 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P7, | 148 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P7, |
118 | }; | 149 | }; |
119 | static struct clk clk_m2p8 = { | 150 | static struct clk clk_m2p8 = { |
151 | .parent = &clk_h, | ||
120 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 152 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
121 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P8, | 153 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P8, |
122 | }; | 154 | }; |
123 | static struct clk clk_m2p9 = { | 155 | static struct clk clk_m2p9 = { |
156 | .parent = &clk_h, | ||
124 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 157 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
125 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P9, | 158 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2P9, |
126 | }; | 159 | }; |
127 | static struct clk clk_m2m0 = { | 160 | static struct clk clk_m2m0 = { |
161 | .parent = &clk_h, | ||
128 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 162 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
129 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2M0, | 163 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2M0, |
130 | }; | 164 | }; |
131 | static struct clk clk_m2m1 = { | 165 | static struct clk clk_m2m1 = { |
166 | .parent = &clk_h, | ||
132 | .enable_reg = EP93XX_SYSCON_PWRCNT, | 167 | .enable_reg = EP93XX_SYSCON_PWRCNT, |
133 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2M1, | 168 | .enable_mask = EP93XX_SYSCON_PWRCNT_DMA_M2M1, |
134 | }; | 169 | }; |
@@ -137,6 +172,7 @@ static struct clk clk_m2m1 = { | |||
137 | { .dev_id = dev, .con_id = con, .clk = ck } | 172 | { .dev_id = dev, .con_id = con, .clk = ck } |
138 | 173 | ||
139 | static struct clk_lookup clocks[] = { | 174 | static struct clk_lookup clocks[] = { |
175 | INIT_CK(NULL, "xtali", &clk_xtali), | ||
140 | INIT_CK("apb:uart1", NULL, &clk_uart1), | 176 | INIT_CK("apb:uart1", NULL, &clk_uart1), |
141 | INIT_CK("apb:uart2", NULL, &clk_uart2), | 177 | INIT_CK("apb:uart2", NULL, &clk_uart2), |
142 | INIT_CK("apb:uart3", NULL, &clk_uart3), | 178 | INIT_CK("apb:uart3", NULL, &clk_uart3), |
@@ -163,48 +199,84 @@ static struct clk_lookup clocks[] = { | |||
163 | INIT_CK(NULL, "m2m1", &clk_m2m1), | 199 | INIT_CK(NULL, "m2m1", &clk_m2m1), |
164 | }; | 200 | }; |
165 | 201 | ||
202 | static DEFINE_SPINLOCK(clk_lock); | ||
203 | |||
204 | static void __clk_enable(struct clk *clk) | ||
205 | { | ||
206 | if (!clk->users++) { | ||
207 | if (clk->parent) | ||
208 | __clk_enable(clk->parent); | ||
209 | |||
210 | if (clk->enable_reg) { | ||
211 | u32 v; | ||
212 | |||
213 | v = __raw_readl(clk->enable_reg); | ||
214 | v |= clk->enable_mask; | ||
215 | if (clk->sw_locked) | ||
216 | ep93xx_syscon_swlocked_write(v, clk->enable_reg); | ||
217 | else | ||
218 | __raw_writel(v, clk->enable_reg); | ||
219 | } | ||
220 | } | ||
221 | } | ||
166 | 222 | ||
167 | int clk_enable(struct clk *clk) | 223 | int clk_enable(struct clk *clk) |
168 | { | 224 | { |
169 | if (!clk->users++ && clk->enable_reg) { | 225 | unsigned long flags; |
170 | u32 value; | ||
171 | 226 | ||
172 | value = __raw_readl(clk->enable_reg); | 227 | if (!clk) |
173 | value |= clk->enable_mask; | 228 | return -EINVAL; |
174 | if (clk->sw_locked) | 229 | |
175 | ep93xx_syscon_swlocked_write(value, clk->enable_reg); | 230 | spin_lock_irqsave(&clk_lock, flags); |
176 | else | 231 | __clk_enable(clk); |
177 | __raw_writel(value, clk->enable_reg); | 232 | spin_unlock_irqrestore(&clk_lock, flags); |
178 | } | ||
179 | 233 | ||
180 | return 0; | 234 | return 0; |
181 | } | 235 | } |
182 | EXPORT_SYMBOL(clk_enable); | 236 | EXPORT_SYMBOL(clk_enable); |
183 | 237 | ||
184 | void clk_disable(struct clk *clk) | 238 | static void __clk_disable(struct clk *clk) |
185 | { | 239 | { |
186 | if (!--clk->users && clk->enable_reg) { | 240 | if (!--clk->users) { |
187 | u32 value; | 241 | if (clk->enable_reg) { |
242 | u32 v; | ||
243 | |||
244 | v = __raw_readl(clk->enable_reg); | ||
245 | v &= ~clk->enable_mask; | ||
246 | if (clk->sw_locked) | ||
247 | ep93xx_syscon_swlocked_write(v, clk->enable_reg); | ||
248 | else | ||
249 | __raw_writel(v, clk->enable_reg); | ||
250 | } | ||
188 | 251 | ||
189 | value = __raw_readl(clk->enable_reg); | 252 | if (clk->parent) |
190 | value &= ~clk->enable_mask; | 253 | __clk_disable(clk->parent); |
191 | if (clk->sw_locked) | ||
192 | ep93xx_syscon_swlocked_write(value, clk->enable_reg); | ||
193 | else | ||
194 | __raw_writel(value, clk->enable_reg); | ||
195 | } | 254 | } |
196 | } | 255 | } |
256 | |||
257 | void clk_disable(struct clk *clk) | ||
258 | { | ||
259 | unsigned long flags; | ||
260 | |||
261 | if (!clk) | ||
262 | return; | ||
263 | |||
264 | spin_lock_irqsave(&clk_lock, flags); | ||
265 | __clk_disable(clk); | ||
266 | spin_unlock_irqrestore(&clk_lock, flags); | ||
267 | } | ||
197 | EXPORT_SYMBOL(clk_disable); | 268 | EXPORT_SYMBOL(clk_disable); |
198 | 269 | ||
199 | static unsigned long get_uart_rate(struct clk *clk) | 270 | static unsigned long get_uart_rate(struct clk *clk) |
200 | { | 271 | { |
272 | unsigned long rate = clk_get_rate(clk->parent); | ||
201 | u32 value; | 273 | u32 value; |
202 | 274 | ||
203 | value = __raw_readl(EP93XX_SYSCON_PWRCNT); | 275 | value = __raw_readl(EP93XX_SYSCON_PWRCNT); |
204 | if (value & EP93XX_SYSCON_PWRCNT_UARTBAUD) | 276 | if (value & EP93XX_SYSCON_PWRCNT_UARTBAUD) |
205 | return EP93XX_EXT_CLK_RATE; | 277 | return rate; |
206 | else | 278 | else |
207 | return EP93XX_EXT_CLK_RATE / 2; | 279 | return rate / 2; |
208 | } | 280 | } |
209 | 281 | ||
210 | unsigned long clk_get_rate(struct clk *clk) | 282 | unsigned long clk_get_rate(struct clk *clk) |
@@ -244,16 +316,16 @@ static int set_keytchclk_rate(struct clk *clk, unsigned long rate) | |||
244 | return 0; | 316 | return 0; |
245 | } | 317 | } |
246 | 318 | ||
247 | static unsigned long calc_clk_div(unsigned long rate, int *psel, int *esel, | 319 | static int calc_clk_div(struct clk *clk, unsigned long rate, |
248 | int *pdiv, int *div) | 320 | int *psel, int *esel, int *pdiv, int *div) |
249 | { | 321 | { |
250 | unsigned long max_rate, best_rate = 0, | 322 | struct clk *mclk; |
251 | actual_rate = 0, mclk_rate = 0, rate_err = -1; | 323 | unsigned long max_rate, actual_rate, mclk_rate, rate_err = -1; |
252 | int i, found = 0, __div = 0, __pdiv = 0; | 324 | int i, found = 0, __div = 0, __pdiv = 0; |
253 | 325 | ||
254 | /* Don't exceed the maximum rate */ | 326 | /* Don't exceed the maximum rate */ |
255 | max_rate = max(max(clk_pll1.rate / 4, clk_pll2.rate / 4), | 327 | max_rate = max(max(clk_pll1.rate / 4, clk_pll2.rate / 4), |
256 | (unsigned long)EP93XX_EXT_CLK_RATE / 4); | 328 | clk_xtali.rate / 4); |
257 | rate = min(rate, max_rate); | 329 | rate = min(rate, max_rate); |
258 | 330 | ||
259 | /* | 331 | /* |
@@ -267,11 +339,12 @@ static unsigned long calc_clk_div(unsigned long rate, int *psel, int *esel, | |||
267 | */ | 339 | */ |
268 | for (i = 0; i < 3; i++) { | 340 | for (i = 0; i < 3; i++) { |
269 | if (i == 0) | 341 | if (i == 0) |
270 | mclk_rate = EP93XX_EXT_CLK_RATE * 2; | 342 | mclk = &clk_xtali; |
271 | else if (i == 1) | 343 | else if (i == 1) |
272 | mclk_rate = clk_pll1.rate * 2; | 344 | mclk = &clk_pll1; |
273 | else if (i == 2) | 345 | else |
274 | mclk_rate = clk_pll2.rate * 2; | 346 | mclk = &clk_pll2; |
347 | mclk_rate = mclk->rate * 2; | ||
275 | 348 | ||
276 | /* Try each predivider value */ | 349 | /* Try each predivider value */ |
277 | for (__pdiv = 4; __pdiv <= 6; __pdiv++) { | 350 | for (__pdiv = 4; __pdiv <= 6; __pdiv++) { |
@@ -286,7 +359,8 @@ static unsigned long calc_clk_div(unsigned long rate, int *psel, int *esel, | |||
286 | *div = __div; | 359 | *div = __div; |
287 | *psel = (i == 2); | 360 | *psel = (i == 2); |
288 | *esel = (i != 0); | 361 | *esel = (i != 0); |
289 | best_rate = actual_rate; | 362 | clk->parent = mclk; |
363 | clk->rate = actual_rate; | ||
290 | rate_err = abs(actual_rate - rate); | 364 | rate_err = abs(actual_rate - rate); |
291 | found = 1; | 365 | found = 1; |
292 | } | 366 | } |
@@ -294,21 +368,19 @@ static unsigned long calc_clk_div(unsigned long rate, int *psel, int *esel, | |||
294 | } | 368 | } |
295 | 369 | ||
296 | if (!found) | 370 | if (!found) |
297 | return 0; | 371 | return -EINVAL; |
298 | 372 | ||
299 | return best_rate; | 373 | return 0; |
300 | } | 374 | } |
301 | 375 | ||
302 | static int set_div_rate(struct clk *clk, unsigned long rate) | 376 | static int set_div_rate(struct clk *clk, unsigned long rate) |
303 | { | 377 | { |
304 | unsigned long actual_rate; | 378 | int err, psel = 0, esel = 0, pdiv = 0, div = 0; |
305 | int psel = 0, esel = 0, pdiv = 0, div = 0; | ||
306 | u32 val; | 379 | u32 val; |
307 | 380 | ||
308 | actual_rate = calc_clk_div(rate, &psel, &esel, &pdiv, &div); | 381 | err = calc_clk_div(clk, rate, &psel, &esel, &pdiv, &div); |
309 | if (actual_rate == 0) | 382 | if (err) |
310 | return -EINVAL; | 383 | return err; |
311 | clk->rate = actual_rate; | ||
312 | 384 | ||
313 | /* Clear the esel, psel, pdiv and div bits */ | 385 | /* Clear the esel, psel, pdiv and div bits */ |
314 | val = __raw_readl(clk->enable_reg); | 386 | val = __raw_readl(clk->enable_reg); |
@@ -344,7 +416,7 @@ static unsigned long calc_pll_rate(u32 config_word) | |||
344 | unsigned long long rate; | 416 | unsigned long long rate; |
345 | int i; | 417 | int i; |
346 | 418 | ||
347 | rate = EP93XX_EXT_CLK_RATE; | 419 | rate = clk_xtali.rate; |
348 | rate *= ((config_word >> 11) & 0x1f) + 1; /* X1FBD */ | 420 | rate *= ((config_word >> 11) & 0x1f) + 1; /* X1FBD */ |
349 | rate *= ((config_word >> 5) & 0x3f) + 1; /* X2FBD */ | 421 | rate *= ((config_word >> 5) & 0x3f) + 1; /* X2FBD */ |
350 | do_div(rate, (config_word & 0x1f) + 1); /* X2IPD */ | 422 | do_div(rate, (config_word & 0x1f) + 1); /* X2IPD */ |
@@ -377,7 +449,7 @@ static int __init ep93xx_clock_init(void) | |||
377 | 449 | ||
378 | value = __raw_readl(EP93XX_SYSCON_CLOCK_SET1); | 450 | value = __raw_readl(EP93XX_SYSCON_CLOCK_SET1); |
379 | if (!(value & 0x00800000)) { /* PLL1 bypassed? */ | 451 | if (!(value & 0x00800000)) { /* PLL1 bypassed? */ |
380 | clk_pll1.rate = EP93XX_EXT_CLK_RATE; | 452 | clk_pll1.rate = clk_xtali.rate; |
381 | } else { | 453 | } else { |
382 | clk_pll1.rate = calc_pll_rate(value); | 454 | clk_pll1.rate = calc_pll_rate(value); |
383 | } | 455 | } |
@@ -388,7 +460,7 @@ static int __init ep93xx_clock_init(void) | |||
388 | 460 | ||
389 | value = __raw_readl(EP93XX_SYSCON_CLOCK_SET2); | 461 | value = __raw_readl(EP93XX_SYSCON_CLOCK_SET2); |
390 | if (!(value & 0x00080000)) { /* PLL2 bypassed? */ | 462 | if (!(value & 0x00080000)) { /* PLL2 bypassed? */ |
391 | clk_pll2.rate = EP93XX_EXT_CLK_RATE; | 463 | clk_pll2.rate = clk_xtali.rate; |
392 | } else if (value & 0x00040000) { /* PLL2 enabled? */ | 464 | } else if (value & 0x00040000) { /* PLL2 enabled? */ |
393 | clk_pll2.rate = calc_pll_rate(value); | 465 | clk_pll2.rate = calc_pll_rate(value); |
394 | } else { | 466 | } else { |
diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c index f7ebed942f66..f95dc160c34b 100644 --- a/arch/arm/mach-ep93xx/core.c +++ b/arch/arm/mach-ep93xx/core.c | |||
@@ -550,13 +550,11 @@ void __init ep93xx_register_eth(struct ep93xx_eth_data *data, int copy_addr) | |||
550 | platform_device_register(&ep93xx_eth_device); | 550 | platform_device_register(&ep93xx_eth_device); |
551 | } | 551 | } |
552 | 552 | ||
553 | static struct i2c_gpio_platform_data ep93xx_i2c_data = { | 553 | |
554 | .sda_pin = EP93XX_GPIO_LINE_EEDAT, | 554 | /************************************************************************* |
555 | .sda_is_open_drain = 0, | 555 | * EP93xx i2c peripheral handling |
556 | .scl_pin = EP93XX_GPIO_LINE_EECLK, | 556 | *************************************************************************/ |
557 | .scl_is_open_drain = 0, | 557 | static struct i2c_gpio_platform_data ep93xx_i2c_data; |
558 | .udelay = 2, | ||
559 | }; | ||
560 | 558 | ||
561 | static struct platform_device ep93xx_i2c_device = { | 559 | static struct platform_device ep93xx_i2c_device = { |
562 | .name = "i2c-gpio", | 560 | .name = "i2c-gpio", |
@@ -564,8 +562,25 @@ static struct platform_device ep93xx_i2c_device = { | |||
564 | .dev.platform_data = &ep93xx_i2c_data, | 562 | .dev.platform_data = &ep93xx_i2c_data, |
565 | }; | 563 | }; |
566 | 564 | ||
567 | void __init ep93xx_register_i2c(struct i2c_board_info *devices, int num) | 565 | void __init ep93xx_register_i2c(struct i2c_gpio_platform_data *data, |
566 | struct i2c_board_info *devices, int num) | ||
568 | { | 567 | { |
568 | /* | ||
569 | * Set the EEPROM interface pin drive type control. | ||
570 | * Defines the driver type for the EECLK and EEDAT pins as either | ||
571 | * open drain, which will require an external pull-up, or a normal | ||
572 | * CMOS driver. | ||
573 | */ | ||
574 | if (data->sda_is_open_drain && data->sda_pin != EP93XX_GPIO_LINE_EEDAT) | ||
575 | pr_warning("ep93xx: sda != EEDAT, open drain has no effect\n"); | ||
576 | if (data->scl_is_open_drain && data->scl_pin != EP93XX_GPIO_LINE_EECLK) | ||
577 | pr_warning("ep93xx: scl != EECLK, open drain has no effect\n"); | ||
578 | |||
579 | __raw_writel((data->sda_is_open_drain << 1) | | ||
580 | (data->scl_is_open_drain << 0), | ||
581 | EP93XX_GPIO_EEDRIVE); | ||
582 | |||
583 | ep93xx_i2c_data = *data; | ||
569 | i2c_register_board_info(0, devices, num); | 584 | i2c_register_board_info(0, devices, num); |
570 | platform_device_register(&ep93xx_i2c_device); | 585 | platform_device_register(&ep93xx_i2c_device); |
571 | } | 586 | } |
diff --git a/arch/arm/mach-ep93xx/edb93xx.c b/arch/arm/mach-ep93xx/edb93xx.c index 73145ae5d3fa..ca71cf1a72a0 100644 --- a/arch/arm/mach-ep93xx/edb93xx.c +++ b/arch/arm/mach-ep93xx/edb93xx.c | |||
@@ -27,8 +27,10 @@ | |||
27 | #include <linux/kernel.h> | 27 | #include <linux/kernel.h> |
28 | #include <linux/init.h> | 28 | #include <linux/init.h> |
29 | #include <linux/platform_device.h> | 29 | #include <linux/platform_device.h> |
30 | #include <linux/i2c.h> | ||
31 | #include <linux/mtd/physmap.h> | 30 | #include <linux/mtd/physmap.h> |
31 | #include <linux/gpio.h> | ||
32 | #include <linux/i2c.h> | ||
33 | #include <linux/i2c-gpio.h> | ||
32 | 34 | ||
33 | #include <mach/hardware.h> | 35 | #include <mach/hardware.h> |
34 | 36 | ||
@@ -76,13 +78,26 @@ static struct ep93xx_eth_data edb93xx_eth_data = { | |||
76 | .phy_id = 1, | 78 | .phy_id = 1, |
77 | }; | 79 | }; |
78 | 80 | ||
79 | static struct i2c_board_info __initdata edb93xxa_i2c_data[] = { | 81 | |
82 | /************************************************************************* | ||
83 | * EDB93xx i2c peripheral handling | ||
84 | *************************************************************************/ | ||
85 | static struct i2c_gpio_platform_data edb93xx_i2c_gpio_data = { | ||
86 | .sda_pin = EP93XX_GPIO_LINE_EEDAT, | ||
87 | .sda_is_open_drain = 0, | ||
88 | .scl_pin = EP93XX_GPIO_LINE_EECLK, | ||
89 | .scl_is_open_drain = 0, | ||
90 | .udelay = 0, /* default to 100 kHz */ | ||
91 | .timeout = 0, /* default to 100 ms */ | ||
92 | }; | ||
93 | |||
94 | static struct i2c_board_info __initdata edb93xxa_i2c_board_info[] = { | ||
80 | { | 95 | { |
81 | I2C_BOARD_INFO("isl1208", 0x6f), | 96 | I2C_BOARD_INFO("isl1208", 0x6f), |
82 | }, | 97 | }, |
83 | }; | 98 | }; |
84 | 99 | ||
85 | static struct i2c_board_info __initdata edb93xx_i2c_data[] = { | 100 | static struct i2c_board_info __initdata edb93xx_i2c_board_info[] = { |
86 | { | 101 | { |
87 | I2C_BOARD_INFO("ds1337", 0x68), | 102 | I2C_BOARD_INFO("ds1337", 0x68), |
88 | }, | 103 | }, |
@@ -92,12 +107,14 @@ static void __init edb93xx_register_i2c(void) | |||
92 | { | 107 | { |
93 | if (machine_is_edb9302a() || machine_is_edb9307a() || | 108 | if (machine_is_edb9302a() || machine_is_edb9307a() || |
94 | machine_is_edb9315a()) { | 109 | machine_is_edb9315a()) { |
95 | ep93xx_register_i2c(edb93xxa_i2c_data, | 110 | ep93xx_register_i2c(&edb93xx_i2c_gpio_data, |
96 | ARRAY_SIZE(edb93xxa_i2c_data)); | 111 | edb93xxa_i2c_board_info, |
112 | ARRAY_SIZE(edb93xxa_i2c_board_info)); | ||
97 | } else if (machine_is_edb9307() || machine_is_edb9312() || | 113 | } else if (machine_is_edb9307() || machine_is_edb9312() || |
98 | machine_is_edb9315()) { | 114 | machine_is_edb9315()) { |
99 | ep93xx_register_i2c(edb93xx_i2c_data, | 115 | ep93xx_register_i2c(&edb93xx_i2c_gpio_data |
100 | ARRAY_SIZE(edb93xx_i2c_data)); | 116 | edb93xx_i2c_board_info, |
117 | ARRAY_SIZE(edb93xx_i2c_board_info)); | ||
101 | } | 118 | } |
102 | } | 119 | } |
103 | 120 | ||
diff --git a/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h b/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h index 0fbf87b16338..b1f937eda29c 100644 --- a/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h +++ b/arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h | |||
@@ -52,25 +52,27 @@ | |||
52 | #define EP93XX_AHB_VIRT_BASE 0xfef00000 | 52 | #define EP93XX_AHB_VIRT_BASE 0xfef00000 |
53 | #define EP93XX_AHB_SIZE 0x00100000 | 53 | #define EP93XX_AHB_SIZE 0x00100000 |
54 | 54 | ||
55 | #define EP93XX_AHB_PHYS(x) (EP93XX_AHB_PHYS_BASE + (x)) | ||
55 | #define EP93XX_AHB_IOMEM(x) IOMEM(EP93XX_AHB_VIRT_BASE + (x)) | 56 | #define EP93XX_AHB_IOMEM(x) IOMEM(EP93XX_AHB_VIRT_BASE + (x)) |
56 | 57 | ||
57 | #define EP93XX_APB_PHYS_BASE 0x80800000 | 58 | #define EP93XX_APB_PHYS_BASE 0x80800000 |
58 | #define EP93XX_APB_VIRT_BASE 0xfed00000 | 59 | #define EP93XX_APB_VIRT_BASE 0xfed00000 |
59 | #define EP93XX_APB_SIZE 0x00200000 | 60 | #define EP93XX_APB_SIZE 0x00200000 |
60 | 61 | ||
62 | #define EP93XX_APB_PHYS(x) (EP93XX_APB_PHYS_BASE + (x)) | ||
61 | #define EP93XX_APB_IOMEM(x) IOMEM(EP93XX_APB_VIRT_BASE + (x)) | 63 | #define EP93XX_APB_IOMEM(x) IOMEM(EP93XX_APB_VIRT_BASE + (x)) |
62 | 64 | ||
63 | 65 | ||
64 | /* AHB peripherals */ | 66 | /* AHB peripherals */ |
65 | #define EP93XX_DMA_BASE EP93XX_AHB_IOMEM(0x00000000) | 67 | #define EP93XX_DMA_BASE EP93XX_AHB_IOMEM(0x00000000) |
66 | 68 | ||
67 | #define EP93XX_ETHERNET_PHYS_BASE (EP93XX_AHB_PHYS_BASE + 0x00010000) | 69 | #define EP93XX_ETHERNET_PHYS_BASE EP93XX_AHB_PHYS(0x00010000) |
68 | #define EP93XX_ETHERNET_BASE EP93XX_AHB_IOMEM(0x00010000) | 70 | #define EP93XX_ETHERNET_BASE EP93XX_AHB_IOMEM(0x00010000) |
69 | 71 | ||
70 | #define EP93XX_USB_PHYS_BASE (EP93XX_AHB_PHYS_BASE + 0x00020000) | 72 | #define EP93XX_USB_PHYS_BASE EP93XX_AHB_PHYS(0x00020000) |
71 | #define EP93XX_USB_BASE EP93XX_AHB_IOMEM(0x00020000) | 73 | #define EP93XX_USB_BASE EP93XX_AHB_IOMEM(0x00020000) |
72 | 74 | ||
73 | #define EP93XX_RASTER_PHYS_BASE (EP93XX_AHB_PHYS_BASE + 0x00030000) | 75 | #define EP93XX_RASTER_PHYS_BASE EP93XX_AHB_PHYS(0x00030000) |
74 | #define EP93XX_RASTER_BASE EP93XX_AHB_IOMEM(0x00030000) | 76 | #define EP93XX_RASTER_BASE EP93XX_AHB_IOMEM(0x00030000) |
75 | 77 | ||
76 | #define EP93XX_GRAPHICS_ACCEL_BASE EP93XX_AHB_IOMEM(0x00040000) | 78 | #define EP93XX_GRAPHICS_ACCEL_BASE EP93XX_AHB_IOMEM(0x00040000) |
@@ -112,21 +114,10 @@ | |||
112 | 114 | ||
113 | #define EP93XX_GPIO_BASE EP93XX_APB_IOMEM(0x00040000) | 115 | #define EP93XX_GPIO_BASE EP93XX_APB_IOMEM(0x00040000) |
114 | #define EP93XX_GPIO_REG(x) (EP93XX_GPIO_BASE + (x)) | 116 | #define EP93XX_GPIO_REG(x) (EP93XX_GPIO_BASE + (x)) |
115 | #define EP93XX_GPIO_F_INT_TYPE1 EP93XX_GPIO_REG(0x4c) | ||
116 | #define EP93XX_GPIO_F_INT_TYPE2 EP93XX_GPIO_REG(0x50) | ||
117 | #define EP93XX_GPIO_F_INT_ACK EP93XX_GPIO_REG(0x54) | ||
118 | #define EP93XX_GPIO_F_INT_ENABLE EP93XX_GPIO_REG(0x58) | ||
119 | #define EP93XX_GPIO_F_INT_STATUS EP93XX_GPIO_REG(0x5c) | 117 | #define EP93XX_GPIO_F_INT_STATUS EP93XX_GPIO_REG(0x5c) |
120 | #define EP93XX_GPIO_A_INT_TYPE1 EP93XX_GPIO_REG(0x90) | ||
121 | #define EP93XX_GPIO_A_INT_TYPE2 EP93XX_GPIO_REG(0x94) | ||
122 | #define EP93XX_GPIO_A_INT_ACK EP93XX_GPIO_REG(0x98) | ||
123 | #define EP93XX_GPIO_A_INT_ENABLE EP93XX_GPIO_REG(0x9c) | ||
124 | #define EP93XX_GPIO_A_INT_STATUS EP93XX_GPIO_REG(0xa0) | 118 | #define EP93XX_GPIO_A_INT_STATUS EP93XX_GPIO_REG(0xa0) |
125 | #define EP93XX_GPIO_B_INT_TYPE1 EP93XX_GPIO_REG(0xac) | ||
126 | #define EP93XX_GPIO_B_INT_TYPE2 EP93XX_GPIO_REG(0xb0) | ||
127 | #define EP93XX_GPIO_B_INT_ACK EP93XX_GPIO_REG(0xb4) | ||
128 | #define EP93XX_GPIO_B_INT_ENABLE EP93XX_GPIO_REG(0xb8) | ||
129 | #define EP93XX_GPIO_B_INT_STATUS EP93XX_GPIO_REG(0xbc) | 119 | #define EP93XX_GPIO_B_INT_STATUS EP93XX_GPIO_REG(0xbc) |
120 | #define EP93XX_GPIO_EEDRIVE EP93XX_GPIO_REG(0xc8) | ||
130 | 121 | ||
131 | #define EP93XX_AAC_BASE EP93XX_APB_IOMEM(0x00080000) | 122 | #define EP93XX_AAC_BASE EP93XX_APB_IOMEM(0x00080000) |
132 | 123 | ||
@@ -134,13 +125,13 @@ | |||
134 | 125 | ||
135 | #define EP93XX_IRDA_BASE EP93XX_APB_IOMEM(0x000b0000) | 126 | #define EP93XX_IRDA_BASE EP93XX_APB_IOMEM(0x000b0000) |
136 | 127 | ||
137 | #define EP93XX_UART1_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x000c0000) | 128 | #define EP93XX_UART1_PHYS_BASE EP93XX_APB_PHYS(0x000c0000) |
138 | #define EP93XX_UART1_BASE EP93XX_APB_IOMEM(0x000c0000) | 129 | #define EP93XX_UART1_BASE EP93XX_APB_IOMEM(0x000c0000) |
139 | 130 | ||
140 | #define EP93XX_UART2_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x000d0000) | 131 | #define EP93XX_UART2_PHYS_BASE EP93XX_APB_PHYS(0x000d0000) |
141 | #define EP93XX_UART2_BASE EP93XX_APB_IOMEM(0x000d0000) | 132 | #define EP93XX_UART2_BASE EP93XX_APB_IOMEM(0x000d0000) |
142 | 133 | ||
143 | #define EP93XX_UART3_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x000e0000) | 134 | #define EP93XX_UART3_PHYS_BASE EP93XX_APB_PHYS(0x000e0000) |
144 | #define EP93XX_UART3_BASE EP93XX_APB_IOMEM(0x000e0000) | 135 | #define EP93XX_UART3_BASE EP93XX_APB_IOMEM(0x000e0000) |
145 | 136 | ||
146 | #define EP93XX_KEY_MATRIX_BASE EP93XX_APB_IOMEM(0x000f0000) | 137 | #define EP93XX_KEY_MATRIX_BASE EP93XX_APB_IOMEM(0x000f0000) |
@@ -148,10 +139,10 @@ | |||
148 | #define EP93XX_ADC_BASE EP93XX_APB_IOMEM(0x00100000) | 139 | #define EP93XX_ADC_BASE EP93XX_APB_IOMEM(0x00100000) |
149 | #define EP93XX_TOUCHSCREEN_BASE EP93XX_APB_IOMEM(0x00100000) | 140 | #define EP93XX_TOUCHSCREEN_BASE EP93XX_APB_IOMEM(0x00100000) |
150 | 141 | ||
151 | #define EP93XX_PWM_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x00110000) | 142 | #define EP93XX_PWM_PHYS_BASE EP93XX_APB_PHYS(0x00110000) |
152 | #define EP93XX_PWM_BASE EP93XX_APB_IOMEM(0x00110000) | 143 | #define EP93XX_PWM_BASE EP93XX_APB_IOMEM(0x00110000) |
153 | 144 | ||
154 | #define EP93XX_RTC_PHYS_BASE (EP93XX_APB_PHYS_BASE + 0x00120000) | 145 | #define EP93XX_RTC_PHYS_BASE EP93XX_APB_PHYS(0x00120000) |
155 | #define EP93XX_RTC_BASE EP93XX_APB_IOMEM(0x00120000) | 146 | #define EP93XX_RTC_BASE EP93XX_APB_IOMEM(0x00120000) |
156 | 147 | ||
157 | #define EP93XX_SYSCON_BASE EP93XX_APB_IOMEM(0x00130000) | 148 | #define EP93XX_SYSCON_BASE EP93XX_APB_IOMEM(0x00130000) |
@@ -218,6 +209,17 @@ | |||
218 | #define EP93XX_SYSCON_KEYTCHCLKDIV_ADIV (1<<16) | 209 | #define EP93XX_SYSCON_KEYTCHCLKDIV_ADIV (1<<16) |
219 | #define EP93XX_SYSCON_KEYTCHCLKDIV_KEN (1<<15) | 210 | #define EP93XX_SYSCON_KEYTCHCLKDIV_KEN (1<<15) |
220 | #define EP93XX_SYSCON_KEYTCHCLKDIV_KDIV (1<<0) | 211 | #define EP93XX_SYSCON_KEYTCHCLKDIV_KDIV (1<<0) |
212 | #define EP93XX_SYSCON_SYSCFG EP93XX_SYSCON_REG(0x9c) | ||
213 | #define EP93XX_SYSCON_SYSCFG_REV_MASK (0xf0000000) | ||
214 | #define EP93XX_SYSCON_SYSCFG_REV_SHIFT (28) | ||
215 | #define EP93XX_SYSCON_SYSCFG_SBOOT (1<<8) | ||
216 | #define EP93XX_SYSCON_SYSCFG_LCSN7 (1<<7) | ||
217 | #define EP93XX_SYSCON_SYSCFG_LCSN6 (1<<6) | ||
218 | #define EP93XX_SYSCON_SYSCFG_LASDO (1<<5) | ||
219 | #define EP93XX_SYSCON_SYSCFG_LEEDA (1<<4) | ||
220 | #define EP93XX_SYSCON_SYSCFG_LEECLK (1<<3) | ||
221 | #define EP93XX_SYSCON_SYSCFG_LCSN2 (1<<1) | ||
222 | #define EP93XX_SYSCON_SYSCFG_LCSN1 (1<<0) | ||
221 | #define EP93XX_SYSCON_SWLOCK EP93XX_SYSCON_REG(0xc0) | 223 | #define EP93XX_SYSCON_SWLOCK EP93XX_SYSCON_REG(0xc0) |
222 | 224 | ||
223 | #define EP93XX_WATCHDOG_BASE EP93XX_APB_IOMEM(0x00140000) | 225 | #define EP93XX_WATCHDOG_BASE EP93XX_APB_IOMEM(0x00140000) |
diff --git a/arch/arm/mach-ep93xx/include/mach/gpio.h b/arch/arm/mach-ep93xx/include/mach/gpio.h index 0a1498ae899a..c991b149bdf2 100644 --- a/arch/arm/mach-ep93xx/include/mach/gpio.h +++ b/arch/arm/mach-ep93xx/include/mach/gpio.h | |||
@@ -114,17 +114,9 @@ extern void ep93xx_gpio_int_debounce(unsigned int irq, int enable); | |||
114 | * B0..B7 (7..15) to irq 72..79, and | 114 | * B0..B7 (7..15) to irq 72..79, and |
115 | * F0..F7 (16..24) to irq 80..87. | 115 | * F0..F7 (16..24) to irq 80..87. |
116 | */ | 116 | */ |
117 | static inline int gpio_to_irq(unsigned gpio) | 117 | #define gpio_to_irq(gpio) \ |
118 | { | 118 | (((gpio) <= EP93XX_GPIO_LINE_MAX_IRQ) ? (64 + (gpio)) : -EINVAL) |
119 | if (gpio <= EP93XX_GPIO_LINE_MAX_IRQ) | 119 | |
120 | return 64 + gpio; | 120 | #define irq_to_gpio(irq) ((irq) - gpio_to_irq(0)) |
121 | |||
122 | return -EINVAL; | ||
123 | } | ||
124 | |||
125 | static inline int irq_to_gpio(unsigned irq) | ||
126 | { | ||
127 | return irq - gpio_to_irq(0); | ||
128 | } | ||
129 | 121 | ||
130 | #endif | 122 | #endif |
diff --git a/arch/arm/mach-ep93xx/include/mach/memory.h b/arch/arm/mach-ep93xx/include/mach/memory.h index 925b12ea0990..554064e90307 100644 --- a/arch/arm/mach-ep93xx/include/mach/memory.h +++ b/arch/arm/mach-ep93xx/include/mach/memory.h | |||
@@ -9,6 +9,12 @@ | |||
9 | #define PHYS_OFFSET UL(0x00000000) | 9 | #define PHYS_OFFSET UL(0x00000000) |
10 | #elif defined(CONFIG_EP93XX_SDCE0_PHYS_OFFSET) | 10 | #elif defined(CONFIG_EP93XX_SDCE0_PHYS_OFFSET) |
11 | #define PHYS_OFFSET UL(0xc0000000) | 11 | #define PHYS_OFFSET UL(0xc0000000) |
12 | #elif defined(CONFIG_EP93XX_SDCE1_PHYS_OFFSET) | ||
13 | #define PHYS_OFFSET UL(0xd0000000) | ||
14 | #elif defined(CONFIG_EP93XX_SDCE2_PHYS_OFFSET) | ||
15 | #define PHYS_OFFSET UL(0xe0000000) | ||
16 | #elif defined(CONFIG_EP93XX_SDCE3_ASYNC_PHYS_OFFSET) | ||
17 | #define PHYS_OFFSET UL(0xf0000000) | ||
12 | #else | 18 | #else |
13 | #error "Kconfig bug: No EP93xx PHYS_OFFSET set" | 19 | #error "Kconfig bug: No EP93xx PHYS_OFFSET set" |
14 | #endif | 20 | #endif |
diff --git a/arch/arm/mach-ep93xx/include/mach/platform.h b/arch/arm/mach-ep93xx/include/mach/platform.h index 01a0f0838e5b..a3ec33fd79d4 100644 --- a/arch/arm/mach-ep93xx/include/mach/platform.h +++ b/arch/arm/mach-ep93xx/include/mach/platform.h | |||
@@ -4,6 +4,7 @@ | |||
4 | 4 | ||
5 | #ifndef __ASSEMBLY__ | 5 | #ifndef __ASSEMBLY__ |
6 | 6 | ||
7 | struct i2c_gpio_platform_data; | ||
7 | struct i2c_board_info; | 8 | struct i2c_board_info; |
8 | struct platform_device; | 9 | struct platform_device; |
9 | struct ep93xxfb_mach_info; | 10 | struct ep93xxfb_mach_info; |
@@ -33,7 +34,8 @@ static inline void ep93xx_devcfg_clear_bits(unsigned int bits) | |||
33 | } | 34 | } |
34 | 35 | ||
35 | void ep93xx_register_eth(struct ep93xx_eth_data *data, int copy_addr); | 36 | void ep93xx_register_eth(struct ep93xx_eth_data *data, int copy_addr); |
36 | void ep93xx_register_i2c(struct i2c_board_info *devices, int num); | 37 | void ep93xx_register_i2c(struct i2c_gpio_platform_data *data, |
38 | struct i2c_board_info *devices, int num); | ||
37 | void ep93xx_register_fb(struct ep93xxfb_mach_info *data); | 39 | void ep93xx_register_fb(struct ep93xxfb_mach_info *data); |
38 | void ep93xx_register_pwm(int pwm0, int pwm1); | 40 | void ep93xx_register_pwm(int pwm0, int pwm1); |
39 | int ep93xx_pwm_acquire_gpio(struct platform_device *pdev); | 41 | int ep93xx_pwm_acquire_gpio(struct platform_device *pdev); |
diff --git a/arch/arm/mach-ep93xx/micro9.c b/arch/arm/mach-ep93xx/micro9.c index 0a313e82fb74..d83b80478b09 100644 --- a/arch/arm/mach-ep93xx/micro9.c +++ b/arch/arm/mach-ep93xx/micro9.c | |||
@@ -2,7 +2,9 @@ | |||
2 | * linux/arch/arm/mach-ep93xx/micro9.c | 2 | * linux/arch/arm/mach-ep93xx/micro9.c |
3 | * | 3 | * |
4 | * Copyright (C) 2006 Contec Steuerungstechnik & Automation GmbH | 4 | * Copyright (C) 2006 Contec Steuerungstechnik & Automation GmbH |
5 | * Manfred Gruber <manfred.gruber@contec.at> | 5 | * Manfred Gruber <m.gruber@tirol.com> |
6 | * Copyright (C) 2009 Contec Steuerungstechnik & Automation GmbH | ||
7 | * Hubert Feurstein <hubert.feurstein@contec.at> | ||
6 | * | 8 | * |
7 | * This program is free software; you can redistribute it and/or modify | 9 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License version 2 as | 10 | * it under the terms of the GNU General Public License version 2 as |
@@ -20,104 +22,124 @@ | |||
20 | #include <asm/mach/arch.h> | 22 | #include <asm/mach/arch.h> |
21 | 23 | ||
22 | 24 | ||
23 | static struct ep93xx_eth_data micro9_eth_data = { | 25 | /************************************************************************* |
24 | .phy_id = 0x1f, | 26 | * Micro9 NOR Flash |
25 | }; | 27 | * |
26 | 28 | * Micro9-High has up to 64MB of 32-bit flash on CS1 | |
27 | static void __init micro9_init(void) | 29 | * Micro9-Mid has up to 64MB of either 32-bit or 16-bit flash on CS1 |
28 | { | 30 | * Micro9-Lite uses a seperate MTD map driver for flash support |
29 | ep93xx_register_eth(µ9_eth_data, 1); | 31 | * Micro9-Slim has up to 64MB of either 32-bit or 16-bit flash on CS1 |
30 | } | 32 | *************************************************************************/ |
31 | 33 | static struct physmap_flash_data micro9_flash_data; | |
32 | /* | 34 | |
33 | * Micro9-H | 35 | static struct resource micro9_flash_resource = { |
34 | */ | ||
35 | #ifdef CONFIG_MACH_MICRO9H | ||
36 | static struct physmap_flash_data micro9h_flash_data = { | ||
37 | .width = 4, | ||
38 | }; | ||
39 | |||
40 | static struct resource micro9h_flash_resource = { | ||
41 | .start = EP93XX_CS1_PHYS_BASE, | 36 | .start = EP93XX_CS1_PHYS_BASE, |
42 | .end = EP93XX_CS1_PHYS_BASE + SZ_64M - 1, | 37 | .end = EP93XX_CS1_PHYS_BASE + SZ_64M - 1, |
43 | .flags = IORESOURCE_MEM, | 38 | .flags = IORESOURCE_MEM, |
44 | }; | 39 | }; |
45 | 40 | ||
46 | static struct platform_device micro9h_flash = { | 41 | static struct platform_device micro9_flash = { |
47 | .name = "physmap-flash", | 42 | .name = "physmap-flash", |
48 | .id = 0, | 43 | .id = 0, |
49 | .dev = { | 44 | .dev = { |
50 | .platform_data = µ9h_flash_data, | 45 | .platform_data = µ9_flash_data, |
51 | }, | 46 | }, |
52 | .num_resources = 1, | 47 | .num_resources = 1, |
53 | .resource = µ9h_flash_resource, | 48 | .resource = µ9_flash_resource, |
54 | }; | 49 | }; |
55 | 50 | ||
56 | static void __init micro9h_init(void) | 51 | static void __init __micro9_register_flash(unsigned int width) |
52 | { | ||
53 | micro9_flash_data.width = width; | ||
54 | |||
55 | platform_device_register(µ9_flash); | ||
56 | } | ||
57 | |||
58 | static unsigned int __init micro9_detect_bootwidth(void) | ||
59 | { | ||
60 | u32 v; | ||
61 | |||
62 | /* Detect the bus width of the external flash memory */ | ||
63 | v = __raw_readl(EP93XX_SYSCON_SYSCFG); | ||
64 | if (v & EP93XX_SYSCON_SYSCFG_LCSN7) | ||
65 | return 4; /* 32-bit */ | ||
66 | else | ||
67 | return 2; /* 16-bit */ | ||
68 | } | ||
69 | |||
70 | static void __init micro9_register_flash(void) | ||
57 | { | 71 | { |
58 | platform_device_register(µ9h_flash); | 72 | if (machine_is_micro9()) |
73 | __micro9_register_flash(4); | ||
74 | else if (machine_is_micro9m() || machine_is_micro9s()) | ||
75 | __micro9_register_flash(micro9_detect_bootwidth()); | ||
59 | } | 76 | } |
60 | 77 | ||
61 | static void __init micro9h_init_machine(void) | 78 | |
79 | /************************************************************************* | ||
80 | * Micro9 Ethernet | ||
81 | *************************************************************************/ | ||
82 | static struct ep93xx_eth_data micro9_eth_data = { | ||
83 | .phy_id = 0x1f, | ||
84 | }; | ||
85 | |||
86 | |||
87 | static void __init micro9_init_machine(void) | ||
62 | { | 88 | { |
63 | ep93xx_init_devices(); | 89 | ep93xx_init_devices(); |
64 | micro9_init(); | 90 | ep93xx_register_eth(µ9_eth_data, 1); |
65 | micro9h_init(); | 91 | micro9_register_flash(); |
66 | } | 92 | } |
67 | 93 | ||
68 | MACHINE_START(MICRO9, "Contec Hypercontrol Micro9-H") | 94 | |
69 | /* Maintainer: Manfred Gruber <manfred.gruber@contec.at> */ | 95 | #ifdef CONFIG_MACH_MICRO9H |
96 | MACHINE_START(MICRO9, "Contec Micro9-High") | ||
97 | /* Maintainer: Hubert Feurstein <hubert.feurstein@contec.at> */ | ||
70 | .phys_io = EP93XX_APB_PHYS_BASE, | 98 | .phys_io = EP93XX_APB_PHYS_BASE, |
71 | .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc, | 99 | .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc, |
72 | .boot_params = EP93XX_SDCE3_PHYS_BASE_SYNC + 0x100, | 100 | .boot_params = EP93XX_SDCE3_PHYS_BASE_SYNC + 0x100, |
73 | .map_io = ep93xx_map_io, | 101 | .map_io = ep93xx_map_io, |
74 | .init_irq = ep93xx_init_irq, | 102 | .init_irq = ep93xx_init_irq, |
75 | .timer = &ep93xx_timer, | 103 | .timer = &ep93xx_timer, |
76 | .init_machine = micro9h_init_machine, | 104 | .init_machine = micro9_init_machine, |
77 | MACHINE_END | 105 | MACHINE_END |
78 | #endif | 106 | #endif |
79 | 107 | ||
80 | /* | ||
81 | * Micro9-M | ||
82 | */ | ||
83 | #ifdef CONFIG_MACH_MICRO9M | 108 | #ifdef CONFIG_MACH_MICRO9M |
84 | static void __init micro9m_init_machine(void) | 109 | MACHINE_START(MICRO9M, "Contec Micro9-Mid") |
85 | { | 110 | /* Maintainer: Hubert Feurstein <hubert.feurstein@contec.at> */ |
86 | ep93xx_init_devices(); | ||
87 | micro9_init(); | ||
88 | } | ||
89 | |||
90 | MACHINE_START(MICRO9M, "Contec Hypercontrol Micro9-M") | ||
91 | /* Maintainer: Manfred Gruber <manfred.gruber@contec.at> */ | ||
92 | .phys_io = EP93XX_APB_PHYS_BASE, | 111 | .phys_io = EP93XX_APB_PHYS_BASE, |
93 | .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc, | 112 | .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc, |
94 | .boot_params = EP93XX_SDCE3_PHYS_BASE_SYNC + 0x100, | 113 | .boot_params = EP93XX_SDCE3_PHYS_BASE_ASYNC + 0x100, |
95 | .map_io = ep93xx_map_io, | 114 | .map_io = ep93xx_map_io, |
96 | .init_irq = ep93xx_init_irq, | 115 | .init_irq = ep93xx_init_irq, |
97 | .timer = &ep93xx_timer, | 116 | .timer = &ep93xx_timer, |
98 | .init_machine = micro9m_init_machine, | 117 | .init_machine = micro9_init_machine, |
99 | MACHINE_END | 118 | MACHINE_END |
100 | #endif | 119 | #endif |
101 | 120 | ||
102 | /* | ||
103 | * Micro9-L | ||
104 | */ | ||
105 | #ifdef CONFIG_MACH_MICRO9L | 121 | #ifdef CONFIG_MACH_MICRO9L |
106 | static void __init micro9l_init_machine(void) | 122 | MACHINE_START(MICRO9L, "Contec Micro9-Lite") |
107 | { | 123 | /* Maintainer: Hubert Feurstein <hubert.feurstein@contec.at> */ |
108 | ep93xx_init_devices(); | ||
109 | micro9_init(); | ||
110 | } | ||
111 | |||
112 | MACHINE_START(MICRO9L, "Contec Hypercontrol Micro9-L") | ||
113 | /* Maintainer: Manfred Gruber <manfred.gruber@contec.at> */ | ||
114 | .phys_io = EP93XX_APB_PHYS_BASE, | 124 | .phys_io = EP93XX_APB_PHYS_BASE, |
115 | .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc, | 125 | .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc, |
116 | .boot_params = EP93XX_SDCE3_PHYS_BASE_SYNC + 0x100, | 126 | .boot_params = EP93XX_SDCE3_PHYS_BASE_SYNC + 0x100, |
117 | .map_io = ep93xx_map_io, | 127 | .map_io = ep93xx_map_io, |
118 | .init_irq = ep93xx_init_irq, | 128 | .init_irq = ep93xx_init_irq, |
119 | .timer = &ep93xx_timer, | 129 | .timer = &ep93xx_timer, |
120 | .init_machine = micro9l_init_machine, | 130 | .init_machine = micro9_init_machine, |
121 | MACHINE_END | 131 | MACHINE_END |
122 | #endif | 132 | #endif |
123 | 133 | ||
134 | #ifdef CONFIG_MACH_MICRO9S | ||
135 | MACHINE_START(MICRO9S, "Contec Micro9-Slim") | ||
136 | /* Maintainer: Hubert Feurstein <hubert.feurstein@contec.at> */ | ||
137 | .phys_io = EP93XX_APB_PHYS_BASE, | ||
138 | .io_pg_offst = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc, | ||
139 | .boot_params = EP93XX_SDCE3_PHYS_BASE_ASYNC + 0x100, | ||
140 | .map_io = ep93xx_map_io, | ||
141 | .init_irq = ep93xx_init_irq, | ||
142 | .timer = &ep93xx_timer, | ||
143 | .init_machine = micro9_init_machine, | ||
144 | MACHINE_END | ||
145 | #endif | ||
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c index 2a318eba1b07..3f35293d457a 100644 --- a/arch/arm/mach-integrator/integrator_cp.c +++ b/arch/arm/mach-integrator/integrator_cp.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/amba/bus.h> | 19 | #include <linux/amba/bus.h> |
20 | #include <linux/amba/kmi.h> | 20 | #include <linux/amba/kmi.h> |
21 | #include <linux/amba/clcd.h> | 21 | #include <linux/amba/clcd.h> |
22 | #include <linux/amba/mmci.h> | ||
22 | #include <linux/io.h> | 23 | #include <linux/io.h> |
23 | 24 | ||
24 | #include <asm/clkdev.h> | 25 | #include <asm/clkdev.h> |
@@ -35,7 +36,6 @@ | |||
35 | #include <asm/mach/arch.h> | 36 | #include <asm/mach/arch.h> |
36 | #include <asm/mach/flash.h> | 37 | #include <asm/mach/flash.h> |
37 | #include <asm/mach/irq.h> | 38 | #include <asm/mach/irq.h> |
38 | #include <asm/mach/mmc.h> | ||
39 | #include <asm/mach/map.h> | 39 | #include <asm/mach/map.h> |
40 | #include <asm/mach/time.h> | 40 | #include <asm/mach/time.h> |
41 | 41 | ||
@@ -400,7 +400,7 @@ static unsigned int mmc_status(struct device *dev) | |||
400 | return status & 8; | 400 | return status & 8; |
401 | } | 401 | } |
402 | 402 | ||
403 | static struct mmc_platform_data mmc_data = { | 403 | static struct mmci_platform_data mmc_data = { |
404 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 404 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
405 | .status = mmc_status, | 405 | .status = mmc_status, |
406 | .gpio_wp = -1, | 406 | .gpio_wp = -1, |
diff --git a/arch/arm/mach-integrator/pci_v3.c b/arch/arm/mach-integrator/pci_v3.c index f1d72b225450..148d25fc636f 100644 --- a/arch/arm/mach-integrator/pci_v3.c +++ b/arch/arm/mach-integrator/pci_v3.c | |||
@@ -31,6 +31,7 @@ | |||
31 | 31 | ||
32 | #include <mach/hardware.h> | 32 | #include <mach/hardware.h> |
33 | #include <asm/irq.h> | 33 | #include <asm/irq.h> |
34 | #include <asm/signal.h> | ||
34 | #include <asm/system.h> | 35 | #include <asm/system.h> |
35 | #include <asm/mach/pci.h> | 36 | #include <asm/mach/pci.h> |
36 | #include <asm/irq_regs.h> | 37 | #include <asm/irq_regs.h> |
@@ -486,7 +487,7 @@ int __init pci_v3_setup(int nr, struct pci_sys_data *sys) | |||
486 | return ret; | 487 | return ret; |
487 | } | 488 | } |
488 | 489 | ||
489 | struct pci_bus *pci_v3_scan_bus(int nr, struct pci_sys_data *sys) | 490 | struct pci_bus * __init pci_v3_scan_bus(int nr, struct pci_sys_data *sys) |
490 | { | 491 | { |
491 | return pci_scan_bus(sys->busnr, &pci_v3_ops, sys); | 492 | return pci_scan_bus(sys->busnr, &pci_v3_ops, sys); |
492 | } | 493 | } |
diff --git a/arch/arm/mach-iop13xx/include/mach/adma.h b/arch/arm/mach-iop13xx/include/mach/adma.h index 5722e86f2174..6d3782d85a9f 100644 --- a/arch/arm/mach-iop13xx/include/mach/adma.h +++ b/arch/arm/mach-iop13xx/include/mach/adma.h | |||
@@ -150,6 +150,8 @@ static inline int iop_adma_get_max_xor(void) | |||
150 | return 16; | 150 | return 16; |
151 | } | 151 | } |
152 | 152 | ||
153 | #define iop_adma_get_max_pq iop_adma_get_max_xor | ||
154 | |||
153 | static inline u32 iop_chan_get_current_descriptor(struct iop_adma_chan *chan) | 155 | static inline u32 iop_chan_get_current_descriptor(struct iop_adma_chan *chan) |
154 | { | 156 | { |
155 | return __raw_readl(ADMA_ADAR(chan)); | 157 | return __raw_readl(ADMA_ADAR(chan)); |
@@ -211,7 +213,10 @@ iop_chan_xor_slot_count(size_t len, int src_cnt, int *slots_per_op) | |||
211 | #define IOP_ADMA_MAX_BYTE_COUNT ADMA_MAX_BYTE_COUNT | 213 | #define IOP_ADMA_MAX_BYTE_COUNT ADMA_MAX_BYTE_COUNT |
212 | #define IOP_ADMA_ZERO_SUM_MAX_BYTE_COUNT ADMA_MAX_BYTE_COUNT | 214 | #define IOP_ADMA_ZERO_SUM_MAX_BYTE_COUNT ADMA_MAX_BYTE_COUNT |
213 | #define IOP_ADMA_XOR_MAX_BYTE_COUNT ADMA_MAX_BYTE_COUNT | 215 | #define IOP_ADMA_XOR_MAX_BYTE_COUNT ADMA_MAX_BYTE_COUNT |
216 | #define IOP_ADMA_PQ_MAX_BYTE_COUNT ADMA_MAX_BYTE_COUNT | ||
214 | #define iop_chan_zero_sum_slot_count(l, s, o) iop_chan_xor_slot_count(l, s, o) | 217 | #define iop_chan_zero_sum_slot_count(l, s, o) iop_chan_xor_slot_count(l, s, o) |
218 | #define iop_chan_pq_slot_count iop_chan_xor_slot_count | ||
219 | #define iop_chan_pq_zero_sum_slot_count iop_chan_xor_slot_count | ||
215 | 220 | ||
216 | static inline u32 iop_desc_get_dest_addr(struct iop_adma_desc_slot *desc, | 221 | static inline u32 iop_desc_get_dest_addr(struct iop_adma_desc_slot *desc, |
217 | struct iop_adma_chan *chan) | 222 | struct iop_adma_chan *chan) |
@@ -220,6 +225,13 @@ static inline u32 iop_desc_get_dest_addr(struct iop_adma_desc_slot *desc, | |||
220 | return hw_desc->dest_addr; | 225 | return hw_desc->dest_addr; |
221 | } | 226 | } |
222 | 227 | ||
228 | static inline u32 iop_desc_get_qdest_addr(struct iop_adma_desc_slot *desc, | ||
229 | struct iop_adma_chan *chan) | ||
230 | { | ||
231 | struct iop13xx_adma_desc_hw *hw_desc = desc->hw_desc; | ||
232 | return hw_desc->q_dest_addr; | ||
233 | } | ||
234 | |||
223 | static inline u32 iop_desc_get_byte_count(struct iop_adma_desc_slot *desc, | 235 | static inline u32 iop_desc_get_byte_count(struct iop_adma_desc_slot *desc, |
224 | struct iop_adma_chan *chan) | 236 | struct iop_adma_chan *chan) |
225 | { | 237 | { |
@@ -319,6 +331,58 @@ iop_desc_init_zero_sum(struct iop_adma_desc_slot *desc, int src_cnt, | |||
319 | return 1; | 331 | return 1; |
320 | } | 332 | } |
321 | 333 | ||
334 | static inline void | ||
335 | iop_desc_init_pq(struct iop_adma_desc_slot *desc, int src_cnt, | ||
336 | unsigned long flags) | ||
337 | { | ||
338 | struct iop13xx_adma_desc_hw *hw_desc = desc->hw_desc; | ||
339 | union { | ||
340 | u32 value; | ||
341 | struct iop13xx_adma_desc_ctrl field; | ||
342 | } u_desc_ctrl; | ||
343 | |||
344 | u_desc_ctrl.value = 0; | ||
345 | u_desc_ctrl.field.src_select = src_cnt - 1; | ||
346 | u_desc_ctrl.field.xfer_dir = 3; /* local to internal bus */ | ||
347 | u_desc_ctrl.field.pq_xfer_en = 1; | ||
348 | u_desc_ctrl.field.p_xfer_dis = !!(flags & DMA_PREP_PQ_DISABLE_P); | ||
349 | u_desc_ctrl.field.int_en = flags & DMA_PREP_INTERRUPT; | ||
350 | hw_desc->desc_ctrl = u_desc_ctrl.value; | ||
351 | } | ||
352 | |||
353 | static inline int iop_desc_is_pq(struct iop_adma_desc_slot *desc) | ||
354 | { | ||
355 | struct iop13xx_adma_desc_hw *hw_desc = desc->hw_desc; | ||
356 | union { | ||
357 | u32 value; | ||
358 | struct iop13xx_adma_desc_ctrl field; | ||
359 | } u_desc_ctrl; | ||
360 | |||
361 | u_desc_ctrl.value = hw_desc->desc_ctrl; | ||
362 | return u_desc_ctrl.field.pq_xfer_en; | ||
363 | } | ||
364 | |||
365 | static inline void | ||
366 | iop_desc_init_pq_zero_sum(struct iop_adma_desc_slot *desc, int src_cnt, | ||
367 | unsigned long flags) | ||
368 | { | ||
369 | struct iop13xx_adma_desc_hw *hw_desc = desc->hw_desc; | ||
370 | union { | ||
371 | u32 value; | ||
372 | struct iop13xx_adma_desc_ctrl field; | ||
373 | } u_desc_ctrl; | ||
374 | |||
375 | u_desc_ctrl.value = 0; | ||
376 | u_desc_ctrl.field.src_select = src_cnt - 1; | ||
377 | u_desc_ctrl.field.xfer_dir = 3; /* local to internal bus */ | ||
378 | u_desc_ctrl.field.zero_result = 1; | ||
379 | u_desc_ctrl.field.status_write_back_en = 1; | ||
380 | u_desc_ctrl.field.pq_xfer_en = 1; | ||
381 | u_desc_ctrl.field.p_xfer_dis = !!(flags & DMA_PREP_PQ_DISABLE_P); | ||
382 | u_desc_ctrl.field.int_en = flags & DMA_PREP_INTERRUPT; | ||
383 | hw_desc->desc_ctrl = u_desc_ctrl.value; | ||
384 | } | ||
385 | |||
322 | static inline void iop_desc_set_byte_count(struct iop_adma_desc_slot *desc, | 386 | static inline void iop_desc_set_byte_count(struct iop_adma_desc_slot *desc, |
323 | struct iop_adma_chan *chan, | 387 | struct iop_adma_chan *chan, |
324 | u32 byte_count) | 388 | u32 byte_count) |
@@ -351,6 +415,7 @@ iop_desc_set_zero_sum_byte_count(struct iop_adma_desc_slot *desc, u32 len) | |||
351 | } | 415 | } |
352 | } | 416 | } |
353 | 417 | ||
418 | #define iop_desc_set_pq_zero_sum_byte_count iop_desc_set_zero_sum_byte_count | ||
354 | 419 | ||
355 | static inline void iop_desc_set_dest_addr(struct iop_adma_desc_slot *desc, | 420 | static inline void iop_desc_set_dest_addr(struct iop_adma_desc_slot *desc, |
356 | struct iop_adma_chan *chan, | 421 | struct iop_adma_chan *chan, |
@@ -361,6 +426,16 @@ static inline void iop_desc_set_dest_addr(struct iop_adma_desc_slot *desc, | |||
361 | hw_desc->upper_dest_addr = 0; | 426 | hw_desc->upper_dest_addr = 0; |
362 | } | 427 | } |
363 | 428 | ||
429 | static inline void | ||
430 | iop_desc_set_pq_addr(struct iop_adma_desc_slot *desc, dma_addr_t *addr) | ||
431 | { | ||
432 | struct iop13xx_adma_desc_hw *hw_desc = desc->hw_desc; | ||
433 | |||
434 | hw_desc->dest_addr = addr[0]; | ||
435 | hw_desc->q_dest_addr = addr[1]; | ||
436 | hw_desc->upper_dest_addr = 0; | ||
437 | } | ||
438 | |||
364 | static inline void iop_desc_set_memcpy_src_addr(struct iop_adma_desc_slot *desc, | 439 | static inline void iop_desc_set_memcpy_src_addr(struct iop_adma_desc_slot *desc, |
365 | dma_addr_t addr) | 440 | dma_addr_t addr) |
366 | { | 441 | { |
@@ -389,6 +464,29 @@ static inline void iop_desc_set_xor_src_addr(struct iop_adma_desc_slot *desc, | |||
389 | } | 464 | } |
390 | 465 | ||
391 | static inline void | 466 | static inline void |
467 | iop_desc_set_pq_src_addr(struct iop_adma_desc_slot *desc, int src_idx, | ||
468 | dma_addr_t addr, unsigned char coef) | ||
469 | { | ||
470 | int slot_cnt = desc->slot_cnt, slots_per_op = desc->slots_per_op; | ||
471 | struct iop13xx_adma_desc_hw *hw_desc = desc->hw_desc, *iter; | ||
472 | struct iop13xx_adma_src *src; | ||
473 | int i = 0; | ||
474 | |||
475 | do { | ||
476 | iter = iop_hw_desc_slot_idx(hw_desc, i); | ||
477 | src = &iter->src[src_idx]; | ||
478 | src->src_addr = addr; | ||
479 | src->pq_upper_src_addr = 0; | ||
480 | src->pq_dmlt = coef; | ||
481 | slot_cnt -= slots_per_op; | ||
482 | if (slot_cnt) { | ||
483 | i += slots_per_op; | ||
484 | addr += IOP_ADMA_PQ_MAX_BYTE_COUNT; | ||
485 | } | ||
486 | } while (slot_cnt); | ||
487 | } | ||
488 | |||
489 | static inline void | ||
392 | iop_desc_init_interrupt(struct iop_adma_desc_slot *desc, | 490 | iop_desc_init_interrupt(struct iop_adma_desc_slot *desc, |
393 | struct iop_adma_chan *chan) | 491 | struct iop_adma_chan *chan) |
394 | { | 492 | { |
@@ -399,6 +497,15 @@ iop_desc_init_interrupt(struct iop_adma_desc_slot *desc, | |||
399 | } | 497 | } |
400 | 498 | ||
401 | #define iop_desc_set_zero_sum_src_addr iop_desc_set_xor_src_addr | 499 | #define iop_desc_set_zero_sum_src_addr iop_desc_set_xor_src_addr |
500 | #define iop_desc_set_pq_zero_sum_src_addr iop_desc_set_pq_src_addr | ||
501 | |||
502 | static inline void | ||
503 | iop_desc_set_pq_zero_sum_addr(struct iop_adma_desc_slot *desc, int pq_idx, | ||
504 | dma_addr_t *src) | ||
505 | { | ||
506 | iop_desc_set_xor_src_addr(desc, pq_idx, src[pq_idx]); | ||
507 | iop_desc_set_xor_src_addr(desc, pq_idx+1, src[pq_idx+1]); | ||
508 | } | ||
402 | 509 | ||
403 | static inline void iop_desc_set_next_desc(struct iop_adma_desc_slot *desc, | 510 | static inline void iop_desc_set_next_desc(struct iop_adma_desc_slot *desc, |
404 | u32 next_desc_addr) | 511 | u32 next_desc_addr) |
@@ -428,18 +535,20 @@ static inline void iop_desc_set_block_fill_val(struct iop_adma_desc_slot *desc, | |||
428 | hw_desc->block_fill_data = val; | 535 | hw_desc->block_fill_data = val; |
429 | } | 536 | } |
430 | 537 | ||
431 | static inline int iop_desc_get_zero_result(struct iop_adma_desc_slot *desc) | 538 | static inline enum sum_check_flags |
539 | iop_desc_get_zero_result(struct iop_adma_desc_slot *desc) | ||
432 | { | 540 | { |
433 | struct iop13xx_adma_desc_hw *hw_desc = desc->hw_desc; | 541 | struct iop13xx_adma_desc_hw *hw_desc = desc->hw_desc; |
434 | struct iop13xx_adma_desc_ctrl desc_ctrl = hw_desc->desc_ctrl_field; | 542 | struct iop13xx_adma_desc_ctrl desc_ctrl = hw_desc->desc_ctrl_field; |
435 | struct iop13xx_adma_byte_count byte_count = hw_desc->byte_count_field; | 543 | struct iop13xx_adma_byte_count byte_count = hw_desc->byte_count_field; |
544 | enum sum_check_flags flags; | ||
436 | 545 | ||
437 | BUG_ON(!(byte_count.tx_complete && desc_ctrl.zero_result)); | 546 | BUG_ON(!(byte_count.tx_complete && desc_ctrl.zero_result)); |
438 | 547 | ||
439 | if (desc_ctrl.pq_xfer_en) | 548 | flags = byte_count.zero_result_err_q << SUM_CHECK_Q; |
440 | return byte_count.zero_result_err_q; | 549 | flags |= byte_count.zero_result_err << SUM_CHECK_P; |
441 | else | 550 | |
442 | return byte_count.zero_result_err; | 551 | return flags; |
443 | } | 552 | } |
444 | 553 | ||
445 | static inline void iop_chan_append(struct iop_adma_chan *chan) | 554 | static inline void iop_chan_append(struct iop_adma_chan *chan) |
diff --git a/arch/arm/mach-iop13xx/setup.c b/arch/arm/mach-iop13xx/setup.c index bee42c609df6..5c147fb66a01 100644 --- a/arch/arm/mach-iop13xx/setup.c +++ b/arch/arm/mach-iop13xx/setup.c | |||
@@ -477,10 +477,8 @@ void __init iop13xx_platform_init(void) | |||
477 | plat_data = &iop13xx_adma_0_data; | 477 | plat_data = &iop13xx_adma_0_data; |
478 | dma_cap_set(DMA_MEMCPY, plat_data->cap_mask); | 478 | dma_cap_set(DMA_MEMCPY, plat_data->cap_mask); |
479 | dma_cap_set(DMA_XOR, plat_data->cap_mask); | 479 | dma_cap_set(DMA_XOR, plat_data->cap_mask); |
480 | dma_cap_set(DMA_DUAL_XOR, plat_data->cap_mask); | 480 | dma_cap_set(DMA_XOR_VAL, plat_data->cap_mask); |
481 | dma_cap_set(DMA_ZERO_SUM, plat_data->cap_mask); | ||
482 | dma_cap_set(DMA_MEMSET, plat_data->cap_mask); | 481 | dma_cap_set(DMA_MEMSET, plat_data->cap_mask); |
483 | dma_cap_set(DMA_MEMCPY_CRC32C, plat_data->cap_mask); | ||
484 | dma_cap_set(DMA_INTERRUPT, plat_data->cap_mask); | 482 | dma_cap_set(DMA_INTERRUPT, plat_data->cap_mask); |
485 | break; | 483 | break; |
486 | case IOP13XX_INIT_ADMA_1: | 484 | case IOP13XX_INIT_ADMA_1: |
@@ -489,10 +487,8 @@ void __init iop13xx_platform_init(void) | |||
489 | plat_data = &iop13xx_adma_1_data; | 487 | plat_data = &iop13xx_adma_1_data; |
490 | dma_cap_set(DMA_MEMCPY, plat_data->cap_mask); | 488 | dma_cap_set(DMA_MEMCPY, plat_data->cap_mask); |
491 | dma_cap_set(DMA_XOR, plat_data->cap_mask); | 489 | dma_cap_set(DMA_XOR, plat_data->cap_mask); |
492 | dma_cap_set(DMA_DUAL_XOR, plat_data->cap_mask); | 490 | dma_cap_set(DMA_XOR_VAL, plat_data->cap_mask); |
493 | dma_cap_set(DMA_ZERO_SUM, plat_data->cap_mask); | ||
494 | dma_cap_set(DMA_MEMSET, plat_data->cap_mask); | 491 | dma_cap_set(DMA_MEMSET, plat_data->cap_mask); |
495 | dma_cap_set(DMA_MEMCPY_CRC32C, plat_data->cap_mask); | ||
496 | dma_cap_set(DMA_INTERRUPT, plat_data->cap_mask); | 492 | dma_cap_set(DMA_INTERRUPT, plat_data->cap_mask); |
497 | break; | 493 | break; |
498 | case IOP13XX_INIT_ADMA_2: | 494 | case IOP13XX_INIT_ADMA_2: |
@@ -501,14 +497,11 @@ void __init iop13xx_platform_init(void) | |||
501 | plat_data = &iop13xx_adma_2_data; | 497 | plat_data = &iop13xx_adma_2_data; |
502 | dma_cap_set(DMA_MEMCPY, plat_data->cap_mask); | 498 | dma_cap_set(DMA_MEMCPY, plat_data->cap_mask); |
503 | dma_cap_set(DMA_XOR, plat_data->cap_mask); | 499 | dma_cap_set(DMA_XOR, plat_data->cap_mask); |
504 | dma_cap_set(DMA_DUAL_XOR, plat_data->cap_mask); | 500 | dma_cap_set(DMA_XOR_VAL, plat_data->cap_mask); |
505 | dma_cap_set(DMA_ZERO_SUM, plat_data->cap_mask); | ||
506 | dma_cap_set(DMA_MEMSET, plat_data->cap_mask); | 501 | dma_cap_set(DMA_MEMSET, plat_data->cap_mask); |
507 | dma_cap_set(DMA_MEMCPY_CRC32C, plat_data->cap_mask); | ||
508 | dma_cap_set(DMA_INTERRUPT, plat_data->cap_mask); | 502 | dma_cap_set(DMA_INTERRUPT, plat_data->cap_mask); |
509 | dma_cap_set(DMA_PQ_XOR, plat_data->cap_mask); | 503 | dma_cap_set(DMA_PQ, plat_data->cap_mask); |
510 | dma_cap_set(DMA_PQ_UPDATE, plat_data->cap_mask); | 504 | dma_cap_set(DMA_PQ_VAL, plat_data->cap_mask); |
511 | dma_cap_set(DMA_PQ_ZERO_SUM, plat_data->cap_mask); | ||
512 | break; | 505 | break; |
513 | } | 506 | } |
514 | } | 507 | } |
diff --git a/arch/arm/mach-iop32x/include/mach/iop32x.h b/arch/arm/mach-iop32x/include/mach/iop32x.h index abd9eb49f103..941f363aca56 100644 --- a/arch/arm/mach-iop32x/include/mach/iop32x.h +++ b/arch/arm/mach-iop32x/include/mach/iop32x.h | |||
@@ -31,7 +31,5 @@ | |||
31 | #define IOP32X_MAX_RAM_SIZE 0x40000000UL | 31 | #define IOP32X_MAX_RAM_SIZE 0x40000000UL |
32 | #define IOP3XX_MAX_RAM_SIZE IOP32X_MAX_RAM_SIZE | 32 | #define IOP3XX_MAX_RAM_SIZE IOP32X_MAX_RAM_SIZE |
33 | #define IOP3XX_PCI_LOWER_MEM_BA 0x80000000 | 33 | #define IOP3XX_PCI_LOWER_MEM_BA 0x80000000 |
34 | #define IOP32X_PCI_MEM_WINDOW_SIZE 0x04000000 | ||
35 | #define IOP3XX_PCI_MEM_WINDOW_SIZE IOP32X_PCI_MEM_WINDOW_SIZE | ||
36 | 34 | ||
37 | #endif | 35 | #endif |
diff --git a/arch/arm/mach-iop33x/include/mach/iop33x.h b/arch/arm/mach-iop33x/include/mach/iop33x.h index 24567316ec88..a89c0a234bff 100644 --- a/arch/arm/mach-iop33x/include/mach/iop33x.h +++ b/arch/arm/mach-iop33x/include/mach/iop33x.h | |||
@@ -36,8 +36,6 @@ | |||
36 | #define IOP33X_MAX_RAM_SIZE 0x80000000UL | 36 | #define IOP33X_MAX_RAM_SIZE 0x80000000UL |
37 | #define IOP3XX_MAX_RAM_SIZE IOP33X_MAX_RAM_SIZE | 37 | #define IOP3XX_MAX_RAM_SIZE IOP33X_MAX_RAM_SIZE |
38 | #define IOP3XX_PCI_LOWER_MEM_BA (PHYS_OFFSET + IOP33X_MAX_RAM_SIZE) | 38 | #define IOP3XX_PCI_LOWER_MEM_BA (PHYS_OFFSET + IOP33X_MAX_RAM_SIZE) |
39 | #define IOP33X_PCI_MEM_WINDOW_SIZE 0x08000000 | ||
40 | #define IOP3XX_PCI_MEM_WINDOW_SIZE IOP33X_PCI_MEM_WINDOW_SIZE | ||
41 | 39 | ||
42 | 40 | ||
43 | #endif | 41 | #endif |
diff --git a/arch/arm/mach-ns9xxx/clock.c b/arch/arm/mach-ns9xxx/clock.c index 44ed20d4a388..cf81cbc57544 100644 --- a/arch/arm/mach-ns9xxx/clock.c +++ b/arch/arm/mach-ns9xxx/clock.c | |||
@@ -195,7 +195,7 @@ static int clk_debugfs_open(struct inode *inode, struct file *file) | |||
195 | return single_open(file, clk_debugfs_show, NULL); | 195 | return single_open(file, clk_debugfs_show, NULL); |
196 | } | 196 | } |
197 | 197 | ||
198 | static struct file_operations clk_debugfs_operations = { | 198 | static const struct file_operations clk_debugfs_operations = { |
199 | .open = clk_debugfs_open, | 199 | .open = clk_debugfs_open, |
200 | .read = seq_read, | 200 | .read = seq_read, |
201 | .llseek = seq_lseek, | 201 | .llseek = seq_lseek, |
diff --git a/arch/arm/mach-omap1/id.c b/arch/arm/mach-omap1/id.c index 4ef26faf083e..e5dcdf764c91 100644 --- a/arch/arm/mach-omap1/id.c +++ b/arch/arm/mach-omap1/id.c | |||
@@ -38,7 +38,7 @@ static struct omap_id omap_ids[] __initdata = { | |||
38 | { .jtag_id = 0xb574, .die_rev = 0x2, .omap_id = 0x03310315, .type = 0x03100000}, | 38 | { .jtag_id = 0xb574, .die_rev = 0x2, .omap_id = 0x03310315, .type = 0x03100000}, |
39 | { .jtag_id = 0x355f, .die_rev = 0x0, .omap_id = 0x03320000, .type = 0x07300100}, | 39 | { .jtag_id = 0x355f, .die_rev = 0x0, .omap_id = 0x03320000, .type = 0x07300100}, |
40 | { .jtag_id = 0xb55f, .die_rev = 0x0, .omap_id = 0x03320000, .type = 0x07300300}, | 40 | { .jtag_id = 0xb55f, .die_rev = 0x0, .omap_id = 0x03320000, .type = 0x07300300}, |
41 | { .jtag_id = 0xb55f, .die_rev = 0x0, .omap_id = 0x03320500, .type = 0x08500000}, | 41 | { .jtag_id = 0xb62c, .die_rev = 0x1, .omap_id = 0x03320500, .type = 0x08500000}, |
42 | { .jtag_id = 0xb470, .die_rev = 0x0, .omap_id = 0x03310100, .type = 0x15100000}, | 42 | { .jtag_id = 0xb470, .die_rev = 0x0, .omap_id = 0x03310100, .type = 0x15100000}, |
43 | { .jtag_id = 0xb576, .die_rev = 0x0, .omap_id = 0x03320000, .type = 0x16100000}, | 43 | { .jtag_id = 0xb576, .die_rev = 0x0, .omap_id = 0x03320000, .type = 0x16100000}, |
44 | { .jtag_id = 0xb576, .die_rev = 0x2, .omap_id = 0x03320100, .type = 0x16110000}, | 44 | { .jtag_id = 0xb576, .die_rev = 0x2, .omap_id = 0x03320100, .type = 0x16110000}, |
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index bd57ec76dc5e..efaf053eba85 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
@@ -54,7 +54,7 @@ | |||
54 | 54 | ||
55 | #define TWL4030_MSECURE_GPIO 22 | 55 | #define TWL4030_MSECURE_GPIO 22 |
56 | 56 | ||
57 | static int sdp3430_keymap[] = { | 57 | static int board_keymap[] = { |
58 | KEY(0, 0, KEY_LEFT), | 58 | KEY(0, 0, KEY_LEFT), |
59 | KEY(0, 1, KEY_RIGHT), | 59 | KEY(0, 1, KEY_RIGHT), |
60 | KEY(0, 2, KEY_A), | 60 | KEY(0, 2, KEY_A), |
@@ -88,11 +88,15 @@ static int sdp3430_keymap[] = { | |||
88 | 0 | 88 | 0 |
89 | }; | 89 | }; |
90 | 90 | ||
91 | static struct matrix_keymap_data board_map_data = { | ||
92 | .keymap = board_keymap, | ||
93 | .keymap_size = ARRAY_SIZE(board_keymap), | ||
94 | }; | ||
95 | |||
91 | static struct twl4030_keypad_data sdp3430_kp_data = { | 96 | static struct twl4030_keypad_data sdp3430_kp_data = { |
97 | .keymap_data = &board_map_data, | ||
92 | .rows = 5, | 98 | .rows = 5, |
93 | .cols = 6, | 99 | .cols = 6, |
94 | .keymap = sdp3430_keymap, | ||
95 | .keymapsize = ARRAY_SIZE(sdp3430_keymap), | ||
96 | .rep = 1, | 100 | .rep = 1, |
97 | }; | 101 | }; |
98 | 102 | ||
diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c index ec6854cbdd9f..d110a7fdfbd8 100644 --- a/arch/arm/mach-omap2/board-ldp.c +++ b/arch/arm/mach-omap2/board-ldp.c | |||
@@ -80,7 +80,7 @@ static struct platform_device ldp_smsc911x_device = { | |||
80 | }, | 80 | }, |
81 | }; | 81 | }; |
82 | 82 | ||
83 | static int ldp_twl4030_keymap[] = { | 83 | static int board_keymap[] = { |
84 | KEY(0, 0, KEY_1), | 84 | KEY(0, 0, KEY_1), |
85 | KEY(1, 0, KEY_2), | 85 | KEY(1, 0, KEY_2), |
86 | KEY(2, 0, KEY_3), | 86 | KEY(2, 0, KEY_3), |
@@ -101,11 +101,15 @@ static int ldp_twl4030_keymap[] = { | |||
101 | 0 | 101 | 0 |
102 | }; | 102 | }; |
103 | 103 | ||
104 | static struct matrix_keymap_data board_map_data = { | ||
105 | .keymap = board_keymap, | ||
106 | .keymap_size = ARRAY_SIZE(board_keymap), | ||
107 | }; | ||
108 | |||
104 | static struct twl4030_keypad_data ldp_kp_twl4030_data = { | 109 | static struct twl4030_keypad_data ldp_kp_twl4030_data = { |
110 | .keymap_data = &board_map_data, | ||
105 | .rows = 6, | 111 | .rows = 6, |
106 | .cols = 6, | 112 | .cols = 6, |
107 | .keymap = ldp_twl4030_keymap, | ||
108 | .keymapsize = ARRAY_SIZE(ldp_twl4030_keymap), | ||
109 | .rep = 1, | 113 | .rep = 1, |
110 | }; | 114 | }; |
111 | 115 | ||
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 500c9956876d..70df6b4dbcd4 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c | |||
@@ -139,8 +139,13 @@ static struct gpio_led gpio_leds[]; | |||
139 | static int beagle_twl_gpio_setup(struct device *dev, | 139 | static int beagle_twl_gpio_setup(struct device *dev, |
140 | unsigned gpio, unsigned ngpio) | 140 | unsigned gpio, unsigned ngpio) |
141 | { | 141 | { |
142 | if (system_rev >= 0x20 && system_rev <= 0x34301000) { | ||
143 | omap_cfg_reg(AG9_34XX_GPIO23); | ||
144 | mmc[0].gpio_wp = 23; | ||
145 | } else { | ||
146 | omap_cfg_reg(AH8_34XX_GPIO29); | ||
147 | } | ||
142 | /* gpio + 0 is "mmc0_cd" (input/IRQ) */ | 148 | /* gpio + 0 is "mmc0_cd" (input/IRQ) */ |
143 | omap_cfg_reg(AH8_34XX_GPIO29); | ||
144 | mmc[0].gpio_cd = gpio + 0; | 149 | mmc[0].gpio_cd = gpio + 0; |
145 | twl4030_mmc_init(mmc); | 150 | twl4030_mmc_init(mmc); |
146 | 151 | ||
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index d50b9be90580..e4ec0c591216 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c | |||
@@ -159,7 +159,7 @@ static struct twl4030_usb_data omap3evm_usb_data = { | |||
159 | .usb_mode = T2_USB_MODE_ULPI, | 159 | .usb_mode = T2_USB_MODE_ULPI, |
160 | }; | 160 | }; |
161 | 161 | ||
162 | static int omap3evm_keymap[] = { | 162 | static int board_keymap[] = { |
163 | KEY(0, 0, KEY_LEFT), | 163 | KEY(0, 0, KEY_LEFT), |
164 | KEY(0, 1, KEY_RIGHT), | 164 | KEY(0, 1, KEY_RIGHT), |
165 | KEY(0, 2, KEY_A), | 165 | KEY(0, 2, KEY_A), |
@@ -178,11 +178,15 @@ static int omap3evm_keymap[] = { | |||
178 | KEY(3, 3, KEY_P) | 178 | KEY(3, 3, KEY_P) |
179 | }; | 179 | }; |
180 | 180 | ||
181 | static struct matrix_keymap_data board_map_data = { | ||
182 | .keymap = board_keymap, | ||
183 | .keymap_size = ARRAY_SIZE(board_keymap), | ||
184 | }; | ||
185 | |||
181 | static struct twl4030_keypad_data omap3evm_kp_data = { | 186 | static struct twl4030_keypad_data omap3evm_kp_data = { |
187 | .keymap_data = &board_map_data, | ||
182 | .rows = 4, | 188 | .rows = 4, |
183 | .cols = 4, | 189 | .cols = 4, |
184 | .keymap = omap3evm_keymap, | ||
185 | .keymapsize = ARRAY_SIZE(omap3evm_keymap), | ||
186 | .rep = 1, | 190 | .rep = 1, |
187 | }; | 191 | }; |
188 | 192 | ||
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c index b43f6e36b6d9..7f6bf8772af7 100644 --- a/arch/arm/mach-omap2/board-omap3pandora.c +++ b/arch/arm/mach-omap2/board-omap3pandora.c | |||
@@ -133,7 +133,7 @@ static void __init pandora_keys_gpio_init(void) | |||
133 | omap_set_gpio_debounce_time(32 * 5, GPIO_DEBOUNCE_TIME); | 133 | omap_set_gpio_debounce_time(32 * 5, GPIO_DEBOUNCE_TIME); |
134 | } | 134 | } |
135 | 135 | ||
136 | static int pandora_keypad_map[] = { | 136 | static int board_keymap[] = { |
137 | /* col, row, code */ | 137 | /* col, row, code */ |
138 | KEY(0, 0, KEY_9), | 138 | KEY(0, 0, KEY_9), |
139 | KEY(0, 1, KEY_0), | 139 | KEY(0, 1, KEY_0), |
@@ -180,11 +180,15 @@ static int pandora_keypad_map[] = { | |||
180 | KEY(5, 2, KEY_FN), | 180 | KEY(5, 2, KEY_FN), |
181 | }; | 181 | }; |
182 | 182 | ||
183 | static struct matrix_keymap_data board_map_data = { | ||
184 | .keymap = board_keymap, | ||
185 | .keymap_size = ARRAY_SIZE(board_keymap), | ||
186 | }; | ||
187 | |||
183 | static struct twl4030_keypad_data pandora_kp_data = { | 188 | static struct twl4030_keypad_data pandora_kp_data = { |
189 | .keymap_data = &board_map_data, | ||
184 | .rows = 8, | 190 | .rows = 8, |
185 | .cols = 6, | 191 | .cols = 6, |
186 | .keymap = pandora_keypad_map, | ||
187 | .keymapsize = ARRAY_SIZE(pandora_keypad_map), | ||
188 | .rep = 1, | 192 | .rep = 1, |
189 | }; | 193 | }; |
190 | 194 | ||
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index e6e8290b7828..2b0eb1ba5d7f 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c | |||
@@ -36,58 +36,62 @@ | |||
36 | #define SYSTEM_REV_B_USES_VAUX3 0x1699 | 36 | #define SYSTEM_REV_B_USES_VAUX3 0x1699 |
37 | #define SYSTEM_REV_S_USES_VAUX3 0x8 | 37 | #define SYSTEM_REV_S_USES_VAUX3 0x8 |
38 | 38 | ||
39 | static int rx51_keymap[] = { | 39 | static int board_keymap[] = { |
40 | KEY(0, 0, KEY_Q), | 40 | KEY(0, 0, KEY_Q), |
41 | KEY(0, 1, KEY_W), | 41 | KEY(0, 1, KEY_O), |
42 | KEY(0, 2, KEY_E), | 42 | KEY(0, 2, KEY_P), |
43 | KEY(0, 3, KEY_R), | 43 | KEY(0, 3, KEY_COMMA), |
44 | KEY(0, 4, KEY_T), | 44 | KEY(0, 4, KEY_BACKSPACE), |
45 | KEY(0, 5, KEY_Y), | 45 | KEY(0, 6, KEY_A), |
46 | KEY(0, 6, KEY_U), | 46 | KEY(0, 7, KEY_S), |
47 | KEY(0, 7, KEY_I), | 47 | KEY(1, 0, KEY_W), |
48 | KEY(1, 0, KEY_O), | ||
49 | KEY(1, 1, KEY_D), | 48 | KEY(1, 1, KEY_D), |
50 | KEY(1, 2, KEY_DOT), | 49 | KEY(1, 2, KEY_F), |
51 | KEY(1, 3, KEY_V), | 50 | KEY(1, 3, KEY_G), |
52 | KEY(1, 4, KEY_DOWN), | 51 | KEY(1, 4, KEY_H), |
53 | KEY(2, 0, KEY_P), | 52 | KEY(1, 5, KEY_J), |
54 | KEY(2, 1, KEY_F), | 53 | KEY(1, 6, KEY_K), |
54 | KEY(1, 7, KEY_L), | ||
55 | KEY(2, 0, KEY_E), | ||
56 | KEY(2, 1, KEY_DOT), | ||
55 | KEY(2, 2, KEY_UP), | 57 | KEY(2, 2, KEY_UP), |
56 | KEY(2, 3, KEY_B), | 58 | KEY(2, 3, KEY_ENTER), |
57 | KEY(2, 4, KEY_RIGHT), | 59 | KEY(2, 5, KEY_Z), |
58 | KEY(3, 0, KEY_COMMA), | 60 | KEY(2, 6, KEY_X), |
59 | KEY(3, 1, KEY_G), | 61 | KEY(2, 7, KEY_C), |
60 | KEY(3, 2, KEY_ENTER), | 62 | KEY(3, 0, KEY_R), |
63 | KEY(3, 1, KEY_V), | ||
64 | KEY(3, 2, KEY_B), | ||
61 | KEY(3, 3, KEY_N), | 65 | KEY(3, 3, KEY_N), |
62 | KEY(4, 0, KEY_BACKSPACE), | 66 | KEY(3, 4, KEY_M), |
63 | KEY(4, 1, KEY_H), | 67 | KEY(3, 5, KEY_SPACE), |
64 | KEY(4, 3, KEY_M), | 68 | KEY(3, 6, KEY_SPACE), |
69 | KEY(3, 7, KEY_LEFT), | ||
70 | KEY(4, 0, KEY_T), | ||
71 | KEY(4, 1, KEY_DOWN), | ||
72 | KEY(4, 2, KEY_RIGHT), | ||
65 | KEY(4, 4, KEY_LEFTCTRL), | 73 | KEY(4, 4, KEY_LEFTCTRL), |
66 | KEY(5, 1, KEY_J), | 74 | KEY(4, 5, KEY_RIGHTALT), |
67 | KEY(5, 2, KEY_Z), | 75 | KEY(4, 6, KEY_LEFTSHIFT), |
68 | KEY(5, 3, KEY_SPACE), | 76 | KEY(5, 0, KEY_Y), |
69 | KEY(5, 4, KEY_LEFTSHIFT), | 77 | KEY(6, 0, KEY_U), |
70 | KEY(6, 0, KEY_A), | 78 | KEY(7, 0, KEY_I), |
71 | KEY(6, 1, KEY_K), | 79 | KEY(7, 1, KEY_F7), |
72 | KEY(6, 2, KEY_X), | 80 | KEY(7, 2, KEY_F8), |
73 | KEY(6, 3, KEY_SPACE), | 81 | KEY(0xff, 2, KEY_F9), |
74 | KEY(6, 4, KEY_FN), | 82 | KEY(0xff, 4, KEY_F10), |
75 | KEY(7, 0, KEY_S), | 83 | KEY(0xff, 5, KEY_F11), |
76 | KEY(7, 1, KEY_L), | 84 | }; |
77 | KEY(7, 2, KEY_C), | 85 | |
78 | KEY(7, 3, KEY_LEFT), | 86 | static struct matrix_keymap_data board_map_data = { |
79 | KEY(0xff, 0, KEY_F6), | 87 | .keymap = board_keymap, |
80 | KEY(0xff, 1, KEY_F7), | 88 | .keymap_size = ARRAY_SIZE(board_keymap), |
81 | KEY(0xff, 2, KEY_F8), | ||
82 | KEY(0xff, 4, KEY_F9), | ||
83 | KEY(0xff, 5, KEY_F10), | ||
84 | }; | 89 | }; |
85 | 90 | ||
86 | static struct twl4030_keypad_data rx51_kp_data = { | 91 | static struct twl4030_keypad_data rx51_kp_data = { |
92 | .keymap_data = &board_map_data, | ||
87 | .rows = 8, | 93 | .rows = 8, |
88 | .cols = 8, | 94 | .cols = 8, |
89 | .keymap = rx51_keymap, | ||
90 | .keymapsize = ARRAY_SIZE(rx51_keymap), | ||
91 | .rep = 1, | 95 | .rep = 1, |
92 | }; | 96 | }; |
93 | 97 | ||
@@ -440,7 +444,7 @@ static int __init rx51_i2c_init(void) | |||
440 | rx51_twldata.vaux3 = &rx51_vaux3_cam; | 444 | rx51_twldata.vaux3 = &rx51_vaux3_cam; |
441 | rx51_twldata.vmmc2 = &rx51_vmmc2; | 445 | rx51_twldata.vmmc2 = &rx51_vmmc2; |
442 | } | 446 | } |
443 | omap_register_i2c_bus(1, 2600, rx51_peripherals_i2c_board_info_1, | 447 | omap_register_i2c_bus(1, 2200, rx51_peripherals_i2c_board_info_1, |
444 | ARRAY_SIZE(rx51_peripherals_i2c_board_info_1)); | 448 | ARRAY_SIZE(rx51_peripherals_i2c_board_info_1)); |
445 | omap_register_i2c_bus(2, 100, NULL, 0); | 449 | omap_register_i2c_bus(2, 100, NULL, 0); |
446 | omap_register_i2c_bus(3, 400, NULL, 0); | 450 | omap_register_i2c_bus(3, 400, NULL, 0); |
diff --git a/arch/arm/mach-omap2/board-zoom2.c b/arch/arm/mach-omap2/board-zoom2.c index 324009edbd53..fd3369d5e5cb 100644 --- a/arch/arm/mach-omap2/board-zoom2.c +++ b/arch/arm/mach-omap2/board-zoom2.c | |||
@@ -25,9 +25,10 @@ | |||
25 | #include <mach/keypad.h> | 25 | #include <mach/keypad.h> |
26 | 26 | ||
27 | #include "mmc-twl4030.h" | 27 | #include "mmc-twl4030.h" |
28 | #include "sdram-micron-mt46h32m32lf-6.h" | ||
28 | 29 | ||
29 | /* Zoom2 has Qwerty keyboard*/ | 30 | /* Zoom2 has Qwerty keyboard*/ |
30 | static int zoom2_twl4030_keymap[] = { | 31 | static int board_keymap[] = { |
31 | KEY(0, 0, KEY_E), | 32 | KEY(0, 0, KEY_E), |
32 | KEY(1, 0, KEY_R), | 33 | KEY(1, 0, KEY_R), |
33 | KEY(2, 0, KEY_T), | 34 | KEY(2, 0, KEY_T), |
@@ -82,11 +83,15 @@ static int zoom2_twl4030_keymap[] = { | |||
82 | 0 | 83 | 0 |
83 | }; | 84 | }; |
84 | 85 | ||
86 | static struct matrix_keymap_data board_map_data = { | ||
87 | .keymap = board_keymap, | ||
88 | .keymap_size = ARRAY_SIZE(board_keymap), | ||
89 | }; | ||
90 | |||
85 | static struct twl4030_keypad_data zoom2_kp_twl4030_data = { | 91 | static struct twl4030_keypad_data zoom2_kp_twl4030_data = { |
92 | .keymap_data = &board_map_data, | ||
86 | .rows = 8, | 93 | .rows = 8, |
87 | .cols = 8, | 94 | .cols = 8, |
88 | .keymap = zoom2_twl4030_keymap, | ||
89 | .keymapsize = ARRAY_SIZE(zoom2_twl4030_keymap), | ||
90 | .rep = 1, | 95 | .rep = 1, |
91 | }; | 96 | }; |
92 | 97 | ||
@@ -209,7 +214,8 @@ static void __init omap_zoom2_init_irq(void) | |||
209 | { | 214 | { |
210 | omap_board_config = zoom2_config; | 215 | omap_board_config = zoom2_config; |
211 | omap_board_config_size = ARRAY_SIZE(zoom2_config); | 216 | omap_board_config_size = ARRAY_SIZE(zoom2_config); |
212 | omap2_init_common_hw(NULL, NULL); | 217 | omap2_init_common_hw(mt46h32m32lf6_sdrc_params, |
218 | mt46h32m32lf6_sdrc_params); | ||
213 | omap_init_irq(); | 219 | omap_init_irq(); |
214 | omap_gpio_init(); | 220 | omap_gpio_init(); |
215 | } | 221 | } |
diff --git a/arch/arm/mach-omap2/clock24xx.c b/arch/arm/mach-omap2/clock24xx.c index bc5d3ac66611..e2dbedd581e8 100644 --- a/arch/arm/mach-omap2/clock24xx.c +++ b/arch/arm/mach-omap2/clock24xx.c | |||
@@ -769,6 +769,7 @@ int __init omap2_clk_init(void) | |||
769 | if (c->cpu & cpu_mask) { | 769 | if (c->cpu & cpu_mask) { |
770 | clkdev_add(&c->lk); | 770 | clkdev_add(&c->lk); |
771 | clk_register(c->lk.clk); | 771 | clk_register(c->lk.clk); |
772 | omap2_init_clk_clkdm(c->lk.clk); | ||
772 | } | 773 | } |
773 | 774 | ||
774 | /* Check the MPU rate set by bootloader */ | 775 | /* Check the MPU rate set by bootloader */ |
diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c index fafcd32e6907..489556eecbd1 100644 --- a/arch/arm/mach-omap2/clock34xx.c +++ b/arch/arm/mach-omap2/clock34xx.c | |||
@@ -338,6 +338,13 @@ static struct omap_clk omap34xx_clks[] = { | |||
338 | */ | 338 | */ |
339 | #define SDRC_MPURATE_LOOPS 96 | 339 | #define SDRC_MPURATE_LOOPS 96 |
340 | 340 | ||
341 | /* | ||
342 | * DPLL5_FREQ_FOR_USBHOST: USBHOST and USBTLL are the only clocks | ||
343 | * that are sourced by DPLL5, and both of these require this clock | ||
344 | * to be at 120 MHz for proper operation. | ||
345 | */ | ||
346 | #define DPLL5_FREQ_FOR_USBHOST 120000000 | ||
347 | |||
341 | /** | 348 | /** |
342 | * omap3430es2_clk_ssi_find_idlest - return CM_IDLEST info for SSI | 349 | * omap3430es2_clk_ssi_find_idlest - return CM_IDLEST info for SSI |
343 | * @clk: struct clk * being enabled | 350 | * @clk: struct clk * being enabled |
@@ -1056,6 +1063,28 @@ void omap2_clk_prepare_for_reboot(void) | |||
1056 | #endif | 1063 | #endif |
1057 | } | 1064 | } |
1058 | 1065 | ||
1066 | static void omap3_clk_lock_dpll5(void) | ||
1067 | { | ||
1068 | struct clk *dpll5_clk; | ||
1069 | struct clk *dpll5_m2_clk; | ||
1070 | |||
1071 | dpll5_clk = clk_get(NULL, "dpll5_ck"); | ||
1072 | clk_set_rate(dpll5_clk, DPLL5_FREQ_FOR_USBHOST); | ||
1073 | clk_enable(dpll5_clk); | ||
1074 | |||
1075 | /* Enable autoidle to allow it to enter low power bypass */ | ||
1076 | omap3_dpll_allow_idle(dpll5_clk); | ||
1077 | |||
1078 | /* Program dpll5_m2_clk divider for no division */ | ||
1079 | dpll5_m2_clk = clk_get(NULL, "dpll5_m2_ck"); | ||
1080 | clk_enable(dpll5_m2_clk); | ||
1081 | clk_set_rate(dpll5_m2_clk, DPLL5_FREQ_FOR_USBHOST); | ||
1082 | |||
1083 | clk_disable(dpll5_m2_clk); | ||
1084 | clk_disable(dpll5_clk); | ||
1085 | return; | ||
1086 | } | ||
1087 | |||
1059 | /* REVISIT: Move this init stuff out into clock.c */ | 1088 | /* REVISIT: Move this init stuff out into clock.c */ |
1060 | 1089 | ||
1061 | /* | 1090 | /* |
@@ -1148,6 +1177,12 @@ int __init omap2_clk_init(void) | |||
1148 | */ | 1177 | */ |
1149 | clk_enable_init_clocks(); | 1178 | clk_enable_init_clocks(); |
1150 | 1179 | ||
1180 | /* | ||
1181 | * Lock DPLL5 and put it in autoidle. | ||
1182 | */ | ||
1183 | if (omap_rev() >= OMAP3430_REV_ES2_0) | ||
1184 | omap3_clk_lock_dpll5(); | ||
1185 | |||
1151 | /* Avoid sleeping during omap2_clk_prepare_for_reboot() */ | 1186 | /* Avoid sleeping during omap2_clk_prepare_for_reboot() */ |
1152 | /* REVISIT: not yet ready for 343x */ | 1187 | /* REVISIT: not yet ready for 343x */ |
1153 | #if 0 | 1188 | #if 0 |
diff --git a/arch/arm/mach-omap2/clockdomain.c b/arch/arm/mach-omap2/clockdomain.c index 4ef7b4f5474e..58aff8485df9 100644 --- a/arch/arm/mach-omap2/clockdomain.c +++ b/arch/arm/mach-omap2/clockdomain.c | |||
@@ -137,6 +137,36 @@ static void _clkdm_del_autodeps(struct clockdomain *clkdm) | |||
137 | } | 137 | } |
138 | } | 138 | } |
139 | 139 | ||
140 | /* | ||
141 | * _omap2_clkdm_set_hwsup - set the hwsup idle transition bit | ||
142 | * @clkdm: struct clockdomain * | ||
143 | * @enable: int 0 to disable, 1 to enable | ||
144 | * | ||
145 | * Internal helper for actually switching the bit that controls hwsup | ||
146 | * idle transitions for clkdm. | ||
147 | */ | ||
148 | static void _omap2_clkdm_set_hwsup(struct clockdomain *clkdm, int enable) | ||
149 | { | ||
150 | u32 v; | ||
151 | |||
152 | if (cpu_is_omap24xx()) { | ||
153 | if (enable) | ||
154 | v = OMAP24XX_CLKSTCTRL_ENABLE_AUTO; | ||
155 | else | ||
156 | v = OMAP24XX_CLKSTCTRL_DISABLE_AUTO; | ||
157 | } else if (cpu_is_omap34xx()) { | ||
158 | if (enable) | ||
159 | v = OMAP34XX_CLKSTCTRL_ENABLE_AUTO; | ||
160 | else | ||
161 | v = OMAP34XX_CLKSTCTRL_DISABLE_AUTO; | ||
162 | } else { | ||
163 | BUG(); | ||
164 | } | ||
165 | |||
166 | cm_rmw_mod_reg_bits(clkdm->clktrctrl_mask, | ||
167 | v << __ffs(clkdm->clktrctrl_mask), | ||
168 | clkdm->pwrdm.ptr->prcm_offs, CM_CLKSTCTRL); | ||
169 | } | ||
140 | 170 | ||
141 | static struct clockdomain *_clkdm_lookup(const char *name) | 171 | static struct clockdomain *_clkdm_lookup(const char *name) |
142 | { | 172 | { |
@@ -456,8 +486,6 @@ int omap2_clkdm_wakeup(struct clockdomain *clkdm) | |||
456 | */ | 486 | */ |
457 | void omap2_clkdm_allow_idle(struct clockdomain *clkdm) | 487 | void omap2_clkdm_allow_idle(struct clockdomain *clkdm) |
458 | { | 488 | { |
459 | u32 v; | ||
460 | |||
461 | if (!clkdm) | 489 | if (!clkdm) |
462 | return; | 490 | return; |
463 | 491 | ||
@@ -473,18 +501,7 @@ void omap2_clkdm_allow_idle(struct clockdomain *clkdm) | |||
473 | if (atomic_read(&clkdm->usecount) > 0) | 501 | if (atomic_read(&clkdm->usecount) > 0) |
474 | _clkdm_add_autodeps(clkdm); | 502 | _clkdm_add_autodeps(clkdm); |
475 | 503 | ||
476 | if (cpu_is_omap24xx()) | 504 | _omap2_clkdm_set_hwsup(clkdm, 1); |
477 | v = OMAP24XX_CLKSTCTRL_ENABLE_AUTO; | ||
478 | else if (cpu_is_omap34xx()) | ||
479 | v = OMAP34XX_CLKSTCTRL_ENABLE_AUTO; | ||
480 | else | ||
481 | BUG(); | ||
482 | |||
483 | |||
484 | cm_rmw_mod_reg_bits(clkdm->clktrctrl_mask, | ||
485 | v << __ffs(clkdm->clktrctrl_mask), | ||
486 | clkdm->pwrdm.ptr->prcm_offs, | ||
487 | CM_CLKSTCTRL); | ||
488 | 505 | ||
489 | pwrdm_clkdm_state_switch(clkdm); | 506 | pwrdm_clkdm_state_switch(clkdm); |
490 | } | 507 | } |
@@ -500,8 +517,6 @@ void omap2_clkdm_allow_idle(struct clockdomain *clkdm) | |||
500 | */ | 517 | */ |
501 | void omap2_clkdm_deny_idle(struct clockdomain *clkdm) | 518 | void omap2_clkdm_deny_idle(struct clockdomain *clkdm) |
502 | { | 519 | { |
503 | u32 v; | ||
504 | |||
505 | if (!clkdm) | 520 | if (!clkdm) |
506 | return; | 521 | return; |
507 | 522 | ||
@@ -514,16 +529,7 @@ void omap2_clkdm_deny_idle(struct clockdomain *clkdm) | |||
514 | pr_debug("clockdomain: disabling automatic idle transitions for %s\n", | 529 | pr_debug("clockdomain: disabling automatic idle transitions for %s\n", |
515 | clkdm->name); | 530 | clkdm->name); |
516 | 531 | ||
517 | if (cpu_is_omap24xx()) | 532 | _omap2_clkdm_set_hwsup(clkdm, 0); |
518 | v = OMAP24XX_CLKSTCTRL_DISABLE_AUTO; | ||
519 | else if (cpu_is_omap34xx()) | ||
520 | v = OMAP34XX_CLKSTCTRL_DISABLE_AUTO; | ||
521 | else | ||
522 | BUG(); | ||
523 | |||
524 | cm_rmw_mod_reg_bits(clkdm->clktrctrl_mask, | ||
525 | v << __ffs(clkdm->clktrctrl_mask), | ||
526 | clkdm->pwrdm.ptr->prcm_offs, CM_CLKSTCTRL); | ||
527 | 533 | ||
528 | if (atomic_read(&clkdm->usecount) > 0) | 534 | if (atomic_read(&clkdm->usecount) > 0) |
529 | _clkdm_del_autodeps(clkdm); | 535 | _clkdm_del_autodeps(clkdm); |
@@ -569,10 +575,14 @@ int omap2_clkdm_clk_enable(struct clockdomain *clkdm, struct clk *clk) | |||
569 | v = omap2_clkdm_clktrctrl_read(clkdm); | 575 | v = omap2_clkdm_clktrctrl_read(clkdm); |
570 | 576 | ||
571 | if ((cpu_is_omap34xx() && v == OMAP34XX_CLKSTCTRL_ENABLE_AUTO) || | 577 | if ((cpu_is_omap34xx() && v == OMAP34XX_CLKSTCTRL_ENABLE_AUTO) || |
572 | (cpu_is_omap24xx() && v == OMAP24XX_CLKSTCTRL_ENABLE_AUTO)) | 578 | (cpu_is_omap24xx() && v == OMAP24XX_CLKSTCTRL_ENABLE_AUTO)) { |
579 | /* Disable HW transitions when we are changing deps */ | ||
580 | _omap2_clkdm_set_hwsup(clkdm, 0); | ||
573 | _clkdm_add_autodeps(clkdm); | 581 | _clkdm_add_autodeps(clkdm); |
574 | else | 582 | _omap2_clkdm_set_hwsup(clkdm, 1); |
583 | } else { | ||
575 | omap2_clkdm_wakeup(clkdm); | 584 | omap2_clkdm_wakeup(clkdm); |
585 | } | ||
576 | 586 | ||
577 | pwrdm_wait_transition(clkdm->pwrdm.ptr); | 587 | pwrdm_wait_transition(clkdm->pwrdm.ptr); |
578 | pwrdm_clkdm_state_switch(clkdm); | 588 | pwrdm_clkdm_state_switch(clkdm); |
@@ -623,10 +633,14 @@ int omap2_clkdm_clk_disable(struct clockdomain *clkdm, struct clk *clk) | |||
623 | v = omap2_clkdm_clktrctrl_read(clkdm); | 633 | v = omap2_clkdm_clktrctrl_read(clkdm); |
624 | 634 | ||
625 | if ((cpu_is_omap34xx() && v == OMAP34XX_CLKSTCTRL_ENABLE_AUTO) || | 635 | if ((cpu_is_omap34xx() && v == OMAP34XX_CLKSTCTRL_ENABLE_AUTO) || |
626 | (cpu_is_omap24xx() && v == OMAP24XX_CLKSTCTRL_ENABLE_AUTO)) | 636 | (cpu_is_omap24xx() && v == OMAP24XX_CLKSTCTRL_ENABLE_AUTO)) { |
637 | /* Disable HW transitions when we are changing deps */ | ||
638 | _omap2_clkdm_set_hwsup(clkdm, 0); | ||
627 | _clkdm_del_autodeps(clkdm); | 639 | _clkdm_del_autodeps(clkdm); |
628 | else | 640 | _omap2_clkdm_set_hwsup(clkdm, 1); |
641 | } else { | ||
629 | omap2_clkdm_sleep(clkdm); | 642 | omap2_clkdm_sleep(clkdm); |
643 | } | ||
630 | 644 | ||
631 | pwrdm_clkdm_state_switch(clkdm); | 645 | pwrdm_clkdm_state_switch(clkdm); |
632 | 646 | ||
diff --git a/arch/arm/mach-omap2/cm4xxx.c b/arch/arm/mach-omap2/cm4xxx.c index e4ebd6d53135..4af76bb1003a 100644 --- a/arch/arm/mach-omap2/cm4xxx.c +++ b/arch/arm/mach-omap2/cm4xxx.c | |||
@@ -22,7 +22,6 @@ | |||
22 | #include <asm/atomic.h> | 22 | #include <asm/atomic.h> |
23 | 23 | ||
24 | #include "cm.h" | 24 | #include "cm.h" |
25 | #include "cm-regbits-4xxx.h" | ||
26 | 25 | ||
27 | /* XXX move this to cm.h */ | 26 | /* XXX move this to cm.h */ |
28 | /* MAX_MODULE_READY_TIME: max milliseconds for module to leave idle */ | 27 | /* MAX_MODULE_READY_TIME: max milliseconds for module to leave idle */ |
@@ -50,19 +49,7 @@ | |||
50 | */ | 49 | */ |
51 | int omap4_cm_wait_idlest_ready(u32 prcm_mod, u8 prcm_dev_offs) | 50 | int omap4_cm_wait_idlest_ready(u32 prcm_mod, u8 prcm_dev_offs) |
52 | { | 51 | { |
53 | int i = 0; | 52 | /* FIXME: Add clock manager related code */ |
54 | u8 cm_id; | 53 | return 0; |
55 | u16 prcm_mod_offs; | ||
56 | u32 mask = OMAP4_PRCM_CM_CLKCTRL_IDLEST_MASK; | ||
57 | |||
58 | cm_id = prcm_mod >> OMAP4_PRCM_MOD_CM_ID_SHIFT; | ||
59 | prcm_mod_offs = prcm_mod & OMAP4_PRCM_MOD_OFFS_MASK; | ||
60 | |||
61 | while (((omap4_cm_read_mod_reg(cm_id, prcm_mod_offs, prcm_dev_offs, | ||
62 | OMAP4_CM_CLKCTRL_DREG) & mask) != 0) && | ||
63 | (i++ < MAX_MODULE_READY_TIME)) | ||
64 | udelay(1); | ||
65 | |||
66 | return (i < MAX_MODULE_READY_TIME) ? 0 : -EBUSY; | ||
67 | } | 54 | } |
68 | 55 | ||
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index bcfcfc7fdb9b..faf7a1e0c525 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -355,29 +355,60 @@ static struct platform_device omap2_mcspi4 = { | |||
355 | }; | 355 | }; |
356 | #endif | 356 | #endif |
357 | 357 | ||
358 | static void omap_init_mcspi(void) | 358 | #ifdef CONFIG_ARCH_OMAP4 |
359 | static inline void omap4_mcspi_fixup(void) | ||
359 | { | 360 | { |
360 | if (cpu_is_omap44xx()) { | 361 | omap2_mcspi1_resources[0].start = OMAP4_MCSPI1_BASE; |
361 | omap2_mcspi1_resources[0].start = OMAP4_MCSPI1_BASE; | 362 | omap2_mcspi1_resources[0].end = OMAP4_MCSPI1_BASE + 0xff; |
362 | omap2_mcspi1_resources[0].end = OMAP4_MCSPI1_BASE + 0xff; | 363 | omap2_mcspi2_resources[0].start = OMAP4_MCSPI2_BASE; |
363 | omap2_mcspi2_resources[0].start = OMAP4_MCSPI2_BASE; | 364 | omap2_mcspi2_resources[0].end = OMAP4_MCSPI2_BASE + 0xff; |
364 | omap2_mcspi2_resources[0].end = OMAP4_MCSPI2_BASE + 0xff; | 365 | omap2_mcspi3_resources[0].start = OMAP4_MCSPI3_BASE; |
365 | omap2_mcspi3_resources[0].start = OMAP4_MCSPI3_BASE; | 366 | omap2_mcspi3_resources[0].end = OMAP4_MCSPI3_BASE + 0xff; |
366 | omap2_mcspi3_resources[0].end = OMAP4_MCSPI3_BASE + 0xff; | 367 | omap2_mcspi4_resources[0].start = OMAP4_MCSPI4_BASE; |
367 | omap2_mcspi4_resources[0].start = OMAP4_MCSPI4_BASE; | 368 | omap2_mcspi4_resources[0].end = OMAP4_MCSPI4_BASE + 0xff; |
368 | omap2_mcspi4_resources[0].end = OMAP4_MCSPI4_BASE + 0xff; | 369 | } |
369 | } | 370 | #else |
370 | platform_device_register(&omap2_mcspi1); | 371 | static inline void omap4_mcspi_fixup(void) |
371 | platform_device_register(&omap2_mcspi2); | 372 | { |
373 | } | ||
374 | #endif | ||
375 | |||
372 | #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) || \ | 376 | #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) || \ |
373 | defined(CONFIG_ARCH_OMAP4) | 377 | defined(CONFIG_ARCH_OMAP4) |
374 | if (cpu_is_omap2430() || cpu_is_omap343x() || cpu_is_omap44xx()) | 378 | static inline void omap2_mcspi3_init(void) |
375 | platform_device_register(&omap2_mcspi3); | 379 | { |
380 | platform_device_register(&omap2_mcspi3); | ||
381 | } | ||
382 | #else | ||
383 | static inline void omap2_mcspi3_init(void) | ||
384 | { | ||
385 | } | ||
376 | #endif | 386 | #endif |
387 | |||
377 | #if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4) | 388 | #if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4) |
378 | if (cpu_is_omap343x() || cpu_is_omap44xx()) | 389 | static inline void omap2_mcspi4_init(void) |
379 | platform_device_register(&omap2_mcspi4); | 390 | { |
391 | platform_device_register(&omap2_mcspi4); | ||
392 | } | ||
393 | #else | ||
394 | static inline void omap2_mcspi4_init(void) | ||
395 | { | ||
396 | } | ||
380 | #endif | 397 | #endif |
398 | |||
399 | static void omap_init_mcspi(void) | ||
400 | { | ||
401 | if (cpu_is_omap44xx()) | ||
402 | omap4_mcspi_fixup(); | ||
403 | |||
404 | platform_device_register(&omap2_mcspi1); | ||
405 | platform_device_register(&omap2_mcspi2); | ||
406 | |||
407 | if (cpu_is_omap2430() || cpu_is_omap343x() || cpu_is_omap44xx()) | ||
408 | omap2_mcspi3_init(); | ||
409 | |||
410 | if (cpu_is_omap343x() || cpu_is_omap44xx()) | ||
411 | omap2_mcspi4_init(); | ||
381 | } | 412 | } |
382 | 413 | ||
383 | #else | 414 | #else |
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 7574b6f20e8e..e3a3bad1d84f 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -294,10 +294,10 @@ void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0, | |||
294 | else if (cpu_is_omap34xx()) | 294 | else if (cpu_is_omap34xx()) |
295 | hwmods = omap34xx_hwmods; | 295 | hwmods = omap34xx_hwmods; |
296 | 296 | ||
297 | omap_hwmod_init(hwmods); | ||
298 | omap2_mux_init(); | ||
299 | #ifndef CONFIG_ARCH_OMAP4 /* FIXME: Remove this once the clkdev is ready */ | 297 | #ifndef CONFIG_ARCH_OMAP4 /* FIXME: Remove this once the clkdev is ready */ |
300 | /* The OPP tables have to be registered before a clk init */ | 298 | /* The OPP tables have to be registered before a clk init */ |
299 | omap_hwmod_init(hwmods); | ||
300 | omap2_mux_init(); | ||
301 | omap_pm_if_early_init(mpu_opps, dsp_opps, l3_opps); | 301 | omap_pm_if_early_init(mpu_opps, dsp_opps, l3_opps); |
302 | pwrdm_init(powerdomains_omap); | 302 | pwrdm_init(powerdomains_omap); |
303 | clkdm_init(clockdomains_omap, clkdm_pwrdm_autodeps); | 303 | clkdm_init(clockdomains_omap, clkdm_pwrdm_autodeps); |
diff --git a/arch/arm/mach-omap2/iommu2.c b/arch/arm/mach-omap2/iommu2.c index 2d9b5cc981cd..4a0e1cd5c1f4 100644 --- a/arch/arm/mach-omap2/iommu2.c +++ b/arch/arm/mach-omap2/iommu2.c | |||
@@ -79,7 +79,7 @@ static int omap2_iommu_enable(struct iommu *obj) | |||
79 | l = iommu_read_reg(obj, MMU_SYSSTATUS); | 79 | l = iommu_read_reg(obj, MMU_SYSSTATUS); |
80 | if (l & MMU_SYS_RESETDONE) | 80 | if (l & MMU_SYS_RESETDONE) |
81 | break; | 81 | break; |
82 | } while (time_after(jiffies, timeout)); | 82 | } while (!time_after(jiffies, timeout)); |
83 | 83 | ||
84 | if (!(l & MMU_SYS_RESETDONE)) { | 84 | if (!(l & MMU_SYS_RESETDONE)) { |
85 | dev_err(obj->dev, "can't take mmu out of reset\n"); | 85 | dev_err(obj->dev, "can't take mmu out of reset\n"); |
diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c index 6f71f3730c97..c035ad3426d0 100644 --- a/arch/arm/mach-omap2/mailbox.c +++ b/arch/arm/mach-omap2/mailbox.c | |||
@@ -30,6 +30,14 @@ | |||
30 | #define MAILBOX_IRQ_NEWMSG(u) (1 << (2 * (u))) | 30 | #define MAILBOX_IRQ_NEWMSG(u) (1 << (2 * (u))) |
31 | #define MAILBOX_IRQ_NOTFULL(u) (1 << (2 * (u) + 1)) | 31 | #define MAILBOX_IRQ_NOTFULL(u) (1 << (2 * (u) + 1)) |
32 | 32 | ||
33 | /* SYSCONFIG: register bit definition */ | ||
34 | #define AUTOIDLE (1 << 0) | ||
35 | #define SOFTRESET (1 << 1) | ||
36 | #define SMARTIDLE (2 << 3) | ||
37 | |||
38 | /* SYSSTATUS: register bit definition */ | ||
39 | #define RESETDONE (1 << 0) | ||
40 | |||
33 | #define MBOX_REG_SIZE 0x120 | 41 | #define MBOX_REG_SIZE 0x120 |
34 | #define MBOX_NR_REGS (MBOX_REG_SIZE / sizeof(u32)) | 42 | #define MBOX_NR_REGS (MBOX_REG_SIZE / sizeof(u32)) |
35 | 43 | ||
@@ -69,21 +77,33 @@ static inline void mbox_write_reg(u32 val, size_t ofs) | |||
69 | /* Mailbox H/W preparations */ | 77 | /* Mailbox H/W preparations */ |
70 | static int omap2_mbox_startup(struct omap_mbox *mbox) | 78 | static int omap2_mbox_startup(struct omap_mbox *mbox) |
71 | { | 79 | { |
72 | unsigned int l; | 80 | u32 l; |
81 | unsigned long timeout; | ||
73 | 82 | ||
74 | mbox_ick_handle = clk_get(NULL, "mailboxes_ick"); | 83 | mbox_ick_handle = clk_get(NULL, "mailboxes_ick"); |
75 | if (IS_ERR(mbox_ick_handle)) { | 84 | if (IS_ERR(mbox_ick_handle)) { |
76 | printk("Could not get mailboxes_ick\n"); | 85 | pr_err("Can't get mailboxes_ick\n"); |
77 | return -ENODEV; | 86 | return -ENODEV; |
78 | } | 87 | } |
79 | clk_enable(mbox_ick_handle); | 88 | clk_enable(mbox_ick_handle); |
80 | 89 | ||
90 | mbox_write_reg(SOFTRESET, MAILBOX_SYSCONFIG); | ||
91 | timeout = jiffies + msecs_to_jiffies(20); | ||
92 | do { | ||
93 | l = mbox_read_reg(MAILBOX_SYSSTATUS); | ||
94 | if (l & RESETDONE) | ||
95 | break; | ||
96 | } while (!time_after(jiffies, timeout)); | ||
97 | |||
98 | if (!(l & RESETDONE)) { | ||
99 | pr_err("Can't take mmu out of reset\n"); | ||
100 | return -ENODEV; | ||
101 | } | ||
102 | |||
81 | l = mbox_read_reg(MAILBOX_REVISION); | 103 | l = mbox_read_reg(MAILBOX_REVISION); |
82 | pr_info("omap mailbox rev %d.%d\n", (l & 0xf0) >> 4, (l & 0x0f)); | 104 | pr_info("omap mailbox rev %d.%d\n", (l & 0xf0) >> 4, (l & 0x0f)); |
83 | 105 | ||
84 | /* set smart-idle & autoidle */ | 106 | l = SMARTIDLE | AUTOIDLE; |
85 | l = mbox_read_reg(MAILBOX_SYSCONFIG); | ||
86 | l |= 0x00000011; | ||
87 | mbox_write_reg(l, MAILBOX_SYSCONFIG); | 107 | mbox_write_reg(l, MAILBOX_SYSCONFIG); |
88 | 108 | ||
89 | omap2_mbox_enable_irq(mbox, IRQ_RX); | 109 | omap2_mbox_enable_irq(mbox, IRQ_RX); |
@@ -156,6 +176,9 @@ static void omap2_mbox_ack_irq(struct omap_mbox *mbox, | |||
156 | u32 bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; | 176 | u32 bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit; |
157 | 177 | ||
158 | mbox_write_reg(bit, p->irqstatus); | 178 | mbox_write_reg(bit, p->irqstatus); |
179 | |||
180 | /* Flush posted write for irq status to avoid spurious interrupts */ | ||
181 | mbox_read_reg(p->irqstatus); | ||
159 | } | 182 | } |
160 | 183 | ||
161 | static int omap2_mbox_is_irq(struct omap_mbox *mbox, | 184 | static int omap2_mbox_is_irq(struct omap_mbox *mbox, |
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index 2daa595aaff4..b5fac32aae70 100644 --- a/arch/arm/mach-omap2/mux.c +++ b/arch/arm/mach-omap2/mux.c | |||
@@ -460,6 +460,8 @@ MUX_CFG_34XX("AF26_34XX_GPIO0", 0x1e0, | |||
460 | OMAP34XX_MUX_MODE4 | OMAP34XX_PIN_INPUT) | 460 | OMAP34XX_MUX_MODE4 | OMAP34XX_PIN_INPUT) |
461 | MUX_CFG_34XX("AF22_34XX_GPIO9", 0xa18, | 461 | MUX_CFG_34XX("AF22_34XX_GPIO9", 0xa18, |
462 | OMAP34XX_MUX_MODE4 | OMAP34XX_PIN_INPUT) | 462 | OMAP34XX_MUX_MODE4 | OMAP34XX_PIN_INPUT) |
463 | MUX_CFG_34XX("AG9_34XX_GPIO23", 0x5ee, | ||
464 | OMAP34XX_MUX_MODE4 | OMAP34XX_PIN_INPUT) | ||
463 | MUX_CFG_34XX("AH8_34XX_GPIO29", 0x5fa, | 465 | MUX_CFG_34XX("AH8_34XX_GPIO29", 0x5fa, |
464 | OMAP34XX_MUX_MODE4 | OMAP34XX_PIN_INPUT) | 466 | OMAP34XX_MUX_MODE4 | OMAP34XX_PIN_INPUT) |
465 | MUX_CFG_34XX("U8_34XX_GPIO54_OUT", 0x0b4, | 467 | MUX_CFG_34XX("U8_34XX_GPIO54_OUT", 0x0b4, |
@@ -472,6 +474,8 @@ MUX_CFG_34XX("G25_34XX_GPIO86_OUT", 0x0fc, | |||
472 | OMAP34XX_MUX_MODE4 | OMAP34XX_PIN_OUTPUT) | 474 | OMAP34XX_MUX_MODE4 | OMAP34XX_PIN_OUTPUT) |
473 | MUX_CFG_34XX("AG4_34XX_GPIO134_OUT", 0x160, | 475 | MUX_CFG_34XX("AG4_34XX_GPIO134_OUT", 0x160, |
474 | OMAP34XX_MUX_MODE4 | OMAP34XX_PIN_OUTPUT) | 476 | OMAP34XX_MUX_MODE4 | OMAP34XX_PIN_OUTPUT) |
477 | MUX_CFG_34XX("AF4_34XX_GPIO135_OUT", 0x162, | ||
478 | OMAP34XX_MUX_MODE4 | OMAP34XX_PIN_OUTPUT) | ||
475 | MUX_CFG_34XX("AE4_34XX_GPIO136_OUT", 0x164, | 479 | MUX_CFG_34XX("AE4_34XX_GPIO136_OUT", 0x164, |
476 | OMAP34XX_MUX_MODE4 | OMAP34XX_PIN_OUTPUT) | 480 | OMAP34XX_MUX_MODE4 | OMAP34XX_PIN_OUTPUT) |
477 | MUX_CFG_34XX("AF6_34XX_GPIO140_UP", 0x16c, | 481 | MUX_CFG_34XX("AF6_34XX_GPIO140_UP", 0x16c, |
diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c index 1b4c1600f8d8..2fc4d6abbd0a 100644 --- a/arch/arm/mach-omap2/pm-debug.c +++ b/arch/arm/mach-omap2/pm-debug.c | |||
@@ -541,7 +541,7 @@ static int __init pm_dbg_init(void) | |||
541 | printk(KERN_ERR "%s: only OMAP3 supported\n", __func__); | 541 | printk(KERN_ERR "%s: only OMAP3 supported\n", __func__); |
542 | return -ENODEV; | 542 | return -ENODEV; |
543 | } | 543 | } |
544 | 544 | ||
545 | d = debugfs_create_dir("pm_debug", NULL); | 545 | d = debugfs_create_dir("pm_debug", NULL); |
546 | if (IS_ERR(d)) | 546 | if (IS_ERR(d)) |
547 | return PTR_ERR(d); | 547 | return PTR_ERR(d); |
@@ -551,7 +551,7 @@ static int __init pm_dbg_init(void) | |||
551 | (void) debugfs_create_file("time", S_IRUGO, | 551 | (void) debugfs_create_file("time", S_IRUGO, |
552 | d, (void *)DEBUG_FILE_TIMERS, &debug_fops); | 552 | d, (void *)DEBUG_FILE_TIMERS, &debug_fops); |
553 | 553 | ||
554 | pwrdm_for_each(pwrdms_setup, (void *)d); | 554 | pwrdm_for_each_nolock(pwrdms_setup, (void *)d); |
555 | 555 | ||
556 | pm_dbg_dir = debugfs_create_dir("registers", d); | 556 | pm_dbg_dir = debugfs_create_dir("registers", d); |
557 | if (IS_ERR(pm_dbg_dir)) | 557 | if (IS_ERR(pm_dbg_dir)) |
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index 0ff5a6c53aa0..378c2f618358 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c | |||
@@ -51,97 +51,112 @@ static void (*_omap_sram_idle)(u32 *addr, int save_state); | |||
51 | 51 | ||
52 | static struct powerdomain *mpu_pwrdm; | 52 | static struct powerdomain *mpu_pwrdm; |
53 | 53 | ||
54 | /* PRCM Interrupt Handler for wakeups */ | 54 | /* |
55 | static irqreturn_t prcm_interrupt_handler (int irq, void *dev_id) | 55 | * PRCM Interrupt Handler Helper Function |
56 | * | ||
57 | * The purpose of this function is to clear any wake-up events latched | ||
58 | * in the PRCM PM_WKST_x registers. It is possible that a wake-up event | ||
59 | * may occur whilst attempting to clear a PM_WKST_x register and thus | ||
60 | * set another bit in this register. A while loop is used to ensure | ||
61 | * that any peripheral wake-up events occurring while attempting to | ||
62 | * clear the PM_WKST_x are detected and cleared. | ||
63 | */ | ||
64 | static int prcm_clear_mod_irqs(s16 module, u8 regs) | ||
56 | { | 65 | { |
57 | u32 wkst, irqstatus_mpu; | 66 | u32 wkst, fclk, iclk, clken; |
58 | u32 fclk, iclk; | 67 | u16 wkst_off = (regs == 3) ? OMAP3430ES2_PM_WKST3 : PM_WKST1; |
59 | 68 | u16 fclk_off = (regs == 3) ? OMAP3430ES2_CM_FCLKEN3 : CM_FCLKEN1; | |
60 | /* WKUP */ | 69 | u16 iclk_off = (regs == 3) ? CM_ICLKEN3 : CM_ICLKEN1; |
61 | wkst = prm_read_mod_reg(WKUP_MOD, PM_WKST); | 70 | u16 grpsel_off = (regs == 3) ? |
71 | OMAP3430ES2_PM_MPUGRPSEL3 : OMAP3430_PM_MPUGRPSEL; | ||
72 | int c = 0; | ||
73 | |||
74 | wkst = prm_read_mod_reg(module, wkst_off); | ||
75 | wkst &= prm_read_mod_reg(module, grpsel_off); | ||
62 | if (wkst) { | 76 | if (wkst) { |
63 | iclk = cm_read_mod_reg(WKUP_MOD, CM_ICLKEN); | 77 | iclk = cm_read_mod_reg(module, iclk_off); |
64 | fclk = cm_read_mod_reg(WKUP_MOD, CM_FCLKEN); | 78 | fclk = cm_read_mod_reg(module, fclk_off); |
65 | cm_set_mod_reg_bits(wkst, WKUP_MOD, CM_ICLKEN); | 79 | while (wkst) { |
66 | cm_set_mod_reg_bits(wkst, WKUP_MOD, CM_FCLKEN); | 80 | clken = wkst; |
67 | prm_write_mod_reg(wkst, WKUP_MOD, PM_WKST); | 81 | cm_set_mod_reg_bits(clken, module, iclk_off); |
68 | while (prm_read_mod_reg(WKUP_MOD, PM_WKST)) | 82 | /* |
69 | cpu_relax(); | 83 | * For USBHOST, we don't know whether HOST1 or |
70 | cm_write_mod_reg(iclk, WKUP_MOD, CM_ICLKEN); | 84 | * HOST2 woke us up, so enable both f-clocks |
71 | cm_write_mod_reg(fclk, WKUP_MOD, CM_FCLKEN); | 85 | */ |
86 | if (module == OMAP3430ES2_USBHOST_MOD) | ||
87 | clken |= 1 << OMAP3430ES2_EN_USBHOST2_SHIFT; | ||
88 | cm_set_mod_reg_bits(clken, module, fclk_off); | ||
89 | prm_write_mod_reg(wkst, module, wkst_off); | ||
90 | wkst = prm_read_mod_reg(module, wkst_off); | ||
91 | c++; | ||
92 | } | ||
93 | cm_write_mod_reg(iclk, module, iclk_off); | ||
94 | cm_write_mod_reg(fclk, module, fclk_off); | ||
72 | } | 95 | } |
73 | 96 | ||
74 | /* CORE */ | 97 | return c; |
75 | wkst = prm_read_mod_reg(CORE_MOD, PM_WKST1); | 98 | } |
76 | if (wkst) { | ||
77 | iclk = cm_read_mod_reg(CORE_MOD, CM_ICLKEN1); | ||
78 | fclk = cm_read_mod_reg(CORE_MOD, CM_FCLKEN1); | ||
79 | cm_set_mod_reg_bits(wkst, CORE_MOD, CM_ICLKEN1); | ||
80 | cm_set_mod_reg_bits(wkst, CORE_MOD, CM_FCLKEN1); | ||
81 | prm_write_mod_reg(wkst, CORE_MOD, PM_WKST1); | ||
82 | while (prm_read_mod_reg(CORE_MOD, PM_WKST1)) | ||
83 | cpu_relax(); | ||
84 | cm_write_mod_reg(iclk, CORE_MOD, CM_ICLKEN1); | ||
85 | cm_write_mod_reg(fclk, CORE_MOD, CM_FCLKEN1); | ||
86 | } | ||
87 | wkst = prm_read_mod_reg(CORE_MOD, OMAP3430ES2_PM_WKST3); | ||
88 | if (wkst) { | ||
89 | iclk = cm_read_mod_reg(CORE_MOD, CM_ICLKEN3); | ||
90 | fclk = cm_read_mod_reg(CORE_MOD, OMAP3430ES2_CM_FCLKEN3); | ||
91 | cm_set_mod_reg_bits(wkst, CORE_MOD, CM_ICLKEN3); | ||
92 | cm_set_mod_reg_bits(wkst, CORE_MOD, OMAP3430ES2_CM_FCLKEN3); | ||
93 | prm_write_mod_reg(wkst, CORE_MOD, OMAP3430ES2_PM_WKST3); | ||
94 | while (prm_read_mod_reg(CORE_MOD, OMAP3430ES2_PM_WKST3)) | ||
95 | cpu_relax(); | ||
96 | cm_write_mod_reg(iclk, CORE_MOD, CM_ICLKEN3); | ||
97 | cm_write_mod_reg(fclk, CORE_MOD, OMAP3430ES2_CM_FCLKEN3); | ||
98 | } | ||
99 | 99 | ||
100 | /* PER */ | 100 | static int _prcm_int_handle_wakeup(void) |
101 | wkst = prm_read_mod_reg(OMAP3430_PER_MOD, PM_WKST); | 101 | { |
102 | if (wkst) { | 102 | int c; |
103 | iclk = cm_read_mod_reg(OMAP3430_PER_MOD, CM_ICLKEN); | ||
104 | fclk = cm_read_mod_reg(OMAP3430_PER_MOD, CM_FCLKEN); | ||
105 | cm_set_mod_reg_bits(wkst, OMAP3430_PER_MOD, CM_ICLKEN); | ||
106 | cm_set_mod_reg_bits(wkst, OMAP3430_PER_MOD, CM_FCLKEN); | ||
107 | prm_write_mod_reg(wkst, OMAP3430_PER_MOD, PM_WKST); | ||
108 | while (prm_read_mod_reg(OMAP3430_PER_MOD, PM_WKST)) | ||
109 | cpu_relax(); | ||
110 | cm_write_mod_reg(iclk, OMAP3430_PER_MOD, CM_ICLKEN); | ||
111 | cm_write_mod_reg(fclk, OMAP3430_PER_MOD, CM_FCLKEN); | ||
112 | } | ||
113 | 103 | ||
104 | c = prcm_clear_mod_irqs(WKUP_MOD, 1); | ||
105 | c += prcm_clear_mod_irqs(CORE_MOD, 1); | ||
106 | c += prcm_clear_mod_irqs(OMAP3430_PER_MOD, 1); | ||
114 | if (omap_rev() > OMAP3430_REV_ES1_0) { | 107 | if (omap_rev() > OMAP3430_REV_ES1_0) { |
115 | /* USBHOST */ | 108 | c += prcm_clear_mod_irqs(CORE_MOD, 3); |
116 | wkst = prm_read_mod_reg(OMAP3430ES2_USBHOST_MOD, PM_WKST); | 109 | c += prcm_clear_mod_irqs(OMAP3430ES2_USBHOST_MOD, 1); |
117 | if (wkst) { | ||
118 | iclk = cm_read_mod_reg(OMAP3430ES2_USBHOST_MOD, | ||
119 | CM_ICLKEN); | ||
120 | fclk = cm_read_mod_reg(OMAP3430ES2_USBHOST_MOD, | ||
121 | CM_FCLKEN); | ||
122 | cm_set_mod_reg_bits(wkst, OMAP3430ES2_USBHOST_MOD, | ||
123 | CM_ICLKEN); | ||
124 | cm_set_mod_reg_bits(wkst, OMAP3430ES2_USBHOST_MOD, | ||
125 | CM_FCLKEN); | ||
126 | prm_write_mod_reg(wkst, OMAP3430ES2_USBHOST_MOD, | ||
127 | PM_WKST); | ||
128 | while (prm_read_mod_reg(OMAP3430ES2_USBHOST_MOD, | ||
129 | PM_WKST)) | ||
130 | cpu_relax(); | ||
131 | cm_write_mod_reg(iclk, OMAP3430ES2_USBHOST_MOD, | ||
132 | CM_ICLKEN); | ||
133 | cm_write_mod_reg(fclk, OMAP3430ES2_USBHOST_MOD, | ||
134 | CM_FCLKEN); | ||
135 | } | ||
136 | } | 110 | } |
137 | 111 | ||
138 | irqstatus_mpu = prm_read_mod_reg(OCP_MOD, | 112 | return c; |
139 | OMAP3_PRM_IRQSTATUS_MPU_OFFSET); | 113 | } |
140 | prm_write_mod_reg(irqstatus_mpu, OCP_MOD, | 114 | |
141 | OMAP3_PRM_IRQSTATUS_MPU_OFFSET); | 115 | /* |
116 | * PRCM Interrupt Handler | ||
117 | * | ||
118 | * The PRM_IRQSTATUS_MPU register indicates if there are any pending | ||
119 | * interrupts from the PRCM for the MPU. These bits must be cleared in | ||
120 | * order to clear the PRCM interrupt. The PRCM interrupt handler is | ||
121 | * implemented to simply clear the PRM_IRQSTATUS_MPU in order to clear | ||
122 | * the PRCM interrupt. Please note that bit 0 of the PRM_IRQSTATUS_MPU | ||
123 | * register indicates that a wake-up event is pending for the MPU and | ||
124 | * this bit can only be cleared if the all the wake-up events latched | ||
125 | * in the various PM_WKST_x registers have been cleared. The interrupt | ||
126 | * handler is implemented using a do-while loop so that if a wake-up | ||
127 | * event occurred during the processing of the prcm interrupt handler | ||
128 | * (setting a bit in the corresponding PM_WKST_x register and thus | ||
129 | * preventing us from clearing bit 0 of the PRM_IRQSTATUS_MPU register) | ||
130 | * this would be handled. | ||
131 | */ | ||
132 | static irqreturn_t prcm_interrupt_handler (int irq, void *dev_id) | ||
133 | { | ||
134 | u32 irqstatus_mpu; | ||
135 | int c = 0; | ||
136 | |||
137 | do { | ||
138 | irqstatus_mpu = prm_read_mod_reg(OCP_MOD, | ||
139 | OMAP3_PRM_IRQSTATUS_MPU_OFFSET); | ||
140 | |||
141 | if (irqstatus_mpu & (OMAP3430_WKUP_ST | OMAP3430_IO_ST)) { | ||
142 | c = _prcm_int_handle_wakeup(); | ||
143 | |||
144 | /* | ||
145 | * Is the MPU PRCM interrupt handler racing with the | ||
146 | * IVA2 PRCM interrupt handler ? | ||
147 | */ | ||
148 | WARN(c == 0, "prcm: WARNING: PRCM indicated MPU wakeup " | ||
149 | "but no wakeup sources are marked\n"); | ||
150 | } else { | ||
151 | /* XXX we need to expand our PRCM interrupt handler */ | ||
152 | WARN(1, "prcm: WARNING: PRCM interrupt received, but " | ||
153 | "no code to handle it (%08x)\n", irqstatus_mpu); | ||
154 | } | ||
155 | |||
156 | prm_write_mod_reg(irqstatus_mpu, OCP_MOD, | ||
157 | OMAP3_PRM_IRQSTATUS_MPU_OFFSET); | ||
142 | 158 | ||
143 | while (prm_read_mod_reg(OCP_MOD, OMAP3_PRM_IRQSTATUS_MPU_OFFSET)) | 159 | } while (prm_read_mod_reg(OCP_MOD, OMAP3_PRM_IRQSTATUS_MPU_OFFSET)); |
144 | cpu_relax(); | ||
145 | 160 | ||
146 | return IRQ_HANDLED; | 161 | return IRQ_HANDLED; |
147 | } | 162 | } |
@@ -624,6 +639,16 @@ static void __init prcm_setup_regs(void) | |||
624 | prm_write_mod_reg(OMAP3430_IO_EN | OMAP3430_WKUP_EN, | 639 | prm_write_mod_reg(OMAP3430_IO_EN | OMAP3430_WKUP_EN, |
625 | OCP_MOD, OMAP3_PRM_IRQENABLE_MPU_OFFSET); | 640 | OCP_MOD, OMAP3_PRM_IRQENABLE_MPU_OFFSET); |
626 | 641 | ||
642 | /* Enable GPIO wakeups in PER */ | ||
643 | prm_write_mod_reg(OMAP3430_EN_GPIO2 | OMAP3430_EN_GPIO3 | | ||
644 | OMAP3430_EN_GPIO4 | OMAP3430_EN_GPIO5 | | ||
645 | OMAP3430_EN_GPIO6, OMAP3430_PER_MOD, PM_WKEN); | ||
646 | /* and allow them to wake up MPU */ | ||
647 | prm_write_mod_reg(OMAP3430_GRPSEL_GPIO2 | OMAP3430_EN_GPIO3 | | ||
648 | OMAP3430_GRPSEL_GPIO4 | OMAP3430_EN_GPIO5 | | ||
649 | OMAP3430_GRPSEL_GPIO6, | ||
650 | OMAP3430_PER_MOD, OMAP3430_PM_MPUGRPSEL); | ||
651 | |||
627 | /* Don't attach IVA interrupts */ | 652 | /* Don't attach IVA interrupts */ |
628 | prm_write_mod_reg(0, WKUP_MOD, OMAP3430_PM_IVAGRPSEL); | 653 | prm_write_mod_reg(0, WKUP_MOD, OMAP3430_PM_IVAGRPSEL); |
629 | prm_write_mod_reg(0, CORE_MOD, OMAP3430_PM_IVAGRPSEL1); | 654 | prm_write_mod_reg(0, CORE_MOD, OMAP3430_PM_IVAGRPSEL1); |
diff --git a/arch/arm/mach-omap2/powerdomain.c b/arch/arm/mach-omap2/powerdomain.c index 2594cbff3947..f00289abd30f 100644 --- a/arch/arm/mach-omap2/powerdomain.c +++ b/arch/arm/mach-omap2/powerdomain.c | |||
@@ -273,35 +273,50 @@ struct powerdomain *pwrdm_lookup(const char *name) | |||
273 | } | 273 | } |
274 | 274 | ||
275 | /** | 275 | /** |
276 | * pwrdm_for_each - call function on each registered clockdomain | 276 | * pwrdm_for_each_nolock - call function on each registered clockdomain |
277 | * @fn: callback function * | 277 | * @fn: callback function * |
278 | * | 278 | * |
279 | * Call the supplied function for each registered powerdomain. The | 279 | * Call the supplied function for each registered powerdomain. The |
280 | * callback function can return anything but 0 to bail out early from | 280 | * callback function can return anything but 0 to bail out early from |
281 | * the iterator. The callback function is called with the pwrdm_rwlock | 281 | * the iterator. Returns the last return value of the callback function, which |
282 | * held for reading, so no powerdomain structure manipulation | 282 | * should be 0 for success or anything else to indicate failure; or -EINVAL if |
283 | * functions should be called from the callback, although hardware | 283 | * the function pointer is null. |
284 | * powerdomain control functions are fine. Returns the last return | ||
285 | * value of the callback function, which should be 0 for success or | ||
286 | * anything else to indicate failure; or -EINVAL if the function | ||
287 | * pointer is null. | ||
288 | */ | 284 | */ |
289 | int pwrdm_for_each(int (*fn)(struct powerdomain *pwrdm, void *user), | 285 | int pwrdm_for_each_nolock(int (*fn)(struct powerdomain *pwrdm, void *user), |
290 | void *user) | 286 | void *user) |
291 | { | 287 | { |
292 | struct powerdomain *temp_pwrdm; | 288 | struct powerdomain *temp_pwrdm; |
293 | unsigned long flags; | ||
294 | int ret = 0; | 289 | int ret = 0; |
295 | 290 | ||
296 | if (!fn) | 291 | if (!fn) |
297 | return -EINVAL; | 292 | return -EINVAL; |
298 | 293 | ||
299 | read_lock_irqsave(&pwrdm_rwlock, flags); | ||
300 | list_for_each_entry(temp_pwrdm, &pwrdm_list, node) { | 294 | list_for_each_entry(temp_pwrdm, &pwrdm_list, node) { |
301 | ret = (*fn)(temp_pwrdm, user); | 295 | ret = (*fn)(temp_pwrdm, user); |
302 | if (ret) | 296 | if (ret) |
303 | break; | 297 | break; |
304 | } | 298 | } |
299 | |||
300 | return ret; | ||
301 | } | ||
302 | |||
303 | /** | ||
304 | * pwrdm_for_each - call function on each registered clockdomain | ||
305 | * @fn: callback function * | ||
306 | * | ||
307 | * This function is the same as 'pwrdm_for_each_nolock()', but keeps the | ||
308 | * &pwrdm_rwlock locked for reading, so no powerdomain structure manipulation | ||
309 | * functions should be called from the callback, although hardware powerdomain | ||
310 | * control functions are fine. | ||
311 | */ | ||
312 | int pwrdm_for_each(int (*fn)(struct powerdomain *pwrdm, void *user), | ||
313 | void *user) | ||
314 | { | ||
315 | unsigned long flags; | ||
316 | int ret; | ||
317 | |||
318 | read_lock_irqsave(&pwrdm_rwlock, flags); | ||
319 | ret = pwrdm_for_each_nolock(fn, user); | ||
305 | read_unlock_irqrestore(&pwrdm_rwlock, flags); | 320 | read_unlock_irqrestore(&pwrdm_rwlock, flags); |
306 | 321 | ||
307 | return ret; | 322 | return ret; |
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 3a529c77daa8..ae2186892c85 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c | |||
@@ -110,7 +110,7 @@ static struct plat_serial8250_port serial_platform_data2[] = { | |||
110 | .uartclk = OMAP24XX_BASE_BAUD * 16, | 110 | .uartclk = OMAP24XX_BASE_BAUD * 16, |
111 | }, { | 111 | }, { |
112 | #ifdef CONFIG_ARCH_OMAP4 | 112 | #ifdef CONFIG_ARCH_OMAP4 |
113 | .membase = IO_ADDRESS(OMAP_UART4_BASE), | 113 | .membase = OMAP2_IO_ADDRESS(OMAP_UART4_BASE), |
114 | .mapbase = OMAP_UART4_BASE, | 114 | .mapbase = OMAP_UART4_BASE, |
115 | .irq = 70, | 115 | .irq = 70, |
116 | .flags = UPF_BOOT_AUTOCONF, | 116 | .flags = UPF_BOOT_AUTOCONF, |
@@ -126,7 +126,7 @@ static struct plat_serial8250_port serial_platform_data2[] = { | |||
126 | #ifdef CONFIG_ARCH_OMAP4 | 126 | #ifdef CONFIG_ARCH_OMAP4 |
127 | static struct plat_serial8250_port serial_platform_data3[] = { | 127 | static struct plat_serial8250_port serial_platform_data3[] = { |
128 | { | 128 | { |
129 | .membase = IO_ADDRESS(OMAP_UART4_BASE), | 129 | .membase = OMAP2_IO_ADDRESS(OMAP_UART4_BASE), |
130 | .mapbase = OMAP_UART4_BASE, | 130 | .mapbase = OMAP_UART4_BASE, |
131 | .irq = 70, | 131 | .irq = 70, |
132 | .flags = UPF_BOOT_AUTOCONF, | 132 | .flags = UPF_BOOT_AUTOCONF, |
@@ -579,7 +579,7 @@ static struct omap_uart_state omap_uart[OMAP_MAX_NR_PORTS] = { | |||
579 | { | 579 | { |
580 | .pdev = { | 580 | .pdev = { |
581 | .name = "serial8250", | 581 | .name = "serial8250", |
582 | .id = 3 | 582 | .id = 3, |
583 | .dev = { | 583 | .dev = { |
584 | .platform_data = serial_platform_data3, | 584 | .platform_data = serial_platform_data3, |
585 | }, | 585 | }, |
diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig index 89c992b8f75b..a6f8eab14ba5 100644 --- a/arch/arm/mach-pxa/Kconfig +++ b/arch/arm/mach-pxa/Kconfig | |||
@@ -21,6 +21,11 @@ config CPU_PXA930 | |||
21 | 21 | ||
22 | config CPU_PXA935 | 22 | config CPU_PXA935 |
23 | bool "PXA935 (codename Tavor-P65)" | 23 | bool "PXA935 (codename Tavor-P65)" |
24 | select CPU_PXA930 | ||
25 | |||
26 | config CPU_PXA950 | ||
27 | bool "PXA950 (codename Tavor-PV2)" | ||
28 | select CPU_PXA930 | ||
24 | 29 | ||
25 | endmenu | 30 | endmenu |
26 | 31 | ||
@@ -79,6 +84,12 @@ config MACH_MP900C | |||
79 | bool "Nec Mobilepro 900/c" | 84 | bool "Nec Mobilepro 900/c" |
80 | select PXA25x | 85 | select PXA25x |
81 | 86 | ||
87 | config MACH_BALLOON3 | ||
88 | bool "Balloon 3 board" | ||
89 | select PXA27x | ||
90 | select IWMMXT | ||
91 | select PXA_HAVE_BOARD_IRQS | ||
92 | |||
82 | config ARCH_PXA_IDP | 93 | config ARCH_PXA_IDP |
83 | bool "Accelent Xscale IDP" | 94 | bool "Accelent Xscale IDP" |
84 | select PXA25x | 95 | select PXA25x |
@@ -371,6 +382,15 @@ config MACH_PALMTE2 | |||
371 | Say Y here if you intend to run this kernel on a Palm Tungsten|E2 | 382 | Say Y here if you intend to run this kernel on a Palm Tungsten|E2 |
372 | handheld computer. | 383 | handheld computer. |
373 | 384 | ||
385 | config MACH_PALMTC | ||
386 | bool "Palm Tungsten|C" | ||
387 | default y | ||
388 | depends on ARCH_PXA_PALM | ||
389 | select PXA25x | ||
390 | help | ||
391 | Say Y here if you intend to run this kernel on a Palm Tungsten|C | ||
392 | handheld computer. | ||
393 | |||
374 | config MACH_PALMT5 | 394 | config MACH_PALMT5 |
375 | bool "Palm Tungsten|T5" | 395 | bool "Palm Tungsten|T5" |
376 | default y | 396 | default y |
@@ -458,6 +478,7 @@ config PXA_EZX | |||
458 | select PXA27x | 478 | select PXA27x |
459 | select IWMMXT | 479 | select IWMMXT |
460 | select HAVE_PWM | 480 | select HAVE_PWM |
481 | select PXA_HAVE_BOARD_IRQS | ||
461 | 482 | ||
462 | config MACH_EZX_A780 | 483 | config MACH_EZX_A780 |
463 | bool "Motorola EZX A780" | 484 | bool "Motorola EZX A780" |
@@ -489,6 +510,21 @@ config MACH_EZX_E2 | |||
489 | default y | 510 | default y |
490 | depends on PXA_EZX | 511 | depends on PXA_EZX |
491 | 512 | ||
513 | config MACH_XCEP | ||
514 | bool "Iskratel Electronics XCEP" | ||
515 | select PXA25x | ||
516 | select MTD | ||
517 | select MTD_PARTITIONS | ||
518 | select MTD_PHYSMAP | ||
519 | select MTD_CFI_INTELEXT | ||
520 | select MTD_CFI | ||
521 | select MTD_CHAR | ||
522 | select SMC91X | ||
523 | select PXA_SSP | ||
524 | help | ||
525 | PXA255 based Single Board Computer with SMC 91C111 ethernet chip and 64 MB of flash. | ||
526 | Tuned for usage in Libera instruments for particle accelerators. | ||
527 | |||
492 | endmenu | 528 | endmenu |
493 | 529 | ||
494 | config PXA25x | 530 | config PXA25x |
diff --git a/arch/arm/mach-pxa/Makefile b/arch/arm/mach-pxa/Makefile index d4c6122a342f..f10e152bfc27 100644 --- a/arch/arm/mach-pxa/Makefile +++ b/arch/arm/mach-pxa/Makefile | |||
@@ -31,6 +31,7 @@ obj-$(CONFIG_GUMSTIX_AM300EPD) += am300epd.o | |||
31 | obj-$(CONFIG_ARCH_LUBBOCK) += lubbock.o | 31 | obj-$(CONFIG_ARCH_LUBBOCK) += lubbock.o |
32 | obj-$(CONFIG_MACH_LOGICPD_PXA270) += lpd270.o | 32 | obj-$(CONFIG_MACH_LOGICPD_PXA270) += lpd270.o |
33 | obj-$(CONFIG_MACH_MAINSTONE) += mainstone.o | 33 | obj-$(CONFIG_MACH_MAINSTONE) += mainstone.o |
34 | obj-$(CONFIG_MACH_BALLOON3) += balloon3.o | ||
34 | obj-$(CONFIG_MACH_MP900C) += mp900.o | 35 | obj-$(CONFIG_MACH_MP900C) += mp900.o |
35 | obj-$(CONFIG_ARCH_PXA_IDP) += idp.o | 36 | obj-$(CONFIG_ARCH_PXA_IDP) += idp.o |
36 | obj-$(CONFIG_MACH_TRIZEPS4) += trizeps4.o | 37 | obj-$(CONFIG_MACH_TRIZEPS4) += trizeps4.o |
@@ -58,6 +59,7 @@ obj-$(CONFIG_MACH_E750) += e750.o | |||
58 | obj-$(CONFIG_MACH_E400) += e400.o | 59 | obj-$(CONFIG_MACH_E400) += e400.o |
59 | obj-$(CONFIG_MACH_E800) += e800.o | 60 | obj-$(CONFIG_MACH_E800) += e800.o |
60 | obj-$(CONFIG_MACH_PALMTE2) += palmte2.o | 61 | obj-$(CONFIG_MACH_PALMTE2) += palmte2.o |
62 | obj-$(CONFIG_MACH_PALMTC) += palmtc.o | ||
61 | obj-$(CONFIG_MACH_PALMT5) += palmt5.o | 63 | obj-$(CONFIG_MACH_PALMT5) += palmt5.o |
62 | obj-$(CONFIG_MACH_PALMTX) += palmtx.o | 64 | obj-$(CONFIG_MACH_PALMTX) += palmtx.o |
63 | obj-$(CONFIG_MACH_PALMLD) += palmld.o | 65 | obj-$(CONFIG_MACH_PALMLD) += palmld.o |
@@ -78,6 +80,8 @@ obj-$(CONFIG_MACH_ARMCORE) += cm-x2xx.o cm-x255.o cm-x270.o | |||
78 | obj-$(CONFIG_MACH_CM_X300) += cm-x300.o | 80 | obj-$(CONFIG_MACH_CM_X300) += cm-x300.o |
79 | obj-$(CONFIG_PXA_EZX) += ezx.o | 81 | obj-$(CONFIG_PXA_EZX) += ezx.o |
80 | 82 | ||
83 | obj-$(CONFIG_MACH_XCEP) += xcep.o | ||
84 | |||
81 | obj-$(CONFIG_MACH_INTELMOTE2) += imote2.o | 85 | obj-$(CONFIG_MACH_INTELMOTE2) += imote2.o |
82 | obj-$(CONFIG_MACH_STARGATE2) += stargate2.o | 86 | obj-$(CONFIG_MACH_STARGATE2) += stargate2.o |
83 | obj-$(CONFIG_MACH_CSB726) += csb726.o | 87 | obj-$(CONFIG_MACH_CSB726) += csb726.o |
diff --git a/arch/arm/mach-pxa/balloon3.c b/arch/arm/mach-pxa/balloon3.c new file mode 100644 index 000000000000..f23138b8fca3 --- /dev/null +++ b/arch/arm/mach-pxa/balloon3.c | |||
@@ -0,0 +1,361 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pxa/balloon3.c | ||
3 | * | ||
4 | * Support for Balloonboard.org Balloon3 board. | ||
5 | * | ||
6 | * Author: Nick Bane, Wookey, Jonathan McDowell | ||
7 | * Created: June, 2006 | ||
8 | * Copyright: Toby Churchill Ltd | ||
9 | * Derived from mainstone.c, by Nico Pitre | ||
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/init.h> | ||
17 | #include <linux/platform_device.h> | ||
18 | #include <linux/sysdev.h> | ||
19 | #include <linux/interrupt.h> | ||
20 | #include <linux/sched.h> | ||
21 | #include <linux/bitops.h> | ||
22 | #include <linux/fb.h> | ||
23 | #include <linux/gpio.h> | ||
24 | #include <linux/ioport.h> | ||
25 | #include <linux/mtd/mtd.h> | ||
26 | #include <linux/mtd/partitions.h> | ||
27 | #include <linux/types.h> | ||
28 | |||
29 | #include <asm/setup.h> | ||
30 | #include <asm/mach-types.h> | ||
31 | #include <asm/irq.h> | ||
32 | #include <asm/sizes.h> | ||
33 | |||
34 | #include <asm/mach/arch.h> | ||
35 | #include <asm/mach/map.h> | ||
36 | #include <asm/mach/irq.h> | ||
37 | #include <asm/mach/flash.h> | ||
38 | |||
39 | #include <mach/pxa27x.h> | ||
40 | #include <mach/balloon3.h> | ||
41 | #include <mach/audio.h> | ||
42 | #include <mach/pxafb.h> | ||
43 | #include <mach/mmc.h> | ||
44 | #include <mach/udc.h> | ||
45 | #include <mach/pxa27x-udc.h> | ||
46 | #include <mach/irda.h> | ||
47 | #include <mach/ohci.h> | ||
48 | |||
49 | #include <plat/i2c.h> | ||
50 | |||
51 | #include "generic.h" | ||
52 | #include "devices.h" | ||
53 | |||
54 | static unsigned long balloon3_irq_enabled; | ||
55 | |||
56 | static unsigned long balloon3_features_present = | ||
57 | (1 << BALLOON3_FEATURE_OHCI) | (1 << BALLOON3_FEATURE_CF) | | ||
58 | (1 << BALLOON3_FEATURE_AUDIO) | | ||
59 | (1 << BALLOON3_FEATURE_TOPPOLY); | ||
60 | |||
61 | int balloon3_has(enum balloon3_features feature) | ||
62 | { | ||
63 | return (balloon3_features_present & (1 << feature)) ? 1 : 0; | ||
64 | } | ||
65 | EXPORT_SYMBOL_GPL(balloon3_has); | ||
66 | |||
67 | int __init parse_balloon3_features(char *arg) | ||
68 | { | ||
69 | if (!arg) | ||
70 | return 0; | ||
71 | |||
72 | return strict_strtoul(arg, 0, &balloon3_features_present); | ||
73 | } | ||
74 | early_param("balloon3_features", parse_balloon3_features); | ||
75 | |||
76 | static void balloon3_mask_irq(unsigned int irq) | ||
77 | { | ||
78 | int balloon3_irq = (irq - BALLOON3_IRQ(0)); | ||
79 | balloon3_irq_enabled &= ~(1 << balloon3_irq); | ||
80 | __raw_writel(~balloon3_irq_enabled, BALLOON3_INT_CONTROL_REG); | ||
81 | } | ||
82 | |||
83 | static void balloon3_unmask_irq(unsigned int irq) | ||
84 | { | ||
85 | int balloon3_irq = (irq - BALLOON3_IRQ(0)); | ||
86 | balloon3_irq_enabled |= (1 << balloon3_irq); | ||
87 | __raw_writel(~balloon3_irq_enabled, BALLOON3_INT_CONTROL_REG); | ||
88 | } | ||
89 | |||
90 | static struct irq_chip balloon3_irq_chip = { | ||
91 | .name = "FPGA", | ||
92 | .ack = balloon3_mask_irq, | ||
93 | .mask = balloon3_mask_irq, | ||
94 | .unmask = balloon3_unmask_irq, | ||
95 | }; | ||
96 | |||
97 | static void balloon3_irq_handler(unsigned int irq, struct irq_desc *desc) | ||
98 | { | ||
99 | unsigned long pending = __raw_readl(BALLOON3_INT_CONTROL_REG) & | ||
100 | balloon3_irq_enabled; | ||
101 | |||
102 | do { | ||
103 | /* clear useless edge notification */ | ||
104 | if (desc->chip->ack) | ||
105 | desc->chip->ack(BALLOON3_AUX_NIRQ); | ||
106 | while (pending) { | ||
107 | irq = BALLOON3_IRQ(0) + __ffs(pending); | ||
108 | generic_handle_irq(irq); | ||
109 | pending &= pending - 1; | ||
110 | } | ||
111 | pending = __raw_readl(BALLOON3_INT_CONTROL_REG) & | ||
112 | balloon3_irq_enabled; | ||
113 | } while (pending); | ||
114 | } | ||
115 | |||
116 | static void __init balloon3_init_irq(void) | ||
117 | { | ||
118 | int irq; | ||
119 | |||
120 | pxa27x_init_irq(); | ||
121 | /* setup extra Balloon3 irqs */ | ||
122 | for (irq = BALLOON3_IRQ(0); irq <= BALLOON3_IRQ(7); irq++) { | ||
123 | set_irq_chip(irq, &balloon3_irq_chip); | ||
124 | set_irq_handler(irq, handle_level_irq); | ||
125 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | ||
126 | } | ||
127 | |||
128 | set_irq_chained_handler(BALLOON3_AUX_NIRQ, balloon3_irq_handler); | ||
129 | set_irq_type(BALLOON3_AUX_NIRQ, IRQ_TYPE_EDGE_FALLING); | ||
130 | |||
131 | pr_debug("%s: chained handler installed - irq %d automatically " | ||
132 | "enabled\n", __func__, BALLOON3_AUX_NIRQ); | ||
133 | } | ||
134 | |||
135 | static void balloon3_backlight_power(int on) | ||
136 | { | ||
137 | pr_debug("%s: power is %s\n", __func__, on ? "on" : "off"); | ||
138 | gpio_set_value(BALLOON3_GPIO_RUN_BACKLIGHT, on); | ||
139 | } | ||
140 | |||
141 | static unsigned long balloon3_lcd_pin_config[] = { | ||
142 | /* LCD - 16bpp Active TFT */ | ||
143 | GPIO58_LCD_LDD_0, | ||
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 | |||
164 | GPIO99_GPIO, /* Backlight */ | ||
165 | }; | ||
166 | |||
167 | static struct pxafb_mode_info balloon3_lcd_modes[] = { | ||
168 | { | ||
169 | .pixclock = 38000, | ||
170 | .xres = 480, | ||
171 | .yres = 640, | ||
172 | .bpp = 16, | ||
173 | .hsync_len = 8, | ||
174 | .left_margin = 8, | ||
175 | .right_margin = 8, | ||
176 | .vsync_len = 2, | ||
177 | .upper_margin = 4, | ||
178 | .lower_margin = 5, | ||
179 | .sync = 0, | ||
180 | }, | ||
181 | }; | ||
182 | |||
183 | static struct pxafb_mach_info balloon3_pxafb_info = { | ||
184 | .modes = balloon3_lcd_modes, | ||
185 | .num_modes = ARRAY_SIZE(balloon3_lcd_modes), | ||
186 | .lcd_conn = LCD_COLOR_TFT_16BPP | LCD_PCLK_EDGE_FALL, | ||
187 | .pxafb_backlight_power = balloon3_backlight_power, | ||
188 | }; | ||
189 | |||
190 | static unsigned long balloon3_mmc_pin_config[] = { | ||
191 | GPIO32_MMC_CLK, | ||
192 | GPIO92_MMC_DAT_0, | ||
193 | GPIO109_MMC_DAT_1, | ||
194 | GPIO110_MMC_DAT_2, | ||
195 | GPIO111_MMC_DAT_3, | ||
196 | GPIO112_MMC_CMD, | ||
197 | }; | ||
198 | |||
199 | static void balloon3_mci_setpower(struct device *dev, unsigned int vdd) | ||
200 | { | ||
201 | struct pxamci_platform_data *p_d = dev->platform_data; | ||
202 | |||
203 | if ((1 << vdd) & p_d->ocr_mask) { | ||
204 | pr_debug("%s: on\n", __func__); | ||
205 | /* FIXME something to prod here? */ | ||
206 | } else { | ||
207 | pr_debug("%s: off\n", __func__); | ||
208 | /* FIXME something to prod here? */ | ||
209 | } | ||
210 | } | ||
211 | |||
212 | static struct pxamci_platform_data balloon3_mci_platform_data = { | ||
213 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | ||
214 | .setpower = balloon3_mci_setpower, | ||
215 | }; | ||
216 | |||
217 | static int balloon3_udc_is_connected(void) | ||
218 | { | ||
219 | pr_debug("%s: udc connected\n", __func__); | ||
220 | return 1; | ||
221 | } | ||
222 | |||
223 | static void balloon3_udc_command(int cmd) | ||
224 | { | ||
225 | switch (cmd) { | ||
226 | case PXA2XX_UDC_CMD_CONNECT: | ||
227 | UP2OCR |= (UP2OCR_DPPUE + UP2OCR_DPPUBE); | ||
228 | pr_debug("%s: connect\n", __func__); | ||
229 | break; | ||
230 | case PXA2XX_UDC_CMD_DISCONNECT: | ||
231 | UP2OCR &= ~UP2OCR_DPPUE; | ||
232 | pr_debug("%s: disconnect\n", __func__); | ||
233 | break; | ||
234 | } | ||
235 | } | ||
236 | |||
237 | static struct pxa2xx_udc_mach_info balloon3_udc_info = { | ||
238 | .udc_is_connected = balloon3_udc_is_connected, | ||
239 | .udc_command = balloon3_udc_command, | ||
240 | }; | ||
241 | |||
242 | static struct pxaficp_platform_data balloon3_ficp_platform_data = { | ||
243 | .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF, | ||
244 | }; | ||
245 | |||
246 | static unsigned long balloon3_ohci_pin_config[] = { | ||
247 | GPIO88_USBH1_PWR, | ||
248 | GPIO89_USBH1_PEN, | ||
249 | }; | ||
250 | |||
251 | static struct pxaohci_platform_data balloon3_ohci_platform_data = { | ||
252 | .port_mode = PMM_PERPORT_MODE, | ||
253 | .flags = ENABLE_PORT_ALL | POWER_CONTROL_LOW | POWER_SENSE_LOW, | ||
254 | }; | ||
255 | |||
256 | static unsigned long balloon3_pin_config[] __initdata = { | ||
257 | /* Select BTUART 'COM1/ttyS0' as IO option for pins 42/43/44/45 */ | ||
258 | GPIO42_BTUART_RXD, | ||
259 | GPIO43_BTUART_TXD, | ||
260 | GPIO44_BTUART_CTS, | ||
261 | GPIO45_BTUART_RTS, | ||
262 | |||
263 | /* Wakeup GPIO */ | ||
264 | GPIO1_GPIO | WAKEUP_ON_EDGE_BOTH, | ||
265 | |||
266 | /* NAND & IDLE LED GPIOs */ | ||
267 | GPIO9_GPIO, | ||
268 | GPIO10_GPIO, | ||
269 | }; | ||
270 | |||
271 | static struct gpio_led balloon3_gpio_leds[] = { | ||
272 | { | ||
273 | .name = "balloon3:green:idle", | ||
274 | .default_trigger = "heartbeat", | ||
275 | .gpio = BALLOON3_GPIO_LED_IDLE, | ||
276 | .active_low = 1, | ||
277 | }, | ||
278 | { | ||
279 | .name = "balloon3:green:nand", | ||
280 | .default_trigger = "nand-disk", | ||
281 | .gpio = BALLOON3_GPIO_LED_NAND, | ||
282 | .active_low = 1, | ||
283 | }, | ||
284 | }; | ||
285 | |||
286 | static struct gpio_led_platform_data balloon3_gpio_leds_platform_data = { | ||
287 | .leds = balloon3_gpio_leds, | ||
288 | .num_leds = ARRAY_SIZE(balloon3_gpio_leds), | ||
289 | }; | ||
290 | |||
291 | static struct platform_device balloon3led_device = { | ||
292 | .name = "leds-gpio", | ||
293 | .id = -1, | ||
294 | .dev = { | ||
295 | .platform_data = &balloon3_gpio_leds_platform_data, | ||
296 | }, | ||
297 | }; | ||
298 | |||
299 | static void __init balloon3_init(void) | ||
300 | { | ||
301 | pr_info("Initialising Balloon3\n"); | ||
302 | |||
303 | /* system bus arbiter setting | ||
304 | * - Core_Park | ||
305 | * - LCD_wt:DMA_wt:CORE_Wt = 2:3:4 | ||
306 | */ | ||
307 | ARB_CNTRL = ARB_CORE_PARK | 0x234; | ||
308 | |||
309 | pxa_set_i2c_info(NULL); | ||
310 | if (balloon3_has(BALLOON3_FEATURE_AUDIO)) | ||
311 | pxa_set_ac97_info(NULL); | ||
312 | |||
313 | if (balloon3_has(BALLOON3_FEATURE_TOPPOLY)) { | ||
314 | pxa2xx_mfp_config(ARRAY_AND_SIZE(balloon3_lcd_pin_config)); | ||
315 | gpio_request(BALLOON3_GPIO_RUN_BACKLIGHT, | ||
316 | "LCD Backlight Power"); | ||
317 | gpio_direction_output(BALLOON3_GPIO_RUN_BACKLIGHT, 1); | ||
318 | set_pxa_fb_info(&balloon3_pxafb_info); | ||
319 | } | ||
320 | |||
321 | if (balloon3_has(BALLOON3_FEATURE_MMC)) { | ||
322 | pxa2xx_mfp_config(ARRAY_AND_SIZE(balloon3_mmc_pin_config)); | ||
323 | pxa_set_mci_info(&balloon3_mci_platform_data); | ||
324 | } | ||
325 | pxa_set_ficp_info(&balloon3_ficp_platform_data); | ||
326 | if (balloon3_has(BALLOON3_FEATURE_OHCI)) { | ||
327 | pxa2xx_mfp_config(ARRAY_AND_SIZE(balloon3_ohci_pin_config)); | ||
328 | pxa_set_ohci_info(&balloon3_ohci_platform_data); | ||
329 | } | ||
330 | pxa_set_udc_info(&balloon3_udc_info); | ||
331 | |||
332 | pxa2xx_mfp_config(ARRAY_AND_SIZE(balloon3_pin_config)); | ||
333 | |||
334 | platform_device_register(&balloon3led_device); | ||
335 | } | ||
336 | |||
337 | static struct map_desc balloon3_io_desc[] __initdata = { | ||
338 | { /* CPLD/FPGA */ | ||
339 | .virtual = BALLOON3_FPGA_VIRT, | ||
340 | .pfn = __phys_to_pfn(BALLOON3_FPGA_PHYS), | ||
341 | .length = BALLOON3_FPGA_LENGTH, | ||
342 | .type = MT_DEVICE, | ||
343 | }, | ||
344 | }; | ||
345 | |||
346 | static void __init balloon3_map_io(void) | ||
347 | { | ||
348 | pxa_map_io(); | ||
349 | iotable_init(balloon3_io_desc, ARRAY_SIZE(balloon3_io_desc)); | ||
350 | } | ||
351 | |||
352 | MACHINE_START(BALLOON3, "Balloon3") | ||
353 | /* Maintainer: Nick Bane. */ | ||
354 | .phys_io = 0x40000000, | ||
355 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
356 | .map_io = balloon3_map_io, | ||
357 | .init_irq = balloon3_init_irq, | ||
358 | .timer = &pxa_timer, | ||
359 | .init_machine = balloon3_init, | ||
360 | .boot_params = PHYS_OFFSET + 0x100, | ||
361 | MACHINE_END | ||
diff --git a/arch/arm/mach-pxa/clock.h b/arch/arm/mach-pxa/clock.h index 5599bceff738..978a3667e90d 100644 --- a/arch/arm/mach-pxa/clock.h +++ b/arch/arm/mach-pxa/clock.h | |||
@@ -12,7 +12,6 @@ struct clk { | |||
12 | unsigned int cken; | 12 | unsigned int cken; |
13 | unsigned int delay; | 13 | unsigned int delay; |
14 | unsigned int enabled; | 14 | unsigned int enabled; |
15 | struct clk *other; | ||
16 | }; | 15 | }; |
17 | 16 | ||
18 | #define INIT_CLKREG(_clk,_devname,_conname) \ | 17 | #define INIT_CLKREG(_clk,_devname,_conname) \ |
diff --git a/arch/arm/mach-pxa/cm-x270.c b/arch/arm/mach-pxa/cm-x270.c index 1d2cec25391d..eea78b6c2bc5 100644 --- a/arch/arm/mach-pxa/cm-x270.c +++ b/arch/arm/mach-pxa/cm-x270.c | |||
@@ -13,13 +13,18 @@ | |||
13 | #include <linux/sysdev.h> | 13 | #include <linux/sysdev.h> |
14 | #include <linux/irq.h> | 14 | #include <linux/irq.h> |
15 | #include <linux/gpio.h> | 15 | #include <linux/gpio.h> |
16 | #include <linux/delay.h> | ||
16 | 17 | ||
17 | #include <linux/rtc-v3020.h> | 18 | #include <linux/rtc-v3020.h> |
18 | #include <video/mbxfb.h> | 19 | #include <video/mbxfb.h> |
19 | 20 | ||
21 | #include <linux/spi/spi.h> | ||
22 | #include <linux/spi/libertas_spi.h> | ||
23 | |||
20 | #include <mach/pxa27x.h> | 24 | #include <mach/pxa27x.h> |
21 | #include <mach/ohci.h> | 25 | #include <mach/ohci.h> |
22 | #include <mach/mmc.h> | 26 | #include <mach/mmc.h> |
27 | #include <mach/pxa2xx_spi.h> | ||
23 | 28 | ||
24 | #include "generic.h" | 29 | #include "generic.h" |
25 | 30 | ||
@@ -34,6 +39,10 @@ | |||
34 | /* MMC power enable */ | 39 | /* MMC power enable */ |
35 | #define GPIO105_MMC_POWER (105) | 40 | #define GPIO105_MMC_POWER (105) |
36 | 41 | ||
42 | /* WLAN GPIOS */ | ||
43 | #define GPIO19_WLAN_STRAP (19) | ||
44 | #define GPIO102_WLAN_RST (102) | ||
45 | |||
37 | static unsigned long cmx270_pin_config[] = { | 46 | static unsigned long cmx270_pin_config[] = { |
38 | /* AC'97 */ | 47 | /* AC'97 */ |
39 | GPIO28_AC97_BITCLK, | 48 | GPIO28_AC97_BITCLK, |
@@ -94,8 +103,8 @@ static unsigned long cmx270_pin_config[] = { | |||
94 | GPIO26_SSP1_RXD, | 103 | GPIO26_SSP1_RXD, |
95 | 104 | ||
96 | /* SSP2 */ | 105 | /* SSP2 */ |
97 | GPIO19_SSP2_SCLK, | 106 | GPIO19_GPIO, /* SSP2 clock is used as GPIO for Libertas pin-strap */ |
98 | GPIO14_SSP2_SFRM, | 107 | GPIO14_GPIO, |
99 | GPIO87_SSP2_TXD, | 108 | GPIO87_SSP2_TXD, |
100 | GPIO88_SSP2_RXD, | 109 | GPIO88_SSP2_RXD, |
101 | 110 | ||
@@ -123,6 +132,7 @@ static unsigned long cmx270_pin_config[] = { | |||
123 | GPIO0_GPIO | WAKEUP_ON_EDGE_BOTH, | 132 | GPIO0_GPIO | WAKEUP_ON_EDGE_BOTH, |
124 | GPIO105_GPIO | MFP_LPM_DRIVE_HIGH, /* MMC/SD power */ | 133 | GPIO105_GPIO | MFP_LPM_DRIVE_HIGH, /* MMC/SD power */ |
125 | GPIO53_GPIO, /* PC card reset */ | 134 | GPIO53_GPIO, /* PC card reset */ |
135 | GPIO102_GPIO, /* WLAN reset */ | ||
126 | 136 | ||
127 | /* NAND controls */ | 137 | /* NAND controls */ |
128 | GPIO11_GPIO | MFP_LPM_DRIVE_HIGH, /* NAND CE# */ | 138 | GPIO11_GPIO | MFP_LPM_DRIVE_HIGH, /* NAND CE# */ |
@@ -131,6 +141,7 @@ static unsigned long cmx270_pin_config[] = { | |||
131 | /* interrupts */ | 141 | /* interrupts */ |
132 | GPIO10_GPIO, /* DM9000 interrupt */ | 142 | GPIO10_GPIO, /* DM9000 interrupt */ |
133 | GPIO83_GPIO, /* MMC card detect */ | 143 | GPIO83_GPIO, /* MMC card detect */ |
144 | GPIO95_GPIO, /* WLAN interrupt */ | ||
134 | }; | 145 | }; |
135 | 146 | ||
136 | /* V3020 RTC */ | 147 | /* V3020 RTC */ |
@@ -271,64 +282,114 @@ static inline void cmx270_init_ohci(void) {} | |||
271 | #endif | 282 | #endif |
272 | 283 | ||
273 | #if defined(CONFIG_MMC) || defined(CONFIG_MMC_MODULE) | 284 | #if defined(CONFIG_MMC) || defined(CONFIG_MMC_MODULE) |
274 | static int cmx270_mci_init(struct device *dev, | 285 | static struct pxamci_platform_data cmx270_mci_platform_data = { |
275 | irq_handler_t cmx270_detect_int, | 286 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
276 | void *data) | 287 | .gpio_card_detect = GPIO83_MMC_IRQ, |
288 | .gpio_card_ro = -1, | ||
289 | .gpio_power = GPIO105_MMC_POWER, | ||
290 | .gpio_power_invert = 1, | ||
291 | }; | ||
292 | |||
293 | static void __init cmx270_init_mmc(void) | ||
277 | { | 294 | { |
278 | int err; | 295 | pxa_set_mci_info(&cmx270_mci_platform_data); |
296 | } | ||
297 | #else | ||
298 | static inline void cmx270_init_mmc(void) {} | ||
299 | #endif | ||
300 | |||
301 | #if defined(CONFIG_SPI_PXA2XX) || defined(CONFIG_SPI_PXA2XX_MODULE) | ||
302 | static struct pxa2xx_spi_master cm_x270_spi_info = { | ||
303 | .num_chipselect = 1, | ||
304 | .enable_dma = 1, | ||
305 | }; | ||
306 | |||
307 | static struct pxa2xx_spi_chip cm_x270_libertas_chip = { | ||
308 | .rx_threshold = 1, | ||
309 | .tx_threshold = 1, | ||
310 | .timeout = 1000, | ||
311 | .gpio_cs = 14, | ||
312 | }; | ||
313 | |||
314 | static unsigned long cm_x270_libertas_pin_config[] = { | ||
315 | /* SSP2 */ | ||
316 | GPIO19_SSP2_SCLK, | ||
317 | GPIO14_GPIO, | ||
318 | GPIO87_SSP2_TXD, | ||
319 | GPIO88_SSP2_RXD, | ||
320 | |||
321 | }; | ||
279 | 322 | ||
280 | err = gpio_request(GPIO105_MMC_POWER, "MMC/SD power"); | 323 | static int cm_x270_libertas_setup(struct spi_device *spi) |
281 | if (err) { | 324 | { |
282 | dev_warn(dev, "power gpio unavailable\n"); | 325 | int err = gpio_request(GPIO19_WLAN_STRAP, "WLAN STRAP"); |
326 | if (err) | ||
283 | return err; | 327 | return err; |
284 | } | ||
285 | 328 | ||
286 | gpio_direction_output(GPIO105_MMC_POWER, 0); | 329 | err = gpio_request(GPIO102_WLAN_RST, "WLAN RST"); |
330 | if (err) | ||
331 | goto err_free_strap; | ||
287 | 332 | ||
288 | err = request_irq(CMX270_MMC_IRQ, cmx270_detect_int, | 333 | err = gpio_direction_output(GPIO102_WLAN_RST, 0); |
289 | IRQF_DISABLED | IRQF_TRIGGER_FALLING, | 334 | if (err) |
290 | "MMC card detect", data); | 335 | goto err_free_strap; |
291 | if (err) { | 336 | msleep(100); |
292 | gpio_free(GPIO105_MMC_POWER); | 337 | |
293 | dev_err(dev, "cmx270_mci_init: MMC/SD: can't" | 338 | err = gpio_direction_output(GPIO19_WLAN_STRAP, 1); |
294 | " request MMC card detect IRQ\n"); | 339 | if (err) |
295 | } | 340 | goto err_free_strap; |
341 | msleep(100); | ||
342 | |||
343 | pxa2xx_mfp_config(ARRAY_AND_SIZE(cm_x270_libertas_pin_config)); | ||
344 | |||
345 | gpio_set_value(GPIO102_WLAN_RST, 1); | ||
346 | msleep(100); | ||
347 | |||
348 | spi->bits_per_word = 16; | ||
349 | spi_setup(spi); | ||
350 | |||
351 | return 0; | ||
352 | |||
353 | err_free_strap: | ||
354 | gpio_free(GPIO19_WLAN_STRAP); | ||
296 | 355 | ||
297 | return err; | 356 | return err; |
298 | } | 357 | } |
299 | 358 | ||
300 | static void cmx270_mci_setpower(struct device *dev, unsigned int vdd) | 359 | static int cm_x270_libertas_teardown(struct spi_device *spi) |
301 | { | 360 | { |
302 | struct pxamci_platform_data *p_d = dev->platform_data; | 361 | gpio_set_value(GPIO102_WLAN_RST, 0); |
303 | 362 | gpio_free(GPIO102_WLAN_RST); | |
304 | if ((1 << vdd) & p_d->ocr_mask) { | 363 | gpio_free(GPIO19_WLAN_STRAP); |
305 | dev_dbg(dev, "power on\n"); | ||
306 | gpio_set_value(GPIO105_MMC_POWER, 0); | ||
307 | } else { | ||
308 | gpio_set_value(GPIO105_MMC_POWER, 1); | ||
309 | dev_dbg(dev, "power off\n"); | ||
310 | } | ||
311 | } | ||
312 | 364 | ||
313 | static void cmx270_mci_exit(struct device *dev, void *data) | 365 | return 0; |
314 | { | ||
315 | free_irq(CMX270_MMC_IRQ, data); | ||
316 | gpio_free(GPIO105_MMC_POWER); | ||
317 | } | 366 | } |
318 | 367 | ||
319 | static struct pxamci_platform_data cmx270_mci_platform_data = { | 368 | struct libertas_spi_platform_data cm_x270_libertas_pdata = { |
320 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 369 | .use_dummy_writes = 1, |
321 | .init = cmx270_mci_init, | 370 | .setup = cm_x270_libertas_setup, |
322 | .setpower = cmx270_mci_setpower, | 371 | .teardown = cm_x270_libertas_teardown, |
323 | .exit = cmx270_mci_exit, | ||
324 | }; | 372 | }; |
325 | 373 | ||
326 | static void __init cmx270_init_mmc(void) | 374 | static struct spi_board_info cm_x270_spi_devices[] __initdata = { |
375 | { | ||
376 | .modalias = "libertas_spi", | ||
377 | .max_speed_hz = 13000000, | ||
378 | .bus_num = 2, | ||
379 | .irq = gpio_to_irq(95), | ||
380 | .chip_select = 0, | ||
381 | .controller_data = &cm_x270_libertas_chip, | ||
382 | .platform_data = &cm_x270_libertas_pdata, | ||
383 | }, | ||
384 | }; | ||
385 | |||
386 | static void __init cmx270_init_spi(void) | ||
327 | { | 387 | { |
328 | pxa_set_mci_info(&cmx270_mci_platform_data); | 388 | pxa2xx_set_spi_info(2, &cm_x270_spi_info); |
389 | spi_register_board_info(ARRAY_AND_SIZE(cm_x270_spi_devices)); | ||
329 | } | 390 | } |
330 | #else | 391 | #else |
331 | static inline void cmx270_init_mmc(void) {} | 392 | static inline void cmx270_init_spi(void) {} |
332 | #endif | 393 | #endif |
333 | 394 | ||
334 | void __init cmx270_init(void) | 395 | void __init cmx270_init(void) |
@@ -343,4 +404,5 @@ void __init cmx270_init(void) | |||
343 | cmx270_init_mmc(); | 404 | cmx270_init_mmc(); |
344 | cmx270_init_ohci(); | 405 | cmx270_init_ohci(); |
345 | cmx270_init_2700G(); | 406 | cmx270_init_2700G(); |
407 | cmx270_init_spi(); | ||
346 | } | 408 | } |
diff --git a/arch/arm/mach-pxa/cm-x300.c b/arch/arm/mach-pxa/cm-x300.c index 465da26591bd..aac2cda60e09 100644 --- a/arch/arm/mach-pxa/cm-x300.c +++ b/arch/arm/mach-pxa/cm-x300.c | |||
@@ -306,68 +306,21 @@ static void cm_x300_mci_exit(struct device *dev, void *data) | |||
306 | } | 306 | } |
307 | 307 | ||
308 | static struct pxamci_platform_data cm_x300_mci_platform_data = { | 308 | static struct pxamci_platform_data cm_x300_mci_platform_data = { |
309 | .detect_delay = 20, | 309 | .detect_delay = 20, |
310 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 310 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
311 | .init = cm_x300_mci_init, | 311 | .init = cm_x300_mci_init, |
312 | .exit = cm_x300_mci_exit, | 312 | .exit = cm_x300_mci_exit, |
313 | .gpio_card_detect = -1, | ||
314 | .gpio_card_ro = -1, | ||
315 | .gpio_power = -1, | ||
313 | }; | 316 | }; |
314 | 317 | ||
315 | static int cm_x300_mci2_ro(struct device *dev) | ||
316 | { | ||
317 | return gpio_get_value(GPIO85_MMC2_WP); | ||
318 | } | ||
319 | |||
320 | static int cm_x300_mci2_init(struct device *dev, | ||
321 | irq_handler_t cm_x300_detect_int, | ||
322 | void *data) | ||
323 | { | ||
324 | int err; | ||
325 | |||
326 | /* | ||
327 | * setup GPIO for CM-X300 MMC controller | ||
328 | */ | ||
329 | err = gpio_request(GPIO82_MMC2_IRQ, "mmc card detect"); | ||
330 | if (err) | ||
331 | goto err_request_cd; | ||
332 | gpio_direction_input(GPIO82_MMC2_IRQ); | ||
333 | |||
334 | err = gpio_request(GPIO85_MMC2_WP, "mmc write protect"); | ||
335 | if (err) | ||
336 | goto err_request_wp; | ||
337 | gpio_direction_input(GPIO85_MMC2_WP); | ||
338 | |||
339 | err = request_irq(CM_X300_MMC2_IRQ, cm_x300_detect_int, | ||
340 | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, | ||
341 | "MMC card detect", data); | ||
342 | if (err) { | ||
343 | printk(KERN_ERR "%s: MMC/SD/SDIO: " | ||
344 | "can't request card detect IRQ\n", __func__); | ||
345 | goto err_request_irq; | ||
346 | } | ||
347 | |||
348 | return 0; | ||
349 | |||
350 | err_request_irq: | ||
351 | gpio_free(GPIO85_MMC2_WP); | ||
352 | err_request_wp: | ||
353 | gpio_free(GPIO82_MMC2_IRQ); | ||
354 | err_request_cd: | ||
355 | return err; | ||
356 | } | ||
357 | |||
358 | static void cm_x300_mci2_exit(struct device *dev, void *data) | ||
359 | { | ||
360 | free_irq(CM_X300_MMC2_IRQ, data); | ||
361 | gpio_free(GPIO82_MMC2_IRQ); | ||
362 | gpio_free(GPIO85_MMC2_WP); | ||
363 | } | ||
364 | |||
365 | static struct pxamci_platform_data cm_x300_mci2_platform_data = { | 318 | static struct pxamci_platform_data cm_x300_mci2_platform_data = { |
366 | .detect_delay = 20, | 319 | .detect_delay = 20, |
367 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 320 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
368 | .init = cm_x300_mci2_init, | 321 | .gpio_card_detect = GPIO82_MMC2_IRQ, |
369 | .exit = cm_x300_mci2_exit, | 322 | .gpio_card_ro = GPIO85_MMC2_WP, |
370 | .get_ro = cm_x300_mci2_ro, | 323 | .gpio_power = -1, |
371 | }; | 324 | }; |
372 | 325 | ||
373 | static void __init cm_x300_init_mmc(void) | 326 | static void __init cm_x300_init_mmc(void) |
diff --git a/arch/arm/mach-pxa/colibri-pxa300.c b/arch/arm/mach-pxa/colibri-pxa300.c index 7c9c34c19ae2..37c239c56568 100644 --- a/arch/arm/mach-pxa/colibri-pxa300.c +++ b/arch/arm/mach-pxa/colibri-pxa300.c | |||
@@ -172,6 +172,7 @@ void __init colibri_pxa300_init(void) | |||
172 | { | 172 | { |
173 | colibri_pxa300_init_eth(); | 173 | colibri_pxa300_init_eth(); |
174 | colibri_pxa300_init_ohci(); | 174 | colibri_pxa300_init_ohci(); |
175 | colibri_pxa3xx_init_nand(); | ||
175 | colibri_pxa300_init_lcd(); | 176 | colibri_pxa300_init_lcd(); |
176 | colibri_pxa3xx_init_lcd(mfp_to_gpio(GPIO39_GPIO)); | 177 | colibri_pxa3xx_init_lcd(mfp_to_gpio(GPIO39_GPIO)); |
177 | colibri_pxa310_init_ac97(); | 178 | colibri_pxa310_init_ac97(); |
diff --git a/arch/arm/mach-pxa/colibri-pxa320.c b/arch/arm/mach-pxa/colibri-pxa320.c index a18d37b3c5e6..494572825c7d 100644 --- a/arch/arm/mach-pxa/colibri-pxa320.c +++ b/arch/arm/mach-pxa/colibri-pxa320.c | |||
@@ -164,15 +164,48 @@ static inline void __init colibri_pxa320_init_ac97(void) | |||
164 | static inline void colibri_pxa320_init_ac97(void) {} | 164 | static inline void colibri_pxa320_init_ac97(void) {} |
165 | #endif | 165 | #endif |
166 | 166 | ||
167 | /* | ||
168 | * The following configuration is verified to work with the Toradex Orchid | ||
169 | * carrier board | ||
170 | */ | ||
171 | static mfp_cfg_t colibri_pxa320_uart_pin_config[] __initdata = { | ||
172 | /* UART 1 configuration (may be set by bootloader) */ | ||
173 | GPIO99_UART1_CTS, | ||
174 | GPIO104_UART1_RTS, | ||
175 | GPIO97_UART1_RXD, | ||
176 | GPIO98_UART1_TXD, | ||
177 | GPIO101_UART1_DTR, | ||
178 | GPIO103_UART1_DSR, | ||
179 | GPIO100_UART1_DCD, | ||
180 | GPIO102_UART1_RI, | ||
181 | |||
182 | /* UART 2 configuration */ | ||
183 | GPIO109_UART2_CTS, | ||
184 | GPIO112_UART2_RTS, | ||
185 | GPIO110_UART2_RXD, | ||
186 | GPIO111_UART2_TXD, | ||
187 | |||
188 | /* UART 3 configuration */ | ||
189 | GPIO30_UART3_RXD, | ||
190 | GPIO31_UART3_TXD, | ||
191 | }; | ||
192 | |||
193 | static void __init colibri_pxa320_init_uart(void) | ||
194 | { | ||
195 | pxa3xx_mfp_config(ARRAY_AND_SIZE(colibri_pxa320_uart_pin_config)); | ||
196 | } | ||
197 | |||
167 | void __init colibri_pxa320_init(void) | 198 | void __init colibri_pxa320_init(void) |
168 | { | 199 | { |
169 | colibri_pxa320_init_eth(); | 200 | colibri_pxa320_init_eth(); |
170 | colibri_pxa320_init_ohci(); | 201 | colibri_pxa320_init_ohci(); |
202 | colibri_pxa3xx_init_nand(); | ||
171 | colibri_pxa320_init_lcd(); | 203 | colibri_pxa320_init_lcd(); |
172 | colibri_pxa3xx_init_lcd(mfp_to_gpio(GPIO49_GPIO)); | 204 | colibri_pxa3xx_init_lcd(mfp_to_gpio(GPIO49_GPIO)); |
173 | colibri_pxa320_init_ac97(); | 205 | colibri_pxa320_init_ac97(); |
174 | colibri_pxa3xx_init_mmc(ARRAY_AND_SIZE(colibri_pxa320_mmc_pin_config), | 206 | colibri_pxa3xx_init_mmc(ARRAY_AND_SIZE(colibri_pxa320_mmc_pin_config), |
175 | mfp_to_gpio(MFP_PIN_GPIO28)); | 207 | mfp_to_gpio(MFP_PIN_GPIO28)); |
208 | colibri_pxa320_init_uart(); | ||
176 | } | 209 | } |
177 | 210 | ||
178 | MACHINE_START(COLIBRI320, "Toradex Colibri PXA320") | 211 | MACHINE_START(COLIBRI320, "Toradex Colibri PXA320") |
diff --git a/arch/arm/mach-pxa/colibri-pxa3xx.c b/arch/arm/mach-pxa/colibri-pxa3xx.c index ea34e34f8cd8..efebaf4d734d 100644 --- a/arch/arm/mach-pxa/colibri-pxa3xx.c +++ b/arch/arm/mach-pxa/colibri-pxa3xx.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <mach/colibri.h> | 25 | #include <mach/colibri.h> |
26 | #include <mach/mmc.h> | 26 | #include <mach/mmc.h> |
27 | #include <mach/pxafb.h> | 27 | #include <mach/pxafb.h> |
28 | #include <mach/pxa3xx_nand.h> | ||
28 | 29 | ||
29 | #include "generic.h" | 30 | #include "generic.h" |
30 | #include "devices.h" | 31 | #include "devices.h" |
@@ -95,10 +96,13 @@ static void colibri_pxa3xx_mci_exit(struct device *dev, void *data) | |||
95 | } | 96 | } |
96 | 97 | ||
97 | static struct pxamci_platform_data colibri_pxa3xx_mci_platform_data = { | 98 | static struct pxamci_platform_data colibri_pxa3xx_mci_platform_data = { |
98 | .detect_delay = 20, | 99 | .detect_delay = 20, |
99 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, | 100 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, |
100 | .init = colibri_pxa3xx_mci_init, | 101 | .init = colibri_pxa3xx_mci_init, |
101 | .exit = colibri_pxa3xx_mci_exit, | 102 | .exit = colibri_pxa3xx_mci_exit, |
103 | .gpio_card_detect = -1, | ||
104 | .gpio_card_ro = -1, | ||
105 | .gpio_power = -1, | ||
102 | }; | 106 | }; |
103 | 107 | ||
104 | void __init colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin) | 108 | void __init colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin) |
@@ -154,3 +158,43 @@ void __init colibri_pxa3xx_init_lcd(int bl_pin) | |||
154 | } | 158 | } |
155 | #endif | 159 | #endif |
156 | 160 | ||
161 | #if defined(CONFIG_MTD_NAND_PXA3xx) || defined(CONFIG_MTD_NAND_PXA3xx_MODULE) | ||
162 | static struct mtd_partition colibri_nand_partitions[] = { | ||
163 | { | ||
164 | .name = "bootloader", | ||
165 | .offset = 0, | ||
166 | .size = SZ_512K, | ||
167 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
168 | }, | ||
169 | { | ||
170 | .name = "kernel", | ||
171 | .offset = MTDPART_OFS_APPEND, | ||
172 | .size = SZ_4M, | ||
173 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
174 | }, | ||
175 | { | ||
176 | .name = "reserved", | ||
177 | .offset = MTDPART_OFS_APPEND, | ||
178 | .size = SZ_1M, | ||
179 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
180 | }, | ||
181 | { | ||
182 | .name = "fs", | ||
183 | .offset = MTDPART_OFS_APPEND, | ||
184 | .size = MTDPART_SIZ_FULL, | ||
185 | }, | ||
186 | }; | ||
187 | |||
188 | static struct pxa3xx_nand_platform_data colibri_nand_info = { | ||
189 | .enable_arbiter = 1, | ||
190 | .keep_config = 1, | ||
191 | .parts = colibri_nand_partitions, | ||
192 | .nr_parts = ARRAY_SIZE(colibri_nand_partitions), | ||
193 | }; | ||
194 | |||
195 | void __init colibri_pxa3xx_init_nand(void) | ||
196 | { | ||
197 | pxa3xx_set_nand_info(&colibri_nand_info); | ||
198 | } | ||
199 | #endif | ||
200 | |||
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index 5363e1aea3fb..b536b5a5a10d 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/spi/ads7846.h> | 29 | #include <linux/spi/ads7846.h> |
30 | #include <linux/spi/corgi_lcd.h> | 30 | #include <linux/spi/corgi_lcd.h> |
31 | #include <linux/mtd/sharpsl.h> | 31 | #include <linux/mtd/sharpsl.h> |
32 | #include <linux/input/matrix_keypad.h> | ||
32 | #include <video/w100fb.h> | 33 | #include <video/w100fb.h> |
33 | 34 | ||
34 | #include <asm/setup.h> | 35 | #include <asm/setup.h> |
@@ -104,6 +105,28 @@ static unsigned long corgi_pin_config[] __initdata = { | |||
104 | GPIO6_MMC_CLK, | 105 | GPIO6_MMC_CLK, |
105 | GPIO8_MMC_CS0, | 106 | GPIO8_MMC_CS0, |
106 | 107 | ||
108 | /* GPIO Matrix Keypad */ | ||
109 | GPIO66_GPIO, /* column 0 */ | ||
110 | GPIO67_GPIO, /* column 1 */ | ||
111 | GPIO68_GPIO, /* column 2 */ | ||
112 | GPIO69_GPIO, /* column 3 */ | ||
113 | GPIO70_GPIO, /* column 4 */ | ||
114 | GPIO71_GPIO, /* column 5 */ | ||
115 | GPIO72_GPIO, /* column 6 */ | ||
116 | GPIO73_GPIO, /* column 7 */ | ||
117 | GPIO74_GPIO, /* column 8 */ | ||
118 | GPIO75_GPIO, /* column 9 */ | ||
119 | GPIO76_GPIO, /* column 10 */ | ||
120 | GPIO77_GPIO, /* column 11 */ | ||
121 | GPIO58_GPIO, /* row 0 */ | ||
122 | GPIO59_GPIO, /* row 1 */ | ||
123 | GPIO60_GPIO, /* row 2 */ | ||
124 | GPIO61_GPIO, /* row 3 */ | ||
125 | GPIO62_GPIO, /* row 4 */ | ||
126 | GPIO63_GPIO, /* row 5 */ | ||
127 | GPIO64_GPIO, /* row 6 */ | ||
128 | GPIO65_GPIO, /* row 7 */ | ||
129 | |||
107 | /* GPIO */ | 130 | /* GPIO */ |
108 | GPIO9_GPIO, /* CORGI_GPIO_nSD_DETECT */ | 131 | GPIO9_GPIO, /* CORGI_GPIO_nSD_DETECT */ |
109 | GPIO7_GPIO, /* CORGI_GPIO_nSD_WP */ | 132 | GPIO7_GPIO, /* CORGI_GPIO_nSD_WP */ |
@@ -267,9 +290,115 @@ static struct platform_device corgifb_device = { | |||
267 | /* | 290 | /* |
268 | * Corgi Keyboard Device | 291 | * Corgi Keyboard Device |
269 | */ | 292 | */ |
293 | #define CORGI_KEY_CALENDER KEY_F1 | ||
294 | #define CORGI_KEY_ADDRESS KEY_F2 | ||
295 | #define CORGI_KEY_FN KEY_F3 | ||
296 | #define CORGI_KEY_CANCEL KEY_F4 | ||
297 | #define CORGI_KEY_OFF KEY_SUSPEND | ||
298 | #define CORGI_KEY_EXOK KEY_F5 | ||
299 | #define CORGI_KEY_EXCANCEL KEY_F6 | ||
300 | #define CORGI_KEY_EXJOGDOWN KEY_F7 | ||
301 | #define CORGI_KEY_EXJOGUP KEY_F8 | ||
302 | #define CORGI_KEY_JAP1 KEY_LEFTCTRL | ||
303 | #define CORGI_KEY_JAP2 KEY_LEFTALT | ||
304 | #define CORGI_KEY_MAIL KEY_F10 | ||
305 | #define CORGI_KEY_OK KEY_F11 | ||
306 | #define CORGI_KEY_MENU KEY_F12 | ||
307 | |||
308 | static const uint32_t corgikbd_keymap[] = { | ||
309 | KEY(0, 1, KEY_1), | ||
310 | KEY(0, 2, KEY_3), | ||
311 | KEY(0, 3, KEY_5), | ||
312 | KEY(0, 4, KEY_6), | ||
313 | KEY(0, 5, KEY_7), | ||
314 | KEY(0, 6, KEY_9), | ||
315 | KEY(0, 7, KEY_0), | ||
316 | KEY(0, 8, KEY_BACKSPACE), | ||
317 | KEY(1, 1, KEY_2), | ||
318 | KEY(1, 2, KEY_4), | ||
319 | KEY(1, 3, KEY_R), | ||
320 | KEY(1, 4, KEY_Y), | ||
321 | KEY(1, 5, KEY_8), | ||
322 | KEY(1, 6, KEY_I), | ||
323 | KEY(1, 7, KEY_O), | ||
324 | KEY(1, 8, KEY_P), | ||
325 | KEY(2, 0, KEY_TAB), | ||
326 | KEY(2, 1, KEY_Q), | ||
327 | KEY(2, 2, KEY_E), | ||
328 | KEY(2, 3, KEY_T), | ||
329 | KEY(2, 4, KEY_G), | ||
330 | KEY(2, 5, KEY_U), | ||
331 | KEY(2, 6, KEY_J), | ||
332 | KEY(2, 7, KEY_K), | ||
333 | KEY(3, 0, CORGI_KEY_CALENDER), | ||
334 | KEY(3, 1, KEY_W), | ||
335 | KEY(3, 2, KEY_S), | ||
336 | KEY(3, 3, KEY_F), | ||
337 | KEY(3, 4, KEY_V), | ||
338 | KEY(3, 5, KEY_H), | ||
339 | KEY(3, 6, KEY_M), | ||
340 | KEY(3, 7, KEY_L), | ||
341 | KEY(3, 9, KEY_RIGHTSHIFT), | ||
342 | KEY(4, 0, CORGI_KEY_ADDRESS), | ||
343 | KEY(4, 1, KEY_A), | ||
344 | KEY(4, 2, KEY_D), | ||
345 | KEY(4, 3, KEY_C), | ||
346 | KEY(4, 4, KEY_B), | ||
347 | KEY(4, 5, KEY_N), | ||
348 | KEY(4, 6, KEY_DOT), | ||
349 | KEY(4, 8, KEY_ENTER), | ||
350 | KEY(4, 10, KEY_LEFTSHIFT), | ||
351 | KEY(5, 0, CORGI_KEY_MAIL), | ||
352 | KEY(5, 1, KEY_Z), | ||
353 | KEY(5, 2, KEY_X), | ||
354 | KEY(5, 3, KEY_MINUS), | ||
355 | KEY(5, 4, KEY_SPACE), | ||
356 | KEY(5, 5, KEY_COMMA), | ||
357 | KEY(5, 7, KEY_UP), | ||
358 | KEY(5, 11, CORGI_KEY_FN), | ||
359 | KEY(6, 0, KEY_SYSRQ), | ||
360 | KEY(6, 1, CORGI_KEY_JAP1), | ||
361 | KEY(6, 2, CORGI_KEY_JAP2), | ||
362 | KEY(6, 3, CORGI_KEY_CANCEL), | ||
363 | KEY(6, 4, CORGI_KEY_OK), | ||
364 | KEY(6, 5, CORGI_KEY_MENU), | ||
365 | KEY(6, 6, KEY_LEFT), | ||
366 | KEY(6, 7, KEY_DOWN), | ||
367 | KEY(6, 8, KEY_RIGHT), | ||
368 | KEY(7, 0, CORGI_KEY_OFF), | ||
369 | KEY(7, 1, CORGI_KEY_EXOK), | ||
370 | KEY(7, 2, CORGI_KEY_EXCANCEL), | ||
371 | KEY(7, 3, CORGI_KEY_EXJOGDOWN), | ||
372 | KEY(7, 4, CORGI_KEY_EXJOGUP), | ||
373 | }; | ||
374 | |||
375 | static struct matrix_keymap_data corgikbd_keymap_data = { | ||
376 | .keymap = corgikbd_keymap, | ||
377 | .keymap_size = ARRAY_SIZE(corgikbd_keymap), | ||
378 | }; | ||
379 | |||
380 | static const int corgikbd_row_gpios[] = | ||
381 | { 58, 59, 60, 61, 62, 63, 64, 65 }; | ||
382 | static const int corgikbd_col_gpios[] = | ||
383 | { 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77 }; | ||
384 | |||
385 | static struct matrix_keypad_platform_data corgikbd_pdata = { | ||
386 | .keymap_data = &corgikbd_keymap_data, | ||
387 | .row_gpios = corgikbd_row_gpios, | ||
388 | .col_gpios = corgikbd_col_gpios, | ||
389 | .num_row_gpios = ARRAY_SIZE(corgikbd_row_gpios), | ||
390 | .num_col_gpios = ARRAY_SIZE(corgikbd_col_gpios), | ||
391 | .col_scan_delay_us = 10, | ||
392 | .debounce_ms = 10, | ||
393 | .wakeup = 1, | ||
394 | }; | ||
395 | |||
270 | static struct platform_device corgikbd_device = { | 396 | static struct platform_device corgikbd_device = { |
271 | .name = "corgi-keyboard", | 397 | .name = "matrix-keypad", |
272 | .id = -1, | 398 | .id = -1, |
399 | .dev = { | ||
400 | .platform_data = &corgikbd_pdata, | ||
401 | }, | ||
273 | }; | 402 | }; |
274 | 403 | ||
275 | /* | 404 | /* |
@@ -307,111 +436,20 @@ static struct platform_device corgiled_device = { | |||
307 | * The card detect interrupt isn't debounced so we delay it by 250ms | 436 | * The card detect interrupt isn't debounced so we delay it by 250ms |
308 | * to give the card a chance to fully insert/eject. | 437 | * to give the card a chance to fully insert/eject. |
309 | */ | 438 | */ |
310 | static struct pxamci_platform_data corgi_mci_platform_data; | ||
311 | |||
312 | static int corgi_mci_init(struct device *dev, irq_handler_t corgi_detect_int, void *data) | ||
313 | { | ||
314 | int err; | ||
315 | |||
316 | err = gpio_request(CORGI_GPIO_nSD_DETECT, "nSD_DETECT"); | ||
317 | if (err) | ||
318 | goto err_out; | ||
319 | |||
320 | err = gpio_request(CORGI_GPIO_nSD_WP, "nSD_WP"); | ||
321 | if (err) | ||
322 | goto err_free_1; | ||
323 | |||
324 | err = gpio_request(CORGI_GPIO_SD_PWR, "SD_PWR"); | ||
325 | if (err) | ||
326 | goto err_free_2; | ||
327 | |||
328 | gpio_direction_input(CORGI_GPIO_nSD_DETECT); | ||
329 | gpio_direction_input(CORGI_GPIO_nSD_WP); | ||
330 | gpio_direction_output(CORGI_GPIO_SD_PWR, 0); | ||
331 | |||
332 | corgi_mci_platform_data.detect_delay = msecs_to_jiffies(250); | ||
333 | |||
334 | err = request_irq(CORGI_IRQ_GPIO_nSD_DETECT, corgi_detect_int, | ||
335 | IRQF_DISABLED | IRQF_TRIGGER_RISING | | ||
336 | IRQF_TRIGGER_FALLING, | ||
337 | "MMC card detect", data); | ||
338 | if (err) { | ||
339 | pr_err("%s: MMC/SD: can't request MMC card detect IRQ\n", | ||
340 | __func__); | ||
341 | goto err_free_3; | ||
342 | } | ||
343 | return 0; | ||
344 | |||
345 | err_free_3: | ||
346 | gpio_free(CORGI_GPIO_SD_PWR); | ||
347 | err_free_2: | ||
348 | gpio_free(CORGI_GPIO_nSD_WP); | ||
349 | err_free_1: | ||
350 | gpio_free(CORGI_GPIO_nSD_DETECT); | ||
351 | err_out: | ||
352 | return err; | ||
353 | } | ||
354 | |||
355 | static void corgi_mci_setpower(struct device *dev, unsigned int vdd) | ||
356 | { | ||
357 | struct pxamci_platform_data* p_d = dev->platform_data; | ||
358 | |||
359 | gpio_set_value(CORGI_GPIO_SD_PWR, ((1 << vdd) & p_d->ocr_mask)); | ||
360 | } | ||
361 | |||
362 | static int corgi_mci_get_ro(struct device *dev) | ||
363 | { | ||
364 | return gpio_get_value(CORGI_GPIO_nSD_WP); | ||
365 | } | ||
366 | |||
367 | static void corgi_mci_exit(struct device *dev, void *data) | ||
368 | { | ||
369 | free_irq(CORGI_IRQ_GPIO_nSD_DETECT, data); | ||
370 | gpio_free(CORGI_GPIO_SD_PWR); | ||
371 | gpio_free(CORGI_GPIO_nSD_WP); | ||
372 | gpio_free(CORGI_GPIO_nSD_DETECT); | ||
373 | } | ||
374 | |||
375 | static struct pxamci_platform_data corgi_mci_platform_data = { | 439 | static struct pxamci_platform_data corgi_mci_platform_data = { |
376 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 440 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
377 | .init = corgi_mci_init, | 441 | .gpio_card_detect = -1, |
378 | .get_ro = corgi_mci_get_ro, | 442 | .gpio_card_ro = CORGI_GPIO_nSD_WP, |
379 | .setpower = corgi_mci_setpower, | 443 | .gpio_power = CORGI_GPIO_SD_PWR, |
380 | .exit = corgi_mci_exit, | ||
381 | }; | 444 | }; |
382 | 445 | ||
383 | 446 | ||
384 | /* | 447 | /* |
385 | * Irda | 448 | * Irda |
386 | */ | 449 | */ |
387 | static void corgi_irda_transceiver_mode(struct device *dev, int mode) | ||
388 | { | ||
389 | gpio_set_value(CORGI_GPIO_IR_ON, mode & IR_OFF); | ||
390 | pxa2xx_transceiver_mode(dev, mode); | ||
391 | } | ||
392 | |||
393 | static int corgi_irda_startup(struct device *dev) | ||
394 | { | ||
395 | int err; | ||
396 | |||
397 | err = gpio_request(CORGI_GPIO_IR_ON, "IR_ON"); | ||
398 | if (err) | ||
399 | return err; | ||
400 | |||
401 | gpio_direction_output(CORGI_GPIO_IR_ON, 1); | ||
402 | return 0; | ||
403 | } | ||
404 | |||
405 | static void corgi_irda_shutdown(struct device *dev) | ||
406 | { | ||
407 | gpio_free(CORGI_GPIO_IR_ON); | ||
408 | } | ||
409 | |||
410 | static struct pxaficp_platform_data corgi_ficp_platform_data = { | 450 | static struct pxaficp_platform_data corgi_ficp_platform_data = { |
451 | .gpio_pwdown = CORGI_GPIO_IR_ON, | ||
411 | .transceiver_cap = IR_SIRMODE | IR_OFF, | 452 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
412 | .transceiver_mode = corgi_irda_transceiver_mode, | ||
413 | .startup = corgi_irda_startup, | ||
414 | .shutdown = corgi_irda_shutdown, | ||
415 | }; | 453 | }; |
416 | 454 | ||
417 | 455 | ||
@@ -636,6 +674,7 @@ static void __init corgi_init(void) | |||
636 | corgi_init_spi(); | 674 | corgi_init_spi(); |
637 | 675 | ||
638 | pxa_set_udc_info(&udc_info); | 676 | pxa_set_udc_info(&udc_info); |
677 | corgi_mci_platform_data.detect_delay = msecs_to_jiffies(250); | ||
639 | pxa_set_mci_info(&corgi_mci_platform_data); | 678 | pxa_set_mci_info(&corgi_mci_platform_data); |
640 | pxa_set_ficp_info(&corgi_ficp_platform_data); | 679 | pxa_set_ficp_info(&corgi_ficp_platform_data); |
641 | pxa_set_i2c_info(NULL); | 680 | pxa_set_i2c_info(NULL); |
diff --git a/arch/arm/mach-pxa/cpufreq-pxa2xx.c b/arch/arm/mach-pxa/cpufreq-pxa2xx.c index 3a8ee2272add..983cc8c20081 100644 --- a/arch/arm/mach-pxa/cpufreq-pxa2xx.c +++ b/arch/arm/mach-pxa/cpufreq-pxa2xx.c | |||
@@ -155,7 +155,7 @@ MODULE_PARM_DESC(pxa255_turbo_table, "Selects the frequency table (0 = run table | |||
155 | 155 | ||
156 | static pxa_freqs_t pxa27x_freqs[] = { | 156 | static pxa_freqs_t pxa27x_freqs[] = { |
157 | {104000, 104000, PXA27x_CCCR(1, 8, 2), 0, CCLKCFG2(1, 0, 1), 900000, 1705000 }, | 157 | {104000, 104000, PXA27x_CCCR(1, 8, 2), 0, CCLKCFG2(1, 0, 1), 900000, 1705000 }, |
158 | {156000, 104000, PXA27x_CCCR(1, 8, 6), 0, CCLKCFG2(1, 1, 1), 1000000, 1705000 }, | 158 | {156000, 104000, PXA27x_CCCR(1, 8, 3), 0, CCLKCFG2(1, 0, 1), 1000000, 1705000 }, |
159 | {208000, 208000, PXA27x_CCCR(0, 16, 2), 1, CCLKCFG2(0, 0, 1), 1180000, 1705000 }, | 159 | {208000, 208000, PXA27x_CCCR(0, 16, 2), 1, CCLKCFG2(0, 0, 1), 1180000, 1705000 }, |
160 | {312000, 208000, PXA27x_CCCR(1, 16, 3), 1, CCLKCFG2(1, 0, 1), 1250000, 1705000 }, | 160 | {312000, 208000, PXA27x_CCCR(1, 16, 3), 1, CCLKCFG2(1, 0, 1), 1250000, 1705000 }, |
161 | {416000, 208000, PXA27x_CCCR(1, 16, 4), 1, CCLKCFG2(1, 0, 1), 1350000, 1705000 }, | 161 | {416000, 208000, PXA27x_CCCR(1, 16, 4), 1, CCLKCFG2(1, 0, 1), 1350000, 1705000 }, |
diff --git a/arch/arm/mach-pxa/csb726.c b/arch/arm/mach-pxa/csb726.c index 7d3e1b46e550..965480eb4fe6 100644 --- a/arch/arm/mach-pxa/csb726.c +++ b/arch/arm/mach-pxa/csb726.c | |||
@@ -130,61 +130,17 @@ static struct pxamci_platform_data csb726_mci_data; | |||
130 | static int csb726_mci_init(struct device *dev, | 130 | static int csb726_mci_init(struct device *dev, |
131 | irq_handler_t detect, void *data) | 131 | irq_handler_t detect, void *data) |
132 | { | 132 | { |
133 | int err; | ||
134 | |||
135 | csb726_mci_data.detect_delay = msecs_to_jiffies(500); | 133 | csb726_mci_data.detect_delay = msecs_to_jiffies(500); |
136 | |||
137 | err = gpio_request(CSB726_GPIO_MMC_DETECT, "MMC detect"); | ||
138 | if (err) | ||
139 | goto err_det_req; | ||
140 | |||
141 | err = gpio_direction_input(CSB726_GPIO_MMC_DETECT); | ||
142 | if (err) | ||
143 | goto err_det_dir; | ||
144 | |||
145 | err = gpio_request(CSB726_GPIO_MMC_RO, "MMC ro"); | ||
146 | if (err) | ||
147 | goto err_ro_req; | ||
148 | |||
149 | err = gpio_direction_input(CSB726_GPIO_MMC_RO); | ||
150 | if (err) | ||
151 | goto err_ro_dir; | ||
152 | |||
153 | err = request_irq(gpio_to_irq(CSB726_GPIO_MMC_DETECT), detect, | ||
154 | IRQF_DISABLED, "MMC card detect", data); | ||
155 | if (err) | ||
156 | goto err_irq; | ||
157 | |||
158 | return 0; | 134 | return 0; |
159 | |||
160 | err_irq: | ||
161 | err_ro_dir: | ||
162 | gpio_free(CSB726_GPIO_MMC_RO); | ||
163 | err_ro_req: | ||
164 | err_det_dir: | ||
165 | gpio_free(CSB726_GPIO_MMC_DETECT); | ||
166 | err_det_req: | ||
167 | return err; | ||
168 | } | ||
169 | |||
170 | static int csb726_mci_get_ro(struct device *dev) | ||
171 | { | ||
172 | return gpio_get_value(CSB726_GPIO_MMC_RO); | ||
173 | } | ||
174 | |||
175 | static void csb726_mci_exit(struct device *dev, void *data) | ||
176 | { | ||
177 | free_irq(gpio_to_irq(CSB726_GPIO_MMC_DETECT), data); | ||
178 | gpio_free(CSB726_GPIO_MMC_RO); | ||
179 | gpio_free(CSB726_GPIO_MMC_DETECT); | ||
180 | } | 135 | } |
181 | 136 | ||
182 | static struct pxamci_platform_data csb726_mci = { | 137 | static struct pxamci_platform_data csb726_mci = { |
183 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 138 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
184 | .init = csb726_mci_init, | 139 | .init = csb726_mci_init, |
185 | .get_ro = csb726_mci_get_ro, | ||
186 | /* FIXME setpower */ | 140 | /* FIXME setpower */ |
187 | .exit = csb726_mci_exit, | 141 | .gpio_card_detect = CSB726_GPIO_MMC_DETECT, |
142 | .gpio_card_ro = CSB726_GPIO_MMC_RO, | ||
143 | .gpio_power = -1, | ||
188 | }; | 144 | }; |
189 | 145 | ||
190 | static struct pxaohci_platform_data csb726_ohci_platform_data = { | 146 | static struct pxaohci_platform_data csb726_ohci_platform_data = { |
@@ -282,7 +238,7 @@ static struct resource csb726_lan_resources[] = { | |||
282 | }; | 238 | }; |
283 | 239 | ||
284 | struct smsc911x_platform_config csb726_lan_config = { | 240 | struct smsc911x_platform_config csb726_lan_config = { |
285 | .irq_type = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, | 241 | .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, |
286 | .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, | 242 | .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, |
287 | .flags = SMSC911X_USE_32BIT, | 243 | .flags = SMSC911X_USE_32BIT, |
288 | .phy_interface = PHY_INTERFACE_MODE_MII, | 244 | .phy_interface = PHY_INTERFACE_MODE_MII, |
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c index ecc08f360b68..46fabe1cca11 100644 --- a/arch/arm/mach-pxa/devices.c +++ b/arch/arm/mach-pxa/devices.c | |||
@@ -935,6 +935,33 @@ void __init pxa3xx_set_nand_info(struct pxa3xx_nand_platform_data *info) | |||
935 | { | 935 | { |
936 | pxa_register_device(&pxa3xx_device_nand, info); | 936 | pxa_register_device(&pxa3xx_device_nand, info); |
937 | } | 937 | } |
938 | |||
939 | static struct resource pxa3xx_resources_gcu[] = { | ||
940 | { | ||
941 | .start = 0x54000000, | ||
942 | .end = 0x54000fff, | ||
943 | .flags = IORESOURCE_MEM, | ||
944 | }, | ||
945 | { | ||
946 | .start = IRQ_GCU, | ||
947 | .end = IRQ_GCU, | ||
948 | .flags = IORESOURCE_IRQ, | ||
949 | }, | ||
950 | }; | ||
951 | |||
952 | static u64 pxa3xx_gcu_dmamask = DMA_BIT_MASK(32); | ||
953 | |||
954 | struct platform_device pxa3xx_device_gcu = { | ||
955 | .name = "pxa3xx-gcu", | ||
956 | .id = -1, | ||
957 | .num_resources = ARRAY_SIZE(pxa3xx_resources_gcu), | ||
958 | .resource = pxa3xx_resources_gcu, | ||
959 | .dev = { | ||
960 | .dma_mask = &pxa3xx_gcu_dmamask, | ||
961 | .coherent_dma_mask = 0xffffffff, | ||
962 | }, | ||
963 | }; | ||
964 | |||
938 | #endif /* CONFIG_PXA3xx */ | 965 | #endif /* CONFIG_PXA3xx */ |
939 | 966 | ||
940 | /* pxa2xx-spi platform-device ID equals respective SSP platform-device ID + 1. | 967 | /* pxa2xx-spi platform-device ID equals respective SSP platform-device ID + 1. |
diff --git a/arch/arm/mach-pxa/devices.h b/arch/arm/mach-pxa/devices.h index ecc24a4dca6d..93817d99761e 100644 --- a/arch/arm/mach-pxa/devices.h +++ b/arch/arm/mach-pxa/devices.h | |||
@@ -35,4 +35,6 @@ extern struct platform_device pxa27x_device_pwm1; | |||
35 | extern struct platform_device pxa3xx_device_nand; | 35 | extern struct platform_device pxa3xx_device_nand; |
36 | extern struct platform_device pxa3xx_device_i2c_power; | 36 | extern struct platform_device pxa3xx_device_i2c_power; |
37 | 37 | ||
38 | extern struct platform_device pxa3xx_device_gcu; | ||
39 | |||
38 | void __init pxa_register_device(struct platform_device *dev, void *data); | 40 | void __init pxa_register_device(struct platform_device *dev, void *data); |
diff --git a/arch/arm/mach-pxa/e740.c b/arch/arm/mach-pxa/e740.c index a36fc17f671d..49acdfa6650d 100644 --- a/arch/arm/mach-pxa/e740.c +++ b/arch/arm/mach-pxa/e740.c | |||
@@ -199,7 +199,6 @@ static void __init e740_init(void) | |||
199 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 199 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
200 | pxa_set_udc_info(&e7xx_udc_mach_info); | 200 | pxa_set_udc_info(&e7xx_udc_mach_info); |
201 | pxa_set_ac97_info(NULL); | 201 | pxa_set_ac97_info(NULL); |
202 | e7xx_irda_init(); | ||
203 | pxa_set_ficp_info(&e7xx_ficp_platform_data); | 202 | pxa_set_ficp_info(&e7xx_ficp_platform_data); |
204 | } | 203 | } |
205 | 204 | ||
diff --git a/arch/arm/mach-pxa/e750.c b/arch/arm/mach-pxa/e750.c index 1d00110590e5..4052ece3ef49 100644 --- a/arch/arm/mach-pxa/e750.c +++ b/arch/arm/mach-pxa/e750.c | |||
@@ -200,7 +200,6 @@ static void __init e750_init(void) | |||
200 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 200 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
201 | pxa_set_udc_info(&e7xx_udc_mach_info); | 201 | pxa_set_udc_info(&e7xx_udc_mach_info); |
202 | pxa_set_ac97_info(NULL); | 202 | pxa_set_ac97_info(NULL); |
203 | e7xx_irda_init(); | ||
204 | pxa_set_ficp_info(&e7xx_ficp_platform_data); | 203 | pxa_set_ficp_info(&e7xx_ficp_platform_data); |
205 | } | 204 | } |
206 | 205 | ||
diff --git a/arch/arm/mach-pxa/em-x270.c b/arch/arm/mach-pxa/em-x270.c index 9cd09465a0e8..aec7f4214b14 100644 --- a/arch/arm/mach-pxa/em-x270.c +++ b/arch/arm/mach-pxa/em-x270.c | |||
@@ -646,13 +646,16 @@ static int em_x270_mci_get_ro(struct device *dev) | |||
646 | } | 646 | } |
647 | 647 | ||
648 | static struct pxamci_platform_data em_x270_mci_platform_data = { | 648 | static struct pxamci_platform_data em_x270_mci_platform_data = { |
649 | .ocr_mask = MMC_VDD_20_21|MMC_VDD_21_22|MMC_VDD_22_23| | 649 | .ocr_mask = MMC_VDD_20_21|MMC_VDD_21_22|MMC_VDD_22_23| |
650 | MMC_VDD_24_25|MMC_VDD_25_26|MMC_VDD_26_27| | 650 | MMC_VDD_24_25|MMC_VDD_25_26|MMC_VDD_26_27| |
651 | MMC_VDD_27_28|MMC_VDD_28_29|MMC_VDD_29_30| | 651 | MMC_VDD_27_28|MMC_VDD_28_29|MMC_VDD_29_30| |
652 | MMC_VDD_30_31|MMC_VDD_31_32, | 652 | MMC_VDD_30_31|MMC_VDD_31_32, |
653 | .init = em_x270_mci_init, | 653 | .init = em_x270_mci_init, |
654 | .setpower = em_x270_mci_setpower, | 654 | .setpower = em_x270_mci_setpower, |
655 | .exit = em_x270_mci_exit, | 655 | .exit = em_x270_mci_exit, |
656 | .gpio_card_detect = -1, | ||
657 | .gpio_card_ro = -1, | ||
658 | .gpio_power = -1, | ||
656 | }; | 659 | }; |
657 | 660 | ||
658 | static void __init em_x270_init_mmc(void) | 661 | static void __init em_x270_init_mmc(void) |
@@ -1022,22 +1025,32 @@ static int em_x270_sensor_power(struct device *dev, int on) | |||
1022 | return 0; | 1025 | return 0; |
1023 | } | 1026 | } |
1024 | 1027 | ||
1025 | static struct soc_camera_link iclink = { | ||
1026 | .bus_id = 0, | ||
1027 | .power = em_x270_sensor_power, | ||
1028 | }; | ||
1029 | |||
1030 | static struct i2c_board_info em_x270_i2c_cam_info[] = { | 1028 | static struct i2c_board_info em_x270_i2c_cam_info[] = { |
1031 | { | 1029 | { |
1032 | I2C_BOARD_INFO("mt9m111", 0x48), | 1030 | I2C_BOARD_INFO("mt9m111", 0x48), |
1031 | }, | ||
1032 | }; | ||
1033 | |||
1034 | static struct soc_camera_link iclink = { | ||
1035 | .bus_id = 0, | ||
1036 | .power = em_x270_sensor_power, | ||
1037 | .board_info = &em_x270_i2c_cam_info[0], | ||
1038 | .i2c_adapter_id = 0, | ||
1039 | .module_name = "mt9m111", | ||
1040 | }; | ||
1041 | |||
1042 | static struct platform_device em_x270_camera = { | ||
1043 | .name = "soc-camera-pdrv", | ||
1044 | .id = -1, | ||
1045 | .dev = { | ||
1033 | .platform_data = &iclink, | 1046 | .platform_data = &iclink, |
1034 | }, | 1047 | }, |
1035 | }; | 1048 | }; |
1036 | 1049 | ||
1037 | static void __init em_x270_init_camera(void) | 1050 | static void __init em_x270_init_camera(void) |
1038 | { | 1051 | { |
1039 | i2c_register_board_info(0, ARRAY_AND_SIZE(em_x270_i2c_cam_info)); | ||
1040 | pxa_set_camera_info(&em_x270_camera_platform_data); | 1052 | pxa_set_camera_info(&em_x270_camera_platform_data); |
1053 | platform_device_register(&em_x270_camera); | ||
1041 | } | 1054 | } |
1042 | #else | 1055 | #else |
1043 | static inline void em_x270_init_camera(void) {} | 1056 | static inline void em_x270_init_camera(void) {} |
@@ -1103,6 +1116,7 @@ REGULATOR_CONSUMER(ldo5, NULL, "vcc cam"); | |||
1103 | REGULATOR_CONSUMER(ldo10, &pxa_device_mci.dev, "vcc sdio"); | 1116 | REGULATOR_CONSUMER(ldo10, &pxa_device_mci.dev, "vcc sdio"); |
1104 | REGULATOR_CONSUMER(ldo12, NULL, "vcc usb"); | 1117 | REGULATOR_CONSUMER(ldo12, NULL, "vcc usb"); |
1105 | REGULATOR_CONSUMER(ldo19, &em_x270_gprs_userspace_consumer.dev, "vcc gprs"); | 1118 | REGULATOR_CONSUMER(ldo19, &em_x270_gprs_userspace_consumer.dev, "vcc gprs"); |
1119 | REGULATOR_CONSUMER(buck2, NULL, "vcc_core"); | ||
1106 | 1120 | ||
1107 | #define REGULATOR_INIT(_ldo, _min_uV, _max_uV, _ops_mask) \ | 1121 | #define REGULATOR_INIT(_ldo, _min_uV, _max_uV, _ops_mask) \ |
1108 | static struct regulator_init_data _ldo##_data = { \ | 1122 | static struct regulator_init_data _ldo##_data = { \ |
@@ -1125,6 +1139,7 @@ REGULATOR_INIT(ldo10, 2000000, 3200000, | |||
1125 | REGULATOR_CHANGE_STATUS | REGULATOR_CHANGE_VOLTAGE); | 1139 | REGULATOR_CHANGE_STATUS | REGULATOR_CHANGE_VOLTAGE); |
1126 | REGULATOR_INIT(ldo12, 3000000, 3000000, REGULATOR_CHANGE_STATUS); | 1140 | REGULATOR_INIT(ldo12, 3000000, 3000000, REGULATOR_CHANGE_STATUS); |
1127 | REGULATOR_INIT(ldo19, 3200000, 3200000, REGULATOR_CHANGE_STATUS); | 1141 | REGULATOR_INIT(ldo19, 3200000, 3200000, REGULATOR_CHANGE_STATUS); |
1142 | REGULATOR_INIT(buck2, 1000000, 1650000, REGULATOR_CHANGE_VOLTAGE); | ||
1128 | 1143 | ||
1129 | struct led_info em_x270_led_info = { | 1144 | struct led_info em_x270_led_info = { |
1130 | .name = "em-x270:orange", | 1145 | .name = "em-x270:orange", |
@@ -1194,6 +1209,8 @@ struct da903x_subdev_info em_x270_da9030_subdevs[] = { | |||
1194 | DA9030_LDO(12), | 1209 | DA9030_LDO(12), |
1195 | DA9030_LDO(19), | 1210 | DA9030_LDO(19), |
1196 | 1211 | ||
1212 | DA9030_SUBDEV(regulator, BUCK2, &buck2_data), | ||
1213 | |||
1197 | DA9030_SUBDEV(led, LED_PC, &em_x270_led_info), | 1214 | DA9030_SUBDEV(led, LED_PC, &em_x270_led_info), |
1198 | DA9030_SUBDEV(backlight, WLED, &em_x270_led_info), | 1215 | DA9030_SUBDEV(backlight, WLED, &em_x270_led_info), |
1199 | DA9030_SUBDEV(battery, BAT, &em_x270_batterty_info), | 1216 | DA9030_SUBDEV(battery, BAT, &em_x270_batterty_info), |
@@ -1245,7 +1262,6 @@ static void __init em_x270_init_i2c(void) | |||
1245 | 1262 | ||
1246 | static void __init em_x270_module_init(void) | 1263 | static void __init em_x270_module_init(void) |
1247 | { | 1264 | { |
1248 | pr_info("%s\n", __func__); | ||
1249 | pxa2xx_mfp_config(ARRAY_AND_SIZE(em_x270_pin_config)); | 1265 | pxa2xx_mfp_config(ARRAY_AND_SIZE(em_x270_pin_config)); |
1250 | 1266 | ||
1251 | mmc_cd = GPIO13_MMC_CD; | 1267 | mmc_cd = GPIO13_MMC_CD; |
@@ -1257,7 +1273,6 @@ static void __init em_x270_module_init(void) | |||
1257 | 1273 | ||
1258 | static void __init em_x270_exeda_init(void) | 1274 | static void __init em_x270_exeda_init(void) |
1259 | { | 1275 | { |
1260 | pr_info("%s\n", __func__); | ||
1261 | pxa2xx_mfp_config(ARRAY_AND_SIZE(exeda_pin_config)); | 1276 | pxa2xx_mfp_config(ARRAY_AND_SIZE(exeda_pin_config)); |
1262 | 1277 | ||
1263 | mmc_cd = GPIO114_MMC_CD; | 1278 | mmc_cd = GPIO114_MMC_CD; |
diff --git a/arch/arm/mach-pxa/eseries.c b/arch/arm/mach-pxa/eseries.c index c60dadf847a6..91417f035069 100644 --- a/arch/arm/mach-pxa/eseries.c +++ b/arch/arm/mach-pxa/eseries.c | |||
@@ -47,44 +47,9 @@ struct pxa2xx_udc_mach_info e7xx_udc_mach_info = { | |||
47 | .gpio_pullup_inverted = 1 | 47 | .gpio_pullup_inverted = 1 |
48 | }; | 48 | }; |
49 | 49 | ||
50 | static void e7xx_irda_transceiver_mode(struct device *dev, int mode) | ||
51 | { | ||
52 | if (mode & IR_OFF) { | ||
53 | gpio_set_value(GPIO_E7XX_IR_OFF, 1); | ||
54 | pxa2xx_transceiver_mode(dev, mode); | ||
55 | } else { | ||
56 | pxa2xx_transceiver_mode(dev, mode); | ||
57 | gpio_set_value(GPIO_E7XX_IR_OFF, 0); | ||
58 | } | ||
59 | } | ||
60 | |||
61 | int e7xx_irda_init(void) | ||
62 | { | ||
63 | int ret; | ||
64 | |||
65 | ret = gpio_request(GPIO_E7XX_IR_OFF, "IrDA power"); | ||
66 | if (ret) | ||
67 | goto out; | ||
68 | |||
69 | ret = gpio_direction_output(GPIO_E7XX_IR_OFF, 0); | ||
70 | if (ret) | ||
71 | goto out; | ||
72 | |||
73 | e7xx_irda_transceiver_mode(NULL, IR_SIRMODE | IR_OFF); | ||
74 | out: | ||
75 | return ret; | ||
76 | } | ||
77 | |||
78 | static void e7xx_irda_shutdown(struct device *dev) | ||
79 | { | ||
80 | e7xx_irda_transceiver_mode(dev, IR_SIRMODE | IR_OFF); | ||
81 | gpio_free(GPIO_E7XX_IR_OFF); | ||
82 | } | ||
83 | |||
84 | struct pxaficp_platform_data e7xx_ficp_platform_data = { | 50 | struct pxaficp_platform_data e7xx_ficp_platform_data = { |
85 | .transceiver_cap = IR_SIRMODE | IR_OFF, | 51 | .gpio_pwdown = GPIO_E7XX_IR_OFF, |
86 | .transceiver_mode = e7xx_irda_transceiver_mode, | 52 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
87 | .shutdown = e7xx_irda_shutdown, | ||
88 | }; | 53 | }; |
89 | 54 | ||
90 | int eseries_tmio_enable(struct platform_device *dev) | 55 | int eseries_tmio_enable(struct platform_device *dev) |
diff --git a/arch/arm/mach-pxa/gumstix.c b/arch/arm/mach-pxa/gumstix.c index ca9912ea78d9..1708c0109844 100644 --- a/arch/arm/mach-pxa/gumstix.c +++ b/arch/arm/mach-pxa/gumstix.c | |||
@@ -88,7 +88,10 @@ static struct platform_device *devices[] __initdata = { | |||
88 | 88 | ||
89 | #ifdef CONFIG_MMC_PXA | 89 | #ifdef CONFIG_MMC_PXA |
90 | static struct pxamci_platform_data gumstix_mci_platform_data = { | 90 | static struct pxamci_platform_data gumstix_mci_platform_data = { |
91 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 91 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
92 | .gpio_card_detect = -1, | ||
93 | .gpio_card_ro = -1, | ||
94 | .gpio_power = -1, | ||
92 | }; | 95 | }; |
93 | 96 | ||
94 | static void __init gumstix_mmc_init(void) | 97 | static void __init gumstix_mmc_init(void) |
diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c index 81359d574f88..abff9e132749 100644 --- a/arch/arm/mach-pxa/hx4700.c +++ b/arch/arm/mach-pxa/hx4700.c | |||
@@ -45,6 +45,7 @@ | |||
45 | #include <mach/irda.h> | 45 | #include <mach/irda.h> |
46 | #include <mach/pxa2xx_spi.h> | 46 | #include <mach/pxa2xx_spi.h> |
47 | 47 | ||
48 | #include <video/platform_lcd.h> | ||
48 | #include <video/w100fb.h> | 49 | #include <video/w100fb.h> |
49 | 50 | ||
50 | #include "devices.h" | 51 | #include "devices.h" |
@@ -174,14 +175,9 @@ static int hx4700_gpio_request(struct gpio_ress *gpios, int size) | |||
174 | * IRDA | 175 | * IRDA |
175 | */ | 176 | */ |
176 | 177 | ||
177 | static void irda_transceiver_mode(struct device *dev, int mode) | ||
178 | { | ||
179 | gpio_set_value(GPIO105_HX4700_nIR_ON, mode & IR_OFF); | ||
180 | } | ||
181 | |||
182 | static struct pxaficp_platform_data ficp_info = { | 178 | static struct pxaficp_platform_data ficp_info = { |
183 | .transceiver_cap = IR_SIRMODE | IR_OFF, | 179 | .gpio_pwdown = GPIO105_HX4700_nIR_ON, |
184 | .transceiver_mode = irda_transceiver_mode, | 180 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
185 | }; | 181 | }; |
186 | 182 | ||
187 | /* | 183 | /* |
@@ -368,8 +364,6 @@ static struct platform_device egpio = { | |||
368 | * LCD - Sony display connected to ATI Imageon w3220 | 364 | * LCD - Sony display connected to ATI Imageon w3220 |
369 | */ | 365 | */ |
370 | 366 | ||
371 | static int lcd_power; | ||
372 | |||
373 | static void sony_lcd_init(void) | 367 | static void sony_lcd_init(void) |
374 | { | 368 | { |
375 | gpio_set_value(GPIO84_HX4700_LCD_SQN, 1); | 369 | gpio_set_value(GPIO84_HX4700_LCD_SQN, 1); |
@@ -410,35 +404,6 @@ static void sony_lcd_off(void) | |||
410 | gpio_set_value(GPIO110_HX4700_LCD_LVDD_3V3_ON, 0); | 404 | gpio_set_value(GPIO110_HX4700_LCD_LVDD_3V3_ON, 0); |
411 | } | 405 | } |
412 | 406 | ||
413 | static int hx4700_lcd_set_power(struct lcd_device *ldev, int level) | ||
414 | { | ||
415 | switch (level) { | ||
416 | case FB_BLANK_UNBLANK: | ||
417 | sony_lcd_init(); | ||
418 | break; | ||
419 | case FB_BLANK_NORMAL: | ||
420 | case FB_BLANK_VSYNC_SUSPEND: | ||
421 | case FB_BLANK_HSYNC_SUSPEND: | ||
422 | case FB_BLANK_POWERDOWN: | ||
423 | sony_lcd_off(); | ||
424 | break; | ||
425 | } | ||
426 | lcd_power = level; | ||
427 | return 0; | ||
428 | } | ||
429 | |||
430 | static int hx4700_lcd_get_power(struct lcd_device *lm) | ||
431 | { | ||
432 | return lcd_power; | ||
433 | } | ||
434 | |||
435 | static struct lcd_ops hx4700_lcd_ops = { | ||
436 | .get_power = hx4700_lcd_get_power, | ||
437 | .set_power = hx4700_lcd_set_power, | ||
438 | }; | ||
439 | |||
440 | static struct lcd_device *hx4700_lcd_device; | ||
441 | |||
442 | #ifdef CONFIG_PM | 407 | #ifdef CONFIG_PM |
443 | static void w3220_lcd_suspend(struct w100fb_par *wfb) | 408 | static void w3220_lcd_suspend(struct w100fb_par *wfb) |
444 | { | 409 | { |
@@ -573,6 +538,27 @@ static struct platform_device w3220 = { | |||
573 | .resource = w3220_resources, | 538 | .resource = w3220_resources, |
574 | }; | 539 | }; |
575 | 540 | ||
541 | static void hx4700_lcd_set_power(struct plat_lcd_data *pd, unsigned int power) | ||
542 | { | ||
543 | if (power) | ||
544 | sony_lcd_init(); | ||
545 | else | ||
546 | sony_lcd_off(); | ||
547 | } | ||
548 | |||
549 | static struct plat_lcd_data hx4700_lcd_data = { | ||
550 | .set_power = hx4700_lcd_set_power, | ||
551 | }; | ||
552 | |||
553 | static struct platform_device hx4700_lcd = { | ||
554 | .name = "platform-lcd", | ||
555 | .id = -1, | ||
556 | .dev = { | ||
557 | .platform_data = &hx4700_lcd_data, | ||
558 | .parent = &w3220.dev, | ||
559 | }, | ||
560 | }; | ||
561 | |||
576 | /* | 562 | /* |
577 | * Backlight | 563 | * Backlight |
578 | */ | 564 | */ |
@@ -872,9 +858,6 @@ static void __init hx4700_init(void) | |||
872 | pxa2xx_set_spi_info(2, &pxa_ssp2_master_info); | 858 | pxa2xx_set_spi_info(2, &pxa_ssp2_master_info); |
873 | spi_register_board_info(ARRAY_AND_SIZE(tsc2046_board_info)); | 859 | spi_register_board_info(ARRAY_AND_SIZE(tsc2046_board_info)); |
874 | 860 | ||
875 | hx4700_lcd_device = lcd_device_register("w100fb", NULL, | ||
876 | (void *)&w3220_info, &hx4700_lcd_ops); | ||
877 | |||
878 | gpio_set_value(GPIO71_HX4700_ASIC3_nRESET, 0); | 861 | gpio_set_value(GPIO71_HX4700_ASIC3_nRESET, 0); |
879 | mdelay(10); | 862 | mdelay(10); |
880 | gpio_set_value(GPIO71_HX4700_ASIC3_nRESET, 1); | 863 | gpio_set_value(GPIO71_HX4700_ASIC3_nRESET, 1); |
diff --git a/arch/arm/mach-pxa/idp.c b/arch/arm/mach-pxa/idp.c index b6243b59d9be..b6486ef20b17 100644 --- a/arch/arm/mach-pxa/idp.c +++ b/arch/arm/mach-pxa/idp.c | |||
@@ -168,7 +168,10 @@ static struct pxafb_mach_info sharp_lm8v31 = { | |||
168 | }; | 168 | }; |
169 | 169 | ||
170 | static struct pxamci_platform_data idp_mci_platform_data = { | 170 | static struct pxamci_platform_data idp_mci_platform_data = { |
171 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 171 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
172 | .gpio_card_detect = -1, | ||
173 | .gpio_card_ro = -1, | ||
174 | .gpio_power = -1, | ||
172 | }; | 175 | }; |
173 | 176 | ||
174 | static void __init idp_init(void) | 177 | static void __init idp_init(void) |
diff --git a/arch/arm/mach-pxa/imote2.c b/arch/arm/mach-pxa/imote2.c index 961807dc6467..2a4945db31c5 100644 --- a/arch/arm/mach-pxa/imote2.c +++ b/arch/arm/mach-pxa/imote2.c | |||
@@ -389,6 +389,9 @@ static int imote2_mci_get_ro(struct device *dev) | |||
389 | static struct pxamci_platform_data imote2_mci_platform_data = { | 389 | static struct pxamci_platform_data imote2_mci_platform_data = { |
390 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, /* default anyway */ | 390 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, /* default anyway */ |
391 | .get_ro = imote2_mci_get_ro, | 391 | .get_ro = imote2_mci_get_ro, |
392 | .gpio_card_detect = -1, | ||
393 | .gpio_card_ro = -1, | ||
394 | .gpio_power = -1, | ||
392 | }; | 395 | }; |
393 | 396 | ||
394 | static struct mtd_partition imote2flash_partitions[] = { | 397 | static struct mtd_partition imote2flash_partitions[] = { |
diff --git a/arch/arm/mach-pxa/include/mach/balloon3.h b/arch/arm/mach-pxa/include/mach/balloon3.h new file mode 100644 index 000000000000..bfec09b1814b --- /dev/null +++ b/arch/arm/mach-pxa/include/mach/balloon3.h | |||
@@ -0,0 +1,134 @@ | |||
1 | /* | ||
2 | * linux/include/asm-arm/arch-pxa/balloon3.h | ||
3 | * | ||
4 | * Authors: Nick Bane and Wookey | ||
5 | * Created: Oct, 2005 | ||
6 | * Copyright: Toby Churchill Ltd | ||
7 | * Cribbed from mainstone.c, by Nicholas Pitre | ||
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 | #ifndef ASM_ARCH_BALLOON3_H | ||
15 | #define ASM_ARCH_BALLOON3_H | ||
16 | |||
17 | enum balloon3_features { | ||
18 | BALLOON3_FEATURE_OHCI, | ||
19 | BALLOON3_FEATURE_MMC, | ||
20 | BALLOON3_FEATURE_CF, | ||
21 | BALLOON3_FEATURE_AUDIO, | ||
22 | BALLOON3_FEATURE_TOPPOLY, | ||
23 | }; | ||
24 | |||
25 | #define BALLOON3_FPGA_PHYS PXA_CS4_PHYS | ||
26 | #define BALLOON3_FPGA_VIRT (0xf1000000) /* as per balloon2 */ | ||
27 | #define BALLOON3_FPGA_LENGTH 0x01000000 | ||
28 | |||
29 | /* FPGA/CPLD registers */ | ||
30 | #define BALLOON3_PCMCIA0_REG (BALLOON3_FPGA_VIRT + 0x00e00008) | ||
31 | /* fixme - same for now */ | ||
32 | #define BALLOON3_PCMCIA1_REG (BALLOON3_FPGA_VIRT + 0x00e00008) | ||
33 | #define BALLOON3_NANDIO_IO_REG (BALLOON3_FPGA_VIRT + 0x00e00000) | ||
34 | /* fpga/cpld interrupt control register */ | ||
35 | #define BALLOON3_INT_CONTROL_REG (BALLOON3_FPGA_VIRT + 0x00e0000C) | ||
36 | #define BALLOON3_NANDIO_CTL2_REG (BALLOON3_FPGA_VIRT + 0x00e00010) | ||
37 | #define BALLOON3_NANDIO_CTL_REG (BALLOON3_FPGA_VIRT + 0x00e00014) | ||
38 | #define BALLOON3_VERSION_REG (BALLOON3_FPGA_VIRT + 0x00e0001c) | ||
39 | |||
40 | #define BALLOON3_SAMOSA_ADDR_REG (BALLOON3_FPGA_VIRT + 0x00c00000) | ||
41 | #define BALLOON3_SAMOSA_DATA_REG (BALLOON3_FPGA_VIRT + 0x00c00004) | ||
42 | #define BALLOON3_SAMOSA_STATUS_REG (BALLOON3_FPGA_VIRT + 0x00c0001c) | ||
43 | |||
44 | /* GPIOs for irqs */ | ||
45 | #define BALLOON3_GPIO_AUX_NIRQ (94) | ||
46 | #define BALLOON3_GPIO_CODEC_IRQ (95) | ||
47 | |||
48 | /* Timer and Idle LED locations */ | ||
49 | #define BALLOON3_GPIO_LED_NAND (9) | ||
50 | #define BALLOON3_GPIO_LED_IDLE (10) | ||
51 | |||
52 | /* backlight control */ | ||
53 | #define BALLOON3_GPIO_RUN_BACKLIGHT (99) | ||
54 | |||
55 | #define BALLOON3_GPIO_S0_CD (105) | ||
56 | |||
57 | /* FPGA Interrupt Mask/Acknowledge Register */ | ||
58 | #define BALLOON3_INT_S0_IRQ (1 << 0) /* PCMCIA 0 IRQ */ | ||
59 | #define BALLOON3_INT_S0_STSCHG (1 << 1) /* PCMCIA 0 status changed */ | ||
60 | |||
61 | /* CF Status Register */ | ||
62 | #define BALLOON3_PCMCIA_nIRQ (1 << 0) /* IRQ / ready signal */ | ||
63 | #define BALLOON3_PCMCIA_nSTSCHG_BVD1 (1 << 1) | ||
64 | /* VDD sense / card status changed */ | ||
65 | |||
66 | /* CF control register (write) */ | ||
67 | #define BALLOON3_PCMCIA_RESET (1 << 0) /* Card reset signal */ | ||
68 | #define BALLOON3_PCMCIA_ENABLE (1 << 1) | ||
69 | #define BALLOON3_PCMCIA_ADD_ENABLE (1 << 2) | ||
70 | |||
71 | /* CPLD (and FPGA) interface definitions */ | ||
72 | #define CPLD_LCD0_DATA_SET 0x00 | ||
73 | #define CPLD_LCD0_DATA_CLR 0x10 | ||
74 | #define CPLD_LCD0_COMMAND_SET 0x01 | ||
75 | #define CPLD_LCD0_COMMAND_CLR 0x11 | ||
76 | #define CPLD_LCD1_DATA_SET 0x02 | ||
77 | #define CPLD_LCD1_DATA_CLR 0x12 | ||
78 | #define CPLD_LCD1_COMMAND_SET 0x03 | ||
79 | #define CPLD_LCD1_COMMAND_CLR 0x13 | ||
80 | |||
81 | #define CPLD_MISC_SET 0x07 | ||
82 | #define CPLD_MISC_CLR 0x17 | ||
83 | #define CPLD_MISC_LOON_NRESET_BIT 0 | ||
84 | #define CPLD_MISC_LOON_UNSUSP_BIT 1 | ||
85 | #define CPLD_MISC_RUN_5V_BIT 2 | ||
86 | #define CPLD_MISC_CHG_D0_BIT 3 | ||
87 | #define CPLD_MISC_CHG_D1_BIT 4 | ||
88 | #define CPLD_MISC_DAC_NCS_BIT 5 | ||
89 | |||
90 | #define CPLD_LCD_SET 0x08 | ||
91 | #define CPLD_LCD_CLR 0x18 | ||
92 | #define CPLD_LCD_BACKLIGHT_EN_0_BIT 0 | ||
93 | #define CPLD_LCD_BACKLIGHT_EN_1_BIT 1 | ||
94 | #define CPLD_LCD_LED_RED_BIT 4 | ||
95 | #define CPLD_LCD_LED_GREEN_BIT 5 | ||
96 | #define CPLD_LCD_NRESET_BIT 7 | ||
97 | |||
98 | #define CPLD_LCD_RO_SET 0x09 | ||
99 | #define CPLD_LCD_RO_CLR 0x19 | ||
100 | #define CPLD_LCD_RO_LCD0_nWAIT_BIT 0 | ||
101 | #define CPLD_LCD_RO_LCD1_nWAIT_BIT 1 | ||
102 | |||
103 | #define CPLD_SERIAL_SET 0x0a | ||
104 | #define CPLD_SERIAL_CLR 0x1a | ||
105 | #define CPLD_SERIAL_GSM_RI_BIT 0 | ||
106 | #define CPLD_SERIAL_GSM_CTS_BIT 1 | ||
107 | #define CPLD_SERIAL_GSM_DTR_BIT 2 | ||
108 | #define CPLD_SERIAL_LPR_CTS_BIT 3 | ||
109 | #define CPLD_SERIAL_TC232_CTS_BIT 4 | ||
110 | #define CPLD_SERIAL_TC232_DSR_BIT 5 | ||
111 | |||
112 | #define CPLD_SROUTING_SET 0x0b | ||
113 | #define CPLD_SROUTING_CLR 0x1b | ||
114 | #define CPLD_SROUTING_MSP430_LPR 0 | ||
115 | #define CPLD_SROUTING_MSP430_TC232 1 | ||
116 | #define CPLD_SROUTING_MSP430_GSM 2 | ||
117 | #define CPLD_SROUTING_LOON_LPR (0 << 4) | ||
118 | #define CPLD_SROUTING_LOON_TC232 (1 << 4) | ||
119 | #define CPLD_SROUTING_LOON_GSM (2 << 4) | ||
120 | |||
121 | #define CPLD_AROUTING_SET 0x0c | ||
122 | #define CPLD_AROUTING_CLR 0x1c | ||
123 | #define CPLD_AROUTING_MIC2PHONE_BIT 0 | ||
124 | #define CPLD_AROUTING_PHONE2INT_BIT 1 | ||
125 | #define CPLD_AROUTING_PHONE2EXT_BIT 2 | ||
126 | #define CPLD_AROUTING_LOONL2INT_BIT 3 | ||
127 | #define CPLD_AROUTING_LOONL2EXT_BIT 4 | ||
128 | #define CPLD_AROUTING_LOONR2PHONE_BIT 5 | ||
129 | #define CPLD_AROUTING_LOONR2INT_BIT 6 | ||
130 | #define CPLD_AROUTING_LOONR2EXT_BIT 7 | ||
131 | |||
132 | extern int balloon3_has(enum balloon3_features feature); | ||
133 | |||
134 | #endif | ||
diff --git a/arch/arm/mach-pxa/include/mach/colibri.h b/arch/arm/mach-pxa/include/mach/colibri.h index a88d7caff0d1..811743c56147 100644 --- a/arch/arm/mach-pxa/include/mach/colibri.h +++ b/arch/arm/mach-pxa/include/mach/colibri.h | |||
@@ -23,6 +23,12 @@ static inline void colibri_pxa3xx_init_lcd(int bl_pin) {} | |||
23 | extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data); | 23 | extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data); |
24 | #endif | 24 | #endif |
25 | 25 | ||
26 | #if defined(CONFIG_MTD_NAND_PXA3xx) || defined(CONFIG_MTD_NAND_PXA3xx_MODULE) | ||
27 | extern void colibri_pxa3xx_init_nand(void); | ||
28 | #else | ||
29 | static inline void colibri_pxa3xx_init_nand(void) {} | ||
30 | #endif | ||
31 | |||
26 | /* physical memory regions */ | 32 | /* physical memory regions */ |
27 | #define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */ | 33 | #define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */ |
28 | 34 | ||
diff --git a/arch/arm/mach-pxa/include/mach/entry-macro.S b/arch/arm/mach-pxa/include/mach/entry-macro.S index f6b4bf3e73d2..241880608ac6 100644 --- a/arch/arm/mach-pxa/include/mach/entry-macro.S +++ b/arch/arm/mach-pxa/include/mach/entry-macro.S | |||
@@ -24,34 +24,27 @@ | |||
24 | mov \tmp, \tmp, lsr #13 | 24 | mov \tmp, \tmp, lsr #13 |
25 | and \tmp, \tmp, #0x7 @ Core G | 25 | and \tmp, \tmp, #0x7 @ Core G |
26 | cmp \tmp, #1 | 26 | cmp \tmp, #1 |
27 | bhi 1004f | 27 | bhi 1002f |
28 | 28 | ||
29 | @ Core Generation 1 (PXA25x) | ||
29 | mov \base, #io_p2v(0x40000000) @ IIR Ctl = 0x40d00000 | 30 | mov \base, #io_p2v(0x40000000) @ IIR Ctl = 0x40d00000 |
30 | add \base, \base, #0x00d00000 | 31 | add \base, \base, #0x00d00000 |
31 | ldr \irqstat, [\base, #0] @ ICIP | 32 | ldr \irqstat, [\base, #0] @ ICIP |
32 | ldr \irqnr, [\base, #4] @ ICMR | 33 | ldr \irqnr, [\base, #4] @ ICMR |
33 | b 1002f | ||
34 | 34 | ||
35 | 1004: | ||
36 | mrc p6, 0, \irqstat, c6, c0, 0 @ ICIP2 | ||
37 | mrc p6, 0, \irqnr, c7, c0, 0 @ ICMR2 | ||
38 | ands \irqnr, \irqstat, \irqnr | 35 | ands \irqnr, \irqstat, \irqnr |
39 | beq 1003f | 36 | beq 1001f |
40 | rsb \irqstat, \irqnr, #0 | 37 | rsb \irqstat, \irqnr, #0 |
41 | and \irqstat, \irqstat, \irqnr | 38 | and \irqstat, \irqstat, \irqnr |
42 | clz \irqnr, \irqstat | 39 | clz \irqnr, \irqstat |
43 | rsb \irqnr, \irqnr, #31 | 40 | rsb \irqnr, \irqnr, #(31 + PXA_IRQ(0)) |
44 | add \irqnr, \irqnr, #(32 + PXA_IRQ(0)) | ||
45 | b 1001f | 41 | b 1001f |
46 | 1003: | ||
47 | mrc p6, 0, \irqstat, c0, c0, 0 @ ICIP | ||
48 | mrc p6, 0, \irqnr, c1, c0, 0 @ ICMR | ||
49 | 1002: | 42 | 1002: |
50 | ands \irqnr, \irqstat, \irqnr | 43 | @ Core Generation 2 (PXA27x) or Core Generation 3 (PXA3xx) |
44 | mrc p6, 0, \irqstat, c5, c0, 0 @ ICHP | ||
45 | tst \irqstat, #0x80000000 | ||
51 | beq 1001f | 46 | beq 1001f |
52 | rsb \irqstat, \irqnr, #0 | 47 | bic \irqstat, \irqstat, #0x80000000 |
53 | and \irqstat, \irqstat, \irqnr | 48 | mov \irqnr, \irqstat, lsr #16 |
54 | clz \irqnr, \irqstat | ||
55 | rsb \irqnr, \irqnr, #(31 + PXA_IRQ(0)) | ||
56 | 1001: | 49 | 1001: |
57 | .endm | 50 | .endm |
diff --git a/arch/arm/mach-pxa/include/mach/hardware.h b/arch/arm/mach-pxa/include/mach/hardware.h index 16ab79547dae..aa3d9f70a08a 100644 --- a/arch/arm/mach-pxa/include/mach/hardware.h +++ b/arch/arm/mach-pxa/include/mach/hardware.h | |||
@@ -197,6 +197,16 @@ | |||
197 | #define __cpu_is_pxa935(id) (0) | 197 | #define __cpu_is_pxa935(id) (0) |
198 | #endif | 198 | #endif |
199 | 199 | ||
200 | #ifdef CONFIG_CPU_PXA950 | ||
201 | #define __cpu_is_pxa950(id) \ | ||
202 | ({ \ | ||
203 | unsigned int _id = (id) >> 4 & 0xfff; \ | ||
204 | id == 0x697; \ | ||
205 | }) | ||
206 | #else | ||
207 | #define __cpu_is_pxa950(id) (0) | ||
208 | #endif | ||
209 | |||
200 | #define cpu_is_pxa210() \ | 210 | #define cpu_is_pxa210() \ |
201 | ({ \ | 211 | ({ \ |
202 | __cpu_is_pxa210(read_cpuid_id()); \ | 212 | __cpu_is_pxa210(read_cpuid_id()); \ |
@@ -249,6 +259,13 @@ | |||
249 | __cpu_is_pxa935(id); \ | 259 | __cpu_is_pxa935(id); \ |
250 | }) | 260 | }) |
251 | 261 | ||
262 | #define cpu_is_pxa950() \ | ||
263 | ({ \ | ||
264 | unsigned int id = read_cpuid(CPUID_ID); \ | ||
265 | __cpu_is_pxa950(id); \ | ||
266 | }) | ||
267 | |||
268 | |||
252 | /* | 269 | /* |
253 | * CPUID Core Generation Bit | 270 | * CPUID Core Generation Bit |
254 | * <= 0x2 for pxa21x/pxa25x/pxa26x/pxa27x | 271 | * <= 0x2 for pxa21x/pxa25x/pxa26x/pxa27x |
diff --git a/arch/arm/mach-pxa/include/mach/irda.h b/arch/arm/mach-pxa/include/mach/irda.h index 0a50c3c763df..3cd41f77dda4 100644 --- a/arch/arm/mach-pxa/include/mach/irda.h +++ b/arch/arm/mach-pxa/include/mach/irda.h | |||
@@ -12,6 +12,8 @@ struct pxaficp_platform_data { | |||
12 | void (*transceiver_mode)(struct device *dev, int mode); | 12 | void (*transceiver_mode)(struct device *dev, int mode); |
13 | int (*startup)(struct device *dev); | 13 | int (*startup)(struct device *dev); |
14 | void (*shutdown)(struct device *dev); | 14 | void (*shutdown)(struct device *dev); |
15 | int gpio_pwdown; /* powerdown GPIO for the IrDA chip */ | ||
16 | bool gpio_pwdown_inverted; /* gpio_pwdown is inverted */ | ||
15 | }; | 17 | }; |
16 | 18 | ||
17 | extern void pxa_set_ficp_info(struct pxaficp_platform_data *info); | 19 | extern void pxa_set_ficp_info(struct pxaficp_platform_data *info); |
diff --git a/arch/arm/mach-pxa/include/mach/irqs.h b/arch/arm/mach-pxa/include/mach/irqs.h index 6a1d95993342..3677a9af9c87 100644 --- a/arch/arm/mach-pxa/include/mach/irqs.h +++ b/arch/arm/mach-pxa/include/mach/irqs.h | |||
@@ -68,9 +68,10 @@ | |||
68 | #ifdef CONFIG_PXA3xx | 68 | #ifdef CONFIG_PXA3xx |
69 | #define IRQ_SSP4 PXA_IRQ(13) /* SSP4 service request */ | 69 | #define IRQ_SSP4 PXA_IRQ(13) /* SSP4 service request */ |
70 | #define IRQ_CIR PXA_IRQ(34) /* Consumer IR */ | 70 | #define IRQ_CIR PXA_IRQ(34) /* Consumer IR */ |
71 | #define IRQ_COMM_WDT PXA_IRQ(35) /* Comm WDT interrupt */ | ||
71 | #define IRQ_TSI PXA_IRQ(36) /* Touch Screen Interface (PXA320) */ | 72 | #define IRQ_TSI PXA_IRQ(36) /* Touch Screen Interface (PXA320) */ |
72 | #define IRQ_USIM2 PXA_IRQ(38) /* USIM2 Controller */ | 73 | #define IRQ_USIM2 PXA_IRQ(38) /* USIM2 Controller */ |
73 | #define IRQ_GRPHICS PXA_IRQ(39) /* Graphics Controller */ | 74 | #define IRQ_GCU PXA_IRQ(39) /* Graphics Controller */ |
74 | #define IRQ_MMC2 PXA_IRQ(41) /* MMC2 Controller */ | 75 | #define IRQ_MMC2 PXA_IRQ(41) /* MMC2 Controller */ |
75 | #define IRQ_1WIRE PXA_IRQ(44) /* 1-Wire Controller */ | 76 | #define IRQ_1WIRE PXA_IRQ(44) /* 1-Wire Controller */ |
76 | #define IRQ_NAND PXA_IRQ(45) /* NAND Controller */ | 77 | #define IRQ_NAND PXA_IRQ(45) /* NAND Controller */ |
@@ -81,8 +82,31 @@ | |||
81 | #define IRQ_MMC3 PXA_IRQ(55) /* MMC3 Controller (PXA310) */ | 82 | #define IRQ_MMC3 PXA_IRQ(55) /* MMC3 Controller (PXA310) */ |
82 | #endif | 83 | #endif |
83 | 84 | ||
84 | #define PXA_GPIO_IRQ_BASE PXA_IRQ(64) | 85 | #ifdef CONFIG_CPU_PXA935 |
85 | #define PXA_GPIO_IRQ_NUM (128) | 86 | #define IRQ_U2O PXA_IRQ(64) /* USB OTG 2.0 Controller (PXA935) */ |
87 | #define IRQ_U2H PXA_IRQ(65) /* USB Host 2.0 Controller (PXA935) */ | ||
88 | |||
89 | #define IRQ_MMC3_PXA935 PXA_IRQ(72) /* MMC3 Controller (PXA935) */ | ||
90 | #define IRQ_MMC4_PXA935 PXA_IRQ(73) /* MMC4 Controller (PXA935) */ | ||
91 | #define IRQ_MMC5_PXA935 PXA_IRQ(74) /* MMC5 Controller (PXA935) */ | ||
92 | |||
93 | #define IRQ_U2P PXA_IRQ(93) /* USB PHY D+/D- Lines (PXA935) */ | ||
94 | #endif | ||
95 | |||
96 | #ifdef CONFIG_CPU_PXA930 | ||
97 | #define IRQ_ENHROT PXA_IRQ(37) /* Enhanced Rotary (PXA930) */ | ||
98 | #define IRQ_ACIPC0 PXA_IRQ(5) | ||
99 | #define IRQ_ACIPC1 PXA_IRQ(40) | ||
100 | #define IRQ_ACIPC2 PXA_IRQ(19) | ||
101 | #define IRQ_TRKBALL PXA_IRQ(43) /* Track Ball */ | ||
102 | #endif | ||
103 | |||
104 | #ifdef CONFIG_CPU_PXA950 | ||
105 | #define IRQ_GC500 PXA_IRQ(70) /* Graphics Controller (PXA950) */ | ||
106 | #endif | ||
107 | |||
108 | #define PXA_GPIO_IRQ_BASE PXA_IRQ(96) | ||
109 | #define PXA_GPIO_IRQ_NUM (192) | ||
86 | 110 | ||
87 | #define GPIO_2_x_TO_IRQ(x) (PXA_GPIO_IRQ_BASE + (x)) | 111 | #define GPIO_2_x_TO_IRQ(x) (PXA_GPIO_IRQ_BASE + (x)) |
88 | #define IRQ_GPIO(x) (((x) < 2) ? (IRQ_GPIO0 + (x)) : GPIO_2_x_TO_IRQ(x)) | 112 | #define IRQ_GPIO(x) (((x) < 2) ? (IRQ_GPIO0 + (x)) : GPIO_2_x_TO_IRQ(x)) |
@@ -105,6 +129,8 @@ | |||
105 | #define IRQ_BOARD_END (IRQ_BOARD_START + 70) | 129 | #define IRQ_BOARD_END (IRQ_BOARD_START + 70) |
106 | #elif defined(CONFIG_MACH_ZYLONITE) | 130 | #elif defined(CONFIG_MACH_ZYLONITE) |
107 | #define IRQ_BOARD_END (IRQ_BOARD_START + 32) | 131 | #define IRQ_BOARD_END (IRQ_BOARD_START + 32) |
132 | #elif defined(CONFIG_PXA_EZX) | ||
133 | #define IRQ_BOARD_END (IRQ_BOARD_START + 23) | ||
108 | #else | 134 | #else |
109 | #define IRQ_BOARD_END (IRQ_BOARD_START + 16) | 135 | #define IRQ_BOARD_END (IRQ_BOARD_START + 16) |
110 | #endif | 136 | #endif |
@@ -237,6 +263,16 @@ | |||
237 | #define MAINSTONE_S1_STSCHG_IRQ MAINSTONE_IRQ(14) | 263 | #define MAINSTONE_S1_STSCHG_IRQ MAINSTONE_IRQ(14) |
238 | #define MAINSTONE_S1_IRQ MAINSTONE_IRQ(15) | 264 | #define MAINSTONE_S1_IRQ MAINSTONE_IRQ(15) |
239 | 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 | |||
240 | /* LoCoMo Interrupts (CONFIG_SHARP_LOCOMO) */ | 276 | /* LoCoMo Interrupts (CONFIG_SHARP_LOCOMO) */ |
241 | #define IRQ_LOCOMO_KEY_BASE (IRQ_BOARD_START + 0) | 277 | #define IRQ_LOCOMO_KEY_BASE (IRQ_BOARD_START + 0) |
242 | #define IRQ_LOCOMO_GPIO_BASE (IRQ_BOARD_START + 1) | 278 | #define IRQ_LOCOMO_GPIO_BASE (IRQ_BOARD_START + 1) |
diff --git a/arch/arm/mach-pxa/include/mach/mfp.h b/arch/arm/mach-pxa/include/mach/mfp.h index 482185053a92..271e249ae34f 100644 --- a/arch/arm/mach-pxa/include/mach/mfp.h +++ b/arch/arm/mach-pxa/include/mach/mfp.h | |||
@@ -16,305 +16,6 @@ | |||
16 | #ifndef __ASM_ARCH_MFP_H | 16 | #ifndef __ASM_ARCH_MFP_H |
17 | #define __ASM_ARCH_MFP_H | 17 | #define __ASM_ARCH_MFP_H |
18 | 18 | ||
19 | #define mfp_to_gpio(m) ((m) % 128) | 19 | #include <plat/mfp.h> |
20 | |||
21 | /* list of all the configurable MFP pins */ | ||
22 | enum { | ||
23 | MFP_PIN_INVALID = -1, | ||
24 | |||
25 | MFP_PIN_GPIO0 = 0, | ||
26 | MFP_PIN_GPIO1, | ||
27 | MFP_PIN_GPIO2, | ||
28 | MFP_PIN_GPIO3, | ||
29 | MFP_PIN_GPIO4, | ||
30 | MFP_PIN_GPIO5, | ||
31 | MFP_PIN_GPIO6, | ||
32 | MFP_PIN_GPIO7, | ||
33 | MFP_PIN_GPIO8, | ||
34 | MFP_PIN_GPIO9, | ||
35 | MFP_PIN_GPIO10, | ||
36 | MFP_PIN_GPIO11, | ||
37 | MFP_PIN_GPIO12, | ||
38 | MFP_PIN_GPIO13, | ||
39 | MFP_PIN_GPIO14, | ||
40 | MFP_PIN_GPIO15, | ||
41 | MFP_PIN_GPIO16, | ||
42 | MFP_PIN_GPIO17, | ||
43 | MFP_PIN_GPIO18, | ||
44 | MFP_PIN_GPIO19, | ||
45 | MFP_PIN_GPIO20, | ||
46 | MFP_PIN_GPIO21, | ||
47 | MFP_PIN_GPIO22, | ||
48 | MFP_PIN_GPIO23, | ||
49 | MFP_PIN_GPIO24, | ||
50 | MFP_PIN_GPIO25, | ||
51 | MFP_PIN_GPIO26, | ||
52 | MFP_PIN_GPIO27, | ||
53 | MFP_PIN_GPIO28, | ||
54 | MFP_PIN_GPIO29, | ||
55 | MFP_PIN_GPIO30, | ||
56 | MFP_PIN_GPIO31, | ||
57 | MFP_PIN_GPIO32, | ||
58 | MFP_PIN_GPIO33, | ||
59 | MFP_PIN_GPIO34, | ||
60 | MFP_PIN_GPIO35, | ||
61 | MFP_PIN_GPIO36, | ||
62 | MFP_PIN_GPIO37, | ||
63 | MFP_PIN_GPIO38, | ||
64 | MFP_PIN_GPIO39, | ||
65 | MFP_PIN_GPIO40, | ||
66 | MFP_PIN_GPIO41, | ||
67 | MFP_PIN_GPIO42, | ||
68 | MFP_PIN_GPIO43, | ||
69 | MFP_PIN_GPIO44, | ||
70 | MFP_PIN_GPIO45, | ||
71 | MFP_PIN_GPIO46, | ||
72 | MFP_PIN_GPIO47, | ||
73 | MFP_PIN_GPIO48, | ||
74 | MFP_PIN_GPIO49, | ||
75 | MFP_PIN_GPIO50, | ||
76 | MFP_PIN_GPIO51, | ||
77 | MFP_PIN_GPIO52, | ||
78 | MFP_PIN_GPIO53, | ||
79 | MFP_PIN_GPIO54, | ||
80 | MFP_PIN_GPIO55, | ||
81 | MFP_PIN_GPIO56, | ||
82 | MFP_PIN_GPIO57, | ||
83 | MFP_PIN_GPIO58, | ||
84 | MFP_PIN_GPIO59, | ||
85 | MFP_PIN_GPIO60, | ||
86 | MFP_PIN_GPIO61, | ||
87 | MFP_PIN_GPIO62, | ||
88 | MFP_PIN_GPIO63, | ||
89 | MFP_PIN_GPIO64, | ||
90 | MFP_PIN_GPIO65, | ||
91 | MFP_PIN_GPIO66, | ||
92 | MFP_PIN_GPIO67, | ||
93 | MFP_PIN_GPIO68, | ||
94 | MFP_PIN_GPIO69, | ||
95 | MFP_PIN_GPIO70, | ||
96 | MFP_PIN_GPIO71, | ||
97 | MFP_PIN_GPIO72, | ||
98 | MFP_PIN_GPIO73, | ||
99 | MFP_PIN_GPIO74, | ||
100 | MFP_PIN_GPIO75, | ||
101 | MFP_PIN_GPIO76, | ||
102 | MFP_PIN_GPIO77, | ||
103 | MFP_PIN_GPIO78, | ||
104 | MFP_PIN_GPIO79, | ||
105 | MFP_PIN_GPIO80, | ||
106 | MFP_PIN_GPIO81, | ||
107 | MFP_PIN_GPIO82, | ||
108 | MFP_PIN_GPIO83, | ||
109 | MFP_PIN_GPIO84, | ||
110 | MFP_PIN_GPIO85, | ||
111 | MFP_PIN_GPIO86, | ||
112 | MFP_PIN_GPIO87, | ||
113 | MFP_PIN_GPIO88, | ||
114 | MFP_PIN_GPIO89, | ||
115 | MFP_PIN_GPIO90, | ||
116 | MFP_PIN_GPIO91, | ||
117 | MFP_PIN_GPIO92, | ||
118 | MFP_PIN_GPIO93, | ||
119 | MFP_PIN_GPIO94, | ||
120 | MFP_PIN_GPIO95, | ||
121 | MFP_PIN_GPIO96, | ||
122 | MFP_PIN_GPIO97, | ||
123 | MFP_PIN_GPIO98, | ||
124 | MFP_PIN_GPIO99, | ||
125 | MFP_PIN_GPIO100, | ||
126 | MFP_PIN_GPIO101, | ||
127 | MFP_PIN_GPIO102, | ||
128 | MFP_PIN_GPIO103, | ||
129 | MFP_PIN_GPIO104, | ||
130 | MFP_PIN_GPIO105, | ||
131 | MFP_PIN_GPIO106, | ||
132 | MFP_PIN_GPIO107, | ||
133 | MFP_PIN_GPIO108, | ||
134 | MFP_PIN_GPIO109, | ||
135 | MFP_PIN_GPIO110, | ||
136 | MFP_PIN_GPIO111, | ||
137 | MFP_PIN_GPIO112, | ||
138 | MFP_PIN_GPIO113, | ||
139 | MFP_PIN_GPIO114, | ||
140 | MFP_PIN_GPIO115, | ||
141 | MFP_PIN_GPIO116, | ||
142 | MFP_PIN_GPIO117, | ||
143 | MFP_PIN_GPIO118, | ||
144 | MFP_PIN_GPIO119, | ||
145 | MFP_PIN_GPIO120, | ||
146 | MFP_PIN_GPIO121, | ||
147 | MFP_PIN_GPIO122, | ||
148 | MFP_PIN_GPIO123, | ||
149 | MFP_PIN_GPIO124, | ||
150 | MFP_PIN_GPIO125, | ||
151 | MFP_PIN_GPIO126, | ||
152 | MFP_PIN_GPIO127, | ||
153 | MFP_PIN_GPIO0_2, | ||
154 | MFP_PIN_GPIO1_2, | ||
155 | MFP_PIN_GPIO2_2, | ||
156 | MFP_PIN_GPIO3_2, | ||
157 | MFP_PIN_GPIO4_2, | ||
158 | MFP_PIN_GPIO5_2, | ||
159 | MFP_PIN_GPIO6_2, | ||
160 | MFP_PIN_GPIO7_2, | ||
161 | MFP_PIN_GPIO8_2, | ||
162 | MFP_PIN_GPIO9_2, | ||
163 | MFP_PIN_GPIO10_2, | ||
164 | MFP_PIN_GPIO11_2, | ||
165 | MFP_PIN_GPIO12_2, | ||
166 | MFP_PIN_GPIO13_2, | ||
167 | MFP_PIN_GPIO14_2, | ||
168 | MFP_PIN_GPIO15_2, | ||
169 | MFP_PIN_GPIO16_2, | ||
170 | MFP_PIN_GPIO17_2, | ||
171 | |||
172 | MFP_PIN_ULPI_STP, | ||
173 | MFP_PIN_ULPI_NXT, | ||
174 | MFP_PIN_ULPI_DIR, | ||
175 | |||
176 | MFP_PIN_nXCVREN, | ||
177 | MFP_PIN_DF_CLE_nOE, | ||
178 | MFP_PIN_DF_nADV1_ALE, | ||
179 | MFP_PIN_DF_SCLK_E, | ||
180 | MFP_PIN_DF_SCLK_S, | ||
181 | MFP_PIN_nBE0, | ||
182 | MFP_PIN_nBE1, | ||
183 | MFP_PIN_DF_nADV2_ALE, | ||
184 | MFP_PIN_DF_INT_RnB, | ||
185 | MFP_PIN_DF_nCS0, | ||
186 | MFP_PIN_DF_nCS1, | ||
187 | MFP_PIN_nLUA, | ||
188 | MFP_PIN_nLLA, | ||
189 | MFP_PIN_DF_nWE, | ||
190 | MFP_PIN_DF_ALE_nWE, | ||
191 | MFP_PIN_DF_nRE_nOE, | ||
192 | MFP_PIN_DF_ADDR0, | ||
193 | MFP_PIN_DF_ADDR1, | ||
194 | MFP_PIN_DF_ADDR2, | ||
195 | MFP_PIN_DF_ADDR3, | ||
196 | MFP_PIN_DF_IO0, | ||
197 | MFP_PIN_DF_IO1, | ||
198 | MFP_PIN_DF_IO2, | ||
199 | MFP_PIN_DF_IO3, | ||
200 | MFP_PIN_DF_IO4, | ||
201 | MFP_PIN_DF_IO5, | ||
202 | MFP_PIN_DF_IO6, | ||
203 | MFP_PIN_DF_IO7, | ||
204 | MFP_PIN_DF_IO8, | ||
205 | MFP_PIN_DF_IO9, | ||
206 | MFP_PIN_DF_IO10, | ||
207 | MFP_PIN_DF_IO11, | ||
208 | MFP_PIN_DF_IO12, | ||
209 | MFP_PIN_DF_IO13, | ||
210 | MFP_PIN_DF_IO14, | ||
211 | MFP_PIN_DF_IO15, | ||
212 | |||
213 | /* additional pins on PXA930 */ | ||
214 | MFP_PIN_GSIM_UIO, | ||
215 | MFP_PIN_GSIM_UCLK, | ||
216 | MFP_PIN_GSIM_UDET, | ||
217 | MFP_PIN_GSIM_nURST, | ||
218 | MFP_PIN_PMIC_INT, | ||
219 | MFP_PIN_RDY, | ||
220 | |||
221 | MFP_PIN_MAX, | ||
222 | }; | ||
223 | |||
224 | /* | ||
225 | * a possible MFP configuration is represented by a 32-bit integer | ||
226 | * | ||
227 | * bit 0.. 9 - MFP Pin Number (1024 Pins Maximum) | ||
228 | * bit 10..12 - Alternate Function Selection | ||
229 | * bit 13..15 - Drive Strength | ||
230 | * bit 16..18 - Low Power Mode State | ||
231 | * bit 19..20 - Low Power Mode Edge Detection | ||
232 | * bit 21..22 - Run Mode Pull State | ||
233 | * | ||
234 | * to facilitate the definition, the following macros are provided | ||
235 | * | ||
236 | * MFP_CFG_DEFAULT - default MFP configuration value, with | ||
237 | * alternate function = 0, | ||
238 | * drive strength = fast 3mA (MFP_DS03X) | ||
239 | * low power mode = default | ||
240 | * edge detection = none | ||
241 | * | ||
242 | * MFP_CFG - default MFPR value with alternate function | ||
243 | * MFP_CFG_DRV - default MFPR value with alternate function and | ||
244 | * pin drive strength | ||
245 | * MFP_CFG_LPM - default MFPR value with alternate function and | ||
246 | * low power mode | ||
247 | * MFP_CFG_X - default MFPR value with alternate function, | ||
248 | * pin drive strength and low power mode | ||
249 | */ | ||
250 | |||
251 | typedef unsigned long mfp_cfg_t; | ||
252 | |||
253 | #define MFP_PIN(x) ((x) & 0x3ff) | ||
254 | |||
255 | #define MFP_AF0 (0x0 << 10) | ||
256 | #define MFP_AF1 (0x1 << 10) | ||
257 | #define MFP_AF2 (0x2 << 10) | ||
258 | #define MFP_AF3 (0x3 << 10) | ||
259 | #define MFP_AF4 (0x4 << 10) | ||
260 | #define MFP_AF5 (0x5 << 10) | ||
261 | #define MFP_AF6 (0x6 << 10) | ||
262 | #define MFP_AF7 (0x7 << 10) | ||
263 | #define MFP_AF_MASK (0x7 << 10) | ||
264 | #define MFP_AF(x) (((x) >> 10) & 0x7) | ||
265 | |||
266 | #define MFP_DS01X (0x0 << 13) | ||
267 | #define MFP_DS02X (0x1 << 13) | ||
268 | #define MFP_DS03X (0x2 << 13) | ||
269 | #define MFP_DS04X (0x3 << 13) | ||
270 | #define MFP_DS06X (0x4 << 13) | ||
271 | #define MFP_DS08X (0x5 << 13) | ||
272 | #define MFP_DS10X (0x6 << 13) | ||
273 | #define MFP_DS13X (0x7 << 13) | ||
274 | #define MFP_DS_MASK (0x7 << 13) | ||
275 | #define MFP_DS(x) (((x) >> 13) & 0x7) | ||
276 | |||
277 | #define MFP_LPM_DEFAULT (0x0 << 16) | ||
278 | #define MFP_LPM_DRIVE_LOW (0x1 << 16) | ||
279 | #define MFP_LPM_DRIVE_HIGH (0x2 << 16) | ||
280 | #define MFP_LPM_PULL_LOW (0x3 << 16) | ||
281 | #define MFP_LPM_PULL_HIGH (0x4 << 16) | ||
282 | #define MFP_LPM_FLOAT (0x5 << 16) | ||
283 | #define MFP_LPM_INPUT (0x6 << 16) | ||
284 | #define MFP_LPM_STATE_MASK (0x7 << 16) | ||
285 | #define MFP_LPM_STATE(x) (((x) >> 16) & 0x7) | ||
286 | |||
287 | #define MFP_LPM_EDGE_NONE (0x0 << 19) | ||
288 | #define MFP_LPM_EDGE_RISE (0x1 << 19) | ||
289 | #define MFP_LPM_EDGE_FALL (0x2 << 19) | ||
290 | #define MFP_LPM_EDGE_BOTH (0x3 << 19) | ||
291 | #define MFP_LPM_EDGE_MASK (0x3 << 19) | ||
292 | #define MFP_LPM_EDGE(x) (((x) >> 19) & 0x3) | ||
293 | |||
294 | #define MFP_PULL_NONE (0x0 << 21) | ||
295 | #define MFP_PULL_LOW (0x1 << 21) | ||
296 | #define MFP_PULL_HIGH (0x2 << 21) | ||
297 | #define MFP_PULL_BOTH (0x3 << 21) | ||
298 | #define MFP_PULL_MASK (0x3 << 21) | ||
299 | #define MFP_PULL(x) (((x) >> 21) & 0x3) | ||
300 | |||
301 | #define MFP_CFG_DEFAULT (MFP_AF0 | MFP_DS03X | MFP_LPM_DEFAULT |\ | ||
302 | MFP_LPM_EDGE_NONE | MFP_PULL_NONE) | ||
303 | |||
304 | #define MFP_CFG(pin, af) \ | ||
305 | ((MFP_CFG_DEFAULT & ~MFP_AF_MASK) |\ | ||
306 | (MFP_PIN(MFP_PIN_##pin) | MFP_##af)) | ||
307 | |||
308 | #define MFP_CFG_DRV(pin, af, drv) \ | ||
309 | ((MFP_CFG_DEFAULT & ~(MFP_AF_MASK | MFP_DS_MASK)) |\ | ||
310 | (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_##drv)) | ||
311 | |||
312 | #define MFP_CFG_LPM(pin, af, lpm) \ | ||
313 | ((MFP_CFG_DEFAULT & ~(MFP_AF_MASK | MFP_LPM_STATE_MASK)) |\ | ||
314 | (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_LPM_##lpm)) | ||
315 | |||
316 | #define MFP_CFG_X(pin, af, drv, lpm) \ | ||
317 | ((MFP_CFG_DEFAULT & ~(MFP_AF_MASK | MFP_DS_MASK | MFP_LPM_STATE_MASK)) |\ | ||
318 | (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_##drv | MFP_LPM_##lpm)) | ||
319 | 20 | ||
320 | #endif /* __ASM_ARCH_MFP_H */ | 21 | #endif /* __ASM_ARCH_MFP_H */ |
diff --git a/arch/arm/mach-pxa/include/mach/mmc.h b/arch/arm/mach-pxa/include/mach/mmc.h index 6d1304c9270f..02a69dc2ee63 100644 --- a/arch/arm/mach-pxa/include/mach/mmc.h +++ b/arch/arm/mach-pxa/include/mach/mmc.h | |||
@@ -14,6 +14,11 @@ struct pxamci_platform_data { | |||
14 | int (*get_ro)(struct device *); | 14 | int (*get_ro)(struct device *); |
15 | void (*setpower)(struct device *, unsigned int); | 15 | void (*setpower)(struct device *, unsigned int); |
16 | void (*exit)(struct device *, void *); | 16 | void (*exit)(struct device *, void *); |
17 | int gpio_card_detect; /* gpio detecting card insertion */ | ||
18 | int gpio_card_ro; /* gpio detecting read only toggle */ | ||
19 | bool gpio_card_ro_invert; /* gpio ro is inverted */ | ||
20 | int gpio_power; /* gpio powering up MMC bus */ | ||
21 | bool gpio_power_invert; /* gpio power is inverted */ | ||
17 | }; | 22 | }; |
18 | 23 | ||
19 | extern void pxa_set_mci_info(struct pxamci_platform_data *info); | 24 | extern void pxa_set_mci_info(struct pxamci_platform_data *info); |
diff --git a/arch/arm/mach-pxa/include/mach/palmtc.h b/arch/arm/mach-pxa/include/mach/palmtc.h new file mode 100644 index 000000000000..3dc9b074ab46 --- /dev/null +++ b/arch/arm/mach-pxa/include/mach/palmtc.h | |||
@@ -0,0 +1,86 @@ | |||
1 | /* | ||
2 | * linux/include/asm-arm/arch-pxa/palmtc-gpio.h | ||
3 | * | ||
4 | * GPIOs and interrupts for Palm Tungsten|C Handheld Computer | ||
5 | * | ||
6 | * Authors: Alex Osborne <bobofdoom@gmail.com> | ||
7 | * Marek Vasut <marek.vasut@gmail.com> | ||
8 | * Holger Bocklet <bitz.email@gmx.net> | ||
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 version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | * | ||
14 | */ | ||
15 | |||
16 | #ifndef _INCLUDE_PALMTC_H_ | ||
17 | #define _INCLUDE_PALMTC_H_ | ||
18 | |||
19 | /** HERE ARE GPIOs **/ | ||
20 | |||
21 | /* GPIOs */ | ||
22 | #define GPIO_NR_PALMTC_EARPHONE_DETECT 2 | ||
23 | #define GPIO_NR_PALMTC_CRADLE_DETECT 5 | ||
24 | #define GPIO_NR_PALMTC_HOTSYNC_BUTTON 7 | ||
25 | |||
26 | /* SD/MMC */ | ||
27 | #define GPIO_NR_PALMTC_SD_DETECT_N 12 | ||
28 | #define GPIO_NR_PALMTC_SD_POWER 32 | ||
29 | #define GPIO_NR_PALMTC_SD_READONLY 54 | ||
30 | |||
31 | /* WLAN */ | ||
32 | #define GPIO_NR_PALMTC_PCMCIA_READY 13 | ||
33 | #define GPIO_NR_PALMTC_PCMCIA_PWRREADY 14 | ||
34 | #define GPIO_NR_PALMTC_PCMCIA_POWER1 15 | ||
35 | #define GPIO_NR_PALMTC_PCMCIA_POWER2 33 | ||
36 | #define GPIO_NR_PALMTC_PCMCIA_POWER3 55 | ||
37 | #define GPIO_NR_PALMTC_PCMCIA_RESET 78 | ||
38 | |||
39 | /* UDC */ | ||
40 | #define GPIO_NR_PALMTC_USB_DETECT_N 4 | ||
41 | #define GPIO_NR_PALMTC_USB_POWER 36 | ||
42 | |||
43 | /* LCD/BACKLIGHT */ | ||
44 | #define GPIO_NR_PALMTC_BL_POWER 16 | ||
45 | #define GPIO_NR_PALMTC_LCD_POWER 44 | ||
46 | #define GPIO_NR_PALMTC_LCD_BLANK 38 | ||
47 | |||
48 | /* UART */ | ||
49 | #define GPIO_NR_PALMTC_RS232_POWER 37 | ||
50 | |||
51 | /* IRDA */ | ||
52 | #define GPIO_NR_PALMTC_IR_DISABLE 45 | ||
53 | |||
54 | /* IRQs */ | ||
55 | #define IRQ_GPIO_PALMTC_SD_DETECT_N IRQ_GPIO(GPIO_NR_PALMTC_SD_DETECT_N) | ||
56 | #define IRQ_GPIO_PALMTC_WLAN_READY IRQ_GPIO(GPIO_NR_PALMTC_WLAN_READY) | ||
57 | |||
58 | /* UCB1400 GPIOs */ | ||
59 | #define GPIO_NR_PALMTC_POWER_DETECT (0x80 | 0x00) | ||
60 | #define GPIO_NR_PALMTC_HEADPHONE_DETECT (0x80 | 0x01) | ||
61 | #define GPIO_NR_PALMTC_SPEAKER_ENABLE (0x80 | 0x03) | ||
62 | #define GPIO_NR_PALMTC_VIBRA_POWER (0x80 | 0x05) | ||
63 | #define GPIO_NR_PALMTC_LED_POWER (0x80 | 0x07) | ||
64 | |||
65 | /** HERE ARE INIT VALUES **/ | ||
66 | #define PALMTC_UCB1400_GPIO_OFFSET 0x80 | ||
67 | |||
68 | /* BATTERY */ | ||
69 | #define PALMTC_BAT_MAX_VOLTAGE 4000 /* 4.00V maximum voltage */ | ||
70 | #define PALMTC_BAT_MIN_VOLTAGE 3550 /* 3.55V critical voltage */ | ||
71 | #define PALMTC_BAT_MAX_CURRENT 0 /* unknokn */ | ||
72 | #define PALMTC_BAT_MIN_CURRENT 0 /* unknown */ | ||
73 | #define PALMTC_BAT_MAX_CHARGE 1 /* unknown */ | ||
74 | #define PALMTC_BAT_MIN_CHARGE 1 /* unknown */ | ||
75 | #define PALMTC_MAX_LIFE_MINS 240 /* on-life in minutes */ | ||
76 | |||
77 | #define PALMTC_BAT_MEASURE_DELAY (HZ * 1) | ||
78 | |||
79 | /* BACKLIGHT */ | ||
80 | #define PALMTC_MAX_INTENSITY 0xFE | ||
81 | #define PALMTC_DEFAULT_INTENSITY 0x7E | ||
82 | #define PALMTC_LIMIT_MASK 0x7F | ||
83 | #define PALMTC_PRESCALER 0x3F | ||
84 | #define PALMTC_PERIOD_NS 3500 | ||
85 | |||
86 | #endif | ||
diff --git a/arch/arm/mach-pxa/include/mach/palmtx.h b/arch/arm/mach-pxa/include/mach/palmtx.h index e74082c872e1..1be0db6ed55e 100644 --- a/arch/arm/mach-pxa/include/mach/palmtx.h +++ b/arch/arm/mach-pxa/include/mach/palmtx.h | |||
@@ -82,6 +82,11 @@ | |||
82 | #define PALMTX_PHYS_FLASH_START PXA_CS0_PHYS /* ChipSelect 0 */ | 82 | #define PALMTX_PHYS_FLASH_START PXA_CS0_PHYS /* ChipSelect 0 */ |
83 | #define PALMTX_PHYS_NAND_START PXA_CS1_PHYS /* ChipSelect 1 */ | 83 | #define PALMTX_PHYS_NAND_START PXA_CS1_PHYS /* ChipSelect 1 */ |
84 | 84 | ||
85 | #define PALMTX_NAND_ALE_PHYS (PALMTX_PHYS_NAND_START | (1 << 24)) | ||
86 | #define PALMTX_NAND_CLE_PHYS (PALMTX_PHYS_NAND_START | (1 << 25)) | ||
87 | #define PALMTX_NAND_ALE_VIRT 0xff100000 | ||
88 | #define PALMTX_NAND_CLE_VIRT 0xff200000 | ||
89 | |||
85 | /* TOUCHSCREEN */ | 90 | /* TOUCHSCREEN */ |
86 | #define AC97_LINK_FRAME 21 | 91 | #define AC97_LINK_FRAME 21 |
87 | 92 | ||
diff --git a/arch/arm/mach-pxa/include/mach/pxa3xx-regs.h b/arch/arm/mach-pxa/include/mach/pxa3xx-regs.h index 7d1a059b3d43..e91d63cfe811 100644 --- a/arch/arm/mach-pxa/include/mach/pxa3xx-regs.h +++ b/arch/arm/mach-pxa/include/mach/pxa3xx-regs.h | |||
@@ -208,7 +208,7 @@ | |||
208 | #define CKEN_MVED 43 /* < MVED clock enable */ | 208 | #define CKEN_MVED 43 /* < MVED clock enable */ |
209 | 209 | ||
210 | /* Note: GCU clock enable bit differs on PXA300/PXA310 and PXA320 */ | 210 | /* Note: GCU clock enable bit differs on PXA300/PXA310 and PXA320 */ |
211 | #define PXA300_CKEN_GRAPHICS 42 /* Graphics controller clock enable */ | 211 | #define CKEN_PXA300_GCU 42 /* Graphics controller clock enable */ |
212 | #define PXA320_CKEN_GRAPHICS 7 /* Graphics controller clock enable */ | 212 | #define CKEN_PXA320_GCU 7 /* Graphics controller clock enable */ |
213 | 213 | ||
214 | #endif /* __ASM_ARCH_PXA3XX_REGS_H */ | 214 | #endif /* __ASM_ARCH_PXA3XX_REGS_H */ |
diff --git a/arch/arm/mach-pxa/include/mach/pxafb.h b/arch/arm/mach-pxa/include/mach/pxafb.h index 6932720ba04e..f73061c90b5e 100644 --- a/arch/arm/mach-pxa/include/mach/pxafb.h +++ b/arch/arm/mach-pxa/include/mach/pxafb.h | |||
@@ -118,7 +118,8 @@ struct pxafb_mach_info { | |||
118 | u_int fixed_modes:1, | 118 | u_int fixed_modes:1, |
119 | cmap_inverse:1, | 119 | cmap_inverse:1, |
120 | cmap_static:1, | 120 | cmap_static:1, |
121 | unused:29; | 121 | acceleration_enabled:1, |
122 | unused:28; | ||
122 | 123 | ||
123 | /* The following should be defined in LCCR0 | 124 | /* The following should be defined in LCCR0 |
124 | * LCCR0_Act or LCCR0_Pas Active or Passive | 125 | * LCCR0_Act or LCCR0_Pas Active or Passive |
diff --git a/arch/arm/mach-pxa/include/mach/regs-intc.h b/arch/arm/mach-pxa/include/mach/regs-intc.h index ad23e74b762f..68464ce1c1ea 100644 --- a/arch/arm/mach-pxa/include/mach/regs-intc.h +++ b/arch/arm/mach-pxa/include/mach/regs-intc.h | |||
@@ -13,6 +13,7 @@ | |||
13 | #define ICFP __REG(0x40D0000C) /* Interrupt Controller FIQ Pending Register */ | 13 | #define ICFP __REG(0x40D0000C) /* Interrupt Controller FIQ Pending Register */ |
14 | #define ICPR __REG(0x40D00010) /* Interrupt Controller Pending Register */ | 14 | #define ICPR __REG(0x40D00010) /* Interrupt Controller Pending Register */ |
15 | #define ICCR __REG(0x40D00014) /* Interrupt Controller Control Register */ | 15 | #define ICCR __REG(0x40D00014) /* Interrupt Controller Control Register */ |
16 | #define ICHP __REG(0x40D00018) /* Interrupt Controller Highest Priority Register */ | ||
16 | 17 | ||
17 | #define ICIP2 __REG(0x40D0009C) /* Interrupt Controller IRQ Pending Register 2 */ | 18 | #define ICIP2 __REG(0x40D0009C) /* Interrupt Controller IRQ Pending Register 2 */ |
18 | #define ICMR2 __REG(0x40D000A0) /* Interrupt Controller Mask Register 2 */ | 19 | #define ICMR2 __REG(0x40D000A0) /* Interrupt Controller Mask Register 2 */ |
@@ -20,4 +21,14 @@ | |||
20 | #define ICFP2 __REG(0x40D000A8) /* Interrupt Controller FIQ Pending Register 2 */ | 21 | #define ICFP2 __REG(0x40D000A8) /* Interrupt Controller FIQ Pending Register 2 */ |
21 | #define ICPR2 __REG(0x40D000AC) /* Interrupt Controller Pending Register 2 */ | 22 | #define ICPR2 __REG(0x40D000AC) /* Interrupt Controller Pending Register 2 */ |
22 | 23 | ||
24 | #define ICIP3 __REG(0x40D00130) /* Interrupt Controller IRQ Pending Register 3 */ | ||
25 | #define ICMR3 __REG(0x40D00134) /* Interrupt Controller Mask Register 3 */ | ||
26 | #define ICLR3 __REG(0x40D00138) /* Interrupt Controller Level Register 3 */ | ||
27 | #define ICFP3 __REG(0x40D0013C) /* Interrupt Controller FIQ Pending Register 3 */ | ||
28 | #define ICPR3 __REG(0x40D00140) /* Interrupt Controller Pending Register 3 */ | ||
29 | |||
30 | #define IPR(x) __REG(0x40D0001C + (x < 32 ? (x << 2) \ | ||
31 | : (x < 64 ? (0x94 + ((x - 32) << 2)) \ | ||
32 | : (0x128 + ((x - 64) << 2))))) | ||
33 | |||
23 | #endif /* __ASM_MACH_REGS_INTC_H */ | 34 | #endif /* __ASM_MACH_REGS_INTC_H */ |
diff --git a/arch/arm/mach-pxa/include/mach/uncompress.h b/arch/arm/mach-pxa/include/mach/uncompress.h index b54749413e96..237734b5b1be 100644 --- a/arch/arm/mach-pxa/include/mach/uncompress.h +++ b/arch/arm/mach-pxa/include/mach/uncompress.h | |||
@@ -37,7 +37,7 @@ static inline void arch_decomp_setup(void) | |||
37 | { | 37 | { |
38 | if (machine_is_littleton() || machine_is_intelmote2() | 38 | if (machine_is_littleton() || machine_is_intelmote2() |
39 | || machine_is_csb726() || machine_is_stargate2() | 39 | || machine_is_csb726() || machine_is_stargate2() |
40 | || machine_is_cm_x300()) | 40 | || machine_is_cm_x300() || machine_is_balloon3()) |
41 | UART = STUART; | 41 | UART = STUART; |
42 | } | 42 | } |
43 | 43 | ||
diff --git a/arch/arm/mach-pxa/irq.c b/arch/arm/mach-pxa/irq.c index f6e0300e4f64..d694ce289668 100644 --- a/arch/arm/mach-pxa/irq.c +++ b/arch/arm/mach-pxa/irq.c | |||
@@ -120,7 +120,7 @@ static void __init pxa_init_low_gpio_irq(set_wake_t fn) | |||
120 | 120 | ||
121 | void __init pxa_init_irq(int irq_nr, set_wake_t fn) | 121 | void __init pxa_init_irq(int irq_nr, set_wake_t fn) |
122 | { | 122 | { |
123 | int irq; | 123 | int irq, i; |
124 | 124 | ||
125 | pxa_internal_irq_nr = irq_nr; | 125 | pxa_internal_irq_nr = irq_nr; |
126 | 126 | ||
@@ -129,6 +129,12 @@ void __init pxa_init_irq(int irq_nr, set_wake_t fn) | |||
129 | _ICLR(irq) = 0; /* all IRQs are IRQ, not FIQ */ | 129 | _ICLR(irq) = 0; /* all IRQs are IRQ, not FIQ */ |
130 | } | 130 | } |
131 | 131 | ||
132 | /* initialize interrupt priority */ | ||
133 | if (cpu_is_pxa27x() || cpu_is_pxa3xx()) { | ||
134 | for (i = 0; i < irq_nr; i++) | ||
135 | IPR(i) = i | (1 << 31); | ||
136 | } | ||
137 | |||
132 | /* only unmasked interrupts kick us out of idle */ | 138 | /* only unmasked interrupts kick us out of idle */ |
133 | ICCR = 1; | 139 | ICCR = 1; |
134 | 140 | ||
diff --git a/arch/arm/mach-pxa/littleton.c b/arch/arm/mach-pxa/littleton.c index 55b3788fd1ae..13848955d133 100644 --- a/arch/arm/mach-pxa/littleton.c +++ b/arch/arm/mach-pxa/littleton.c | |||
@@ -265,45 +265,12 @@ static inline void littleton_init_keypad(void) {} | |||
265 | #endif | 265 | #endif |
266 | 266 | ||
267 | #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE) | 267 | #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE) |
268 | static int littleton_mci_init(struct device *dev, | ||
269 | irq_handler_t littleton_detect_int, void *data) | ||
270 | { | ||
271 | int err, gpio_cd = GPIO_MMC1_CARD_DETECT; | ||
272 | |||
273 | err = gpio_request(gpio_cd, "mmc card detect"); | ||
274 | if (err) | ||
275 | goto err_request_cd; | ||
276 | |||
277 | gpio_direction_input(gpio_cd); | ||
278 | |||
279 | err = request_irq(gpio_to_irq(gpio_cd), littleton_detect_int, | ||
280 | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, | ||
281 | "mmc card detect", data); | ||
282 | if (err) { | ||
283 | dev_err(dev, "failed to request card detect IRQ\n"); | ||
284 | goto err_request_irq; | ||
285 | } | ||
286 | return 0; | ||
287 | |||
288 | err_request_irq: | ||
289 | gpio_free(gpio_cd); | ||
290 | err_request_cd: | ||
291 | return err; | ||
292 | } | ||
293 | |||
294 | static void littleton_mci_exit(struct device *dev, void *data) | ||
295 | { | ||
296 | int gpio_cd = GPIO_MMC1_CARD_DETECT; | ||
297 | |||
298 | free_irq(gpio_to_irq(gpio_cd), data); | ||
299 | gpio_free(gpio_cd); | ||
300 | } | ||
301 | |||
302 | static struct pxamci_platform_data littleton_mci_platform_data = { | 268 | static struct pxamci_platform_data littleton_mci_platform_data = { |
303 | .detect_delay = 20, | 269 | .detect_delay = 20, |
304 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, | 270 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, |
305 | .init = littleton_mci_init, | 271 | .gpio_card_detect = GPIO_MMC1_CARD_DETECT, |
306 | .exit = littleton_mci_exit, | 272 | .gpio_card_ro = -1, |
273 | .gpio_power = -1, | ||
307 | }; | 274 | }; |
308 | 275 | ||
309 | static void __init littleton_init_mmc(void) | 276 | static void __init littleton_init_mmc(void) |
diff --git a/arch/arm/mach-pxa/lubbock.c b/arch/arm/mach-pxa/lubbock.c index f04c8333dff7..c6a94d3fdd61 100644 --- a/arch/arm/mach-pxa/lubbock.c +++ b/arch/arm/mach-pxa/lubbock.c | |||
@@ -482,11 +482,14 @@ static void lubbock_mci_exit(struct device *dev, void *data) | |||
482 | } | 482 | } |
483 | 483 | ||
484 | static struct pxamci_platform_data lubbock_mci_platform_data = { | 484 | static struct pxamci_platform_data lubbock_mci_platform_data = { |
485 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 485 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
486 | .detect_delay = 1, | 486 | .detect_delay = 1, |
487 | .init = lubbock_mci_init, | 487 | .init = lubbock_mci_init, |
488 | .get_ro = lubbock_mci_get_ro, | 488 | .get_ro = lubbock_mci_get_ro, |
489 | .exit = lubbock_mci_exit, | 489 | .exit = lubbock_mci_exit, |
490 | .gpio_card_detect = -1, | ||
491 | .gpio_card_ro = -1, | ||
492 | .gpio_power = -1, | ||
490 | }; | 493 | }; |
491 | 494 | ||
492 | static void lubbock_irda_transceiver_mode(struct device *dev, int mode) | 495 | static void lubbock_irda_transceiver_mode(struct device *dev, int mode) |
@@ -504,8 +507,9 @@ static void lubbock_irda_transceiver_mode(struct device *dev, int mode) | |||
504 | } | 507 | } |
505 | 508 | ||
506 | static struct pxaficp_platform_data lubbock_ficp_platform_data = { | 509 | static struct pxaficp_platform_data lubbock_ficp_platform_data = { |
507 | .transceiver_cap = IR_SIRMODE | IR_FIRMODE, | 510 | .gpio_pwdown = -1, |
508 | .transceiver_mode = lubbock_irda_transceiver_mode, | 511 | .transceiver_cap = IR_SIRMODE | IR_FIRMODE, |
512 | .transceiver_mode = lubbock_irda_transceiver_mode, | ||
509 | }; | 513 | }; |
510 | 514 | ||
511 | static void __init lubbock_init(void) | 515 | static void __init lubbock_init(void) |
diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c index ca39669cffc5..5360c07f5138 100644 --- a/arch/arm/mach-pxa/magician.c +++ b/arch/arm/mach-pxa/magician.c | |||
@@ -140,15 +140,9 @@ static unsigned long magician_pin_config[] __initdata = { | |||
140 | * IRDA | 140 | * IRDA |
141 | */ | 141 | */ |
142 | 142 | ||
143 | static void magician_irda_transceiver_mode(struct device *dev, int mode) | ||
144 | { | ||
145 | gpio_set_value(GPIO83_MAGICIAN_nIR_EN, mode & IR_OFF); | ||
146 | pxa2xx_transceiver_mode(dev, mode); | ||
147 | } | ||
148 | |||
149 | static struct pxaficp_platform_data magician_ficp_info = { | 143 | static struct pxaficp_platform_data magician_ficp_info = { |
150 | .transceiver_cap = IR_SIRMODE | IR_OFF, | 144 | .gpio_pwdown = GPIO83_MAGICIAN_nIR_EN, |
151 | .transceiver_mode = magician_irda_transceiver_mode, | 145 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
152 | }; | 146 | }; |
153 | 147 | ||
154 | /* | 148 | /* |
@@ -651,55 +645,24 @@ static struct platform_device bq24022 = { | |||
651 | static int magician_mci_init(struct device *dev, | 645 | static int magician_mci_init(struct device *dev, |
652 | irq_handler_t detect_irq, void *data) | 646 | irq_handler_t detect_irq, void *data) |
653 | { | 647 | { |
654 | int err; | 648 | return request_irq(IRQ_MAGICIAN_SD, detect_irq, |
655 | |||
656 | err = request_irq(IRQ_MAGICIAN_SD, detect_irq, | ||
657 | IRQF_DISABLED | IRQF_SAMPLE_RANDOM, | 649 | IRQF_DISABLED | IRQF_SAMPLE_RANDOM, |
658 | "MMC card detect", data); | 650 | "mmc card detect", data); |
659 | if (err) | ||
660 | goto err_request_irq; | ||
661 | err = gpio_request(EGPIO_MAGICIAN_SD_POWER, "SD_POWER"); | ||
662 | if (err) | ||
663 | goto err_request_power; | ||
664 | err = gpio_request(EGPIO_MAGICIAN_nSD_READONLY, "nSD_READONLY"); | ||
665 | if (err) | ||
666 | goto err_request_readonly; | ||
667 | |||
668 | return 0; | ||
669 | |||
670 | err_request_readonly: | ||
671 | gpio_free(EGPIO_MAGICIAN_SD_POWER); | ||
672 | err_request_power: | ||
673 | free_irq(IRQ_MAGICIAN_SD, data); | ||
674 | err_request_irq: | ||
675 | return err; | ||
676 | } | ||
677 | |||
678 | static void magician_mci_setpower(struct device *dev, unsigned int vdd) | ||
679 | { | ||
680 | struct pxamci_platform_data *pdata = dev->platform_data; | ||
681 | |||
682 | gpio_set_value(EGPIO_MAGICIAN_SD_POWER, (1 << vdd) & pdata->ocr_mask); | ||
683 | } | ||
684 | |||
685 | static int magician_mci_get_ro(struct device *dev) | ||
686 | { | ||
687 | return (!gpio_get_value(EGPIO_MAGICIAN_nSD_READONLY)); | ||
688 | } | 651 | } |
689 | 652 | ||
690 | static void magician_mci_exit(struct device *dev, void *data) | 653 | static void magician_mci_exit(struct device *dev, void *data) |
691 | { | 654 | { |
692 | gpio_free(EGPIO_MAGICIAN_nSD_READONLY); | ||
693 | gpio_free(EGPIO_MAGICIAN_SD_POWER); | ||
694 | free_irq(IRQ_MAGICIAN_SD, data); | 655 | free_irq(IRQ_MAGICIAN_SD, data); |
695 | } | 656 | } |
696 | 657 | ||
697 | static struct pxamci_platform_data magician_mci_info = { | 658 | static struct pxamci_platform_data magician_mci_info = { |
698 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 659 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
699 | .init = magician_mci_init, | 660 | .init = magician_mci_init, |
700 | .get_ro = magician_mci_get_ro, | 661 | .exit = magician_mci_exit, |
701 | .setpower = magician_mci_setpower, | 662 | .gpio_card_detect = -1, |
702 | .exit = magician_mci_exit, | 663 | .gpio_card_ro = EGPIO_MAGICIAN_nSD_READONLY, |
664 | .gpio_card_ro_invert = 1, | ||
665 | .gpio_power = EGPIO_MAGICIAN_SD_POWER, | ||
703 | }; | 666 | }; |
704 | 667 | ||
705 | 668 | ||
diff --git a/arch/arm/mach-pxa/mainstone.c b/arch/arm/mach-pxa/mainstone.c index f4dabf0273ca..a4eeae345e64 100644 --- a/arch/arm/mach-pxa/mainstone.c +++ b/arch/arm/mach-pxa/mainstone.c | |||
@@ -450,10 +450,13 @@ static void mainstone_mci_exit(struct device *dev, void *data) | |||
450 | } | 450 | } |
451 | 451 | ||
452 | static struct pxamci_platform_data mainstone_mci_platform_data = { | 452 | static struct pxamci_platform_data mainstone_mci_platform_data = { |
453 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 453 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
454 | .init = mainstone_mci_init, | 454 | .init = mainstone_mci_init, |
455 | .setpower = mainstone_mci_setpower, | 455 | .setpower = mainstone_mci_setpower, |
456 | .exit = mainstone_mci_exit, | 456 | .exit = mainstone_mci_exit, |
457 | .gpio_card_detect = -1, | ||
458 | .gpio_card_ro = -1, | ||
459 | .gpio_power = -1, | ||
457 | }; | 460 | }; |
458 | 461 | ||
459 | static void mainstone_irda_transceiver_mode(struct device *dev, int mode) | 462 | static void mainstone_irda_transceiver_mode(struct device *dev, int mode) |
@@ -476,8 +479,9 @@ static void mainstone_irda_transceiver_mode(struct device *dev, int mode) | |||
476 | } | 479 | } |
477 | 480 | ||
478 | static struct pxaficp_platform_data mainstone_ficp_platform_data = { | 481 | static struct pxaficp_platform_data mainstone_ficp_platform_data = { |
479 | .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF, | 482 | .gpio_pwdown = -1, |
480 | .transceiver_mode = mainstone_irda_transceiver_mode, | 483 | .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF, |
484 | .transceiver_mode = mainstone_irda_transceiver_mode, | ||
481 | }; | 485 | }; |
482 | 486 | ||
483 | static struct gpio_keys_button gpio_keys_button[] = { | 487 | static struct gpio_keys_button gpio_keys_button[] = { |
diff --git a/arch/arm/mach-pxa/mioa701.c b/arch/arm/mach-pxa/mioa701.c index 2d28132c725b..3cab452e5567 100644 --- a/arch/arm/mach-pxa/mioa701.c +++ b/arch/arm/mach-pxa/mioa701.c | |||
@@ -434,72 +434,15 @@ struct gpio_vbus_mach_info gpio_vbus_data = { | |||
434 | /* | 434 | /* |
435 | * SDIO/MMC Card controller | 435 | * SDIO/MMC Card controller |
436 | */ | 436 | */ |
437 | static void mci_setpower(struct device *dev, unsigned int vdd) | ||
438 | { | ||
439 | struct pxamci_platform_data *p_d = dev->platform_data; | ||
440 | |||
441 | if ((1 << vdd) & p_d->ocr_mask) | ||
442 | gpio_set_value(GPIO91_SDIO_EN, 1); /* enable SDIO power */ | ||
443 | else | ||
444 | gpio_set_value(GPIO91_SDIO_EN, 0); /* disable SDIO power */ | ||
445 | } | ||
446 | |||
447 | static int mci_get_ro(struct device *dev) | ||
448 | { | ||
449 | return gpio_get_value(GPIO78_SDIO_RO); | ||
450 | } | ||
451 | |||
452 | struct gpio_ress mci_gpios[] = { | ||
453 | MIO_GPIO_IN(GPIO78_SDIO_RO, "SDIO readonly detect"), | ||
454 | MIO_GPIO_IN(GPIO15_SDIO_INSERT, "SDIO insertion detect"), | ||
455 | MIO_GPIO_OUT(GPIO91_SDIO_EN, 0, "SDIO power enable") | ||
456 | }; | ||
457 | |||
458 | static void mci_exit(struct device *dev, void *data) | ||
459 | { | ||
460 | mio_gpio_free(ARRAY_AND_SIZE(mci_gpios)); | ||
461 | free_irq(gpio_to_irq(GPIO15_SDIO_INSERT), data); | ||
462 | } | ||
463 | |||
464 | static struct pxamci_platform_data mioa701_mci_info; | ||
465 | |||
466 | /** | 437 | /** |
467 | * The card detect interrupt isn't debounced so we delay it by 250ms | 438 | * The card detect interrupt isn't debounced so we delay it by 250ms |
468 | * to give the card a chance to fully insert/eject. | 439 | * to give the card a chance to fully insert/eject. |
469 | */ | 440 | */ |
470 | static int mci_init(struct device *dev, irq_handler_t detect_int, void *data) | ||
471 | { | ||
472 | int rc; | ||
473 | int irq = gpio_to_irq(GPIO15_SDIO_INSERT); | ||
474 | |||
475 | rc = mio_gpio_request(ARRAY_AND_SIZE(mci_gpios)); | ||
476 | if (rc) | ||
477 | goto err_gpio; | ||
478 | /* enable RE/FE interrupt on card insertion and removal */ | ||
479 | rc = request_irq(irq, detect_int, | ||
480 | IRQF_DISABLED | IRQF_TRIGGER_RISING | | ||
481 | IRQF_TRIGGER_FALLING, | ||
482 | "MMC card detect", data); | ||
483 | if (rc) | ||
484 | goto err_irq; | ||
485 | |||
486 | mioa701_mci_info.detect_delay = msecs_to_jiffies(250); | ||
487 | return 0; | ||
488 | |||
489 | err_irq: | ||
490 | dev_err(dev, "mioa701_mci_init: MMC/SD:" | ||
491 | " can't request MMC card detect IRQ\n"); | ||
492 | mio_gpio_free(ARRAY_AND_SIZE(mci_gpios)); | ||
493 | err_gpio: | ||
494 | return rc; | ||
495 | } | ||
496 | |||
497 | static struct pxamci_platform_data mioa701_mci_info = { | 441 | static struct pxamci_platform_data mioa701_mci_info = { |
498 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, | 442 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, |
499 | .init = mci_init, | 443 | .gpio_card_detect = GPIO15_SDIO_INSERT, |
500 | .get_ro = mci_get_ro, | 444 | .gpio_card_ro = GPIO78_SDIO_RO, |
501 | .setpower = mci_setpower, | 445 | .gpio_power = GPIO91_SDIO_EN, |
502 | .exit = mci_exit, | ||
503 | }; | 446 | }; |
504 | 447 | ||
505 | /* FlashRAM */ | 448 | /* FlashRAM */ |
@@ -765,19 +708,20 @@ static struct i2c_board_info __initdata mioa701_pi2c_devices[] = { | |||
765 | }, | 708 | }, |
766 | }; | 709 | }; |
767 | 710 | ||
768 | static struct soc_camera_link iclink = { | ||
769 | .bus_id = 0, /* Must match id in pxa27x_device_camera in device.c */ | ||
770 | }; | ||
771 | |||
772 | /* Board I2C devices. */ | 711 | /* Board I2C devices. */ |
773 | static struct i2c_board_info __initdata mioa701_i2c_devices[] = { | 712 | static struct i2c_board_info __initdata mioa701_i2c_devices[] = { |
774 | { | 713 | { |
775 | /* Must initialize before the camera(s) */ | ||
776 | I2C_BOARD_INFO("mt9m111", 0x5d), | 714 | I2C_BOARD_INFO("mt9m111", 0x5d), |
777 | .platform_data = &iclink, | ||
778 | }, | 715 | }, |
779 | }; | 716 | }; |
780 | 717 | ||
718 | static struct soc_camera_link iclink = { | ||
719 | .bus_id = 0, /* Match id in pxa27x_device_camera in device.c */ | ||
720 | .board_info = &mioa701_i2c_devices[0], | ||
721 | .i2c_adapter_id = 0, | ||
722 | .module_name = "mt9m111", | ||
723 | }; | ||
724 | |||
781 | struct i2c_pxa_platform_data i2c_pdata = { | 725 | struct i2c_pxa_platform_data i2c_pdata = { |
782 | .fast_mode = 1, | 726 | .fast_mode = 1, |
783 | }; | 727 | }; |
@@ -811,6 +755,7 @@ MIO_SIMPLE_DEV(pxa2xx_pcm, "pxa2xx-pcm", NULL) | |||
811 | MIO_SIMPLE_DEV(mioa701_sound, "mioa701-wm9713", NULL) | 755 | MIO_SIMPLE_DEV(mioa701_sound, "mioa701-wm9713", NULL) |
812 | MIO_SIMPLE_DEV(mioa701_board, "mioa701-board", NULL) | 756 | MIO_SIMPLE_DEV(mioa701_board, "mioa701-board", NULL) |
813 | MIO_SIMPLE_DEV(gpio_vbus, "gpio-vbus", &gpio_vbus_data); | 757 | MIO_SIMPLE_DEV(gpio_vbus, "gpio-vbus", &gpio_vbus_data); |
758 | MIO_SIMPLE_DEV(mioa701_camera, "soc-camera-pdrv",&iclink); | ||
814 | 759 | ||
815 | static struct platform_device *devices[] __initdata = { | 760 | static struct platform_device *devices[] __initdata = { |
816 | &mioa701_gpio_keys, | 761 | &mioa701_gpio_keys, |
@@ -821,6 +766,7 @@ static struct platform_device *devices[] __initdata = { | |||
821 | &power_dev, | 766 | &power_dev, |
822 | &strataflash, | 767 | &strataflash, |
823 | &gpio_vbus, | 768 | &gpio_vbus, |
769 | &mioa701_camera, | ||
824 | &mioa701_board, | 770 | &mioa701_board, |
825 | }; | 771 | }; |
826 | 772 | ||
@@ -841,7 +787,7 @@ static void mioa701_restart(char c, const char *cmd) | |||
841 | static struct gpio_ress global_gpios[] = { | 787 | static struct gpio_ress global_gpios[] = { |
842 | MIO_GPIO_OUT(GPIO9_CHARGE_EN, 1, "Charger enable"), | 788 | MIO_GPIO_OUT(GPIO9_CHARGE_EN, 1, "Charger enable"), |
843 | MIO_GPIO_OUT(GPIO18_POWEROFF, 0, "Power Off"), | 789 | MIO_GPIO_OUT(GPIO18_POWEROFF, 0, "Power Off"), |
844 | MIO_GPIO_OUT(GPIO87_LCD_POWER, 0, "LCD Power") | 790 | MIO_GPIO_OUT(GPIO87_LCD_POWER, 0, "LCD Power"), |
845 | }; | 791 | }; |
846 | 792 | ||
847 | static void __init mioa701_machine_init(void) | 793 | static void __init mioa701_machine_init(void) |
@@ -855,6 +801,7 @@ static void __init mioa701_machine_init(void) | |||
855 | mio_gpio_request(ARRAY_AND_SIZE(global_gpios)); | 801 | mio_gpio_request(ARRAY_AND_SIZE(global_gpios)); |
856 | bootstrap_init(); | 802 | bootstrap_init(); |
857 | set_pxa_fb_info(&mioa701_pxafb_info); | 803 | set_pxa_fb_info(&mioa701_pxafb_info); |
804 | mioa701_mci_info.detect_delay = msecs_to_jiffies(250); | ||
858 | pxa_set_mci_info(&mioa701_mci_info); | 805 | pxa_set_mci_info(&mioa701_mci_info); |
859 | pxa_set_keypad_info(&mioa701_keypad_info); | 806 | pxa_set_keypad_info(&mioa701_keypad_info); |
860 | wm97xx_bat_set_pdata(&mioa701_battery_data); | 807 | wm97xx_bat_set_pdata(&mioa701_battery_data); |
@@ -869,7 +816,6 @@ static void __init mioa701_machine_init(void) | |||
869 | pxa_set_i2c_info(&i2c_pdata); | 816 | pxa_set_i2c_info(&i2c_pdata); |
870 | pxa27x_set_i2c_power_info(NULL); | 817 | pxa27x_set_i2c_power_info(NULL); |
871 | pxa_set_camera_info(&mioa701_pxacamera_platform_data); | 818 | pxa_set_camera_info(&mioa701_pxacamera_platform_data); |
872 | i2c_register_board_info(0, ARRAY_AND_SIZE(mioa701_i2c_devices)); | ||
873 | } | 819 | } |
874 | 820 | ||
875 | static void mioa701_machine_exit(void) | 821 | static void mioa701_machine_exit(void) |
diff --git a/arch/arm/mach-pxa/palmld.c b/arch/arm/mach-pxa/palmld.c index 169fcc18154e..1ad029dd4438 100644 --- a/arch/arm/mach-pxa/palmld.c +++ b/arch/arm/mach-pxa/palmld.c | |||
@@ -25,6 +25,9 @@ | |||
25 | #include <linux/wm97xx_batt.h> | 25 | #include <linux/wm97xx_batt.h> |
26 | #include <linux/power_supply.h> | 26 | #include <linux/power_supply.h> |
27 | #include <linux/sysdev.h> | 27 | #include <linux/sysdev.h> |
28 | #include <linux/mtd/mtd.h> | ||
29 | #include <linux/mtd/partitions.h> | ||
30 | #include <linux/mtd/physmap.h> | ||
28 | 31 | ||
29 | #include <asm/mach-types.h> | 32 | #include <asm/mach-types.h> |
30 | #include <asm/mach/arch.h> | 33 | #include <asm/mach/arch.h> |
@@ -141,85 +144,50 @@ static unsigned long palmld_pin_config[] __initdata = { | |||
141 | }; | 144 | }; |
142 | 145 | ||
143 | /****************************************************************************** | 146 | /****************************************************************************** |
144 | * SD/MMC card controller | 147 | * NOR Flash |
145 | ******************************************************************************/ | 148 | ******************************************************************************/ |
146 | static int palmld_mci_init(struct device *dev, irq_handler_t palmld_detect_int, | 149 | static struct mtd_partition palmld_partitions[] = { |
147 | void *data) | 150 | { |
148 | { | 151 | .name = "Flash", |
149 | int err = 0; | 152 | .offset = 0x00000000, |
150 | 153 | .size = MTDPART_SIZ_FULL, | |
151 | /* Setup an interrupt for detecting card insert/remove events */ | 154 | .mask_flags = 0 |
152 | err = gpio_request(GPIO_NR_PALMLD_SD_DETECT_N, "SD IRQ"); | ||
153 | if (err) | ||
154 | goto err; | ||
155 | err = gpio_direction_input(GPIO_NR_PALMLD_SD_DETECT_N); | ||
156 | if (err) | ||
157 | goto err2; | ||
158 | err = request_irq(gpio_to_irq(GPIO_NR_PALMLD_SD_DETECT_N), | ||
159 | palmld_detect_int, IRQF_DISABLED | IRQF_SAMPLE_RANDOM | | ||
160 | IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING, | ||
161 | "SD/MMC card detect", data); | ||
162 | if (err) { | ||
163 | printk(KERN_ERR "%s: cannot request SD/MMC card detect IRQ\n", | ||
164 | __func__); | ||
165 | goto err2; | ||
166 | } | 155 | } |
156 | }; | ||
167 | 157 | ||
168 | err = gpio_request(GPIO_NR_PALMLD_SD_POWER, "SD_POWER"); | 158 | static struct physmap_flash_data palmld_flash_data[] = { |
169 | if (err) | 159 | { |
170 | goto err3; | 160 | .width = 2, /* bankwidth in bytes */ |
171 | err = gpio_direction_output(GPIO_NR_PALMLD_SD_POWER, 0); | 161 | .parts = palmld_partitions, |
172 | if (err) | 162 | .nr_parts = ARRAY_SIZE(palmld_partitions) |
173 | goto err4; | 163 | } |
174 | 164 | }; | |
175 | err = gpio_request(GPIO_NR_PALMLD_SD_READONLY, "SD_READONLY"); | ||
176 | if (err) | ||
177 | goto err4; | ||
178 | err = gpio_direction_input(GPIO_NR_PALMLD_SD_READONLY); | ||
179 | if (err) | ||
180 | goto err5; | ||
181 | |||
182 | printk(KERN_DEBUG "%s: irq registered\n", __func__); | ||
183 | |||
184 | return 0; | ||
185 | |||
186 | err5: | ||
187 | gpio_free(GPIO_NR_PALMLD_SD_READONLY); | ||
188 | err4: | ||
189 | gpio_free(GPIO_NR_PALMLD_SD_POWER); | ||
190 | err3: | ||
191 | free_irq(gpio_to_irq(GPIO_NR_PALMLD_SD_DETECT_N), data); | ||
192 | err2: | ||
193 | gpio_free(GPIO_NR_PALMLD_SD_DETECT_N); | ||
194 | err: | ||
195 | return err; | ||
196 | } | ||
197 | |||
198 | static void palmld_mci_exit(struct device *dev, void *data) | ||
199 | { | ||
200 | gpio_free(GPIO_NR_PALMLD_SD_READONLY); | ||
201 | gpio_free(GPIO_NR_PALMLD_SD_POWER); | ||
202 | free_irq(gpio_to_irq(GPIO_NR_PALMLD_SD_DETECT_N), data); | ||
203 | gpio_free(GPIO_NR_PALMLD_SD_DETECT_N); | ||
204 | } | ||
205 | 165 | ||
206 | static void palmld_mci_power(struct device *dev, unsigned int vdd) | 166 | static struct resource palmld_flash_resource = { |
207 | { | 167 | .start = PXA_CS0_PHYS, |
208 | struct pxamci_platform_data *p_d = dev->platform_data; | 168 | .end = PXA_CS0_PHYS + SZ_4M - 1, |
209 | gpio_set_value(GPIO_NR_PALMLD_SD_POWER, p_d->ocr_mask & (1 << vdd)); | 169 | .flags = IORESOURCE_MEM, |
210 | } | 170 | }; |
211 | 171 | ||
212 | static int palmld_mci_get_ro(struct device *dev) | 172 | static struct platform_device palmld_flash = { |
213 | { | 173 | .name = "physmap-flash", |
214 | return gpio_get_value(GPIO_NR_PALMLD_SD_READONLY); | 174 | .id = 0, |
215 | } | 175 | .resource = &palmld_flash_resource, |
176 | .num_resources = 1, | ||
177 | .dev = { | ||
178 | .platform_data = palmld_flash_data, | ||
179 | }, | ||
180 | }; | ||
216 | 181 | ||
182 | /****************************************************************************** | ||
183 | * SD/MMC card controller | ||
184 | ******************************************************************************/ | ||
217 | static struct pxamci_platform_data palmld_mci_platform_data = { | 185 | static struct pxamci_platform_data palmld_mci_platform_data = { |
218 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, | 186 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, |
219 | .setpower = palmld_mci_power, | 187 | .gpio_card_detect = GPIO_NR_PALMLD_SD_DETECT_N, |
220 | .get_ro = palmld_mci_get_ro, | 188 | .gpio_card_ro = GPIO_NR_PALMLD_SD_READONLY, |
221 | .init = palmld_mci_init, | 189 | .gpio_power = GPIO_NR_PALMLD_SD_POWER, |
222 | .exit = palmld_mci_exit, | 190 | .detect_delay = 20, |
223 | }; | 191 | }; |
224 | 192 | ||
225 | /****************************************************************************** | 193 | /****************************************************************************** |
@@ -336,35 +304,9 @@ static struct platform_device palmld_backlight = { | |||
336 | /****************************************************************************** | 304 | /****************************************************************************** |
337 | * IrDA | 305 | * IrDA |
338 | ******************************************************************************/ | 306 | ******************************************************************************/ |
339 | static int palmld_irda_startup(struct device *dev) | ||
340 | { | ||
341 | int err; | ||
342 | err = gpio_request(GPIO_NR_PALMLD_IR_DISABLE, "IR DISABLE"); | ||
343 | if (err) | ||
344 | goto err; | ||
345 | err = gpio_direction_output(GPIO_NR_PALMLD_IR_DISABLE, 1); | ||
346 | if (err) | ||
347 | gpio_free(GPIO_NR_PALMLD_IR_DISABLE); | ||
348 | err: | ||
349 | return err; | ||
350 | } | ||
351 | |||
352 | static void palmld_irda_shutdown(struct device *dev) | ||
353 | { | ||
354 | gpio_free(GPIO_NR_PALMLD_IR_DISABLE); | ||
355 | } | ||
356 | |||
357 | static void palmld_irda_transceiver_mode(struct device *dev, int mode) | ||
358 | { | ||
359 | gpio_set_value(GPIO_NR_PALMLD_IR_DISABLE, mode & IR_OFF); | ||
360 | pxa2xx_transceiver_mode(dev, mode); | ||
361 | } | ||
362 | |||
363 | static struct pxaficp_platform_data palmld_ficp_platform_data = { | 307 | static struct pxaficp_platform_data palmld_ficp_platform_data = { |
364 | .startup = palmld_irda_startup, | 308 | .gpio_pwdown = GPIO_NR_PALMLD_IR_DISABLE, |
365 | .shutdown = palmld_irda_shutdown, | 309 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
366 | .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF, | ||
367 | .transceiver_mode = palmld_irda_transceiver_mode, | ||
368 | }; | 310 | }; |
369 | 311 | ||
370 | /****************************************************************************** | 312 | /****************************************************************************** |
@@ -560,6 +502,7 @@ static struct platform_device *devices[] __initdata = { | |||
560 | &power_supply, | 502 | &power_supply, |
561 | &palmld_asoc, | 503 | &palmld_asoc, |
562 | &palmld_hdd, | 504 | &palmld_hdd, |
505 | &palmld_flash, | ||
563 | }; | 506 | }; |
564 | 507 | ||
565 | static struct map_desc palmld_io_desc[] __initdata = { | 508 | static struct map_desc palmld_io_desc[] __initdata = { |
diff --git a/arch/arm/mach-pxa/palmt5.c b/arch/arm/mach-pxa/palmt5.c index 33f726ff55e5..2dd7ce28556b 100644 --- a/arch/arm/mach-pxa/palmt5.c +++ b/arch/arm/mach-pxa/palmt5.c | |||
@@ -124,83 +124,12 @@ static unsigned long palmt5_pin_config[] __initdata = { | |||
124 | /****************************************************************************** | 124 | /****************************************************************************** |
125 | * SD/MMC card controller | 125 | * SD/MMC card controller |
126 | ******************************************************************************/ | 126 | ******************************************************************************/ |
127 | static int palmt5_mci_init(struct device *dev, irq_handler_t palmt5_detect_int, | ||
128 | void *data) | ||
129 | { | ||
130 | int err = 0; | ||
131 | |||
132 | /* Setup an interrupt for detecting card insert/remove events */ | ||
133 | err = gpio_request(GPIO_NR_PALMT5_SD_DETECT_N, "SD IRQ"); | ||
134 | if (err) | ||
135 | goto err; | ||
136 | err = gpio_direction_input(GPIO_NR_PALMT5_SD_DETECT_N); | ||
137 | if (err) | ||
138 | goto err2; | ||
139 | err = request_irq(gpio_to_irq(GPIO_NR_PALMT5_SD_DETECT_N), | ||
140 | palmt5_detect_int, IRQF_DISABLED | IRQF_SAMPLE_RANDOM | | ||
141 | IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING, | ||
142 | "SD/MMC card detect", data); | ||
143 | if (err) { | ||
144 | printk(KERN_ERR "%s: cannot request SD/MMC card detect IRQ\n", | ||
145 | __func__); | ||
146 | goto err2; | ||
147 | } | ||
148 | |||
149 | err = gpio_request(GPIO_NR_PALMT5_SD_POWER, "SD_POWER"); | ||
150 | if (err) | ||
151 | goto err3; | ||
152 | err = gpio_direction_output(GPIO_NR_PALMT5_SD_POWER, 0); | ||
153 | if (err) | ||
154 | goto err4; | ||
155 | |||
156 | err = gpio_request(GPIO_NR_PALMT5_SD_READONLY, "SD_READONLY"); | ||
157 | if (err) | ||
158 | goto err4; | ||
159 | err = gpio_direction_input(GPIO_NR_PALMT5_SD_READONLY); | ||
160 | if (err) | ||
161 | goto err5; | ||
162 | |||
163 | printk(KERN_DEBUG "%s: irq registered\n", __func__); | ||
164 | |||
165 | return 0; | ||
166 | |||
167 | err5: | ||
168 | gpio_free(GPIO_NR_PALMT5_SD_READONLY); | ||
169 | err4: | ||
170 | gpio_free(GPIO_NR_PALMT5_SD_POWER); | ||
171 | err3: | ||
172 | free_irq(gpio_to_irq(GPIO_NR_PALMT5_SD_DETECT_N), data); | ||
173 | err2: | ||
174 | gpio_free(GPIO_NR_PALMT5_SD_DETECT_N); | ||
175 | err: | ||
176 | return err; | ||
177 | } | ||
178 | |||
179 | static void palmt5_mci_exit(struct device *dev, void *data) | ||
180 | { | ||
181 | gpio_free(GPIO_NR_PALMT5_SD_READONLY); | ||
182 | gpio_free(GPIO_NR_PALMT5_SD_POWER); | ||
183 | free_irq(IRQ_GPIO_PALMT5_SD_DETECT_N, data); | ||
184 | gpio_free(GPIO_NR_PALMT5_SD_DETECT_N); | ||
185 | } | ||
186 | |||
187 | static void palmt5_mci_power(struct device *dev, unsigned int vdd) | ||
188 | { | ||
189 | struct pxamci_platform_data *p_d = dev->platform_data; | ||
190 | gpio_set_value(GPIO_NR_PALMT5_SD_POWER, p_d->ocr_mask & (1 << vdd)); | ||
191 | } | ||
192 | |||
193 | static int palmt5_mci_get_ro(struct device *dev) | ||
194 | { | ||
195 | return gpio_get_value(GPIO_NR_PALMT5_SD_READONLY); | ||
196 | } | ||
197 | |||
198 | static struct pxamci_platform_data palmt5_mci_platform_data = { | 127 | static struct pxamci_platform_data palmt5_mci_platform_data = { |
199 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, | 128 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, |
200 | .setpower = palmt5_mci_power, | 129 | .gpio_card_detect = GPIO_NR_PALMT5_SD_DETECT_N, |
201 | .get_ro = palmt5_mci_get_ro, | 130 | .gpio_card_ro = GPIO_NR_PALMT5_SD_READONLY, |
202 | .init = palmt5_mci_init, | 131 | .gpio_power = GPIO_NR_PALMT5_SD_POWER, |
203 | .exit = palmt5_mci_exit, | 132 | .detect_delay = 20, |
204 | }; | 133 | }; |
205 | 134 | ||
206 | /****************************************************************************** | 135 | /****************************************************************************** |
@@ -314,35 +243,9 @@ static struct platform_device palmt5_backlight = { | |||
314 | /****************************************************************************** | 243 | /****************************************************************************** |
315 | * IrDA | 244 | * IrDA |
316 | ******************************************************************************/ | 245 | ******************************************************************************/ |
317 | static int palmt5_irda_startup(struct device *dev) | ||
318 | { | ||
319 | int err; | ||
320 | err = gpio_request(GPIO_NR_PALMT5_IR_DISABLE, "IR DISABLE"); | ||
321 | if (err) | ||
322 | goto err; | ||
323 | err = gpio_direction_output(GPIO_NR_PALMT5_IR_DISABLE, 1); | ||
324 | if (err) | ||
325 | gpio_free(GPIO_NR_PALMT5_IR_DISABLE); | ||
326 | err: | ||
327 | return err; | ||
328 | } | ||
329 | |||
330 | static void palmt5_irda_shutdown(struct device *dev) | ||
331 | { | ||
332 | gpio_free(GPIO_NR_PALMT5_IR_DISABLE); | ||
333 | } | ||
334 | |||
335 | static void palmt5_irda_transceiver_mode(struct device *dev, int mode) | ||
336 | { | ||
337 | gpio_set_value(GPIO_NR_PALMT5_IR_DISABLE, mode & IR_OFF); | ||
338 | pxa2xx_transceiver_mode(dev, mode); | ||
339 | } | ||
340 | |||
341 | static struct pxaficp_platform_data palmt5_ficp_platform_data = { | 246 | static struct pxaficp_platform_data palmt5_ficp_platform_data = { |
342 | .startup = palmt5_irda_startup, | 247 | .gpio_pwdown = GPIO_NR_PALMT5_IR_DISABLE, |
343 | .shutdown = palmt5_irda_shutdown, | 248 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
344 | .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF, | ||
345 | .transceiver_mode = palmt5_irda_transceiver_mode, | ||
346 | }; | 249 | }; |
347 | 250 | ||
348 | /****************************************************************************** | 251 | /****************************************************************************** |
diff --git a/arch/arm/mach-pxa/palmtc.c b/arch/arm/mach-pxa/palmtc.c new file mode 100644 index 000000000000..bb2cc0dd44ec --- /dev/null +++ b/arch/arm/mach-pxa/palmtc.c | |||
@@ -0,0 +1,436 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pxa/palmtc.c | ||
3 | * | ||
4 | * Support for the Palm Tungsten|C | ||
5 | * | ||
6 | * Author: Marek Vasut <marek.vasut@gmail.com> | ||
7 | * | ||
8 | * Based on work of: | ||
9 | * Petr Blaha <p3t3@centrum.cz> | ||
10 | * Chetan S. Kumar <shivakumar.chetan@gmail.com> | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of the GNU General Public License version 2 as | ||
14 | * published by the Free Software Foundation. | ||
15 | */ | ||
16 | |||
17 | #include <linux/platform_device.h> | ||
18 | #include <linux/delay.h> | ||
19 | #include <linux/irq.h> | ||
20 | #include <linux/input.h> | ||
21 | #include <linux/pwm_backlight.h> | ||
22 | #include <linux/gpio.h> | ||
23 | #include <linux/input/matrix_keypad.h> | ||
24 | #include <linux/ucb1400.h> | ||
25 | #include <linux/power_supply.h> | ||
26 | #include <linux/gpio_keys.h> | ||
27 | #include <linux/mtd/physmap.h> | ||
28 | |||
29 | #include <asm/mach-types.h> | ||
30 | #include <asm/mach/arch.h> | ||
31 | #include <asm/mach/map.h> | ||
32 | |||
33 | #include <mach/audio.h> | ||
34 | #include <mach/palmtc.h> | ||
35 | #include <mach/mmc.h> | ||
36 | #include <mach/pxafb.h> | ||
37 | #include <mach/mfp-pxa25x.h> | ||
38 | #include <mach/irda.h> | ||
39 | #include <mach/udc.h> | ||
40 | #include <mach/pxa2xx-regs.h> | ||
41 | |||
42 | #include "generic.h" | ||
43 | #include "devices.h" | ||
44 | |||
45 | /****************************************************************************** | ||
46 | * Pin configuration | ||
47 | ******************************************************************************/ | ||
48 | static unsigned long palmtc_pin_config[] __initdata = { | ||
49 | /* MMC */ | ||
50 | GPIO6_MMC_CLK, | ||
51 | GPIO8_MMC_CS0, | ||
52 | GPIO12_GPIO, /* detect */ | ||
53 | GPIO32_GPIO, /* power */ | ||
54 | GPIO54_GPIO, /* r/o switch */ | ||
55 | |||
56 | /* PCMCIA */ | ||
57 | GPIO52_nPCE_1, | ||
58 | GPIO53_nPCE_2, | ||
59 | GPIO50_nPIOR, | ||
60 | GPIO51_nPIOW, | ||
61 | GPIO49_nPWE, | ||
62 | GPIO48_nPOE, | ||
63 | GPIO52_nPCE_1, | ||
64 | GPIO53_nPCE_2, | ||
65 | GPIO57_nIOIS16, | ||
66 | GPIO56_nPWAIT, | ||
67 | |||
68 | /* AC97 */ | ||
69 | GPIO28_AC97_BITCLK, | ||
70 | GPIO29_AC97_SDATA_IN_0, | ||
71 | GPIO30_AC97_SDATA_OUT, | ||
72 | GPIO31_AC97_SYNC, | ||
73 | |||
74 | /* IrDA */ | ||
75 | GPIO45_GPIO, /* ir disable */ | ||
76 | GPIO46_FICP_RXD, | ||
77 | GPIO47_FICP_TXD, | ||
78 | |||
79 | /* PWM */ | ||
80 | GPIO17_PWM1_OUT, | ||
81 | |||
82 | /* USB */ | ||
83 | GPIO4_GPIO, /* detect */ | ||
84 | GPIO36_GPIO, /* pullup */ | ||
85 | |||
86 | /* LCD */ | ||
87 | GPIO58_LCD_LDD_0, | ||
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 | |||
108 | /* MATRIX KEYPAD */ | ||
109 | GPIO0_GPIO | WAKEUP_ON_EDGE_BOTH, /* in 0 */ | ||
110 | GPIO9_GPIO | WAKEUP_ON_EDGE_BOTH, /* in 1 */ | ||
111 | GPIO10_GPIO | WAKEUP_ON_EDGE_BOTH, /* in 2 */ | ||
112 | GPIO11_GPIO | WAKEUP_ON_EDGE_BOTH, /* in 3 */ | ||
113 | GPIO18_GPIO | MFP_LPM_DRIVE_LOW, /* out 0 */ | ||
114 | GPIO19_GPIO | MFP_LPM_DRIVE_LOW, /* out 1 */ | ||
115 | GPIO20_GPIO | MFP_LPM_DRIVE_LOW, /* out 2 */ | ||
116 | GPIO21_GPIO | MFP_LPM_DRIVE_LOW, /* out 3 */ | ||
117 | GPIO22_GPIO | MFP_LPM_DRIVE_LOW, /* out 4 */ | ||
118 | GPIO23_GPIO | MFP_LPM_DRIVE_LOW, /* out 5 */ | ||
119 | GPIO24_GPIO | MFP_LPM_DRIVE_LOW, /* out 6 */ | ||
120 | GPIO25_GPIO | MFP_LPM_DRIVE_LOW, /* out 7 */ | ||
121 | GPIO26_GPIO | MFP_LPM_DRIVE_LOW, /* out 8 */ | ||
122 | GPIO27_GPIO | MFP_LPM_DRIVE_LOW, /* out 9 */ | ||
123 | GPIO79_GPIO | MFP_LPM_DRIVE_LOW, /* out 10 */ | ||
124 | GPIO80_GPIO | MFP_LPM_DRIVE_LOW, /* out 11 */ | ||
125 | |||
126 | /* PXA GPIO KEYS */ | ||
127 | GPIO7_GPIO | WAKEUP_ON_EDGE_BOTH, /* hotsync button on cradle */ | ||
128 | |||
129 | /* MISC */ | ||
130 | GPIO1_RST, /* reset */ | ||
131 | GPIO2_GPIO, /* earphone detect */ | ||
132 | GPIO16_GPIO, /* backlight switch */ | ||
133 | }; | ||
134 | |||
135 | /****************************************************************************** | ||
136 | * SD/MMC card controller | ||
137 | ******************************************************************************/ | ||
138 | static struct pxamci_platform_data palmtc_mci_platform_data = { | ||
139 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, | ||
140 | .gpio_power = GPIO_NR_PALMTC_SD_POWER, | ||
141 | .gpio_card_ro = GPIO_NR_PALMTC_SD_READONLY, | ||
142 | .gpio_card_detect = GPIO_NR_PALMTC_SD_DETECT_N, | ||
143 | .detect_delay = 20, | ||
144 | }; | ||
145 | |||
146 | /****************************************************************************** | ||
147 | * GPIO keys | ||
148 | ******************************************************************************/ | ||
149 | static struct gpio_keys_button palmtc_pxa_buttons[] = { | ||
150 | {KEY_F8, GPIO_NR_PALMTC_HOTSYNC_BUTTON, 1, "HotSync Button", EV_KEY, 1}, | ||
151 | }; | ||
152 | |||
153 | static struct gpio_keys_platform_data palmtc_pxa_keys_data = { | ||
154 | .buttons = palmtc_pxa_buttons, | ||
155 | .nbuttons = ARRAY_SIZE(palmtc_pxa_buttons), | ||
156 | }; | ||
157 | |||
158 | static struct platform_device palmtc_pxa_keys = { | ||
159 | .name = "gpio-keys", | ||
160 | .id = -1, | ||
161 | .dev = { | ||
162 | .platform_data = &palmtc_pxa_keys_data, | ||
163 | }, | ||
164 | }; | ||
165 | |||
166 | /****************************************************************************** | ||
167 | * Backlight | ||
168 | ******************************************************************************/ | ||
169 | static int palmtc_backlight_init(struct device *dev) | ||
170 | { | ||
171 | int ret; | ||
172 | |||
173 | ret = gpio_request(GPIO_NR_PALMTC_BL_POWER, "BL POWER"); | ||
174 | if (ret) | ||
175 | goto err; | ||
176 | ret = gpio_direction_output(GPIO_NR_PALMTC_BL_POWER, 1); | ||
177 | if (ret) | ||
178 | goto err2; | ||
179 | |||
180 | return 0; | ||
181 | |||
182 | err2: | ||
183 | gpio_free(GPIO_NR_PALMTC_BL_POWER); | ||
184 | err: | ||
185 | return ret; | ||
186 | } | ||
187 | |||
188 | static int palmtc_backlight_notify(int brightness) | ||
189 | { | ||
190 | /* backlight is on when GPIO16 AF0 is high */ | ||
191 | gpio_set_value(GPIO_NR_PALMTC_BL_POWER, brightness); | ||
192 | return brightness; | ||
193 | } | ||
194 | |||
195 | static void palmtc_backlight_exit(struct device *dev) | ||
196 | { | ||
197 | gpio_free(GPIO_NR_PALMTC_BL_POWER); | ||
198 | } | ||
199 | |||
200 | static struct platform_pwm_backlight_data palmtc_backlight_data = { | ||
201 | .pwm_id = 1, | ||
202 | .max_brightness = PALMTC_MAX_INTENSITY, | ||
203 | .dft_brightness = PALMTC_MAX_INTENSITY, | ||
204 | .pwm_period_ns = PALMTC_PERIOD_NS, | ||
205 | .init = palmtc_backlight_init, | ||
206 | .notify = palmtc_backlight_notify, | ||
207 | .exit = palmtc_backlight_exit, | ||
208 | }; | ||
209 | |||
210 | static struct platform_device palmtc_backlight = { | ||
211 | .name = "pwm-backlight", | ||
212 | .dev = { | ||
213 | .parent = &pxa25x_device_pwm1.dev, | ||
214 | .platform_data = &palmtc_backlight_data, | ||
215 | }, | ||
216 | }; | ||
217 | |||
218 | /****************************************************************************** | ||
219 | * IrDA | ||
220 | ******************************************************************************/ | ||
221 | static struct pxaficp_platform_data palmtc_ficp_platform_data = { | ||
222 | .gpio_pwdown = GPIO_NR_PALMTC_IR_DISABLE, | ||
223 | .transceiver_cap = IR_SIRMODE | IR_OFF, | ||
224 | }; | ||
225 | |||
226 | /****************************************************************************** | ||
227 | * Keyboard | ||
228 | ******************************************************************************/ | ||
229 | static const uint32_t palmtc_matrix_keys[] = { | ||
230 | KEY(0, 0, KEY_F1), | ||
231 | KEY(0, 1, KEY_X), | ||
232 | KEY(0, 2, KEY_POWER), | ||
233 | KEY(0, 3, KEY_TAB), | ||
234 | KEY(0, 4, KEY_A), | ||
235 | KEY(0, 5, KEY_Q), | ||
236 | KEY(0, 6, KEY_LEFTSHIFT), | ||
237 | KEY(0, 7, KEY_Z), | ||
238 | KEY(0, 8, KEY_S), | ||
239 | KEY(0, 9, KEY_W), | ||
240 | KEY(0, 10, KEY_E), | ||
241 | KEY(0, 11, KEY_UP), | ||
242 | |||
243 | KEY(1, 0, KEY_F2), | ||
244 | KEY(1, 1, KEY_DOWN), | ||
245 | KEY(1, 3, KEY_D), | ||
246 | KEY(1, 4, KEY_C), | ||
247 | KEY(1, 5, KEY_F), | ||
248 | KEY(1, 6, KEY_R), | ||
249 | KEY(1, 7, KEY_SPACE), | ||
250 | KEY(1, 8, KEY_V), | ||
251 | KEY(1, 9, KEY_G), | ||
252 | KEY(1, 10, KEY_T), | ||
253 | KEY(1, 11, KEY_LEFT), | ||
254 | |||
255 | KEY(2, 0, KEY_F3), | ||
256 | KEY(2, 1, KEY_LEFTCTRL), | ||
257 | KEY(2, 3, KEY_H), | ||
258 | KEY(2, 4, KEY_Y), | ||
259 | KEY(2, 5, KEY_N), | ||
260 | KEY(2, 6, KEY_J), | ||
261 | KEY(2, 7, KEY_U), | ||
262 | KEY(2, 8, KEY_M), | ||
263 | KEY(2, 9, KEY_K), | ||
264 | KEY(2, 10, KEY_I), | ||
265 | KEY(2, 11, KEY_RIGHT), | ||
266 | |||
267 | KEY(3, 0, KEY_F4), | ||
268 | KEY(3, 1, KEY_ENTER), | ||
269 | KEY(3, 3, KEY_DOT), | ||
270 | KEY(3, 4, KEY_L), | ||
271 | KEY(3, 5, KEY_O), | ||
272 | KEY(3, 6, KEY_LEFTALT), | ||
273 | KEY(3, 7, KEY_ENTER), | ||
274 | KEY(3, 8, KEY_BACKSPACE), | ||
275 | KEY(3, 9, KEY_P), | ||
276 | KEY(3, 10, KEY_B), | ||
277 | KEY(3, 11, KEY_FN), | ||
278 | }; | ||
279 | |||
280 | const struct matrix_keymap_data palmtc_keymap_data = { | ||
281 | .keymap = palmtc_matrix_keys, | ||
282 | .keymap_size = ARRAY_SIZE(palmtc_matrix_keys), | ||
283 | }; | ||
284 | |||
285 | const static unsigned int palmtc_keypad_row_gpios[] = { | ||
286 | 0, 9, 10, 11 | ||
287 | }; | ||
288 | |||
289 | const static unsigned int palmtc_keypad_col_gpios[] = { | ||
290 | 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 79, 80 | ||
291 | }; | ||
292 | |||
293 | static struct matrix_keypad_platform_data palmtc_keypad_platform_data = { | ||
294 | .keymap_data = &palmtc_keymap_data, | ||
295 | .col_gpios = palmtc_keypad_row_gpios, | ||
296 | .num_col_gpios = 12, | ||
297 | .row_gpios = palmtc_keypad_col_gpios, | ||
298 | .num_row_gpios = 4, | ||
299 | .active_low = 1, | ||
300 | |||
301 | .debounce_ms = 20, | ||
302 | .col_scan_delay_us = 5, | ||
303 | }; | ||
304 | |||
305 | static struct platform_device palmtc_keyboard = { | ||
306 | .name = "matrix-keypad", | ||
307 | .id = -1, | ||
308 | .dev = { | ||
309 | .platform_data = &palmtc_keypad_platform_data, | ||
310 | }, | ||
311 | }; | ||
312 | |||
313 | /****************************************************************************** | ||
314 | * UDC | ||
315 | ******************************************************************************/ | ||
316 | static struct pxa2xx_udc_mach_info palmtc_udc_info __initdata = { | ||
317 | .gpio_vbus = GPIO_NR_PALMTC_USB_DETECT_N, | ||
318 | .gpio_vbus_inverted = 1, | ||
319 | .gpio_pullup = GPIO_NR_PALMTC_USB_POWER, | ||
320 | }; | ||
321 | |||
322 | /****************************************************************************** | ||
323 | * Touchscreen / Battery / GPIO-extender | ||
324 | ******************************************************************************/ | ||
325 | static struct platform_device palmtc_ucb1400_core = { | ||
326 | .name = "ucb1400_core", | ||
327 | .id = -1, | ||
328 | }; | ||
329 | |||
330 | /****************************************************************************** | ||
331 | * NOR Flash | ||
332 | ******************************************************************************/ | ||
333 | static struct resource palmtc_flash_resource = { | ||
334 | .start = PXA_CS0_PHYS, | ||
335 | .end = PXA_CS0_PHYS + SZ_16M - 1, | ||
336 | .flags = IORESOURCE_MEM, | ||
337 | }; | ||
338 | |||
339 | static struct mtd_partition palmtc_flash_parts[] = { | ||
340 | { | ||
341 | .name = "U-Boot Bootloader", | ||
342 | .offset = 0x0, | ||
343 | .size = 0x40000, | ||
344 | }, | ||
345 | { | ||
346 | .name = "Linux Kernel", | ||
347 | .offset = 0x40000, | ||
348 | .size = 0x2c0000, | ||
349 | }, | ||
350 | { | ||
351 | .name = "Filesystem", | ||
352 | .offset = 0x300000, | ||
353 | .size = 0xcc0000, | ||
354 | }, | ||
355 | { | ||
356 | .name = "U-Boot Environment", | ||
357 | .offset = 0xfc0000, | ||
358 | .size = MTDPART_SIZ_FULL, | ||
359 | }, | ||
360 | }; | ||
361 | |||
362 | static struct physmap_flash_data palmtc_flash_data = { | ||
363 | .width = 4, | ||
364 | .parts = palmtc_flash_parts, | ||
365 | .nr_parts = ARRAY_SIZE(palmtc_flash_parts), | ||
366 | }; | ||
367 | |||
368 | static struct platform_device palmtc_flash = { | ||
369 | .name = "physmap-flash", | ||
370 | .id = -1, | ||
371 | .resource = &palmtc_flash_resource, | ||
372 | .num_resources = 1, | ||
373 | .dev = { | ||
374 | .platform_data = &palmtc_flash_data, | ||
375 | }, | ||
376 | }; | ||
377 | |||
378 | /****************************************************************************** | ||
379 | * Framebuffer | ||
380 | ******************************************************************************/ | ||
381 | static struct pxafb_mode_info palmtc_lcd_modes[] = { | ||
382 | { | ||
383 | .pixclock = 115384, | ||
384 | .xres = 320, | ||
385 | .yres = 320, | ||
386 | .bpp = 16, | ||
387 | |||
388 | .left_margin = 27, | ||
389 | .right_margin = 7, | ||
390 | .upper_margin = 7, | ||
391 | .lower_margin = 8, | ||
392 | |||
393 | .hsync_len = 6, | ||
394 | .vsync_len = 1, | ||
395 | }, | ||
396 | }; | ||
397 | |||
398 | static struct pxafb_mach_info palmtc_lcd_screen = { | ||
399 | .modes = palmtc_lcd_modes, | ||
400 | .num_modes = ARRAY_SIZE(palmtc_lcd_modes), | ||
401 | .lcd_conn = LCD_COLOR_TFT_16BPP | LCD_PCLK_EDGE_FALL, | ||
402 | }; | ||
403 | |||
404 | /****************************************************************************** | ||
405 | * Machine init | ||
406 | ******************************************************************************/ | ||
407 | static struct platform_device *devices[] __initdata = { | ||
408 | &palmtc_backlight, | ||
409 | &palmtc_ucb1400_core, | ||
410 | &palmtc_keyboard, | ||
411 | &palmtc_pxa_keys, | ||
412 | &palmtc_flash, | ||
413 | }; | ||
414 | |||
415 | static void __init palmtc_init(void) | ||
416 | { | ||
417 | pxa2xx_mfp_config(ARRAY_AND_SIZE(palmtc_pin_config)); | ||
418 | |||
419 | set_pxa_fb_info(&palmtc_lcd_screen); | ||
420 | pxa_set_mci_info(&palmtc_mci_platform_data); | ||
421 | pxa_set_udc_info(&palmtc_udc_info); | ||
422 | pxa_set_ac97_info(NULL); | ||
423 | pxa_set_ficp_info(&palmtc_ficp_platform_data); | ||
424 | |||
425 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
426 | }; | ||
427 | |||
428 | MACHINE_START(PALMTC, "Palm Tungsten|C") | ||
429 | .phys_io = 0x40000000, | ||
430 | .boot_params = 0xa0000100, | ||
431 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
432 | .map_io = pxa_map_io, | ||
433 | .init_irq = pxa25x_init_irq, | ||
434 | .timer = &pxa_timer, | ||
435 | .init_machine = palmtc_init | ||
436 | MACHINE_END | ||
diff --git a/arch/arm/mach-pxa/palmte2.c b/arch/arm/mach-pxa/palmte2.c index d823b09801df..277c4062e3c6 100644 --- a/arch/arm/mach-pxa/palmte2.c +++ b/arch/arm/mach-pxa/palmte2.c | |||
@@ -117,83 +117,11 @@ static unsigned long palmte2_pin_config[] __initdata = { | |||
117 | /****************************************************************************** | 117 | /****************************************************************************** |
118 | * SD/MMC card controller | 118 | * SD/MMC card controller |
119 | ******************************************************************************/ | 119 | ******************************************************************************/ |
120 | static int palmte2_mci_init(struct device *dev, | ||
121 | irq_handler_t palmte2_detect_int, void *data) | ||
122 | { | ||
123 | int err = 0; | ||
124 | |||
125 | /* Setup an interrupt for detecting card insert/remove events */ | ||
126 | err = gpio_request(GPIO_NR_PALMTE2_SD_DETECT_N, "SD IRQ"); | ||
127 | if (err) | ||
128 | goto err; | ||
129 | err = gpio_direction_input(GPIO_NR_PALMTE2_SD_DETECT_N); | ||
130 | if (err) | ||
131 | goto err2; | ||
132 | err = request_irq(gpio_to_irq(GPIO_NR_PALMTE2_SD_DETECT_N), | ||
133 | palmte2_detect_int, IRQF_DISABLED | IRQF_SAMPLE_RANDOM | | ||
134 | IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING, | ||
135 | "SD/MMC card detect", data); | ||
136 | if (err) { | ||
137 | printk(KERN_ERR "%s: cannot request SD/MMC card detect IRQ\n", | ||
138 | __func__); | ||
139 | goto err2; | ||
140 | } | ||
141 | |||
142 | err = gpio_request(GPIO_NR_PALMTE2_SD_POWER, "SD_POWER"); | ||
143 | if (err) | ||
144 | goto err3; | ||
145 | err = gpio_direction_output(GPIO_NR_PALMTE2_SD_POWER, 0); | ||
146 | if (err) | ||
147 | goto err4; | ||
148 | |||
149 | err = gpio_request(GPIO_NR_PALMTE2_SD_READONLY, "SD_READONLY"); | ||
150 | if (err) | ||
151 | goto err4; | ||
152 | err = gpio_direction_input(GPIO_NR_PALMTE2_SD_READONLY); | ||
153 | if (err) | ||
154 | goto err5; | ||
155 | |||
156 | printk(KERN_DEBUG "%s: irq registered\n", __func__); | ||
157 | |||
158 | return 0; | ||
159 | |||
160 | err5: | ||
161 | gpio_free(GPIO_NR_PALMTE2_SD_READONLY); | ||
162 | err4: | ||
163 | gpio_free(GPIO_NR_PALMTE2_SD_POWER); | ||
164 | err3: | ||
165 | free_irq(gpio_to_irq(GPIO_NR_PALMTE2_SD_DETECT_N), data); | ||
166 | err2: | ||
167 | gpio_free(GPIO_NR_PALMTE2_SD_DETECT_N); | ||
168 | err: | ||
169 | return err; | ||
170 | } | ||
171 | |||
172 | static void palmte2_mci_exit(struct device *dev, void *data) | ||
173 | { | ||
174 | gpio_free(GPIO_NR_PALMTE2_SD_READONLY); | ||
175 | gpio_free(GPIO_NR_PALMTE2_SD_POWER); | ||
176 | free_irq(gpio_to_irq(GPIO_NR_PALMTE2_SD_DETECT_N), data); | ||
177 | gpio_free(GPIO_NR_PALMTE2_SD_DETECT_N); | ||
178 | } | ||
179 | |||
180 | static void palmte2_mci_power(struct device *dev, unsigned int vdd) | ||
181 | { | ||
182 | struct pxamci_platform_data *p_d = dev->platform_data; | ||
183 | gpio_set_value(GPIO_NR_PALMTE2_SD_POWER, p_d->ocr_mask & (1 << vdd)); | ||
184 | } | ||
185 | |||
186 | static int palmte2_mci_get_ro(struct device *dev) | ||
187 | { | ||
188 | return gpio_get_value(GPIO_NR_PALMTE2_SD_READONLY); | ||
189 | } | ||
190 | |||
191 | static struct pxamci_platform_data palmte2_mci_platform_data = { | 120 | static struct pxamci_platform_data palmte2_mci_platform_data = { |
192 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, | 121 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, |
193 | .setpower = palmte2_mci_power, | 122 | .gpio_card_detect = GPIO_NR_PALMTE2_SD_DETECT_N, |
194 | .get_ro = palmte2_mci_get_ro, | 123 | .gpio_card_ro = GPIO_NR_PALMTE2_SD_READONLY, |
195 | .init = palmte2_mci_init, | 124 | .gpio_power = GPIO_NR_PALMTE2_SD_POWER, |
196 | .exit = palmte2_mci_exit, | ||
197 | }; | 125 | }; |
198 | 126 | ||
199 | /****************************************************************************** | 127 | /****************************************************************************** |
@@ -287,35 +215,9 @@ static struct platform_device palmte2_backlight = { | |||
287 | /****************************************************************************** | 215 | /****************************************************************************** |
288 | * IrDA | 216 | * IrDA |
289 | ******************************************************************************/ | 217 | ******************************************************************************/ |
290 | static int palmte2_irda_startup(struct device *dev) | ||
291 | { | ||
292 | int err; | ||
293 | err = gpio_request(GPIO_NR_PALMTE2_IR_DISABLE, "IR DISABLE"); | ||
294 | if (err) | ||
295 | goto err; | ||
296 | err = gpio_direction_output(GPIO_NR_PALMTE2_IR_DISABLE, 1); | ||
297 | if (err) | ||
298 | gpio_free(GPIO_NR_PALMTE2_IR_DISABLE); | ||
299 | err: | ||
300 | return err; | ||
301 | } | ||
302 | |||
303 | static void palmte2_irda_shutdown(struct device *dev) | ||
304 | { | ||
305 | gpio_free(GPIO_NR_PALMTE2_IR_DISABLE); | ||
306 | } | ||
307 | |||
308 | static void palmte2_irda_transceiver_mode(struct device *dev, int mode) | ||
309 | { | ||
310 | gpio_set_value(GPIO_NR_PALMTE2_IR_DISABLE, mode & IR_OFF); | ||
311 | pxa2xx_transceiver_mode(dev, mode); | ||
312 | } | ||
313 | |||
314 | static struct pxaficp_platform_data palmte2_ficp_platform_data = { | 218 | static struct pxaficp_platform_data palmte2_ficp_platform_data = { |
315 | .startup = palmte2_irda_startup, | 219 | .gpio_pwdown = GPIO_NR_PALMTE2_IR_DISABLE, |
316 | .shutdown = palmte2_irda_shutdown, | 220 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
317 | .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF, | ||
318 | .transceiver_mode = palmte2_irda_transceiver_mode, | ||
319 | }; | 221 | }; |
320 | 222 | ||
321 | /****************************************************************************** | 223 | /****************************************************************************** |
diff --git a/arch/arm/mach-pxa/palmtx.c b/arch/arm/mach-pxa/palmtx.c index 83d020879581..76a2b37eaf30 100644 --- a/arch/arm/mach-pxa/palmtx.c +++ b/arch/arm/mach-pxa/palmtx.c | |||
@@ -28,6 +28,10 @@ | |||
28 | #include <linux/wm97xx_batt.h> | 28 | #include <linux/wm97xx_batt.h> |
29 | #include <linux/power_supply.h> | 29 | #include <linux/power_supply.h> |
30 | #include <linux/usb/gpio_vbus.h> | 30 | #include <linux/usb/gpio_vbus.h> |
31 | #include <linux/mtd/nand.h> | ||
32 | #include <linux/mtd/partitions.h> | ||
33 | #include <linux/mtd/mtd.h> | ||
34 | #include <linux/mtd/physmap.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> |
@@ -131,6 +135,10 @@ static unsigned long palmtx_pin_config[] __initdata = { | |||
131 | GPIO34_FFUART_RXD, | 135 | GPIO34_FFUART_RXD, |
132 | GPIO39_FFUART_TXD, | 136 | GPIO39_FFUART_TXD, |
133 | 137 | ||
138 | /* NAND */ | ||
139 | GPIO15_nCS_1, | ||
140 | GPIO18_RDY, | ||
141 | |||
134 | /* MISC. */ | 142 | /* MISC. */ |
135 | GPIO10_GPIO, /* hotsync button */ | 143 | GPIO10_GPIO, /* hotsync button */ |
136 | GPIO12_GPIO, /* power detect */ | 144 | GPIO12_GPIO, /* power detect */ |
@@ -138,85 +146,50 @@ static unsigned long palmtx_pin_config[] __initdata = { | |||
138 | }; | 146 | }; |
139 | 147 | ||
140 | /****************************************************************************** | 148 | /****************************************************************************** |
141 | * SD/MMC card controller | 149 | * NOR Flash |
142 | ******************************************************************************/ | 150 | ******************************************************************************/ |
143 | static int palmtx_mci_init(struct device *dev, irq_handler_t palmtx_detect_int, | 151 | static struct mtd_partition palmtx_partitions[] = { |
144 | void *data) | 152 | { |
145 | { | 153 | .name = "Flash", |
146 | int err = 0; | 154 | .offset = 0x00000000, |
147 | 155 | .size = MTDPART_SIZ_FULL, | |
148 | /* Setup an interrupt for detecting card insert/remove events */ | 156 | .mask_flags = 0 |
149 | err = gpio_request(GPIO_NR_PALMTX_SD_DETECT_N, "SD IRQ"); | ||
150 | if (err) | ||
151 | goto err; | ||
152 | err = gpio_direction_input(GPIO_NR_PALMTX_SD_DETECT_N); | ||
153 | if (err) | ||
154 | goto err2; | ||
155 | err = request_irq(gpio_to_irq(GPIO_NR_PALMTX_SD_DETECT_N), | ||
156 | palmtx_detect_int, IRQF_DISABLED | IRQF_SAMPLE_RANDOM | | ||
157 | IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING, | ||
158 | "SD/MMC card detect", data); | ||
159 | if (err) { | ||
160 | printk(KERN_ERR "%s: cannot request SD/MMC card detect IRQ\n", | ||
161 | __func__); | ||
162 | goto err2; | ||
163 | } | 157 | } |
158 | }; | ||
164 | 159 | ||
165 | err = gpio_request(GPIO_NR_PALMTX_SD_POWER, "SD_POWER"); | 160 | static struct physmap_flash_data palmtx_flash_data[] = { |
166 | if (err) | 161 | { |
167 | goto err3; | 162 | .width = 2, /* bankwidth in bytes */ |
168 | err = gpio_direction_output(GPIO_NR_PALMTX_SD_POWER, 0); | 163 | .parts = palmtx_partitions, |
169 | if (err) | 164 | .nr_parts = ARRAY_SIZE(palmtx_partitions) |
170 | goto err4; | 165 | } |
171 | 166 | }; | |
172 | err = gpio_request(GPIO_NR_PALMTX_SD_READONLY, "SD_READONLY"); | ||
173 | if (err) | ||
174 | goto err4; | ||
175 | err = gpio_direction_input(GPIO_NR_PALMTX_SD_READONLY); | ||
176 | if (err) | ||
177 | goto err5; | ||
178 | |||
179 | printk(KERN_DEBUG "%s: irq registered\n", __func__); | ||
180 | |||
181 | return 0; | ||
182 | |||
183 | err5: | ||
184 | gpio_free(GPIO_NR_PALMTX_SD_READONLY); | ||
185 | err4: | ||
186 | gpio_free(GPIO_NR_PALMTX_SD_POWER); | ||
187 | err3: | ||
188 | free_irq(gpio_to_irq(GPIO_NR_PALMTX_SD_DETECT_N), data); | ||
189 | err2: | ||
190 | gpio_free(GPIO_NR_PALMTX_SD_DETECT_N); | ||
191 | err: | ||
192 | return err; | ||
193 | } | ||
194 | |||
195 | static void palmtx_mci_exit(struct device *dev, void *data) | ||
196 | { | ||
197 | gpio_free(GPIO_NR_PALMTX_SD_READONLY); | ||
198 | gpio_free(GPIO_NR_PALMTX_SD_POWER); | ||
199 | free_irq(gpio_to_irq(GPIO_NR_PALMTX_SD_DETECT_N), data); | ||
200 | gpio_free(GPIO_NR_PALMTX_SD_DETECT_N); | ||
201 | } | ||
202 | 167 | ||
203 | static void palmtx_mci_power(struct device *dev, unsigned int vdd) | 168 | static struct resource palmtx_flash_resource = { |
204 | { | 169 | .start = PXA_CS0_PHYS, |
205 | struct pxamci_platform_data *p_d = dev->platform_data; | 170 | .end = PXA_CS0_PHYS + SZ_8M - 1, |
206 | gpio_set_value(GPIO_NR_PALMTX_SD_POWER, p_d->ocr_mask & (1 << vdd)); | 171 | .flags = IORESOURCE_MEM, |
207 | } | 172 | }; |
208 | 173 | ||
209 | static int palmtx_mci_get_ro(struct device *dev) | 174 | static struct platform_device palmtx_flash = { |
210 | { | 175 | .name = "physmap-flash", |
211 | return gpio_get_value(GPIO_NR_PALMTX_SD_READONLY); | 176 | .id = 0, |
212 | } | 177 | .resource = &palmtx_flash_resource, |
178 | .num_resources = 1, | ||
179 | .dev = { | ||
180 | .platform_data = palmtx_flash_data, | ||
181 | }, | ||
182 | }; | ||
213 | 183 | ||
184 | /****************************************************************************** | ||
185 | * SD/MMC card controller | ||
186 | ******************************************************************************/ | ||
214 | static struct pxamci_platform_data palmtx_mci_platform_data = { | 187 | static struct pxamci_platform_data palmtx_mci_platform_data = { |
215 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, | 188 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, |
216 | .setpower = palmtx_mci_power, | 189 | .gpio_card_detect = GPIO_NR_PALMTX_SD_DETECT_N, |
217 | .get_ro = palmtx_mci_get_ro, | 190 | .gpio_card_ro = GPIO_NR_PALMTX_SD_READONLY, |
218 | .init = palmtx_mci_init, | 191 | .gpio_power = GPIO_NR_PALMTX_SD_POWER, |
219 | .exit = palmtx_mci_exit, | 192 | .detect_delay = 20, |
220 | }; | 193 | }; |
221 | 194 | ||
222 | /****************************************************************************** | 195 | /****************************************************************************** |
@@ -330,35 +303,9 @@ static struct platform_device palmtx_backlight = { | |||
330 | /****************************************************************************** | 303 | /****************************************************************************** |
331 | * IrDA | 304 | * IrDA |
332 | ******************************************************************************/ | 305 | ******************************************************************************/ |
333 | static int palmtx_irda_startup(struct device *dev) | ||
334 | { | ||
335 | int err; | ||
336 | err = gpio_request(GPIO_NR_PALMTX_IR_DISABLE, "IR DISABLE"); | ||
337 | if (err) | ||
338 | goto err; | ||
339 | err = gpio_direction_output(GPIO_NR_PALMTX_IR_DISABLE, 1); | ||
340 | if (err) | ||
341 | gpio_free(GPIO_NR_PALMTX_IR_DISABLE); | ||
342 | err: | ||
343 | return err; | ||
344 | } | ||
345 | |||
346 | static void palmtx_irda_shutdown(struct device *dev) | ||
347 | { | ||
348 | gpio_free(GPIO_NR_PALMTX_IR_DISABLE); | ||
349 | } | ||
350 | |||
351 | static void palmtx_irda_transceiver_mode(struct device *dev, int mode) | ||
352 | { | ||
353 | gpio_set_value(GPIO_NR_PALMTX_IR_DISABLE, mode & IR_OFF); | ||
354 | pxa2xx_transceiver_mode(dev, mode); | ||
355 | } | ||
356 | |||
357 | static struct pxaficp_platform_data palmtx_ficp_platform_data = { | 306 | static struct pxaficp_platform_data palmtx_ficp_platform_data = { |
358 | .startup = palmtx_irda_startup, | 307 | .gpio_pwdown = GPIO_NR_PALMTX_IR_DISABLE, |
359 | .shutdown = palmtx_irda_shutdown, | 308 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
360 | .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF, | ||
361 | .transceiver_mode = palmtx_irda_transceiver_mode, | ||
362 | }; | 309 | }; |
363 | 310 | ||
364 | /****************************************************************************** | 311 | /****************************************************************************** |
@@ -493,6 +440,68 @@ static struct pxafb_mach_info palmtx_lcd_screen = { | |||
493 | }; | 440 | }; |
494 | 441 | ||
495 | /****************************************************************************** | 442 | /****************************************************************************** |
443 | * NAND Flash | ||
444 | ******************************************************************************/ | ||
445 | static void palmtx_nand_cmd_ctl(struct mtd_info *mtd, int cmd, | ||
446 | unsigned int ctrl) | ||
447 | { | ||
448 | struct nand_chip *this = mtd->priv; | ||
449 | unsigned long nandaddr = (unsigned long)this->IO_ADDR_W; | ||
450 | |||
451 | if (cmd == NAND_CMD_NONE) | ||
452 | return; | ||
453 | |||
454 | if (ctrl & NAND_CLE) | ||
455 | writeb(cmd, PALMTX_NAND_CLE_VIRT); | ||
456 | else if (ctrl & NAND_ALE) | ||
457 | writeb(cmd, PALMTX_NAND_ALE_VIRT); | ||
458 | else | ||
459 | writeb(cmd, nandaddr); | ||
460 | } | ||
461 | |||
462 | static struct mtd_partition palmtx_partition_info[] = { | ||
463 | [0] = { | ||
464 | .name = "palmtx-0", | ||
465 | .offset = 0, | ||
466 | .size = MTDPART_SIZ_FULL | ||
467 | }, | ||
468 | }; | ||
469 | |||
470 | static const char *palmtx_part_probes[] = { "cmdlinepart", NULL }; | ||
471 | |||
472 | struct platform_nand_data palmtx_nand_platdata = { | ||
473 | .chip = { | ||
474 | .nr_chips = 1, | ||
475 | .chip_offset = 0, | ||
476 | .nr_partitions = ARRAY_SIZE(palmtx_partition_info), | ||
477 | .partitions = palmtx_partition_info, | ||
478 | .chip_delay = 20, | ||
479 | .part_probe_types = palmtx_part_probes, | ||
480 | }, | ||
481 | .ctrl = { | ||
482 | .cmd_ctrl = palmtx_nand_cmd_ctl, | ||
483 | }, | ||
484 | }; | ||
485 | |||
486 | static struct resource palmtx_nand_resource[] = { | ||
487 | [0] = { | ||
488 | .start = PXA_CS1_PHYS, | ||
489 | .end = PXA_CS1_PHYS + SZ_1M - 1, | ||
490 | .flags = IORESOURCE_MEM, | ||
491 | }, | ||
492 | }; | ||
493 | |||
494 | static struct platform_device palmtx_nand = { | ||
495 | .name = "gen_nand", | ||
496 | .num_resources = ARRAY_SIZE(palmtx_nand_resource), | ||
497 | .resource = palmtx_nand_resource, | ||
498 | .id = -1, | ||
499 | .dev = { | ||
500 | .platform_data = &palmtx_nand_platdata, | ||
501 | } | ||
502 | }; | ||
503 | |||
504 | /****************************************************************************** | ||
496 | * Power management - standby | 505 | * Power management - standby |
497 | ******************************************************************************/ | 506 | ******************************************************************************/ |
498 | static void __init palmtx_pm_init(void) | 507 | static void __init palmtx_pm_init(void) |
@@ -518,6 +527,8 @@ static struct platform_device *devices[] __initdata = { | |||
518 | &power_supply, | 527 | &power_supply, |
519 | &palmtx_asoc, | 528 | &palmtx_asoc, |
520 | &palmtx_gpio_vbus, | 529 | &palmtx_gpio_vbus, |
530 | &palmtx_flash, | ||
531 | &palmtx_nand, | ||
521 | }; | 532 | }; |
522 | 533 | ||
523 | static struct map_desc palmtx_io_desc[] __initdata = { | 534 | static struct map_desc palmtx_io_desc[] __initdata = { |
@@ -525,8 +536,18 @@ static struct map_desc palmtx_io_desc[] __initdata = { | |||
525 | .virtual = PALMTX_PCMCIA_VIRT, | 536 | .virtual = PALMTX_PCMCIA_VIRT, |
526 | .pfn = __phys_to_pfn(PALMTX_PCMCIA_PHYS), | 537 | .pfn = __phys_to_pfn(PALMTX_PCMCIA_PHYS), |
527 | .length = PALMTX_PCMCIA_SIZE, | 538 | .length = PALMTX_PCMCIA_SIZE, |
528 | .type = MT_DEVICE | 539 | .type = MT_DEVICE, |
529 | }, | 540 | }, { |
541 | .virtual = PALMTX_NAND_ALE_VIRT, | ||
542 | .pfn = __phys_to_pfn(PALMTX_NAND_ALE_PHYS), | ||
543 | .length = SZ_1M, | ||
544 | .type = MT_DEVICE, | ||
545 | }, { | ||
546 | .virtual = PALMTX_NAND_CLE_VIRT, | ||
547 | .pfn = __phys_to_pfn(PALMTX_NAND_CLE_PHYS), | ||
548 | .length = SZ_1M, | ||
549 | .type = MT_DEVICE, | ||
550 | } | ||
530 | }; | 551 | }; |
531 | 552 | ||
532 | static void __init palmtx_map_io(void) | 553 | static void __init palmtx_map_io(void) |
diff --git a/arch/arm/mach-pxa/palmz72.c b/arch/arm/mach-pxa/palmz72.c index c3645aa3fa3d..c2bf493c5f53 100644 --- a/arch/arm/mach-pxa/palmz72.c +++ b/arch/arm/mach-pxa/palmz72.c | |||
@@ -129,88 +129,14 @@ static unsigned long palmz72_pin_config[] __initdata = { | |||
129 | /****************************************************************************** | 129 | /****************************************************************************** |
130 | * SD/MMC card controller | 130 | * SD/MMC card controller |
131 | ******************************************************************************/ | 131 | ******************************************************************************/ |
132 | static int palmz72_mci_init(struct device *dev, | 132 | /* SD_POWER is not actually power, but it is more like chip |
133 | irq_handler_t palmz72_detect_int, void *data) | 133 | * select, i.e. it is inverted */ |
134 | { | ||
135 | int err = 0; | ||
136 | |||
137 | /* Setup an interrupt for detecting card insert/remove events */ | ||
138 | err = gpio_request(GPIO_NR_PALMZ72_SD_DETECT_N, "SD IRQ"); | ||
139 | if (err) | ||
140 | goto err; | ||
141 | err = gpio_direction_input(GPIO_NR_PALMZ72_SD_DETECT_N); | ||
142 | if (err) | ||
143 | goto err2; | ||
144 | err = request_irq(gpio_to_irq(GPIO_NR_PALMZ72_SD_DETECT_N), | ||
145 | palmz72_detect_int, IRQF_DISABLED | IRQF_SAMPLE_RANDOM | | ||
146 | IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING, | ||
147 | "SD/MMC card detect", data); | ||
148 | if (err) { | ||
149 | printk(KERN_ERR "%s: cannot request SD/MMC card detect IRQ\n", | ||
150 | __func__); | ||
151 | goto err2; | ||
152 | } | ||
153 | |||
154 | /* SD_POWER is not actually power, but it is more like chip | ||
155 | * select, i.e. it is inverted */ | ||
156 | |||
157 | err = gpio_request(GPIO_NR_PALMZ72_SD_POWER_N, "SD_POWER"); | ||
158 | if (err) | ||
159 | goto err3; | ||
160 | err = gpio_direction_output(GPIO_NR_PALMZ72_SD_POWER_N, 0); | ||
161 | if (err) | ||
162 | goto err4; | ||
163 | err = gpio_request(GPIO_NR_PALMZ72_SD_RO, "SD_RO"); | ||
164 | if (err) | ||
165 | goto err4; | ||
166 | err = gpio_direction_input(GPIO_NR_PALMZ72_SD_RO); | ||
167 | if (err) | ||
168 | goto err5; | ||
169 | |||
170 | printk(KERN_DEBUG "%s: irq registered\n", __func__); | ||
171 | |||
172 | return 0; | ||
173 | |||
174 | err5: | ||
175 | gpio_free(GPIO_NR_PALMZ72_SD_RO); | ||
176 | err4: | ||
177 | gpio_free(GPIO_NR_PALMZ72_SD_POWER_N); | ||
178 | err3: | ||
179 | free_irq(gpio_to_irq(GPIO_NR_PALMZ72_SD_DETECT_N), data); | ||
180 | err2: | ||
181 | gpio_free(GPIO_NR_PALMZ72_SD_DETECT_N); | ||
182 | err: | ||
183 | return err; | ||
184 | } | ||
185 | |||
186 | static void palmz72_mci_exit(struct device *dev, void *data) | ||
187 | { | ||
188 | gpio_free(GPIO_NR_PALMZ72_SD_POWER_N); | ||
189 | free_irq(gpio_to_irq(GPIO_NR_PALMZ72_SD_DETECT_N), data); | ||
190 | gpio_free(GPIO_NR_PALMZ72_SD_DETECT_N); | ||
191 | gpio_free(GPIO_NR_PALMZ72_SD_RO); | ||
192 | } | ||
193 | |||
194 | static void palmz72_mci_power(struct device *dev, unsigned int vdd) | ||
195 | { | ||
196 | struct pxamci_platform_data *p_d = dev->platform_data; | ||
197 | if (p_d->ocr_mask & (1 << vdd)) | ||
198 | gpio_set_value(GPIO_NR_PALMZ72_SD_POWER_N, 0); | ||
199 | else | ||
200 | gpio_set_value(GPIO_NR_PALMZ72_SD_POWER_N, 1); | ||
201 | } | ||
202 | |||
203 | static int palmz72_mci_ro(struct device *dev) | ||
204 | { | ||
205 | return gpio_get_value(GPIO_NR_PALMZ72_SD_RO); | ||
206 | } | ||
207 | |||
208 | static struct pxamci_platform_data palmz72_mci_platform_data = { | 134 | static struct pxamci_platform_data palmz72_mci_platform_data = { |
209 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, | 135 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, |
210 | .setpower = palmz72_mci_power, | 136 | .gpio_card_detect = GPIO_NR_PALMZ72_SD_DETECT_N, |
211 | .get_ro = palmz72_mci_ro, | 137 | .gpio_card_ro = GPIO_NR_PALMZ72_SD_RO, |
212 | .init = palmz72_mci_init, | 138 | .gpio_power = GPIO_NR_PALMZ72_SD_POWER_N, |
213 | .exit = palmz72_mci_exit, | 139 | .gpio_power_invert = 1, |
214 | }; | 140 | }; |
215 | 141 | ||
216 | /****************************************************************************** | 142 | /****************************************************************************** |
@@ -304,35 +230,9 @@ static struct platform_device palmz72_backlight = { | |||
304 | /****************************************************************************** | 230 | /****************************************************************************** |
305 | * IrDA | 231 | * IrDA |
306 | ******************************************************************************/ | 232 | ******************************************************************************/ |
307 | static int palmz72_irda_startup(struct device *dev) | ||
308 | { | ||
309 | int err; | ||
310 | err = gpio_request(GPIO_NR_PALMZ72_IR_DISABLE, "IR DISABLE"); | ||
311 | if (err) | ||
312 | goto err; | ||
313 | err = gpio_direction_output(GPIO_NR_PALMZ72_IR_DISABLE, 1); | ||
314 | if (err) | ||
315 | gpio_free(GPIO_NR_PALMZ72_IR_DISABLE); | ||
316 | err: | ||
317 | return err; | ||
318 | } | ||
319 | |||
320 | static void palmz72_irda_shutdown(struct device *dev) | ||
321 | { | ||
322 | gpio_free(GPIO_NR_PALMZ72_IR_DISABLE); | ||
323 | } | ||
324 | |||
325 | static void palmz72_irda_transceiver_mode(struct device *dev, int mode) | ||
326 | { | ||
327 | gpio_set_value(GPIO_NR_PALMZ72_IR_DISABLE, mode & IR_OFF); | ||
328 | pxa2xx_transceiver_mode(dev, mode); | ||
329 | } | ||
330 | |||
331 | static struct pxaficp_platform_data palmz72_ficp_platform_data = { | 233 | static struct pxaficp_platform_data palmz72_ficp_platform_data = { |
332 | .startup = palmz72_irda_startup, | 234 | .gpio_pwdown = GPIO_NR_PALMZ72_IR_DISABLE, |
333 | .shutdown = palmz72_irda_shutdown, | ||
334 | .transceiver_cap = IR_SIRMODE | IR_OFF, | 235 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
335 | .transceiver_mode = palmz72_irda_transceiver_mode, | ||
336 | }; | 236 | }; |
337 | 237 | ||
338 | /****************************************************************************** | 238 | /****************************************************************************** |
diff --git a/arch/arm/mach-pxa/pcm990-baseboard.c b/arch/arm/mach-pxa/pcm990-baseboard.c index 01791d74e08e..bbda57078e0f 100644 --- a/arch/arm/mach-pxa/pcm990-baseboard.c +++ b/arch/arm/mach-pxa/pcm990-baseboard.c | |||
@@ -321,11 +321,14 @@ static void pcm990_mci_exit(struct device *dev, void *data) | |||
321 | #define MSECS_PER_JIFFY (1000/HZ) | 321 | #define MSECS_PER_JIFFY (1000/HZ) |
322 | 322 | ||
323 | static struct pxamci_platform_data pcm990_mci_platform_data = { | 323 | static struct pxamci_platform_data pcm990_mci_platform_data = { |
324 | .detect_delay = 250 / MSECS_PER_JIFFY, | 324 | .detect_delay = 250 / MSECS_PER_JIFFY, |
325 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, | 325 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, |
326 | .init = pcm990_mci_init, | 326 | .init = pcm990_mci_init, |
327 | .setpower = pcm990_mci_setpower, | 327 | .setpower = pcm990_mci_setpower, |
328 | .exit = pcm990_mci_exit, | 328 | .exit = pcm990_mci_exit, |
329 | .gpio_card_detect = -1, | ||
330 | .gpio_card_ro = -1, | ||
331 | .gpio_power = -1, | ||
329 | }; | 332 | }; |
330 | 333 | ||
331 | static struct pxaohci_platform_data pcm990_ohci_platform_data = { | 334 | static struct pxaohci_platform_data pcm990_ohci_platform_data = { |
@@ -427,25 +430,56 @@ static void pcm990_camera_free_bus(struct soc_camera_link *link) | |||
427 | gpio_bus_switch = -EINVAL; | 430 | gpio_bus_switch = -EINVAL; |
428 | } | 431 | } |
429 | 432 | ||
430 | static struct soc_camera_link iclink = { | ||
431 | .bus_id = 0, /* Must match with the camera ID above */ | ||
432 | .query_bus_param = pcm990_camera_query_bus_param, | ||
433 | .set_bus_param = pcm990_camera_set_bus_param, | ||
434 | .free_bus = pcm990_camera_free_bus, | ||
435 | }; | ||
436 | |||
437 | /* Board I2C devices. */ | 433 | /* Board I2C devices. */ |
438 | static struct i2c_board_info __initdata pcm990_i2c_devices[] = { | 434 | static struct i2c_board_info __initdata pcm990_i2c_devices[] = { |
439 | { | 435 | { |
440 | /* Must initialize before the camera(s) */ | 436 | /* Must initialize before the camera(s) */ |
441 | I2C_BOARD_INFO("pca9536", 0x41), | 437 | I2C_BOARD_INFO("pca9536", 0x41), |
442 | .platform_data = &pca9536_data, | 438 | .platform_data = &pca9536_data, |
443 | }, { | 439 | }, |
440 | }; | ||
441 | |||
442 | static struct i2c_board_info pcm990_camera_i2c[] = { | ||
443 | { | ||
444 | I2C_BOARD_INFO("mt9v022", 0x48), | 444 | I2C_BOARD_INFO("mt9v022", 0x48), |
445 | .platform_data = &iclink, /* With extender */ | ||
446 | }, { | 445 | }, { |
447 | I2C_BOARD_INFO("mt9m001", 0x5d), | 446 | I2C_BOARD_INFO("mt9m001", 0x5d), |
448 | .platform_data = &iclink, /* With extender */ | 447 | }, |
448 | }; | ||
449 | |||
450 | static struct soc_camera_link iclink[] = { | ||
451 | { | ||
452 | .bus_id = 0, /* Must match with the camera ID */ | ||
453 | .board_info = &pcm990_camera_i2c[0], | ||
454 | .i2c_adapter_id = 0, | ||
455 | .query_bus_param = pcm990_camera_query_bus_param, | ||
456 | .set_bus_param = pcm990_camera_set_bus_param, | ||
457 | .free_bus = pcm990_camera_free_bus, | ||
458 | .module_name = "mt9v022", | ||
459 | }, { | ||
460 | .bus_id = 0, /* Must match with the camera ID */ | ||
461 | .board_info = &pcm990_camera_i2c[1], | ||
462 | .i2c_adapter_id = 0, | ||
463 | .query_bus_param = pcm990_camera_query_bus_param, | ||
464 | .set_bus_param = pcm990_camera_set_bus_param, | ||
465 | .free_bus = pcm990_camera_free_bus, | ||
466 | .module_name = "mt9m001", | ||
467 | }, | ||
468 | }; | ||
469 | |||
470 | static struct platform_device pcm990_camera[] = { | ||
471 | { | ||
472 | .name = "soc-camera-pdrv", | ||
473 | .id = 0, | ||
474 | .dev = { | ||
475 | .platform_data = &iclink[0], | ||
476 | }, | ||
477 | }, { | ||
478 | .name = "soc-camera-pdrv", | ||
479 | .id = 1, | ||
480 | .dev = { | ||
481 | .platform_data = &iclink[1], | ||
482 | }, | ||
449 | }, | 483 | }, |
450 | }; | 484 | }; |
451 | #endif /* CONFIG_VIDEO_PXA27x ||CONFIG_VIDEO_PXA27x_MODULE */ | 485 | #endif /* CONFIG_VIDEO_PXA27x ||CONFIG_VIDEO_PXA27x_MODULE */ |
@@ -501,6 +535,9 @@ void __init pcm990_baseboard_init(void) | |||
501 | pxa_set_camera_info(&pcm990_pxacamera_platform_data); | 535 | pxa_set_camera_info(&pcm990_pxacamera_platform_data); |
502 | 536 | ||
503 | i2c_register_board_info(0, ARRAY_AND_SIZE(pcm990_i2c_devices)); | 537 | i2c_register_board_info(0, ARRAY_AND_SIZE(pcm990_i2c_devices)); |
538 | |||
539 | platform_device_register(&pcm990_camera[0]); | ||
540 | platform_device_register(&pcm990_camera[1]); | ||
504 | #endif | 541 | #endif |
505 | 542 | ||
506 | printk(KERN_INFO "PCM-990 Evaluation baseboard initialized\n"); | 543 | printk(KERN_INFO "PCM-990 Evaluation baseboard initialized\n"); |
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index 9352d4a34837..a186994f77fb 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach-pxa/poodle.c | |||
@@ -245,20 +245,10 @@ static inline void poodle_init_spi(void) {} | |||
245 | * The card detect interrupt isn't debounced so we delay it by 250ms | 245 | * The card detect interrupt isn't debounced so we delay it by 250ms |
246 | * to give the card a chance to fully insert/eject. | 246 | * to give the card a chance to fully insert/eject. |
247 | */ | 247 | */ |
248 | static struct pxamci_platform_data poodle_mci_platform_data; | ||
249 | |||
250 | static int poodle_mci_init(struct device *dev, irq_handler_t poodle_detect_int, void *data) | 248 | static int poodle_mci_init(struct device *dev, irq_handler_t poodle_detect_int, void *data) |
251 | { | 249 | { |
252 | int err; | 250 | int err; |
253 | 251 | ||
254 | err = gpio_request(POODLE_GPIO_nSD_DETECT, "nSD_DETECT"); | ||
255 | if (err) | ||
256 | goto err_out; | ||
257 | |||
258 | err = gpio_request(POODLE_GPIO_nSD_WP, "nSD_WP"); | ||
259 | if (err) | ||
260 | goto err_free_1; | ||
261 | |||
262 | err = gpio_request(POODLE_GPIO_SD_PWR, "SD_PWR"); | 252 | err = gpio_request(POODLE_GPIO_SD_PWR, "SD_PWR"); |
263 | if (err) | 253 | if (err) |
264 | goto err_free_2; | 254 | goto err_free_2; |
@@ -267,34 +257,14 @@ static int poodle_mci_init(struct device *dev, irq_handler_t poodle_detect_int, | |||
267 | if (err) | 257 | if (err) |
268 | goto err_free_3; | 258 | goto err_free_3; |
269 | 259 | ||
270 | gpio_direction_input(POODLE_GPIO_nSD_DETECT); | ||
271 | gpio_direction_input(POODLE_GPIO_nSD_WP); | ||
272 | |||
273 | gpio_direction_output(POODLE_GPIO_SD_PWR, 0); | 260 | gpio_direction_output(POODLE_GPIO_SD_PWR, 0); |
274 | gpio_direction_output(POODLE_GPIO_SD_PWR1, 0); | 261 | gpio_direction_output(POODLE_GPIO_SD_PWR1, 0); |
275 | 262 | ||
276 | poodle_mci_platform_data.detect_delay = msecs_to_jiffies(250); | ||
277 | |||
278 | err = request_irq(POODLE_IRQ_GPIO_nSD_DETECT, poodle_detect_int, | ||
279 | IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, | ||
280 | "MMC card detect", data); | ||
281 | if (err) { | ||
282 | pr_err("%s: MMC/SD: can't request MMC card detect IRQ\n", | ||
283 | __func__); | ||
284 | goto err_free_4; | ||
285 | } | ||
286 | |||
287 | return 0; | 263 | return 0; |
288 | 264 | ||
289 | err_free_4: | ||
290 | gpio_free(POODLE_GPIO_SD_PWR1); | ||
291 | err_free_3: | 265 | err_free_3: |
292 | gpio_free(POODLE_GPIO_SD_PWR); | 266 | gpio_free(POODLE_GPIO_SD_PWR); |
293 | err_free_2: | 267 | err_free_2: |
294 | gpio_free(POODLE_GPIO_nSD_WP); | ||
295 | err_free_1: | ||
296 | gpio_free(POODLE_GPIO_nSD_DETECT); | ||
297 | err_out: | ||
298 | return err; | 268 | return err; |
299 | } | 269 | } |
300 | 270 | ||
@@ -312,62 +282,29 @@ static void poodle_mci_setpower(struct device *dev, unsigned int vdd) | |||
312 | } | 282 | } |
313 | } | 283 | } |
314 | 284 | ||
315 | static int poodle_mci_get_ro(struct device *dev) | ||
316 | { | ||
317 | return !!gpio_get_value(POODLE_GPIO_nSD_WP); | ||
318 | return GPLR(POODLE_GPIO_nSD_WP) & GPIO_bit(POODLE_GPIO_nSD_WP); | ||
319 | } | ||
320 | |||
321 | |||
322 | static void poodle_mci_exit(struct device *dev, void *data) | 285 | static void poodle_mci_exit(struct device *dev, void *data) |
323 | { | 286 | { |
324 | free_irq(POODLE_IRQ_GPIO_nSD_DETECT, data); | ||
325 | gpio_free(POODLE_GPIO_SD_PWR1); | 287 | gpio_free(POODLE_GPIO_SD_PWR1); |
326 | gpio_free(POODLE_GPIO_SD_PWR); | 288 | gpio_free(POODLE_GPIO_SD_PWR); |
327 | gpio_free(POODLE_GPIO_nSD_WP); | ||
328 | gpio_free(POODLE_GPIO_nSD_DETECT); | ||
329 | } | 289 | } |
330 | 290 | ||
331 | static struct pxamci_platform_data poodle_mci_platform_data = { | 291 | static struct pxamci_platform_data poodle_mci_platform_data = { |
332 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 292 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
333 | .init = poodle_mci_init, | 293 | .init = poodle_mci_init, |
334 | .get_ro = poodle_mci_get_ro, | 294 | .setpower = poodle_mci_setpower, |
335 | .setpower = poodle_mci_setpower, | 295 | .exit = poodle_mci_exit, |
336 | .exit = poodle_mci_exit, | 296 | .gpio_card_detect = POODLE_IRQ_GPIO_nSD_DETECT, |
297 | .gpio_card_ro = POODLE_GPIO_nSD_WP, | ||
298 | .gpio_power = -1, | ||
337 | }; | 299 | }; |
338 | 300 | ||
339 | 301 | ||
340 | /* | 302 | /* |
341 | * Irda | 303 | * Irda |
342 | */ | 304 | */ |
343 | static void poodle_irda_transceiver_mode(struct device *dev, int mode) | ||
344 | { | ||
345 | gpio_set_value(POODLE_GPIO_IR_ON, mode & IR_OFF); | ||
346 | pxa2xx_transceiver_mode(dev, mode); | ||
347 | } | ||
348 | |||
349 | static int poodle_irda_startup(struct device *dev) | ||
350 | { | ||
351 | int err; | ||
352 | |||
353 | err = gpio_request(POODLE_GPIO_IR_ON, "IR_ON"); | ||
354 | if (err) | ||
355 | return err; | ||
356 | |||
357 | gpio_direction_output(POODLE_GPIO_IR_ON, 1); | ||
358 | return 0; | ||
359 | } | ||
360 | |||
361 | static void poodle_irda_shutdown(struct device *dev) | ||
362 | { | ||
363 | gpio_free(POODLE_GPIO_IR_ON); | ||
364 | } | ||
365 | |||
366 | static struct pxaficp_platform_data poodle_ficp_platform_data = { | 305 | static struct pxaficp_platform_data poodle_ficp_platform_data = { |
306 | .gpio_pwdown = POODLE_GPIO_IR_ON, | ||
367 | .transceiver_cap = IR_SIRMODE | IR_OFF, | 307 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
368 | .transceiver_mode = poodle_irda_transceiver_mode, | ||
369 | .startup = poodle_irda_startup, | ||
370 | .shutdown = poodle_irda_shutdown, | ||
371 | }; | 308 | }; |
372 | 309 | ||
373 | 310 | ||
@@ -521,6 +458,7 @@ static void __init poodle_init(void) | |||
521 | set_pxa_fb_parent(&poodle_locomo_device.dev); | 458 | set_pxa_fb_parent(&poodle_locomo_device.dev); |
522 | set_pxa_fb_info(&poodle_fb_info); | 459 | set_pxa_fb_info(&poodle_fb_info); |
523 | pxa_set_udc_info(&udc_info); | 460 | pxa_set_udc_info(&udc_info); |
461 | poodle_mci_platform_data.detect_delay = msecs_to_jiffies(250); | ||
524 | pxa_set_mci_info(&poodle_mci_platform_data); | 462 | pxa_set_mci_info(&poodle_mci_platform_data); |
525 | pxa_set_ficp_info(&poodle_ficp_platform_data); | 463 | pxa_set_ficp_info(&poodle_ficp_platform_data); |
526 | pxa_set_i2c_info(NULL); | 464 | pxa_set_i2c_info(NULL); |
diff --git a/arch/arm/mach-pxa/pxa2xx.c b/arch/arm/mach-pxa/pxa2xx.c index 2f3394f85917..868270421b8c 100644 --- a/arch/arm/mach-pxa/pxa2xx.c +++ b/arch/arm/mach-pxa/pxa2xx.c | |||
@@ -52,3 +52,4 @@ void pxa2xx_transceiver_mode(struct device *dev, int mode) | |||
52 | } else | 52 | } else |
53 | BUG(); | 53 | BUG(); |
54 | } | 54 | } |
55 | EXPORT_SYMBOL_GPL(pxa2xx_transceiver_mode); | ||
diff --git a/arch/arm/mach-pxa/pxa300.c b/arch/arm/mach-pxa/pxa300.c index 4ba6d21f851c..f4af6e2bef89 100644 --- a/arch/arm/mach-pxa/pxa300.c +++ b/arch/arm/mach-pxa/pxa300.c | |||
@@ -84,9 +84,11 @@ static struct mfp_addr_map pxa310_mfp_addr_map[] __initdata = { | |||
84 | }; | 84 | }; |
85 | 85 | ||
86 | static DEFINE_PXA3_CKEN(common_nand, NAND, 156000000, 0); | 86 | static DEFINE_PXA3_CKEN(common_nand, NAND, 156000000, 0); |
87 | static DEFINE_PXA3_CKEN(gcu, PXA300_GCU, 0, 0); | ||
87 | 88 | ||
88 | static struct clk_lookup common_clkregs[] = { | 89 | static struct clk_lookup common_clkregs[] = { |
89 | INIT_CLKREG(&clk_common_nand, "pxa3xx-nand", NULL), | 90 | INIT_CLKREG(&clk_common_nand, "pxa3xx-nand", NULL), |
91 | INIT_CLKREG(&clk_gcu, "pxa3xx-gcu", NULL), | ||
90 | }; | 92 | }; |
91 | 93 | ||
92 | static DEFINE_PXA3_CKEN(pxa310_mmc3, MMC3, 19500000, 0); | 94 | static DEFINE_PXA3_CKEN(pxa310_mmc3, MMC3, 19500000, 0); |
diff --git a/arch/arm/mach-pxa/pxa320.c b/arch/arm/mach-pxa/pxa320.c index 8b3d97efadab..c7373e74a109 100644 --- a/arch/arm/mach-pxa/pxa320.c +++ b/arch/arm/mach-pxa/pxa320.c | |||
@@ -78,9 +78,11 @@ static struct mfp_addr_map pxa320_mfp_addr_map[] __initdata = { | |||
78 | }; | 78 | }; |
79 | 79 | ||
80 | static DEFINE_PXA3_CKEN(pxa320_nand, NAND, 104000000, 0); | 80 | static DEFINE_PXA3_CKEN(pxa320_nand, NAND, 104000000, 0); |
81 | static DEFINE_PXA3_CKEN(gcu, PXA320_GCU, 0, 0); | ||
81 | 82 | ||
82 | static struct clk_lookup pxa320_clkregs[] = { | 83 | static struct clk_lookup pxa320_clkregs[] = { |
83 | INIT_CLKREG(&clk_pxa320_nand, "pxa3xx-nand", NULL), | 84 | INIT_CLKREG(&clk_pxa320_nand, "pxa3xx-nand", NULL), |
85 | INIT_CLKREG(&clk_gcu, "pxa3xx-gcu", NULL), | ||
84 | }; | 86 | }; |
85 | 87 | ||
86 | static int __init pxa320_init(void) | 88 | static int __init pxa320_init(void) |
diff --git a/arch/arm/mach-pxa/pxa930.c b/arch/arm/mach-pxa/pxa930.c index 71131742fffd..064292008288 100644 --- a/arch/arm/mach-pxa/pxa930.c +++ b/arch/arm/mach-pxa/pxa930.c | |||
@@ -176,13 +176,30 @@ static struct mfp_addr_map pxa930_mfp_addr_map[] __initdata = { | |||
176 | MFP_ADDR_END, | 176 | MFP_ADDR_END, |
177 | }; | 177 | }; |
178 | 178 | ||
179 | static struct mfp_addr_map pxa935_mfp_addr_map[] __initdata = { | ||
180 | MFP_ADDR(GPIO159, 0x0524), | ||
181 | MFP_ADDR(GPIO163, 0x0534), | ||
182 | MFP_ADDR(GPIO167, 0x0544), | ||
183 | MFP_ADDR(GPIO168, 0x0548), | ||
184 | MFP_ADDR(GPIO169, 0x054c), | ||
185 | MFP_ADDR(GPIO170, 0x0550), | ||
186 | MFP_ADDR(GPIO171, 0x0554), | ||
187 | MFP_ADDR(GPIO172, 0x0558), | ||
188 | MFP_ADDR(GPIO173, 0x055c), | ||
189 | |||
190 | MFP_ADDR_END, | ||
191 | }; | ||
192 | |||
179 | static int __init pxa930_init(void) | 193 | static int __init pxa930_init(void) |
180 | { | 194 | { |
181 | if (cpu_is_pxa930()) { | 195 | if (cpu_is_pxa930() || cpu_is_pxa935()) { |
182 | mfp_init_base(io_p2v(MFPR_BASE)); | 196 | mfp_init_base(io_p2v(MFPR_BASE)); |
183 | mfp_init_addr(pxa930_mfp_addr_map); | 197 | mfp_init_addr(pxa930_mfp_addr_map); |
184 | } | 198 | } |
185 | 199 | ||
200 | if (cpu_is_pxa935()) | ||
201 | mfp_init_addr(pxa935_mfp_addr_map); | ||
202 | |||
186 | return 0; | 203 | return 0; |
187 | } | 204 | } |
188 | 205 | ||
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index dda310fe71c8..ee8d6038ce82 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/spi/ads7846.h> | 24 | #include <linux/spi/ads7846.h> |
25 | #include <linux/spi/corgi_lcd.h> | 25 | #include <linux/spi/corgi_lcd.h> |
26 | #include <linux/mtd/sharpsl.h> | 26 | #include <linux/mtd/sharpsl.h> |
27 | #include <linux/input/matrix_keypad.h> | ||
27 | 28 | ||
28 | #include <asm/setup.h> | 29 | #include <asm/setup.h> |
29 | #include <asm/mach-types.h> | 30 | #include <asm/mach-types.h> |
@@ -111,6 +112,26 @@ static unsigned long spitz_pin_config[] __initdata = { | |||
111 | GPIO105_GPIO, /* SPITZ_GPIO_CF_IRQ */ | 112 | GPIO105_GPIO, /* SPITZ_GPIO_CF_IRQ */ |
112 | GPIO106_GPIO, /* SPITZ_GPIO_CF2_IRQ */ | 113 | GPIO106_GPIO, /* SPITZ_GPIO_CF2_IRQ */ |
113 | 114 | ||
115 | /* GPIO matrix keypad */ | ||
116 | GPIO88_GPIO, /* column 0 */ | ||
117 | GPIO23_GPIO, /* column 1 */ | ||
118 | GPIO24_GPIO, /* column 2 */ | ||
119 | GPIO25_GPIO, /* column 3 */ | ||
120 | GPIO26_GPIO, /* column 4 */ | ||
121 | GPIO27_GPIO, /* column 5 */ | ||
122 | GPIO52_GPIO, /* column 6 */ | ||
123 | GPIO103_GPIO, /* column 7 */ | ||
124 | GPIO107_GPIO, /* column 8 */ | ||
125 | GPIO108_GPIO, /* column 9 */ | ||
126 | GPIO114_GPIO, /* column 10 */ | ||
127 | GPIO12_GPIO, /* row 0 */ | ||
128 | GPIO17_GPIO, /* row 1 */ | ||
129 | GPIO91_GPIO, /* row 2 */ | ||
130 | GPIO34_GPIO, /* row 3 */ | ||
131 | GPIO36_GPIO, /* row 4 */ | ||
132 | GPIO38_GPIO, /* row 5 */ | ||
133 | GPIO39_GPIO, /* row 6 */ | ||
134 | |||
114 | /* I2C */ | 135 | /* I2C */ |
115 | GPIO117_I2C_SCL, | 136 | GPIO117_I2C_SCL, |
116 | GPIO118_I2C_SDA, | 137 | GPIO118_I2C_SDA, |
@@ -242,9 +263,115 @@ EXPORT_SYMBOL(spitzscoop2_device); | |||
242 | /* | 263 | /* |
243 | * Spitz Keyboard Device | 264 | * Spitz Keyboard Device |
244 | */ | 265 | */ |
266 | #define SPITZ_KEY_CALENDAR KEY_F1 | ||
267 | #define SPITZ_KEY_ADDRESS KEY_F2 | ||
268 | #define SPITZ_KEY_FN KEY_F3 | ||
269 | #define SPITZ_KEY_CANCEL KEY_F4 | ||
270 | #define SPITZ_KEY_EXOK KEY_F5 | ||
271 | #define SPITZ_KEY_EXCANCEL KEY_F6 | ||
272 | #define SPITZ_KEY_EXJOGDOWN KEY_F7 | ||
273 | #define SPITZ_KEY_EXJOGUP KEY_F8 | ||
274 | #define SPITZ_KEY_JAP1 KEY_LEFTALT | ||
275 | #define SPITZ_KEY_JAP2 KEY_RIGHTCTRL | ||
276 | #define SPITZ_KEY_SYNC KEY_F9 | ||
277 | #define SPITZ_KEY_MAIL KEY_F10 | ||
278 | #define SPITZ_KEY_OK KEY_F11 | ||
279 | #define SPITZ_KEY_MENU KEY_F12 | ||
280 | |||
281 | static const uint32_t spitzkbd_keymap[] = { | ||
282 | KEY(0, 0, KEY_LEFTCTRL), | ||
283 | KEY(0, 1, KEY_1), | ||
284 | KEY(0, 2, KEY_3), | ||
285 | KEY(0, 3, KEY_5), | ||
286 | KEY(0, 4, KEY_6), | ||
287 | KEY(0, 5, KEY_7), | ||
288 | KEY(0, 6, KEY_9), | ||
289 | KEY(0, 7, KEY_0), | ||
290 | KEY(0, 8, KEY_BACKSPACE), | ||
291 | KEY(0, 9, SPITZ_KEY_EXOK), /* EXOK */ | ||
292 | KEY(0, 10, SPITZ_KEY_EXCANCEL), /* EXCANCEL */ | ||
293 | KEY(1, 1, KEY_2), | ||
294 | KEY(1, 2, KEY_4), | ||
295 | KEY(1, 3, KEY_R), | ||
296 | KEY(1, 4, KEY_Y), | ||
297 | KEY(1, 5, KEY_8), | ||
298 | KEY(1, 6, KEY_I), | ||
299 | KEY(1, 7, KEY_O), | ||
300 | KEY(1, 8, KEY_P), | ||
301 | KEY(1, 9, SPITZ_KEY_EXJOGDOWN), /* EXJOGDOWN */ | ||
302 | KEY(1, 10, SPITZ_KEY_EXJOGUP), /* EXJOGUP */ | ||
303 | KEY(2, 0, KEY_TAB), | ||
304 | KEY(2, 1, KEY_Q), | ||
305 | KEY(2, 2, KEY_E), | ||
306 | KEY(2, 3, KEY_T), | ||
307 | KEY(2, 4, KEY_G), | ||
308 | KEY(2, 5, KEY_U), | ||
309 | KEY(2, 6, KEY_J), | ||
310 | KEY(2, 7, KEY_K), | ||
311 | KEY(3, 0, SPITZ_KEY_ADDRESS), /* ADDRESS */ | ||
312 | KEY(3, 1, KEY_W), | ||
313 | KEY(3, 2, KEY_S), | ||
314 | KEY(3, 3, KEY_F), | ||
315 | KEY(3, 4, KEY_V), | ||
316 | KEY(3, 5, KEY_H), | ||
317 | KEY(3, 6, KEY_M), | ||
318 | KEY(3, 7, KEY_L), | ||
319 | KEY(3, 9, KEY_RIGHTSHIFT), | ||
320 | KEY(4, 0, SPITZ_KEY_CALENDAR), /* CALENDAR */ | ||
321 | KEY(4, 1, KEY_A), | ||
322 | KEY(4, 2, KEY_D), | ||
323 | KEY(4, 3, KEY_C), | ||
324 | KEY(4, 4, KEY_B), | ||
325 | KEY(4, 5, KEY_N), | ||
326 | KEY(4, 6, KEY_DOT), | ||
327 | KEY(4, 8, KEY_ENTER), | ||
328 | KEY(4, 9, KEY_LEFTSHIFT), | ||
329 | KEY(5, 0, SPITZ_KEY_MAIL), /* MAIL */ | ||
330 | KEY(5, 1, KEY_Z), | ||
331 | KEY(5, 2, KEY_X), | ||
332 | KEY(5, 3, KEY_MINUS), | ||
333 | KEY(5, 4, KEY_SPACE), | ||
334 | KEY(5, 5, KEY_COMMA), | ||
335 | KEY(5, 7, KEY_UP), | ||
336 | KEY(5, 10, SPITZ_KEY_FN), /* FN */ | ||
337 | KEY(6, 0, KEY_SYSRQ), | ||
338 | KEY(6, 1, SPITZ_KEY_JAP1), /* JAP1 */ | ||
339 | KEY(6, 2, SPITZ_KEY_JAP2), /* JAP2 */ | ||
340 | KEY(6, 3, SPITZ_KEY_CANCEL), /* CANCEL */ | ||
341 | KEY(6, 4, SPITZ_KEY_OK), /* OK */ | ||
342 | KEY(6, 5, SPITZ_KEY_MENU), /* MENU */ | ||
343 | KEY(6, 6, KEY_LEFT), | ||
344 | KEY(6, 7, KEY_DOWN), | ||
345 | KEY(6, 8, KEY_RIGHT), | ||
346 | }; | ||
347 | |||
348 | static const struct matrix_keymap_data spitzkbd_keymap_data = { | ||
349 | .keymap = spitzkbd_keymap, | ||
350 | .keymap_size = ARRAY_SIZE(spitzkbd_keymap), | ||
351 | }; | ||
352 | |||
353 | static const uint32_t spitzkbd_row_gpios[] = | ||
354 | { 12, 17, 91, 34, 36, 38, 39 }; | ||
355 | static const uint32_t spitzkbd_col_gpios[] = | ||
356 | { 88, 23, 24, 25, 26, 27, 52, 103, 107, 108, 114 }; | ||
357 | |||
358 | static struct matrix_keypad_platform_data spitzkbd_pdata = { | ||
359 | .keymap_data = &spitzkbd_keymap_data, | ||
360 | .row_gpios = spitzkbd_row_gpios, | ||
361 | .col_gpios = spitzkbd_col_gpios, | ||
362 | .num_row_gpios = ARRAY_SIZE(spitzkbd_row_gpios), | ||
363 | .num_col_gpios = ARRAY_SIZE(spitzkbd_col_gpios), | ||
364 | .col_scan_delay_us = 10, | ||
365 | .debounce_ms = 10, | ||
366 | .wakeup = 1, | ||
367 | }; | ||
368 | |||
245 | static struct platform_device spitzkbd_device = { | 369 | static struct platform_device spitzkbd_device = { |
246 | .name = "spitz-keyboard", | 370 | .name = "matrix-keypad", |
247 | .id = -1, | 371 | .id = -1, |
372 | .dev = { | ||
373 | .platform_data = &spitzkbd_pdata, | ||
374 | }, | ||
248 | }; | 375 | }; |
249 | 376 | ||
250 | 377 | ||
@@ -296,6 +423,7 @@ static struct ads7846_platform_data spitz_ads7846_info = { | |||
296 | .vref_delay_usecs = 100, | 423 | .vref_delay_usecs = 100, |
297 | .x_plate_ohms = 419, | 424 | .x_plate_ohms = 419, |
298 | .y_plate_ohms = 486, | 425 | .y_plate_ohms = 486, |
426 | .pressure_max = 1024, | ||
299 | .gpio_pendown = SPITZ_GPIO_TP_INT, | 427 | .gpio_pendown = SPITZ_GPIO_TP_INT, |
300 | .wait_for_sync = spitz_wait_for_hsync, | 428 | .wait_for_sync = spitz_wait_for_hsync, |
301 | }; | 429 | }; |
@@ -378,45 +506,6 @@ static inline void spitz_init_spi(void) {} | |||
378 | * The card detect interrupt isn't debounced so we delay it by 250ms | 506 | * The card detect interrupt isn't debounced so we delay it by 250ms |
379 | * to give the card a chance to fully insert/eject. | 507 | * to give the card a chance to fully insert/eject. |
380 | */ | 508 | */ |
381 | |||
382 | static struct pxamci_platform_data spitz_mci_platform_data; | ||
383 | |||
384 | static int spitz_mci_init(struct device *dev, irq_handler_t spitz_detect_int, void *data) | ||
385 | { | ||
386 | int err; | ||
387 | |||
388 | err = gpio_request(SPITZ_GPIO_nSD_DETECT, "nSD_DETECT"); | ||
389 | if (err) | ||
390 | goto err_out; | ||
391 | |||
392 | err = gpio_request(SPITZ_GPIO_nSD_WP, "nSD_WP"); | ||
393 | if (err) | ||
394 | goto err_free_1; | ||
395 | |||
396 | gpio_direction_input(SPITZ_GPIO_nSD_DETECT); | ||
397 | gpio_direction_input(SPITZ_GPIO_nSD_WP); | ||
398 | |||
399 | spitz_mci_platform_data.detect_delay = msecs_to_jiffies(250); | ||
400 | |||
401 | err = request_irq(SPITZ_IRQ_GPIO_nSD_DETECT, spitz_detect_int, | ||
402 | IRQF_DISABLED | IRQF_TRIGGER_RISING | | ||
403 | IRQF_TRIGGER_FALLING, | ||
404 | "MMC card detect", data); | ||
405 | if (err) { | ||
406 | pr_err("%s: MMC/SD: can't request MMC card detect IRQ\n", | ||
407 | __func__); | ||
408 | goto err_free_2; | ||
409 | } | ||
410 | return 0; | ||
411 | |||
412 | err_free_2: | ||
413 | gpio_free(SPITZ_GPIO_nSD_WP); | ||
414 | err_free_1: | ||
415 | gpio_free(SPITZ_GPIO_nSD_DETECT); | ||
416 | err_out: | ||
417 | return err; | ||
418 | } | ||
419 | |||
420 | static void spitz_mci_setpower(struct device *dev, unsigned int vdd) | 509 | static void spitz_mci_setpower(struct device *dev, unsigned int vdd) |
421 | { | 510 | { |
422 | struct pxamci_platform_data* p_d = dev->platform_data; | 511 | struct pxamci_platform_data* p_d = dev->platform_data; |
@@ -427,24 +516,12 @@ static void spitz_mci_setpower(struct device *dev, unsigned int vdd) | |||
427 | spitz_card_pwr_ctrl(SPITZ_PWR_SD, 0x0000); | 516 | spitz_card_pwr_ctrl(SPITZ_PWR_SD, 0x0000); |
428 | } | 517 | } |
429 | 518 | ||
430 | static int spitz_mci_get_ro(struct device *dev) | ||
431 | { | ||
432 | return gpio_get_value(SPITZ_GPIO_nSD_WP); | ||
433 | } | ||
434 | |||
435 | static void spitz_mci_exit(struct device *dev, void *data) | ||
436 | { | ||
437 | free_irq(SPITZ_IRQ_GPIO_nSD_DETECT, data); | ||
438 | gpio_free(SPITZ_GPIO_nSD_WP); | ||
439 | gpio_free(SPITZ_GPIO_nSD_DETECT); | ||
440 | } | ||
441 | |||
442 | static struct pxamci_platform_data spitz_mci_platform_data = { | 519 | static struct pxamci_platform_data spitz_mci_platform_data = { |
443 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 520 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
444 | .init = spitz_mci_init, | 521 | .setpower = spitz_mci_setpower, |
445 | .get_ro = spitz_mci_get_ro, | 522 | .gpio_card_detect = SPITZ_GPIO_nSD_DETECT, |
446 | .setpower = spitz_mci_setpower, | 523 | .gpio_card_ro = SPITZ_GPIO_nSD_WP, |
447 | .exit = spitz_mci_exit, | 524 | .gpio_power = -1, |
448 | }; | 525 | }; |
449 | 526 | ||
450 | 527 | ||
@@ -484,50 +561,10 @@ static struct pxaohci_platform_data spitz_ohci_platform_data = { | |||
484 | /* | 561 | /* |
485 | * Irda | 562 | * Irda |
486 | */ | 563 | */ |
487 | static int spitz_irda_startup(struct device *dev) | ||
488 | { | ||
489 | int rc; | ||
490 | |||
491 | rc = gpio_request(SPITZ_GPIO_IR_ON, "IrDA on"); | ||
492 | if (rc) | ||
493 | goto err; | ||
494 | |||
495 | rc = gpio_direction_output(SPITZ_GPIO_IR_ON, 1); | ||
496 | if (rc) | ||
497 | goto err_dir; | ||
498 | |||
499 | return 0; | ||
500 | |||
501 | err_dir: | ||
502 | gpio_free(SPITZ_GPIO_IR_ON); | ||
503 | err: | ||
504 | return rc; | ||
505 | } | ||
506 | |||
507 | static void spitz_irda_shutdown(struct device *dev) | ||
508 | { | ||
509 | gpio_free(SPITZ_GPIO_IR_ON); | ||
510 | } | ||
511 | |||
512 | static void spitz_irda_transceiver_mode(struct device *dev, int mode) | ||
513 | { | ||
514 | gpio_set_value(SPITZ_GPIO_IR_ON, mode & IR_OFF); | ||
515 | pxa2xx_transceiver_mode(dev, mode); | ||
516 | } | ||
517 | |||
518 | #ifdef CONFIG_MACH_AKITA | ||
519 | static void akita_irda_transceiver_mode(struct device *dev, int mode) | ||
520 | { | ||
521 | gpio_set_value(AKITA_GPIO_IR_ON, mode & IR_OFF); | ||
522 | pxa2xx_transceiver_mode(dev, mode); | ||
523 | } | ||
524 | #endif | ||
525 | 564 | ||
526 | static struct pxaficp_platform_data spitz_ficp_platform_data = { | 565 | static struct pxaficp_platform_data spitz_ficp_platform_data = { |
566 | /* .gpio_pwdown is set in spitz_init() and akita_init() accordingly */ | ||
527 | .transceiver_cap = IR_SIRMODE | IR_OFF, | 567 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
528 | .transceiver_mode = spitz_irda_transceiver_mode, | ||
529 | .startup = spitz_irda_startup, | ||
530 | .shutdown = spitz_irda_shutdown, | ||
531 | }; | 568 | }; |
532 | 569 | ||
533 | 570 | ||
@@ -695,6 +732,7 @@ static void __init common_init(void) | |||
695 | spitz_init_spi(); | 732 | spitz_init_spi(); |
696 | 733 | ||
697 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 734 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
735 | spitz_mci_platform_data.detect_delay = msecs_to_jiffies(250); | ||
698 | pxa_set_mci_info(&spitz_mci_platform_data); | 736 | pxa_set_mci_info(&spitz_mci_platform_data); |
699 | pxa_set_ohci_info(&spitz_ohci_platform_data); | 737 | pxa_set_ohci_info(&spitz_ohci_platform_data); |
700 | pxa_set_ficp_info(&spitz_ficp_platform_data); | 738 | pxa_set_ficp_info(&spitz_ficp_platform_data); |
@@ -705,6 +743,8 @@ static void __init common_init(void) | |||
705 | #if defined(CONFIG_MACH_SPITZ) || defined(CONFIG_MACH_BORZOI) | 743 | #if defined(CONFIG_MACH_SPITZ) || defined(CONFIG_MACH_BORZOI) |
706 | static void __init spitz_init(void) | 744 | static void __init spitz_init(void) |
707 | { | 745 | { |
746 | spitz_ficp_platform_data.gpio_pwdown = SPITZ_GPIO_IR_ON; | ||
747 | |||
708 | platform_scoop_config = &spitz_pcmcia_config; | 748 | platform_scoop_config = &spitz_pcmcia_config; |
709 | 749 | ||
710 | common_init(); | 750 | common_init(); |
@@ -747,7 +787,7 @@ static struct nand_ecclayout akita_oobinfo = { | |||
747 | 787 | ||
748 | static void __init akita_init(void) | 788 | static void __init akita_init(void) |
749 | { | 789 | { |
750 | spitz_ficp_platform_data.transceiver_mode = akita_irda_transceiver_mode; | 790 | spitz_ficp_platform_data.gpio_pwdown = AKITA_GPIO_IR_ON; |
751 | 791 | ||
752 | sharpsl_nand_platform_data.badblock_pattern = &sharpsl_akita_bbt; | 792 | sharpsl_nand_platform_data.badblock_pattern = &sharpsl_akita_bbt; |
753 | sharpsl_nand_platform_data.ecc_layout = &akita_oobinfo; | 793 | sharpsl_nand_platform_data.ecc_layout = &akita_oobinfo; |
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 117ad5920e53..e81a52673d49 100644 --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/mach-pxa/tosa.c | |||
@@ -247,49 +247,10 @@ static struct pxa2xx_udc_mach_info udc_info __initdata = { | |||
247 | /* | 247 | /* |
248 | * MMC/SD Device | 248 | * MMC/SD Device |
249 | */ | 249 | */ |
250 | static struct pxamci_platform_data tosa_mci_platform_data; | ||
251 | |||
252 | static int tosa_mci_init(struct device *dev, irq_handler_t tosa_detect_int, void *data) | 250 | static int tosa_mci_init(struct device *dev, irq_handler_t tosa_detect_int, void *data) |
253 | { | 251 | { |
254 | int err; | 252 | int err; |
255 | 253 | ||
256 | tosa_mci_platform_data.detect_delay = msecs_to_jiffies(250); | ||
257 | |||
258 | err = gpio_request(TOSA_GPIO_nSD_DETECT, "MMC/SD card detect"); | ||
259 | if (err) { | ||
260 | printk(KERN_ERR "tosa_mci_init: can't request nSD_DETECT gpio\n"); | ||
261 | goto err_gpio_detect; | ||
262 | } | ||
263 | err = gpio_direction_input(TOSA_GPIO_nSD_DETECT); | ||
264 | if (err) | ||
265 | goto err_gpio_detect_dir; | ||
266 | |||
267 | err = request_irq(TOSA_IRQ_GPIO_nSD_DETECT, tosa_detect_int, | ||
268 | IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, | ||
269 | "MMC/SD card detect", data); | ||
270 | if (err) { | ||
271 | printk(KERN_ERR "tosa_mci_init: MMC/SD: can't request MMC card detect IRQ\n"); | ||
272 | goto err_irq; | ||
273 | } | ||
274 | |||
275 | err = gpio_request(TOSA_GPIO_SD_WP, "SD Write Protect"); | ||
276 | if (err) { | ||
277 | printk(KERN_ERR "tosa_mci_init: can't request SD_WP gpio\n"); | ||
278 | goto err_gpio_wp; | ||
279 | } | ||
280 | err = gpio_direction_input(TOSA_GPIO_SD_WP); | ||
281 | if (err) | ||
282 | goto err_gpio_wp_dir; | ||
283 | |||
284 | err = gpio_request(TOSA_GPIO_PWR_ON, "SD Power"); | ||
285 | if (err) { | ||
286 | printk(KERN_ERR "tosa_mci_init: can't request SD_PWR gpio\n"); | ||
287 | goto err_gpio_pwr; | ||
288 | } | ||
289 | err = gpio_direction_output(TOSA_GPIO_PWR_ON, 0); | ||
290 | if (err) | ||
291 | goto err_gpio_pwr_dir; | ||
292 | |||
293 | err = gpio_request(TOSA_GPIO_nSD_INT, "SD Int"); | 254 | err = gpio_request(TOSA_GPIO_nSD_INT, "SD Int"); |
294 | if (err) { | 255 | if (err) { |
295 | printk(KERN_ERR "tosa_mci_init: can't request SD_PWR gpio\n"); | 256 | printk(KERN_ERR "tosa_mci_init: can't request SD_PWR gpio\n"); |
@@ -304,51 +265,21 @@ static int tosa_mci_init(struct device *dev, irq_handler_t tosa_detect_int, void | |||
304 | err_gpio_int_dir: | 265 | err_gpio_int_dir: |
305 | gpio_free(TOSA_GPIO_nSD_INT); | 266 | gpio_free(TOSA_GPIO_nSD_INT); |
306 | err_gpio_int: | 267 | err_gpio_int: |
307 | err_gpio_pwr_dir: | ||
308 | gpio_free(TOSA_GPIO_PWR_ON); | ||
309 | err_gpio_pwr: | ||
310 | err_gpio_wp_dir: | ||
311 | gpio_free(TOSA_GPIO_SD_WP); | ||
312 | err_gpio_wp: | ||
313 | free_irq(TOSA_IRQ_GPIO_nSD_DETECT, data); | ||
314 | err_irq: | ||
315 | err_gpio_detect_dir: | ||
316 | gpio_free(TOSA_GPIO_nSD_DETECT); | ||
317 | err_gpio_detect: | ||
318 | return err; | 268 | return err; |
319 | } | 269 | } |
320 | 270 | ||
321 | static void tosa_mci_setpower(struct device *dev, unsigned int vdd) | ||
322 | { | ||
323 | struct pxamci_platform_data* p_d = dev->platform_data; | ||
324 | |||
325 | if (( 1 << vdd) & p_d->ocr_mask) { | ||
326 | gpio_set_value(TOSA_GPIO_PWR_ON, 1); | ||
327 | } else { | ||
328 | gpio_set_value(TOSA_GPIO_PWR_ON, 0); | ||
329 | } | ||
330 | } | ||
331 | |||
332 | static int tosa_mci_get_ro(struct device *dev) | ||
333 | { | ||
334 | return gpio_get_value(TOSA_GPIO_SD_WP); | ||
335 | } | ||
336 | |||
337 | static void tosa_mci_exit(struct device *dev, void *data) | 271 | static void tosa_mci_exit(struct device *dev, void *data) |
338 | { | 272 | { |
339 | gpio_free(TOSA_GPIO_nSD_INT); | 273 | gpio_free(TOSA_GPIO_nSD_INT); |
340 | gpio_free(TOSA_GPIO_PWR_ON); | ||
341 | gpio_free(TOSA_GPIO_SD_WP); | ||
342 | free_irq(TOSA_IRQ_GPIO_nSD_DETECT, data); | ||
343 | gpio_free(TOSA_GPIO_nSD_DETECT); | ||
344 | } | 274 | } |
345 | 275 | ||
346 | static struct pxamci_platform_data tosa_mci_platform_data = { | 276 | static struct pxamci_platform_data tosa_mci_platform_data = { |
347 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 277 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
348 | .init = tosa_mci_init, | 278 | .init = tosa_mci_init, |
349 | .get_ro = tosa_mci_get_ro, | 279 | .exit = tosa_mci_exit, |
350 | .setpower = tosa_mci_setpower, | 280 | .gpio_card_detect = TOSA_GPIO_nSD_DETECT, |
351 | .exit = tosa_mci_exit, | 281 | .gpio_card_ro = TOSA_GPIO_SD_WP, |
282 | .gpio_power = TOSA_GPIO_PWR_ON, | ||
352 | }; | 283 | }; |
353 | 284 | ||
354 | /* | 285 | /* |
@@ -406,10 +337,11 @@ static void tosa_irda_shutdown(struct device *dev) | |||
406 | } | 337 | } |
407 | 338 | ||
408 | static struct pxaficp_platform_data tosa_ficp_platform_data = { | 339 | static struct pxaficp_platform_data tosa_ficp_platform_data = { |
409 | .transceiver_cap = IR_SIRMODE | IR_OFF, | 340 | .gpio_pwdown = -1, |
410 | .transceiver_mode = tosa_irda_transceiver_mode, | 341 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
411 | .startup = tosa_irda_startup, | 342 | .transceiver_mode = tosa_irda_transceiver_mode, |
412 | .shutdown = tosa_irda_shutdown, | 343 | .startup = tosa_irda_startup, |
344 | .shutdown = tosa_irda_shutdown, | ||
413 | }; | 345 | }; |
414 | 346 | ||
415 | /* | 347 | /* |
@@ -910,6 +842,7 @@ static void __init tosa_init(void) | |||
910 | dummy = gpiochip_reserve(TOSA_SCOOP_JC_GPIO_BASE, 12); | 842 | dummy = gpiochip_reserve(TOSA_SCOOP_JC_GPIO_BASE, 12); |
911 | dummy = gpiochip_reserve(TOSA_TC6393XB_GPIO_BASE, 16); | 843 | dummy = gpiochip_reserve(TOSA_TC6393XB_GPIO_BASE, 16); |
912 | 844 | ||
845 | tosa_mci_platform_data.detect_delay = msecs_to_jiffies(250); | ||
913 | pxa_set_mci_info(&tosa_mci_platform_data); | 846 | pxa_set_mci_info(&tosa_mci_platform_data); |
914 | pxa_set_udc_info(&udc_info); | 847 | pxa_set_udc_info(&udc_info); |
915 | pxa_set_ficp_info(&tosa_ficp_platform_data); | 848 | pxa_set_ficp_info(&tosa_ficp_platform_data); |
diff --git a/arch/arm/mach-pxa/treo680.c b/arch/arm/mach-pxa/treo680.c index 753ec4df17b9..fe085076fbf2 100644 --- a/arch/arm/mach-pxa/treo680.c +++ b/arch/arm/mach-pxa/treo680.c | |||
@@ -153,87 +153,11 @@ static unsigned long treo680_pin_config[] __initdata = { | |||
153 | /****************************************************************************** | 153 | /****************************************************************************** |
154 | * SD/MMC card controller | 154 | * SD/MMC card controller |
155 | ******************************************************************************/ | 155 | ******************************************************************************/ |
156 | static int treo680_mci_init(struct device *dev, | ||
157 | irq_handler_t treo680_detect_int, void *data) | ||
158 | { | ||
159 | int err = 0; | ||
160 | |||
161 | /* Setup an interrupt for detecting card insert/remove events */ | ||
162 | err = gpio_request(GPIO_NR_TREO680_SD_DETECT_N, "SD IRQ"); | ||
163 | |||
164 | if (err) | ||
165 | goto err; | ||
166 | |||
167 | err = gpio_direction_input(GPIO_NR_TREO680_SD_DETECT_N); | ||
168 | if (err) | ||
169 | goto err2; | ||
170 | |||
171 | err = request_irq(gpio_to_irq(GPIO_NR_TREO680_SD_DETECT_N), | ||
172 | treo680_detect_int, IRQF_DISABLED | IRQF_SAMPLE_RANDOM | | ||
173 | IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING, | ||
174 | "SD/MMC card detect", data); | ||
175 | |||
176 | if (err) { | ||
177 | dev_err(dev, "%s: cannot request SD/MMC card detect IRQ\n", | ||
178 | __func__); | ||
179 | goto err2; | ||
180 | } | ||
181 | |||
182 | err = gpio_request(GPIO_NR_TREO680_SD_POWER, "SD_POWER"); | ||
183 | if (err) | ||
184 | goto err3; | ||
185 | |||
186 | err = gpio_direction_output(GPIO_NR_TREO680_SD_POWER, 1); | ||
187 | if (err) | ||
188 | goto err4; | ||
189 | |||
190 | err = gpio_request(GPIO_NR_TREO680_SD_READONLY, "SD_READONLY"); | ||
191 | if (err) | ||
192 | goto err4; | ||
193 | |||
194 | err = gpio_direction_input(GPIO_NR_TREO680_SD_READONLY); | ||
195 | if (err) | ||
196 | goto err5; | ||
197 | |||
198 | return 0; | ||
199 | |||
200 | err5: | ||
201 | gpio_free(GPIO_NR_TREO680_SD_READONLY); | ||
202 | err4: | ||
203 | gpio_free(GPIO_NR_TREO680_SD_POWER); | ||
204 | err3: | ||
205 | free_irq(gpio_to_irq(GPIO_NR_TREO680_SD_DETECT_N), data); | ||
206 | err2: | ||
207 | gpio_free(GPIO_NR_TREO680_SD_DETECT_N); | ||
208 | err: | ||
209 | return err; | ||
210 | } | ||
211 | |||
212 | static void treo680_mci_exit(struct device *dev, void *data) | ||
213 | { | ||
214 | gpio_free(GPIO_NR_TREO680_SD_READONLY); | ||
215 | gpio_free(GPIO_NR_TREO680_SD_POWER); | ||
216 | free_irq(gpio_to_irq(GPIO_NR_TREO680_SD_DETECT_N), data); | ||
217 | gpio_free(GPIO_NR_TREO680_SD_DETECT_N); | ||
218 | } | ||
219 | |||
220 | static void treo680_mci_power(struct device *dev, unsigned int vdd) | ||
221 | { | ||
222 | struct pxamci_platform_data *p_d = dev->platform_data; | ||
223 | gpio_set_value(GPIO_NR_TREO680_SD_POWER, p_d->ocr_mask & (1 << vdd)); | ||
224 | } | ||
225 | |||
226 | static int treo680_mci_get_ro(struct device *dev) | ||
227 | { | ||
228 | return gpio_get_value(GPIO_NR_TREO680_SD_READONLY); | ||
229 | } | ||
230 | |||
231 | static struct pxamci_platform_data treo680_mci_platform_data = { | 156 | static struct pxamci_platform_data treo680_mci_platform_data = { |
232 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, | 157 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, |
233 | .setpower = treo680_mci_power, | 158 | .gpio_card_detect = GPIO_NR_TREO680_SD_DETECT_N, |
234 | .get_ro = treo680_mci_get_ro, | 159 | .gpio_card_ro = GPIO_NR_TREO680_SD_READONLY, |
235 | .init = treo680_mci_init, | 160 | .gpio_power = GPIO_NR_TREO680_SD_POWER, |
236 | .exit = treo680_mci_exit, | ||
237 | }; | 161 | }; |
238 | 162 | ||
239 | /****************************************************************************** | 163 | /****************************************************************************** |
@@ -330,16 +254,9 @@ static int treo680_backlight_init(struct device *dev) | |||
330 | ret = gpio_direction_output(GPIO_NR_TREO680_BL_POWER, 0); | 254 | ret = gpio_direction_output(GPIO_NR_TREO680_BL_POWER, 0); |
331 | if (ret) | 255 | if (ret) |
332 | goto err2; | 256 | goto err2; |
333 | ret = gpio_request(GPIO_NR_TREO680_LCD_POWER, "LCD POWER"); | ||
334 | if (ret) | ||
335 | goto err2; | ||
336 | ret = gpio_direction_output(GPIO_NR_TREO680_LCD_POWER, 0); | ||
337 | if (ret) | ||
338 | goto err3; | ||
339 | 257 | ||
340 | return 0; | 258 | return 0; |
341 | err3: | 259 | |
342 | gpio_free(GPIO_NR_TREO680_LCD_POWER); | ||
343 | err2: | 260 | err2: |
344 | gpio_free(GPIO_NR_TREO680_BL_POWER); | 261 | gpio_free(GPIO_NR_TREO680_BL_POWER); |
345 | err: | 262 | err: |
@@ -355,7 +272,6 @@ static int treo680_backlight_notify(int brightness) | |||
355 | static void treo680_backlight_exit(struct device *dev) | 272 | static void treo680_backlight_exit(struct device *dev) |
356 | { | 273 | { |
357 | gpio_free(GPIO_NR_TREO680_BL_POWER); | 274 | gpio_free(GPIO_NR_TREO680_BL_POWER); |
358 | gpio_free(GPIO_NR_TREO680_LCD_POWER); | ||
359 | } | 275 | } |
360 | 276 | ||
361 | static struct platform_pwm_backlight_data treo680_backlight_data = { | 277 | static struct platform_pwm_backlight_data treo680_backlight_data = { |
@@ -379,44 +295,9 @@ static struct platform_device treo680_backlight = { | |||
379 | /****************************************************************************** | 295 | /****************************************************************************** |
380 | * IrDA | 296 | * IrDA |
381 | ******************************************************************************/ | 297 | ******************************************************************************/ |
382 | static void treo680_transceiver_mode(struct device *dev, int mode) | ||
383 | { | ||
384 | gpio_set_value(GPIO_NR_TREO680_IR_EN, mode & IR_OFF); | ||
385 | pxa2xx_transceiver_mode(dev, mode); | ||
386 | } | ||
387 | |||
388 | static int treo680_irda_startup(struct device *dev) | ||
389 | { | ||
390 | int err; | ||
391 | |||
392 | err = gpio_request(GPIO_NR_TREO680_IR_EN, "Ir port disable"); | ||
393 | if (err) | ||
394 | goto err1; | ||
395 | |||
396 | err = gpio_direction_output(GPIO_NR_TREO680_IR_EN, 1); | ||
397 | if (err) | ||
398 | goto err2; | ||
399 | |||
400 | return 0; | ||
401 | |||
402 | err2: | ||
403 | dev_err(dev, "treo680_irda: cannot change IR gpio direction\n"); | ||
404 | gpio_free(GPIO_NR_TREO680_IR_EN); | ||
405 | err1: | ||
406 | dev_err(dev, "treo680_irda: cannot allocate IR gpio\n"); | ||
407 | return err; | ||
408 | } | ||
409 | |||
410 | static void treo680_irda_shutdown(struct device *dev) | ||
411 | { | ||
412 | gpio_free(GPIO_NR_TREO680_IR_EN); | ||
413 | } | ||
414 | |||
415 | static struct pxaficp_platform_data treo680_ficp_info = { | 298 | static struct pxaficp_platform_data treo680_ficp_info = { |
416 | .transceiver_cap = IR_FIRMODE | IR_SIRMODE | IR_OFF, | 299 | .gpio_pwdown = GPIO_NR_TREO680_IR_EN, |
417 | .startup = treo680_irda_startup, | 300 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
418 | .shutdown = treo680_irda_shutdown, | ||
419 | .transceiver_mode = treo680_transceiver_mode, | ||
420 | }; | 301 | }; |
421 | 302 | ||
422 | /****************************************************************************** | 303 | /****************************************************************************** |
@@ -546,6 +427,11 @@ static struct pxafb_mode_info treo680_lcd_modes[] = { | |||
546 | }, | 427 | }, |
547 | }; | 428 | }; |
548 | 429 | ||
430 | static void treo680_lcd_power(int on, struct fb_var_screeninfo *info) | ||
431 | { | ||
432 | gpio_set_value(GPIO_NR_TREO680_BL_POWER, on); | ||
433 | } | ||
434 | |||
549 | static struct pxafb_mach_info treo680_lcd_screen = { | 435 | static struct pxafb_mach_info treo680_lcd_screen = { |
550 | .modes = treo680_lcd_modes, | 436 | .modes = treo680_lcd_modes, |
551 | .num_modes = ARRAY_SIZE(treo680_lcd_modes), | 437 | .num_modes = ARRAY_SIZE(treo680_lcd_modes), |
@@ -585,11 +471,32 @@ static void __init treo680_udc_init(void) | |||
585 | } | 471 | } |
586 | } | 472 | } |
587 | 473 | ||
474 | static void __init treo680_lcd_power_init(void) | ||
475 | { | ||
476 | int ret; | ||
477 | |||
478 | ret = gpio_request(GPIO_NR_TREO680_LCD_POWER, "LCD POWER"); | ||
479 | if (ret) { | ||
480 | pr_err("Treo680: LCD power GPIO request failed!\n"); | ||
481 | return; | ||
482 | } | ||
483 | |||
484 | ret = gpio_direction_output(GPIO_NR_TREO680_LCD_POWER, 0); | ||
485 | if (ret) { | ||
486 | pr_err("Treo680: setting LCD power GPIO direction failed!\n"); | ||
487 | gpio_free(GPIO_NR_TREO680_LCD_POWER); | ||
488 | return; | ||
489 | } | ||
490 | |||
491 | treo680_lcd_screen.pxafb_lcd_power = treo680_lcd_power; | ||
492 | } | ||
493 | |||
588 | static void __init treo680_init(void) | 494 | static void __init treo680_init(void) |
589 | { | 495 | { |
590 | treo680_pm_init(); | 496 | treo680_pm_init(); |
591 | pxa2xx_mfp_config(ARRAY_AND_SIZE(treo680_pin_config)); | 497 | pxa2xx_mfp_config(ARRAY_AND_SIZE(treo680_pin_config)); |
592 | pxa_set_keypad_info(&treo680_keypad_platform_data); | 498 | pxa_set_keypad_info(&treo680_keypad_platform_data); |
499 | treo680_lcd_power_init(); | ||
593 | set_pxa_fb_info(&treo680_lcd_screen); | 500 | set_pxa_fb_info(&treo680_lcd_screen); |
594 | pxa_set_mci_info(&treo680_mci_platform_data); | 501 | pxa_set_mci_info(&treo680_mci_platform_data); |
595 | treo680_udc_init(); | 502 | treo680_udc_init(); |
diff --git a/arch/arm/mach-pxa/trizeps4.c b/arch/arm/mach-pxa/trizeps4.c index 825f540176d2..3981e0356d12 100644 --- a/arch/arm/mach-pxa/trizeps4.c +++ b/arch/arm/mach-pxa/trizeps4.c | |||
@@ -367,6 +367,9 @@ static struct pxamci_platform_data trizeps4_mci_platform_data = { | |||
367 | .exit = trizeps4_mci_exit, | 367 | .exit = trizeps4_mci_exit, |
368 | .get_ro = NULL, /* write-protection not supported */ | 368 | .get_ro = NULL, /* write-protection not supported */ |
369 | .setpower = NULL, /* power-switching not supported */ | 369 | .setpower = NULL, /* power-switching not supported */ |
370 | .gpio_card_detect = -1, | ||
371 | .gpio_card_ro = -1, | ||
372 | .gpio_power = -1, | ||
370 | }; | 373 | }; |
371 | 374 | ||
372 | /**************************************************************************** | 375 | /**************************************************************************** |
@@ -412,6 +415,7 @@ static void trizeps4_irda_transceiver_mode(struct device *dev, int mode) | |||
412 | } | 415 | } |
413 | 416 | ||
414 | static struct pxaficp_platform_data trizeps4_ficp_platform_data = { | 417 | static struct pxaficp_platform_data trizeps4_ficp_platform_data = { |
418 | .gpio_pwdown = -1, | ||
415 | .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF, | 419 | .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF, |
416 | .transceiver_mode = trizeps4_irda_transceiver_mode, | 420 | .transceiver_mode = trizeps4_irda_transceiver_mode, |
417 | .startup = trizeps4_irda_startup, | 421 | .startup = trizeps4_irda_startup, |
diff --git a/arch/arm/mach-pxa/xcep.c b/arch/arm/mach-pxa/xcep.c new file mode 100644 index 000000000000..3fd79cbb36c8 --- /dev/null +++ b/arch/arm/mach-pxa/xcep.c | |||
@@ -0,0 +1,187 @@ | |||
1 | /* linux/arch/arm/mach-pxa/xcep.c | ||
2 | * | ||
3 | * Support for the Iskratel Electronics XCEP platform as used in | ||
4 | * the Libera instruments from Instrumentation Technologies. | ||
5 | * | ||
6 | * Author: Ales Bardorfer <ales@i-tech.si> | ||
7 | * Contributions by: Abbott, MG (Michael) <michael.abbott@diamond.ac.uk> | ||
8 | * Contributions by: Matej Kenda <matej.kenda@i-tech.si> | ||
9 | * Created: June 2006 | ||
10 | * Copyright: (C) 2006-2009 Instrumentation Technologies | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of the GNU General Public License version 2 as | ||
14 | * published by the Free Software Foundation. | ||
15 | */ | ||
16 | |||
17 | #include <linux/platform_device.h> | ||
18 | #include <linux/i2c.h> | ||
19 | #include <linux/smc91x.h> | ||
20 | #include <linux/mtd/mtd.h> | ||
21 | #include <linux/mtd/partitions.h> | ||
22 | #include <linux/mtd/physmap.h> | ||
23 | |||
24 | #include <asm/mach-types.h> | ||
25 | #include <asm/mach/arch.h> | ||
26 | #include <asm/mach/irq.h> | ||
27 | #include <asm/mach/map.h> | ||
28 | |||
29 | #include <plat/i2c.h> | ||
30 | |||
31 | #include <mach/hardware.h> | ||
32 | #include <mach/pxa2xx-regs.h> | ||
33 | #include <mach/mfp-pxa25x.h> | ||
34 | |||
35 | #include "generic.h" | ||
36 | |||
37 | #define XCEP_ETH_PHYS (PXA_CS3_PHYS + 0x00000300) | ||
38 | #define XCEP_ETH_PHYS_END (PXA_CS3_PHYS + 0x000fffff) | ||
39 | #define XCEP_ETH_ATTR (PXA_CS3_PHYS + 0x02000000) | ||
40 | #define XCEP_ETH_ATTR_END (PXA_CS3_PHYS + 0x020fffff) | ||
41 | #define XCEP_ETH_IRQ IRQ_GPIO0 | ||
42 | |||
43 | /* XCEP CPLD base */ | ||
44 | #define XCEP_CPLD_BASE 0xf0000000 | ||
45 | |||
46 | |||
47 | /* Flash partitions. */ | ||
48 | |||
49 | static struct mtd_partition xcep_partitions[] = { | ||
50 | { | ||
51 | .name = "Bootloader", | ||
52 | .size = 0x00040000, | ||
53 | .offset = 0, | ||
54 | .mask_flags = MTD_WRITEABLE | ||
55 | }, { | ||
56 | .name = "Bootloader ENV", | ||
57 | .size = 0x00040000, | ||
58 | .offset = 0x00040000, | ||
59 | .mask_flags = MTD_WRITEABLE | ||
60 | }, { | ||
61 | .name = "Kernel", | ||
62 | .size = 0x00100000, | ||
63 | .offset = 0x00080000, | ||
64 | }, { | ||
65 | .name = "Rescue fs", | ||
66 | .size = 0x00280000, | ||
67 | .offset = 0x00180000, | ||
68 | }, { | ||
69 | .name = "Filesystem", | ||
70 | .size = MTDPART_SIZ_FULL, | ||
71 | .offset = 0x00400000 | ||
72 | } | ||
73 | }; | ||
74 | |||
75 | static struct physmap_flash_data xcep_flash_data[] = { | ||
76 | { | ||
77 | .width = 4, /* bankwidth in bytes */ | ||
78 | .parts = xcep_partitions, | ||
79 | .nr_parts = ARRAY_SIZE(xcep_partitions) | ||
80 | } | ||
81 | }; | ||
82 | |||
83 | static struct resource flash_resource = { | ||
84 | .start = PXA_CS0_PHYS, | ||
85 | .end = PXA_CS0_PHYS + SZ_32M - 1, | ||
86 | .flags = IORESOURCE_MEM, | ||
87 | }; | ||
88 | |||
89 | static struct platform_device flash_device = { | ||
90 | .name = "physmap-flash", | ||
91 | .id = 0, | ||
92 | .dev = { | ||
93 | .platform_data = xcep_flash_data, | ||
94 | }, | ||
95 | .resource = &flash_resource, | ||
96 | .num_resources = 1, | ||
97 | }; | ||
98 | |||
99 | |||
100 | |||
101 | /* SMC LAN91C111 network controller. */ | ||
102 | |||
103 | static struct resource smc91x_resources[] = { | ||
104 | [0] = { | ||
105 | .name = "smc91x-regs", | ||
106 | .start = XCEP_ETH_PHYS, | ||
107 | .end = XCEP_ETH_PHYS_END, | ||
108 | .flags = IORESOURCE_MEM, | ||
109 | }, | ||
110 | [1] = { | ||
111 | .start = XCEP_ETH_IRQ, | ||
112 | .end = XCEP_ETH_IRQ, | ||
113 | .flags = IORESOURCE_IRQ, | ||
114 | }, | ||
115 | [2] = { | ||
116 | .name = "smc91x-attrib", | ||
117 | .start = XCEP_ETH_ATTR, | ||
118 | .end = XCEP_ETH_ATTR_END, | ||
119 | .flags = IORESOURCE_MEM, | ||
120 | }, | ||
121 | }; | ||
122 | |||
123 | static struct smc91x_platdata xcep_smc91x_info = { | ||
124 | .flags = SMC91X_USE_32BIT | SMC91X_NOWAIT | SMC91X_USE_DMA, | ||
125 | }; | ||
126 | |||
127 | static struct platform_device smc91x_device = { | ||
128 | .name = "smc91x", | ||
129 | .id = -1, | ||
130 | .num_resources = ARRAY_SIZE(smc91x_resources), | ||
131 | .resource = smc91x_resources, | ||
132 | .dev = { | ||
133 | .platform_data = &xcep_smc91x_info, | ||
134 | }, | ||
135 | }; | ||
136 | |||
137 | |||
138 | static struct platform_device *devices[] __initdata = { | ||
139 | &flash_device, | ||
140 | &smc91x_device, | ||
141 | }; | ||
142 | |||
143 | |||
144 | /* We have to state that there are HWMON devices on the I2C bus on XCEP. | ||
145 | * Drivers for HWMON verify capabilities of the adapter when loading and | ||
146 | * refuse to attach if the adapter doesn't support HWMON class of devices. | ||
147 | * See also Documentation/i2c/porting-clients. */ | ||
148 | static struct i2c_pxa_platform_data xcep_i2c_platform_data = { | ||
149 | .class = I2C_CLASS_HWMON | ||
150 | }; | ||
151 | |||
152 | |||
153 | static mfp_cfg_t xcep_pin_config[] __initdata = { | ||
154 | GPIO79_nCS_3, /* SMC 91C111 chip select. */ | ||
155 | GPIO80_nCS_4, /* CPLD chip select. */ | ||
156 | /* SSP communication to MSP430 */ | ||
157 | GPIO23_SSP1_SCLK, | ||
158 | GPIO24_SSP1_SFRM, | ||
159 | GPIO25_SSP1_TXD, | ||
160 | GPIO26_SSP1_RXD, | ||
161 | GPIO27_SSP1_EXTCLK | ||
162 | }; | ||
163 | |||
164 | static void __init xcep_init(void) | ||
165 | { | ||
166 | pxa2xx_mfp_config(ARRAY_AND_SIZE(xcep_pin_config)); | ||
167 | |||
168 | /* See Intel XScale Developer's Guide for details */ | ||
169 | /* Set RDF and RDN to appropriate values (chip select 3 (smc91x)) */ | ||
170 | MSC1 = (MSC1 & 0xffff) | 0xD5540000; | ||
171 | /* Set RDF and RDN to appropriate values (chip select 5 (fpga)) */ | ||
172 | MSC2 = (MSC2 & 0xffff) | 0x72A00000; | ||
173 | |||
174 | platform_add_devices(ARRAY_AND_SIZE(devices)); | ||
175 | pxa_set_i2c_info(&xcep_i2c_platform_data); | ||
176 | } | ||
177 | |||
178 | MACHINE_START(XCEP, "Iskratel XCEP") | ||
179 | .phys_io = 0x40000000, | ||
180 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
181 | .boot_params = 0xa0000100, | ||
182 | .init_machine = xcep_init, | ||
183 | .map_io = pxa_map_io, | ||
184 | .init_irq = pxa25x_init_irq, | ||
185 | .timer = &pxa_timer, | ||
186 | MACHINE_END | ||
187 | |||
diff --git a/arch/arm/mach-pxa/zylonite.c b/arch/arm/mach-pxa/zylonite.c index 218d2001f1df..09784d3954e4 100644 --- a/arch/arm/mach-pxa/zylonite.c +++ b/arch/arm/mach-pxa/zylonite.c | |||
@@ -290,6 +290,9 @@ static struct pxamci_platform_data zylonite_mci_platform_data = { | |||
290 | .init = zylonite_mci_init, | 290 | .init = zylonite_mci_init, |
291 | .exit = zylonite_mci_exit, | 291 | .exit = zylonite_mci_exit, |
292 | .get_ro = zylonite_mci_ro, | 292 | .get_ro = zylonite_mci_ro, |
293 | .gpio_card_detect = -1, | ||
294 | .gpio_card_ro = -1, | ||
295 | .gpio_power = -1, | ||
293 | }; | 296 | }; |
294 | 297 | ||
295 | static struct pxamci_platform_data zylonite_mci2_platform_data = { | 298 | static struct pxamci_platform_data zylonite_mci2_platform_data = { |
diff --git a/arch/arm/mach-realview/core.c b/arch/arm/mach-realview/core.c index dc3519c50ab2..a2083b60e3fb 100644 --- a/arch/arm/mach-realview/core.c +++ b/arch/arm/mach-realview/core.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <linux/io.h> | 30 | #include <linux/io.h> |
31 | #include <linux/smsc911x.h> | 31 | #include <linux/smsc911x.h> |
32 | #include <linux/ata_platform.h> | 32 | #include <linux/ata_platform.h> |
33 | #include <linux/amba/mmci.h> | ||
33 | 34 | ||
34 | #include <asm/clkdev.h> | 35 | #include <asm/clkdev.h> |
35 | #include <asm/system.h> | 36 | #include <asm/system.h> |
@@ -44,7 +45,6 @@ | |||
44 | #include <asm/mach/flash.h> | 45 | #include <asm/mach/flash.h> |
45 | #include <asm/mach/irq.h> | 46 | #include <asm/mach/irq.h> |
46 | #include <asm/mach/map.h> | 47 | #include <asm/mach/map.h> |
47 | #include <asm/mach/mmc.h> | ||
48 | 48 | ||
49 | #include <asm/hardware/gic.h> | 49 | #include <asm/hardware/gic.h> |
50 | 50 | ||
@@ -237,14 +237,14 @@ static unsigned int realview_mmc_status(struct device *dev) | |||
237 | return readl(REALVIEW_SYSMCI) & mask; | 237 | return readl(REALVIEW_SYSMCI) & mask; |
238 | } | 238 | } |
239 | 239 | ||
240 | struct mmc_platform_data realview_mmc0_plat_data = { | 240 | struct mmci_platform_data realview_mmc0_plat_data = { |
241 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 241 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
242 | .status = realview_mmc_status, | 242 | .status = realview_mmc_status, |
243 | .gpio_wp = 17, | 243 | .gpio_wp = 17, |
244 | .gpio_cd = 16, | 244 | .gpio_cd = 16, |
245 | }; | 245 | }; |
246 | 246 | ||
247 | struct mmc_platform_data realview_mmc1_plat_data = { | 247 | struct mmci_platform_data realview_mmc1_plat_data = { |
248 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 248 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
249 | .status = realview_mmc_status, | 249 | .status = realview_mmc_status, |
250 | .gpio_wp = 19, | 250 | .gpio_wp = 19, |
@@ -296,31 +296,31 @@ static struct clk ref24_clk = { | |||
296 | 296 | ||
297 | static struct clk_lookup lookups[] = { | 297 | static struct clk_lookup lookups[] = { |
298 | { /* UART0 */ | 298 | { /* UART0 */ |
299 | .dev_id = "dev:f1", | 299 | .dev_id = "dev:uart0", |
300 | .clk = &ref24_clk, | 300 | .clk = &ref24_clk, |
301 | }, { /* UART1 */ | 301 | }, { /* UART1 */ |
302 | .dev_id = "dev:f2", | 302 | .dev_id = "dev:uart1", |
303 | .clk = &ref24_clk, | 303 | .clk = &ref24_clk, |
304 | }, { /* UART2 */ | 304 | }, { /* UART2 */ |
305 | .dev_id = "dev:f3", | 305 | .dev_id = "dev:uart2", |
306 | .clk = &ref24_clk, | 306 | .clk = &ref24_clk, |
307 | }, { /* UART3 */ | 307 | }, { /* UART3 */ |
308 | .dev_id = "fpga:09", | 308 | .dev_id = "fpga:uart3", |
309 | .clk = &ref24_clk, | 309 | .clk = &ref24_clk, |
310 | }, { /* KMI0 */ | 310 | }, { /* KMI0 */ |
311 | .dev_id = "fpga:06", | 311 | .dev_id = "fpga:kmi0", |
312 | .clk = &ref24_clk, | 312 | .clk = &ref24_clk, |
313 | }, { /* KMI1 */ | 313 | }, { /* KMI1 */ |
314 | .dev_id = "fpga:07", | 314 | .dev_id = "fpga:kmi1", |
315 | .clk = &ref24_clk, | 315 | .clk = &ref24_clk, |
316 | }, { /* MMC0 */ | 316 | }, { /* MMC0 */ |
317 | .dev_id = "fpga:05", | 317 | .dev_id = "fpga:mmc0", |
318 | .clk = &ref24_clk, | 318 | .clk = &ref24_clk, |
319 | }, { /* EB:CLCD */ | 319 | }, { /* EB:CLCD */ |
320 | .dev_id = "dev:20", | 320 | .dev_id = "dev:clcd", |
321 | .clk = &oscvco_clk, | 321 | .clk = &oscvco_clk, |
322 | }, { /* PB:CLCD */ | 322 | }, { /* PB:CLCD */ |
323 | .dev_id = "issp:20", | 323 | .dev_id = "issp:clcd", |
324 | .clk = &oscvco_clk, | 324 | .clk = &oscvco_clk, |
325 | } | 325 | } |
326 | }; | 326 | }; |
diff --git a/arch/arm/mach-realview/core.h b/arch/arm/mach-realview/core.h index 59a337ba4be7..46cd6acb4d40 100644 --- a/arch/arm/mach-realview/core.h +++ b/arch/arm/mach-realview/core.h | |||
@@ -47,8 +47,8 @@ static struct amba_device name##_device = { \ | |||
47 | extern struct platform_device realview_flash_device; | 47 | extern struct platform_device realview_flash_device; |
48 | extern struct platform_device realview_cf_device; | 48 | extern struct platform_device realview_cf_device; |
49 | extern struct platform_device realview_i2c_device; | 49 | extern struct platform_device realview_i2c_device; |
50 | extern struct mmc_platform_data realview_mmc0_plat_data; | 50 | extern struct mmci_platform_data realview_mmc0_plat_data; |
51 | extern struct mmc_platform_data realview_mmc1_plat_data; | 51 | extern struct mmci_platform_data realview_mmc1_plat_data; |
52 | extern struct clcd_board clcd_plat_data; | 52 | extern struct clcd_board clcd_plat_data; |
53 | extern void __iomem *gic_cpu_base_addr; | 53 | extern void __iomem *gic_cpu_base_addr; |
54 | extern void __iomem *timer0_va_base; | 54 | extern void __iomem *timer0_va_base; |
diff --git a/arch/arm/mach-realview/realview_eb.c b/arch/arm/mach-realview/realview_eb.c index abd13b448671..1d65e64ae571 100644 --- a/arch/arm/mach-realview/realview_eb.c +++ b/arch/arm/mach-realview/realview_eb.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/sysdev.h> | 24 | #include <linux/sysdev.h> |
25 | #include <linux/amba/bus.h> | 25 | #include <linux/amba/bus.h> |
26 | #include <linux/amba/pl061.h> | 26 | #include <linux/amba/pl061.h> |
27 | #include <linux/amba/mmci.h> | ||
27 | #include <linux/io.h> | 28 | #include <linux/io.h> |
28 | 29 | ||
29 | #include <mach/hardware.h> | 30 | #include <mach/hardware.h> |
@@ -37,7 +38,6 @@ | |||
37 | 38 | ||
38 | #include <asm/mach/arch.h> | 39 | #include <asm/mach/arch.h> |
39 | #include <asm/mach/map.h> | 40 | #include <asm/mach/map.h> |
40 | #include <asm/mach/mmc.h> | ||
41 | #include <asm/mach/time.h> | 41 | #include <asm/mach/time.h> |
42 | 42 | ||
43 | #include <mach/board-eb.h> | 43 | #include <mach/board-eb.h> |
@@ -193,27 +193,27 @@ static struct pl061_platform_data gpio2_plat_data = { | |||
193 | #define EB_SSP_DMA { 9, 8 } | 193 | #define EB_SSP_DMA { 9, 8 } |
194 | 194 | ||
195 | /* FPGA Primecells */ | 195 | /* FPGA Primecells */ |
196 | AMBA_DEVICE(aaci, "fpga:04", AACI, NULL); | 196 | AMBA_DEVICE(aaci, "fpga:aaci", AACI, NULL); |
197 | AMBA_DEVICE(mmc0, "fpga:05", MMCI0, &realview_mmc0_plat_data); | 197 | AMBA_DEVICE(mmc0, "fpga:mmc0", MMCI0, &realview_mmc0_plat_data); |
198 | AMBA_DEVICE(kmi0, "fpga:06", KMI0, NULL); | 198 | AMBA_DEVICE(kmi0, "fpga:kmi0", KMI0, NULL); |
199 | AMBA_DEVICE(kmi1, "fpga:07", KMI1, NULL); | 199 | AMBA_DEVICE(kmi1, "fpga:kmi1", KMI1, NULL); |
200 | AMBA_DEVICE(uart3, "fpga:09", EB_UART3, NULL); | 200 | AMBA_DEVICE(uart3, "fpga:uart3", EB_UART3, NULL); |
201 | 201 | ||
202 | /* DevChip Primecells */ | 202 | /* DevChip Primecells */ |
203 | AMBA_DEVICE(smc, "dev:00", EB_SMC, NULL); | 203 | AMBA_DEVICE(smc, "dev:smc", EB_SMC, NULL); |
204 | AMBA_DEVICE(clcd, "dev:20", EB_CLCD, &clcd_plat_data); | 204 | AMBA_DEVICE(clcd, "dev:clcd", EB_CLCD, &clcd_plat_data); |
205 | AMBA_DEVICE(dmac, "dev:30", DMAC, NULL); | 205 | AMBA_DEVICE(dmac, "dev:dmac", DMAC, NULL); |
206 | AMBA_DEVICE(sctl, "dev:e0", SCTL, NULL); | 206 | AMBA_DEVICE(sctl, "dev:sctl", SCTL, NULL); |
207 | AMBA_DEVICE(wdog, "dev:e1", EB_WATCHDOG, NULL); | 207 | AMBA_DEVICE(wdog, "dev:wdog", EB_WATCHDOG, NULL); |
208 | AMBA_DEVICE(gpio0, "dev:e4", EB_GPIO0, &gpio0_plat_data); | 208 | AMBA_DEVICE(gpio0, "dev:gpio0", EB_GPIO0, &gpio0_plat_data); |
209 | AMBA_DEVICE(gpio1, "dev:e5", GPIO1, &gpio1_plat_data); | 209 | AMBA_DEVICE(gpio1, "dev:gpio1", GPIO1, &gpio1_plat_data); |
210 | AMBA_DEVICE(gpio2, "dev:e6", GPIO2, &gpio2_plat_data); | 210 | AMBA_DEVICE(gpio2, "dev:gpio2", GPIO2, &gpio2_plat_data); |
211 | AMBA_DEVICE(rtc, "dev:e8", EB_RTC, NULL); | 211 | AMBA_DEVICE(rtc, "dev:rtc", EB_RTC, NULL); |
212 | AMBA_DEVICE(sci0, "dev:f0", SCI, NULL); | 212 | AMBA_DEVICE(sci0, "dev:sci0", SCI, NULL); |
213 | AMBA_DEVICE(uart0, "dev:f1", EB_UART0, NULL); | 213 | AMBA_DEVICE(uart0, "dev:uart0", EB_UART0, NULL); |
214 | AMBA_DEVICE(uart1, "dev:f2", EB_UART1, NULL); | 214 | AMBA_DEVICE(uart1, "dev:uart1", EB_UART1, NULL); |
215 | AMBA_DEVICE(uart2, "dev:f3", EB_UART2, NULL); | 215 | AMBA_DEVICE(uart2, "dev:uart2", EB_UART2, NULL); |
216 | AMBA_DEVICE(ssp0, "dev:f4", EB_SSP, NULL); | 216 | AMBA_DEVICE(ssp0, "dev:ssp0", EB_SSP, NULL); |
217 | 217 | ||
218 | static struct amba_device *amba_devs[] __initdata = { | 218 | static struct amba_device *amba_devs[] __initdata = { |
219 | &dmac_device, | 219 | &dmac_device, |
diff --git a/arch/arm/mach-realview/realview_pb1176.c b/arch/arm/mach-realview/realview_pb1176.c index 17fbb0e889b6..2817fe099319 100644 --- a/arch/arm/mach-realview/realview_pb1176.c +++ b/arch/arm/mach-realview/realview_pb1176.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/sysdev.h> | 24 | #include <linux/sysdev.h> |
25 | #include <linux/amba/bus.h> | 25 | #include <linux/amba/bus.h> |
26 | #include <linux/amba/pl061.h> | 26 | #include <linux/amba/pl061.h> |
27 | #include <linux/amba/mmci.h> | ||
27 | #include <linux/io.h> | 28 | #include <linux/io.h> |
28 | 29 | ||
29 | #include <mach/hardware.h> | 30 | #include <mach/hardware.h> |
@@ -37,7 +38,6 @@ | |||
37 | #include <asm/mach/arch.h> | 38 | #include <asm/mach/arch.h> |
38 | #include <asm/mach/flash.h> | 39 | #include <asm/mach/flash.h> |
39 | #include <asm/mach/map.h> | 40 | #include <asm/mach/map.h> |
40 | #include <asm/mach/mmc.h> | ||
41 | #include <asm/mach/time.h> | 41 | #include <asm/mach/time.h> |
42 | 42 | ||
43 | #include <mach/board-pb1176.h> | 43 | #include <mach/board-pb1176.h> |
@@ -170,29 +170,29 @@ static struct pl061_platform_data gpio2_plat_data = { | |||
170 | #define PB1176_SSP_DMA { 9, 8 } | 170 | #define PB1176_SSP_DMA { 9, 8 } |
171 | 171 | ||
172 | /* FPGA Primecells */ | 172 | /* FPGA Primecells */ |
173 | AMBA_DEVICE(aaci, "fpga:04", AACI, NULL); | 173 | AMBA_DEVICE(aaci, "fpga:aaci", AACI, NULL); |
174 | AMBA_DEVICE(mmc0, "fpga:05", MMCI0, &realview_mmc0_plat_data); | 174 | AMBA_DEVICE(mmc0, "fpga:mmc0", MMCI0, &realview_mmc0_plat_data); |
175 | AMBA_DEVICE(kmi0, "fpga:06", KMI0, NULL); | 175 | AMBA_DEVICE(kmi0, "fpga:kmi0", KMI0, NULL); |
176 | AMBA_DEVICE(kmi1, "fpga:07", KMI1, NULL); | 176 | AMBA_DEVICE(kmi1, "fpga:kmi1", KMI1, NULL); |
177 | AMBA_DEVICE(uart3, "fpga:09", PB1176_UART3, NULL); | 177 | AMBA_DEVICE(uart3, "fpga:uart3", PB1176_UART3, NULL); |
178 | 178 | ||
179 | /* DevChip Primecells */ | 179 | /* DevChip Primecells */ |
180 | AMBA_DEVICE(smc, "dev:00", PB1176_SMC, NULL); | 180 | AMBA_DEVICE(smc, "dev:smc", PB1176_SMC, NULL); |
181 | AMBA_DEVICE(sctl, "dev:e0", SCTL, NULL); | 181 | AMBA_DEVICE(sctl, "dev:sctl", SCTL, NULL); |
182 | AMBA_DEVICE(wdog, "dev:e1", PB1176_WATCHDOG, NULL); | 182 | AMBA_DEVICE(wdog, "dev:wdog", PB1176_WATCHDOG, NULL); |
183 | AMBA_DEVICE(gpio0, "dev:e4", PB1176_GPIO0, &gpio0_plat_data); | 183 | AMBA_DEVICE(gpio0, "dev:gpio0", PB1176_GPIO0, &gpio0_plat_data); |
184 | AMBA_DEVICE(gpio1, "dev:e5", GPIO1, &gpio1_plat_data); | 184 | AMBA_DEVICE(gpio1, "dev:gpio1", GPIO1, &gpio1_plat_data); |
185 | AMBA_DEVICE(gpio2, "dev:e6", GPIO2, &gpio2_plat_data); | 185 | AMBA_DEVICE(gpio2, "dev:gpio2", GPIO2, &gpio2_plat_data); |
186 | AMBA_DEVICE(rtc, "dev:e8", PB1176_RTC, NULL); | 186 | AMBA_DEVICE(rtc, "dev:rtc", PB1176_RTC, NULL); |
187 | AMBA_DEVICE(sci0, "dev:f0", SCI, NULL); | 187 | AMBA_DEVICE(sci0, "dev:sci0", SCI, NULL); |
188 | AMBA_DEVICE(uart0, "dev:f1", PB1176_UART0, NULL); | 188 | AMBA_DEVICE(uart0, "dev:uart0", PB1176_UART0, NULL); |
189 | AMBA_DEVICE(uart1, "dev:f2", PB1176_UART1, NULL); | 189 | AMBA_DEVICE(uart1, "dev:uart1", PB1176_UART1, NULL); |
190 | AMBA_DEVICE(uart2, "dev:f3", PB1176_UART2, NULL); | 190 | AMBA_DEVICE(uart2, "dev:uart2", PB1176_UART2, NULL); |
191 | AMBA_DEVICE(ssp0, "dev:f4", PB1176_SSP, NULL); | 191 | AMBA_DEVICE(ssp0, "dev:ssp0", PB1176_SSP, NULL); |
192 | 192 | ||
193 | /* Primecells on the NEC ISSP chip */ | 193 | /* Primecells on the NEC ISSP chip */ |
194 | AMBA_DEVICE(clcd, "issp:20", PB1176_CLCD, &clcd_plat_data); | 194 | AMBA_DEVICE(clcd, "issp:clcd", PB1176_CLCD, &clcd_plat_data); |
195 | //AMBA_DEVICE(dmac, "issp:30", PB1176_DMAC, NULL); | 195 | //AMBA_DEVICE(dmac, "issp:dmac", PB1176_DMAC, NULL); |
196 | 196 | ||
197 | static struct amba_device *amba_devs[] __initdata = { | 197 | static struct amba_device *amba_devs[] __initdata = { |
198 | // &dmac_device, | 198 | // &dmac_device, |
diff --git a/arch/arm/mach-realview/realview_pb11mp.c b/arch/arm/mach-realview/realview_pb11mp.c index fdd042b85f40..94680fcf726d 100644 --- a/arch/arm/mach-realview/realview_pb11mp.c +++ b/arch/arm/mach-realview/realview_pb11mp.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/sysdev.h> | 24 | #include <linux/sysdev.h> |
25 | #include <linux/amba/bus.h> | 25 | #include <linux/amba/bus.h> |
26 | #include <linux/amba/pl061.h> | 26 | #include <linux/amba/pl061.h> |
27 | #include <linux/amba/mmci.h> | ||
27 | #include <linux/io.h> | 28 | #include <linux/io.h> |
28 | 29 | ||
29 | #include <mach/hardware.h> | 30 | #include <mach/hardware.h> |
@@ -38,7 +39,6 @@ | |||
38 | #include <asm/mach/arch.h> | 39 | #include <asm/mach/arch.h> |
39 | #include <asm/mach/flash.h> | 40 | #include <asm/mach/flash.h> |
40 | #include <asm/mach/map.h> | 41 | #include <asm/mach/map.h> |
41 | #include <asm/mach/mmc.h> | ||
42 | #include <asm/mach/time.h> | 42 | #include <asm/mach/time.h> |
43 | 43 | ||
44 | #include <mach/board-pb11mp.h> | 44 | #include <mach/board-pb11mp.h> |
@@ -172,29 +172,29 @@ static struct pl061_platform_data gpio2_plat_data = { | |||
172 | #define PB11MP_SSP_DMA { 9, 8 } | 172 | #define PB11MP_SSP_DMA { 9, 8 } |
173 | 173 | ||
174 | /* FPGA Primecells */ | 174 | /* FPGA Primecells */ |
175 | AMBA_DEVICE(aaci, "fpga:04", AACI, NULL); | 175 | AMBA_DEVICE(aaci, "fpga:aaci", AACI, NULL); |
176 | AMBA_DEVICE(mmc0, "fpga:05", MMCI0, &realview_mmc0_plat_data); | 176 | AMBA_DEVICE(mmc0, "fpga:mmc0", MMCI0, &realview_mmc0_plat_data); |
177 | AMBA_DEVICE(kmi0, "fpga:06", KMI0, NULL); | 177 | AMBA_DEVICE(kmi0, "fpga:kmi0", KMI0, NULL); |
178 | AMBA_DEVICE(kmi1, "fpga:07", KMI1, NULL); | 178 | AMBA_DEVICE(kmi1, "fpga:kmi1", KMI1, NULL); |
179 | AMBA_DEVICE(uart3, "fpga:09", PB11MP_UART3, NULL); | 179 | AMBA_DEVICE(uart3, "fpga:uart3", PB11MP_UART3, NULL); |
180 | 180 | ||
181 | /* DevChip Primecells */ | 181 | /* DevChip Primecells */ |
182 | AMBA_DEVICE(smc, "dev:00", PB11MP_SMC, NULL); | 182 | AMBA_DEVICE(smc, "dev:smc", PB11MP_SMC, NULL); |
183 | AMBA_DEVICE(sctl, "dev:e0", SCTL, NULL); | 183 | AMBA_DEVICE(sctl, "dev:sctl", SCTL, NULL); |
184 | AMBA_DEVICE(wdog, "dev:e1", PB11MP_WATCHDOG, NULL); | 184 | AMBA_DEVICE(wdog, "dev:wdog", PB11MP_WATCHDOG, NULL); |
185 | AMBA_DEVICE(gpio0, "dev:e4", PB11MP_GPIO0, &gpio0_plat_data); | 185 | AMBA_DEVICE(gpio0, "dev:gpio0", PB11MP_GPIO0, &gpio0_plat_data); |
186 | AMBA_DEVICE(gpio1, "dev:e5", GPIO1, &gpio1_plat_data); | 186 | AMBA_DEVICE(gpio1, "dev:gpio1", GPIO1, &gpio1_plat_data); |
187 | AMBA_DEVICE(gpio2, "dev:e6", GPIO2, &gpio2_plat_data); | 187 | AMBA_DEVICE(gpio2, "dev:gpio2", GPIO2, &gpio2_plat_data); |
188 | AMBA_DEVICE(rtc, "dev:e8", PB11MP_RTC, NULL); | 188 | AMBA_DEVICE(rtc, "dev:rtc", PB11MP_RTC, NULL); |
189 | AMBA_DEVICE(sci0, "dev:f0", SCI, NULL); | 189 | AMBA_DEVICE(sci0, "dev:sci0", SCI, NULL); |
190 | AMBA_DEVICE(uart0, "dev:f1", PB11MP_UART0, NULL); | 190 | AMBA_DEVICE(uart0, "dev:uart0", PB11MP_UART0, NULL); |
191 | AMBA_DEVICE(uart1, "dev:f2", PB11MP_UART1, NULL); | 191 | AMBA_DEVICE(uart1, "dev:uart1", PB11MP_UART1, NULL); |
192 | AMBA_DEVICE(uart2, "dev:f3", PB11MP_UART2, NULL); | 192 | AMBA_DEVICE(uart2, "dev:uart2", PB11MP_UART2, NULL); |
193 | AMBA_DEVICE(ssp0, "dev:f4", PB11MP_SSP, NULL); | 193 | AMBA_DEVICE(ssp0, "dev:ssp0", PB11MP_SSP, NULL); |
194 | 194 | ||
195 | /* Primecells on the NEC ISSP chip */ | 195 | /* Primecells on the NEC ISSP chip */ |
196 | AMBA_DEVICE(clcd, "issp:20", PB11MP_CLCD, &clcd_plat_data); | 196 | AMBA_DEVICE(clcd, "issp:clcd", PB11MP_CLCD, &clcd_plat_data); |
197 | AMBA_DEVICE(dmac, "issp:30", DMAC, NULL); | 197 | AMBA_DEVICE(dmac, "issp:dmac", DMAC, NULL); |
198 | 198 | ||
199 | static struct amba_device *amba_devs[] __initdata = { | 199 | static struct amba_device *amba_devs[] __initdata = { |
200 | &dmac_device, | 200 | &dmac_device, |
diff --git a/arch/arm/mach-realview/realview_pba8.c b/arch/arm/mach-realview/realview_pba8.c index 70bba9900d97..941beb2b9709 100644 --- a/arch/arm/mach-realview/realview_pba8.c +++ b/arch/arm/mach-realview/realview_pba8.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/sysdev.h> | 24 | #include <linux/sysdev.h> |
25 | #include <linux/amba/bus.h> | 25 | #include <linux/amba/bus.h> |
26 | #include <linux/amba/pl061.h> | 26 | #include <linux/amba/pl061.h> |
27 | #include <linux/amba/mmci.h> | ||
27 | #include <linux/io.h> | 28 | #include <linux/io.h> |
28 | 29 | ||
29 | #include <asm/irq.h> | 30 | #include <asm/irq.h> |
@@ -34,7 +35,6 @@ | |||
34 | 35 | ||
35 | #include <asm/mach/arch.h> | 36 | #include <asm/mach/arch.h> |
36 | #include <asm/mach/map.h> | 37 | #include <asm/mach/map.h> |
37 | #include <asm/mach/mmc.h> | ||
38 | #include <asm/mach/time.h> | 38 | #include <asm/mach/time.h> |
39 | 39 | ||
40 | #include <mach/hardware.h> | 40 | #include <mach/hardware.h> |
@@ -162,29 +162,29 @@ static struct pl061_platform_data gpio2_plat_data = { | |||
162 | #define PBA8_SSP_DMA { 9, 8 } | 162 | #define PBA8_SSP_DMA { 9, 8 } |
163 | 163 | ||
164 | /* FPGA Primecells */ | 164 | /* FPGA Primecells */ |
165 | AMBA_DEVICE(aaci, "fpga:04", AACI, NULL); | 165 | AMBA_DEVICE(aaci, "fpga:aaci", AACI, NULL); |
166 | AMBA_DEVICE(mmc0, "fpga:05", MMCI0, &realview_mmc0_plat_data); | 166 | AMBA_DEVICE(mmc0, "fpga:mmc0", MMCI0, &realview_mmc0_plat_data); |
167 | AMBA_DEVICE(kmi0, "fpga:06", KMI0, NULL); | 167 | AMBA_DEVICE(kmi0, "fpga:kmi0", KMI0, NULL); |
168 | AMBA_DEVICE(kmi1, "fpga:07", KMI1, NULL); | 168 | AMBA_DEVICE(kmi1, "fpga:kmi1", KMI1, NULL); |
169 | AMBA_DEVICE(uart3, "fpga:09", PBA8_UART3, NULL); | 169 | AMBA_DEVICE(uart3, "fpga:uart3", PBA8_UART3, NULL); |
170 | 170 | ||
171 | /* DevChip Primecells */ | 171 | /* DevChip Primecells */ |
172 | AMBA_DEVICE(smc, "dev:00", PBA8_SMC, NULL); | 172 | AMBA_DEVICE(smc, "dev:smc", PBA8_SMC, NULL); |
173 | AMBA_DEVICE(sctl, "dev:e0", SCTL, NULL); | 173 | AMBA_DEVICE(sctl, "dev:sctl", SCTL, NULL); |
174 | AMBA_DEVICE(wdog, "dev:e1", PBA8_WATCHDOG, NULL); | 174 | AMBA_DEVICE(wdog, "dev:wdog", PBA8_WATCHDOG, NULL); |
175 | AMBA_DEVICE(gpio0, "dev:e4", PBA8_GPIO0, &gpio0_plat_data); | 175 | AMBA_DEVICE(gpio0, "dev:gpio0", PBA8_GPIO0, &gpio0_plat_data); |
176 | AMBA_DEVICE(gpio1, "dev:e5", GPIO1, &gpio1_plat_data); | 176 | AMBA_DEVICE(gpio1, "dev:gpio1", GPIO1, &gpio1_plat_data); |
177 | AMBA_DEVICE(gpio2, "dev:e6", GPIO2, &gpio2_plat_data); | 177 | AMBA_DEVICE(gpio2, "dev:gpio2", GPIO2, &gpio2_plat_data); |
178 | AMBA_DEVICE(rtc, "dev:e8", PBA8_RTC, NULL); | 178 | AMBA_DEVICE(rtc, "dev:rtc", PBA8_RTC, NULL); |
179 | AMBA_DEVICE(sci0, "dev:f0", SCI, NULL); | 179 | AMBA_DEVICE(sci0, "dev:sci0", SCI, NULL); |
180 | AMBA_DEVICE(uart0, "dev:f1", PBA8_UART0, NULL); | 180 | AMBA_DEVICE(uart0, "dev:uart0", PBA8_UART0, NULL); |
181 | AMBA_DEVICE(uart1, "dev:f2", PBA8_UART1, NULL); | 181 | AMBA_DEVICE(uart1, "dev:uart1", PBA8_UART1, NULL); |
182 | AMBA_DEVICE(uart2, "dev:f3", PBA8_UART2, NULL); | 182 | AMBA_DEVICE(uart2, "dev:uart2", PBA8_UART2, NULL); |
183 | AMBA_DEVICE(ssp0, "dev:f4", PBA8_SSP, NULL); | 183 | AMBA_DEVICE(ssp0, "dev:ssp0", PBA8_SSP, NULL); |
184 | 184 | ||
185 | /* Primecells on the NEC ISSP chip */ | 185 | /* Primecells on the NEC ISSP chip */ |
186 | AMBA_DEVICE(clcd, "issp:20", PBA8_CLCD, &clcd_plat_data); | 186 | AMBA_DEVICE(clcd, "issp:clcd", PBA8_CLCD, &clcd_plat_data); |
187 | AMBA_DEVICE(dmac, "issp:30", DMAC, NULL); | 187 | AMBA_DEVICE(dmac, "issp:dmac", DMAC, NULL); |
188 | 188 | ||
189 | static struct amba_device *amba_devs[] __initdata = { | 189 | static struct amba_device *amba_devs[] __initdata = { |
190 | &dmac_device, | 190 | &dmac_device, |
diff --git a/arch/arm/mach-realview/realview_pbx.c b/arch/arm/mach-realview/realview_pbx.c index ce6c5d25fbef..7e4bc6cdca52 100644 --- a/arch/arm/mach-realview/realview_pbx.c +++ b/arch/arm/mach-realview/realview_pbx.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/sysdev.h> | 23 | #include <linux/sysdev.h> |
24 | #include <linux/amba/bus.h> | 24 | #include <linux/amba/bus.h> |
25 | #include <linux/amba/pl061.h> | 25 | #include <linux/amba/pl061.h> |
26 | #include <linux/amba/mmci.h> | ||
26 | #include <linux/io.h> | 27 | #include <linux/io.h> |
27 | 28 | ||
28 | #include <asm/irq.h> | 29 | #include <asm/irq.h> |
@@ -34,7 +35,6 @@ | |||
34 | 35 | ||
35 | #include <asm/mach/arch.h> | 36 | #include <asm/mach/arch.h> |
36 | #include <asm/mach/map.h> | 37 | #include <asm/mach/map.h> |
37 | #include <asm/mach/mmc.h> | ||
38 | #include <asm/mach/time.h> | 38 | #include <asm/mach/time.h> |
39 | 39 | ||
40 | #include <mach/hardware.h> | 40 | #include <mach/hardware.h> |
@@ -182,29 +182,29 @@ static struct pl061_platform_data gpio2_plat_data = { | |||
182 | #define PBX_SSP_DMA { 9, 8 } | 182 | #define PBX_SSP_DMA { 9, 8 } |
183 | 183 | ||
184 | /* FPGA Primecells */ | 184 | /* FPGA Primecells */ |
185 | AMBA_DEVICE(aaci, "fpga:04", AACI, NULL); | 185 | AMBA_DEVICE(aaci, "fpga:aaci", AACI, NULL); |
186 | AMBA_DEVICE(mmc0, "fpga:05", MMCI0, &realview_mmc0_plat_data); | 186 | AMBA_DEVICE(mmc0, "fpga:mmc0", MMCI0, &realview_mmc0_plat_data); |
187 | AMBA_DEVICE(kmi0, "fpga:06", KMI0, NULL); | 187 | AMBA_DEVICE(kmi0, "fpga:kmi0", KMI0, NULL); |
188 | AMBA_DEVICE(kmi1, "fpga:07", KMI1, NULL); | 188 | AMBA_DEVICE(kmi1, "fpga:kmi1", KMI1, NULL); |
189 | AMBA_DEVICE(uart3, "fpga:09", PBX_UART3, NULL); | 189 | AMBA_DEVICE(uart3, "fpga:uart3", PBX_UART3, NULL); |
190 | 190 | ||
191 | /* DevChip Primecells */ | 191 | /* DevChip Primecells */ |
192 | AMBA_DEVICE(smc, "dev:00", PBX_SMC, NULL); | 192 | AMBA_DEVICE(smc, "dev:smc", PBX_SMC, NULL); |
193 | AMBA_DEVICE(sctl, "dev:e0", SCTL, NULL); | 193 | AMBA_DEVICE(sctl, "dev:sctl", SCTL, NULL); |
194 | AMBA_DEVICE(wdog, "dev:e1", PBX_WATCHDOG, NULL); | 194 | AMBA_DEVICE(wdog, "dev:wdog", PBX_WATCHDOG, NULL); |
195 | AMBA_DEVICE(gpio0, "dev:e4", PBX_GPIO0, &gpio0_plat_data); | 195 | AMBA_DEVICE(gpio0, "dev:gpio0", PBX_GPIO0, &gpio0_plat_data); |
196 | AMBA_DEVICE(gpio1, "dev:e5", GPIO1, &gpio1_plat_data); | 196 | AMBA_DEVICE(gpio1, "dev:gpio1", GPIO1, &gpio1_plat_data); |
197 | AMBA_DEVICE(gpio2, "dev:e6", GPIO2, &gpio2_plat_data); | 197 | AMBA_DEVICE(gpio2, "dev:gpio2", GPIO2, &gpio2_plat_data); |
198 | AMBA_DEVICE(rtc, "dev:e8", PBX_RTC, NULL); | 198 | AMBA_DEVICE(rtc, "dev:rtc", PBX_RTC, NULL); |
199 | AMBA_DEVICE(sci0, "dev:f0", SCI, NULL); | 199 | AMBA_DEVICE(sci0, "dev:sci0", SCI, NULL); |
200 | AMBA_DEVICE(uart0, "dev:f1", PBX_UART0, NULL); | 200 | AMBA_DEVICE(uart0, "dev:uart0", PBX_UART0, NULL); |
201 | AMBA_DEVICE(uart1, "dev:f2", PBX_UART1, NULL); | 201 | AMBA_DEVICE(uart1, "dev:uart1", PBX_UART1, NULL); |
202 | AMBA_DEVICE(uart2, "dev:f3", PBX_UART2, NULL); | 202 | AMBA_DEVICE(uart2, "dev:uart2", PBX_UART2, NULL); |
203 | AMBA_DEVICE(ssp0, "dev:f4", PBX_SSP, NULL); | 203 | AMBA_DEVICE(ssp0, "dev:ssp0", PBX_SSP, NULL); |
204 | 204 | ||
205 | /* Primecells on the NEC ISSP chip */ | 205 | /* Primecells on the NEC ISSP chip */ |
206 | AMBA_DEVICE(clcd, "issp:20", PBX_CLCD, &clcd_plat_data); | 206 | AMBA_DEVICE(clcd, "issp:clcd", PBX_CLCD, &clcd_plat_data); |
207 | AMBA_DEVICE(dmac, "issp:30", DMAC, NULL); | 207 | AMBA_DEVICE(dmac, "issp:dmac", DMAC, NULL); |
208 | 208 | ||
209 | static struct amba_device *amba_devs[] __initdata = { | 209 | static struct amba_device *amba_devs[] __initdata = { |
210 | &dmac_device, | 210 | &dmac_device, |
diff --git a/arch/arm/mach-s3c2410/Kconfig b/arch/arm/mach-s3c2410/Kconfig index d8c023d4df30..3d4e9da3fa52 100644 --- a/arch/arm/mach-s3c2410/Kconfig +++ b/arch/arm/mach-s3c2410/Kconfig | |||
@@ -77,6 +77,7 @@ config ARCH_H1940 | |||
77 | select CPU_S3C2410 | 77 | select CPU_S3C2410 |
78 | select PM_H1940 if PM | 78 | select PM_H1940 if PM |
79 | select S3C_DEV_USB_HOST | 79 | select S3C_DEV_USB_HOST |
80 | select S3C_DEV_NAND | ||
80 | help | 81 | help |
81 | Say Y here if you are using the HP IPAQ H1940 | 82 | Say Y here if you are using the HP IPAQ H1940 |
82 | 83 | ||
@@ -89,6 +90,7 @@ config MACH_N30 | |||
89 | bool "Acer N30 family" | 90 | bool "Acer N30 family" |
90 | select CPU_S3C2410 | 91 | select CPU_S3C2410 |
91 | select S3C_DEV_USB_HOST | 92 | select S3C_DEV_USB_HOST |
93 | select S3C_DEV_NAND | ||
92 | help | 94 | help |
93 | Say Y here if you want suppt for the Acer N30, Acer N35, | 95 | Say Y here if you want suppt for the Acer N30, Acer N35, |
94 | Navman PiN570, Yakumo AlphaX or Airis NC05 PDAs. | 96 | Navman PiN570, Yakumo AlphaX or Airis NC05 PDAs. |
@@ -103,6 +105,7 @@ config ARCH_BAST | |||
103 | select S3C24XX_DCLK | 105 | select S3C24XX_DCLK |
104 | select ISA | 106 | select ISA |
105 | select S3C_DEV_USB_HOST | 107 | select S3C_DEV_USB_HOST |
108 | select S3C_DEV_NAND | ||
106 | help | 109 | help |
107 | Say Y here if you are using the Simtec Electronics EB2410ITX | 110 | Say Y here if you are using the Simtec Electronics EB2410ITX |
108 | development board (also known as BAST) | 111 | development board (also known as BAST) |
@@ -111,6 +114,7 @@ config MACH_OTOM | |||
111 | bool "NexVision OTOM Board" | 114 | bool "NexVision OTOM Board" |
112 | select CPU_S3C2410 | 115 | select CPU_S3C2410 |
113 | select S3C_DEV_USB_HOST | 116 | select S3C_DEV_USB_HOST |
117 | select S3C_DEV_NAND | ||
114 | help | 118 | help |
115 | Say Y here if you are using the Nex Vision OTOM board | 119 | Say Y here if you are using the Nex Vision OTOM board |
116 | 120 | ||
@@ -154,6 +158,7 @@ config MACH_QT2410 | |||
154 | bool "QT2410" | 158 | bool "QT2410" |
155 | select CPU_S3C2410 | 159 | select CPU_S3C2410 |
156 | select S3C_DEV_USB_HOST | 160 | select S3C_DEV_USB_HOST |
161 | select S3C_DEV_NAND | ||
157 | help | 162 | help |
158 | Say Y here if you are using the Armzone QT2410 | 163 | Say Y here if you are using the Armzone QT2410 |
159 | 164 | ||
diff --git a/arch/arm/mach-s3c2412/Kconfig b/arch/arm/mach-s3c2412/Kconfig index 35c1bde89cf2..c2bdc4635d12 100644 --- a/arch/arm/mach-s3c2412/Kconfig +++ b/arch/arm/mach-s3c2412/Kconfig | |||
@@ -48,6 +48,7 @@ config MACH_JIVE | |||
48 | bool "Logitech Jive" | 48 | bool "Logitech Jive" |
49 | select CPU_S3C2412 | 49 | select CPU_S3C2412 |
50 | select S3C_DEV_USB_HOST | 50 | select S3C_DEV_USB_HOST |
51 | select S3C_DEV_NAND | ||
51 | help | 52 | help |
52 | Say Y here if you are using the Logitech Jive. | 53 | Say Y here if you are using the Logitech Jive. |
53 | 54 | ||
@@ -61,6 +62,7 @@ config MACH_SMDK2413 | |||
61 | select MACH_S3C2413 | 62 | select MACH_S3C2413 |
62 | select MACH_SMDK | 63 | select MACH_SMDK |
63 | select S3C_DEV_USB_HOST | 64 | select S3C_DEV_USB_HOST |
65 | select S3C_DEV_NAND | ||
64 | help | 66 | help |
65 | Say Y here if you are using an SMDK2413 | 67 | Say Y here if you are using an SMDK2413 |
66 | 68 | ||
@@ -84,6 +86,7 @@ config MACH_VSTMS | |||
84 | bool "VMSTMS" | 86 | bool "VMSTMS" |
85 | select CPU_S3C2412 | 87 | select CPU_S3C2412 |
86 | select S3C_DEV_USB_HOST | 88 | select S3C_DEV_USB_HOST |
89 | select S3C_DEV_NAND | ||
87 | help | 90 | help |
88 | Say Y here if you are using an VSTMS board | 91 | Say Y here if you are using an VSTMS board |
89 | 92 | ||
diff --git a/arch/arm/mach-s3c2440/Kconfig b/arch/arm/mach-s3c2440/Kconfig index 8ae1b288f7fa..d7bba919a77e 100644 --- a/arch/arm/mach-s3c2440/Kconfig +++ b/arch/arm/mach-s3c2440/Kconfig | |||
@@ -48,6 +48,7 @@ config MACH_OSIRIS | |||
48 | select S3C2440_XTAL_12000000 | 48 | select S3C2440_XTAL_12000000 |
49 | select S3C2410_IOTIMING if S3C2440_CPUFREQ | 49 | select S3C2410_IOTIMING if S3C2440_CPUFREQ |
50 | select S3C_DEV_USB_HOST | 50 | select S3C_DEV_USB_HOST |
51 | select S3C_DEV_NAND | ||
51 | help | 52 | help |
52 | Say Y here if you are using the Simtec IM2440D20 module, also | 53 | Say Y here if you are using the Simtec IM2440D20 module, also |
53 | known as the Osiris. | 54 | known as the Osiris. |
@@ -57,6 +58,7 @@ config MACH_RX3715 | |||
57 | select CPU_S3C2440 | 58 | select CPU_S3C2440 |
58 | select S3C2440_XTAL_16934400 | 59 | select S3C2440_XTAL_16934400 |
59 | select PM_H1940 if PM | 60 | select PM_H1940 if PM |
61 | select S3C_DEV_NAND | ||
60 | help | 62 | help |
61 | Say Y here if you are using the HP iPAQ rx3715. | 63 | Say Y here if you are using the HP iPAQ rx3715. |
62 | 64 | ||
@@ -66,6 +68,7 @@ config ARCH_S3C2440 | |||
66 | select S3C2440_XTAL_16934400 | 68 | select S3C2440_XTAL_16934400 |
67 | select MACH_SMDK | 69 | select MACH_SMDK |
68 | select S3C_DEV_USB_HOST | 70 | select S3C_DEV_USB_HOST |
71 | select S3C_DEV_NAND | ||
69 | help | 72 | help |
70 | Say Y here if you are using the SMDK2440. | 73 | Say Y here if you are using the SMDK2440. |
71 | 74 | ||
@@ -74,6 +77,7 @@ config MACH_NEXCODER_2440 | |||
74 | select CPU_S3C2440 | 77 | select CPU_S3C2440 |
75 | select S3C2440_XTAL_12000000 | 78 | select S3C2440_XTAL_12000000 |
76 | select S3C_DEV_USB_HOST | 79 | select S3C_DEV_USB_HOST |
80 | select S3C_DEV_NAND | ||
77 | help | 81 | help |
78 | Say Y here if you are using the Nex Vision NEXCODER 2440 Light Board | 82 | Say Y here if you are using the Nex Vision NEXCODER 2440 Light Board |
79 | 83 | ||
@@ -88,6 +92,7 @@ config MACH_AT2440EVB | |||
88 | bool "Avantech AT2440EVB development board" | 92 | bool "Avantech AT2440EVB development board" |
89 | select CPU_S3C2440 | 93 | select CPU_S3C2440 |
90 | select S3C_DEV_USB_HOST | 94 | select S3C_DEV_USB_HOST |
95 | select S3C_DEV_NAND | ||
91 | help | 96 | help |
92 | Say Y here if you are using the AT2440EVB development board | 97 | Say Y here if you are using the AT2440EVB development board |
93 | 98 | ||
@@ -97,6 +102,7 @@ config MACH_MINI2440 | |||
97 | select EEPROM_AT24 | 102 | select EEPROM_AT24 |
98 | select LEDS_TRIGGER_BACKLIGHT | 103 | select LEDS_TRIGGER_BACKLIGHT |
99 | select SND_S3C24XX_SOC_S3C24XX_UDA134X | 104 | select SND_S3C24XX_SOC_S3C24XX_UDA134X |
105 | select S3C_DEV_NAND | ||
100 | help | 106 | help |
101 | Say Y here to select support for the MINI2440. Is a 10cm x 10cm board | 107 | Say Y here to select support for the MINI2440. Is a 10cm x 10cm board |
102 | available via various sources. It can come with a 3.5" or 7" touch LCD. | 108 | available via various sources. It can come with a 3.5" or 7" touch LCD. |
diff --git a/arch/arm/mach-s3c6400/Kconfig b/arch/arm/mach-s3c6400/Kconfig index f5af212066c3..770b72067e3d 100644 --- a/arch/arm/mach-s3c6400/Kconfig +++ b/arch/arm/mach-s3c6400/Kconfig | |||
@@ -26,6 +26,7 @@ config MACH_SMDK6400 | |||
26 | bool "SMDK6400" | 26 | bool "SMDK6400" |
27 | select CPU_S3C6400 | 27 | select CPU_S3C6400 |
28 | select S3C_DEV_HSMMC | 28 | select S3C_DEV_HSMMC |
29 | select S3C_DEV_NAND | ||
29 | select S3C6400_SETUP_SDHCI | 30 | select S3C6400_SETUP_SDHCI |
30 | help | 31 | help |
31 | Machine support for the Samsung SMDK6400 | 32 | Machine support for the Samsung SMDK6400 |
diff --git a/arch/arm/mach-s3c6410/Kconfig b/arch/arm/mach-s3c6410/Kconfig index f9d0f09f9761..53fc3ff657f7 100644 --- a/arch/arm/mach-s3c6410/Kconfig +++ b/arch/arm/mach-s3c6410/Kconfig | |||
@@ -102,6 +102,7 @@ config MACH_HMT | |||
102 | bool "Airgoo HMT" | 102 | bool "Airgoo HMT" |
103 | select CPU_S3C6410 | 103 | select CPU_S3C6410 |
104 | select S3C_DEV_FB | 104 | select S3C_DEV_FB |
105 | select S3C_DEV_NAND | ||
105 | select S3C_DEV_USB_HOST | 106 | select S3C_DEV_USB_HOST |
106 | select S3C64XX_SETUP_FB_24BPP | 107 | select S3C64XX_SETUP_FB_24BPP |
107 | select HAVE_PWM | 108 | select HAVE_PWM |
diff --git a/arch/arm/mach-sa1100/Kconfig b/arch/arm/mach-sa1100/Kconfig index 81ffff7ed498..4e5c07f4e456 100644 --- a/arch/arm/mach-sa1100/Kconfig +++ b/arch/arm/mach-sa1100/Kconfig | |||
@@ -71,11 +71,6 @@ config SA1100_H3600 | |||
71 | <http://www.handhelds.org/Compaq/index.html#iPAQ_H3600> | 71 | <http://www.handhelds.org/Compaq/index.html#iPAQ_H3600> |
72 | <http://www.compaq.com/products/handhelds/pocketpc/> | 72 | <http://www.compaq.com/products/handhelds/pocketpc/> |
73 | 73 | ||
74 | config SA1100_H3XXX | ||
75 | bool | ||
76 | depends on SA1100_H3100 || SA1100_H3600 | ||
77 | default y | ||
78 | |||
79 | config SA1100_BADGE4 | 74 | config SA1100_BADGE4 |
80 | bool "HP Labs BadgePAD 4" | 75 | bool "HP Labs BadgePAD 4" |
81 | select SA1111 | 76 | select SA1111 |
diff --git a/arch/arm/mach-sa1100/Makefile b/arch/arm/mach-sa1100/Makefile index 8a5546e6d547..bb7b8198d0c4 100644 --- a/arch/arm/mach-sa1100/Makefile +++ b/arch/arm/mach-sa1100/Makefile | |||
@@ -25,6 +25,7 @@ led-$(CONFIG_SA1100_CERF) += leds-cerf.o | |||
25 | 25 | ||
26 | obj-$(CONFIG_SA1100_COLLIE) += collie.o | 26 | obj-$(CONFIG_SA1100_COLLIE) += collie.o |
27 | 27 | ||
28 | obj-$(CONFIG_SA1100_H3100) += h3600.o | ||
28 | obj-$(CONFIG_SA1100_H3600) += h3600.o | 29 | obj-$(CONFIG_SA1100_H3600) += h3600.o |
29 | 30 | ||
30 | obj-$(CONFIG_SA1100_HACKKIT) += hackkit.o | 31 | obj-$(CONFIG_SA1100_HACKKIT) += hackkit.o |
diff --git a/arch/arm/mach-sa1100/dma.c b/arch/arm/mach-sa1100/dma.c index 95f9c5a6d6d5..cb4521a6f42d 100644 --- a/arch/arm/mach-sa1100/dma.c +++ b/arch/arm/mach-sa1100/dma.c | |||
@@ -39,7 +39,7 @@ typedef struct { | |||
39 | 39 | ||
40 | static sa1100_dma_t dma_chan[SA1100_DMA_CHANNELS]; | 40 | static sa1100_dma_t dma_chan[SA1100_DMA_CHANNELS]; |
41 | 41 | ||
42 | static spinlock_t dma_list_lock; | 42 | static DEFINE_SPINLOCK(dma_list_lock); |
43 | 43 | ||
44 | 44 | ||
45 | static irqreturn_t dma_irq_handler(int irq, void *dev_id) | 45 | static irqreturn_t dma_irq_handler(int irq, void *dev_id) |
diff --git a/arch/arm/mach-sa1100/time.c b/arch/arm/mach-sa1100/time.c index 95d92e8e56a8..b9cbb56d6e9d 100644 --- a/arch/arm/mach-sa1100/time.c +++ b/arch/arm/mach-sa1100/time.c | |||
@@ -77,7 +77,7 @@ static struct clock_event_device ckevt_sa1100_osmr0 = { | |||
77 | .set_mode = sa1100_osmr0_set_mode, | 77 | .set_mode = sa1100_osmr0_set_mode, |
78 | }; | 78 | }; |
79 | 79 | ||
80 | static cycle_t sa1100_read_oscr(void) | 80 | static cycle_t sa1100_read_oscr(struct clocksource *s) |
81 | { | 81 | { |
82 | return OSCR; | 82 | return OSCR; |
83 | } | 83 | } |
diff --git a/arch/arm/mach-u300/Kconfig b/arch/arm/mach-u300/Kconfig index 337b9aabce49..801b21e7f677 100644 --- a/arch/arm/mach-u300/Kconfig +++ b/arch/arm/mach-u300/Kconfig | |||
@@ -81,6 +81,18 @@ config MACH_U300_SEMI_IS_SHARED | |||
81 | Memory Interface) from both from access and application | 81 | Memory Interface) from both from access and application |
82 | side. | 82 | side. |
83 | 83 | ||
84 | config MACH_U300_SPIDUMMY | ||
85 | bool "SSP/SPI dummy chip" | ||
86 | select SPI | ||
87 | select SPI_MASTER | ||
88 | select SPI_PL022 | ||
89 | help | ||
90 | This creates a small kernel module that creates a dummy | ||
91 | SPI device to be used for loopback tests. Regularly used | ||
92 | to test reference designs. If you're not testing SPI, | ||
93 | you don't need it. Selecting this will activate the | ||
94 | SPI framework and ARM PL022 support. | ||
95 | |||
84 | comment "All the settings below must match the bootloader's settings" | 96 | comment "All the settings below must match the bootloader's settings" |
85 | 97 | ||
86 | config MACH_U300_ACCESS_MEM_SIZE | 98 | config MACH_U300_ACCESS_MEM_SIZE |
diff --git a/arch/arm/mach-u300/Makefile b/arch/arm/mach-u300/Makefile index 24950e0df4b4..885b5c027c1e 100644 --- a/arch/arm/mach-u300/Makefile +++ b/arch/arm/mach-u300/Makefile | |||
@@ -9,3 +9,6 @@ obj- := | |||
9 | 9 | ||
10 | obj-$(CONFIG_ARCH_U300) += u300.o | 10 | obj-$(CONFIG_ARCH_U300) += u300.o |
11 | obj-$(CONFIG_MMC) += mmc.o | 11 | obj-$(CONFIG_MMC) += mmc.o |
12 | obj-$(CONFIG_SPI_PL022) += spi.o | ||
13 | obj-$(CONFIG_MACH_U300_SPIDUMMY) += dummyspichip.o | ||
14 | obj-$(CONFIG_I2C_STU300) += i2c.o | ||
diff --git a/arch/arm/mach-u300/core.c b/arch/arm/mach-u300/core.c index 2e9b8ccd8ec2..be60d6deee8b 100644 --- a/arch/arm/mach-u300/core.c +++ b/arch/arm/mach-u300/core.c | |||
@@ -32,6 +32,8 @@ | |||
32 | 32 | ||
33 | #include "clock.h" | 33 | #include "clock.h" |
34 | #include "mmc.h" | 34 | #include "mmc.h" |
35 | #include "spi.h" | ||
36 | #include "i2c.h" | ||
35 | 37 | ||
36 | /* | 38 | /* |
37 | * Static I/O mappings that are needed for booting the U300 platforms. The | 39 | * Static I/O mappings that are needed for booting the U300 platforms. The |
@@ -378,14 +380,14 @@ static struct platform_device wdog_device = { | |||
378 | }; | 380 | }; |
379 | 381 | ||
380 | static struct platform_device i2c0_device = { | 382 | static struct platform_device i2c0_device = { |
381 | .name = "stddci2c", | 383 | .name = "stu300", |
382 | .id = 0, | 384 | .id = 0, |
383 | .num_resources = ARRAY_SIZE(i2c0_resources), | 385 | .num_resources = ARRAY_SIZE(i2c0_resources), |
384 | .resource = i2c0_resources, | 386 | .resource = i2c0_resources, |
385 | }; | 387 | }; |
386 | 388 | ||
387 | static struct platform_device i2c1_device = { | 389 | static struct platform_device i2c1_device = { |
388 | .name = "stddci2c", | 390 | .name = "stu300", |
389 | .id = 1, | 391 | .id = 1, |
390 | .num_resources = ARRAY_SIZE(i2c1_resources), | 392 | .num_resources = ARRAY_SIZE(i2c1_resources), |
391 | .resource = i2c1_resources, | 393 | .resource = i2c1_resources, |
@@ -611,6 +613,8 @@ void __init u300_init_devices(void) | |||
611 | /* Wait for the PLL208 to lock if not locked in yet */ | 613 | /* Wait for the PLL208 to lock if not locked in yet */ |
612 | while (!(readw(U300_SYSCON_VBASE + U300_SYSCON_CSR) & | 614 | while (!(readw(U300_SYSCON_VBASE + U300_SYSCON_CSR) & |
613 | U300_SYSCON_CSR_PLL208_LOCK_IND)); | 615 | U300_SYSCON_CSR_PLL208_LOCK_IND)); |
616 | /* Initialize SPI device with some board specifics */ | ||
617 | u300_spi_init(&pl022_device); | ||
614 | 618 | ||
615 | /* Register the AMBA devices in the AMBA bus abstraction layer */ | 619 | /* Register the AMBA devices in the AMBA bus abstraction layer */ |
616 | u300_clock_primecells(); | 620 | u300_clock_primecells(); |
@@ -622,6 +626,12 @@ void __init u300_init_devices(void) | |||
622 | 626 | ||
623 | u300_assign_physmem(); | 627 | u300_assign_physmem(); |
624 | 628 | ||
629 | /* Register subdevices on the I2C buses */ | ||
630 | u300_i2c_register_board_devices(); | ||
631 | |||
632 | /* Register subdevices on the SPI bus */ | ||
633 | u300_spi_register_board_devices(); | ||
634 | |||
625 | /* Register the platform devices */ | 635 | /* Register the platform devices */ |
626 | platform_add_devices(platform_devs, ARRAY_SIZE(platform_devs)); | 636 | platform_add_devices(platform_devs, ARRAY_SIZE(platform_devs)); |
627 | 637 | ||
diff --git a/arch/arm/mach-u300/dummyspichip.c b/arch/arm/mach-u300/dummyspichip.c new file mode 100644 index 000000000000..962f9de454de --- /dev/null +++ b/arch/arm/mach-u300/dummyspichip.c | |||
@@ -0,0 +1,290 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-u300/dummyspichip.c | ||
3 | * | ||
4 | * Copyright (C) 2007-2009 ST-Ericsson AB | ||
5 | * License terms: GNU General Public License (GPL) version 2 | ||
6 | * This is a dummy loopback SPI "chip" used for testing SPI. | ||
7 | * Author: Linus Walleij <linus.walleij@stericsson.com> | ||
8 | */ | ||
9 | #include <linux/init.h> | ||
10 | #include <linux/module.h> | ||
11 | #include <linux/kernel.h> | ||
12 | #include <linux/device.h> | ||
13 | #include <linux/err.h> | ||
14 | #include <linux/sysfs.h> | ||
15 | #include <linux/mutex.h> | ||
16 | #include <linux/spi/spi.h> | ||
17 | #include <linux/dma-mapping.h> | ||
18 | /* | ||
19 | * WARNING! Do not include this pl022-specific controller header | ||
20 | * for any generic driver. It is only done in this dummy chip | ||
21 | * because we alter the chip configuration in order to test some | ||
22 | * different settings on the loopback device. Normal chip configs | ||
23 | * shall be STATIC and not altered by the driver! | ||
24 | */ | ||
25 | #include <linux/amba/pl022.h> | ||
26 | |||
27 | struct dummy { | ||
28 | struct device *dev; | ||
29 | struct mutex lock; | ||
30 | }; | ||
31 | |||
32 | #define DMA_TEST_SIZE 2048 | ||
33 | |||
34 | /* When we cat /sys/bus/spi/devices/spi0.0/looptest this will be triggered */ | ||
35 | static ssize_t dummy_looptest(struct device *dev, | ||
36 | struct device_attribute *attr, char *buf) | ||
37 | { | ||
38 | struct spi_device *spi = to_spi_device(dev); | ||
39 | struct dummy *p_dummy = dev_get_drvdata(&spi->dev); | ||
40 | |||
41 | /* | ||
42 | * WARNING! Do not dereference the chip-specific data in any normal | ||
43 | * driver for a chip. It is usually STATIC and shall not be read | ||
44 | * or written to. Your chip driver should NOT depend on fields in this | ||
45 | * struct, this is just used here to alter the behaviour of the chip | ||
46 | * in order to perform tests. | ||
47 | */ | ||
48 | struct pl022_config_chip *chip_info = spi->controller_data; | ||
49 | int status; | ||
50 | u8 txbuf[14] = {0xDE, 0xAD, 0xBE, 0xEF, 0x2B, 0xAD, | ||
51 | 0xCA, 0xFE, 0xBA, 0xBE, 0xB1, 0x05, | ||
52 | 0xF0, 0x0D}; | ||
53 | u8 rxbuf[14]; | ||
54 | u8 *bigtxbuf_virtual; | ||
55 | u8 *bigrxbuf_virtual; | ||
56 | |||
57 | if (mutex_lock_interruptible(&p_dummy->lock)) | ||
58 | return -ERESTARTSYS; | ||
59 | |||
60 | bigtxbuf_virtual = kmalloc(DMA_TEST_SIZE, GFP_KERNEL); | ||
61 | if (bigtxbuf_virtual == NULL) { | ||
62 | status = -ENOMEM; | ||
63 | goto out; | ||
64 | } | ||
65 | bigrxbuf_virtual = kmalloc(DMA_TEST_SIZE, GFP_KERNEL); | ||
66 | |||
67 | /* Fill TXBUF with some happy pattern */ | ||
68 | memset(bigtxbuf_virtual, 0xAA, DMA_TEST_SIZE); | ||
69 | |||
70 | /* | ||
71 | * Force chip to 8 bit mode | ||
72 | * WARNING: NEVER DO THIS IN REAL DRIVER CODE, THIS SHOULD BE STATIC! | ||
73 | */ | ||
74 | chip_info->data_size = SSP_DATA_BITS_8; | ||
75 | /* You should NOT DO THIS EITHER */ | ||
76 | spi->master->setup(spi); | ||
77 | |||
78 | /* Now run the tests for 8bit mode */ | ||
79 | pr_info("Simple test 1: write 0xAA byte, read back garbage byte " | ||
80 | "in 8bit mode\n"); | ||
81 | status = spi_w8r8(spi, 0xAA); | ||
82 | if (status < 0) | ||
83 | pr_warning("Siple test 1: FAILURE: spi_write_then_read " | ||
84 | "failed with status %d\n", status); | ||
85 | else | ||
86 | pr_info("Simple test 1: SUCCESS!\n"); | ||
87 | |||
88 | pr_info("Simple test 2: write 8 bytes, read back 8 bytes garbage " | ||
89 | "in 8bit mode (full FIFO)\n"); | ||
90 | status = spi_write_then_read(spi, &txbuf[0], 8, &rxbuf[0], 8); | ||
91 | if (status < 0) | ||
92 | pr_warning("Simple test 2: FAILURE: spi_write_then_read() " | ||
93 | "failed with status %d\n", status); | ||
94 | else | ||
95 | pr_info("Simple test 2: SUCCESS!\n"); | ||
96 | |||
97 | pr_info("Simple test 3: write 14 bytes, read back 14 bytes garbage " | ||
98 | "in 8bit mode (see if we overflow FIFO)\n"); | ||
99 | status = spi_write_then_read(spi, &txbuf[0], 14, &rxbuf[0], 14); | ||
100 | if (status < 0) | ||
101 | pr_warning("Simple test 3: FAILURE: failed with status %d " | ||
102 | "(probably FIFO overrun)\n", status); | ||
103 | else | ||
104 | pr_info("Simple test 3: SUCCESS!\n"); | ||
105 | |||
106 | pr_info("Simple test 4: write 8 bytes with spi_write(), read 8 " | ||
107 | "bytes garbage with spi_read() in 8bit mode\n"); | ||
108 | status = spi_write(spi, &txbuf[0], 8); | ||
109 | if (status < 0) | ||
110 | pr_warning("Simple test 4 step 1: FAILURE: spi_write() " | ||
111 | "failed with status %d\n", status); | ||
112 | else | ||
113 | pr_info("Simple test 4 step 1: SUCCESS!\n"); | ||
114 | status = spi_read(spi, &rxbuf[0], 8); | ||
115 | if (status < 0) | ||
116 | pr_warning("Simple test 4 step 2: FAILURE: spi_read() " | ||
117 | "failed with status %d\n", status); | ||
118 | else | ||
119 | pr_info("Simple test 4 step 2: SUCCESS!\n"); | ||
120 | |||
121 | pr_info("Simple test 5: write 14 bytes with spi_write(), read " | ||
122 | "14 bytes garbage with spi_read() in 8bit mode\n"); | ||
123 | status = spi_write(spi, &txbuf[0], 14); | ||
124 | if (status < 0) | ||
125 | pr_warning("Simple test 5 step 1: FAILURE: spi_write() " | ||
126 | "failed with status %d (probably FIFO overrun)\n", | ||
127 | status); | ||
128 | else | ||
129 | pr_info("Simple test 5 step 1: SUCCESS!\n"); | ||
130 | status = spi_read(spi, &rxbuf[0], 14); | ||
131 | if (status < 0) | ||
132 | pr_warning("Simple test 5 step 2: FAILURE: spi_read() " | ||
133 | "failed with status %d (probably FIFO overrun)\n", | ||
134 | status); | ||
135 | else | ||
136 | pr_info("Simple test 5: SUCCESS!\n"); | ||
137 | |||
138 | pr_info("Simple test 6: write %d bytes with spi_write(), " | ||
139 | "read %d bytes garbage with spi_read() in 8bit mode\n", | ||
140 | DMA_TEST_SIZE, DMA_TEST_SIZE); | ||
141 | status = spi_write(spi, &bigtxbuf_virtual[0], DMA_TEST_SIZE); | ||
142 | if (status < 0) | ||
143 | pr_warning("Simple test 6 step 1: FAILURE: spi_write() " | ||
144 | "failed with status %d (probably FIFO overrun)\n", | ||
145 | status); | ||
146 | else | ||
147 | pr_info("Simple test 6 step 1: SUCCESS!\n"); | ||
148 | status = spi_read(spi, &bigrxbuf_virtual[0], DMA_TEST_SIZE); | ||
149 | if (status < 0) | ||
150 | pr_warning("Simple test 6 step 2: FAILURE: spi_read() " | ||
151 | "failed with status %d (probably FIFO overrun)\n", | ||
152 | status); | ||
153 | else | ||
154 | pr_info("Simple test 6: SUCCESS!\n"); | ||
155 | |||
156 | |||
157 | /* | ||
158 | * Force chip to 16 bit mode | ||
159 | * WARNING: NEVER DO THIS IN REAL DRIVER CODE, THIS SHOULD BE STATIC! | ||
160 | */ | ||
161 | chip_info->data_size = SSP_DATA_BITS_16; | ||
162 | /* You should NOT DO THIS EITHER */ | ||
163 | spi->master->setup(spi); | ||
164 | |||
165 | pr_info("Simple test 7: write 0xAA byte, read back garbage byte " | ||
166 | "in 16bit bus mode\n"); | ||
167 | status = spi_w8r8(spi, 0xAA); | ||
168 | if (status == -EIO) | ||
169 | pr_info("Simple test 7: SUCCESS! (expected failure with " | ||
170 | "status EIO)\n"); | ||
171 | else if (status < 0) | ||
172 | pr_warning("Siple test 7: FAILURE: spi_write_then_read " | ||
173 | "failed with status %d\n", status); | ||
174 | else | ||
175 | pr_warning("Siple test 7: FAILURE: spi_write_then_read " | ||
176 | "succeeded but it was expected to fail!\n"); | ||
177 | |||
178 | pr_info("Simple test 8: write 8 bytes, read back 8 bytes garbage " | ||
179 | "in 16bit mode (full FIFO)\n"); | ||
180 | status = spi_write_then_read(spi, &txbuf[0], 8, &rxbuf[0], 8); | ||
181 | if (status < 0) | ||
182 | pr_warning("Simple test 8: FAILURE: spi_write_then_read() " | ||
183 | "failed with status %d\n", status); | ||
184 | else | ||
185 | pr_info("Simple test 8: SUCCESS!\n"); | ||
186 | |||
187 | pr_info("Simple test 9: write 14 bytes, read back 14 bytes garbage " | ||
188 | "in 16bit mode (see if we overflow FIFO)\n"); | ||
189 | status = spi_write_then_read(spi, &txbuf[0], 14, &rxbuf[0], 14); | ||
190 | if (status < 0) | ||
191 | pr_warning("Simple test 9: FAILURE: failed with status %d " | ||
192 | "(probably FIFO overrun)\n", status); | ||
193 | else | ||
194 | pr_info("Simple test 9: SUCCESS!\n"); | ||
195 | |||
196 | pr_info("Simple test 10: write %d bytes with spi_write(), " | ||
197 | "read %d bytes garbage with spi_read() in 16bit mode\n", | ||
198 | DMA_TEST_SIZE, DMA_TEST_SIZE); | ||
199 | status = spi_write(spi, &bigtxbuf_virtual[0], DMA_TEST_SIZE); | ||
200 | if (status < 0) | ||
201 | pr_warning("Simple test 10 step 1: FAILURE: spi_write() " | ||
202 | "failed with status %d (probably FIFO overrun)\n", | ||
203 | status); | ||
204 | else | ||
205 | pr_info("Simple test 10 step 1: SUCCESS!\n"); | ||
206 | |||
207 | status = spi_read(spi, &bigrxbuf_virtual[0], DMA_TEST_SIZE); | ||
208 | if (status < 0) | ||
209 | pr_warning("Simple test 10 step 2: FAILURE: spi_read() " | ||
210 | "failed with status %d (probably FIFO overrun)\n", | ||
211 | status); | ||
212 | else | ||
213 | pr_info("Simple test 10: SUCCESS!\n"); | ||
214 | |||
215 | status = sprintf(buf, "loop test complete\n"); | ||
216 | kfree(bigrxbuf_virtual); | ||
217 | kfree(bigtxbuf_virtual); | ||
218 | out: | ||
219 | mutex_unlock(&p_dummy->lock); | ||
220 | return status; | ||
221 | } | ||
222 | |||
223 | static DEVICE_ATTR(looptest, S_IRUGO, dummy_looptest, NULL); | ||
224 | |||
225 | static int __devinit pl022_dummy_probe(struct spi_device *spi) | ||
226 | { | ||
227 | struct dummy *p_dummy; | ||
228 | int status; | ||
229 | |||
230 | dev_info(&spi->dev, "probing dummy SPI device\n"); | ||
231 | |||
232 | p_dummy = kzalloc(sizeof *p_dummy, GFP_KERNEL); | ||
233 | if (!p_dummy) | ||
234 | return -ENOMEM; | ||
235 | |||
236 | dev_set_drvdata(&spi->dev, p_dummy); | ||
237 | mutex_init(&p_dummy->lock); | ||
238 | |||
239 | /* sysfs hook */ | ||
240 | status = device_create_file(&spi->dev, &dev_attr_looptest); | ||
241 | if (status) { | ||
242 | dev_dbg(&spi->dev, "device_create_file looptest failure.\n"); | ||
243 | goto out_dev_create_looptest_failed; | ||
244 | } | ||
245 | |||
246 | return 0; | ||
247 | |||
248 | out_dev_create_looptest_failed: | ||
249 | dev_set_drvdata(&spi->dev, NULL); | ||
250 | kfree(p_dummy); | ||
251 | return status; | ||
252 | } | ||
253 | |||
254 | static int __devexit pl022_dummy_remove(struct spi_device *spi) | ||
255 | { | ||
256 | struct dummy *p_dummy = dev_get_drvdata(&spi->dev); | ||
257 | |||
258 | dev_info(&spi->dev, "removing dummy SPI device\n"); | ||
259 | device_remove_file(&spi->dev, &dev_attr_looptest); | ||
260 | dev_set_drvdata(&spi->dev, NULL); | ||
261 | kfree(p_dummy); | ||
262 | |||
263 | return 0; | ||
264 | } | ||
265 | |||
266 | static struct spi_driver pl022_dummy_driver = { | ||
267 | .driver = { | ||
268 | .name = "spi-dummy", | ||
269 | .owner = THIS_MODULE, | ||
270 | }, | ||
271 | .probe = pl022_dummy_probe, | ||
272 | .remove = __devexit_p(pl022_dummy_remove), | ||
273 | }; | ||
274 | |||
275 | static int __init pl022_init_dummy(void) | ||
276 | { | ||
277 | return spi_register_driver(&pl022_dummy_driver); | ||
278 | } | ||
279 | |||
280 | static void __exit pl022_exit_dummy(void) | ||
281 | { | ||
282 | spi_unregister_driver(&pl022_dummy_driver); | ||
283 | } | ||
284 | |||
285 | module_init(pl022_init_dummy); | ||
286 | module_exit(pl022_exit_dummy); | ||
287 | |||
288 | MODULE_AUTHOR("Linus Walleij <linus.walleij@stericsson.com>"); | ||
289 | MODULE_DESCRIPTION("PL022 SSP/SPI DUMMY Linux driver"); | ||
290 | MODULE_LICENSE("GPL"); | ||
diff --git a/arch/arm/mach-u300/gpio.c b/arch/arm/mach-u300/gpio.c index 308cdb197a92..0b35826b7d1d 100644 --- a/arch/arm/mach-u300/gpio.c +++ b/arch/arm/mach-u300/gpio.c | |||
@@ -25,11 +25,6 @@ | |||
25 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
26 | #include <linux/gpio.h> | 26 | #include <linux/gpio.h> |
27 | 27 | ||
28 | /* Need access to SYSCON registers for PADmuxing */ | ||
29 | #include <mach/syscon.h> | ||
30 | |||
31 | #include "padmux.h" | ||
32 | |||
33 | /* Reference to GPIO block clock */ | 28 | /* Reference to GPIO block clock */ |
34 | static struct clk *clk; | 29 | static struct clk *clk; |
35 | 30 | ||
@@ -286,6 +281,16 @@ int gpio_unregister_callback(unsigned gpio) | |||
286 | } | 281 | } |
287 | EXPORT_SYMBOL(gpio_unregister_callback); | 282 | EXPORT_SYMBOL(gpio_unregister_callback); |
288 | 283 | ||
284 | /* Non-zero means valid */ | ||
285 | int gpio_is_valid(int number) | ||
286 | { | ||
287 | if (number >= 0 && | ||
288 | number < (U300_GPIO_NUM_PORTS * U300_GPIO_PINS_PER_PORT)) | ||
289 | return 1; | ||
290 | return 0; | ||
291 | } | ||
292 | EXPORT_SYMBOL(gpio_is_valid); | ||
293 | |||
289 | int gpio_request(unsigned gpio, const char *label) | 294 | int gpio_request(unsigned gpio, const char *label) |
290 | { | 295 | { |
291 | if (gpio_pin[gpio].users) | 296 | if (gpio_pin[gpio].users) |
@@ -606,14 +611,6 @@ static int __init gpio_probe(struct platform_device *pdev) | |||
606 | writel(U300_GPIO_CR_BLOCK_CLKRQ_ENABLE, virtbase + U300_GPIO_CR); | 611 | writel(U300_GPIO_CR_BLOCK_CLKRQ_ENABLE, virtbase + U300_GPIO_CR); |
607 | #endif | 612 | #endif |
608 | 613 | ||
609 | /* Set up some padmuxing here */ | ||
610 | #ifdef CONFIG_MMC | ||
611 | pmx_set_mission_mode_mmc(); | ||
612 | #endif | ||
613 | #ifdef CONFIG_SPI_PL022 | ||
614 | pmx_set_mission_mode_spi(); | ||
615 | #endif | ||
616 | |||
617 | gpio_set_initial_values(); | 614 | gpio_set_initial_values(); |
618 | 615 | ||
619 | for (num_irqs = 0 ; num_irqs < U300_GPIO_NUM_PORTS; num_irqs++) { | 616 | for (num_irqs = 0 ; num_irqs < U300_GPIO_NUM_PORTS; num_irqs++) { |
diff --git a/arch/arm/mach-u300/i2c.c b/arch/arm/mach-u300/i2c.c new file mode 100644 index 000000000000..10be1f888b27 --- /dev/null +++ b/arch/arm/mach-u300/i2c.c | |||
@@ -0,0 +1,43 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-u300/i2c.c | ||
3 | * | ||
4 | * Copyright (C) 2009 ST-Ericsson AB | ||
5 | * License terms: GNU General Public License (GPL) version 2 | ||
6 | * | ||
7 | * Register board i2c devices | ||
8 | * Author: Linus Walleij <linus.walleij@stericsson.com> | ||
9 | */ | ||
10 | #include <linux/kernel.h> | ||
11 | #include <linux/i2c.h> | ||
12 | #include <mach/irqs.h> | ||
13 | |||
14 | static struct i2c_board_info __initdata bus0_i2c_board_info[] = { | ||
15 | { | ||
16 | .type = "ab3100", | ||
17 | .addr = 0x48, | ||
18 | .irq = IRQ_U300_IRQ0_EXT, | ||
19 | }, | ||
20 | }; | ||
21 | |||
22 | static struct i2c_board_info __initdata bus1_i2c_board_info[] = { | ||
23 | #ifdef CONFIG_MACH_U300_BS335 | ||
24 | { | ||
25 | .type = "fwcam", | ||
26 | .addr = 0x10, | ||
27 | }, | ||
28 | { | ||
29 | .type = "fwcam", | ||
30 | .addr = 0x5d, | ||
31 | }, | ||
32 | #else | ||
33 | { }, | ||
34 | #endif | ||
35 | }; | ||
36 | |||
37 | void __init u300_i2c_register_board_devices(void) | ||
38 | { | ||
39 | i2c_register_board_info(0, bus0_i2c_board_info, | ||
40 | ARRAY_SIZE(bus0_i2c_board_info)); | ||
41 | i2c_register_board_info(1, bus1_i2c_board_info, | ||
42 | ARRAY_SIZE(bus1_i2c_board_info)); | ||
43 | } | ||
diff --git a/arch/arm/mach-u300/i2c.h b/arch/arm/mach-u300/i2c.h new file mode 100644 index 000000000000..485c02e5c06d --- /dev/null +++ b/arch/arm/mach-u300/i2c.h | |||
@@ -0,0 +1,23 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-u300/i2c.h | ||
3 | * | ||
4 | * Copyright (C) 2009 ST-Ericsson AB | ||
5 | * License terms: GNU General Public License (GPL) version 2 | ||
6 | * | ||
7 | * Register board i2c devices | ||
8 | * Author: Linus Walleij <linus.walleij@stericsson.com> | ||
9 | */ | ||
10 | |||
11 | #ifndef MACH_U300_I2C_H | ||
12 | #define MACH_U300_I2C_H | ||
13 | |||
14 | #ifdef CONFIG_I2C_STU300 | ||
15 | void __init u300_i2c_register_board_devices(void); | ||
16 | #else | ||
17 | /* Compile out this stuff if no I2C adapter is available */ | ||
18 | static inline void __init u300_i2c_register_board_devices(void) | ||
19 | { | ||
20 | } | ||
21 | #endif | ||
22 | |||
23 | #endif | ||
diff --git a/arch/arm/mach-u300/include/mach/gpio.h b/arch/arm/mach-u300/include/mach/gpio.h index c8174128d7eb..7b1fc984abb6 100644 --- a/arch/arm/mach-u300/include/mach/gpio.h +++ b/arch/arm/mach-u300/include/mach/gpio.h | |||
@@ -258,6 +258,7 @@ | |||
258 | #define PIN_TO_PORT(val) (val >> 3) | 258 | #define PIN_TO_PORT(val) (val >> 3) |
259 | 259 | ||
260 | /* These can be found in arch/arm/mach-u300/gpio.c */ | 260 | /* These can be found in arch/arm/mach-u300/gpio.c */ |
261 | extern int gpio_is_valid(int number); | ||
261 | extern int gpio_request(unsigned gpio, const char *label); | 262 | extern int gpio_request(unsigned gpio, const char *label); |
262 | extern void gpio_free(unsigned gpio); | 263 | extern void gpio_free(unsigned gpio); |
263 | extern int gpio_direction_input(unsigned gpio); | 264 | extern int gpio_direction_input(unsigned gpio); |
diff --git a/arch/arm/mach-u300/include/mach/memory.h b/arch/arm/mach-u300/include/mach/memory.h index bf134bcc129d..ab000df7fc03 100644 --- a/arch/arm/mach-u300/include/mach/memory.h +++ b/arch/arm/mach-u300/include/mach/memory.h | |||
@@ -35,6 +35,14 @@ | |||
35 | #endif | 35 | #endif |
36 | 36 | ||
37 | /* | 37 | /* |
38 | * TCM memory whereabouts | ||
39 | */ | ||
40 | #define ITCM_OFFSET 0xffff2000 | ||
41 | #define ITCM_END 0xffff3fff | ||
42 | #define DTCM_OFFSET 0xffff4000 | ||
43 | #define DTCM_END 0xffff5fff | ||
44 | |||
45 | /* | ||
38 | * We enable a real big DMA buffer if need be. | 46 | * We enable a real big DMA buffer if need be. |
39 | */ | 47 | */ |
40 | #define CONSISTENT_DMA_SIZE SZ_4M | 48 | #define CONSISTENT_DMA_SIZE SZ_4M |
diff --git a/arch/arm/mach-u300/include/mach/syscon.h b/arch/arm/mach-u300/include/mach/syscon.h index 1c90d1b1ccb6..7444f5c7da97 100644 --- a/arch/arm/mach-u300/include/mach/syscon.h +++ b/arch/arm/mach-u300/include/mach/syscon.h | |||
@@ -240,8 +240,13 @@ | |||
240 | #define U300_SYSCON_PMC1LR_CDI_MASK (0xC000) | 240 | #define U300_SYSCON_PMC1LR_CDI_MASK (0xC000) |
241 | #define U300_SYSCON_PMC1LR_CDI_CDI (0x0000) | 241 | #define U300_SYSCON_PMC1LR_CDI_CDI (0x0000) |
242 | #define U300_SYSCON_PMC1LR_CDI_EMIF (0x4000) | 242 | #define U300_SYSCON_PMC1LR_CDI_EMIF (0x4000) |
243 | #ifdef CONFIG_MACH_U300_BS335 | ||
244 | #define U300_SYSCON_PMC1LR_CDI_CDI2 (0x8000) | ||
245 | #define U300_SYSCON_PMC1LR_CDI_WCDMA_APP_GPIO (0xC000) | ||
246 | #elif CONFIG_MACH_U300_BS365 | ||
243 | #define U300_SYSCON_PMC1LR_CDI_GPIO (0x8000) | 247 | #define U300_SYSCON_PMC1LR_CDI_GPIO (0x8000) |
244 | #define U300_SYSCON_PMC1LR_CDI_WCDMA (0xC000) | 248 | #define U300_SYSCON_PMC1LR_CDI_WCDMA (0xC000) |
249 | #endif | ||
245 | #define U300_SYSCON_PMC1LR_PDI_MASK (0x3000) | 250 | #define U300_SYSCON_PMC1LR_PDI_MASK (0x3000) |
246 | #define U300_SYSCON_PMC1LR_PDI_PDI (0x0000) | 251 | #define U300_SYSCON_PMC1LR_PDI_PDI (0x0000) |
247 | #define U300_SYSCON_PMC1LR_PDI_EGG (0x1000) | 252 | #define U300_SYSCON_PMC1LR_PDI_EGG (0x1000) |
@@ -345,19 +350,69 @@ | |||
345 | #define U300_SYSCON_MMCR_MASK (0x0003) | 350 | #define U300_SYSCON_MMCR_MASK (0x0003) |
346 | #define U300_SYSCON_MMCR_MMC_FB_CLK_SEL_ENABLE (0x0002) | 351 | #define U300_SYSCON_MMCR_MMC_FB_CLK_SEL_ENABLE (0x0002) |
347 | #define U300_SYSCON_MMCR_MSPRO_FREQSEL_ENABLE (0x0001) | 352 | #define U300_SYSCON_MMCR_MSPRO_FREQSEL_ENABLE (0x0001) |
348 | 353 | /* Pull up/down control (R/W) */ | |
354 | #define U300_SYSCON_PUCR (0x104) | ||
355 | #define U300_SYSCON_PUCR_EMIF_1_WAIT_N_PU_ENABLE (0x0200) | ||
356 | #define U300_SYSCON_PUCR_EMIF_1_NFIF_READY_PU_ENABLE (0x0100) | ||
357 | #define U300_SYSCON_PUCR_EMIF_1_16BIT_PU_ENABLE (0x0080) | ||
358 | #define U300_SYSCON_PUCR_EMIF_1_8BIT_PU_ENABLE (0x0040) | ||
359 | #define U300_SYSCON_PUCR_KEY_IN_PU_EN_MASK (0x003F) | ||
360 | /* Padmux 2 control */ | ||
361 | #define U300_SYSCON_PMC2R (0x100) | ||
362 | #define U300_SYSCON_PMC2R_APP_MISC_0_MASK (0x00C0) | ||
363 | #define U300_SYSCON_PMC2R_APP_MISC_0_APP_GPIO (0x0000) | ||
364 | #define U300_SYSCON_PMC2R_APP_MISC_0_EMIF_SDRAM (0x0040) | ||
365 | #define U300_SYSCON_PMC2R_APP_MISC_0_MMC (0x0080) | ||
366 | #define U300_SYSCON_PMC2R_APP_MISC_0_CDI2 (0x00C0) | ||
367 | #define U300_SYSCON_PMC2R_APP_MISC_1_MASK (0x0300) | ||
368 | #define U300_SYSCON_PMC2R_APP_MISC_1_APP_GPIO (0x0000) | ||
369 | #define U300_SYSCON_PMC2R_APP_MISC_1_EMIF_SDRAM (0x0100) | ||
370 | #define U300_SYSCON_PMC2R_APP_MISC_1_MMC (0x0200) | ||
371 | #define U300_SYSCON_PMC2R_APP_MISC_1_CDI2 (0x0300) | ||
372 | #define U300_SYSCON_PMC2R_APP_MISC_2_MASK (0x0C00) | ||
373 | #define U300_SYSCON_PMC2R_APP_MISC_2_APP_GPIO (0x0000) | ||
374 | #define U300_SYSCON_PMC2R_APP_MISC_2_EMIF_SDRAM (0x0400) | ||
375 | #define U300_SYSCON_PMC2R_APP_MISC_2_MMC (0x0800) | ||
376 | #define U300_SYSCON_PMC2R_APP_MISC_2_CDI2 (0x0C00) | ||
377 | #define U300_SYSCON_PMC2R_APP_MISC_3_MASK (0x3000) | ||
378 | #define U300_SYSCON_PMC2R_APP_MISC_3_APP_GPIO (0x0000) | ||
379 | #define U300_SYSCON_PMC2R_APP_MISC_3_EMIF_SDRAM (0x1000) | ||
380 | #define U300_SYSCON_PMC2R_APP_MISC_3_MMC (0x2000) | ||
381 | #define U300_SYSCON_PMC2R_APP_MISC_3_CDI2 (0x3000) | ||
382 | #define U300_SYSCON_PMC2R_APP_MISC_4_MASK (0xC000) | ||
383 | #define U300_SYSCON_PMC2R_APP_MISC_4_APP_GPIO (0x0000) | ||
384 | #define U300_SYSCON_PMC2R_APP_MISC_4_EMIF_SDRAM (0x4000) | ||
385 | #define U300_SYSCON_PMC2R_APP_MISC_4_MMC (0x8000) | ||
386 | #define U300_SYSCON_PMC2R_APP_MISC_4_ACC_GPIO (0xC000) | ||
349 | /* TODO: More SYSCON registers missing */ | 387 | /* TODO: More SYSCON registers missing */ |
350 | #define U300_SYSCON_PMC3R (0x10c) | 388 | #define U300_SYSCON_PMC3R (0x10c) |
351 | #define U300_SYSCON_PMC3R_APP_MISC_11_MASK (0xc000) | 389 | #define U300_SYSCON_PMC3R_APP_MISC_11_MASK (0xc000) |
352 | #define U300_SYSCON_PMC3R_APP_MISC_11_SPI (0x4000) | 390 | #define U300_SYSCON_PMC3R_APP_MISC_11_SPI (0x4000) |
353 | #define U300_SYSCON_PMC3R_APP_MISC_10_MASK (0x3000) | 391 | #define U300_SYSCON_PMC3R_APP_MISC_10_MASK (0x3000) |
354 | #define U300_SYSCON_PMC3R_APP_MISC_10_SPI (0x1000) | 392 | #define U300_SYSCON_PMC3R_APP_MISC_10_SPI (0x1000) |
355 | /* TODO: Missing other configs, I just added the SPI stuff */ | 393 | /* TODO: Missing other configs */ |
356 | 394 | #define U300_SYSCON_PMC4R (0x168) | |
395 | #define U300_SYSCON_PMC4R_APP_MISC_12_MASK (0x0003) | ||
396 | #define U300_SYSCON_PMC4R_APP_MISC_12_APP_GPIO (0x0000) | ||
397 | #define U300_SYSCON_PMC4R_APP_MISC_13_MASK (0x000C) | ||
398 | #define U300_SYSCON_PMC4R_APP_MISC_13_CDI (0x0000) | ||
399 | #define U300_SYSCON_PMC4R_APP_MISC_13_SMIA (0x0004) | ||
400 | #define U300_SYSCON_PMC4R_APP_MISC_13_SMIA2 (0x0008) | ||
401 | #define U300_SYSCON_PMC4R_APP_MISC_13_APP_GPIO (0x000C) | ||
402 | #define U300_SYSCON_PMC4R_APP_MISC_14_MASK (0x0030) | ||
403 | #define U300_SYSCON_PMC4R_APP_MISC_14_CDI (0x0000) | ||
404 | #define U300_SYSCON_PMC4R_APP_MISC_14_SMIA (0x0010) | ||
405 | #define U300_SYSCON_PMC4R_APP_MISC_14_CDI2 (0x0020) | ||
406 | #define U300_SYSCON_PMC4R_APP_MISC_14_APP_GPIO (0x0030) | ||
407 | #define U300_SYSCON_PMC4R_APP_MISC_16_MASK (0x0300) | ||
408 | #define U300_SYSCON_PMC4R_APP_MISC_16_APP_GPIO_13 (0x0000) | ||
409 | #define U300_SYSCON_PMC4R_APP_MISC_16_APP_UART1_CTS (0x0100) | ||
410 | #define U300_SYSCON_PMC4R_APP_MISC_16_EMIF_1_STATIC_CS5_N (0x0200) | ||
357 | /* SYS_0_CLK_CONTROL first clock control 16bit (R/W) */ | 411 | /* SYS_0_CLK_CONTROL first clock control 16bit (R/W) */ |
358 | #define U300_SYSCON_S0CCR (0x120) | 412 | #define U300_SYSCON_S0CCR (0x120) |
359 | #define U300_SYSCON_S0CCR_FIELD_MASK (0x43FF) | 413 | #define U300_SYSCON_S0CCR_FIELD_MASK (0x43FF) |
360 | #define U300_SYSCON_S0CCR_CLOCK_REQ (0x4000) | 414 | #define U300_SYSCON_S0CCR_CLOCK_REQ (0x4000) |
415 | #define U300_SYSCON_S0CCR_CLOCK_REQ_MONITOR (0x2000) | ||
361 | #define U300_SYSCON_S0CCR_CLOCK_INV (0x0200) | 416 | #define U300_SYSCON_S0CCR_CLOCK_INV (0x0200) |
362 | #define U300_SYSCON_S0CCR_CLOCK_FREQ_MASK (0x01E0) | 417 | #define U300_SYSCON_S0CCR_CLOCK_FREQ_MASK (0x01E0) |
363 | #define U300_SYSCON_S0CCR_CLOCK_SELECT_MASK (0x001E) | 418 | #define U300_SYSCON_S0CCR_CLOCK_SELECT_MASK (0x001E) |
@@ -375,6 +430,7 @@ | |||
375 | #define U300_SYSCON_S1CCR (0x124) | 430 | #define U300_SYSCON_S1CCR (0x124) |
376 | #define U300_SYSCON_S1CCR_FIELD_MASK (0x43FF) | 431 | #define U300_SYSCON_S1CCR_FIELD_MASK (0x43FF) |
377 | #define U300_SYSCON_S1CCR_CLOCK_REQ (0x4000) | 432 | #define U300_SYSCON_S1CCR_CLOCK_REQ (0x4000) |
433 | #define U300_SYSCON_S1CCR_CLOCK_REQ_MONITOR (0x2000) | ||
378 | #define U300_SYSCON_S1CCR_CLOCK_INV (0x0200) | 434 | #define U300_SYSCON_S1CCR_CLOCK_INV (0x0200) |
379 | #define U300_SYSCON_S1CCR_CLOCK_FREQ_MASK (0x01E0) | 435 | #define U300_SYSCON_S1CCR_CLOCK_FREQ_MASK (0x01E0) |
380 | #define U300_SYSCON_S1CCR_CLOCK_SELECT_MASK (0x001E) | 436 | #define U300_SYSCON_S1CCR_CLOCK_SELECT_MASK (0x001E) |
@@ -393,6 +449,7 @@ | |||
393 | #define U300_SYSCON_S2CCR_FIELD_MASK (0xC3FF) | 449 | #define U300_SYSCON_S2CCR_FIELD_MASK (0xC3FF) |
394 | #define U300_SYSCON_S2CCR_CLK_STEAL (0x8000) | 450 | #define U300_SYSCON_S2CCR_CLK_STEAL (0x8000) |
395 | #define U300_SYSCON_S2CCR_CLOCK_REQ (0x4000) | 451 | #define U300_SYSCON_S2CCR_CLOCK_REQ (0x4000) |
452 | #define U300_SYSCON_S2CCR_CLOCK_REQ_MONITOR (0x2000) | ||
396 | #define U300_SYSCON_S2CCR_CLOCK_INV (0x0200) | 453 | #define U300_SYSCON_S2CCR_CLOCK_INV (0x0200) |
397 | #define U300_SYSCON_S2CCR_CLOCK_FREQ_MASK (0x01E0) | 454 | #define U300_SYSCON_S2CCR_CLOCK_FREQ_MASK (0x01E0) |
398 | #define U300_SYSCON_S2CCR_CLOCK_SELECT_MASK (0x001E) | 455 | #define U300_SYSCON_S2CCR_CLOCK_SELECT_MASK (0x001E) |
@@ -425,6 +482,44 @@ | |||
425 | #define U300_SYSCON_MCR_PMGEN_CR_0_EMIF_0_SDRAM (0x000C) | 482 | #define U300_SYSCON_MCR_PMGEN_CR_0_EMIF_0_SDRAM (0x000C) |
426 | #define U300_SYSCON_MCR_PM1G_MODE_ENABLE (0x0002) | 483 | #define U300_SYSCON_MCR_PM1G_MODE_ENABLE (0x0002) |
427 | #define U300_SYSCON_MCR_PMTG5_MODE_ENABLE (0x0001) | 484 | #define U300_SYSCON_MCR_PMTG5_MODE_ENABLE (0x0001) |
485 | /* SC_PLL_IRQ_CONTROL 16bit (R/W) */ | ||
486 | #define U300_SYSCON_PICR (0x0130) | ||
487 | #define U300_SYSCON_PICR_MASK (0x00FF) | ||
488 | #define U300_SYSCON_PICR_FORCE_PLL208_LOCK_LOW_ENABLE (0x0080) | ||
489 | #define U300_SYSCON_PICR_FORCE_PLL208_LOCK_HIGH_ENABLE (0x0040) | ||
490 | #define U300_SYSCON_PICR_FORCE_PLL13_LOCK_LOW_ENABLE (0x0020) | ||
491 | #define U300_SYSCON_PICR_FORCE_PLL13_LOCK_HIGH_ENABLE (0x0010) | ||
492 | #define U300_SYSCON_PICR_IRQMASK_PLL13_UNLOCK_ENABLE (0x0008) | ||
493 | #define U300_SYSCON_PICR_IRQMASK_PLL13_LOCK_ENABLE (0x0004) | ||
494 | #define U300_SYSCON_PICR_IRQMASK_PLL208_UNLOCK_ENABLE (0x0002) | ||
495 | #define U300_SYSCON_PICR_IRQMASK_PLL208_LOCK_ENABLE (0x0001) | ||
496 | /* SC_PLL_IRQ_STATUS 16 bit (R/-) */ | ||
497 | #define U300_SYSCON_PISR (0x0134) | ||
498 | #define U300_SYSCON_PISR_MASK (0x000F) | ||
499 | #define U300_SYSCON_PISR_PLL13_UNLOCK_IND (0x0008) | ||
500 | #define U300_SYSCON_PISR_PLL13_LOCK_IND (0x0004) | ||
501 | #define U300_SYSCON_PISR_PLL208_UNLOCK_IND (0x0002) | ||
502 | #define U300_SYSCON_PISR_PLL208_LOCK_IND (0x0001) | ||
503 | /* SC_PLL_IRQ_CLEAR 16 bit (-/W) */ | ||
504 | #define U300_SYSCON_PICLR (0x0138) | ||
505 | #define U300_SYSCON_PICLR_MASK (0x000F) | ||
506 | #define U300_SYSCON_PICLR_RWMASK (0x0000) | ||
507 | #define U300_SYSCON_PICLR_PLL13_UNLOCK_SC (0x0008) | ||
508 | #define U300_SYSCON_PICLR_PLL13_LOCK_SC (0x0004) | ||
509 | #define U300_SYSCON_PICLR_PLL208_UNLOCK_SC (0x0002) | ||
510 | #define U300_SYSCON_PICLR_PLL208_LOCK_SC (0x0001) | ||
511 | /* CAMIF_CONTROL 16 bit (-/W) */ | ||
512 | #define U300_SYSCON_CICR (0x013C) | ||
513 | #define U300_SYSCON_CICR_MASK (0x0FFF) | ||
514 | #define U300_SYSCON_CICR_APP_SUBLVDS_TESTMODE_MASK (0x0F00) | ||
515 | #define U300_SYSCON_CICR_APP_SUBLVDS_TESTMODE_PORT1 (0x0C00) | ||
516 | #define U300_SYSCON_CICR_APP_SUBLVDS_TESTMODE_PORT0 (0x0300) | ||
517 | #define U300_SYSCON_CICR_APP_SUBLVDS_RESCON_MASK (0x00F0) | ||
518 | #define U300_SYSCON_CICR_APP_SUBLVDS_RESCON_PORT1 (0x00C0) | ||
519 | #define U300_SYSCON_CICR_APP_SUBLVDS_RESCON_PORT0 (0x0030) | ||
520 | #define U300_SYSCON_CICR_APP_SUBLVDS_PWR_DWN_N_MASK (0x000F) | ||
521 | #define U300_SYSCON_CICR_APP_SUBLVDS_PWR_DWN_N_PORT1 (0x000C) | ||
522 | #define U300_SYSCON_CICR_APP_SUBLVDS_PWR_DWN_N_PORT0 (0x0003) | ||
428 | /* Clock activity observability register 0 */ | 523 | /* Clock activity observability register 0 */ |
429 | #define U300_SYSCON_C0OAR (0x140) | 524 | #define U300_SYSCON_C0OAR (0x140) |
430 | #define U300_SYSCON_C0OAR_MASK (0xFFFF) | 525 | #define U300_SYSCON_C0OAR_MASK (0xFFFF) |
@@ -513,7 +608,7 @@ | |||
513 | /** | 608 | /** |
514 | * CPU medium frequency in MHz | 609 | * CPU medium frequency in MHz |
515 | */ | 610 | */ |
516 | #define SYSCON_CPU_CLOCK_MEDIUM 104 | 611 | #define SYSCON_CPU_CLOCK_MEDIUM 52 |
517 | /** | 612 | /** |
518 | * CPU low frequency in MHz | 613 | * CPU low frequency in MHz |
519 | */ | 614 | */ |
@@ -527,7 +622,7 @@ | |||
527 | /** | 622 | /** |
528 | * EMIF medium frequency in MHz | 623 | * EMIF medium frequency in MHz |
529 | */ | 624 | */ |
530 | #define SYSCON_EMIF_CLOCK_MEDIUM 104 | 625 | #define SYSCON_EMIF_CLOCK_MEDIUM 52 |
531 | /** | 626 | /** |
532 | * EMIF low frequency in MHz | 627 | * EMIF low frequency in MHz |
533 | */ | 628 | */ |
@@ -541,7 +636,7 @@ | |||
541 | /** | 636 | /** |
542 | * AHB medium frequency in MHz | 637 | * AHB medium frequency in MHz |
543 | */ | 638 | */ |
544 | #define SYSCON_AHB_CLOCK_MEDIUM 52 | 639 | #define SYSCON_AHB_CLOCK_MEDIUM 26 |
545 | /** | 640 | /** |
546 | * AHB low frequency in MHz | 641 | * AHB low frequency in MHz |
547 | */ | 642 | */ |
@@ -553,6 +648,15 @@ enum syscon_busmaster { | |||
553 | SYSCON_BM_VIDEO_ENC | 648 | SYSCON_BM_VIDEO_ENC |
554 | }; | 649 | }; |
555 | 650 | ||
651 | /* Selectr a resistor or a set of resistors */ | ||
652 | enum syscon_pull_up_down { | ||
653 | SYSCON_PU_KEY_IN_EN, | ||
654 | SYSCON_PU_EMIF_1_8_BIT_EN, | ||
655 | SYSCON_PU_EMIF_1_16_BIT_EN, | ||
656 | SYSCON_PU_EMIF_1_NFIF_READY_EN, | ||
657 | SYSCON_PU_EMIF_1_NFIF_WAIT_N_EN, | ||
658 | }; | ||
659 | |||
556 | /* | 660 | /* |
557 | * Note that this array must match the order of the array "clk_reg" | 661 | * Note that this array must match the order of the array "clk_reg" |
558 | * in syscon.c | 662 | * in syscon.c |
@@ -575,6 +679,7 @@ enum syscon_clk { | |||
575 | SYSCON_CLKCONTROL_SPI, | 679 | SYSCON_CLKCONTROL_SPI, |
576 | SYSCON_CLKCONTROL_I2S0_CORE, | 680 | SYSCON_CLKCONTROL_I2S0_CORE, |
577 | SYSCON_CLKCONTROL_I2S1_CORE, | 681 | SYSCON_CLKCONTROL_I2S1_CORE, |
682 | SYSCON_CLKCONTROL_UART1, | ||
578 | SYSCON_CLKCONTROL_AAIF, | 683 | SYSCON_CLKCONTROL_AAIF, |
579 | SYSCON_CLKCONTROL_AHB, | 684 | SYSCON_CLKCONTROL_AHB, |
580 | SYSCON_CLKCONTROL_APEX, | 685 | SYSCON_CLKCONTROL_APEX, |
@@ -604,7 +709,8 @@ enum syscon_sysclk_mode { | |||
604 | 709 | ||
605 | enum syscon_sysclk_req { | 710 | enum syscon_sysclk_req { |
606 | SYSCON_SYSCLKREQ_DISABLED, | 711 | SYSCON_SYSCLKREQ_DISABLED, |
607 | SYSCON_SYSCLKREQ_ACTIVE_LOW | 712 | SYSCON_SYSCLKREQ_ACTIVE_LOW, |
713 | SYSCON_SYSCLKREQ_MONITOR | ||
608 | }; | 714 | }; |
609 | 715 | ||
610 | enum syscon_clk_mode { | 716 | enum syscon_clk_mode { |
diff --git a/arch/arm/mach-u300/mmc.c b/arch/arm/mach-u300/mmc.c index 585cc013639d..7b6b016786bb 100644 --- a/arch/arm/mach-u300/mmc.c +++ b/arch/arm/mach-u300/mmc.c | |||
@@ -19,15 +19,16 @@ | |||
19 | #include <linux/regulator/consumer.h> | 19 | #include <linux/regulator/consumer.h> |
20 | #include <linux/regulator/machine.h> | 20 | #include <linux/regulator/machine.h> |
21 | #include <linux/gpio.h> | 21 | #include <linux/gpio.h> |
22 | #include <linux/amba/mmci.h> | ||
22 | 23 | ||
23 | #include <asm/mach/mmc.h> | ||
24 | #include "mmc.h" | 24 | #include "mmc.h" |
25 | #include "padmux.h" | ||
25 | 26 | ||
26 | struct mmci_card_event { | 27 | struct mmci_card_event { |
27 | struct input_dev *mmc_input; | 28 | struct input_dev *mmc_input; |
28 | int mmc_inserted; | 29 | int mmc_inserted; |
29 | struct work_struct workq; | 30 | struct work_struct workq; |
30 | struct mmc_platform_data mmc0_plat_data; | 31 | struct mmci_platform_data mmc0_plat_data; |
31 | }; | 32 | }; |
32 | 33 | ||
33 | static unsigned int mmc_status(struct device *dev) | 34 | static unsigned int mmc_status(struct device *dev) |
@@ -146,6 +147,7 @@ int __devinit mmc_init(struct amba_device *adev) | |||
146 | { | 147 | { |
147 | struct mmci_card_event *mmci_card; | 148 | struct mmci_card_event *mmci_card; |
148 | struct device *mmcsd_device = &adev->dev; | 149 | struct device *mmcsd_device = &adev->dev; |
150 | struct pmx *pmx; | ||
149 | int ret = 0; | 151 | int ret = 0; |
150 | 152 | ||
151 | mmci_card = kzalloc(sizeof(struct mmci_card_event), GFP_KERNEL); | 153 | mmci_card = kzalloc(sizeof(struct mmci_card_event), GFP_KERNEL); |
@@ -158,6 +160,8 @@ int __devinit mmc_init(struct amba_device *adev) | |||
158 | mmci_card->mmc0_plat_data.status = mmc_status; | 160 | mmci_card->mmc0_plat_data.status = mmc_status; |
159 | mmci_card->mmc0_plat_data.gpio_wp = -1; | 161 | mmci_card->mmc0_plat_data.gpio_wp = -1; |
160 | mmci_card->mmc0_plat_data.gpio_cd = -1; | 162 | mmci_card->mmc0_plat_data.gpio_cd = -1; |
163 | mmci_card->mmc0_plat_data.capabilities = MMC_CAP_MMC_HIGHSPEED | | ||
164 | MMC_CAP_SD_HIGHSPEED | MMC_CAP_4_BIT_DATA; | ||
161 | 165 | ||
162 | mmcsd_device->platform_data = (void *) &mmci_card->mmc0_plat_data; | 166 | mmcsd_device->platform_data = (void *) &mmci_card->mmc0_plat_data; |
163 | 167 | ||
@@ -207,6 +211,20 @@ int __devinit mmc_init(struct amba_device *adev) | |||
207 | 211 | ||
208 | input_set_drvdata(mmci_card->mmc_input, mmci_card); | 212 | input_set_drvdata(mmci_card->mmc_input, mmci_card); |
209 | 213 | ||
214 | /* | ||
215 | * Setup padmuxing for MMC. Since this must always be | ||
216 | * compiled into the kernel, pmx is never released. | ||
217 | */ | ||
218 | pmx = pmx_get(mmcsd_device, U300_APP_PMX_MMC_SETTING); | ||
219 | |||
220 | if (IS_ERR(pmx)) | ||
221 | pr_warning("Could not get padmux handle\n"); | ||
222 | else { | ||
223 | ret = pmx_activate(mmcsd_device, pmx); | ||
224 | if (IS_ERR_VALUE(ret)) | ||
225 | pr_warning("Could not activate padmuxing\n"); | ||
226 | } | ||
227 | |||
210 | ret = gpio_register_callback(U300_GPIO_PIN_MMC_CD, mmci_callback, | 228 | ret = gpio_register_callback(U300_GPIO_PIN_MMC_CD, mmci_callback, |
211 | mmci_card); | 229 | mmci_card); |
212 | 230 | ||
diff --git a/arch/arm/mach-u300/padmux.c b/arch/arm/mach-u300/padmux.c index f3664564f086..4c93c6cefd37 100644 --- a/arch/arm/mach-u300/padmux.c +++ b/arch/arm/mach-u300/padmux.c | |||
@@ -6,53 +6,362 @@ | |||
6 | * Copyright (C) 2009 ST-Ericsson AB | 6 | * Copyright (C) 2009 ST-Ericsson AB |
7 | * License terms: GNU General Public License (GPL) version 2 | 7 | * License terms: GNU General Public License (GPL) version 2 |
8 | * U300 PADMUX functions | 8 | * U300 PADMUX functions |
9 | * Author: Linus Walleij <linus.walleij@stericsson.com> | 9 | * Author: Martin Persson <martin.persson@stericsson.com> |
10 | * | ||
11 | */ | 10 | */ |
12 | #include <linux/io.h> | 11 | |
12 | #include <linux/module.h> | ||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/device.h> | ||
13 | #include <linux/err.h> | 15 | #include <linux/err.h> |
16 | #include <linux/errno.h> | ||
17 | #include <linux/io.h> | ||
18 | #include <linux/mutex.h> | ||
19 | #include <linux/string.h> | ||
20 | #include <linux/bug.h> | ||
21 | #include <linux/debugfs.h> | ||
22 | #include <linux/seq_file.h> | ||
14 | #include <mach/u300-regs.h> | 23 | #include <mach/u300-regs.h> |
15 | #include <mach/syscon.h> | 24 | #include <mach/syscon.h> |
16 | |||
17 | #include "padmux.h" | 25 | #include "padmux.h" |
18 | 26 | ||
19 | /* Set the PAD MUX to route the MMC reader correctly to GPIO0. */ | 27 | static DEFINE_MUTEX(pmx_mutex); |
20 | void pmx_set_mission_mode_mmc(void) | 28 | |
21 | { | 29 | const u32 pmx_registers[] = { |
22 | u16 val; | 30 | (U300_SYSCON_VBASE + U300_SYSCON_PMC1LR), |
23 | 31 | (U300_SYSCON_VBASE + U300_SYSCON_PMC1HR), | |
24 | val = readw(U300_SYSCON_VBASE + U300_SYSCON_PMC1LR); | 32 | (U300_SYSCON_VBASE + U300_SYSCON_PMC2R), |
25 | val &= ~U300_SYSCON_PMC1LR_MMCSD_MASK; | 33 | (U300_SYSCON_VBASE + U300_SYSCON_PMC3R), |
26 | writew(val, U300_SYSCON_VBASE + U300_SYSCON_PMC1LR); | 34 | (U300_SYSCON_VBASE + U300_SYSCON_PMC4R) |
27 | val = readw(U300_SYSCON_VBASE + U300_SYSCON_PMC1HR); | 35 | }; |
28 | val &= ~U300_SYSCON_PMC1HR_APP_GPIO_1_MASK; | 36 | |
29 | val |= U300_SYSCON_PMC1HR_APP_GPIO_1_MMC; | 37 | /* High level functionality */ |
30 | writew(val, U300_SYSCON_VBASE + U300_SYSCON_PMC1HR); | 38 | |
31 | } | 39 | /* Lazy dog: |
32 | 40 | * onmask = { | |
33 | void pmx_set_mission_mode_spi(void) | 41 | * {"PMC1LR" mask, "PMC1LR" value}, |
34 | { | 42 | * {"PMC1HR" mask, "PMC1HR" value}, |
35 | u16 val; | 43 | * {"PMC2R" mask, "PMC2R" value}, |
36 | 44 | * {"PMC3R" mask, "PMC3R" value}, | |
37 | /* Set up padmuxing so the SPI port and its chipselects are active */ | 45 | * {"PMC4R" mask, "PMC4R" value} |
38 | val = readw(U300_SYSCON_VBASE + U300_SYSCON_PMC1HR); | 46 | * } |
39 | /* | 47 | */ |
40 | * Activate the SPI port (disable the use of these pins for generic | 48 | static struct pmx mmc_setting = { |
41 | * GPIO, DSP, AAIF | 49 | .setting = U300_APP_PMX_MMC_SETTING, |
42 | */ | 50 | .default_on = false, |
43 | val &= ~U300_SYSCON_PMC1HR_APP_SPI_2_MASK; | 51 | .activated = false, |
44 | val |= U300_SYSCON_PMC1HR_APP_SPI_2_SPI; | 52 | .name = "MMC", |
45 | /* | 53 | .onmask = { |
46 | * Use GPIO pin SPI CS1 for CS1 actually (it can be used for other | 54 | {U300_SYSCON_PMC1LR_MMCSD_MASK, |
47 | * things also) | 55 | U300_SYSCON_PMC1LR_MMCSD_MMCSD}, |
48 | */ | 56 | {0, 0}, |
49 | val &= ~U300_SYSCON_PMC1HR_APP_SPI_CS_1_MASK; | 57 | {0, 0}, |
50 | val |= U300_SYSCON_PMC1HR_APP_SPI_CS_1_SPI; | 58 | {0, 0}, |
51 | /* | 59 | {U300_SYSCON_PMC4R_APP_MISC_12_MASK, |
52 | * Use GPIO pin SPI CS2 for CS2 actually (it can be used for other | 60 | U300_SYSCON_PMC4R_APP_MISC_12_APP_GPIO} |
53 | * things also) | 61 | }, |
54 | */ | 62 | }; |
55 | val &= ~U300_SYSCON_PMC1HR_APP_SPI_CS_2_MASK; | 63 | |
56 | val |= U300_SYSCON_PMC1HR_APP_SPI_CS_2_SPI; | 64 | static struct pmx spi_setting = { |
57 | writew(val, U300_SYSCON_VBASE + U300_SYSCON_PMC1HR); | 65 | .setting = U300_APP_PMX_SPI_SETTING, |
66 | .default_on = false, | ||
67 | .activated = false, | ||
68 | .name = "SPI", | ||
69 | .onmask = {{0, 0}, | ||
70 | {U300_SYSCON_PMC1HR_APP_SPI_2_MASK | | ||
71 | U300_SYSCON_PMC1HR_APP_SPI_CS_1_MASK | | ||
72 | U300_SYSCON_PMC1HR_APP_SPI_CS_2_MASK, | ||
73 | U300_SYSCON_PMC1HR_APP_SPI_2_SPI | | ||
74 | U300_SYSCON_PMC1HR_APP_SPI_CS_1_SPI | | ||
75 | U300_SYSCON_PMC1HR_APP_SPI_CS_2_SPI}, | ||
76 | {0, 0}, | ||
77 | {0, 0}, | ||
78 | {0, 0} | ||
79 | }, | ||
80 | }; | ||
81 | |||
82 | /* Available padmux settings */ | ||
83 | static struct pmx *pmx_settings[] = { | ||
84 | &mmc_setting, | ||
85 | &spi_setting, | ||
86 | }; | ||
87 | |||
88 | static void update_registers(struct pmx *pmx, bool activate) | ||
89 | { | ||
90 | u16 regval, val, mask; | ||
91 | int i; | ||
92 | |||
93 | for (i = 0; i < ARRAY_SIZE(pmx_registers); i++) { | ||
94 | if (activate) | ||
95 | val = pmx->onmask[i].val; | ||
96 | else | ||
97 | val = 0; | ||
98 | |||
99 | mask = pmx->onmask[i].mask; | ||
100 | if (mask != 0) { | ||
101 | regval = readw(pmx_registers[i]); | ||
102 | regval &= ~mask; | ||
103 | regval |= val; | ||
104 | writew(regval, pmx_registers[i]); | ||
105 | } | ||
106 | } | ||
107 | } | ||
108 | |||
109 | struct pmx *pmx_get(struct device *dev, enum pmx_settings setting) | ||
110 | { | ||
111 | int i; | ||
112 | struct pmx *pmx = ERR_PTR(-ENOENT); | ||
113 | |||
114 | if (dev == NULL) | ||
115 | return ERR_PTR(-EINVAL); | ||
116 | |||
117 | mutex_lock(&pmx_mutex); | ||
118 | for (i = 0; i < ARRAY_SIZE(pmx_settings); i++) { | ||
119 | |||
120 | if (setting == pmx_settings[i]->setting) { | ||
121 | |||
122 | if (pmx_settings[i]->dev != NULL) { | ||
123 | WARN(1, "padmux: required setting " | ||
124 | "in use by another consumer\n"); | ||
125 | } else { | ||
126 | pmx = pmx_settings[i]; | ||
127 | pmx->dev = dev; | ||
128 | dev_dbg(dev, "padmux: setting nr %d is now " | ||
129 | "bound to %s and ready to use\n", | ||
130 | setting, dev_name(dev)); | ||
131 | break; | ||
132 | } | ||
133 | } | ||
134 | } | ||
135 | mutex_unlock(&pmx_mutex); | ||
136 | |||
137 | return pmx; | ||
138 | } | ||
139 | EXPORT_SYMBOL(pmx_get); | ||
140 | |||
141 | int pmx_put(struct device *dev, struct pmx *pmx) | ||
142 | { | ||
143 | int i; | ||
144 | int ret = -ENOENT; | ||
145 | |||
146 | if (pmx == NULL || dev == NULL) | ||
147 | return -EINVAL; | ||
148 | |||
149 | mutex_lock(&pmx_mutex); | ||
150 | for (i = 0; i < ARRAY_SIZE(pmx_settings); i++) { | ||
151 | |||
152 | if (pmx->setting == pmx_settings[i]->setting) { | ||
153 | |||
154 | if (dev != pmx->dev) { | ||
155 | WARN(1, "padmux: cannot release handle as " | ||
156 | "it is bound to another consumer\n"); | ||
157 | ret = -EINVAL; | ||
158 | break; | ||
159 | } else { | ||
160 | pmx_settings[i]->dev = NULL; | ||
161 | ret = 0; | ||
162 | break; | ||
163 | } | ||
164 | } | ||
165 | } | ||
166 | mutex_unlock(&pmx_mutex); | ||
167 | |||
168 | return ret; | ||
169 | } | ||
170 | EXPORT_SYMBOL(pmx_put); | ||
171 | |||
172 | int pmx_activate(struct device *dev, struct pmx *pmx) | ||
173 | { | ||
174 | int i, j, ret; | ||
175 | ret = 0; | ||
176 | |||
177 | if (pmx == NULL || dev == NULL) | ||
178 | return -EINVAL; | ||
179 | |||
180 | mutex_lock(&pmx_mutex); | ||
181 | |||
182 | /* Make sure the required bits are not used */ | ||
183 | for (i = 0; i < ARRAY_SIZE(pmx_settings); i++) { | ||
184 | |||
185 | if (pmx_settings[i]->dev == NULL || pmx_settings[i] == pmx) | ||
186 | continue; | ||
187 | |||
188 | for (j = 0; j < ARRAY_SIZE(pmx_registers); j++) { | ||
189 | |||
190 | if (pmx_settings[i]->onmask[j].mask & pmx-> | ||
191 | onmask[j].mask) { | ||
192 | /* More than one entry on the same bits */ | ||
193 | WARN(1, "padmux: cannot activate " | ||
194 | "setting. Bit conflict with " | ||
195 | "an active setting\n"); | ||
196 | |||
197 | ret = -EUSERS; | ||
198 | goto exit; | ||
199 | } | ||
200 | } | ||
201 | } | ||
202 | update_registers(pmx, true); | ||
203 | pmx->activated = true; | ||
204 | dev_dbg(dev, "padmux: setting nr %d is activated\n", | ||
205 | pmx->setting); | ||
206 | |||
207 | exit: | ||
208 | mutex_unlock(&pmx_mutex); | ||
209 | return ret; | ||
210 | } | ||
211 | EXPORT_SYMBOL(pmx_activate); | ||
212 | |||
213 | int pmx_deactivate(struct device *dev, struct pmx *pmx) | ||
214 | { | ||
215 | int i; | ||
216 | int ret = -ENOENT; | ||
217 | |||
218 | if (pmx == NULL || dev == NULL) | ||
219 | return -EINVAL; | ||
220 | |||
221 | mutex_lock(&pmx_mutex); | ||
222 | for (i = 0; i < ARRAY_SIZE(pmx_settings); i++) { | ||
223 | |||
224 | if (pmx_settings[i]->dev == NULL) | ||
225 | continue; | ||
226 | |||
227 | if (pmx->setting == pmx_settings[i]->setting) { | ||
228 | |||
229 | if (dev != pmx->dev) { | ||
230 | WARN(1, "padmux: cannot deactivate " | ||
231 | "pmx setting as it was activated " | ||
232 | "by another consumer\n"); | ||
233 | |||
234 | ret = -EBUSY; | ||
235 | continue; | ||
236 | } else { | ||
237 | update_registers(pmx, false); | ||
238 | pmx_settings[i]->dev = NULL; | ||
239 | pmx->activated = false; | ||
240 | ret = 0; | ||
241 | dev_dbg(dev, "padmux: setting nr %d is deactivated", | ||
242 | pmx->setting); | ||
243 | break; | ||
244 | } | ||
245 | } | ||
246 | } | ||
247 | mutex_unlock(&pmx_mutex); | ||
248 | |||
249 | return ret; | ||
250 | } | ||
251 | EXPORT_SYMBOL(pmx_deactivate); | ||
252 | |||
253 | /* | ||
254 | * For internal use only. If it is to be exported, | ||
255 | * it should be reentrant. Notice that pmx_activate | ||
256 | * (i.e. runtime settings) always override default settings. | ||
257 | */ | ||
258 | static int pmx_set_default(void) | ||
259 | { | ||
260 | /* Used to identify several entries on the same bits */ | ||
261 | u16 modbits[ARRAY_SIZE(pmx_registers)]; | ||
262 | |||
263 | int i, j; | ||
264 | |||
265 | memset(modbits, 0, ARRAY_SIZE(pmx_registers) * sizeof(u16)); | ||
266 | |||
267 | for (i = 0; i < ARRAY_SIZE(pmx_settings); i++) { | ||
268 | |||
269 | if (!pmx_settings[i]->default_on) | ||
270 | continue; | ||
271 | |||
272 | for (j = 0; j < ARRAY_SIZE(pmx_registers); j++) { | ||
273 | |||
274 | /* Make sure there is only one entry on the same bits */ | ||
275 | if (modbits[j] & pmx_settings[i]->onmask[j].mask) { | ||
276 | BUG(); | ||
277 | return -EUSERS; | ||
278 | } | ||
279 | modbits[j] |= pmx_settings[i]->onmask[j].mask; | ||
280 | } | ||
281 | update_registers(pmx_settings[i], true); | ||
282 | } | ||
283 | return 0; | ||
58 | } | 284 | } |
285 | |||
286 | #if (defined(CONFIG_DEBUG_FS) && defined(CONFIG_U300_DEBUG)) | ||
287 | static int pmx_show(struct seq_file *s, void *data) | ||
288 | { | ||
289 | int i; | ||
290 | seq_printf(s, "-------------------------------------------------\n"); | ||
291 | seq_printf(s, "SETTING BOUND TO DEVICE STATE\n"); | ||
292 | seq_printf(s, "-------------------------------------------------\n"); | ||
293 | mutex_lock(&pmx_mutex); | ||
294 | for (i = 0; i < ARRAY_SIZE(pmx_settings); i++) { | ||
295 | /* Format pmx and device name nicely */ | ||
296 | char cdp[33]; | ||
297 | int chars; | ||
298 | |||
299 | chars = snprintf(&cdp[0], 17, "%s", pmx_settings[i]->name); | ||
300 | while (chars < 16) { | ||
301 | cdp[chars] = ' '; | ||
302 | chars++; | ||
303 | } | ||
304 | chars = snprintf(&cdp[16], 17, "%s", pmx_settings[i]->dev ? | ||
305 | dev_name(pmx_settings[i]->dev) : "N/A"); | ||
306 | while (chars < 16) { | ||
307 | cdp[chars+16] = ' '; | ||
308 | chars++; | ||
309 | } | ||
310 | cdp[32] = '\0'; | ||
311 | |||
312 | seq_printf(s, | ||
313 | "%s\t%s\n", | ||
314 | &cdp[0], | ||
315 | pmx_settings[i]->activated ? | ||
316 | "ACTIVATED" : "DEACTIVATED" | ||
317 | ); | ||
318 | |||
319 | } | ||
320 | mutex_unlock(&pmx_mutex); | ||
321 | return 0; | ||
322 | } | ||
323 | |||
324 | static int pmx_open(struct inode *inode, struct file *file) | ||
325 | { | ||
326 | return single_open(file, pmx_show, NULL); | ||
327 | } | ||
328 | |||
329 | static const struct file_operations pmx_operations = { | ||
330 | .owner = THIS_MODULE, | ||
331 | .open = pmx_open, | ||
332 | .read = seq_read, | ||
333 | .llseek = seq_lseek, | ||
334 | .release = single_release, | ||
335 | }; | ||
336 | |||
337 | static int __init init_pmx_read_debugfs(void) | ||
338 | { | ||
339 | /* Expose a simple debugfs interface to view pmx settings */ | ||
340 | (void) debugfs_create_file("padmux", S_IFREG | S_IRUGO, | ||
341 | NULL, NULL, | ||
342 | &pmx_operations); | ||
343 | return 0; | ||
344 | } | ||
345 | |||
346 | /* | ||
347 | * This needs to come in after the core_initcall(), | ||
348 | * because debugfs is not available until | ||
349 | * the subsystems come up. | ||
350 | */ | ||
351 | module_init(init_pmx_read_debugfs); | ||
352 | #endif | ||
353 | |||
354 | static int __init pmx_init(void) | ||
355 | { | ||
356 | int ret; | ||
357 | |||
358 | ret = pmx_set_default(); | ||
359 | |||
360 | if (IS_ERR_VALUE(ret)) | ||
361 | pr_crit("padmux: default settings could not be set\n"); | ||
362 | |||
363 | return 0; | ||
364 | } | ||
365 | |||
366 | /* Should be initialized before consumers */ | ||
367 | core_initcall(pmx_init); | ||
diff --git a/arch/arm/mach-u300/padmux.h b/arch/arm/mach-u300/padmux.h index 8c2099ac5046..6e8b86064097 100644 --- a/arch/arm/mach-u300/padmux.h +++ b/arch/arm/mach-u300/padmux.h | |||
@@ -6,14 +6,34 @@ | |||
6 | * Copyright (C) 2009 ST-Ericsson AB | 6 | * Copyright (C) 2009 ST-Ericsson AB |
7 | * License terms: GNU General Public License (GPL) version 2 | 7 | * License terms: GNU General Public License (GPL) version 2 |
8 | * U300 PADMUX API | 8 | * U300 PADMUX API |
9 | * Author: Linus Walleij <linus.walleij@stericsson.com> | 9 | * Author: Martin Persson <martin.persson@stericsson.com> |
10 | * | ||
11 | */ | 10 | */ |
12 | 11 | ||
13 | #ifndef __MACH_U300_PADMUX_H | 12 | #ifndef __MACH_U300_PADMUX_H |
14 | #define __MACH_U300_PADMUX_H | 13 | #define __MACH_U300_PADMUX_H |
15 | 14 | ||
16 | void pmx_set_mission_mode_mmc(void); | 15 | enum pmx_settings { |
17 | void pmx_set_mission_mode_spi(void); | 16 | U300_APP_PMX_MMC_SETTING, |
17 | U300_APP_PMX_SPI_SETTING | ||
18 | }; | ||
19 | |||
20 | struct pmx_onmask { | ||
21 | u16 mask; /* Mask bits */ | ||
22 | u16 val; /* Value when active */ | ||
23 | }; | ||
24 | |||
25 | struct pmx { | ||
26 | struct device *dev; | ||
27 | enum pmx_settings setting; | ||
28 | char *name; | ||
29 | bool activated; | ||
30 | bool default_on; | ||
31 | struct pmx_onmask onmask[]; | ||
32 | }; | ||
33 | |||
34 | struct pmx *pmx_get(struct device *dev, enum pmx_settings setting); | ||
35 | int pmx_put(struct device *dev, struct pmx *pmx); | ||
36 | int pmx_activate(struct device *dev, struct pmx *pmx); | ||
37 | int pmx_deactivate(struct device *dev, struct pmx *pmx); | ||
18 | 38 | ||
19 | #endif | 39 | #endif |
diff --git a/arch/arm/mach-u300/spi.c b/arch/arm/mach-u300/spi.c new file mode 100644 index 000000000000..f0e887bea30e --- /dev/null +++ b/arch/arm/mach-u300/spi.c | |||
@@ -0,0 +1,124 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-u300/spi.c | ||
3 | * | ||
4 | * Copyright (C) 2009 ST-Ericsson AB | ||
5 | * License terms: GNU General Public License (GPL) version 2 | ||
6 | * | ||
7 | * Author: Linus Walleij <linus.walleij@stericsson.com> | ||
8 | */ | ||
9 | #include <linux/device.h> | ||
10 | #include <linux/amba/bus.h> | ||
11 | #include <linux/spi/spi.h> | ||
12 | #include <linux/amba/pl022.h> | ||
13 | #include <linux/err.h> | ||
14 | #include "padmux.h" | ||
15 | |||
16 | /* | ||
17 | * The following is for the actual devices on the SSP/SPI bus | ||
18 | */ | ||
19 | #ifdef CONFIG_MACH_U300_SPIDUMMY | ||
20 | static void select_dummy_chip(u32 chipselect) | ||
21 | { | ||
22 | pr_debug("CORE: %s called with CS=0x%x (%s)\n", | ||
23 | __func__, | ||
24 | chipselect, | ||
25 | chipselect ? "unselect chip" : "select chip"); | ||
26 | /* | ||
27 | * Here you would write the chip select value to the GPIO pins if | ||
28 | * this was a real chip (but this is a loopback dummy). | ||
29 | */ | ||
30 | } | ||
31 | |||
32 | struct pl022_config_chip dummy_chip_info = { | ||
33 | /* Nominally this is LOOPBACK_DISABLED, but this is our dummy chip! */ | ||
34 | .lbm = LOOPBACK_ENABLED, | ||
35 | /* | ||
36 | * available POLLING_TRANSFER and INTERRUPT_TRANSFER, | ||
37 | * DMA_TRANSFER does not work | ||
38 | */ | ||
39 | .com_mode = INTERRUPT_TRANSFER, | ||
40 | .iface = SSP_INTERFACE_MOTOROLA_SPI, | ||
41 | /* We can only act as master but SSP_SLAVE is possible in theory */ | ||
42 | .hierarchy = SSP_MASTER, | ||
43 | /* 0 = drive TX even as slave, 1 = do not drive TX as slave */ | ||
44 | .slave_tx_disable = 0, | ||
45 | /* LSB first */ | ||
46 | .endian_tx = SSP_TX_LSB, | ||
47 | .endian_rx = SSP_RX_LSB, | ||
48 | .data_size = SSP_DATA_BITS_8, /* used to be 12 in some default */ | ||
49 | .rx_lev_trig = SSP_RX_1_OR_MORE_ELEM, | ||
50 | .tx_lev_trig = SSP_TX_1_OR_MORE_EMPTY_LOC, | ||
51 | .clk_phase = SSP_CLK_SECOND_EDGE, | ||
52 | .clk_pol = SSP_CLK_POL_IDLE_LOW, | ||
53 | .ctrl_len = SSP_BITS_12, | ||
54 | .wait_state = SSP_MWIRE_WAIT_ZERO, | ||
55 | .duplex = SSP_MICROWIRE_CHANNEL_FULL_DUPLEX, | ||
56 | /* | ||
57 | * This is where you insert a call to a function to enable CS | ||
58 | * (usually GPIO) for a certain chip. | ||
59 | */ | ||
60 | .cs_control = select_dummy_chip, | ||
61 | }; | ||
62 | #endif | ||
63 | |||
64 | static struct spi_board_info u300_spi_devices[] = { | ||
65 | #ifdef CONFIG_MACH_U300_SPIDUMMY | ||
66 | { | ||
67 | /* A dummy chip used for loopback tests */ | ||
68 | .modalias = "spi-dummy", | ||
69 | /* Really dummy, pass in additional chip config here */ | ||
70 | .platform_data = NULL, | ||
71 | /* This defines how the controller shall handle the device */ | ||
72 | .controller_data = &dummy_chip_info, | ||
73 | /* .irq - no external IRQ routed from this device */ | ||
74 | .max_speed_hz = 1000000, | ||
75 | .bus_num = 0, /* Only one bus on this chip */ | ||
76 | .chip_select = 0, | ||
77 | /* Means SPI_CS_HIGH, change if e.g low CS */ | ||
78 | .mode = 0, | ||
79 | }, | ||
80 | #endif | ||
81 | }; | ||
82 | |||
83 | static struct pl022_ssp_controller ssp_platform_data = { | ||
84 | /* If you have several SPI buses this varies, we have only bus 0 */ | ||
85 | .bus_id = 0, | ||
86 | /* Set this to 1 when we think we got DMA working */ | ||
87 | .enable_dma = 0, | ||
88 | /* | ||
89 | * On the APP CPU GPIO 4, 5 and 6 are connected as generic | ||
90 | * chip selects for SPI. (Same on U330, U335 and U365.) | ||
91 | * TODO: make sure the GPIO driver can select these properly | ||
92 | * and do padmuxing accordingly too. | ||
93 | */ | ||
94 | .num_chipselect = 3, | ||
95 | }; | ||
96 | |||
97 | |||
98 | void __init u300_spi_init(struct amba_device *adev) | ||
99 | { | ||
100 | struct pmx *pmx; | ||
101 | |||
102 | adev->dev.platform_data = &ssp_platform_data; | ||
103 | /* | ||
104 | * Setup padmuxing for SPI. Since this must always be | ||
105 | * compiled into the kernel, pmx is never released. | ||
106 | */ | ||
107 | pmx = pmx_get(&adev->dev, U300_APP_PMX_SPI_SETTING); | ||
108 | |||
109 | if (IS_ERR(pmx)) | ||
110 | dev_warn(&adev->dev, "Could not get padmux handle\n"); | ||
111 | else { | ||
112 | int ret; | ||
113 | |||
114 | ret = pmx_activate(&adev->dev, pmx); | ||
115 | if (IS_ERR_VALUE(ret)) | ||
116 | dev_warn(&adev->dev, "Could not activate padmuxing\n"); | ||
117 | } | ||
118 | |||
119 | } | ||
120 | void __init u300_spi_register_board_devices(void) | ||
121 | { | ||
122 | /* Register any SPI devices */ | ||
123 | spi_register_board_info(u300_spi_devices, ARRAY_SIZE(u300_spi_devices)); | ||
124 | } | ||
diff --git a/arch/arm/mach-u300/spi.h b/arch/arm/mach-u300/spi.h new file mode 100644 index 000000000000..bd3d867e240f --- /dev/null +++ b/arch/arm/mach-u300/spi.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-u300/spi.h | ||
3 | * | ||
4 | * Copyright (C) 2009 ST-Ericsson AB | ||
5 | * License terms: GNU General Public License (GPL) version 2 | ||
6 | * | ||
7 | * Author: Linus Walleij <linus.walleij@stericsson.com> | ||
8 | */ | ||
9 | #ifndef SPI_H | ||
10 | #define SPI_H | ||
11 | #include <linux/amba/bus.h> | ||
12 | |||
13 | #ifdef CONFIG_SPI_PL022 | ||
14 | void __init u300_spi_init(struct amba_device *adev); | ||
15 | void __init u300_spi_register_board_devices(void); | ||
16 | #else | ||
17 | /* Compile out SPI support if PL022 is not selected */ | ||
18 | static inline void __init u300_spi_init(struct amba_device *adev) | ||
19 | { | ||
20 | } | ||
21 | static inline void __init u300_spi_register_board_devices(void) | ||
22 | { | ||
23 | } | ||
24 | #endif | ||
25 | |||
26 | #endif | ||
diff --git a/arch/arm/mach-u300/timer.c b/arch/arm/mach-u300/timer.c index cce53204880e..26d26f5100fe 100644 --- a/arch/arm/mach-u300/timer.c +++ b/arch/arm/mach-u300/timer.c | |||
@@ -346,6 +346,21 @@ static struct clocksource clocksource_u300_1mhz = { | |||
346 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, | 346 | .flags = CLOCK_SOURCE_IS_CONTINUOUS, |
347 | }; | 347 | }; |
348 | 348 | ||
349 | /* | ||
350 | * Override the global weak sched_clock symbol with this | ||
351 | * local implementation which uses the clocksource to get some | ||
352 | * better resolution when scheduling the kernel. We accept that | ||
353 | * this wraps around for now, since it is just a relative time | ||
354 | * stamp. (Inspired by OMAP implementation.) | ||
355 | */ | ||
356 | unsigned long long notrace sched_clock(void) | ||
357 | { | ||
358 | return clocksource_cyc2ns(clocksource_u300_1mhz.read( | ||
359 | &clocksource_u300_1mhz), | ||
360 | clocksource_u300_1mhz.mult, | ||
361 | clocksource_u300_1mhz.shift); | ||
362 | } | ||
363 | |||
349 | 364 | ||
350 | /* | 365 | /* |
351 | * This sets up the system timers, clock source and clock event. | 366 | * This sets up the system timers, clock source and clock event. |
diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c index 975eae41ee66..e13be7c444ca 100644 --- a/arch/arm/mach-versatile/core.c +++ b/arch/arm/mach-versatile/core.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/amba/bus.h> | 27 | #include <linux/amba/bus.h> |
28 | #include <linux/amba/clcd.h> | 28 | #include <linux/amba/clcd.h> |
29 | #include <linux/amba/pl061.h> | 29 | #include <linux/amba/pl061.h> |
30 | #include <linux/amba/mmci.h> | ||
30 | #include <linux/clocksource.h> | 31 | #include <linux/clocksource.h> |
31 | #include <linux/clockchips.h> | 32 | #include <linux/clockchips.h> |
32 | #include <linux/cnt32_to_63.h> | 33 | #include <linux/cnt32_to_63.h> |
@@ -47,7 +48,6 @@ | |||
47 | #include <asm/mach/irq.h> | 48 | #include <asm/mach/irq.h> |
48 | #include <asm/mach/time.h> | 49 | #include <asm/mach/time.h> |
49 | #include <asm/mach/map.h> | 50 | #include <asm/mach/map.h> |
50 | #include <asm/mach/mmc.h> | ||
51 | 51 | ||
52 | #include "core.h" | 52 | #include "core.h" |
53 | #include "clock.h" | 53 | #include "clock.h" |
@@ -369,7 +369,7 @@ unsigned int mmc_status(struct device *dev) | |||
369 | return readl(VERSATILE_SYSMCI) & mask; | 369 | return readl(VERSATILE_SYSMCI) & mask; |
370 | } | 370 | } |
371 | 371 | ||
372 | static struct mmc_platform_data mmc0_plat_data = { | 372 | static struct mmci_platform_data mmc0_plat_data = { |
373 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 373 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
374 | .status = mmc_status, | 374 | .status = mmc_status, |
375 | .gpio_wp = -1, | 375 | .gpio_wp = -1, |
diff --git a/arch/arm/mach-versatile/versatile_pb.c b/arch/arm/mach-versatile/versatile_pb.c index 9af8d8154df5..239cd30fc4f5 100644 --- a/arch/arm/mach-versatile/versatile_pb.c +++ b/arch/arm/mach-versatile/versatile_pb.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/sysdev.h> | 24 | #include <linux/sysdev.h> |
25 | #include <linux/amba/bus.h> | 25 | #include <linux/amba/bus.h> |
26 | #include <linux/amba/pl061.h> | 26 | #include <linux/amba/pl061.h> |
27 | #include <linux/amba/mmci.h> | ||
27 | #include <linux/io.h> | 28 | #include <linux/io.h> |
28 | 29 | ||
29 | #include <mach/hardware.h> | 30 | #include <mach/hardware.h> |
@@ -31,7 +32,6 @@ | |||
31 | #include <asm/mach-types.h> | 32 | #include <asm/mach-types.h> |
32 | 33 | ||
33 | #include <asm/mach/arch.h> | 34 | #include <asm/mach/arch.h> |
34 | #include <asm/mach/mmc.h> | ||
35 | 35 | ||
36 | #include "core.h" | 36 | #include "core.h" |
37 | 37 | ||
@@ -41,7 +41,7 @@ | |||
41 | #define IRQ_MMCI1A IRQ_SIC_MMCI1A | 41 | #define IRQ_MMCI1A IRQ_SIC_MMCI1A |
42 | #endif | 42 | #endif |
43 | 43 | ||
44 | static struct mmc_platform_data mmc1_plat_data = { | 44 | static struct mmci_platform_data mmc1_plat_data = { |
45 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, | 45 | .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34, |
46 | .status = mmc_status, | 46 | .status = mmc_status, |
47 | .gpio_wp = -1, | 47 | .gpio_wp = -1, |
diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index 5fe595aeba69..e993140edd88 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig | |||
@@ -17,7 +17,7 @@ config CPU_ARM610 | |||
17 | select CPU_CP15_MMU | 17 | select CPU_CP15_MMU |
18 | select CPU_COPY_V3 if MMU | 18 | select CPU_COPY_V3 if MMU |
19 | select CPU_TLB_V3 if MMU | 19 | select CPU_TLB_V3 if MMU |
20 | select CPU_PABRT_NOIFAR | 20 | select CPU_PABRT_LEGACY |
21 | help | 21 | help |
22 | The ARM610 is the successor to the ARM3 processor | 22 | The ARM610 is the successor to the ARM3 processor |
23 | and was produced by VLSI Technology Inc. | 23 | and was produced by VLSI Technology Inc. |
@@ -31,7 +31,7 @@ config CPU_ARM7TDMI | |||
31 | depends on !MMU | 31 | depends on !MMU |
32 | select CPU_32v4T | 32 | select CPU_32v4T |
33 | select CPU_ABRT_LV4T | 33 | select CPU_ABRT_LV4T |
34 | select CPU_PABRT_NOIFAR | 34 | select CPU_PABRT_LEGACY |
35 | select CPU_CACHE_V4 | 35 | select CPU_CACHE_V4 |
36 | help | 36 | help |
37 | A 32-bit RISC microprocessor based on the ARM7 processor core | 37 | A 32-bit RISC microprocessor based on the ARM7 processor core |
@@ -49,7 +49,7 @@ config CPU_ARM710 | |||
49 | select CPU_CP15_MMU | 49 | select CPU_CP15_MMU |
50 | select CPU_COPY_V3 if MMU | 50 | select CPU_COPY_V3 if MMU |
51 | select CPU_TLB_V3 if MMU | 51 | select CPU_TLB_V3 if MMU |
52 | select CPU_PABRT_NOIFAR | 52 | select CPU_PABRT_LEGACY |
53 | help | 53 | help |
54 | A 32-bit RISC microprocessor based on the ARM7 processor core | 54 | A 32-bit RISC microprocessor based on the ARM7 processor core |
55 | designed by Advanced RISC Machines Ltd. The ARM710 is the | 55 | designed by Advanced RISC Machines Ltd. The ARM710 is the |
@@ -64,7 +64,7 @@ config CPU_ARM720T | |||
64 | bool "Support ARM720T processor" if ARCH_INTEGRATOR | 64 | bool "Support ARM720T processor" if ARCH_INTEGRATOR |
65 | select CPU_32v4T | 65 | select CPU_32v4T |
66 | select CPU_ABRT_LV4T | 66 | select CPU_ABRT_LV4T |
67 | select CPU_PABRT_NOIFAR | 67 | select CPU_PABRT_LEGACY |
68 | select CPU_CACHE_V4 | 68 | select CPU_CACHE_V4 |
69 | select CPU_CACHE_VIVT | 69 | select CPU_CACHE_VIVT |
70 | select CPU_CP15_MMU | 70 | select CPU_CP15_MMU |
@@ -83,7 +83,7 @@ config CPU_ARM740T | |||
83 | depends on !MMU | 83 | depends on !MMU |
84 | select CPU_32v4T | 84 | select CPU_32v4T |
85 | select CPU_ABRT_LV4T | 85 | select CPU_ABRT_LV4T |
86 | select CPU_PABRT_NOIFAR | 86 | select CPU_PABRT_LEGACY |
87 | select CPU_CACHE_V3 # although the core is v4t | 87 | select CPU_CACHE_V3 # although the core is v4t |
88 | select CPU_CP15_MPU | 88 | select CPU_CP15_MPU |
89 | help | 89 | help |
@@ -100,7 +100,7 @@ config CPU_ARM9TDMI | |||
100 | depends on !MMU | 100 | depends on !MMU |
101 | select CPU_32v4T | 101 | select CPU_32v4T |
102 | select CPU_ABRT_NOMMU | 102 | select CPU_ABRT_NOMMU |
103 | select CPU_PABRT_NOIFAR | 103 | select CPU_PABRT_LEGACY |
104 | select CPU_CACHE_V4 | 104 | select CPU_CACHE_V4 |
105 | help | 105 | help |
106 | A 32-bit RISC microprocessor based on the ARM9 processor core | 106 | A 32-bit RISC microprocessor based on the ARM9 processor core |
@@ -114,7 +114,7 @@ config CPU_ARM920T | |||
114 | bool "Support ARM920T processor" if ARCH_INTEGRATOR | 114 | bool "Support ARM920T processor" if ARCH_INTEGRATOR |
115 | select CPU_32v4T | 115 | select CPU_32v4T |
116 | select CPU_ABRT_EV4T | 116 | select CPU_ABRT_EV4T |
117 | select CPU_PABRT_NOIFAR | 117 | select CPU_PABRT_LEGACY |
118 | select CPU_CACHE_V4WT | 118 | select CPU_CACHE_V4WT |
119 | select CPU_CACHE_VIVT | 119 | select CPU_CACHE_VIVT |
120 | select CPU_CP15_MMU | 120 | select CPU_CP15_MMU |
@@ -135,7 +135,7 @@ config CPU_ARM922T | |||
135 | bool "Support ARM922T processor" if ARCH_INTEGRATOR | 135 | bool "Support ARM922T processor" if ARCH_INTEGRATOR |
136 | select CPU_32v4T | 136 | select CPU_32v4T |
137 | select CPU_ABRT_EV4T | 137 | select CPU_ABRT_EV4T |
138 | select CPU_PABRT_NOIFAR | 138 | select CPU_PABRT_LEGACY |
139 | select CPU_CACHE_V4WT | 139 | select CPU_CACHE_V4WT |
140 | select CPU_CACHE_VIVT | 140 | select CPU_CACHE_VIVT |
141 | select CPU_CP15_MMU | 141 | select CPU_CP15_MMU |
@@ -154,7 +154,7 @@ config CPU_ARM925T | |||
154 | bool "Support ARM925T processor" if ARCH_OMAP1 | 154 | bool "Support ARM925T processor" if ARCH_OMAP1 |
155 | select CPU_32v4T | 155 | select CPU_32v4T |
156 | select CPU_ABRT_EV4T | 156 | select CPU_ABRT_EV4T |
157 | select CPU_PABRT_NOIFAR | 157 | select CPU_PABRT_LEGACY |
158 | select CPU_CACHE_V4WT | 158 | select CPU_CACHE_V4WT |
159 | select CPU_CACHE_VIVT | 159 | select CPU_CACHE_VIVT |
160 | select CPU_CP15_MMU | 160 | select CPU_CP15_MMU |
@@ -173,7 +173,7 @@ config CPU_ARM926T | |||
173 | bool "Support ARM926T processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB | 173 | bool "Support ARM926T processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB |
174 | select CPU_32v5 | 174 | select CPU_32v5 |
175 | select CPU_ABRT_EV5TJ | 175 | select CPU_ABRT_EV5TJ |
176 | select CPU_PABRT_NOIFAR | 176 | select CPU_PABRT_LEGACY |
177 | select CPU_CACHE_VIVT | 177 | select CPU_CACHE_VIVT |
178 | select CPU_CP15_MMU | 178 | select CPU_CP15_MMU |
179 | select CPU_COPY_V4WB if MMU | 179 | select CPU_COPY_V4WB if MMU |
@@ -191,7 +191,7 @@ config CPU_FA526 | |||
191 | bool | 191 | bool |
192 | select CPU_32v4 | 192 | select CPU_32v4 |
193 | select CPU_ABRT_EV4 | 193 | select CPU_ABRT_EV4 |
194 | select CPU_PABRT_NOIFAR | 194 | select CPU_PABRT_LEGACY |
195 | select CPU_CACHE_VIVT | 195 | select CPU_CACHE_VIVT |
196 | select CPU_CP15_MMU | 196 | select CPU_CP15_MMU |
197 | select CPU_CACHE_FA | 197 | select CPU_CACHE_FA |
@@ -210,7 +210,7 @@ config CPU_ARM940T | |||
210 | depends on !MMU | 210 | depends on !MMU |
211 | select CPU_32v4T | 211 | select CPU_32v4T |
212 | select CPU_ABRT_NOMMU | 212 | select CPU_ABRT_NOMMU |
213 | select CPU_PABRT_NOIFAR | 213 | select CPU_PABRT_LEGACY |
214 | select CPU_CACHE_VIVT | 214 | select CPU_CACHE_VIVT |
215 | select CPU_CP15_MPU | 215 | select CPU_CP15_MPU |
216 | help | 216 | help |
@@ -228,7 +228,7 @@ config CPU_ARM946E | |||
228 | depends on !MMU | 228 | depends on !MMU |
229 | select CPU_32v5 | 229 | select CPU_32v5 |
230 | select CPU_ABRT_NOMMU | 230 | select CPU_ABRT_NOMMU |
231 | select CPU_PABRT_NOIFAR | 231 | select CPU_PABRT_LEGACY |
232 | select CPU_CACHE_VIVT | 232 | select CPU_CACHE_VIVT |
233 | select CPU_CP15_MPU | 233 | select CPU_CP15_MPU |
234 | help | 234 | help |
@@ -244,7 +244,7 @@ config CPU_ARM1020 | |||
244 | bool "Support ARM1020T (rev 0) processor" if ARCH_INTEGRATOR | 244 | bool "Support ARM1020T (rev 0) processor" if ARCH_INTEGRATOR |
245 | select CPU_32v5 | 245 | select CPU_32v5 |
246 | select CPU_ABRT_EV4T | 246 | select CPU_ABRT_EV4T |
247 | select CPU_PABRT_NOIFAR | 247 | select CPU_PABRT_LEGACY |
248 | select CPU_CACHE_V4WT | 248 | select CPU_CACHE_V4WT |
249 | select CPU_CACHE_VIVT | 249 | select CPU_CACHE_VIVT |
250 | select CPU_CP15_MMU | 250 | select CPU_CP15_MMU |
@@ -262,7 +262,7 @@ config CPU_ARM1020E | |||
262 | bool "Support ARM1020E processor" if ARCH_INTEGRATOR | 262 | bool "Support ARM1020E processor" if ARCH_INTEGRATOR |
263 | select CPU_32v5 | 263 | select CPU_32v5 |
264 | select CPU_ABRT_EV4T | 264 | select CPU_ABRT_EV4T |
265 | select CPU_PABRT_NOIFAR | 265 | select CPU_PABRT_LEGACY |
266 | select CPU_CACHE_V4WT | 266 | select CPU_CACHE_V4WT |
267 | select CPU_CACHE_VIVT | 267 | select CPU_CACHE_VIVT |
268 | select CPU_CP15_MMU | 268 | select CPU_CP15_MMU |
@@ -275,7 +275,7 @@ config CPU_ARM1022 | |||
275 | bool "Support ARM1022E processor" if ARCH_INTEGRATOR | 275 | bool "Support ARM1022E processor" if ARCH_INTEGRATOR |
276 | select CPU_32v5 | 276 | select CPU_32v5 |
277 | select CPU_ABRT_EV4T | 277 | select CPU_ABRT_EV4T |
278 | select CPU_PABRT_NOIFAR | 278 | select CPU_PABRT_LEGACY |
279 | select CPU_CACHE_VIVT | 279 | select CPU_CACHE_VIVT |
280 | select CPU_CP15_MMU | 280 | select CPU_CP15_MMU |
281 | select CPU_COPY_V4WB if MMU # can probably do better | 281 | select CPU_COPY_V4WB if MMU # can probably do better |
@@ -293,7 +293,7 @@ config CPU_ARM1026 | |||
293 | bool "Support ARM1026EJ-S processor" if ARCH_INTEGRATOR | 293 | bool "Support ARM1026EJ-S processor" if ARCH_INTEGRATOR |
294 | select CPU_32v5 | 294 | select CPU_32v5 |
295 | select CPU_ABRT_EV5T # But need Jazelle, but EV5TJ ignores bit 10 | 295 | select CPU_ABRT_EV5T # But need Jazelle, but EV5TJ ignores bit 10 |
296 | select CPU_PABRT_NOIFAR | 296 | select CPU_PABRT_LEGACY |
297 | select CPU_CACHE_VIVT | 297 | select CPU_CACHE_VIVT |
298 | select CPU_CP15_MMU | 298 | select CPU_CP15_MMU |
299 | select CPU_COPY_V4WB if MMU # can probably do better | 299 | select CPU_COPY_V4WB if MMU # can probably do better |
@@ -311,7 +311,7 @@ config CPU_SA110 | |||
311 | select CPU_32v3 if ARCH_RPC | 311 | select CPU_32v3 if ARCH_RPC |
312 | select CPU_32v4 if !ARCH_RPC | 312 | select CPU_32v4 if !ARCH_RPC |
313 | select CPU_ABRT_EV4 | 313 | select CPU_ABRT_EV4 |
314 | select CPU_PABRT_NOIFAR | 314 | select CPU_PABRT_LEGACY |
315 | select CPU_CACHE_V4WB | 315 | select CPU_CACHE_V4WB |
316 | select CPU_CACHE_VIVT | 316 | select CPU_CACHE_VIVT |
317 | select CPU_CP15_MMU | 317 | select CPU_CP15_MMU |
@@ -331,7 +331,7 @@ config CPU_SA1100 | |||
331 | bool | 331 | bool |
332 | select CPU_32v4 | 332 | select CPU_32v4 |
333 | select CPU_ABRT_EV4 | 333 | select CPU_ABRT_EV4 |
334 | select CPU_PABRT_NOIFAR | 334 | select CPU_PABRT_LEGACY |
335 | select CPU_CACHE_V4WB | 335 | select CPU_CACHE_V4WB |
336 | select CPU_CACHE_VIVT | 336 | select CPU_CACHE_VIVT |
337 | select CPU_CP15_MMU | 337 | select CPU_CP15_MMU |
@@ -342,7 +342,7 @@ config CPU_XSCALE | |||
342 | bool | 342 | bool |
343 | select CPU_32v5 | 343 | select CPU_32v5 |
344 | select CPU_ABRT_EV5T | 344 | select CPU_ABRT_EV5T |
345 | select CPU_PABRT_NOIFAR | 345 | select CPU_PABRT_LEGACY |
346 | select CPU_CACHE_VIVT | 346 | select CPU_CACHE_VIVT |
347 | select CPU_CP15_MMU | 347 | select CPU_CP15_MMU |
348 | select CPU_TLB_V4WBI if MMU | 348 | select CPU_TLB_V4WBI if MMU |
@@ -352,7 +352,7 @@ config CPU_XSC3 | |||
352 | bool | 352 | bool |
353 | select CPU_32v5 | 353 | select CPU_32v5 |
354 | select CPU_ABRT_EV5T | 354 | select CPU_ABRT_EV5T |
355 | select CPU_PABRT_NOIFAR | 355 | select CPU_PABRT_LEGACY |
356 | select CPU_CACHE_VIVT | 356 | select CPU_CACHE_VIVT |
357 | select CPU_CP15_MMU | 357 | select CPU_CP15_MMU |
358 | select CPU_TLB_V4WBI if MMU | 358 | select CPU_TLB_V4WBI if MMU |
@@ -363,7 +363,7 @@ config CPU_MOHAWK | |||
363 | bool | 363 | bool |
364 | select CPU_32v5 | 364 | select CPU_32v5 |
365 | select CPU_ABRT_EV5T | 365 | select CPU_ABRT_EV5T |
366 | select CPU_PABRT_NOIFAR | 366 | select CPU_PABRT_LEGACY |
367 | select CPU_CACHE_VIVT | 367 | select CPU_CACHE_VIVT |
368 | select CPU_CP15_MMU | 368 | select CPU_CP15_MMU |
369 | select CPU_TLB_V4WBI if MMU | 369 | select CPU_TLB_V4WBI if MMU |
@@ -374,7 +374,7 @@ config CPU_FEROCEON | |||
374 | bool | 374 | bool |
375 | select CPU_32v5 | 375 | select CPU_32v5 |
376 | select CPU_ABRT_EV5T | 376 | select CPU_ABRT_EV5T |
377 | select CPU_PABRT_NOIFAR | 377 | select CPU_PABRT_LEGACY |
378 | select CPU_CACHE_VIVT | 378 | select CPU_CACHE_VIVT |
379 | select CPU_CP15_MMU | 379 | select CPU_CP15_MMU |
380 | select CPU_COPY_FEROCEON if MMU | 380 | select CPU_COPY_FEROCEON if MMU |
@@ -394,7 +394,7 @@ config CPU_V6 | |||
394 | bool "Support ARM V6 processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX | 394 | bool "Support ARM V6 processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX |
395 | select CPU_32v6 | 395 | select CPU_32v6 |
396 | select CPU_ABRT_EV6 | 396 | select CPU_ABRT_EV6 |
397 | select CPU_PABRT_NOIFAR | 397 | select CPU_PABRT_V6 |
398 | select CPU_CACHE_V6 | 398 | select CPU_CACHE_V6 |
399 | select CPU_CACHE_VIPT | 399 | select CPU_CACHE_VIPT |
400 | select CPU_CP15_MMU | 400 | select CPU_CP15_MMU |
@@ -420,7 +420,7 @@ config CPU_V7 | |||
420 | select CPU_32v6K | 420 | select CPU_32v6K |
421 | select CPU_32v7 | 421 | select CPU_32v7 |
422 | select CPU_ABRT_EV7 | 422 | select CPU_ABRT_EV7 |
423 | select CPU_PABRT_IFAR | 423 | select CPU_PABRT_V7 |
424 | select CPU_CACHE_V7 | 424 | select CPU_CACHE_V7 |
425 | select CPU_CACHE_VIPT | 425 | select CPU_CACHE_VIPT |
426 | select CPU_CP15_MMU | 426 | select CPU_CP15_MMU |
@@ -482,10 +482,13 @@ config CPU_ABRT_EV6 | |||
482 | config CPU_ABRT_EV7 | 482 | config CPU_ABRT_EV7 |
483 | bool | 483 | bool |
484 | 484 | ||
485 | config CPU_PABRT_IFAR | 485 | config CPU_PABRT_LEGACY |
486 | bool | 486 | bool |
487 | 487 | ||
488 | config CPU_PABRT_NOIFAR | 488 | config CPU_PABRT_V6 |
489 | bool | ||
490 | |||
491 | config CPU_PABRT_V7 | ||
489 | bool | 492 | bool |
490 | 493 | ||
491 | # The cache model | 494 | # The cache model |
@@ -771,3 +774,8 @@ config CACHE_XSC3L2 | |||
771 | select OUTER_CACHE | 774 | select OUTER_CACHE |
772 | help | 775 | help |
773 | This option enables the L2 cache on XScale3. | 776 | This option enables the L2 cache on XScale3. |
777 | |||
778 | config ARM_L1_CACHE_SHIFT | ||
779 | int | ||
780 | default 6 if ARCH_OMAP3 | ||
781 | default 5 | ||
diff --git a/arch/arm/mm/Makefile b/arch/arm/mm/Makefile index 63e3f6dd0e21..055cb2aa8134 100644 --- a/arch/arm/mm/Makefile +++ b/arch/arm/mm/Makefile | |||
@@ -27,6 +27,10 @@ obj-$(CONFIG_CPU_ABRT_EV5TJ) += abort-ev5tj.o | |||
27 | obj-$(CONFIG_CPU_ABRT_EV6) += abort-ev6.o | 27 | obj-$(CONFIG_CPU_ABRT_EV6) += abort-ev6.o |
28 | obj-$(CONFIG_CPU_ABRT_EV7) += abort-ev7.o | 28 | obj-$(CONFIG_CPU_ABRT_EV7) += abort-ev7.o |
29 | 29 | ||
30 | obj-$(CONFIG_CPU_PABRT_LEGACY) += pabort-legacy.o | ||
31 | obj-$(CONFIG_CPU_PABRT_V6) += pabort-v6.o | ||
32 | obj-$(CONFIG_CPU_PABRT_V7) += pabort-v7.o | ||
33 | |||
30 | obj-$(CONFIG_CPU_CACHE_V3) += cache-v3.o | 34 | obj-$(CONFIG_CPU_CACHE_V3) += cache-v3.o |
31 | obj-$(CONFIG_CPU_CACHE_V4) += cache-v4.o | 35 | obj-$(CONFIG_CPU_CACHE_V4) += cache-v4.o |
32 | obj-$(CONFIG_CPU_CACHE_V4WT) += cache-v4wt.o | 36 | obj-$(CONFIG_CPU_CACHE_V4WT) += cache-v4wt.o |
diff --git a/arch/arm/mm/cache-v6.S b/arch/arm/mm/cache-v6.S index 8f5c13f4c936..295e25dd6381 100644 --- a/arch/arm/mm/cache-v6.S +++ b/arch/arm/mm/cache-v6.S | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/linkage.h> | 12 | #include <linux/linkage.h> |
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <asm/assembler.h> | 14 | #include <asm/assembler.h> |
15 | #include <asm/unwind.h> | ||
15 | 16 | ||
16 | #include "proc-macros.S" | 17 | #include "proc-macros.S" |
17 | 18 | ||
@@ -121,11 +122,13 @@ ENTRY(v6_coherent_kern_range) | |||
121 | * - the Icache does not read data from the write buffer | 122 | * - the Icache does not read data from the write buffer |
122 | */ | 123 | */ |
123 | ENTRY(v6_coherent_user_range) | 124 | ENTRY(v6_coherent_user_range) |
124 | 125 | UNWIND(.fnstart ) | |
125 | #ifdef HARVARD_CACHE | 126 | #ifdef HARVARD_CACHE |
126 | bic r0, r0, #CACHE_LINE_SIZE - 1 | 127 | bic r0, r0, #CACHE_LINE_SIZE - 1 |
127 | 1: mcr p15, 0, r0, c7, c10, 1 @ clean D line | 128 | 1: |
129 | USER( mcr p15, 0, r0, c7, c10, 1 ) @ clean D line | ||
128 | add r0, r0, #CACHE_LINE_SIZE | 130 | add r0, r0, #CACHE_LINE_SIZE |
131 | 2: | ||
129 | cmp r0, r1 | 132 | cmp r0, r1 |
130 | blo 1b | 133 | blo 1b |
131 | #endif | 134 | #endif |
@@ -143,6 +146,19 @@ ENTRY(v6_coherent_user_range) | |||
143 | mov pc, lr | 146 | mov pc, lr |
144 | 147 | ||
145 | /* | 148 | /* |
149 | * Fault handling for the cache operation above. If the virtual address in r0 | ||
150 | * isn't mapped, just try the next page. | ||
151 | */ | ||
152 | 9001: | ||
153 | mov r0, r0, lsr #12 | ||
154 | mov r0, r0, lsl #12 | ||
155 | add r0, r0, #4096 | ||
156 | b 2b | ||
157 | UNWIND(.fnend ) | ||
158 | ENDPROC(v6_coherent_user_range) | ||
159 | ENDPROC(v6_coherent_kern_range) | ||
160 | |||
161 | /* | ||
146 | * v6_flush_kern_dcache_page(kaddr) | 162 | * v6_flush_kern_dcache_page(kaddr) |
147 | * | 163 | * |
148 | * Ensure that the data held in the page kaddr is written back | 164 | * Ensure that the data held in the page kaddr is written back |
diff --git a/arch/arm/mm/cache-v7.S b/arch/arm/mm/cache-v7.S index bda0ec31a4e2..e1bd9759617f 100644 --- a/arch/arm/mm/cache-v7.S +++ b/arch/arm/mm/cache-v7.S | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/linkage.h> | 13 | #include <linux/linkage.h> |
14 | #include <linux/init.h> | 14 | #include <linux/init.h> |
15 | #include <asm/assembler.h> | 15 | #include <asm/assembler.h> |
16 | #include <asm/unwind.h> | ||
16 | 17 | ||
17 | #include "proc-macros.S" | 18 | #include "proc-macros.S" |
18 | 19 | ||
@@ -153,13 +154,16 @@ ENTRY(v7_coherent_kern_range) | |||
153 | * - the Icache does not read data from the write buffer | 154 | * - the Icache does not read data from the write buffer |
154 | */ | 155 | */ |
155 | ENTRY(v7_coherent_user_range) | 156 | ENTRY(v7_coherent_user_range) |
157 | UNWIND(.fnstart ) | ||
156 | dcache_line_size r2, r3 | 158 | dcache_line_size r2, r3 |
157 | sub r3, r2, #1 | 159 | sub r3, r2, #1 |
158 | bic r0, r0, r3 | 160 | bic r0, r0, r3 |
159 | 1: mcr p15, 0, r0, c7, c11, 1 @ clean D line to the point of unification | 161 | 1: |
162 | USER( mcr p15, 0, r0, c7, c11, 1 ) @ clean D line to the point of unification | ||
160 | dsb | 163 | dsb |
161 | mcr p15, 0, r0, c7, c5, 1 @ invalidate I line | 164 | USER( mcr p15, 0, r0, c7, c5, 1 ) @ invalidate I line |
162 | add r0, r0, r2 | 165 | add r0, r0, r2 |
166 | 2: | ||
163 | cmp r0, r1 | 167 | cmp r0, r1 |
164 | blo 1b | 168 | blo 1b |
165 | mov r0, #0 | 169 | mov r0, #0 |
@@ -167,6 +171,17 @@ ENTRY(v7_coherent_user_range) | |||
167 | dsb | 171 | dsb |
168 | isb | 172 | isb |
169 | mov pc, lr | 173 | mov pc, lr |
174 | |||
175 | /* | ||
176 | * Fault handling for the cache operation above. If the virtual address in r0 | ||
177 | * isn't mapped, just try the next page. | ||
178 | */ | ||
179 | 9001: | ||
180 | mov r0, r0, lsr #12 | ||
181 | mov r0, r0, lsl #12 | ||
182 | add r0, r0, #4096 | ||
183 | b 2b | ||
184 | UNWIND(.fnend ) | ||
170 | ENDPROC(v7_coherent_kern_range) | 185 | ENDPROC(v7_coherent_kern_range) |
171 | ENDPROC(v7_coherent_user_range) | 186 | ENDPROC(v7_coherent_user_range) |
172 | 187 | ||
diff --git a/arch/arm/mm/context.c b/arch/arm/mm/context.c index fc84fcc74380..6bda76a43199 100644 --- a/arch/arm/mm/context.c +++ b/arch/arm/mm/context.c | |||
@@ -59,6 +59,6 @@ void __new_context(struct mm_struct *mm) | |||
59 | } | 59 | } |
60 | spin_unlock(&cpu_asid_lock); | 60 | spin_unlock(&cpu_asid_lock); |
61 | 61 | ||
62 | mm->cpu_vm_mask = cpumask_of_cpu(smp_processor_id()); | 62 | cpumask_copy(mm_cpumask(mm), cpumask_of(smp_processor_id())); |
63 | mm->context.id = asid; | 63 | mm->context.id = asid; |
64 | } | 64 | } |
diff --git a/arch/arm/mm/fault-armv.c b/arch/arm/mm/fault-armv.c index bc0099d5ae85..d0d17b6a3703 100644 --- a/arch/arm/mm/fault-armv.c +++ b/arch/arm/mm/fault-armv.c | |||
@@ -153,14 +153,11 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long addr, pte_t pte) | |||
153 | 153 | ||
154 | page = pfn_to_page(pfn); | 154 | page = pfn_to_page(pfn); |
155 | mapping = page_mapping(page); | 155 | mapping = page_mapping(page); |
156 | if (mapping) { | ||
157 | #ifndef CONFIG_SMP | 156 | #ifndef CONFIG_SMP |
158 | int dirty = test_and_clear_bit(PG_dcache_dirty, &page->flags); | 157 | if (test_and_clear_bit(PG_dcache_dirty, &page->flags)) |
159 | 158 | __flush_dcache_page(mapping, page); | |
160 | if (dirty) | ||
161 | __flush_dcache_page(mapping, page); | ||
162 | #endif | 159 | #endif |
163 | 160 | if (mapping) { | |
164 | if (cache_is_vivt()) | 161 | if (cache_is_vivt()) |
165 | make_coherent(mapping, vma, addr, pfn); | 162 | make_coherent(mapping, vma, addr, pfn); |
166 | else if (vma->vm_flags & VM_EXEC) | 163 | else if (vma->vm_flags & VM_EXEC) |
diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c index cc8829d7e116..10e06801afb3 100644 --- a/arch/arm/mm/fault.c +++ b/arch/arm/mm/fault.c | |||
@@ -25,6 +25,19 @@ | |||
25 | 25 | ||
26 | #include "fault.h" | 26 | #include "fault.h" |
27 | 27 | ||
28 | /* | ||
29 | * Fault status register encodings. We steal bit 31 for our own purposes. | ||
30 | */ | ||
31 | #define FSR_LNX_PF (1 << 31) | ||
32 | #define FSR_WRITE (1 << 11) | ||
33 | #define FSR_FS4 (1 << 10) | ||
34 | #define FSR_FS3_0 (15) | ||
35 | |||
36 | static inline int fsr_fs(unsigned int fsr) | ||
37 | { | ||
38 | return (fsr & FSR_FS3_0) | (fsr & FSR_FS4) >> 6; | ||
39 | } | ||
40 | |||
28 | #ifdef CONFIG_MMU | 41 | #ifdef CONFIG_MMU |
29 | 42 | ||
30 | #ifdef CONFIG_KPROBES | 43 | #ifdef CONFIG_KPROBES |
@@ -182,18 +195,35 @@ void do_bad_area(unsigned long addr, unsigned int fsr, struct pt_regs *regs) | |||
182 | #define VM_FAULT_BADMAP 0x010000 | 195 | #define VM_FAULT_BADMAP 0x010000 |
183 | #define VM_FAULT_BADACCESS 0x020000 | 196 | #define VM_FAULT_BADACCESS 0x020000 |
184 | 197 | ||
185 | static int | 198 | /* |
199 | * Check that the permissions on the VMA allow for the fault which occurred. | ||
200 | * If we encountered a write fault, we must have write permission, otherwise | ||
201 | * we allow any permission. | ||
202 | */ | ||
203 | static inline bool access_error(unsigned int fsr, struct vm_area_struct *vma) | ||
204 | { | ||
205 | unsigned int mask = VM_READ | VM_WRITE | VM_EXEC; | ||
206 | |||
207 | if (fsr & FSR_WRITE) | ||
208 | mask = VM_WRITE; | ||
209 | if (fsr & FSR_LNX_PF) | ||
210 | mask = VM_EXEC; | ||
211 | |||
212 | return vma->vm_flags & mask ? false : true; | ||
213 | } | ||
214 | |||
215 | static int __kprobes | ||
186 | __do_page_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr, | 216 | __do_page_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr, |
187 | struct task_struct *tsk) | 217 | struct task_struct *tsk) |
188 | { | 218 | { |
189 | struct vm_area_struct *vma; | 219 | struct vm_area_struct *vma; |
190 | int fault, mask; | 220 | int fault; |
191 | 221 | ||
192 | vma = find_vma(mm, addr); | 222 | vma = find_vma(mm, addr); |
193 | fault = VM_FAULT_BADMAP; | 223 | fault = VM_FAULT_BADMAP; |
194 | if (!vma) | 224 | if (unlikely(!vma)) |
195 | goto out; | 225 | goto out; |
196 | if (vma->vm_start > addr) | 226 | if (unlikely(vma->vm_start > addr)) |
197 | goto check_stack; | 227 | goto check_stack; |
198 | 228 | ||
199 | /* | 229 | /* |
@@ -201,47 +231,24 @@ __do_page_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr, | |||
201 | * memory access, so we can handle it. | 231 | * memory access, so we can handle it. |
202 | */ | 232 | */ |
203 | good_area: | 233 | good_area: |
204 | if (fsr & (1 << 11)) /* write? */ | 234 | if (access_error(fsr, vma)) { |
205 | mask = VM_WRITE; | 235 | fault = VM_FAULT_BADACCESS; |
206 | else | ||
207 | mask = VM_READ|VM_EXEC|VM_WRITE; | ||
208 | |||
209 | fault = VM_FAULT_BADACCESS; | ||
210 | if (!(vma->vm_flags & mask)) | ||
211 | goto out; | 236 | goto out; |
237 | } | ||
212 | 238 | ||
213 | /* | 239 | /* |
214 | * If for any reason at all we couldn't handle | 240 | * If for any reason at all we couldn't handle the fault, make |
215 | * the fault, make sure we exit gracefully rather | 241 | * sure we exit gracefully rather than endlessly redo the fault. |
216 | * than endlessly redo the fault. | ||
217 | */ | 242 | */ |
218 | survive: | 243 | fault = handle_mm_fault(mm, vma, addr & PAGE_MASK, (fsr & FSR_WRITE) ? FAULT_FLAG_WRITE : 0); |
219 | fault = handle_mm_fault(mm, vma, addr & PAGE_MASK, (fsr & (1 << 11)) ? FAULT_FLAG_WRITE : 0); | 244 | if (unlikely(fault & VM_FAULT_ERROR)) |
220 | if (unlikely(fault & VM_FAULT_ERROR)) { | 245 | return fault; |
221 | if (fault & VM_FAULT_OOM) | ||
222 | goto out_of_memory; | ||
223 | else if (fault & VM_FAULT_SIGBUS) | ||
224 | return fault; | ||
225 | BUG(); | ||
226 | } | ||
227 | if (fault & VM_FAULT_MAJOR) | 246 | if (fault & VM_FAULT_MAJOR) |
228 | tsk->maj_flt++; | 247 | tsk->maj_flt++; |
229 | else | 248 | else |
230 | tsk->min_flt++; | 249 | tsk->min_flt++; |
231 | return fault; | 250 | return fault; |
232 | 251 | ||
233 | out_of_memory: | ||
234 | if (!is_global_init(tsk)) | ||
235 | goto out; | ||
236 | |||
237 | /* | ||
238 | * If we are out of memory for pid1, sleep for a while and retry | ||
239 | */ | ||
240 | up_read(&mm->mmap_sem); | ||
241 | yield(); | ||
242 | down_read(&mm->mmap_sem); | ||
243 | goto survive; | ||
244 | |||
245 | check_stack: | 252 | check_stack: |
246 | if (vma->vm_flags & VM_GROWSDOWN && !expand_stack(vma, addr)) | 253 | if (vma->vm_flags & VM_GROWSDOWN && !expand_stack(vma, addr)) |
247 | goto good_area; | 254 | goto good_area; |
@@ -278,6 +285,18 @@ do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs) | |||
278 | if (!user_mode(regs) && !search_exception_tables(regs->ARM_pc)) | 285 | if (!user_mode(regs) && !search_exception_tables(regs->ARM_pc)) |
279 | goto no_context; | 286 | goto no_context; |
280 | down_read(&mm->mmap_sem); | 287 | down_read(&mm->mmap_sem); |
288 | } else { | ||
289 | /* | ||
290 | * The above down_read_trylock() might have succeeded in | ||
291 | * which case, we'll have missed the might_sleep() from | ||
292 | * down_read() | ||
293 | */ | ||
294 | might_sleep(); | ||
295 | #ifdef CONFIG_DEBUG_VM | ||
296 | if (!user_mode(regs) && | ||
297 | !search_exception_tables(regs->ARM_pc)) | ||
298 | goto no_context; | ||
299 | #endif | ||
281 | } | 300 | } |
282 | 301 | ||
283 | fault = __do_page_fault(mm, addr, fsr, tsk); | 302 | fault = __do_page_fault(mm, addr, fsr, tsk); |
@@ -289,6 +308,16 @@ do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs) | |||
289 | if (likely(!(fault & (VM_FAULT_ERROR | VM_FAULT_BADMAP | VM_FAULT_BADACCESS)))) | 308 | if (likely(!(fault & (VM_FAULT_ERROR | VM_FAULT_BADMAP | VM_FAULT_BADACCESS)))) |
290 | return 0; | 309 | return 0; |
291 | 310 | ||
311 | if (fault & VM_FAULT_OOM) { | ||
312 | /* | ||
313 | * We ran out of memory, call the OOM killer, and return to | ||
314 | * userspace (which will retry the fault, or kill us if we | ||
315 | * got oom-killed) | ||
316 | */ | ||
317 | pagefault_out_of_memory(); | ||
318 | return 0; | ||
319 | } | ||
320 | |||
292 | /* | 321 | /* |
293 | * If we are in kernel mode at this point, we | 322 | * If we are in kernel mode at this point, we |
294 | * have no context to handle this fault with. | 323 | * have no context to handle this fault with. |
@@ -296,16 +325,6 @@ do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs) | |||
296 | if (!user_mode(regs)) | 325 | if (!user_mode(regs)) |
297 | goto no_context; | 326 | goto no_context; |
298 | 327 | ||
299 | if (fault & VM_FAULT_OOM) { | ||
300 | /* | ||
301 | * We ran out of memory, or some other thing | ||
302 | * happened to us that made us unable to handle | ||
303 | * the page fault gracefully. | ||
304 | */ | ||
305 | printk("VM: killing process %s\n", tsk->comm); | ||
306 | do_group_exit(SIGKILL); | ||
307 | return 0; | ||
308 | } | ||
309 | if (fault & VM_FAULT_SIGBUS) { | 328 | if (fault & VM_FAULT_SIGBUS) { |
310 | /* | 329 | /* |
311 | * We had some memory, but were unable to | 330 | * We had some memory, but were unable to |
@@ -489,10 +508,10 @@ hook_fault_code(int nr, int (*fn)(unsigned long, unsigned int, struct pt_regs *) | |||
489 | asmlinkage void __exception | 508 | asmlinkage void __exception |
490 | do_DataAbort(unsigned long addr, unsigned int fsr, struct pt_regs *regs) | 509 | do_DataAbort(unsigned long addr, unsigned int fsr, struct pt_regs *regs) |
491 | { | 510 | { |
492 | const struct fsr_info *inf = fsr_info + (fsr & 15) + ((fsr & (1 << 10)) >> 6); | 511 | const struct fsr_info *inf = fsr_info + fsr_fs(fsr); |
493 | struct siginfo info; | 512 | struct siginfo info; |
494 | 513 | ||
495 | if (!inf->fn(addr, fsr, regs)) | 514 | if (!inf->fn(addr, fsr & ~FSR_LNX_PF, regs)) |
496 | return; | 515 | return; |
497 | 516 | ||
498 | printk(KERN_ALERT "Unhandled fault: %s (0x%03x) at 0x%08lx\n", | 517 | printk(KERN_ALERT "Unhandled fault: %s (0x%03x) at 0x%08lx\n", |
@@ -505,9 +524,58 @@ do_DataAbort(unsigned long addr, unsigned int fsr, struct pt_regs *regs) | |||
505 | arm_notify_die("", regs, &info, fsr, 0); | 524 | arm_notify_die("", regs, &info, fsr, 0); |
506 | } | 525 | } |
507 | 526 | ||
527 | |||
528 | static struct fsr_info ifsr_info[] = { | ||
529 | { do_bad, SIGBUS, 0, "unknown 0" }, | ||
530 | { do_bad, SIGBUS, 0, "unknown 1" }, | ||
531 | { do_bad, SIGBUS, 0, "debug event" }, | ||
532 | { do_bad, SIGSEGV, SEGV_ACCERR, "section access flag fault" }, | ||
533 | { do_bad, SIGBUS, 0, "unknown 4" }, | ||
534 | { do_translation_fault, SIGSEGV, SEGV_MAPERR, "section translation fault" }, | ||
535 | { do_bad, SIGSEGV, SEGV_ACCERR, "page access flag fault" }, | ||
536 | { do_page_fault, SIGSEGV, SEGV_MAPERR, "page translation fault" }, | ||
537 | { do_bad, SIGBUS, 0, "external abort on non-linefetch" }, | ||
538 | { do_bad, SIGSEGV, SEGV_ACCERR, "section domain fault" }, | ||
539 | { do_bad, SIGBUS, 0, "unknown 10" }, | ||
540 | { do_bad, SIGSEGV, SEGV_ACCERR, "page domain fault" }, | ||
541 | { do_bad, SIGBUS, 0, "external abort on translation" }, | ||
542 | { do_sect_fault, SIGSEGV, SEGV_ACCERR, "section permission fault" }, | ||
543 | { do_bad, SIGBUS, 0, "external abort on translation" }, | ||
544 | { do_page_fault, SIGSEGV, SEGV_ACCERR, "page permission fault" }, | ||
545 | { do_bad, SIGBUS, 0, "unknown 16" }, | ||
546 | { do_bad, SIGBUS, 0, "unknown 17" }, | ||
547 | { do_bad, SIGBUS, 0, "unknown 18" }, | ||
548 | { do_bad, SIGBUS, 0, "unknown 19" }, | ||
549 | { do_bad, SIGBUS, 0, "unknown 20" }, | ||
550 | { do_bad, SIGBUS, 0, "unknown 21" }, | ||
551 | { do_bad, SIGBUS, 0, "unknown 22" }, | ||
552 | { do_bad, SIGBUS, 0, "unknown 23" }, | ||
553 | { do_bad, SIGBUS, 0, "unknown 24" }, | ||
554 | { do_bad, SIGBUS, 0, "unknown 25" }, | ||
555 | { do_bad, SIGBUS, 0, "unknown 26" }, | ||
556 | { do_bad, SIGBUS, 0, "unknown 27" }, | ||
557 | { do_bad, SIGBUS, 0, "unknown 28" }, | ||
558 | { do_bad, SIGBUS, 0, "unknown 29" }, | ||
559 | { do_bad, SIGBUS, 0, "unknown 30" }, | ||
560 | { do_bad, SIGBUS, 0, "unknown 31" }, | ||
561 | }; | ||
562 | |||
508 | asmlinkage void __exception | 563 | asmlinkage void __exception |
509 | do_PrefetchAbort(unsigned long addr, struct pt_regs *regs) | 564 | do_PrefetchAbort(unsigned long addr, unsigned int ifsr, struct pt_regs *regs) |
510 | { | 565 | { |
511 | do_translation_fault(addr, 0, regs); | 566 | const struct fsr_info *inf = ifsr_info + fsr_fs(ifsr); |
567 | struct siginfo info; | ||
568 | |||
569 | if (!inf->fn(addr, ifsr | FSR_LNX_PF, regs)) | ||
570 | return; | ||
571 | |||
572 | printk(KERN_ALERT "Unhandled prefetch abort: %s (0x%03x) at 0x%08lx\n", | ||
573 | inf->name, ifsr, addr); | ||
574 | |||
575 | info.si_signo = inf->sig; | ||
576 | info.si_errno = 0; | ||
577 | info.si_code = inf->code; | ||
578 | info.si_addr = (void __user *)addr; | ||
579 | arm_notify_die("", regs, &info, ifsr, 0); | ||
512 | } | 580 | } |
513 | 581 | ||
diff --git a/arch/arm/mm/flush.c b/arch/arm/mm/flush.c index 575f3ad722e7..b27942909b23 100644 --- a/arch/arm/mm/flush.c +++ b/arch/arm/mm/flush.c | |||
@@ -50,7 +50,7 @@ static void flush_pfn_alias(unsigned long pfn, unsigned long vaddr) | |||
50 | void flush_cache_mm(struct mm_struct *mm) | 50 | void flush_cache_mm(struct mm_struct *mm) |
51 | { | 51 | { |
52 | if (cache_is_vivt()) { | 52 | if (cache_is_vivt()) { |
53 | if (cpu_isset(smp_processor_id(), mm->cpu_vm_mask)) | 53 | if (cpumask_test_cpu(smp_processor_id(), mm_cpumask(mm))) |
54 | __cpuc_flush_user_all(); | 54 | __cpuc_flush_user_all(); |
55 | return; | 55 | return; |
56 | } | 56 | } |
@@ -73,7 +73,7 @@ void flush_cache_mm(struct mm_struct *mm) | |||
73 | void flush_cache_range(struct vm_area_struct *vma, unsigned long start, unsigned long end) | 73 | void flush_cache_range(struct vm_area_struct *vma, unsigned long start, unsigned long end) |
74 | { | 74 | { |
75 | if (cache_is_vivt()) { | 75 | if (cache_is_vivt()) { |
76 | if (cpu_isset(smp_processor_id(), vma->vm_mm->cpu_vm_mask)) | 76 | if (cpumask_test_cpu(smp_processor_id(), mm_cpumask(vma->vm_mm))) |
77 | __cpuc_flush_user_range(start & PAGE_MASK, PAGE_ALIGN(end), | 77 | __cpuc_flush_user_range(start & PAGE_MASK, PAGE_ALIGN(end), |
78 | vma->vm_flags); | 78 | vma->vm_flags); |
79 | return; | 79 | return; |
@@ -97,7 +97,7 @@ void flush_cache_range(struct vm_area_struct *vma, unsigned long start, unsigned | |||
97 | void flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, unsigned long pfn) | 97 | void flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, unsigned long pfn) |
98 | { | 98 | { |
99 | if (cache_is_vivt()) { | 99 | if (cache_is_vivt()) { |
100 | if (cpu_isset(smp_processor_id(), vma->vm_mm->cpu_vm_mask)) { | 100 | if (cpumask_test_cpu(smp_processor_id(), mm_cpumask(vma->vm_mm))) { |
101 | unsigned long addr = user_addr & PAGE_MASK; | 101 | unsigned long addr = user_addr & PAGE_MASK; |
102 | __cpuc_flush_user_range(addr, addr + PAGE_SIZE, vma->vm_flags); | 102 | __cpuc_flush_user_range(addr, addr + PAGE_SIZE, vma->vm_flags); |
103 | } | 103 | } |
@@ -113,7 +113,7 @@ void flush_ptrace_access(struct vm_area_struct *vma, struct page *page, | |||
113 | unsigned long len, int write) | 113 | unsigned long len, int write) |
114 | { | 114 | { |
115 | if (cache_is_vivt()) { | 115 | if (cache_is_vivt()) { |
116 | if (cpu_isset(smp_processor_id(), vma->vm_mm->cpu_vm_mask)) { | 116 | if (cpumask_test_cpu(smp_processor_id(), mm_cpumask(vma->vm_mm))) { |
117 | unsigned long addr = (unsigned long)kaddr; | 117 | unsigned long addr = (unsigned long)kaddr; |
118 | __cpuc_coherent_kern_range(addr, addr + len); | 118 | __cpuc_coherent_kern_range(addr, addr + len); |
119 | } | 119 | } |
@@ -126,7 +126,7 @@ void flush_ptrace_access(struct vm_area_struct *vma, struct page *page, | |||
126 | } | 126 | } |
127 | 127 | ||
128 | /* VIPT non-aliasing cache */ | 128 | /* VIPT non-aliasing cache */ |
129 | if (cpu_isset(smp_processor_id(), vma->vm_mm->cpu_vm_mask) && | 129 | if (cpumask_test_cpu(smp_processor_id(), mm_cpumask(vma->vm_mm)) && |
130 | vma->vm_flags & VM_EXEC) { | 130 | vma->vm_flags & VM_EXEC) { |
131 | unsigned long addr = (unsigned long)kaddr; | 131 | unsigned long addr = (unsigned long)kaddr; |
132 | /* only flushing the kernel mapping on non-aliasing VIPT */ | 132 | /* only flushing the kernel mapping on non-aliasing VIPT */ |
diff --git a/arch/arm/mm/highmem.c b/arch/arm/mm/highmem.c index 73cae57fa707..30f82fb5918c 100644 --- a/arch/arm/mm/highmem.c +++ b/arch/arm/mm/highmem.c | |||
@@ -46,6 +46,8 @@ void *kmap_atomic(struct page *page, enum km_type type) | |||
46 | if (!PageHighMem(page)) | 46 | if (!PageHighMem(page)) |
47 | return page_address(page); | 47 | return page_address(page); |
48 | 48 | ||
49 | debug_kmap_atomic(type); | ||
50 | |||
49 | kmap = kmap_high_get(page); | 51 | kmap = kmap_high_get(page); |
50 | if (kmap) | 52 | if (kmap) |
51 | return kmap; | 53 | return kmap; |
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index f982606d7bf9..40940d7ce4ff 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c | |||
@@ -483,7 +483,7 @@ free_memmap(int node, unsigned long start_pfn, unsigned long end_pfn) | |||
483 | /* | 483 | /* |
484 | * Convert start_pfn/end_pfn to a struct page pointer. | 484 | * Convert start_pfn/end_pfn to a struct page pointer. |
485 | */ | 485 | */ |
486 | start_pg = pfn_to_page(start_pfn); | 486 | start_pg = pfn_to_page(start_pfn - 1) + 1; |
487 | end_pg = pfn_to_page(end_pfn); | 487 | end_pg = pfn_to_page(end_pfn); |
488 | 488 | ||
489 | /* | 489 | /* |
@@ -613,6 +613,14 @@ void __init mem_init(void) | |||
613 | 613 | ||
614 | void free_initmem(void) | 614 | void free_initmem(void) |
615 | { | 615 | { |
616 | #ifdef CONFIG_HAVE_TCM | ||
617 | extern char *__tcm_start, *__tcm_end; | ||
618 | |||
619 | totalram_pages += free_area(__phys_to_pfn(__pa(__tcm_start)), | ||
620 | __phys_to_pfn(__pa(__tcm_end)), | ||
621 | "TCM link"); | ||
622 | #endif | ||
623 | |||
616 | if (!machine_is_integrator() && !machine_is_cintegrator()) | 624 | if (!machine_is_integrator() && !machine_is_cintegrator()) |
617 | totalram_pages += free_area(__phys_to_pfn(__pa(__init_begin)), | 625 | totalram_pages += free_area(__phys_to_pfn(__pa(__init_begin)), |
618 | __phys_to_pfn(__pa(__init_end)), | 626 | __phys_to_pfn(__pa(__init_end)), |
diff --git a/arch/arm/mm/mmap.c b/arch/arm/mm/mmap.c index f7457fea6de8..2b7996401b0f 100644 --- a/arch/arm/mm/mmap.c +++ b/arch/arm/mm/mmap.c | |||
@@ -124,7 +124,7 @@ int valid_phys_addr_range(unsigned long addr, size_t size) | |||
124 | { | 124 | { |
125 | if (addr < PHYS_OFFSET) | 125 | if (addr < PHYS_OFFSET) |
126 | return 0; | 126 | return 0; |
127 | if (addr + size >= __pa(high_memory - 1)) | 127 | if (addr + size > __pa(high_memory - 1) + 1) |
128 | return 0; | 128 | return 0; |
129 | 129 | ||
130 | return 1; | 130 | return 1; |
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 4426ee67ceca..02243eeccf50 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <asm/cachetype.h> | 21 | #include <asm/cachetype.h> |
22 | #include <asm/setup.h> | 22 | #include <asm/setup.h> |
23 | #include <asm/sizes.h> | 23 | #include <asm/sizes.h> |
24 | #include <asm/smp_plat.h> | ||
24 | #include <asm/tlb.h> | 25 | #include <asm/tlb.h> |
25 | #include <asm/highmem.h> | 26 | #include <asm/highmem.h> |
26 | 27 | ||
@@ -709,10 +710,6 @@ static void __init sanity_check_meminfo(void) | |||
709 | if (meminfo.nr_banks >= NR_BANKS) { | 710 | if (meminfo.nr_banks >= NR_BANKS) { |
710 | printk(KERN_CRIT "NR_BANKS too low, " | 711 | printk(KERN_CRIT "NR_BANKS too low, " |
711 | "ignoring high memory\n"); | 712 | "ignoring high memory\n"); |
712 | } else if (cache_is_vipt_aliasing()) { | ||
713 | printk(KERN_CRIT "HIGHMEM is not yet supported " | ||
714 | "with VIPT aliasing cache, " | ||
715 | "ignoring high memory\n"); | ||
716 | } else { | 713 | } else { |
717 | memmove(bank + 1, bank, | 714 | memmove(bank + 1, bank, |
718 | (meminfo.nr_banks - i) * sizeof(*bank)); | 715 | (meminfo.nr_banks - i) * sizeof(*bank)); |
@@ -726,6 +723,8 @@ static void __init sanity_check_meminfo(void) | |||
726 | bank->size = VMALLOC_MIN - __va(bank->start); | 723 | bank->size = VMALLOC_MIN - __va(bank->start); |
727 | } | 724 | } |
728 | #else | 725 | #else |
726 | bank->highmem = highmem; | ||
727 | |||
729 | /* | 728 | /* |
730 | * Check whether this memory bank would entirely overlap | 729 | * Check whether this memory bank would entirely overlap |
731 | * the vmalloc area. | 730 | * the vmalloc area. |
@@ -754,6 +753,38 @@ static void __init sanity_check_meminfo(void) | |||
754 | #endif | 753 | #endif |
755 | j++; | 754 | j++; |
756 | } | 755 | } |
756 | #ifdef CONFIG_HIGHMEM | ||
757 | if (highmem) { | ||
758 | const char *reason = NULL; | ||
759 | |||
760 | if (cache_is_vipt_aliasing()) { | ||
761 | /* | ||
762 | * Interactions between kmap and other mappings | ||
763 | * make highmem support with aliasing VIPT caches | ||
764 | * rather difficult. | ||
765 | */ | ||
766 | reason = "with VIPT aliasing cache"; | ||
767 | #ifdef CONFIG_SMP | ||
768 | } else if (tlb_ops_need_broadcast()) { | ||
769 | /* | ||
770 | * kmap_high needs to occasionally flush TLB entries, | ||
771 | * however, if the TLB entries need to be broadcast | ||
772 | * we may deadlock: | ||
773 | * kmap_high(irqs off)->flush_all_zero_pkmaps-> | ||
774 | * flush_tlb_kernel_range->smp_call_function_many | ||
775 | * (must not be called with irqs off) | ||
776 | */ | ||
777 | reason = "without hardware TLB ops broadcasting"; | ||
778 | #endif | ||
779 | } | ||
780 | if (reason) { | ||
781 | printk(KERN_CRIT "HIGHMEM is not supported %s, ignoring high memory\n", | ||
782 | reason); | ||
783 | while (j > 0 && meminfo.bank[j - 1].highmem) | ||
784 | j--; | ||
785 | } | ||
786 | } | ||
787 | #endif | ||
757 | meminfo.nr_banks = j; | 788 | meminfo.nr_banks = j; |
758 | } | 789 | } |
759 | 790 | ||
diff --git a/arch/arm/mm/pabort-legacy.S b/arch/arm/mm/pabort-legacy.S new file mode 100644 index 000000000000..87970eba88ea --- /dev/null +++ b/arch/arm/mm/pabort-legacy.S | |||
@@ -0,0 +1,19 @@ | |||
1 | #include <linux/linkage.h> | ||
2 | #include <asm/assembler.h> | ||
3 | |||
4 | /* | ||
5 | * Function: legacy_pabort | ||
6 | * | ||
7 | * Params : r0 = address of aborted instruction | ||
8 | * | ||
9 | * Returns : r0 = address of abort | ||
10 | * : r1 = Simulated IFSR with section translation fault status | ||
11 | * | ||
12 | * Purpose : obtain information about current prefetch abort. | ||
13 | */ | ||
14 | |||
15 | .align 5 | ||
16 | ENTRY(legacy_pabort) | ||
17 | mov r1, #5 | ||
18 | mov pc, lr | ||
19 | ENDPROC(legacy_pabort) | ||
diff --git a/arch/arm/mm/pabort-v6.S b/arch/arm/mm/pabort-v6.S new file mode 100644 index 000000000000..06e3d1ef2115 --- /dev/null +++ b/arch/arm/mm/pabort-v6.S | |||
@@ -0,0 +1,19 @@ | |||
1 | #include <linux/linkage.h> | ||
2 | #include <asm/assembler.h> | ||
3 | |||
4 | /* | ||
5 | * Function: v6_pabort | ||
6 | * | ||
7 | * Params : r0 = address of aborted instruction | ||
8 | * | ||
9 | * Returns : r0 = address of abort | ||
10 | * : r1 = IFSR | ||
11 | * | ||
12 | * Purpose : obtain information about current prefetch abort. | ||
13 | */ | ||
14 | |||
15 | .align 5 | ||
16 | ENTRY(v6_pabort) | ||
17 | mrc p15, 0, r1, c5, c0, 1 @ get IFSR | ||
18 | mov pc, lr | ||
19 | ENDPROC(v6_pabort) | ||
diff --git a/arch/arm/mm/pabort-v7.S b/arch/arm/mm/pabort-v7.S new file mode 100644 index 000000000000..a8b3b300a18d --- /dev/null +++ b/arch/arm/mm/pabort-v7.S | |||
@@ -0,0 +1,20 @@ | |||
1 | #include <linux/linkage.h> | ||
2 | #include <asm/assembler.h> | ||
3 | |||
4 | /* | ||
5 | * Function: v6_pabort | ||
6 | * | ||
7 | * Params : r0 = address of aborted instruction | ||
8 | * | ||
9 | * Returns : r0 = address of abort | ||
10 | * : r1 = IFSR | ||
11 | * | ||
12 | * Purpose : obtain information about current prefetch abort. | ||
13 | */ | ||
14 | |||
15 | .align 5 | ||
16 | ENTRY(v7_pabort) | ||
17 | mrc p15, 0, r0, c6, c0, 2 @ get IFAR | ||
18 | mrc p15, 0, r1, c5, c0, 1 @ get IFSR | ||
19 | mov pc, lr | ||
20 | ENDPROC(v7_pabort) | ||
diff --git a/arch/arm/mm/proc-arm1020.S b/arch/arm/mm/proc-arm1020.S index b5551bf010aa..d9fb4b98c49f 100644 --- a/arch/arm/mm/proc-arm1020.S +++ b/arch/arm/mm/proc-arm1020.S | |||
@@ -449,7 +449,7 @@ arm1020_crval: | |||
449 | .type arm1020_processor_functions, #object | 449 | .type arm1020_processor_functions, #object |
450 | arm1020_processor_functions: | 450 | arm1020_processor_functions: |
451 | .word v4t_early_abort | 451 | .word v4t_early_abort |
452 | .word pabort_noifar | 452 | .word legacy_pabort |
453 | .word cpu_arm1020_proc_init | 453 | .word cpu_arm1020_proc_init |
454 | .word cpu_arm1020_proc_fin | 454 | .word cpu_arm1020_proc_fin |
455 | .word cpu_arm1020_reset | 455 | .word cpu_arm1020_reset |
diff --git a/arch/arm/mm/proc-arm1020e.S b/arch/arm/mm/proc-arm1020e.S index 8bc6740c29eb..7453b75dcea5 100644 --- a/arch/arm/mm/proc-arm1020e.S +++ b/arch/arm/mm/proc-arm1020e.S | |||
@@ -430,7 +430,7 @@ arm1020e_crval: | |||
430 | .type arm1020e_processor_functions, #object | 430 | .type arm1020e_processor_functions, #object |
431 | arm1020e_processor_functions: | 431 | arm1020e_processor_functions: |
432 | .word v4t_early_abort | 432 | .word v4t_early_abort |
433 | .word pabort_noifar | 433 | .word legacy_pabort |
434 | .word cpu_arm1020e_proc_init | 434 | .word cpu_arm1020e_proc_init |
435 | .word cpu_arm1020e_proc_fin | 435 | .word cpu_arm1020e_proc_fin |
436 | .word cpu_arm1020e_reset | 436 | .word cpu_arm1020e_reset |
diff --git a/arch/arm/mm/proc-arm1022.S b/arch/arm/mm/proc-arm1022.S index 2cd03e66c0a3..8eb72d75a8b6 100644 --- a/arch/arm/mm/proc-arm1022.S +++ b/arch/arm/mm/proc-arm1022.S | |||
@@ -413,7 +413,7 @@ arm1022_crval: | |||
413 | .type arm1022_processor_functions, #object | 413 | .type arm1022_processor_functions, #object |
414 | arm1022_processor_functions: | 414 | arm1022_processor_functions: |
415 | .word v4t_early_abort | 415 | .word v4t_early_abort |
416 | .word pabort_noifar | 416 | .word legacy_pabort |
417 | .word cpu_arm1022_proc_init | 417 | .word cpu_arm1022_proc_init |
418 | .word cpu_arm1022_proc_fin | 418 | .word cpu_arm1022_proc_fin |
419 | .word cpu_arm1022_reset | 419 | .word cpu_arm1022_reset |
diff --git a/arch/arm/mm/proc-arm1026.S b/arch/arm/mm/proc-arm1026.S index ad961a897f6e..3b59f0d67139 100644 --- a/arch/arm/mm/proc-arm1026.S +++ b/arch/arm/mm/proc-arm1026.S | |||
@@ -408,7 +408,7 @@ arm1026_crval: | |||
408 | .type arm1026_processor_functions, #object | 408 | .type arm1026_processor_functions, #object |
409 | arm1026_processor_functions: | 409 | arm1026_processor_functions: |
410 | .word v5t_early_abort | 410 | .word v5t_early_abort |
411 | .word pabort_noifar | 411 | .word legacy_pabort |
412 | .word cpu_arm1026_proc_init | 412 | .word cpu_arm1026_proc_init |
413 | .word cpu_arm1026_proc_fin | 413 | .word cpu_arm1026_proc_fin |
414 | .word cpu_arm1026_reset | 414 | .word cpu_arm1026_reset |
diff --git a/arch/arm/mm/proc-arm6_7.S b/arch/arm/mm/proc-arm6_7.S index 80d6e1de069a..3f9cd3d8f6d5 100644 --- a/arch/arm/mm/proc-arm6_7.S +++ b/arch/arm/mm/proc-arm6_7.S | |||
@@ -278,7 +278,7 @@ __arm7_setup: mov r0, #0 | |||
278 | .type arm6_processor_functions, #object | 278 | .type arm6_processor_functions, #object |
279 | ENTRY(arm6_processor_functions) | 279 | ENTRY(arm6_processor_functions) |
280 | .word cpu_arm6_data_abort | 280 | .word cpu_arm6_data_abort |
281 | .word pabort_noifar | 281 | .word legacy_pabort |
282 | .word cpu_arm6_proc_init | 282 | .word cpu_arm6_proc_init |
283 | .word cpu_arm6_proc_fin | 283 | .word cpu_arm6_proc_fin |
284 | .word cpu_arm6_reset | 284 | .word cpu_arm6_reset |
@@ -295,7 +295,7 @@ ENTRY(arm6_processor_functions) | |||
295 | .type arm7_processor_functions, #object | 295 | .type arm7_processor_functions, #object |
296 | ENTRY(arm7_processor_functions) | 296 | ENTRY(arm7_processor_functions) |
297 | .word cpu_arm7_data_abort | 297 | .word cpu_arm7_data_abort |
298 | .word pabort_noifar | 298 | .word legacy_pabort |
299 | .word cpu_arm7_proc_init | 299 | .word cpu_arm7_proc_init |
300 | .word cpu_arm7_proc_fin | 300 | .word cpu_arm7_proc_fin |
301 | .word cpu_arm7_reset | 301 | .word cpu_arm7_reset |
diff --git a/arch/arm/mm/proc-arm720.S b/arch/arm/mm/proc-arm720.S index 85ae18695f10..0b62de244666 100644 --- a/arch/arm/mm/proc-arm720.S +++ b/arch/arm/mm/proc-arm720.S | |||
@@ -181,7 +181,7 @@ arm720_crval: | |||
181 | .type arm720_processor_functions, #object | 181 | .type arm720_processor_functions, #object |
182 | ENTRY(arm720_processor_functions) | 182 | ENTRY(arm720_processor_functions) |
183 | .word v4t_late_abort | 183 | .word v4t_late_abort |
184 | .word pabort_noifar | 184 | .word legacy_pabort |
185 | .word cpu_arm720_proc_init | 185 | .word cpu_arm720_proc_init |
186 | .word cpu_arm720_proc_fin | 186 | .word cpu_arm720_proc_fin |
187 | .word cpu_arm720_reset | 187 | .word cpu_arm720_reset |
diff --git a/arch/arm/mm/proc-arm740.S b/arch/arm/mm/proc-arm740.S index 4f95bee63e95..01860cdeb2ec 100644 --- a/arch/arm/mm/proc-arm740.S +++ b/arch/arm/mm/proc-arm740.S | |||
@@ -126,7 +126,7 @@ __arm740_setup: | |||
126 | .type arm740_processor_functions, #object | 126 | .type arm740_processor_functions, #object |
127 | ENTRY(arm740_processor_functions) | 127 | ENTRY(arm740_processor_functions) |
128 | .word v4t_late_abort | 128 | .word v4t_late_abort |
129 | .word pabort_noifar | 129 | .word legacy_pabort |
130 | .word cpu_arm740_proc_init | 130 | .word cpu_arm740_proc_init |
131 | .word cpu_arm740_proc_fin | 131 | .word cpu_arm740_proc_fin |
132 | .word cpu_arm740_reset | 132 | .word cpu_arm740_reset |
diff --git a/arch/arm/mm/proc-arm7tdmi.S b/arch/arm/mm/proc-arm7tdmi.S index 93e05fa7bed4..1201b9863829 100644 --- a/arch/arm/mm/proc-arm7tdmi.S +++ b/arch/arm/mm/proc-arm7tdmi.S | |||
@@ -64,7 +64,7 @@ __arm7tdmi_setup: | |||
64 | .type arm7tdmi_processor_functions, #object | 64 | .type arm7tdmi_processor_functions, #object |
65 | ENTRY(arm7tdmi_processor_functions) | 65 | ENTRY(arm7tdmi_processor_functions) |
66 | .word v4t_late_abort | 66 | .word v4t_late_abort |
67 | .word pabort_noifar | 67 | .word legacy_pabort |
68 | .word cpu_arm7tdmi_proc_init | 68 | .word cpu_arm7tdmi_proc_init |
69 | .word cpu_arm7tdmi_proc_fin | 69 | .word cpu_arm7tdmi_proc_fin |
70 | .word cpu_arm7tdmi_reset | 70 | .word cpu_arm7tdmi_reset |
diff --git a/arch/arm/mm/proc-arm920.S b/arch/arm/mm/proc-arm920.S index 914d688394fc..2b7c197cc58d 100644 --- a/arch/arm/mm/proc-arm920.S +++ b/arch/arm/mm/proc-arm920.S | |||
@@ -395,7 +395,7 @@ arm920_crval: | |||
395 | .type arm920_processor_functions, #object | 395 | .type arm920_processor_functions, #object |
396 | arm920_processor_functions: | 396 | arm920_processor_functions: |
397 | .word v4t_early_abort | 397 | .word v4t_early_abort |
398 | .word pabort_noifar | 398 | .word legacy_pabort |
399 | .word cpu_arm920_proc_init | 399 | .word cpu_arm920_proc_init |
400 | .word cpu_arm920_proc_fin | 400 | .word cpu_arm920_proc_fin |
401 | .word cpu_arm920_reset | 401 | .word cpu_arm920_reset |
diff --git a/arch/arm/mm/proc-arm922.S b/arch/arm/mm/proc-arm922.S index 51c9c9859e58..06a1aa4e3398 100644 --- a/arch/arm/mm/proc-arm922.S +++ b/arch/arm/mm/proc-arm922.S | |||
@@ -399,7 +399,7 @@ arm922_crval: | |||
399 | .type arm922_processor_functions, #object | 399 | .type arm922_processor_functions, #object |
400 | arm922_processor_functions: | 400 | arm922_processor_functions: |
401 | .word v4t_early_abort | 401 | .word v4t_early_abort |
402 | .word pabort_noifar | 402 | .word legacy_pabort |
403 | .word cpu_arm922_proc_init | 403 | .word cpu_arm922_proc_init |
404 | .word cpu_arm922_proc_fin | 404 | .word cpu_arm922_proc_fin |
405 | .word cpu_arm922_reset | 405 | .word cpu_arm922_reset |
diff --git a/arch/arm/mm/proc-arm925.S b/arch/arm/mm/proc-arm925.S index 2724526d89c1..cb53435a85ae 100644 --- a/arch/arm/mm/proc-arm925.S +++ b/arch/arm/mm/proc-arm925.S | |||
@@ -462,7 +462,7 @@ arm925_crval: | |||
462 | .type arm925_processor_functions, #object | 462 | .type arm925_processor_functions, #object |
463 | arm925_processor_functions: | 463 | arm925_processor_functions: |
464 | .word v4t_early_abort | 464 | .word v4t_early_abort |
465 | .word pabort_noifar | 465 | .word legacy_pabort |
466 | .word cpu_arm925_proc_init | 466 | .word cpu_arm925_proc_init |
467 | .word cpu_arm925_proc_fin | 467 | .word cpu_arm925_proc_fin |
468 | .word cpu_arm925_reset | 468 | .word cpu_arm925_reset |
diff --git a/arch/arm/mm/proc-arm926.S b/arch/arm/mm/proc-arm926.S index 54466937bff9..1c4848704bb3 100644 --- a/arch/arm/mm/proc-arm926.S +++ b/arch/arm/mm/proc-arm926.S | |||
@@ -415,7 +415,7 @@ arm926_crval: | |||
415 | .type arm926_processor_functions, #object | 415 | .type arm926_processor_functions, #object |
416 | arm926_processor_functions: | 416 | arm926_processor_functions: |
417 | .word v5tj_early_abort | 417 | .word v5tj_early_abort |
418 | .word pabort_noifar | 418 | .word legacy_pabort |
419 | .word cpu_arm926_proc_init | 419 | .word cpu_arm926_proc_init |
420 | .word cpu_arm926_proc_fin | 420 | .word cpu_arm926_proc_fin |
421 | .word cpu_arm926_reset | 421 | .word cpu_arm926_reset |
diff --git a/arch/arm/mm/proc-arm940.S b/arch/arm/mm/proc-arm940.S index f595117caf55..5b0f8464c8f2 100644 --- a/arch/arm/mm/proc-arm940.S +++ b/arch/arm/mm/proc-arm940.S | |||
@@ -322,7 +322,7 @@ __arm940_setup: | |||
322 | .type arm940_processor_functions, #object | 322 | .type arm940_processor_functions, #object |
323 | ENTRY(arm940_processor_functions) | 323 | ENTRY(arm940_processor_functions) |
324 | .word nommu_early_abort | 324 | .word nommu_early_abort |
325 | .word pabort_noifar | 325 | .word legacy_pabort |
326 | .word cpu_arm940_proc_init | 326 | .word cpu_arm940_proc_init |
327 | .word cpu_arm940_proc_fin | 327 | .word cpu_arm940_proc_fin |
328 | .word cpu_arm940_reset | 328 | .word cpu_arm940_reset |
diff --git a/arch/arm/mm/proc-arm946.S b/arch/arm/mm/proc-arm946.S index e03f6ff1fb26..40c0449a139b 100644 --- a/arch/arm/mm/proc-arm946.S +++ b/arch/arm/mm/proc-arm946.S | |||
@@ -377,7 +377,7 @@ __arm946_setup: | |||
377 | .type arm946_processor_functions, #object | 377 | .type arm946_processor_functions, #object |
378 | ENTRY(arm946_processor_functions) | 378 | ENTRY(arm946_processor_functions) |
379 | .word nommu_early_abort | 379 | .word nommu_early_abort |
380 | .word pabort_noifar | 380 | .word legacy_pabort |
381 | .word cpu_arm946_proc_init | 381 | .word cpu_arm946_proc_init |
382 | .word cpu_arm946_proc_fin | 382 | .word cpu_arm946_proc_fin |
383 | .word cpu_arm946_reset | 383 | .word cpu_arm946_reset |
diff --git a/arch/arm/mm/proc-arm9tdmi.S b/arch/arm/mm/proc-arm9tdmi.S index be6c11d2b3fb..28545c29dbcd 100644 --- a/arch/arm/mm/proc-arm9tdmi.S +++ b/arch/arm/mm/proc-arm9tdmi.S | |||
@@ -64,7 +64,7 @@ __arm9tdmi_setup: | |||
64 | .type arm9tdmi_processor_functions, #object | 64 | .type arm9tdmi_processor_functions, #object |
65 | ENTRY(arm9tdmi_processor_functions) | 65 | ENTRY(arm9tdmi_processor_functions) |
66 | .word nommu_early_abort | 66 | .word nommu_early_abort |
67 | .word pabort_noifar | 67 | .word legacy_pabort |
68 | .word cpu_arm9tdmi_proc_init | 68 | .word cpu_arm9tdmi_proc_init |
69 | .word cpu_arm9tdmi_proc_fin | 69 | .word cpu_arm9tdmi_proc_fin |
70 | .word cpu_arm9tdmi_reset | 70 | .word cpu_arm9tdmi_reset |
diff --git a/arch/arm/mm/proc-fa526.S b/arch/arm/mm/proc-fa526.S index 08b8a955d5d7..08f5ac237ad4 100644 --- a/arch/arm/mm/proc-fa526.S +++ b/arch/arm/mm/proc-fa526.S | |||
@@ -191,7 +191,7 @@ fa526_cr1_set: | |||
191 | .type fa526_processor_functions, #object | 191 | .type fa526_processor_functions, #object |
192 | fa526_processor_functions: | 192 | fa526_processor_functions: |
193 | .word v4_early_abort | 193 | .word v4_early_abort |
194 | .word pabort_noifar | 194 | .word legacy_pabort |
195 | .word cpu_fa526_proc_init | 195 | .word cpu_fa526_proc_init |
196 | .word cpu_fa526_proc_fin | 196 | .word cpu_fa526_proc_fin |
197 | .word cpu_fa526_reset | 197 | .word cpu_fa526_reset |
diff --git a/arch/arm/mm/proc-feroceon.S b/arch/arm/mm/proc-feroceon.S index 0fe1f8fc3488..d0d7795200fc 100644 --- a/arch/arm/mm/proc-feroceon.S +++ b/arch/arm/mm/proc-feroceon.S | |||
@@ -499,7 +499,7 @@ feroceon_crval: | |||
499 | .type feroceon_processor_functions, #object | 499 | .type feroceon_processor_functions, #object |
500 | feroceon_processor_functions: | 500 | feroceon_processor_functions: |
501 | .word v5t_early_abort | 501 | .word v5t_early_abort |
502 | .word pabort_noifar | 502 | .word legacy_pabort |
503 | .word cpu_feroceon_proc_init | 503 | .word cpu_feroceon_proc_init |
504 | .word cpu_feroceon_proc_fin | 504 | .word cpu_feroceon_proc_fin |
505 | .word cpu_feroceon_reset | 505 | .word cpu_feroceon_reset |
diff --git a/arch/arm/mm/proc-mohawk.S b/arch/arm/mm/proc-mohawk.S index 540f5078496b..52b5fd74fbb3 100644 --- a/arch/arm/mm/proc-mohawk.S +++ b/arch/arm/mm/proc-mohawk.S | |||
@@ -359,7 +359,7 @@ mohawk_crval: | |||
359 | .type mohawk_processor_functions, #object | 359 | .type mohawk_processor_functions, #object |
360 | mohawk_processor_functions: | 360 | mohawk_processor_functions: |
361 | .word v5t_early_abort | 361 | .word v5t_early_abort |
362 | .word pabort_noifar | 362 | .word legacy_pabort |
363 | .word cpu_mohawk_proc_init | 363 | .word cpu_mohawk_proc_init |
364 | .word cpu_mohawk_proc_fin | 364 | .word cpu_mohawk_proc_fin |
365 | .word cpu_mohawk_reset | 365 | .word cpu_mohawk_reset |
diff --git a/arch/arm/mm/proc-sa110.S b/arch/arm/mm/proc-sa110.S index 90a7e5279f29..7b706b389906 100644 --- a/arch/arm/mm/proc-sa110.S +++ b/arch/arm/mm/proc-sa110.S | |||
@@ -199,7 +199,7 @@ sa110_crval: | |||
199 | .type sa110_processor_functions, #object | 199 | .type sa110_processor_functions, #object |
200 | ENTRY(sa110_processor_functions) | 200 | ENTRY(sa110_processor_functions) |
201 | .word v4_early_abort | 201 | .word v4_early_abort |
202 | .word pabort_noifar | 202 | .word legacy_pabort |
203 | .word cpu_sa110_proc_init | 203 | .word cpu_sa110_proc_init |
204 | .word cpu_sa110_proc_fin | 204 | .word cpu_sa110_proc_fin |
205 | .word cpu_sa110_reset | 205 | .word cpu_sa110_reset |
diff --git a/arch/arm/mm/proc-sa1100.S b/arch/arm/mm/proc-sa1100.S index 451e2d953e2a..ee7700242c19 100644 --- a/arch/arm/mm/proc-sa1100.S +++ b/arch/arm/mm/proc-sa1100.S | |||
@@ -214,7 +214,7 @@ sa1100_crval: | |||
214 | .type sa1100_processor_functions, #object | 214 | .type sa1100_processor_functions, #object |
215 | ENTRY(sa1100_processor_functions) | 215 | ENTRY(sa1100_processor_functions) |
216 | .word v4_early_abort | 216 | .word v4_early_abort |
217 | .word pabort_noifar | 217 | .word legacy_pabort |
218 | .word cpu_sa1100_proc_init | 218 | .word cpu_sa1100_proc_init |
219 | .word cpu_sa1100_proc_fin | 219 | .word cpu_sa1100_proc_fin |
220 | .word cpu_sa1100_reset | 220 | .word cpu_sa1100_reset |
diff --git a/arch/arm/mm/proc-v6.S b/arch/arm/mm/proc-v6.S index 524ddae92595..194737d60a22 100644 --- a/arch/arm/mm/proc-v6.S +++ b/arch/arm/mm/proc-v6.S | |||
@@ -191,7 +191,7 @@ v6_crval: | |||
191 | .type v6_processor_functions, #object | 191 | .type v6_processor_functions, #object |
192 | ENTRY(v6_processor_functions) | 192 | ENTRY(v6_processor_functions) |
193 | .word v6_early_abort | 193 | .word v6_early_abort |
194 | .word pabort_noifar | 194 | .word v6_pabort |
195 | .word cpu_v6_proc_init | 195 | .word cpu_v6_proc_init |
196 | .word cpu_v6_proc_fin | 196 | .word cpu_v6_proc_fin |
197 | .word cpu_v6_reset | 197 | .word cpu_v6_reset |
diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S index f3fa1c32fe92..23ebcf6eab9f 100644 --- a/arch/arm/mm/proc-v7.S +++ b/arch/arm/mm/proc-v7.S | |||
@@ -295,7 +295,7 @@ __v7_setup_stack: | |||
295 | .type v7_processor_functions, #object | 295 | .type v7_processor_functions, #object |
296 | ENTRY(v7_processor_functions) | 296 | ENTRY(v7_processor_functions) |
297 | .word v7_early_abort | 297 | .word v7_early_abort |
298 | .word pabort_ifar | 298 | .word v7_pabort |
299 | .word cpu_v7_proc_init | 299 | .word cpu_v7_proc_init |
300 | .word cpu_v7_proc_fin | 300 | .word cpu_v7_proc_fin |
301 | .word cpu_v7_reset | 301 | .word cpu_v7_reset |
diff --git a/arch/arm/mm/proc-xsc3.S b/arch/arm/mm/proc-xsc3.S index 33515c214b92..2028f3702881 100644 --- a/arch/arm/mm/proc-xsc3.S +++ b/arch/arm/mm/proc-xsc3.S | |||
@@ -428,7 +428,7 @@ xsc3_crval: | |||
428 | .type xsc3_processor_functions, #object | 428 | .type xsc3_processor_functions, #object |
429 | ENTRY(xsc3_processor_functions) | 429 | ENTRY(xsc3_processor_functions) |
430 | .word v5t_early_abort | 430 | .word v5t_early_abort |
431 | .word pabort_noifar | 431 | .word legacy_pabort |
432 | .word cpu_xsc3_proc_init | 432 | .word cpu_xsc3_proc_init |
433 | .word cpu_xsc3_proc_fin | 433 | .word cpu_xsc3_proc_fin |
434 | .word cpu_xsc3_reset | 434 | .word cpu_xsc3_reset |
diff --git a/arch/arm/mm/proc-xscale.S b/arch/arm/mm/proc-xscale.S index 423394260bcb..f056c283682d 100644 --- a/arch/arm/mm/proc-xscale.S +++ b/arch/arm/mm/proc-xscale.S | |||
@@ -511,7 +511,7 @@ xscale_crval: | |||
511 | .type xscale_processor_functions, #object | 511 | .type xscale_processor_functions, #object |
512 | ENTRY(xscale_processor_functions) | 512 | ENTRY(xscale_processor_functions) |
513 | .word v5t_early_abort | 513 | .word v5t_early_abort |
514 | .word pabort_noifar | 514 | .word legacy_pabort |
515 | .word cpu_xscale_proc_init | 515 | .word cpu_xscale_proc_init |
516 | .word cpu_xscale_proc_fin | 516 | .word cpu_xscale_proc_fin |
517 | .word cpu_xscale_reset | 517 | .word cpu_xscale_reset |
diff --git a/arch/arm/plat-iop/adma.c b/arch/arm/plat-iop/adma.c index 3c127aabe214..1ff6a37e893c 100644 --- a/arch/arm/plat-iop/adma.c +++ b/arch/arm/plat-iop/adma.c | |||
@@ -179,7 +179,6 @@ static int __init iop3xx_adma_cap_init(void) | |||
179 | dma_cap_set(DMA_INTERRUPT, iop3xx_dma_0_data.cap_mask); | 179 | dma_cap_set(DMA_INTERRUPT, iop3xx_dma_0_data.cap_mask); |
180 | #else | 180 | #else |
181 | dma_cap_set(DMA_MEMCPY, iop3xx_dma_0_data.cap_mask); | 181 | dma_cap_set(DMA_MEMCPY, iop3xx_dma_0_data.cap_mask); |
182 | dma_cap_set(DMA_MEMCPY_CRC32C, iop3xx_dma_0_data.cap_mask); | ||
183 | dma_cap_set(DMA_INTERRUPT, iop3xx_dma_0_data.cap_mask); | 182 | dma_cap_set(DMA_INTERRUPT, iop3xx_dma_0_data.cap_mask); |
184 | #endif | 183 | #endif |
185 | 184 | ||
@@ -188,7 +187,6 @@ static int __init iop3xx_adma_cap_init(void) | |||
188 | dma_cap_set(DMA_INTERRUPT, iop3xx_dma_1_data.cap_mask); | 187 | dma_cap_set(DMA_INTERRUPT, iop3xx_dma_1_data.cap_mask); |
189 | #else | 188 | #else |
190 | dma_cap_set(DMA_MEMCPY, iop3xx_dma_1_data.cap_mask); | 189 | dma_cap_set(DMA_MEMCPY, iop3xx_dma_1_data.cap_mask); |
191 | dma_cap_set(DMA_MEMCPY_CRC32C, iop3xx_dma_1_data.cap_mask); | ||
192 | dma_cap_set(DMA_INTERRUPT, iop3xx_dma_1_data.cap_mask); | 190 | dma_cap_set(DMA_INTERRUPT, iop3xx_dma_1_data.cap_mask); |
193 | #endif | 191 | #endif |
194 | 192 | ||
@@ -198,7 +196,7 @@ static int __init iop3xx_adma_cap_init(void) | |||
198 | dma_cap_set(DMA_INTERRUPT, iop3xx_aau_data.cap_mask); | 196 | dma_cap_set(DMA_INTERRUPT, iop3xx_aau_data.cap_mask); |
199 | #else | 197 | #else |
200 | dma_cap_set(DMA_XOR, iop3xx_aau_data.cap_mask); | 198 | dma_cap_set(DMA_XOR, iop3xx_aau_data.cap_mask); |
201 | dma_cap_set(DMA_ZERO_SUM, iop3xx_aau_data.cap_mask); | 199 | dma_cap_set(DMA_XOR_VAL, iop3xx_aau_data.cap_mask); |
202 | dma_cap_set(DMA_MEMSET, iop3xx_aau_data.cap_mask); | 200 | dma_cap_set(DMA_MEMSET, iop3xx_aau_data.cap_mask); |
203 | dma_cap_set(DMA_INTERRUPT, iop3xx_aau_data.cap_mask); | 201 | dma_cap_set(DMA_INTERRUPT, iop3xx_aau_data.cap_mask); |
204 | #endif | 202 | #endif |
diff --git a/arch/arm/plat-iop/pci.c b/arch/arm/plat-iop/pci.c index 77fa7cc7d162..ce31f316ac75 100644 --- a/arch/arm/plat-iop/pci.c +++ b/arch/arm/plat-iop/pci.c | |||
@@ -257,7 +257,8 @@ void __init iop3xx_atu_setup(void) | |||
257 | *IOP3XX_OUMWTVR0 = 0; | 257 | *IOP3XX_OUMWTVR0 = 0; |
258 | 258 | ||
259 | /* Outbound window 1 */ | 259 | /* Outbound window 1 */ |
260 | *IOP3XX_OMWTVR1 = IOP3XX_PCI_LOWER_MEM_BA + IOP3XX_PCI_MEM_WINDOW_SIZE; | 260 | *IOP3XX_OMWTVR1 = IOP3XX_PCI_LOWER_MEM_BA + |
261 | IOP3XX_PCI_MEM_WINDOW_SIZE / 2; | ||
261 | *IOP3XX_OUMWTVR1 = 0; | 262 | *IOP3XX_OUMWTVR1 = 0; |
262 | 263 | ||
263 | /* BAR 3 ( Disabled ) */ | 264 | /* BAR 3 ( Disabled ) */ |
diff --git a/arch/arm/plat-iop/time.c b/arch/arm/plat-iop/time.c index 3695bbe3ee28..8da95d57c21f 100644 --- a/arch/arm/plat-iop/time.c +++ b/arch/arm/plat-iop/time.c | |||
@@ -85,7 +85,7 @@ void __init iop_init_time(unsigned long tick_rate) | |||
85 | { | 85 | { |
86 | u32 timer_ctl; | 86 | u32 timer_ctl; |
87 | 87 | ||
88 | ticks_per_jiffy = (tick_rate + HZ/2) / HZ; | 88 | ticks_per_jiffy = DIV_ROUND_CLOSEST(tick_rate, HZ); |
89 | ticks_per_usec = tick_rate / 1000000; | 89 | ticks_per_usec = tick_rate / 1000000; |
90 | next_jiffy_time = 0xffffffff; | 90 | next_jiffy_time = 0xffffffff; |
91 | iop_tick_rate = tick_rate; | 91 | iop_tick_rate = tick_rate; |
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index fd3154ae69b1..0eb676d7e807 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c | |||
@@ -829,10 +829,10 @@ EXPORT_SYMBOL(omap_free_dma); | |||
829 | * | 829 | * |
830 | * @param arb_rate | 830 | * @param arb_rate |
831 | * @param max_fifo_depth | 831 | * @param max_fifo_depth |
832 | * @param tparams - Number of thereads to reserve : DMA_THREAD_RESERVE_NORM | 832 | * @param tparams - Number of threads to reserve : DMA_THREAD_RESERVE_NORM |
833 | * DMA_THREAD_RESERVE_ONET | 833 | * DMA_THREAD_RESERVE_ONET |
834 | * DMA_THREAD_RESERVE_TWOT | 834 | * DMA_THREAD_RESERVE_TWOT |
835 | * DMA_THREAD_RESERVE_THREET | 835 | * DMA_THREAD_RESERVE_THREET |
836 | */ | 836 | */ |
837 | void | 837 | void |
838 | omap_dma_set_global_params(int arb_rate, int max_fifo_depth, int tparams) | 838 | omap_dma_set_global_params(int arb_rate, int max_fifo_depth, int tparams) |
@@ -844,11 +844,14 @@ omap_dma_set_global_params(int arb_rate, int max_fifo_depth, int tparams) | |||
844 | return; | 844 | return; |
845 | } | 845 | } |
846 | 846 | ||
847 | if (max_fifo_depth == 0) | ||
848 | max_fifo_depth = 1; | ||
847 | if (arb_rate == 0) | 849 | if (arb_rate == 0) |
848 | arb_rate = 1; | 850 | arb_rate = 1; |
849 | 851 | ||
850 | reg = (arb_rate & 0xff) << 16; | 852 | reg = 0xff & max_fifo_depth; |
851 | reg |= (0xff & max_fifo_depth); | 853 | reg |= (0x3 & tparams) << 12; |
854 | reg |= (arb_rate & 0xff) << 16; | ||
852 | 855 | ||
853 | dma_write(reg, GCR); | 856 | dma_write(reg, GCR); |
854 | } | 857 | } |
diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index 693839c89ad0..71ebd7fcfea1 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c | |||
@@ -250,7 +250,7 @@ static struct gpio_bank gpio_bank_730[7] = { | |||
250 | 250 | ||
251 | #ifdef CONFIG_ARCH_OMAP850 | 251 | #ifdef CONFIG_ARCH_OMAP850 |
252 | static struct gpio_bank gpio_bank_850[7] = { | 252 | static struct gpio_bank gpio_bank_850[7] = { |
253 | { OMAP1_MPUIO_BASE, INT_850_MPUIO, IH_MPUIO_BASE, METHOD_MPUIO }, | 253 | { OMAP1_MPUIO_VBASE, INT_850_MPUIO, IH_MPUIO_BASE, METHOD_MPUIO }, |
254 | { OMAP850_GPIO1_BASE, INT_850_GPIO_BANK1, IH_GPIO_BASE, METHOD_GPIO_850 }, | 254 | { OMAP850_GPIO1_BASE, INT_850_GPIO_BANK1, IH_GPIO_BASE, METHOD_GPIO_850 }, |
255 | { OMAP850_GPIO2_BASE, INT_850_GPIO_BANK2, IH_GPIO_BASE + 32, METHOD_GPIO_850 }, | 255 | { OMAP850_GPIO2_BASE, INT_850_GPIO_BANK2, IH_GPIO_BASE + 32, METHOD_GPIO_850 }, |
256 | { OMAP850_GPIO3_BASE, INT_850_GPIO_BANK3, IH_GPIO_BASE + 64, METHOD_GPIO_850 }, | 256 | { OMAP850_GPIO3_BASE, INT_850_GPIO_BANK3, IH_GPIO_BASE + 64, METHOD_GPIO_850 }, |
diff --git a/arch/arm/plat-omap/include/mach/cpu.h b/arch/arm/plat-omap/include/mach/cpu.h index 11e73d9e8928..f129efb3075e 100644 --- a/arch/arm/plat-omap/include/mach/cpu.h +++ b/arch/arm/plat-omap/include/mach/cpu.h | |||
@@ -303,32 +303,21 @@ IS_OMAP_TYPE(3430, 0x3430) | |||
303 | #define cpu_is_omap2430() 0 | 303 | #define cpu_is_omap2430() 0 |
304 | #define cpu_is_omap3430() 0 | 304 | #define cpu_is_omap3430() 0 |
305 | 305 | ||
306 | #if defined(MULTI_OMAP1) | ||
307 | # if defined(CONFIG_ARCH_OMAP730) | ||
308 | # undef cpu_is_omap730 | ||
309 | # define cpu_is_omap730() is_omap730() | ||
310 | # endif | ||
311 | # if defined(CONFIG_ARCH_OMAP850) | ||
312 | # undef cpu_is_omap850 | ||
313 | # define cpu_is_omap850() is_omap850() | ||
314 | # endif | ||
315 | #else | ||
316 | # if defined(CONFIG_ARCH_OMAP730) | ||
317 | # undef cpu_is_omap730 | ||
318 | # define cpu_is_omap730() 1 | ||
319 | # endif | ||
320 | #endif | ||
321 | #else | ||
322 | # if defined(CONFIG_ARCH_OMAP850) | ||
323 | # undef cpu_is_omap850 | ||
324 | # define cpu_is_omap850() 1 | ||
325 | # endif | ||
326 | #endif | ||
327 | |||
328 | /* | 306 | /* |
329 | * Whether we have MULTI_OMAP1 or not, we still need to distinguish | 307 | * Whether we have MULTI_OMAP1 or not, we still need to distinguish |
330 | * between 330 vs. 1510 and 1611B/5912 vs. 1710. | 308 | * between 730 vs 850, 330 vs. 1510 and 1611B/5912 vs. 1710. |
331 | */ | 309 | */ |
310 | |||
311 | #if defined(CONFIG_ARCH_OMAP730) | ||
312 | # undef cpu_is_omap730 | ||
313 | # define cpu_is_omap730() is_omap730() | ||
314 | #endif | ||
315 | |||
316 | #if defined(CONFIG_ARCH_OMAP850) | ||
317 | # undef cpu_is_omap850 | ||
318 | # define cpu_is_omap850() is_omap850() | ||
319 | #endif | ||
320 | |||
332 | #if defined(CONFIG_ARCH_OMAP15XX) | 321 | #if defined(CONFIG_ARCH_OMAP15XX) |
333 | # undef cpu_is_omap310 | 322 | # undef cpu_is_omap310 |
334 | # undef cpu_is_omap1510 | 323 | # undef cpu_is_omap1510 |
@@ -433,3 +422,5 @@ IS_OMAP_TYPE(3430, 0x3430) | |||
433 | 422 | ||
434 | int omap_chip_is(struct omap_chip_id oci); | 423 | int omap_chip_is(struct omap_chip_id oci); |
435 | void omap2_check_revision(void); | 424 | void omap2_check_revision(void); |
425 | |||
426 | #endif | ||
diff --git a/arch/arm/plat-omap/include/mach/keypad.h b/arch/arm/plat-omap/include/mach/keypad.h index 45ea3ae3c995..d91b9be334ff 100644 --- a/arch/arm/plat-omap/include/mach/keypad.h +++ b/arch/arm/plat-omap/include/mach/keypad.h | |||
@@ -10,6 +10,8 @@ | |||
10 | #ifndef ASMARM_ARCH_KEYPAD_H | 10 | #ifndef ASMARM_ARCH_KEYPAD_H |
11 | #define ASMARM_ARCH_KEYPAD_H | 11 | #define ASMARM_ARCH_KEYPAD_H |
12 | 12 | ||
13 | #include <linux/input/matrix_keypad.h> | ||
14 | |||
13 | struct omap_kp_platform_data { | 15 | struct omap_kp_platform_data { |
14 | int rows; | 16 | int rows; |
15 | int cols; | 17 | int cols; |
@@ -35,9 +37,6 @@ struct omap_kp_platform_data { | |||
35 | 37 | ||
36 | #define KEY_PERSISTENT 0x00800000 | 38 | #define KEY_PERSISTENT 0x00800000 |
37 | #define KEYNUM_MASK 0x00EFFFFF | 39 | #define KEYNUM_MASK 0x00EFFFFF |
38 | #define KEY(col, row, val) (((col) << 28) | ((row) << 24) | (val)) | ||
39 | #define PERSISTENT_KEY(col, row) (((col) << 28) | ((row) << 24) | \ | ||
40 | KEY_PERSISTENT) | ||
41 | 40 | ||
42 | #endif | 41 | #endif |
43 | 42 | ||
diff --git a/arch/arm/plat-omap/include/mach/mux.h b/arch/arm/plat-omap/include/mach/mux.h index 98dfab651dfc..0f49d2d563d9 100644 --- a/arch/arm/plat-omap/include/mach/mux.h +++ b/arch/arm/plat-omap/include/mach/mux.h | |||
@@ -840,12 +840,14 @@ enum omap34xx_index { | |||
840 | */ | 840 | */ |
841 | AF26_34XX_GPIO0, | 841 | AF26_34XX_GPIO0, |
842 | AF22_34XX_GPIO9, | 842 | AF22_34XX_GPIO9, |
843 | AG9_34XX_GPIO23, | ||
843 | AH8_34XX_GPIO29, | 844 | AH8_34XX_GPIO29, |
844 | U8_34XX_GPIO54_OUT, | 845 | U8_34XX_GPIO54_OUT, |
845 | U8_34XX_GPIO54_DOWN, | 846 | U8_34XX_GPIO54_DOWN, |
846 | L8_34XX_GPIO63, | 847 | L8_34XX_GPIO63, |
847 | G25_34XX_GPIO86_OUT, | 848 | G25_34XX_GPIO86_OUT, |
848 | AG4_34XX_GPIO134_OUT, | 849 | AG4_34XX_GPIO134_OUT, |
850 | AF4_34XX_GPIO135_OUT, | ||
849 | AE4_34XX_GPIO136_OUT, | 851 | AE4_34XX_GPIO136_OUT, |
850 | AF6_34XX_GPIO140_UP, | 852 | AF6_34XX_GPIO140_UP, |
851 | AE6_34XX_GPIO141, | 853 | AE6_34XX_GPIO141, |
diff --git a/arch/arm/plat-omap/include/mach/powerdomain.h b/arch/arm/plat-omap/include/mach/powerdomain.h index 6271d8556a40..fa6461423bd0 100644 --- a/arch/arm/plat-omap/include/mach/powerdomain.h +++ b/arch/arm/plat-omap/include/mach/powerdomain.h | |||
@@ -135,6 +135,8 @@ struct powerdomain *pwrdm_lookup(const char *name); | |||
135 | 135 | ||
136 | int pwrdm_for_each(int (*fn)(struct powerdomain *pwrdm, void *user), | 136 | int pwrdm_for_each(int (*fn)(struct powerdomain *pwrdm, void *user), |
137 | void *user); | 137 | void *user); |
138 | int pwrdm_for_each_nolock(int (*fn)(struct powerdomain *pwrdm, void *user), | ||
139 | void *user); | ||
138 | 140 | ||
139 | int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm); | 141 | int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm); |
140 | int pwrdm_del_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm); | 142 | int pwrdm_del_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm); |
diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c index 6fc52fcbdc03..dc3fac3dd0ea 100644 --- a/arch/arm/plat-omap/iovmm.c +++ b/arch/arm/plat-omap/iovmm.c | |||
@@ -47,7 +47,7 @@ | |||
47 | * 'va': mpu virtual address | 47 | * 'va': mpu virtual address |
48 | * | 48 | * |
49 | * 'c': contiguous memory area | 49 | * 'c': contiguous memory area |
50 | * 'd': dicontiguous memory area | 50 | * 'd': discontiguous memory area |
51 | * 'a': anonymous memory allocation | 51 | * 'a': anonymous memory allocation |
52 | * '()': optional feature | 52 | * '()': optional feature |
53 | * | 53 | * |
@@ -199,7 +199,8 @@ static void *vmap_sg(const struct sg_table *sgt) | |||
199 | va += bytes; | 199 | va += bytes; |
200 | } | 200 | } |
201 | 201 | ||
202 | flush_cache_vmap(new->addr, new->addr + total); | 202 | flush_cache_vmap((unsigned long)new->addr, |
203 | (unsigned long)(new->addr + total)); | ||
203 | return new->addr; | 204 | return new->addr; |
204 | 205 | ||
205 | err_out: | 206 | err_out: |
@@ -362,8 +363,9 @@ void *da_to_va(struct iommu *obj, u32 da) | |||
362 | goto out; | 363 | goto out; |
363 | } | 364 | } |
364 | va = area->va; | 365 | va = area->va; |
365 | mutex_unlock(&obj->mmap_lock); | ||
366 | out: | 366 | out: |
367 | mutex_unlock(&obj->mmap_lock); | ||
368 | |||
367 | return va; | 369 | return va; |
368 | } | 370 | } |
369 | EXPORT_SYMBOL_GPL(da_to_va); | 371 | EXPORT_SYMBOL_GPL(da_to_va); |
@@ -390,14 +392,14 @@ static void sgtable_fill_vmalloc(struct sg_table *sgt, void *_va) | |||
390 | } | 392 | } |
391 | 393 | ||
392 | va_end = _va + PAGE_SIZE * i; | 394 | va_end = _va + PAGE_SIZE * i; |
393 | flush_cache_vmap(_va, va_end); | 395 | flush_cache_vmap((unsigned long)_va, (unsigned long)va_end); |
394 | } | 396 | } |
395 | 397 | ||
396 | static inline void sgtable_drain_vmalloc(struct sg_table *sgt) | 398 | static inline void sgtable_drain_vmalloc(struct sg_table *sgt) |
397 | { | 399 | { |
398 | /* | 400 | /* |
399 | * Actually this is not necessary at all, just exists for | 401 | * Actually this is not necessary at all, just exists for |
400 | * consistency of the code readibility. | 402 | * consistency of the code readability. |
401 | */ | 403 | */ |
402 | BUG_ON(!sgt); | 404 | BUG_ON(!sgt); |
403 | } | 405 | } |
@@ -433,7 +435,7 @@ static inline void sgtable_drain_kmalloc(struct sg_table *sgt) | |||
433 | { | 435 | { |
434 | /* | 436 | /* |
435 | * Actually this is not necessary at all, just exists for | 437 | * Actually this is not necessary at all, just exists for |
436 | * consistency of the code readibility | 438 | * consistency of the code readability |
437 | */ | 439 | */ |
438 | BUG_ON(!sgt); | 440 | BUG_ON(!sgt); |
439 | } | 441 | } |
diff --git a/arch/arm/plat-omap/mcbsp.c b/arch/arm/plat-omap/mcbsp.c index 88ac9768f1c1..e664b912d7bb 100644 --- a/arch/arm/plat-omap/mcbsp.c +++ b/arch/arm/plat-omap/mcbsp.c | |||
@@ -595,7 +595,7 @@ void omap_mcbsp_stop(unsigned int id, int tx, int rx) | |||
595 | rx &= 1; | 595 | rx &= 1; |
596 | if (cpu_is_omap2430() || cpu_is_omap34xx()) { | 596 | if (cpu_is_omap2430() || cpu_is_omap34xx()) { |
597 | w = OMAP_MCBSP_READ(io_base, RCCR); | 597 | w = OMAP_MCBSP_READ(io_base, RCCR); |
598 | w |= (tx ? RDISABLE : 0); | 598 | w |= (rx ? RDISABLE : 0); |
599 | OMAP_MCBSP_WRITE(io_base, RCCR, w); | 599 | OMAP_MCBSP_WRITE(io_base, RCCR, w); |
600 | } | 600 | } |
601 | w = OMAP_MCBSP_READ(io_base, SPCR1); | 601 | w = OMAP_MCBSP_READ(io_base, SPCR1); |
diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c index 925f64711c37..75d1f26e5b17 100644 --- a/arch/arm/plat-omap/sram.c +++ b/arch/arm/plat-omap/sram.c | |||
@@ -270,7 +270,8 @@ void * omap_sram_push(void * start, unsigned long size) | |||
270 | omap_sram_ceil -= size; | 270 | omap_sram_ceil -= size; |
271 | omap_sram_ceil = ROUND_DOWN(omap_sram_ceil, sizeof(void *)); | 271 | omap_sram_ceil = ROUND_DOWN(omap_sram_ceil, sizeof(void *)); |
272 | memcpy((void *)omap_sram_ceil, start, size); | 272 | memcpy((void *)omap_sram_ceil, start, size); |
273 | flush_icache_range((unsigned long)start, (unsigned long)(start + size)); | 273 | flush_icache_range((unsigned long)omap_sram_ceil, |
274 | (unsigned long)(omap_sram_ceil + size)); | ||
274 | 275 | ||
275 | return (void *)omap_sram_ceil; | 276 | return (void *)omap_sram_ceil; |
276 | } | 277 | } |
diff --git a/arch/arm/plat-pxa/dma.c b/arch/arm/plat-pxa/dma.c index 70aeee407f7d..2975798d411f 100644 --- a/arch/arm/plat-pxa/dma.c +++ b/arch/arm/plat-pxa/dma.c | |||
@@ -17,22 +17,266 @@ | |||
17 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
18 | #include <linux/interrupt.h> | 18 | #include <linux/interrupt.h> |
19 | #include <linux/errno.h> | 19 | #include <linux/errno.h> |
20 | #include <linux/dma-mapping.h> | ||
20 | 21 | ||
21 | #include <asm/system.h> | 22 | #include <asm/system.h> |
22 | #include <asm/irq.h> | 23 | #include <asm/irq.h> |
24 | #include <asm/memory.h> | ||
23 | #include <mach/hardware.h> | 25 | #include <mach/hardware.h> |
24 | #include <mach/dma.h> | 26 | #include <mach/dma.h> |
25 | 27 | ||
28 | #define DMA_DEBUG_NAME "pxa_dma" | ||
29 | #define DMA_MAX_REQUESTERS 64 | ||
30 | |||
26 | struct dma_channel { | 31 | struct dma_channel { |
27 | char *name; | 32 | char *name; |
28 | pxa_dma_prio prio; | 33 | pxa_dma_prio prio; |
29 | void (*irq_handler)(int, void *); | 34 | void (*irq_handler)(int, void *); |
30 | void *data; | 35 | void *data; |
36 | spinlock_t lock; | ||
31 | }; | 37 | }; |
32 | 38 | ||
33 | static struct dma_channel *dma_channels; | 39 | static struct dma_channel *dma_channels; |
34 | static int num_dma_channels; | 40 | static int num_dma_channels; |
35 | 41 | ||
42 | /* | ||
43 | * Debug fs | ||
44 | */ | ||
45 | #ifdef CONFIG_DEBUG_FS | ||
46 | #include <linux/debugfs.h> | ||
47 | #include <linux/uaccess.h> | ||
48 | #include <linux/seq_file.h> | ||
49 | |||
50 | static struct dentry *dbgfs_root, *dbgfs_state, **dbgfs_chan; | ||
51 | |||
52 | static int dbg_show_requester_chan(struct seq_file *s, void *p) | ||
53 | { | ||
54 | int pos = 0; | ||
55 | int chan = (int)s->private; | ||
56 | int i; | ||
57 | u32 drcmr; | ||
58 | |||
59 | pos += seq_printf(s, "DMA channel %d requesters list :\n", chan); | ||
60 | for (i = 0; i < DMA_MAX_REQUESTERS; i++) { | ||
61 | drcmr = DRCMR(i); | ||
62 | if ((drcmr & DRCMR_CHLNUM) == chan) | ||
63 | pos += seq_printf(s, "\tRequester %d (MAPVLD=%d)\n", i, | ||
64 | !!(drcmr & DRCMR_MAPVLD)); | ||
65 | } | ||
66 | return pos; | ||
67 | } | ||
68 | |||
69 | static inline int dbg_burst_from_dcmd(u32 dcmd) | ||
70 | { | ||
71 | int burst = (dcmd >> 16) & 0x3; | ||
72 | |||
73 | return burst ? 4 << burst : 0; | ||
74 | } | ||
75 | |||
76 | static int is_phys_valid(unsigned long addr) | ||
77 | { | ||
78 | return pfn_valid(__phys_to_pfn(addr)); | ||
79 | } | ||
80 | |||
81 | #define DCSR_STR(flag) (dcsr & DCSR_##flag ? #flag" " : "") | ||
82 | #define DCMD_STR(flag) (dcmd & DCMD_##flag ? #flag" " : "") | ||
83 | |||
84 | static int dbg_show_descriptors(struct seq_file *s, void *p) | ||
85 | { | ||
86 | int pos = 0; | ||
87 | int chan = (int)s->private; | ||
88 | int i, max_show = 20, burst, width; | ||
89 | u32 dcmd; | ||
90 | unsigned long phys_desc; | ||
91 | struct pxa_dma_desc *desc; | ||
92 | unsigned long flags; | ||
93 | |||
94 | spin_lock_irqsave(&dma_channels[chan].lock, flags); | ||
95 | phys_desc = DDADR(chan); | ||
96 | |||
97 | pos += seq_printf(s, "DMA channel %d descriptors :\n", chan); | ||
98 | pos += seq_printf(s, "[%03d] First descriptor unknown\n", 0); | ||
99 | for (i = 1; i < max_show && is_phys_valid(phys_desc); i++) { | ||
100 | desc = phys_to_virt(phys_desc); | ||
101 | dcmd = desc->dcmd; | ||
102 | burst = dbg_burst_from_dcmd(dcmd); | ||
103 | width = (1 << ((dcmd >> 14) & 0x3)) >> 1; | ||
104 | |||
105 | pos += seq_printf(s, "[%03d] Desc at %08lx(virt %p)\n", | ||
106 | i, phys_desc, desc); | ||
107 | pos += seq_printf(s, "\tDDADR = %08x\n", desc->ddadr); | ||
108 | pos += seq_printf(s, "\tDSADR = %08x\n", desc->dsadr); | ||
109 | pos += seq_printf(s, "\tDTADR = %08x\n", desc->dtadr); | ||
110 | pos += seq_printf(s, "\tDCMD = %08x (%s%s%s%s%s%s%sburst=%d" | ||
111 | " width=%d len=%d)\n", | ||
112 | dcmd, | ||
113 | DCMD_STR(INCSRCADDR), DCMD_STR(INCTRGADDR), | ||
114 | DCMD_STR(FLOWSRC), DCMD_STR(FLOWTRG), | ||
115 | DCMD_STR(STARTIRQEN), DCMD_STR(ENDIRQEN), | ||
116 | DCMD_STR(ENDIAN), burst, width, | ||
117 | dcmd & DCMD_LENGTH); | ||
118 | phys_desc = desc->ddadr; | ||
119 | } | ||
120 | if (i == max_show) | ||
121 | pos += seq_printf(s, "[%03d] Desc at %08lx ... max display reached\n", | ||
122 | i, phys_desc); | ||
123 | else | ||
124 | pos += seq_printf(s, "[%03d] Desc at %08lx is %s\n", | ||
125 | i, phys_desc, phys_desc == DDADR_STOP ? | ||
126 | "DDADR_STOP" : "invalid"); | ||
127 | |||
128 | spin_unlock_irqrestore(&dma_channels[chan].lock, flags); | ||
129 | return pos; | ||
130 | } | ||
131 | |||
132 | static int dbg_show_chan_state(struct seq_file *s, void *p) | ||
133 | { | ||
134 | int pos = 0; | ||
135 | int chan = (int)s->private; | ||
136 | u32 dcsr, dcmd; | ||
137 | int burst, width; | ||
138 | static char *str_prio[] = { "high", "normal", "low" }; | ||
139 | |||
140 | dcsr = DCSR(chan); | ||
141 | dcmd = DCMD(chan); | ||
142 | burst = dbg_burst_from_dcmd(dcmd); | ||
143 | width = (1 << ((dcmd >> 14) & 0x3)) >> 1; | ||
144 | |||
145 | pos += seq_printf(s, "DMA channel %d\n", chan); | ||
146 | pos += seq_printf(s, "\tPriority : %s\n", | ||
147 | str_prio[dma_channels[chan].prio]); | ||
148 | pos += seq_printf(s, "\tUnaligned transfer bit: %s\n", | ||
149 | DALGN & (1 << chan) ? "yes" : "no"); | ||
150 | pos += seq_printf(s, "\tDCSR = %08x (%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s)\n", | ||
151 | dcsr, DCSR_STR(RUN), DCSR_STR(NODESC), | ||
152 | DCSR_STR(STOPIRQEN), DCSR_STR(EORIRQEN), | ||
153 | DCSR_STR(EORJMPEN), DCSR_STR(EORSTOPEN), | ||
154 | DCSR_STR(SETCMPST), DCSR_STR(CLRCMPST), | ||
155 | DCSR_STR(CMPST), DCSR_STR(EORINTR), DCSR_STR(REQPEND), | ||
156 | DCSR_STR(STOPSTATE), DCSR_STR(ENDINTR), | ||
157 | DCSR_STR(STARTINTR), DCSR_STR(BUSERR)); | ||
158 | |||
159 | pos += seq_printf(s, "\tDCMD = %08x (%s%s%s%s%s%s%sburst=%d width=%d" | ||
160 | " len=%d)\n", | ||
161 | dcmd, | ||
162 | DCMD_STR(INCSRCADDR), DCMD_STR(INCTRGADDR), | ||
163 | DCMD_STR(FLOWSRC), DCMD_STR(FLOWTRG), | ||
164 | DCMD_STR(STARTIRQEN), DCMD_STR(ENDIRQEN), | ||
165 | DCMD_STR(ENDIAN), burst, width, dcmd & DCMD_LENGTH); | ||
166 | pos += seq_printf(s, "\tDSADR = %08x\n", DSADR(chan)); | ||
167 | pos += seq_printf(s, "\tDTADR = %08x\n", DTADR(chan)); | ||
168 | pos += seq_printf(s, "\tDDADR = %08x\n", DDADR(chan)); | ||
169 | return pos; | ||
170 | } | ||
171 | |||
172 | static int dbg_show_state(struct seq_file *s, void *p) | ||
173 | { | ||
174 | int pos = 0; | ||
175 | |||
176 | /* basic device status */ | ||
177 | pos += seq_printf(s, "DMA engine status\n"); | ||
178 | pos += seq_printf(s, "\tChannel number: %d\n", num_dma_channels); | ||
179 | |||
180 | return pos; | ||
181 | } | ||
182 | |||
183 | #define DBGFS_FUNC_DECL(name) \ | ||
184 | static int dbg_open_##name(struct inode *inode, struct file *file) \ | ||
185 | { \ | ||
186 | return single_open(file, dbg_show_##name, inode->i_private); \ | ||
187 | } \ | ||
188 | static const struct file_operations dbg_fops_##name = { \ | ||
189 | .owner = THIS_MODULE, \ | ||
190 | .open = dbg_open_##name, \ | ||
191 | .llseek = seq_lseek, \ | ||
192 | .read = seq_read, \ | ||
193 | .release = single_release, \ | ||
194 | } | ||
195 | |||
196 | DBGFS_FUNC_DECL(state); | ||
197 | DBGFS_FUNC_DECL(chan_state); | ||
198 | DBGFS_FUNC_DECL(descriptors); | ||
199 | DBGFS_FUNC_DECL(requester_chan); | ||
200 | |||
201 | static struct dentry *pxa_dma_dbg_alloc_chan(int ch, struct dentry *chandir) | ||
202 | { | ||
203 | char chan_name[11]; | ||
204 | struct dentry *chan, *chan_state = NULL, *chan_descr = NULL; | ||
205 | struct dentry *chan_reqs = NULL; | ||
206 | void *dt; | ||
207 | |||
208 | scnprintf(chan_name, sizeof(chan_name), "%d", ch); | ||
209 | chan = debugfs_create_dir(chan_name, chandir); | ||
210 | dt = (void *)ch; | ||
211 | |||
212 | if (chan) | ||
213 | chan_state = debugfs_create_file("state", 0400, chan, dt, | ||
214 | &dbg_fops_chan_state); | ||
215 | if (chan_state) | ||
216 | chan_descr = debugfs_create_file("descriptors", 0400, chan, dt, | ||
217 | &dbg_fops_descriptors); | ||
218 | if (chan_descr) | ||
219 | chan_reqs = debugfs_create_file("requesters", 0400, chan, dt, | ||
220 | &dbg_fops_requester_chan); | ||
221 | if (!chan_reqs) | ||
222 | goto err_state; | ||
223 | |||
224 | return chan; | ||
225 | |||
226 | err_state: | ||
227 | debugfs_remove_recursive(chan); | ||
228 | return NULL; | ||
229 | } | ||
230 | |||
231 | static void pxa_dma_init_debugfs(void) | ||
232 | { | ||
233 | int i; | ||
234 | struct dentry *chandir; | ||
235 | |||
236 | dbgfs_root = debugfs_create_dir(DMA_DEBUG_NAME, NULL); | ||
237 | if (IS_ERR(dbgfs_root) || !dbgfs_root) | ||
238 | goto err_root; | ||
239 | |||
240 | dbgfs_state = debugfs_create_file("state", 0400, dbgfs_root, NULL, | ||
241 | &dbg_fops_state); | ||
242 | if (!dbgfs_state) | ||
243 | goto err_state; | ||
244 | |||
245 | dbgfs_chan = kmalloc(sizeof(*dbgfs_state) * num_dma_channels, | ||
246 | GFP_KERNEL); | ||
247 | if (!dbgfs_state) | ||
248 | goto err_alloc; | ||
249 | |||
250 | chandir = debugfs_create_dir("channels", dbgfs_root); | ||
251 | if (!chandir) | ||
252 | goto err_chandir; | ||
253 | |||
254 | for (i = 0; i < num_dma_channels; i++) { | ||
255 | dbgfs_chan[i] = pxa_dma_dbg_alloc_chan(i, chandir); | ||
256 | if (!dbgfs_chan[i]) | ||
257 | goto err_chans; | ||
258 | } | ||
259 | |||
260 | return; | ||
261 | err_chans: | ||
262 | err_chandir: | ||
263 | kfree(dbgfs_chan); | ||
264 | err_alloc: | ||
265 | err_state: | ||
266 | debugfs_remove_recursive(dbgfs_root); | ||
267 | err_root: | ||
268 | pr_err("pxa_dma: debugfs is not available\n"); | ||
269 | } | ||
270 | |||
271 | static void __exit pxa_dma_cleanup_debugfs(void) | ||
272 | { | ||
273 | debugfs_remove_recursive(dbgfs_root); | ||
274 | } | ||
275 | #else | ||
276 | static inline void pxa_dma_init_debugfs(void) {} | ||
277 | static inline void pxa_dma_cleanup_debugfs(void) {} | ||
278 | #endif | ||
279 | |||
36 | int pxa_request_dma (char *name, pxa_dma_prio prio, | 280 | int pxa_request_dma (char *name, pxa_dma_prio prio, |
37 | void (*irq_handler)(int, void *), | 281 | void (*irq_handler)(int, void *), |
38 | void *data) | 282 | void *data) |
@@ -71,6 +315,7 @@ int pxa_request_dma (char *name, pxa_dma_prio prio, | |||
71 | local_irq_restore(flags); | 315 | local_irq_restore(flags); |
72 | return i; | 316 | return i; |
73 | } | 317 | } |
318 | EXPORT_SYMBOL(pxa_request_dma); | ||
74 | 319 | ||
75 | void pxa_free_dma (int dma_ch) | 320 | void pxa_free_dma (int dma_ch) |
76 | { | 321 | { |
@@ -88,24 +333,26 @@ void pxa_free_dma (int dma_ch) | |||
88 | dma_channels[dma_ch].name = NULL; | 333 | dma_channels[dma_ch].name = NULL; |
89 | local_irq_restore(flags); | 334 | local_irq_restore(flags); |
90 | } | 335 | } |
336 | EXPORT_SYMBOL(pxa_free_dma); | ||
91 | 337 | ||
92 | static irqreturn_t dma_irq_handler(int irq, void *dev_id) | 338 | static irqreturn_t dma_irq_handler(int irq, void *dev_id) |
93 | { | 339 | { |
94 | int i, dint = DINT; | 340 | int i, dint = DINT; |
341 | struct dma_channel *channel; | ||
95 | 342 | ||
96 | for (i = 0; i < num_dma_channels; i++) { | 343 | while (dint) { |
97 | if (dint & (1 << i)) { | 344 | i = __ffs(dint); |
98 | struct dma_channel *channel = &dma_channels[i]; | 345 | dint &= (dint - 1); |
99 | if (channel->name && channel->irq_handler) { | 346 | channel = &dma_channels[i]; |
100 | channel->irq_handler(i, channel->data); | 347 | if (channel->name && channel->irq_handler) { |
101 | } else { | 348 | channel->irq_handler(i, channel->data); |
102 | /* | 349 | } else { |
103 | * IRQ for an unregistered DMA channel: | 350 | /* |
104 | * let's clear the interrupts and disable it. | 351 | * IRQ for an unregistered DMA channel: |
105 | */ | 352 | * let's clear the interrupts and disable it. |
106 | printk (KERN_WARNING "spurious IRQ for DMA channel %d\n", i); | 353 | */ |
107 | DCSR(i) = DCSR_STARTINTR|DCSR_ENDINTR|DCSR_BUSERR; | 354 | printk (KERN_WARNING "spurious IRQ for DMA channel %d\n", i); |
108 | } | 355 | DCSR(i) = DCSR_STARTINTR|DCSR_ENDINTR|DCSR_BUSERR; |
109 | } | 356 | } |
110 | } | 357 | } |
111 | return IRQ_HANDLED; | 358 | return IRQ_HANDLED; |
@@ -127,6 +374,7 @@ int __init pxa_init_dma(int irq, int num_ch) | |||
127 | for (i = 0; i < num_ch; i++) { | 374 | for (i = 0; i < num_ch; i++) { |
128 | DCSR(i) = 0; | 375 | DCSR(i) = 0; |
129 | dma_channels[i].prio = min((i & 0xf) >> 2, DMA_PRIO_LOW); | 376 | dma_channels[i].prio = min((i & 0xf) >> 2, DMA_PRIO_LOW); |
377 | spin_lock_init(&dma_channels[i].lock); | ||
130 | } | 378 | } |
131 | 379 | ||
132 | ret = request_irq(irq, dma_irq_handler, IRQF_DISABLED, "DMA", NULL); | 380 | ret = request_irq(irq, dma_irq_handler, IRQF_DISABLED, "DMA", NULL); |
@@ -135,10 +383,9 @@ int __init pxa_init_dma(int irq, int num_ch) | |||
135 | kfree(dma_channels); | 383 | kfree(dma_channels); |
136 | return ret; | 384 | return ret; |
137 | } | 385 | } |
138 | |||
139 | num_dma_channels = num_ch; | 386 | num_dma_channels = num_ch; |
387 | |||
388 | pxa_dma_init_debugfs(); | ||
389 | |||
140 | return 0; | 390 | return 0; |
141 | } | 391 | } |
142 | |||
143 | EXPORT_SYMBOL(pxa_request_dma); | ||
144 | EXPORT_SYMBOL(pxa_free_dma); | ||
diff --git a/arch/arm/plat-pxa/include/plat/mfp.h b/arch/arm/plat-pxa/include/plat/mfp.h index 64019464c8db..22086e696e8e 100644 --- a/arch/arm/plat-pxa/include/plat/mfp.h +++ b/arch/arm/plat-pxa/include/plat/mfp.h | |||
@@ -150,6 +150,74 @@ enum { | |||
150 | MFP_PIN_GPIO125, | 150 | MFP_PIN_GPIO125, |
151 | MFP_PIN_GPIO126, | 151 | MFP_PIN_GPIO126, |
152 | MFP_PIN_GPIO127, | 152 | MFP_PIN_GPIO127, |
153 | |||
154 | MFP_PIN_GPIO128, | ||
155 | MFP_PIN_GPIO129, | ||
156 | MFP_PIN_GPIO130, | ||
157 | MFP_PIN_GPIO131, | ||
158 | MFP_PIN_GPIO132, | ||
159 | MFP_PIN_GPIO133, | ||
160 | MFP_PIN_GPIO134, | ||
161 | MFP_PIN_GPIO135, | ||
162 | MFP_PIN_GPIO136, | ||
163 | MFP_PIN_GPIO137, | ||
164 | MFP_PIN_GPIO138, | ||
165 | MFP_PIN_GPIO139, | ||
166 | MFP_PIN_GPIO140, | ||
167 | MFP_PIN_GPIO141, | ||
168 | MFP_PIN_GPIO142, | ||
169 | MFP_PIN_GPIO143, | ||
170 | MFP_PIN_GPIO144, | ||
171 | MFP_PIN_GPIO145, | ||
172 | MFP_PIN_GPIO146, | ||
173 | MFP_PIN_GPIO147, | ||
174 | MFP_PIN_GPIO148, | ||
175 | MFP_PIN_GPIO149, | ||
176 | MFP_PIN_GPIO150, | ||
177 | MFP_PIN_GPIO151, | ||
178 | MFP_PIN_GPIO152, | ||
179 | MFP_PIN_GPIO153, | ||
180 | MFP_PIN_GPIO154, | ||
181 | MFP_PIN_GPIO155, | ||
182 | MFP_PIN_GPIO156, | ||
183 | MFP_PIN_GPIO157, | ||
184 | MFP_PIN_GPIO158, | ||
185 | MFP_PIN_GPIO159, | ||
186 | MFP_PIN_GPIO160, | ||
187 | MFP_PIN_GPIO161, | ||
188 | MFP_PIN_GPIO162, | ||
189 | MFP_PIN_GPIO163, | ||
190 | MFP_PIN_GPIO164, | ||
191 | MFP_PIN_GPIO165, | ||
192 | MFP_PIN_GPIO166, | ||
193 | MFP_PIN_GPIO167, | ||
194 | MFP_PIN_GPIO168, | ||
195 | MFP_PIN_GPIO169, | ||
196 | MFP_PIN_GPIO170, | ||
197 | MFP_PIN_GPIO171, | ||
198 | MFP_PIN_GPIO172, | ||
199 | MFP_PIN_GPIO173, | ||
200 | MFP_PIN_GPIO174, | ||
201 | MFP_PIN_GPIO175, | ||
202 | MFP_PIN_GPIO176, | ||
203 | MFP_PIN_GPIO177, | ||
204 | MFP_PIN_GPIO178, | ||
205 | MFP_PIN_GPIO179, | ||
206 | MFP_PIN_GPIO180, | ||
207 | MFP_PIN_GPIO181, | ||
208 | MFP_PIN_GPIO182, | ||
209 | MFP_PIN_GPIO183, | ||
210 | MFP_PIN_GPIO184, | ||
211 | MFP_PIN_GPIO185, | ||
212 | MFP_PIN_GPIO186, | ||
213 | MFP_PIN_GPIO187, | ||
214 | MFP_PIN_GPIO188, | ||
215 | MFP_PIN_GPIO189, | ||
216 | MFP_PIN_GPIO190, | ||
217 | MFP_PIN_GPIO191, | ||
218 | |||
219 | MFP_PIN_GPIO255 = 255, | ||
220 | |||
153 | MFP_PIN_GPIO0_2, | 221 | MFP_PIN_GPIO0_2, |
154 | MFP_PIN_GPIO1_2, | 222 | MFP_PIN_GPIO1_2, |
155 | MFP_PIN_GPIO2_2, | 223 | MFP_PIN_GPIO2_2, |
@@ -325,8 +393,9 @@ typedef unsigned long mfp_cfg_t; | |||
325 | #define MFP_PULL_LOW (0x1 << 21) | 393 | #define MFP_PULL_LOW (0x1 << 21) |
326 | #define MFP_PULL_HIGH (0x2 << 21) | 394 | #define MFP_PULL_HIGH (0x2 << 21) |
327 | #define MFP_PULL_BOTH (0x3 << 21) | 395 | #define MFP_PULL_BOTH (0x3 << 21) |
328 | #define MFP_PULL_MASK (0x3 << 21) | 396 | #define MFP_PULL_FLOAT (0x4 << 21) |
329 | #define MFP_PULL(x) (((x) >> 21) & 0x3) | 397 | #define MFP_PULL_MASK (0x7 << 21) |
398 | #define MFP_PULL(x) (((x) >> 21) & 0x7) | ||
330 | 399 | ||
331 | #define MFP_CFG_DEFAULT (MFP_AF0 | MFP_DS03X | MFP_LPM_DEFAULT |\ | 400 | #define MFP_CFG_DEFAULT (MFP_AF0 | MFP_DS03X | MFP_LPM_DEFAULT |\ |
332 | MFP_LPM_EDGE_NONE | MFP_PULL_NONE) | 401 | MFP_LPM_EDGE_NONE | MFP_PULL_NONE) |
diff --git a/arch/arm/plat-pxa/mfp.c b/arch/arm/plat-pxa/mfp.c index e716c622a17c..9405d0379c85 100644 --- a/arch/arm/plat-pxa/mfp.c +++ b/arch/arm/plat-pxa/mfp.c | |||
@@ -77,11 +77,13 @@ | |||
77 | * MFPR_PULL_LOW 1 0 1 | 77 | * MFPR_PULL_LOW 1 0 1 |
78 | * MFPR_PULL_HIGH 1 1 0 | 78 | * MFPR_PULL_HIGH 1 1 0 |
79 | * MFPR_PULL_BOTH 1 1 1 | 79 | * MFPR_PULL_BOTH 1 1 1 |
80 | * MFPR_PULL_FLOAT 1 0 0 | ||
80 | */ | 81 | */ |
81 | #define MFPR_PULL_NONE (0) | 82 | #define MFPR_PULL_NONE (0) |
82 | #define MFPR_PULL_LOW (MFPR_PULL_SEL | MFPR_PULLDOWN_EN) | 83 | #define MFPR_PULL_LOW (MFPR_PULL_SEL | MFPR_PULLDOWN_EN) |
83 | #define MFPR_PULL_BOTH (MFPR_PULL_LOW | MFPR_PULLUP_EN) | 84 | #define MFPR_PULL_BOTH (MFPR_PULL_LOW | MFPR_PULLUP_EN) |
84 | #define MFPR_PULL_HIGH (MFPR_PULL_SEL | MFPR_PULLUP_EN) | 85 | #define MFPR_PULL_HIGH (MFPR_PULL_SEL | MFPR_PULLUP_EN) |
86 | #define MFPR_PULL_FLOAT (MFPR_PULL_SEL) | ||
85 | 87 | ||
86 | /* mfp_spin_lock is used to ensure that MFP register configuration | 88 | /* mfp_spin_lock is used to ensure that MFP register configuration |
87 | * (most likely a read-modify-write operation) is atomic, and that | 89 | * (most likely a read-modify-write operation) is atomic, and that |
@@ -116,6 +118,7 @@ static const unsigned long mfpr_pull[] = { | |||
116 | MFPR_PULL_LOW, | 118 | MFPR_PULL_LOW, |
117 | MFPR_PULL_HIGH, | 119 | MFPR_PULL_HIGH, |
118 | MFPR_PULL_BOTH, | 120 | MFPR_PULL_BOTH, |
121 | MFPR_PULL_FLOAT, | ||
119 | }; | 122 | }; |
120 | 123 | ||
121 | /* mapping of MFP_LPM_EDGE_* definitions to MFPR_EDGE_* register bits */ | 124 | /* mapping of MFP_LPM_EDGE_* definitions to MFPR_EDGE_* register bits */ |
diff --git a/arch/arm/plat-s3c/gpio.c b/arch/arm/plat-s3c/gpio.c index 260fdc6ad685..5ff24e0f9f89 100644 --- a/arch/arm/plat-s3c/gpio.c +++ b/arch/arm/plat-s3c/gpio.c | |||
@@ -28,7 +28,7 @@ static __init void s3c_gpiolib_track(struct s3c_gpio_chip *chip) | |||
28 | 28 | ||
29 | gpn = chip->chip.base; | 29 | gpn = chip->chip.base; |
30 | for (i = 0; i < chip->chip.ngpio; i++, gpn++) { | 30 | for (i = 0; i < chip->chip.ngpio; i++, gpn++) { |
31 | BUG_ON(gpn > ARRAY_SIZE(s3c_gpios)); | 31 | BUG_ON(gpn >= ARRAY_SIZE(s3c_gpios)); |
32 | s3c_gpios[gpn] = chip; | 32 | s3c_gpios[gpn] = chip; |
33 | } | 33 | } |
34 | } | 34 | } |
diff --git a/arch/arm/plat-s3c24xx/adc.c b/arch/arm/plat-s3c24xx/adc.c index 11117a7ba911..4d36b784fb8b 100644 --- a/arch/arm/plat-s3c24xx/adc.c +++ b/arch/arm/plat-s3c24xx/adc.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/module.h> | 14 | #include <linux/module.h> |
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/sched.h> | ||
17 | #include <linux/list.h> | 18 | #include <linux/list.h> |
18 | #include <linux/err.h> | 19 | #include <linux/err.h> |
19 | #include <linux/clk.h> | 20 | #include <linux/clk.h> |
diff --git a/arch/arm/plat-s3c24xx/include/plat/mci.h b/arch/arm/plat-s3c24xx/include/plat/mci.h index 2d0852ac3b27..c2cef6139683 100644 --- a/arch/arm/plat-s3c24xx/include/plat/mci.h +++ b/arch/arm/plat-s3c24xx/include/plat/mci.h | |||
@@ -2,8 +2,11 @@ | |||
2 | #define _ARCH_MCI_H | 2 | #define _ARCH_MCI_H |
3 | 3 | ||
4 | struct s3c24xx_mci_pdata { | 4 | struct s3c24xx_mci_pdata { |
5 | unsigned int no_wprotect : 1; | ||
6 | unsigned int no_detect : 1; | ||
5 | unsigned int wprotect_invert : 1; | 7 | unsigned int wprotect_invert : 1; |
6 | unsigned int detect_invert : 1; /* set => detect active high. */ | 8 | unsigned int detect_invert : 1; /* set => detect active high. */ |
9 | unsigned int use_dma : 1; | ||
7 | 10 | ||
8 | unsigned int gpio_detect; | 11 | unsigned int gpio_detect; |
9 | unsigned int gpio_wprotect; | 12 | unsigned int gpio_wprotect; |
diff --git a/arch/arm/plat-s3c64xx/dma.c b/arch/arm/plat-s3c64xx/dma.c index 67aa93dbb69e..266a10745a85 100644 --- a/arch/arm/plat-s3c64xx/dma.c +++ b/arch/arm/plat-s3c64xx/dma.c | |||
@@ -345,13 +345,13 @@ int s3c2410_dma_enqueue(unsigned int channel, void *id, | |||
345 | if (!chan) | 345 | if (!chan) |
346 | return -EINVAL; | 346 | return -EINVAL; |
347 | 347 | ||
348 | buff = kzalloc(sizeof(struct s3c64xx_dma_buff), GFP_KERNEL); | 348 | buff = kzalloc(sizeof(struct s3c64xx_dma_buff), GFP_ATOMIC); |
349 | if (!buff) { | 349 | if (!buff) { |
350 | printk(KERN_ERR "%s: no memory for buffer\n", __func__); | 350 | printk(KERN_ERR "%s: no memory for buffer\n", __func__); |
351 | return -ENOMEM; | 351 | return -ENOMEM; |
352 | } | 352 | } |
353 | 353 | ||
354 | lli = dma_pool_alloc(dma_pool, GFP_KERNEL, &buff->lli_dma); | 354 | lli = dma_pool_alloc(dma_pool, GFP_ATOMIC, &buff->lli_dma); |
355 | if (!lli) { | 355 | if (!lli) { |
356 | printk(KERN_ERR "%s: no memory for lli\n", __func__); | 356 | printk(KERN_ERR "%s: no memory for lli\n", __func__); |
357 | ret = -ENOMEM; | 357 | ret = -ENOMEM; |
@@ -697,7 +697,7 @@ static int __init s3c64xx_dma_init(void) | |||
697 | 697 | ||
698 | printk(KERN_INFO "%s: Registering DMA channels\n", __func__); | 698 | printk(KERN_INFO "%s: Registering DMA channels\n", __func__); |
699 | 699 | ||
700 | dma_pool = dma_pool_create("DMA-LLI", NULL, 32, 16, 0); | 700 | dma_pool = dma_pool_create("DMA-LLI", NULL, sizeof(struct pl080s_lli), 16, 0); |
701 | if (!dma_pool) { | 701 | if (!dma_pool) { |
702 | printk(KERN_ERR "%s: failed to create pool\n", __func__); | 702 | printk(KERN_ERR "%s: failed to create pool\n", __func__); |
703 | return -ENOMEM; | 703 | return -ENOMEM; |
diff --git a/arch/arm/plat-s3c64xx/include/plat/dma-plat.h b/arch/arm/plat-s3c64xx/include/plat/dma-plat.h index 0c30dd986725..8f76a1e474d6 100644 --- a/arch/arm/plat-s3c64xx/include/plat/dma-plat.h +++ b/arch/arm/plat-s3c64xx/include/plat/dma-plat.h | |||
@@ -26,7 +26,7 @@ struct s3c64xx_dma_buff { | |||
26 | struct s3c64xx_dma_buff *next; | 26 | struct s3c64xx_dma_buff *next; |
27 | 27 | ||
28 | void *pw; | 28 | void *pw; |
29 | struct pl080_lli *lli; | 29 | struct pl080s_lli *lli; |
30 | dma_addr_t lli_dma; | 30 | dma_addr_t lli_dma; |
31 | }; | 31 | }; |
32 | 32 | ||
diff --git a/arch/arm/plat-s3c64xx/include/plat/irqs.h b/arch/arm/plat-s3c64xx/include/plat/irqs.h index 743a70094d04..7956fd3bb194 100644 --- a/arch/arm/plat-s3c64xx/include/plat/irqs.h +++ b/arch/arm/plat-s3c64xx/include/plat/irqs.h | |||
@@ -194,9 +194,17 @@ | |||
194 | 194 | ||
195 | #define IRQ_EINT_GROUP(group, no) (IRQ_EINT_GROUP##group##_BASE + (no)) | 195 | #define IRQ_EINT_GROUP(group, no) (IRQ_EINT_GROUP##group##_BASE + (no)) |
196 | 196 | ||
197 | /* Define a group of interrupts for board-specific use (eg, for MFD | ||
198 | * interrupt controllers). */ | ||
199 | #define IRQ_BOARD_START (IRQ_EINT_GROUP9_BASE + IRQ_EINT_GROUP9_NR + 1) | ||
200 | |||
201 | #define IRQ_BOARD_NR 16 | ||
202 | |||
203 | #define IRQ_BOARD_END (IRQ_BOARD_START + IRQ_BOARD_NR) | ||
204 | |||
197 | /* Set the default NR_IRQS */ | 205 | /* Set the default NR_IRQS */ |
198 | 206 | ||
199 | #define NR_IRQS (IRQ_EINT_GROUP9_BASE + IRQ_EINT_GROUP9_NR + 1) | 207 | #define NR_IRQS (IRQ_BOARD_END + 1) |
200 | 208 | ||
201 | #endif /* __ASM_PLAT_S3C64XX_IRQS_H */ | 209 | #endif /* __ASM_PLAT_S3C64XX_IRQS_H */ |
202 | 210 | ||
diff --git a/arch/arm/plat-s3c64xx/s3c6400-clock.c b/arch/arm/plat-s3c64xx/s3c6400-clock.c index febac1950d8e..9745852261e0 100644 --- a/arch/arm/plat-s3c64xx/s3c6400-clock.c +++ b/arch/arm/plat-s3c64xx/s3c6400-clock.c | |||
@@ -302,8 +302,8 @@ static int s3c64xx_setrate_clksrc(struct clk *clk, unsigned long rate) | |||
302 | return -EINVAL; | 302 | return -EINVAL; |
303 | 303 | ||
304 | val = __raw_readl(reg); | 304 | val = __raw_readl(reg); |
305 | val &= ~(0xf << sclk->shift); | 305 | val &= ~(0xf << sclk->divider_shift); |
306 | val |= (div - 1) << sclk->shift; | 306 | val |= (div - 1) << sclk->divider_shift; |
307 | __raw_writel(val, reg); | 307 | __raw_writel(val, reg); |
308 | 308 | ||
309 | return 0; | 309 | return 0; |
@@ -328,6 +328,8 @@ static int s3c64xx_setparent_clksrc(struct clk *clk, struct clk *parent) | |||
328 | clksrc |= src_nr << sclk->shift; | 328 | clksrc |= src_nr << sclk->shift; |
329 | 329 | ||
330 | __raw_writel(clksrc, S3C_CLK_SRC); | 330 | __raw_writel(clksrc, S3C_CLK_SRC); |
331 | |||
332 | clk->parent = parent; | ||
331 | return 0; | 333 | return 0; |
332 | } | 334 | } |
333 | 335 | ||
@@ -343,7 +345,7 @@ static unsigned long s3c64xx_roundrate_clksrc(struct clk *clk, | |||
343 | if (rate > parent_rate) | 345 | if (rate > parent_rate) |
344 | rate = parent_rate; | 346 | rate = parent_rate; |
345 | else { | 347 | else { |
346 | div = rate / parent_rate; | 348 | div = parent_rate / rate; |
347 | 349 | ||
348 | if (div == 0) | 350 | if (div == 0) |
349 | div = 1; | 351 | div = 1; |
diff --git a/arch/arm/plat-stmp3xxx/dma.c b/arch/arm/plat-stmp3xxx/dma.c index d2f497764dce..ef88f25fb870 100644 --- a/arch/arm/plat-stmp3xxx/dma.c +++ b/arch/arm/plat-stmp3xxx/dma.c | |||
@@ -264,7 +264,7 @@ int stmp3xxx_dma_make_chain(int ch, struct stmp37xx_circ_dma_chain *chain, | |||
264 | stmp3xxx_dma_free_command(ch, | 264 | stmp3xxx_dma_free_command(ch, |
265 | &descriptors | 265 | &descriptors |
266 | [i]); | 266 | [i]); |
267 | } while (i-- >= 0); | 267 | } while (i-- > 0); |
268 | } | 268 | } |
269 | return err; | 269 | return err; |
270 | } | 270 | } |
diff --git a/arch/arm/tools/mach-types b/arch/arm/tools/mach-types index c8c55b469342..94be7bb6cb9a 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: Sat Sep 12 12:00:16 2009 | 15 | # Last update: Fri Sep 18 21:42:00 2009 |
16 | # | 16 | # |
17 | # machine_is_xxx CONFIG_xxxx MACH_TYPE_xxx number | 17 | # machine_is_xxx CONFIG_xxxx MACH_TYPE_xxx number |
18 | # | 18 | # |
@@ -1638,7 +1638,7 @@ mx35evb MACH_MX35EVB MX35EVB 1643 | |||
1638 | aml_m8050 MACH_AML_M8050 AML_M8050 1644 | 1638 | aml_m8050 MACH_AML_M8050 AML_M8050 1644 |
1639 | mx35_3ds MACH_MX35_3DS MX35_3DS 1645 | 1639 | mx35_3ds MACH_MX35_3DS MX35_3DS 1645 |
1640 | mars MACH_MARS MARS 1646 | 1640 | mars MACH_MARS MARS 1646 |
1641 | ntosd_644xa MACH_NTOSD_644XA NTOSD_644XA 1647 | 1641 | neuros_osd2 MACH_NEUROS_OSD2 NEUROS_OSD2 1647 |
1642 | badger MACH_BADGER BADGER 1648 | 1642 | badger MACH_BADGER BADGER 1648 |
1643 | trizeps4wl MACH_TRIZEPS4WL TRIZEPS4WL 1649 | 1643 | trizeps4wl MACH_TRIZEPS4WL TRIZEPS4WL 1649 |
1644 | trizeps5 MACH_TRIZEPS5 TRIZEPS5 1650 | 1644 | trizeps5 MACH_TRIZEPS5 TRIZEPS5 1650 |
@@ -1654,7 +1654,7 @@ vf10xx MACH_VF10XX VF10XX 1659 | |||
1654 | zoran43xx MACH_ZORAN43XX ZORAN43XX 1660 | 1654 | zoran43xx MACH_ZORAN43XX ZORAN43XX 1660 |
1655 | sonix926 MACH_SONIX926 SONIX926 1661 | 1655 | sonix926 MACH_SONIX926 SONIX926 1661 |
1656 | celestialsemi MACH_CELESTIALSEMI CELESTIALSEMI 1662 | 1656 | celestialsemi MACH_CELESTIALSEMI CELESTIALSEMI 1662 |
1657 | cc9m2443 MACH_CC9M2443 CC9M2443 1663 | 1657 | cc9m2443js MACH_CC9M2443JS CC9M2443JS 1663 |
1658 | tw5334 MACH_TW5334 TW5334 1664 | 1658 | tw5334 MACH_TW5334 TW5334 1664 |
1659 | omap_htcartemis MACH_HTCARTEMIS HTCARTEMIS 1665 | 1659 | omap_htcartemis MACH_HTCARTEMIS HTCARTEMIS 1665 |
1660 | nal_hlite MACH_NAL_HLITE NAL_HLITE 1666 | 1660 | nal_hlite MACH_NAL_HLITE NAL_HLITE 1666 |
@@ -1802,7 +1802,7 @@ ccw9p9215js MACH_CCW9P9215JS CCW9P9215JS 1811 | |||
1802 | rd88f5181l_ge MACH_RD88F5181L_GE RD88F5181L_GE 1812 | 1802 | rd88f5181l_ge MACH_RD88F5181L_GE RD88F5181L_GE 1812 |
1803 | sifmain MACH_SIFMAIN SIFMAIN 1813 | 1803 | sifmain MACH_SIFMAIN SIFMAIN 1813 |
1804 | sam9_l9261 MACH_SAM9_L9261 SAM9_L9261 1814 | 1804 | sam9_l9261 MACH_SAM9_L9261 SAM9_L9261 1814 |
1805 | cc9m2443js MACH_CC9M2443JS CC9M2443JS 1815 | 1805 | cc9m2443 MACH_CC9M2443 CC9M2443 1815 |
1806 | xaria300 MACH_XARIA300 XARIA300 1816 | 1806 | xaria300 MACH_XARIA300 XARIA300 1816 |
1807 | it9200 MACH_IT9200 IT9200 1817 | 1807 | it9200 MACH_IT9200 IT9200 1817 |
1808 | rd88f5181l_fxo MACH_RD88F5181L_FXO RD88F5181L_FXO 1818 | 1808 | rd88f5181l_fxo MACH_RD88F5181L_FXO RD88F5181L_FXO 1818 |
@@ -2409,3 +2409,15 @@ platypus MACH_PLATYPUS PLATYPUS 2422 | |||
2409 | pss2 MACH_PSS2 PSS2 2423 | 2409 | pss2 MACH_PSS2 PSS2 2423 |
2410 | davinci_apm150 MACH_DAVINCI_APM150 DAVINCI_APM150 2424 | 2410 | davinci_apm150 MACH_DAVINCI_APM150 DAVINCI_APM150 2424 |
2411 | str9100 MACH_STR9100 STR9100 2425 | 2411 | str9100 MACH_STR9100 STR9100 2425 |
2412 | net5big MACH_NET5BIG NET5BIG 2426 | ||
2413 | seabed9263 MACH_SEABED9263 SEABED9263 2427 | ||
2414 | mx51_m2id MACH_MX51_M2ID MX51_M2ID 2428 | ||
2415 | octvocplus_eb MACH_OCTVOCPLUS_EB OCTVOCPLUS_EB 2429 | ||
2416 | klk_firefox MACH_KLK_FIREFOX KLK_FIREFOX 2430 | ||
2417 | klk_wirma_module MACH_KLK_WIRMA_MODULE KLK_WIRMA_MODULE 2431 | ||
2418 | klk_wirma_mmi MACH_KLK_WIRMA_MMI KLK_WIRMA_MMI 2432 | ||
2419 | supersonic MACH_SUPERSONIC SUPERSONIC 2433 | ||
2420 | liberty MACH_LIBERTY LIBERTY 2434 | ||
2421 | mh355 MACH_MH355 MH355 2435 | ||
2422 | pc7802 MACH_PC7802 PC7802 2436 | ||
2423 | gnet_sgc MACH_GNET_SGC GNET_SGC 2437 | ||