diff options
Diffstat (limited to 'arch/arm/mach-ux500')
-rw-r--r-- | arch/arm/mach-ux500/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-pins.c | 34 | ||||
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-sdi.c | 52 | ||||
-rw-r--r-- | arch/arm/mach-ux500/board-mop500.c | 84 | ||||
-rw-r--r-- | arch/arm/mach-ux500/board-mop500.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-ux500/board-u5500.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-ux500/cache-l2x0.c | 95 | ||||
-rw-r--r-- | arch/arm/mach-ux500/cpu.c | 92 | ||||
-rw-r--r-- | arch/arm/mach-ux500/include/mach/uncompress.h | 10 | ||||
-rw-r--r-- | arch/arm/mach-ux500/pins-db8500.h | 142 |
10 files changed, 297 insertions, 218 deletions
diff --git a/arch/arm/mach-ux500/Makefile b/arch/arm/mach-ux500/Makefile index 1694916e6822..9fd00a6d4248 100644 --- a/arch/arm/mach-ux500/Makefile +++ b/arch/arm/mach-ux500/Makefile | |||
@@ -4,6 +4,7 @@ | |||
4 | 4 | ||
5 | obj-y := clock.o cpu.o devices.o devices-common.o \ | 5 | obj-y := clock.o cpu.o devices.o devices-common.o \ |
6 | id.o usb.o | 6 | id.o usb.o |
7 | obj-$(CONFIG_CACHE_L2X0) += cache-l2x0.o | ||
7 | obj-$(CONFIG_UX500_SOC_DB5500) += cpu-db5500.o dma-db5500.o | 8 | obj-$(CONFIG_UX500_SOC_DB5500) += cpu-db5500.o dma-db5500.o |
8 | obj-$(CONFIG_UX500_SOC_DB8500) += cpu-db8500.o devices-db8500.o | 9 | obj-$(CONFIG_UX500_SOC_DB8500) += cpu-db8500.o devices-db8500.o |
9 | obj-$(CONFIG_MACH_U8500) += board-mop500.o board-mop500-sdi.o \ | 10 | obj-$(CONFIG_MACH_U8500) += board-mop500.o board-mop500-sdi.o \ |
diff --git a/arch/arm/mach-ux500/board-mop500-pins.c b/arch/arm/mach-ux500/board-mop500-pins.c index f26fd76f72b4..4108c7bf324e 100644 --- a/arch/arm/mach-ux500/board-mop500-pins.c +++ b/arch/arm/mach-ux500/board-mop500-pins.c | |||
@@ -153,7 +153,7 @@ static pin_cfg_t mop500_pins_default[] = { | |||
153 | GPIO7_U1_RTSn | PIN_OUTPUT_HIGH, | 153 | GPIO7_U1_RTSn | PIN_OUTPUT_HIGH, |
154 | }; | 154 | }; |
155 | 155 | ||
156 | static pin_cfg_t mop500_pins_hrefv60[] = { | 156 | static pin_cfg_t hrefv60_pins[] = { |
157 | /* WLAN */ | 157 | /* WLAN */ |
158 | GPIO4_GPIO | PIN_INPUT_PULLUP,/* WLAN_IRQ */ | 158 | GPIO4_GPIO | PIN_INPUT_PULLUP,/* WLAN_IRQ */ |
159 | GPIO85_GPIO | PIN_OUTPUT_LOW,/* WLAN_ENA */ | 159 | GPIO85_GPIO | PIN_OUTPUT_LOW,/* WLAN_ENA */ |
@@ -279,14 +279,26 @@ static pin_cfg_t snowball_pins[] = { | |||
279 | void __init mop500_pins_init(void) | 279 | void __init mop500_pins_init(void) |
280 | { | 280 | { |
281 | nmk_config_pins(mop500_pins_common, | 281 | nmk_config_pins(mop500_pins_common, |
282 | ARRAY_SIZE(mop500_pins_common)); | 282 | ARRAY_SIZE(mop500_pins_common)); |
283 | if (machine_is_hrefv60()) | 283 | |
284 | nmk_config_pins(mop500_pins_hrefv60, | 284 | nmk_config_pins(mop500_pins_default, |
285 | ARRAY_SIZE(mop500_pins_hrefv60)); | 285 | ARRAY_SIZE(mop500_pins_default)); |
286 | else if (machine_is_snowball()) | 286 | } |
287 | nmk_config_pins(snowball_pins, | 287 | |
288 | ARRAY_SIZE(snowball_pins)); | 288 | void __init snowball_pins_init(void) |
289 | else | 289 | { |
290 | nmk_config_pins(mop500_pins_default, | 290 | nmk_config_pins(mop500_pins_common, |
291 | ARRAY_SIZE(mop500_pins_default)); | 291 | ARRAY_SIZE(mop500_pins_common)); |
292 | |||
293 | nmk_config_pins(snowball_pins, | ||
294 | ARRAY_SIZE(snowball_pins)); | ||
295 | } | ||
296 | |||
297 | void __init hrefv60_pins_init(void) | ||
298 | { | ||
299 | nmk_config_pins(mop500_pins_common, | ||
300 | ARRAY_SIZE(mop500_pins_common)); | ||
301 | |||
302 | nmk_config_pins(hrefv60_pins, | ||
303 | ARRAY_SIZE(hrefv60_pins)); | ||
292 | } | 304 | } |
diff --git a/arch/arm/mach-ux500/board-mop500-sdi.c b/arch/arm/mach-ux500/board-mop500-sdi.c index d0cb9e5eb87c..6826faeecc68 100644 --- a/arch/arm/mach-ux500/board-mop500-sdi.c +++ b/arch/arm/mach-ux500/board-mop500-sdi.c | |||
@@ -216,30 +216,48 @@ void __init mop500_sdi_init(void) | |||
216 | /* PoP:ed eMMC on top of DB8500 v1.0 has problems with high speed */ | 216 | /* PoP:ed eMMC on top of DB8500 v1.0 has problems with high speed */ |
217 | if (!cpu_is_u8500v10()) | 217 | if (!cpu_is_u8500v10()) |
218 | mop500_sdi2_data.capabilities |= MMC_CAP_MMC_HIGHSPEED; | 218 | mop500_sdi2_data.capabilities |= MMC_CAP_MMC_HIGHSPEED; |
219 | /* sdi2 on snowball is in ATL_B mode for FSMC (LAN) */ | 219 | |
220 | if (!machine_is_snowball()) | 220 | db8500_add_sdi2(&mop500_sdi2_data, periphid); |
221 | db8500_add_sdi2(&mop500_sdi2_data, periphid); | ||
222 | 221 | ||
223 | /* On-board eMMC */ | 222 | /* On-board eMMC */ |
224 | db8500_add_sdi4(&mop500_sdi4_data, periphid); | 223 | db8500_add_sdi4(&mop500_sdi4_data, periphid); |
225 | 224 | ||
226 | if (machine_is_hrefv60() || machine_is_snowball()) { | ||
227 | if (machine_is_hrefv60()) { | ||
228 | mop500_sdi0_data.gpio_cd = HREFV60_SDMMC_CD_GPIO; | ||
229 | sdi0_en = HREFV60_SDMMC_EN_GPIO; | ||
230 | sdi0_vsel = HREFV60_SDMMC_1V8_3V_GPIO; | ||
231 | } else if (machine_is_snowball()) { | ||
232 | mop500_sdi0_data.gpio_cd = SNOWBALL_SDMMC_CD_GPIO; | ||
233 | mop500_sdi0_data.cd_invert = true; | ||
234 | sdi0_en = SNOWBALL_SDMMC_EN_GPIO; | ||
235 | sdi0_vsel = SNOWBALL_SDMMC_1V8_3V_GPIO; | ||
236 | } | ||
237 | sdi0_configure(); | ||
238 | } | ||
239 | |||
240 | /* | 225 | /* |
241 | * On boards with the TC35892 GPIO expander, sdi0 will finally | 226 | * On boards with the TC35892 GPIO expander, sdi0 will finally |
242 | * be added when the TC35892 initializes and calls | 227 | * be added when the TC35892 initializes and calls |
243 | * mop500_sdi_tc35892_init() above. | 228 | * mop500_sdi_tc35892_init() above. |
244 | */ | 229 | */ |
245 | } | 230 | } |
231 | |||
232 | void __init snowball_sdi_init(void) | ||
233 | { | ||
234 | u32 periphid = 0x10480180; | ||
235 | |||
236 | mop500_sdi2_data.capabilities |= MMC_CAP_MMC_HIGHSPEED; | ||
237 | |||
238 | /* On-board eMMC */ | ||
239 | db8500_add_sdi4(&mop500_sdi4_data, periphid); | ||
240 | |||
241 | mop500_sdi0_data.gpio_cd = SNOWBALL_SDMMC_CD_GPIO; | ||
242 | mop500_sdi0_data.cd_invert = true; | ||
243 | sdi0_en = SNOWBALL_SDMMC_EN_GPIO; | ||
244 | sdi0_vsel = SNOWBALL_SDMMC_1V8_3V_GPIO; | ||
245 | sdi0_configure(); | ||
246 | } | ||
247 | |||
248 | void __init hrefv60_sdi_init(void) | ||
249 | { | ||
250 | u32 periphid = 0x10480180; | ||
251 | |||
252 | mop500_sdi2_data.capabilities |= MMC_CAP_MMC_HIGHSPEED; | ||
253 | |||
254 | db8500_add_sdi2(&mop500_sdi2_data, periphid); | ||
255 | |||
256 | /* On-board eMMC */ | ||
257 | db8500_add_sdi4(&mop500_sdi4_data, periphid); | ||
258 | |||
259 | mop500_sdi0_data.gpio_cd = HREFV60_SDMMC_CD_GPIO; | ||
260 | sdi0_en = HREFV60_SDMMC_EN_GPIO; | ||
261 | sdi0_vsel = HREFV60_SDMMC_1V8_3V_GPIO; | ||
262 | sdi0_configure(); | ||
263 | } | ||
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index cd54abaccd96..4810968b672c 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c | |||
@@ -603,28 +603,72 @@ static void __init mop500_init_machine(void) | |||
603 | { | 603 | { |
604 | int i2c0_devs; | 604 | int i2c0_devs; |
605 | 605 | ||
606 | mop500_gpio_keys[0].gpio = GPIO_PROX_SENSOR; | ||
607 | |||
608 | u8500_init_devices(); | ||
609 | |||
610 | mop500_pins_init(); | ||
611 | |||
612 | platform_add_devices(mop500_platform_devs, | ||
613 | ARRAY_SIZE(mop500_platform_devs)); | ||
614 | |||
615 | mop500_i2c_init(); | ||
616 | mop500_sdi_init(); | ||
617 | mop500_spi_init(); | ||
618 | mop500_uart_init(); | ||
619 | |||
620 | i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices); | ||
621 | |||
622 | i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs); | ||
623 | i2c_register_board_info(2, mop500_i2c2_devices, | ||
624 | ARRAY_SIZE(mop500_i2c2_devices)); | ||
625 | |||
626 | /* This board has full regulator constraints */ | ||
627 | regulator_has_full_constraints(); | ||
628 | } | ||
629 | |||
630 | static void __init snowball_init_machine(void) | ||
631 | { | ||
632 | int i2c0_devs; | ||
633 | |||
634 | u8500_init_devices(); | ||
635 | |||
636 | snowball_pins_init(); | ||
637 | |||
638 | platform_add_devices(snowball_platform_devs, | ||
639 | ARRAY_SIZE(snowball_platform_devs)); | ||
640 | |||
641 | mop500_i2c_init(); | ||
642 | snowball_sdi_init(); | ||
643 | mop500_spi_init(); | ||
644 | mop500_uart_init(); | ||
645 | |||
646 | i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices); | ||
647 | i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs); | ||
648 | i2c_register_board_info(2, mop500_i2c2_devices, | ||
649 | ARRAY_SIZE(mop500_i2c2_devices)); | ||
650 | |||
651 | /* This board has full regulator constraints */ | ||
652 | regulator_has_full_constraints(); | ||
653 | } | ||
654 | |||
655 | static void __init hrefv60_init_machine(void) | ||
656 | { | ||
657 | int i2c0_devs; | ||
658 | |||
606 | /* | 659 | /* |
607 | * The HREFv60 board removed a GPIO expander and routed | 660 | * The HREFv60 board removed a GPIO expander and routed |
608 | * all these GPIO pins to the internal GPIO controller | 661 | * all these GPIO pins to the internal GPIO controller |
609 | * instead. | 662 | * instead. |
610 | */ | 663 | */ |
611 | if (!machine_is_snowball()) { | 664 | mop500_gpio_keys[0].gpio = HREFV60_PROX_SENSE_GPIO; |
612 | if (machine_is_hrefv60()) | ||
613 | mop500_gpio_keys[0].gpio = HREFV60_PROX_SENSE_GPIO; | ||
614 | else | ||
615 | mop500_gpio_keys[0].gpio = GPIO_PROX_SENSOR; | ||
616 | } | ||
617 | 665 | ||
618 | u8500_init_devices(); | 666 | u8500_init_devices(); |
619 | 667 | ||
620 | mop500_pins_init(); | 668 | hrefv60_pins_init(); |
621 | 669 | ||
622 | if (machine_is_snowball()) | 670 | platform_add_devices(mop500_platform_devs, |
623 | platform_add_devices(snowball_platform_devs, | 671 | ARRAY_SIZE(mop500_platform_devs)); |
624 | ARRAY_SIZE(snowball_platform_devs)); | ||
625 | else | ||
626 | platform_add_devices(mop500_platform_devs, | ||
627 | ARRAY_SIZE(mop500_platform_devs)); | ||
628 | 672 | ||
629 | mop500_i2c_init(); | 673 | mop500_i2c_init(); |
630 | mop500_sdi_init(); | 674 | mop500_sdi_init(); |
@@ -632,8 +676,8 @@ static void __init mop500_init_machine(void) | |||
632 | mop500_uart_init(); | 676 | mop500_uart_init(); |
633 | 677 | ||
634 | i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices); | 678 | i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices); |
635 | if (machine_is_hrefv60()) | 679 | |
636 | i2c0_devs -= NUM_PRE_V60_I2C0_DEVICES; | 680 | i2c0_devs -= NUM_PRE_V60_I2C0_DEVICES; |
637 | 681 | ||
638 | i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs); | 682 | i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs); |
639 | i2c_register_board_info(2, mop500_i2c2_devices, | 683 | i2c_register_board_info(2, mop500_i2c2_devices, |
@@ -645,7 +689,7 @@ static void __init mop500_init_machine(void) | |||
645 | 689 | ||
646 | MACHINE_START(U8500, "ST-Ericsson MOP500 platform") | 690 | MACHINE_START(U8500, "ST-Ericsson MOP500 platform") |
647 | /* Maintainer: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com> */ | 691 | /* Maintainer: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com> */ |
648 | .boot_params = 0x100, | 692 | .atag_offset = 0x100, |
649 | .map_io = u8500_map_io, | 693 | .map_io = u8500_map_io, |
650 | .init_irq = ux500_init_irq, | 694 | .init_irq = ux500_init_irq, |
651 | /* we re-use nomadik timer here */ | 695 | /* we re-use nomadik timer here */ |
@@ -654,18 +698,18 @@ MACHINE_START(U8500, "ST-Ericsson MOP500 platform") | |||
654 | MACHINE_END | 698 | MACHINE_END |
655 | 699 | ||
656 | MACHINE_START(HREFV60, "ST-Ericsson U8500 Platform HREFv60+") | 700 | MACHINE_START(HREFV60, "ST-Ericsson U8500 Platform HREFv60+") |
657 | .boot_params = 0x100, | 701 | .atag_offset = 0x100, |
658 | .map_io = u8500_map_io, | 702 | .map_io = u8500_map_io, |
659 | .init_irq = ux500_init_irq, | 703 | .init_irq = ux500_init_irq, |
660 | .timer = &ux500_timer, | 704 | .timer = &ux500_timer, |
661 | .init_machine = mop500_init_machine, | 705 | .init_machine = hrefv60_init_machine, |
662 | MACHINE_END | 706 | MACHINE_END |
663 | 707 | ||
664 | MACHINE_START(SNOWBALL, "Calao Systems Snowball platform") | 708 | MACHINE_START(SNOWBALL, "Calao Systems Snowball platform") |
665 | .boot_params = 0x100, | 709 | .atag_offset = 0x100, |
666 | .map_io = u8500_map_io, | 710 | .map_io = u8500_map_io, |
667 | .init_irq = ux500_init_irq, | 711 | .init_irq = ux500_init_irq, |
668 | /* we re-use nomadik timer here */ | 712 | /* we re-use nomadik timer here */ |
669 | .timer = &ux500_timer, | 713 | .timer = &ux500_timer, |
670 | .init_machine = mop500_init_machine, | 714 | .init_machine = snowball_init_machine, |
671 | MACHINE_END | 715 | MACHINE_END |
diff --git a/arch/arm/mach-ux500/board-mop500.h b/arch/arm/mach-ux500/board-mop500.h index ee77a8970c33..de18a2a23e6e 100644 --- a/arch/arm/mach-ux500/board-mop500.h +++ b/arch/arm/mach-ux500/board-mop500.h | |||
@@ -40,10 +40,13 @@ | |||
40 | struct i2c_board_info; | 40 | struct i2c_board_info; |
41 | 41 | ||
42 | extern void mop500_sdi_init(void); | 42 | extern void mop500_sdi_init(void); |
43 | extern void snowball_sdi_init(void); | ||
43 | extern void mop500_sdi_tc35892_init(void); | 44 | extern void mop500_sdi_tc35892_init(void); |
44 | void __init mop500_u8500uib_init(void); | 45 | void __init mop500_u8500uib_init(void); |
45 | void __init mop500_stuib_init(void); | 46 | void __init mop500_stuib_init(void); |
46 | void __init mop500_pins_init(void); | 47 | void __init mop500_pins_init(void); |
48 | void __init hrefv60_pins_init(void); | ||
49 | void __init snowball_pins_init(void); | ||
47 | 50 | ||
48 | void mop500_uib_i2c_add(int busnum, struct i2c_board_info *info, | 51 | void mop500_uib_i2c_add(int busnum, struct i2c_board_info *info, |
49 | unsigned n); | 52 | unsigned n); |
diff --git a/arch/arm/mach-ux500/board-u5500.c b/arch/arm/mach-ux500/board-u5500.c index e58f0f562426..166d47a5f4f3 100644 --- a/arch/arm/mach-ux500/board-u5500.c +++ b/arch/arm/mach-ux500/board-u5500.c | |||
@@ -118,7 +118,7 @@ static void __init u5500_init_machine(void) | |||
118 | } | 118 | } |
119 | 119 | ||
120 | MACHINE_START(U5500, "ST-Ericsson U5500 Platform") | 120 | MACHINE_START(U5500, "ST-Ericsson U5500 Platform") |
121 | .boot_params = 0x00000100, | 121 | .atag_offset = 0x100, |
122 | .map_io = u5500_map_io, | 122 | .map_io = u5500_map_io, |
123 | .init_irq = ux500_init_irq, | 123 | .init_irq = ux500_init_irq, |
124 | .timer = &ux500_timer, | 124 | .timer = &ux500_timer, |
diff --git a/arch/arm/mach-ux500/cache-l2x0.c b/arch/arm/mach-ux500/cache-l2x0.c new file mode 100644 index 000000000000..122ddde00ba7 --- /dev/null +++ b/arch/arm/mach-ux500/cache-l2x0.c | |||
@@ -0,0 +1,95 @@ | |||
1 | /* | ||
2 | * Copyright (C) ST-Ericsson SA 2011 | ||
3 | * | ||
4 | * License terms: GNU General Public License (GPL) version 2 | ||
5 | */ | ||
6 | |||
7 | #include <linux/io.h> | ||
8 | #include <asm/cacheflush.h> | ||
9 | #include <asm/hardware/cache-l2x0.h> | ||
10 | #include <mach/hardware.h> | ||
11 | #include <mach/id.h> | ||
12 | |||
13 | static void __iomem *l2x0_base; | ||
14 | |||
15 | static inline void ux500_cache_wait(void __iomem *reg, unsigned long mask) | ||
16 | { | ||
17 | /* wait for the operation to complete */ | ||
18 | while (readl_relaxed(reg) & mask) | ||
19 | cpu_relax(); | ||
20 | } | ||
21 | |||
22 | static inline void ux500_cache_sync(void) | ||
23 | { | ||
24 | writel_relaxed(0, l2x0_base + L2X0_CACHE_SYNC); | ||
25 | ux500_cache_wait(l2x0_base + L2X0_CACHE_SYNC, 1); | ||
26 | } | ||
27 | |||
28 | /* | ||
29 | * The L2 cache cannot be turned off in the non-secure world. | ||
30 | * Dummy until a secure service is in place. | ||
31 | */ | ||
32 | static void ux500_l2x0_disable(void) | ||
33 | { | ||
34 | } | ||
35 | |||
36 | /* | ||
37 | * This is only called when doing a kexec, just after turning off the L2 | ||
38 | * and L1 cache, and it is surrounded by a spinlock in the generic version. | ||
39 | * However, we're not really turning off the L2 cache right now and the | ||
40 | * PL310 does not support exclusive accesses (used to implement the spinlock). | ||
41 | * So, the invalidation needs to be done without the spinlock. | ||
42 | */ | ||
43 | static void ux500_l2x0_inv_all(void) | ||
44 | { | ||
45 | uint32_t l2x0_way_mask = (1<<16) - 1; /* Bitmask of active ways */ | ||
46 | |||
47 | /* invalidate all ways */ | ||
48 | writel_relaxed(l2x0_way_mask, l2x0_base + L2X0_INV_WAY); | ||
49 | ux500_cache_wait(l2x0_base + L2X0_INV_WAY, l2x0_way_mask); | ||
50 | ux500_cache_sync(); | ||
51 | } | ||
52 | |||
53 | static int __init ux500_l2x0_unlock(void) | ||
54 | { | ||
55 | int i; | ||
56 | |||
57 | /* | ||
58 | * Unlock Data and Instruction Lock if locked. Ux500 U-Boot versions | ||
59 | * apparently locks both caches before jumping to the kernel. The | ||
60 | * l2x0 core will not touch the unlock registers if the l2x0 is | ||
61 | * already enabled, so we do it right here instead. The PL310 has | ||
62 | * 8 sets of registers, one per possible CPU. | ||
63 | */ | ||
64 | for (i = 0; i < 8; i++) { | ||
65 | writel_relaxed(0x0, l2x0_base + L2X0_LOCKDOWN_WAY_D_BASE + | ||
66 | i * L2X0_LOCKDOWN_STRIDE); | ||
67 | writel_relaxed(0x0, l2x0_base + L2X0_LOCKDOWN_WAY_I_BASE + | ||
68 | i * L2X0_LOCKDOWN_STRIDE); | ||
69 | } | ||
70 | return 0; | ||
71 | } | ||
72 | |||
73 | static int __init ux500_l2x0_init(void) | ||
74 | { | ||
75 | if (cpu_is_u5500()) | ||
76 | l2x0_base = __io_address(U5500_L2CC_BASE); | ||
77 | else if (cpu_is_u8500()) | ||
78 | l2x0_base = __io_address(U8500_L2CC_BASE); | ||
79 | else | ||
80 | ux500_unknown_soc(); | ||
81 | |||
82 | /* Unlock before init */ | ||
83 | ux500_l2x0_unlock(); | ||
84 | |||
85 | /* 64KB way size, 8 way associativity, force WA */ | ||
86 | l2x0_init(l2x0_base, 0x3e060000, 0xc0000fff); | ||
87 | |||
88 | /* Override invalidate function */ | ||
89 | outer_cache.disable = ux500_l2x0_disable; | ||
90 | outer_cache.inv_all = ux500_l2x0_inv_all; | ||
91 | |||
92 | return 0; | ||
93 | } | ||
94 | |||
95 | early_initcall(ux500_l2x0_init); | ||
diff --git a/arch/arm/mach-ux500/cpu.c b/arch/arm/mach-ux500/cpu.c index 8aa104a4711a..252e8b3c5706 100644 --- a/arch/arm/mach-ux500/cpu.c +++ b/arch/arm/mach-ux500/cpu.c | |||
@@ -11,8 +11,6 @@ | |||
11 | #include <linux/mfd/db8500-prcmu.h> | 11 | #include <linux/mfd/db8500-prcmu.h> |
12 | #include <linux/mfd/db5500-prcmu.h> | 12 | #include <linux/mfd/db5500-prcmu.h> |
13 | 13 | ||
14 | #include <asm/cacheflush.h> | ||
15 | #include <asm/hardware/cache-l2x0.h> | ||
16 | #include <asm/hardware/gic.h> | 14 | #include <asm/hardware/gic.h> |
17 | #include <asm/mach/map.h> | 15 | #include <asm/mach/map.h> |
18 | #include <asm/localtimer.h> | 16 | #include <asm/localtimer.h> |
@@ -26,10 +24,6 @@ | |||
26 | 24 | ||
27 | void __iomem *_PRCMU_BASE; | 25 | void __iomem *_PRCMU_BASE; |
28 | 26 | ||
29 | #ifdef CONFIG_CACHE_L2X0 | ||
30 | static void __iomem *l2x0_base; | ||
31 | #endif | ||
32 | |||
33 | void __init ux500_init_irq(void) | 27 | void __init ux500_init_irq(void) |
34 | { | 28 | { |
35 | void __iomem *dist_base; | 29 | void __iomem *dist_base; |
@@ -57,92 +51,6 @@ void __init ux500_init_irq(void) | |||
57 | clk_init(); | 51 | clk_init(); |
58 | } | 52 | } |
59 | 53 | ||
60 | #ifdef CONFIG_CACHE_L2X0 | ||
61 | static inline void ux500_cache_wait(void __iomem *reg, unsigned long mask) | ||
62 | { | ||
63 | /* wait for the operation to complete */ | ||
64 | while (readl_relaxed(reg) & mask) | ||
65 | ; | ||
66 | } | ||
67 | |||
68 | static inline void ux500_cache_sync(void) | ||
69 | { | ||
70 | void __iomem *base = l2x0_base; | ||
71 | |||
72 | writel_relaxed(0, base + L2X0_CACHE_SYNC); | ||
73 | ux500_cache_wait(base + L2X0_CACHE_SYNC, 1); | ||
74 | } | ||
75 | |||
76 | /* | ||
77 | * The L2 cache cannot be turned off in the non-secure world. | ||
78 | * Dummy until a secure service is in place. | ||
79 | */ | ||
80 | static void ux500_l2x0_disable(void) | ||
81 | { | ||
82 | } | ||
83 | |||
84 | /* | ||
85 | * This is only called when doing a kexec, just after turning off the L2 | ||
86 | * and L1 cache, and it is surrounded by a spinlock in the generic version. | ||
87 | * However, we're not really turning off the L2 cache right now and the | ||
88 | * PL310 does not support exclusive accesses (used to implement the spinlock). | ||
89 | * So, the invalidation needs to be done without the spinlock. | ||
90 | */ | ||
91 | static void ux500_l2x0_inv_all(void) | ||
92 | { | ||
93 | void __iomem *base = l2x0_base; | ||
94 | uint32_t l2x0_way_mask = (1<<16) - 1; /* Bitmask of active ways */ | ||
95 | |||
96 | /* invalidate all ways */ | ||
97 | writel_relaxed(l2x0_way_mask, base + L2X0_INV_WAY); | ||
98 | ux500_cache_wait(base + L2X0_INV_WAY, l2x0_way_mask); | ||
99 | ux500_cache_sync(); | ||
100 | } | ||
101 | |||
102 | static int __init ux500_l2x0_unlock(void) | ||
103 | { | ||
104 | int i; | ||
105 | |||
106 | /* | ||
107 | * Unlock Data and Instruction Lock if locked. Ux500 U-Boot versions | ||
108 | * apparently locks both caches before jumping to the kernel. The | ||
109 | * l2x0 core will not touch the unlock registers if the l2x0 is | ||
110 | * already enabled, so we do it right here instead. The PL310 has | ||
111 | * 8 sets of registers, one per possible CPU. | ||
112 | */ | ||
113 | for (i = 0; i < 8; i++) { | ||
114 | writel_relaxed(0x0, l2x0_base + L2X0_LOCKDOWN_WAY_D_BASE + | ||
115 | i * L2X0_LOCKDOWN_STRIDE); | ||
116 | writel_relaxed(0x0, l2x0_base + L2X0_LOCKDOWN_WAY_I_BASE + | ||
117 | i * L2X0_LOCKDOWN_STRIDE); | ||
118 | } | ||
119 | return 0; | ||
120 | } | ||
121 | |||
122 | static int __init ux500_l2x0_init(void) | ||
123 | { | ||
124 | if (cpu_is_u5500()) | ||
125 | l2x0_base = __io_address(U5500_L2CC_BASE); | ||
126 | else if (cpu_is_u8500()) | ||
127 | l2x0_base = __io_address(U8500_L2CC_BASE); | ||
128 | else | ||
129 | ux500_unknown_soc(); | ||
130 | |||
131 | /* Unlock before init */ | ||
132 | ux500_l2x0_unlock(); | ||
133 | |||
134 | /* 64KB way size, 8 way associativity, force WA */ | ||
135 | l2x0_init(l2x0_base, 0x3e060000, 0xc0000fff); | ||
136 | |||
137 | /* Override invalidate function */ | ||
138 | outer_cache.disable = ux500_l2x0_disable; | ||
139 | outer_cache.inv_all = ux500_l2x0_inv_all; | ||
140 | |||
141 | return 0; | ||
142 | } | ||
143 | early_initcall(ux500_l2x0_init); | ||
144 | #endif | ||
145 | |||
146 | static void __init ux500_timer_init(void) | 54 | static void __init ux500_timer_init(void) |
147 | { | 55 | { |
148 | #ifdef CONFIG_LOCAL_TIMERS | 56 | #ifdef CONFIG_LOCAL_TIMERS |
diff --git a/arch/arm/mach-ux500/include/mach/uncompress.h b/arch/arm/mach-ux500/include/mach/uncompress.h index 7dd08074c37b..6fb3c4b0105d 100644 --- a/arch/arm/mach-ux500/include/mach/uncompress.h +++ b/arch/arm/mach-ux500/include/mach/uncompress.h | |||
@@ -51,15 +51,9 @@ static void flush(void) | |||
51 | static inline void arch_decomp_setup(void) | 51 | static inline void arch_decomp_setup(void) |
52 | { | 52 | { |
53 | /* Check in run time if we run on an U8500 or U5500 */ | 53 | /* Check in run time if we run on an U8500 or U5500 */ |
54 | if (machine_is_u8500() || | 54 | if (machine_is_u5500()) |
55 | machine_is_svp8500v1() || | ||
56 | machine_is_svp8500v2() || | ||
57 | machine_is_hrefv60() || | ||
58 | machine_is_snowball()) | ||
59 | ux500_uart_base = U8500_UART2_BASE; | ||
60 | else if (machine_is_u5500()) | ||
61 | ux500_uart_base = U5500_UART0_BASE; | 55 | ux500_uart_base = U5500_UART0_BASE; |
62 | else /* not much can be done to help here */ | 56 | else |
63 | ux500_uart_base = U8500_UART2_BASE; | 57 | ux500_uart_base = U8500_UART2_BASE; |
64 | } | 58 | } |
65 | 59 | ||
diff --git a/arch/arm/mach-ux500/pins-db8500.h b/arch/arm/mach-ux500/pins-db8500.h index f923764ee16c..8b1d1a7a679e 100644 --- a/arch/arm/mach-ux500/pins-db8500.h +++ b/arch/arm/mach-ux500/pins-db8500.h | |||
@@ -35,40 +35,40 @@ | |||
35 | 35 | ||
36 | #define GPIO4_GPIO PIN_CFG(4, GPIO) | 36 | #define GPIO4_GPIO PIN_CFG(4, GPIO) |
37 | #define GPIO4_U1_RXD PIN_CFG(4, ALT_A) | 37 | #define GPIO4_U1_RXD PIN_CFG(4, ALT_A) |
38 | #define GPIO4_I2C4_SCL PIN_CFG_PULL(4, ALT_B, UP) | 38 | #define GPIO4_I2C4_SCL PIN_CFG_INPUT(4, ALT_B, PULLUP) |
39 | #define GPIO4_IP_TRSTn PIN_CFG(4, ALT_C) | 39 | #define GPIO4_IP_TRSTn PIN_CFG(4, ALT_C) |
40 | 40 | ||
41 | #define GPIO5_GPIO PIN_CFG(5, GPIO) | 41 | #define GPIO5_GPIO PIN_CFG(5, GPIO) |
42 | #define GPIO5_U1_TXD PIN_CFG(5, ALT_A) | 42 | #define GPIO5_U1_TXD PIN_CFG(5, ALT_A) |
43 | #define GPIO5_I2C4_SDA PIN_CFG_PULL(5, ALT_B, UP) | 43 | #define GPIO5_I2C4_SDA PIN_CFG_INPUT(5, ALT_B, PULLUP) |
44 | #define GPIO5_IP_GPIO6 PIN_CFG(5, ALT_C) | 44 | #define GPIO5_IP_GPIO6 PIN_CFG(5, ALT_C) |
45 | 45 | ||
46 | #define GPIO6_GPIO PIN_CFG(6, GPIO) | 46 | #define GPIO6_GPIO PIN_CFG(6, GPIO) |
47 | #define GPIO6_U1_CTSn PIN_CFG(6, ALT_A) | 47 | #define GPIO6_U1_CTSn PIN_CFG(6, ALT_A) |
48 | #define GPIO6_I2C1_SCL PIN_CFG_PULL(6, ALT_B, UP) | 48 | #define GPIO6_I2C1_SCL PIN_CFG_INPUT(6, ALT_B, PULLUP) |
49 | #define GPIO6_IP_GPIO0 PIN_CFG(6, ALT_C) | 49 | #define GPIO6_IP_GPIO0 PIN_CFG(6, ALT_C) |
50 | 50 | ||
51 | #define GPIO7_GPIO PIN_CFG(7, GPIO) | 51 | #define GPIO7_GPIO PIN_CFG(7, GPIO) |
52 | #define GPIO7_U1_RTSn PIN_CFG(7, ALT_A) | 52 | #define GPIO7_U1_RTSn PIN_CFG(7, ALT_A) |
53 | #define GPIO7_I2C1_SDA PIN_CFG_PULL(7, ALT_B, UP) | 53 | #define GPIO7_I2C1_SDA PIN_CFG_INPUT(7, ALT_B, PULLUP) |
54 | #define GPIO7_IP_GPIO1 PIN_CFG(7, ALT_C) | 54 | #define GPIO7_IP_GPIO1 PIN_CFG(7, ALT_C) |
55 | 55 | ||
56 | #define GPIO8_GPIO PIN_CFG(8, GPIO) | 56 | #define GPIO8_GPIO PIN_CFG(8, GPIO) |
57 | #define GPIO8_IPI2C_SDA PIN_CFG_PULL(8, ALT_A, UP) | 57 | #define GPIO8_IPI2C_SDA PIN_CFG_INPUT(8, ALT_A, PULLUP) |
58 | #define GPIO8_I2C2_SDA PIN_CFG_PULL(8, ALT_B, UP) | 58 | #define GPIO8_I2C2_SDA PIN_CFG_INPUT(8, ALT_B, PULLUP) |
59 | 59 | ||
60 | #define GPIO9_GPIO PIN_CFG(9, GPIO) | 60 | #define GPIO9_GPIO PIN_CFG(9, GPIO) |
61 | #define GPIO9_IPI2C_SCL PIN_CFG_PULL(9, ALT_A, UP) | 61 | #define GPIO9_IPI2C_SCL PIN_CFG_INPUT(9, ALT_A, PULLUP) |
62 | #define GPIO9_I2C2_SCL PIN_CFG_PULL(9, ALT_B, UP) | 62 | #define GPIO9_I2C2_SCL PIN_CFG_INPUT(9, ALT_B, PULLUP) |
63 | 63 | ||
64 | #define GPIO10_GPIO PIN_CFG(10, GPIO) | 64 | #define GPIO10_GPIO PIN_CFG(10, GPIO) |
65 | #define GPIO10_IPI2C_SDA PIN_CFG_PULL(10, ALT_A, UP) | 65 | #define GPIO10_IPI2C_SDA PIN_CFG_INPUT(10, ALT_A, PULLUP) |
66 | #define GPIO10_I2C2_SDA PIN_CFG_PULL(10, ALT_B, UP) | 66 | #define GPIO10_I2C2_SDA PIN_CFG_INPUT(10, ALT_B, PULLUP) |
67 | #define GPIO10_IP_GPIO3 PIN_CFG(10, ALT_C) | 67 | #define GPIO10_IP_GPIO3 PIN_CFG(10, ALT_C) |
68 | 68 | ||
69 | #define GPIO11_GPIO PIN_CFG(11, GPIO) | 69 | #define GPIO11_GPIO PIN_CFG(11, GPIO) |
70 | #define GPIO11_IPI2C_SCL PIN_CFG_PULL(11, ALT_A, UP) | 70 | #define GPIO11_IPI2C_SCL PIN_CFG_INPUT(11, ALT_A, PULLUP) |
71 | #define GPIO11_I2C2_SCL PIN_CFG_PULL(11, ALT_B, UP) | 71 | #define GPIO11_I2C2_SCL PIN_CFG_INPUT(11, ALT_B, PULLUP) |
72 | #define GPIO11_IP_GPIO2 PIN_CFG(11, ALT_C) | 72 | #define GPIO11_IP_GPIO2 PIN_CFG(11, ALT_C) |
73 | 73 | ||
74 | #define GPIO12_GPIO PIN_CFG(12, GPIO) | 74 | #define GPIO12_GPIO PIN_CFG(12, GPIO) |
@@ -87,66 +87,66 @@ | |||
87 | 87 | ||
88 | #define GPIO16_GPIO PIN_CFG(16, GPIO) | 88 | #define GPIO16_GPIO PIN_CFG(16, GPIO) |
89 | #define GPIO16_MSP0_RFS PIN_CFG(16, ALT_A) | 89 | #define GPIO16_MSP0_RFS PIN_CFG(16, ALT_A) |
90 | #define GPIO16_I2C1_SCL PIN_CFG_PULL(16, ALT_B, UP) | 90 | #define GPIO16_I2C1_SCL PIN_CFG_INPUT(16, ALT_B, PULLUP) |
91 | #define GPIO16_SLIM0_DAT PIN_CFG(16, ALT_C) | 91 | #define GPIO16_SLIM0_DAT PIN_CFG(16, ALT_C) |
92 | 92 | ||
93 | #define GPIO17_GPIO PIN_CFG(17, GPIO) | 93 | #define GPIO17_GPIO PIN_CFG(17, GPIO) |
94 | #define GPIO17_MSP0_RCK PIN_CFG(17, ALT_A) | 94 | #define GPIO17_MSP0_RCK PIN_CFG(17, ALT_A) |
95 | #define GPIO17_I2C1_SDA PIN_CFG_PULL(17, ALT_B, UP) | 95 | #define GPIO17_I2C1_SDA PIN_CFG_INPUT(17, ALT_B, PULLUP) |
96 | #define GPIO17_SLIM0_CLK PIN_CFG(17, ALT_C) | 96 | #define GPIO17_SLIM0_CLK PIN_CFG(17, ALT_C) |
97 | 97 | ||
98 | #define GPIO18_GPIO PIN_CFG(18, GPIO) | 98 | #define GPIO18_GPIO PIN_CFG(18, GPIO) |
99 | #define GPIO18_MC0_CMDDIR PIN_CFG_PULL(18, ALT_A, UP) | 99 | #define GPIO18_MC0_CMDDIR PIN_CFG_INPUT(18, ALT_A, PULLUP) |
100 | #define GPIO18_U2_RXD PIN_CFG(18, ALT_B) | 100 | #define GPIO18_U2_RXD PIN_CFG(18, ALT_B) |
101 | #define GPIO18_MS_IEP PIN_CFG(18, ALT_C) | 101 | #define GPIO18_MS_IEP PIN_CFG(18, ALT_C) |
102 | 102 | ||
103 | #define GPIO19_GPIO PIN_CFG(19, GPIO) | 103 | #define GPIO19_GPIO PIN_CFG(19, GPIO) |
104 | #define GPIO19_MC0_DAT0DIR PIN_CFG_PULL(19, ALT_A, UP) | 104 | #define GPIO19_MC0_DAT0DIR PIN_CFG_INPUT(19, ALT_A, PULLUP) |
105 | #define GPIO19_U2_TXD PIN_CFG(19, ALT_B) | 105 | #define GPIO19_U2_TXD PIN_CFG(19, ALT_B) |
106 | #define GPIO19_MS_DAT0DIR PIN_CFG(19, ALT_C) | 106 | #define GPIO19_MS_DAT0DIR PIN_CFG(19, ALT_C) |
107 | 107 | ||
108 | #define GPIO20_GPIO PIN_CFG(20, GPIO) | 108 | #define GPIO20_GPIO PIN_CFG(20, GPIO) |
109 | #define GPIO20_MC0_DAT2DIR PIN_CFG_PULL(20, ALT_A, UP) | 109 | #define GPIO20_MC0_DAT2DIR PIN_CFG_INPUT(20, ALT_A, PULLUP) |
110 | #define GPIO20_UARTMOD_TXD PIN_CFG(20, ALT_B) | 110 | #define GPIO20_UARTMOD_TXD PIN_CFG(20, ALT_B) |
111 | #define GPIO20_IP_TRIGOUT PIN_CFG(20, ALT_C) | 111 | #define GPIO20_IP_TRIGOUT PIN_CFG(20, ALT_C) |
112 | 112 | ||
113 | #define GPIO21_GPIO PIN_CFG(21, GPIO) | 113 | #define GPIO21_GPIO PIN_CFG(21, GPIO) |
114 | #define GPIO21_MC0_DAT31DIR PIN_CFG_PULL(21, ALT_A, UP) | 114 | #define GPIO21_MC0_DAT31DIR PIN_CFG_INPUT(21, ALT_A, PULLUP) |
115 | #define GPIO21_MSP0_SCK PIN_CFG(21, ALT_B) | 115 | #define GPIO21_MSP0_SCK PIN_CFG(21, ALT_B) |
116 | #define GPIO21_MS_DAT31DIR PIN_CFG(21, ALT_C) | 116 | #define GPIO21_MS_DAT31DIR PIN_CFG(21, ALT_C) |
117 | 117 | ||
118 | #define GPIO22_GPIO PIN_CFG(22, GPIO) | 118 | #define GPIO22_GPIO PIN_CFG(22, GPIO) |
119 | #define GPIO22_MC0_FBCLK PIN_CFG_PULL(22, ALT_A, UP) | 119 | #define GPIO22_MC0_FBCLK PIN_CFG_INPUT(22, ALT_A, PULLUP) |
120 | #define GPIO22_UARTMOD_RXD PIN_CFG(22, ALT_B) | 120 | #define GPIO22_UARTMOD_RXD PIN_CFG(22, ALT_B) |
121 | #define GPIO22_MS_FBCLK PIN_CFG(22, ALT_C) | 121 | #define GPIO22_MS_FBCLK PIN_CFG(22, ALT_C) |
122 | 122 | ||
123 | #define GPIO23_GPIO PIN_CFG(23, GPIO) | 123 | #define GPIO23_GPIO PIN_CFG(23, GPIO) |
124 | #define GPIO23_MC0_CLK PIN_CFG_PULL(23, ALT_A, UP) | 124 | #define GPIO23_MC0_CLK PIN_CFG_INPUT(23, ALT_A, PULLUP) |
125 | #define GPIO23_STMMOD_CLK PIN_CFG(23, ALT_B) | 125 | #define GPIO23_STMMOD_CLK PIN_CFG(23, ALT_B) |
126 | #define GPIO23_MS_CLK PIN_CFG(23, ALT_C) | 126 | #define GPIO23_MS_CLK PIN_CFG(23, ALT_C) |
127 | 127 | ||
128 | #define GPIO24_GPIO PIN_CFG(24, GPIO) | 128 | #define GPIO24_GPIO PIN_CFG(24, GPIO) |
129 | #define GPIO24_MC0_CMD PIN_CFG_PULL(24, ALT_A, UP) | 129 | #define GPIO24_MC0_CMD PIN_CFG_INPUT(24, ALT_A, PULLUP) |
130 | #define GPIO24_UARTMOD_RXD PIN_CFG(24, ALT_B) | 130 | #define GPIO24_UARTMOD_RXD PIN_CFG(24, ALT_B) |
131 | #define GPIO24_MS_BS PIN_CFG(24, ALT_C) | 131 | #define GPIO24_MS_BS PIN_CFG(24, ALT_C) |
132 | 132 | ||
133 | #define GPIO25_GPIO PIN_CFG(25, GPIO) | 133 | #define GPIO25_GPIO PIN_CFG(25, GPIO) |
134 | #define GPIO25_MC0_DAT0 PIN_CFG_PULL(25, ALT_A, UP) | 134 | #define GPIO25_MC0_DAT0 PIN_CFG_INPUT(25, ALT_A, PULLUP) |
135 | #define GPIO25_STMMOD_DAT0 PIN_CFG(25, ALT_B) | 135 | #define GPIO25_STMMOD_DAT0 PIN_CFG(25, ALT_B) |
136 | #define GPIO25_MS_DAT0 PIN_CFG(25, ALT_C) | 136 | #define GPIO25_MS_DAT0 PIN_CFG(25, ALT_C) |
137 | 137 | ||
138 | #define GPIO26_GPIO PIN_CFG(26, GPIO) | 138 | #define GPIO26_GPIO PIN_CFG(26, GPIO) |
139 | #define GPIO26_MC0_DAT1 PIN_CFG_PULL(26, ALT_A, UP) | 139 | #define GPIO26_MC0_DAT1 PIN_CFG_INPUT(26, ALT_A, PULLUP) |
140 | #define GPIO26_STMMOD_DAT1 PIN_CFG(26, ALT_B) | 140 | #define GPIO26_STMMOD_DAT1 PIN_CFG(26, ALT_B) |
141 | #define GPIO26_MS_DAT1 PIN_CFG(26, ALT_C) | 141 | #define GPIO26_MS_DAT1 PIN_CFG(26, ALT_C) |
142 | 142 | ||
143 | #define GPIO27_GPIO PIN_CFG(27, GPIO) | 143 | #define GPIO27_GPIO PIN_CFG(27, GPIO) |
144 | #define GPIO27_MC0_DAT2 PIN_CFG_PULL(27, ALT_A, UP) | 144 | #define GPIO27_MC0_DAT2 PIN_CFG_INPUT(27, ALT_A, PULLUP) |
145 | #define GPIO27_STMMOD_DAT2 PIN_CFG(27, ALT_B) | 145 | #define GPIO27_STMMOD_DAT2 PIN_CFG(27, ALT_B) |
146 | #define GPIO27_MS_DAT2 PIN_CFG(27, ALT_C) | 146 | #define GPIO27_MS_DAT2 PIN_CFG(27, ALT_C) |
147 | 147 | ||
148 | #define GPIO28_GPIO PIN_CFG(28, GPIO) | 148 | #define GPIO28_GPIO PIN_CFG(28, GPIO) |
149 | #define GPIO28_MC0_DAT3 PIN_CFG_PULL(28, ALT_A, UP) | 149 | #define GPIO28_MC0_DAT3 PIN_CFG_INPUT(28, ALT_A, PULLUP) |
150 | #define GPIO28_STMMOD_DAT3 PIN_CFG(28, ALT_B) | 150 | #define GPIO28_STMMOD_DAT3 PIN_CFG(28, ALT_B) |
151 | #define GPIO28_MS_DAT3 PIN_CFG(28, ALT_C) | 151 | #define GPIO28_MS_DAT3 PIN_CFG(28, ALT_C) |
152 | 152 | ||
@@ -357,48 +357,48 @@ | |||
357 | #define GPIO97_MC5_DAT7 PIN_CFG(97, ALT_C) | 357 | #define GPIO97_MC5_DAT7 PIN_CFG(97, ALT_C) |
358 | 358 | ||
359 | #define GPIO128_GPIO PIN_CFG(128, GPIO) | 359 | #define GPIO128_GPIO PIN_CFG(128, GPIO) |
360 | #define GPIO128_MC2_CLK PIN_CFG_PULL(128, ALT_A, UP) | 360 | #define GPIO128_MC2_CLK PIN_CFG_INPUT(128, ALT_A, PULLUP) |
361 | #define GPIO128_SM_CKO PIN_CFG(128, ALT_B) | 361 | #define GPIO128_SM_CKO PIN_CFG(128, ALT_B) |
362 | 362 | ||
363 | #define GPIO129_GPIO PIN_CFG(129, GPIO) | 363 | #define GPIO129_GPIO PIN_CFG(129, GPIO) |
364 | #define GPIO129_MC2_CMD PIN_CFG_PULL(129, ALT_A, UP) | 364 | #define GPIO129_MC2_CMD PIN_CFG_INPUT(129, ALT_A, PULLUP) |
365 | #define GPIO129_SM_WAIT0n PIN_CFG(129, ALT_B) | 365 | #define GPIO129_SM_WAIT0n PIN_CFG(129, ALT_B) |
366 | 366 | ||
367 | #define GPIO130_GPIO PIN_CFG(130, GPIO) | 367 | #define GPIO130_GPIO PIN_CFG(130, GPIO) |
368 | #define GPIO130_MC2_FBCLK PIN_CFG_PULL(130, ALT_A, UP) | 368 | #define GPIO130_MC2_FBCLK PIN_CFG_INPUT(130, ALT_A, PULLUP) |
369 | #define GPIO130_SM_FBCLK PIN_CFG(130, ALT_B) | 369 | #define GPIO130_SM_FBCLK PIN_CFG(130, ALT_B) |
370 | #define GPIO130_MC2_RSTN PIN_CFG(130, ALT_C) | 370 | #define GPIO130_MC2_RSTN PIN_CFG(130, ALT_C) |
371 | 371 | ||
372 | #define GPIO131_GPIO PIN_CFG(131, GPIO) | 372 | #define GPIO131_GPIO PIN_CFG(131, GPIO) |
373 | #define GPIO131_MC2_DAT0 PIN_CFG_PULL(131, ALT_A, UP) | 373 | #define GPIO131_MC2_DAT0 PIN_CFG_INPUT(131, ALT_A, PULLUP) |
374 | #define GPIO131_SM_ADQ8 PIN_CFG(131, ALT_B) | 374 | #define GPIO131_SM_ADQ8 PIN_CFG(131, ALT_B) |
375 | 375 | ||
376 | #define GPIO132_GPIO PIN_CFG(132, GPIO) | 376 | #define GPIO132_GPIO PIN_CFG(132, GPIO) |
377 | #define GPIO132_MC2_DAT1 PIN_CFG_PULL(132, ALT_A, UP) | 377 | #define GPIO132_MC2_DAT1 PIN_CFG_INPUT(132, ALT_A, PULLUP) |
378 | #define GPIO132_SM_ADQ9 PIN_CFG(132, ALT_B) | 378 | #define GPIO132_SM_ADQ9 PIN_CFG(132, ALT_B) |
379 | 379 | ||
380 | #define GPIO133_GPIO PIN_CFG(133, GPIO) | 380 | #define GPIO133_GPIO PIN_CFG(133, GPIO) |
381 | #define GPIO133_MC2_DAT2 PIN_CFG_PULL(133, ALT_A, UP) | 381 | #define GPIO133_MC2_DAT2 PIN_CFG_INPUT(133, ALT_A, PULLUP) |
382 | #define GPIO133_SM_ADQ10 PIN_CFG(133, ALT_B) | 382 | #define GPIO133_SM_ADQ10 PIN_CFG(133, ALT_B) |
383 | 383 | ||
384 | #define GPIO134_GPIO PIN_CFG(134, GPIO) | 384 | #define GPIO134_GPIO PIN_CFG(134, GPIO) |
385 | #define GPIO134_MC2_DAT3 PIN_CFG_PULL(134, ALT_A, UP) | 385 | #define GPIO134_MC2_DAT3 PIN_CFG_INPUT(134, ALT_A, PULLUP) |
386 | #define GPIO134_SM_ADQ11 PIN_CFG(134, ALT_B) | 386 | #define GPIO134_SM_ADQ11 PIN_CFG(134, ALT_B) |
387 | 387 | ||
388 | #define GPIO135_GPIO PIN_CFG(135, GPIO) | 388 | #define GPIO135_GPIO PIN_CFG(135, GPIO) |
389 | #define GPIO135_MC2_DAT4 PIN_CFG_PULL(135, ALT_A, UP) | 389 | #define GPIO135_MC2_DAT4 PIN_CFG_INPUT(135, ALT_A, PULLUP) |
390 | #define GPIO135_SM_ADQ12 PIN_CFG(135, ALT_B) | 390 | #define GPIO135_SM_ADQ12 PIN_CFG(135, ALT_B) |
391 | 391 | ||
392 | #define GPIO136_GPIO PIN_CFG(136, GPIO) | 392 | #define GPIO136_GPIO PIN_CFG(136, GPIO) |
393 | #define GPIO136_MC2_DAT5 PIN_CFG_PULL(136, ALT_A, UP) | 393 | #define GPIO136_MC2_DAT5 PIN_CFG_INPUT(136, ALT_A, PULLUP) |
394 | #define GPIO136_SM_ADQ13 PIN_CFG(136, ALT_B) | 394 | #define GPIO136_SM_ADQ13 PIN_CFG(136, ALT_B) |
395 | 395 | ||
396 | #define GPIO137_GPIO PIN_CFG(137, GPIO) | 396 | #define GPIO137_GPIO PIN_CFG(137, GPIO) |
397 | #define GPIO137_MC2_DAT6 PIN_CFG_PULL(137, ALT_A, UP) | 397 | #define GPIO137_MC2_DAT6 PIN_CFG_INPUT(137, ALT_A, PULLUP) |
398 | #define GPIO137_SM_ADQ14 PIN_CFG(137, ALT_B) | 398 | #define GPIO137_SM_ADQ14 PIN_CFG(137, ALT_B) |
399 | 399 | ||
400 | #define GPIO138_GPIO PIN_CFG(138, GPIO) | 400 | #define GPIO138_GPIO PIN_CFG(138, GPIO) |
401 | #define GPIO138_MC2_DAT7 PIN_CFG_PULL(138, ALT_A, UP) | 401 | #define GPIO138_MC2_DAT7 PIN_CFG_INPUT(138, ALT_A, PULLUP) |
402 | #define GPIO138_SM_ADQ15 PIN_CFG(138, ALT_B) | 402 | #define GPIO138_SM_ADQ15 PIN_CFG(138, ALT_B) |
403 | 403 | ||
404 | #define GPIO139_GPIO PIN_CFG(139, GPIO) | 404 | #define GPIO139_GPIO PIN_CFG(139, GPIO) |
@@ -434,10 +434,10 @@ | |||
434 | #define GPIO146_SSP0_TXD PIN_CFG(146, ALT_A) | 434 | #define GPIO146_SSP0_TXD PIN_CFG(146, ALT_A) |
435 | 435 | ||
436 | #define GPIO147_GPIO PIN_CFG(147, GPIO) | 436 | #define GPIO147_GPIO PIN_CFG(147, GPIO) |
437 | #define GPIO147_I2C0_SCL PIN_CFG_PULL(147, ALT_A, UP) | 437 | #define GPIO147_I2C0_SCL PIN_CFG_INPUT(147, ALT_A, PULLUP) |
438 | 438 | ||
439 | #define GPIO148_GPIO PIN_CFG(148, GPIO) | 439 | #define GPIO148_GPIO PIN_CFG(148, GPIO) |
440 | #define GPIO148_I2C0_SDA PIN_CFG_PULL(148, ALT_A, UP) | 440 | #define GPIO148_I2C0_SDA PIN_CFG_INPUT(148, ALT_A, PULLUP) |
441 | 441 | ||
442 | #define GPIO149_GPIO PIN_CFG(149, GPIO) | 442 | #define GPIO149_GPIO PIN_CFG(149, GPIO) |
443 | #define GPIO149_IP_GPIO0 PIN_CFG(149, ALT_A) | 443 | #define GPIO149_IP_GPIO0 PIN_CFG(149, ALT_A) |
@@ -459,82 +459,82 @@ | |||
459 | #define GPIO152_KP_O9 PIN_CFG(152, ALT_C) | 459 | #define GPIO152_KP_O9 PIN_CFG(152, ALT_C) |
460 | 460 | ||
461 | #define GPIO153_GPIO PIN_CFG(153, GPIO) | 461 | #define GPIO153_GPIO PIN_CFG(153, GPIO) |
462 | #define GPIO153_KP_I7 PIN_CFG_PULL(153, ALT_A, DOWN) | 462 | #define GPIO153_KP_I7 PIN_CFG_INPUT(153, ALT_A, PULLDOWN) |
463 | #define GPIO153_LCD_D24 PIN_CFG(153, ALT_B) | 463 | #define GPIO153_LCD_D24 PIN_CFG(153, ALT_B) |
464 | #define GPIO153_U2_RXD PIN_CFG(153, ALT_C) | 464 | #define GPIO153_U2_RXD PIN_CFG(153, ALT_C) |
465 | 465 | ||
466 | #define GPIO154_GPIO PIN_CFG(154, GPIO) | 466 | #define GPIO154_GPIO PIN_CFG(154, GPIO) |
467 | #define GPIO154_KP_I6 PIN_CFG_PULL(154, ALT_A, DOWN) | 467 | #define GPIO154_KP_I6 PIN_CFG_INPUT(154, ALT_A, PULLDOWN) |
468 | #define GPIO154_LCD_D25 PIN_CFG(154, ALT_B) | 468 | #define GPIO154_LCD_D25 PIN_CFG(154, ALT_B) |
469 | #define GPIO154_U2_TXD PIN_CFG(154, ALT_C) | 469 | #define GPIO154_U2_TXD PIN_CFG(154, ALT_C) |
470 | 470 | ||
471 | #define GPIO155_GPIO PIN_CFG(155, GPIO) | 471 | #define GPIO155_GPIO PIN_CFG(155, GPIO) |
472 | #define GPIO155_KP_I5 PIN_CFG_PULL(155, ALT_A, DOWN) | 472 | #define GPIO155_KP_I5 PIN_CFG_INPUT(155, ALT_A, PULLDOWN) |
473 | #define GPIO155_LCD_D26 PIN_CFG(155, ALT_B) | 473 | #define GPIO155_LCD_D26 PIN_CFG(155, ALT_B) |
474 | #define GPIO155_STMAPE_CLK PIN_CFG(155, ALT_C) | 474 | #define GPIO155_STMAPE_CLK PIN_CFG(155, ALT_C) |
475 | 475 | ||
476 | #define GPIO156_GPIO PIN_CFG(156, GPIO) | 476 | #define GPIO156_GPIO PIN_CFG(156, GPIO) |
477 | #define GPIO156_KP_I4 PIN_CFG_PULL(156, ALT_A, DOWN) | 477 | #define GPIO156_KP_I4 PIN_CFG_INPUT(156, ALT_A, PULLDOWN) |
478 | #define GPIO156_LCD_D27 PIN_CFG(156, ALT_B) | 478 | #define GPIO156_LCD_D27 PIN_CFG(156, ALT_B) |
479 | #define GPIO156_STMAPE_DAT3 PIN_CFG(156, ALT_C) | 479 | #define GPIO156_STMAPE_DAT3 PIN_CFG(156, ALT_C) |
480 | 480 | ||
481 | #define GPIO157_GPIO PIN_CFG(157, GPIO) | 481 | #define GPIO157_GPIO PIN_CFG(157, GPIO) |
482 | #define GPIO157_KP_O7 PIN_CFG_PULL(157, ALT_A, UP) | 482 | #define GPIO157_KP_O7 PIN_CFG_INPUT(157, ALT_A, PULLUP) |
483 | #define GPIO157_LCD_D28 PIN_CFG(157, ALT_B) | 483 | #define GPIO157_LCD_D28 PIN_CFG(157, ALT_B) |
484 | #define GPIO157_STMAPE_DAT2 PIN_CFG(157, ALT_C) | 484 | #define GPIO157_STMAPE_DAT2 PIN_CFG(157, ALT_C) |
485 | 485 | ||
486 | #define GPIO158_GPIO PIN_CFG(158, GPIO) | 486 | #define GPIO158_GPIO PIN_CFG(158, GPIO) |
487 | #define GPIO158_KP_O6 PIN_CFG_PULL(158, ALT_A, UP) | 487 | #define GPIO158_KP_O6 PIN_CFG_INPUT(158, ALT_A, PULLUP) |
488 | #define GPIO158_LCD_D29 PIN_CFG(158, ALT_B) | 488 | #define GPIO158_LCD_D29 PIN_CFG(158, ALT_B) |
489 | #define GPIO158_STMAPE_DAT1 PIN_CFG(158, ALT_C) | 489 | #define GPIO158_STMAPE_DAT1 PIN_CFG(158, ALT_C) |
490 | 490 | ||
491 | #define GPIO159_GPIO PIN_CFG(159, GPIO) | 491 | #define GPIO159_GPIO PIN_CFG(159, GPIO) |
492 | #define GPIO159_KP_O5 PIN_CFG_PULL(159, ALT_A, UP) | 492 | #define GPIO159_KP_O5 PIN_CFG_INPUT(159, ALT_A, PULLUP) |
493 | #define GPIO159_LCD_D30 PIN_CFG(159, ALT_B) | 493 | #define GPIO159_LCD_D30 PIN_CFG(159, ALT_B) |
494 | #define GPIO159_STMAPE_DAT0 PIN_CFG(159, ALT_C) | 494 | #define GPIO159_STMAPE_DAT0 PIN_CFG(159, ALT_C) |
495 | 495 | ||
496 | #define GPIO160_GPIO PIN_CFG(160, GPIO) | 496 | #define GPIO160_GPIO PIN_CFG(160, GPIO) |
497 | #define GPIO160_KP_O4 PIN_CFG_PULL(160, ALT_A, UP) | 497 | #define GPIO160_KP_O4 PIN_CFG_INPUT(160, ALT_A, PULLUP) |
498 | #define GPIO160_LCD_D31 PIN_CFG(160, ALT_B) | 498 | #define GPIO160_LCD_D31 PIN_CFG(160, ALT_B) |
499 | #define GPIO160_NONE PIN_CFG(160, ALT_C) | 499 | #define GPIO160_NONE PIN_CFG(160, ALT_C) |
500 | 500 | ||
501 | #define GPIO161_GPIO PIN_CFG(161, GPIO) | 501 | #define GPIO161_GPIO PIN_CFG(161, GPIO) |
502 | #define GPIO161_KP_I3 PIN_CFG_PULL(161, ALT_A, DOWN) | 502 | #define GPIO161_KP_I3 PIN_CFG_INPUT(161, ALT_A, PULLDOWN) |
503 | #define GPIO161_LCD_D32 PIN_CFG(161, ALT_B) | 503 | #define GPIO161_LCD_D32 PIN_CFG(161, ALT_B) |
504 | #define GPIO161_UARTMOD_RXD PIN_CFG(161, ALT_C) | 504 | #define GPIO161_UARTMOD_RXD PIN_CFG(161, ALT_C) |
505 | 505 | ||
506 | #define GPIO162_GPIO PIN_CFG(162, GPIO) | 506 | #define GPIO162_GPIO PIN_CFG(162, GPIO) |
507 | #define GPIO162_KP_I2 PIN_CFG_PULL(162, ALT_A, DOWN) | 507 | #define GPIO162_KP_I2 PIN_CFG_INPUT(162, ALT_A, PULLDOWN) |
508 | #define GPIO162_LCD_D33 PIN_CFG(162, ALT_B) | 508 | #define GPIO162_LCD_D33 PIN_CFG(162, ALT_B) |
509 | #define GPIO162_UARTMOD_TXD PIN_CFG(162, ALT_C) | 509 | #define GPIO162_UARTMOD_TXD PIN_CFG(162, ALT_C) |
510 | 510 | ||
511 | #define GPIO163_GPIO PIN_CFG(163, GPIO) | 511 | #define GPIO163_GPIO PIN_CFG(163, GPIO) |
512 | #define GPIO163_KP_I1 PIN_CFG_PULL(163, ALT_A, DOWN) | 512 | #define GPIO163_KP_I1 PIN_CFG_INPUT(163, ALT_A, PULLDOWN) |
513 | #define GPIO163_LCD_D34 PIN_CFG(163, ALT_B) | 513 | #define GPIO163_LCD_D34 PIN_CFG(163, ALT_B) |
514 | #define GPIO163_STMMOD_CLK PIN_CFG(163, ALT_C) | 514 | #define GPIO163_STMMOD_CLK PIN_CFG(163, ALT_C) |
515 | 515 | ||
516 | #define GPIO164_GPIO PIN_CFG(164, GPIO) | 516 | #define GPIO164_GPIO PIN_CFG(164, GPIO) |
517 | #define GPIO164_KP_I0 PIN_CFG_PULL(164, ALT_A, UP) | 517 | #define GPIO164_KP_I0 PIN_CFG_INPUT(164, ALT_A, PULLUP) |
518 | #define GPIO164_LCD_D35 PIN_CFG(164, ALT_B) | 518 | #define GPIO164_LCD_D35 PIN_CFG(164, ALT_B) |
519 | #define GPIO164_STMMOD_DAT3 PIN_CFG(164, ALT_C) | 519 | #define GPIO164_STMMOD_DAT3 PIN_CFG(164, ALT_C) |
520 | 520 | ||
521 | #define GPIO165_GPIO PIN_CFG(165, GPIO) | 521 | #define GPIO165_GPIO PIN_CFG(165, GPIO) |
522 | #define GPIO165_KP_O3 PIN_CFG_PULL(165, ALT_A, UP) | 522 | #define GPIO165_KP_O3 PIN_CFG_INPUT(165, ALT_A, PULLUP) |
523 | #define GPIO165_LCD_D36 PIN_CFG(165, ALT_B) | 523 | #define GPIO165_LCD_D36 PIN_CFG(165, ALT_B) |
524 | #define GPIO165_STMMOD_DAT2 PIN_CFG(165, ALT_C) | 524 | #define GPIO165_STMMOD_DAT2 PIN_CFG(165, ALT_C) |
525 | 525 | ||
526 | #define GPIO166_GPIO PIN_CFG(166, GPIO) | 526 | #define GPIO166_GPIO PIN_CFG(166, GPIO) |
527 | #define GPIO166_KP_O2 PIN_CFG_PULL(166, ALT_A, UP) | 527 | #define GPIO166_KP_O2 PIN_CFG_INPUT(166, ALT_A, PULLUP) |
528 | #define GPIO166_LCD_D37 PIN_CFG(166, ALT_B) | 528 | #define GPIO166_LCD_D37 PIN_CFG(166, ALT_B) |
529 | #define GPIO166_STMMOD_DAT1 PIN_CFG(166, ALT_C) | 529 | #define GPIO166_STMMOD_DAT1 PIN_CFG(166, ALT_C) |
530 | 530 | ||
531 | #define GPIO167_GPIO PIN_CFG(167, GPIO) | 531 | #define GPIO167_GPIO PIN_CFG(167, GPIO) |
532 | #define GPIO167_KP_O1 PIN_CFG_PULL(167, ALT_A, UP) | 532 | #define GPIO167_KP_O1 PIN_CFG_INPUT(167, ALT_A, PULLUP) |
533 | #define GPIO167_LCD_D38 PIN_CFG(167, ALT_B) | 533 | #define GPIO167_LCD_D38 PIN_CFG(167, ALT_B) |
534 | #define GPIO167_STMMOD_DAT0 PIN_CFG(167, ALT_C) | 534 | #define GPIO167_STMMOD_DAT0 PIN_CFG(167, ALT_C) |
535 | 535 | ||
536 | #define GPIO168_GPIO PIN_CFG(168, GPIO) | 536 | #define GPIO168_GPIO PIN_CFG(168, GPIO) |
537 | #define GPIO168_KP_O0 PIN_CFG_PULL(168, ALT_A, UP) | 537 | #define GPIO168_KP_O0 PIN_CFG_INPUT(168, ALT_A, PULLUP) |
538 | #define GPIO168_LCD_D39 PIN_CFG(168, ALT_B) | 538 | #define GPIO168_LCD_D39 PIN_CFG(168, ALT_B) |
539 | #define GPIO168_NONE PIN_CFG(168, ALT_C) | 539 | #define GPIO168_NONE PIN_CFG(168, ALT_C) |
540 | 540 | ||
@@ -569,39 +569,39 @@ | |||
569 | #define GPIO196_MSP2_RXD PIN_CFG(196, ALT_A) | 569 | #define GPIO196_MSP2_RXD PIN_CFG(196, ALT_A) |
570 | 570 | ||
571 | #define GPIO197_GPIO PIN_CFG(197, GPIO) | 571 | #define GPIO197_GPIO PIN_CFG(197, GPIO) |
572 | #define GPIO197_MC4_DAT3 PIN_CFG_PULL(197, ALT_A, UP) | 572 | #define GPIO197_MC4_DAT3 PIN_CFG_INPUT(197, ALT_A, PULLUP) |
573 | 573 | ||
574 | #define GPIO198_GPIO PIN_CFG(198, GPIO) | 574 | #define GPIO198_GPIO PIN_CFG(198, GPIO) |
575 | #define GPIO198_MC4_DAT2 PIN_CFG_PULL(198, ALT_A, UP) | 575 | #define GPIO198_MC4_DAT2 PIN_CFG_INPUT(198, ALT_A, PULLUP) |
576 | 576 | ||
577 | #define GPIO199_GPIO PIN_CFG(199, GPIO) | 577 | #define GPIO199_GPIO PIN_CFG(199, GPIO) |
578 | #define GPIO199_MC4_DAT1 PIN_CFG_PULL(199, ALT_A, UP) | 578 | #define GPIO199_MC4_DAT1 PIN_CFG_INPUT(199, ALT_A, PULLUP) |
579 | 579 | ||
580 | #define GPIO200_GPIO PIN_CFG(200, GPIO) | 580 | #define GPIO200_GPIO PIN_CFG(200, GPIO) |
581 | #define GPIO200_MC4_DAT0 PIN_CFG_PULL(200, ALT_A, UP) | 581 | #define GPIO200_MC4_DAT0 PIN_CFG_INPUT(200, ALT_A, PULLUP) |
582 | 582 | ||
583 | #define GPIO201_GPIO PIN_CFG(201, GPIO) | 583 | #define GPIO201_GPIO PIN_CFG(201, GPIO) |
584 | #define GPIO201_MC4_CMD PIN_CFG_PULL(201, ALT_A, UP) | 584 | #define GPIO201_MC4_CMD PIN_CFG_INPUT(201, ALT_A, PULLUP) |
585 | 585 | ||
586 | #define GPIO202_GPIO PIN_CFG(202, GPIO) | 586 | #define GPIO202_GPIO PIN_CFG(202, GPIO) |
587 | #define GPIO202_MC4_FBCLK PIN_CFG_PULL(202, ALT_A, UP) | 587 | #define GPIO202_MC4_FBCLK PIN_CFG_INPUT(202, ALT_A, PULLUP) |
588 | #define GPIO202_PWL PIN_CFG(202, ALT_B) | 588 | #define GPIO202_PWL PIN_CFG(202, ALT_B) |
589 | #define GPIO202_MC4_RSTN PIN_CFG(202, ALT_C) | 589 | #define GPIO202_MC4_RSTN PIN_CFG(202, ALT_C) |
590 | 590 | ||
591 | #define GPIO203_GPIO PIN_CFG(203, GPIO) | 591 | #define GPIO203_GPIO PIN_CFG(203, GPIO) |
592 | #define GPIO203_MC4_CLK PIN_CFG_PULL(203, ALT_A, UP) | 592 | #define GPIO203_MC4_CLK PIN_CFG_INPUT(203, ALT_A, PULLUP) |
593 | 593 | ||
594 | #define GPIO204_GPIO PIN_CFG(204, GPIO) | 594 | #define GPIO204_GPIO PIN_CFG(204, GPIO) |
595 | #define GPIO204_MC4_DAT7 PIN_CFG_PULL(204, ALT_A, UP) | 595 | #define GPIO204_MC4_DAT7 PIN_CFG_INPUT(204, ALT_A, PULLUP) |
596 | 596 | ||
597 | #define GPIO205_GPIO PIN_CFG(205, GPIO) | 597 | #define GPIO205_GPIO PIN_CFG(205, GPIO) |
598 | #define GPIO205_MC4_DAT6 PIN_CFG_PULL(205, ALT_A, UP) | 598 | #define GPIO205_MC4_DAT6 PIN_CFG_INPUT(205, ALT_A, PULLUP) |
599 | 599 | ||
600 | #define GPIO206_GPIO PIN_CFG(206, GPIO) | 600 | #define GPIO206_GPIO PIN_CFG(206, GPIO) |
601 | #define GPIO206_MC4_DAT5 PIN_CFG_PULL(206, ALT_A, UP) | 601 | #define GPIO206_MC4_DAT5 PIN_CFG_INPUT(206, ALT_A, PULLUP) |
602 | 602 | ||
603 | #define GPIO207_GPIO PIN_CFG(207, GPIO) | 603 | #define GPIO207_GPIO PIN_CFG(207, GPIO) |
604 | #define GPIO207_MC4_DAT4 PIN_CFG_PULL(207, ALT_A, UP) | 604 | #define GPIO207_MC4_DAT4 PIN_CFG_INPUT(207, ALT_A, PULLUP) |
605 | 605 | ||
606 | #define GPIO208_GPIO PIN_CFG(208, GPIO) | 606 | #define GPIO208_GPIO PIN_CFG(208, GPIO) |
607 | #define GPIO208_MC1_CLK PIN_CFG(208, ALT_A) | 607 | #define GPIO208_MC1_CLK PIN_CFG(208, ALT_A) |
@@ -632,21 +632,25 @@ | |||
632 | #define GPIO215_MC1_CMDDIR PIN_CFG(215, ALT_A) | 632 | #define GPIO215_MC1_CMDDIR PIN_CFG(215, ALT_A) |
633 | #define GPIO215_MC3_DAT2DIR PIN_CFG(215, ALT_B) | 633 | #define GPIO215_MC3_DAT2DIR PIN_CFG(215, ALT_B) |
634 | #define GPIO215_CLKOUT1 PIN_CFG(215, ALT_C) | 634 | #define GPIO215_CLKOUT1 PIN_CFG(215, ALT_C) |
635 | #define GPIO215_SPI2_TXD PIN_CFG(215, ALT_C) | ||
635 | 636 | ||
636 | #define GPIO216_GPIO PIN_CFG(216, GPIO) | 637 | #define GPIO216_GPIO PIN_CFG(216, GPIO) |
637 | #define GPIO216_MC1_DAT2DIR PIN_CFG(216, ALT_A) | 638 | #define GPIO216_MC1_DAT2DIR PIN_CFG(216, ALT_A) |
638 | #define GPIO216_MC3_CMDDIR PIN_CFG(216, ALT_B) | 639 | #define GPIO216_MC3_CMDDIR PIN_CFG(216, ALT_B) |
639 | #define GPIO216_I2C3_SDA PIN_CFG_PULL(216, ALT_C, UP) | 640 | #define GPIO216_I2C3_SDA PIN_CFG_INPUT(216, ALT_C, PULLUP) |
641 | #define GPIO216_SPI2_FRM PIN_CFG(216, ALT_C) | ||
640 | 642 | ||
641 | #define GPIO217_GPIO PIN_CFG(217, GPIO) | 643 | #define GPIO217_GPIO PIN_CFG(217, GPIO) |
642 | #define GPIO217_MC1_DAT0DIR PIN_CFG(217, ALT_A) | 644 | #define GPIO217_MC1_DAT0DIR PIN_CFG(217, ALT_A) |
643 | #define GPIO217_MC3_DAT31DIR PIN_CFG(217, ALT_B) | 645 | #define GPIO217_MC3_DAT31DIR PIN_CFG(217, ALT_B) |
644 | #define GPIO217_CLKOUT2 PIN_CFG(217, ALT_C) | 646 | #define GPIO217_CLKOUT2 PIN_CFG(217, ALT_C) |
647 | #define GPIO217_SPI2_CLK PIN_CFG(217, ALT_C) | ||
645 | 648 | ||
646 | #define GPIO218_GPIO PIN_CFG(218, GPIO) | 649 | #define GPIO218_GPIO PIN_CFG(218, GPIO) |
647 | #define GPIO218_MC1_DAT31DIR PIN_CFG(218, ALT_A) | 650 | #define GPIO218_MC1_DAT31DIR PIN_CFG(218, ALT_A) |
648 | #define GPIO218_MC3_DAT0DIR PIN_CFG(218, ALT_B) | 651 | #define GPIO218_MC3_DAT0DIR PIN_CFG(218, ALT_B) |
649 | #define GPIO218_I2C3_SCL PIN_CFG_PULL(218, ALT_C, UP) | 652 | #define GPIO218_I2C3_SCL PIN_CFG_INPUT(218, ALT_C, PULLUP) |
653 | #define GPIO218_SPI2_RXD PIN_CFG(218, ALT_C) | ||
650 | 654 | ||
651 | #define GPIO219_GPIO PIN_CFG(219, GPIO) | 655 | #define GPIO219_GPIO PIN_CFG(219, GPIO) |
652 | #define GPIO219_HSIR_FLA0 PIN_CFG(219, ALT_A) | 656 | #define GPIO219_HSIR_FLA0 PIN_CFG(219, ALT_A) |
@@ -694,12 +698,12 @@ | |||
694 | #define GPIO229_GPIO PIN_CFG(229, GPIO) | 698 | #define GPIO229_GPIO PIN_CFG(229, GPIO) |
695 | #define GPIO229_CLKOUT1 PIN_CFG(229, ALT_A) | 699 | #define GPIO229_CLKOUT1 PIN_CFG(229, ALT_A) |
696 | #define GPIO229_PWL PIN_CFG(229, ALT_B) | 700 | #define GPIO229_PWL PIN_CFG(229, ALT_B) |
697 | #define GPIO229_I2C3_SDA PIN_CFG_PULL(229, ALT_C, UP) | 701 | #define GPIO229_I2C3_SDA PIN_CFG_INPUT(229, ALT_C, PULLUP) |
698 | 702 | ||
699 | #define GPIO230_GPIO PIN_CFG(230, GPIO) | 703 | #define GPIO230_GPIO PIN_CFG(230, GPIO) |
700 | #define GPIO230_CLKOUT2 PIN_CFG(230, ALT_A) | 704 | #define GPIO230_CLKOUT2 PIN_CFG(230, ALT_A) |
701 | #define GPIO230_PWL PIN_CFG(230, ALT_B) | 705 | #define GPIO230_PWL PIN_CFG(230, ALT_B) |
702 | #define GPIO230_I2C3_SCL PIN_CFG_PULL(230, ALT_C, UP) | 706 | #define GPIO230_I2C3_SCL PIN_CFG_INPUT(230, ALT_C, PULLUP) |
703 | 707 | ||
704 | #define GPIO256_GPIO PIN_CFG(256, GPIO) | 708 | #define GPIO256_GPIO PIN_CFG(256, GPIO) |
705 | #define GPIO256_USB_NXT PIN_CFG(256, ALT_A) | 709 | #define GPIO256_USB_NXT PIN_CFG(256, ALT_A) |