diff options
| -rw-r--r-- | arch/arm/mach-mx25/Kconfig | 4 | ||||
| -rw-r--r-- | arch/arm/mach-mx25/Makefile | 1 | ||||
| -rw-r--r-- | arch/arm/mach-mx25/mx25pdk.c | 58 | ||||
| -rw-r--r-- | arch/arm/plat-mxc/include/mach/uncompress.h | 3 |
4 files changed, 66 insertions, 0 deletions
diff --git a/arch/arm/mach-mx25/Kconfig b/arch/arm/mach-mx25/Kconfig index 14c918bad52a..cc28f56eae80 100644 --- a/arch/arm/mach-mx25/Kconfig +++ b/arch/arm/mach-mx25/Kconfig | |||
| @@ -2,4 +2,8 @@ if ARCH_MX25 | |||
| 2 | 2 | ||
| 3 | comment "MX25 platforms:" | 3 | comment "MX25 platforms:" |
| 4 | 4 | ||
| 5 | config MACH_MX25_3DS | ||
| 6 | select ARCH_MXC_IOMUX_V3 | ||
| 7 | bool "Support MX25PDK (3DS) Platform" | ||
| 8 | |||
| 5 | endif | 9 | endif |
diff --git a/arch/arm/mach-mx25/Makefile b/arch/arm/mach-mx25/Makefile index 5471086d5e13..fe23836a9f3d 100644 --- a/arch/arm/mach-mx25/Makefile +++ b/arch/arm/mach-mx25/Makefile | |||
| @@ -1,2 +1,3 @@ | |||
| 1 | obj-y := mm.o devices.o | 1 | obj-y := mm.o devices.o |
| 2 | obj-$(CONFIG_ARCH_MX25) += clock.o | 2 | obj-$(CONFIG_ARCH_MX25) += clock.o |
| 3 | obj-$(CONFIG_MACH_MX25_3DS) += mx25pdk.o | ||
diff --git a/arch/arm/mach-mx25/mx25pdk.c b/arch/arm/mach-mx25/mx25pdk.c new file mode 100644 index 000000000000..92aa4fd19d99 --- /dev/null +++ b/arch/arm/mach-mx25/mx25pdk.c | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | #include <linux/types.h> | ||
| 2 | #include <linux/init.h> | ||
| 3 | #include <linux/clk.h> | ||
| 4 | #include <linux/irq.h> | ||
| 5 | #include <linux/gpio.h> | ||
| 6 | #include <linux/smsc911x.h> | ||
| 7 | #include <linux/platform_device.h> | ||
| 8 | |||
| 9 | #include <mach/hardware.h> | ||
| 10 | #include <asm/mach-types.h> | ||
| 11 | #include <asm/mach/arch.h> | ||
| 12 | #include <asm/mach/time.h> | ||
| 13 | #include <asm/memory.h> | ||
| 14 | #include <asm/mach/map.h> | ||
| 15 | #include <mach/common.h> | ||
| 16 | #include <mach/imx-uart.h> | ||
| 17 | #include <mach/mx25.h> | ||
| 18 | #include <mach/mxc_nand.h> | ||
| 19 | #include "devices.h" | ||
| 20 | #include <mach/iomux-v3.h> | ||
| 21 | |||
| 22 | static struct imxuart_platform_data uart_pdata = { | ||
| 23 | .flags = IMXUART_HAVE_RTSCTS, | ||
| 24 | }; | ||
| 25 | |||
| 26 | static struct mxc_nand_platform_data nand_board_info = { | ||
| 27 | .width = 1, | ||
| 28 | .hw_ecc = 1, | ||
| 29 | }; | ||
| 30 | |||
| 31 | static void __init mx25pdk_init(void) | ||
| 32 | { | ||
| 33 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | ||
| 34 | mxc_register_device(&mxc_usbh2, NULL); | ||
| 35 | mxc_register_device(&mxc_nand_device, &nand_board_info); | ||
| 36 | } | ||
| 37 | |||
| 38 | |||
| 39 | static void __init mx25pdk_timer_init(void) | ||
| 40 | { | ||
| 41 | mx25_clocks_init(26000000); | ||
| 42 | } | ||
| 43 | |||
| 44 | static struct sys_timer mx25pdk_timer = { | ||
| 45 | .init = mx25pdk_timer_init, | ||
| 46 | }; | ||
| 47 | |||
| 48 | MACHINE_START(MX25_3DS, "Freescale MX25PDK (3DS)") | ||
| 49 | /* Maintainer: Freescale Semiconductor, Inc. */ | ||
| 50 | .phys_io = MX25_AIPS1_BASE_ADDR, | ||
| 51 | .io_pg_offst = ((MX25_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | ||
| 52 | .boot_params = PHYS_OFFSET + 0x100, | ||
| 53 | .map_io = mx25_map_io, | ||
| 54 | .init_irq = mx25_init_irq, | ||
| 55 | .init_machine = mx25pdk_init, | ||
| 56 | .timer = &mx25pdk_timer, | ||
| 57 | MACHINE_END | ||
| 58 | |||
diff --git a/arch/arm/plat-mxc/include/mach/uncompress.h b/arch/arm/plat-mxc/include/mach/uncompress.h index b6650e705e31..1e24499f20b5 100644 --- a/arch/arm/plat-mxc/include/mach/uncompress.h +++ b/arch/arm/plat-mxc/include/mach/uncompress.h | |||
| @@ -74,6 +74,9 @@ static __inline__ void __arch_decomp_setup(unsigned long arch_id) | |||
| 74 | case MACH_TYPE_SCB9328: | 74 | case MACH_TYPE_SCB9328: |
| 75 | uart_base = MX1_UART1_BASE_ADDR; | 75 | uart_base = MX1_UART1_BASE_ADDR; |
| 76 | break; | 76 | break; |
| 77 | case MACH_TYPE_MX25_3DS: | ||
| 78 | uart_base = MX25_UART1_BASE_ADDR; | ||
| 79 | break; | ||
| 77 | case MACH_TYPE_IMX27LITE: | 80 | case MACH_TYPE_IMX27LITE: |
| 78 | case MACH_TYPE_MX27_3DS: | 81 | case MACH_TYPE_MX27_3DS: |
| 79 | case MACH_TYPE_MX27ADS: | 82 | case MACH_TYPE_MX27ADS: |
