diff options
-rw-r--r-- | arch/arm/mach-imx/Kconfig | 9 | ||||
-rw-r--r-- | arch/arm/mach-imx/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-imx27ipcam.c | 77 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/uncompress.h | 1 |
4 files changed, 88 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 56684b517070..c1724185c242 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig | |||
@@ -300,4 +300,13 @@ config MACH_MXT_TD60 | |||
300 | Include support for i-MXT (aka td60) platform. This | 300 | Include support for i-MXT (aka td60) platform. This |
301 | includes specific configurations for the module and its peripherals. | 301 | includes specific configurations for the module and its peripherals. |
302 | 302 | ||
303 | config MACH_IMX27IPCAM | ||
304 | bool "IMX27 IPCAM platform" | ||
305 | select SOC_IMX27 | ||
306 | select IMX_HAVE_PLATFORM_IMX2_WDT | ||
307 | select IMX_HAVE_PLATFORM_IMX_UART | ||
308 | help | ||
309 | Include support for IMX27 IPCAM platform. This includes specific | ||
310 | configurations for the board and its peripherals. | ||
311 | |||
303 | endif | 312 | endif |
diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index 77100bf26153..3e49ae0618aa 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile | |||
@@ -36,3 +36,4 @@ obj-$(CONFIG_MACH_CPUIMX27) += mach-cpuimx27.o | |||
36 | obj-$(CONFIG_MACH_EUKREA_MBIMX27_BASEBOARD) += eukrea_mbimx27-baseboard.o | 36 | obj-$(CONFIG_MACH_EUKREA_MBIMX27_BASEBOARD) += eukrea_mbimx27-baseboard.o |
37 | obj-$(CONFIG_MACH_PCA100) += mach-pca100.o | 37 | obj-$(CONFIG_MACH_PCA100) += mach-pca100.o |
38 | obj-$(CONFIG_MACH_MXT_TD60) += mach-mxt_td60.o | 38 | obj-$(CONFIG_MACH_MXT_TD60) += mach-mxt_td60.o |
39 | obj-$(CONFIG_MACH_IMX27IPCAM) += mach-imx27ipcam.o | ||
diff --git a/arch/arm/mach-imx/mach-imx27ipcam.c b/arch/arm/mach-imx/mach-imx27ipcam.c new file mode 100644 index 000000000000..d099ea600891 --- /dev/null +++ b/arch/arm/mach-imx/mach-imx27ipcam.c | |||
@@ -0,0 +1,77 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved. | ||
3 | * | ||
4 | * Author: Fabio Estevam <fabio.estevam@freescale.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | */ | ||
16 | |||
17 | #include <asm/mach-types.h> | ||
18 | #include <asm/mach/arch.h> | ||
19 | #include <asm/mach/time.h> | ||
20 | #include <mach/hardware.h> | ||
21 | #include <mach/common.h> | ||
22 | #include <mach/iomux-mx27.h> | ||
23 | |||
24 | #include "devices-imx27.h" | ||
25 | |||
26 | static const int mx27ipcam_pins[] __initconst = { | ||
27 | /* UART1 */ | ||
28 | PE12_PF_UART1_TXD, | ||
29 | PE13_PF_UART1_RXD, | ||
30 | /* FEC */ | ||
31 | PD0_AIN_FEC_TXD0, | ||
32 | PD1_AIN_FEC_TXD1, | ||
33 | PD2_AIN_FEC_TXD2, | ||
34 | PD3_AIN_FEC_TXD3, | ||
35 | PD4_AOUT_FEC_RX_ER, | ||
36 | PD5_AOUT_FEC_RXD1, | ||
37 | PD6_AOUT_FEC_RXD2, | ||
38 | PD7_AOUT_FEC_RXD3, | ||
39 | PD8_AF_FEC_MDIO, | ||
40 | PD9_AIN_FEC_MDC, | ||
41 | PD10_AOUT_FEC_CRS, | ||
42 | PD11_AOUT_FEC_TX_CLK, | ||
43 | PD12_AOUT_FEC_RXD0, | ||
44 | PD13_AOUT_FEC_RX_DV, | ||
45 | PD14_AOUT_FEC_RX_CLK, | ||
46 | PD15_AOUT_FEC_COL, | ||
47 | PD16_AIN_FEC_TX_ER, | ||
48 | PF23_AIN_FEC_TX_EN, | ||
49 | }; | ||
50 | |||
51 | static void __init mx27ipcam_init(void) | ||
52 | { | ||
53 | mxc_gpio_setup_multiple_pins(mx27ipcam_pins, ARRAY_SIZE(mx27ipcam_pins), | ||
54 | "mx27ipcam"); | ||
55 | |||
56 | imx27_add_imx_uart0(NULL); | ||
57 | imx27_add_fec(NULL); | ||
58 | imx27_add_imx2_wdt(NULL); | ||
59 | } | ||
60 | |||
61 | static void __init mx27ipcam_timer_init(void) | ||
62 | { | ||
63 | mx27_clocks_init(25000000); | ||
64 | } | ||
65 | |||
66 | static struct sys_timer mx27ipcam_timer = { | ||
67 | .init = mx27ipcam_timer_init, | ||
68 | }; | ||
69 | |||
70 | MACHINE_START(IMX27IPCAM, "Freescale IMX27IPCAM") | ||
71 | /* maintainer: Freescale Semiconductor, Inc. */ | ||
72 | .boot_params = MX27_PHYS_OFFSET + 0x100, | ||
73 | .map_io = mx27_map_io, | ||
74 | .init_irq = mx27_init_irq, | ||
75 | .init_machine = mx27ipcam_init, | ||
76 | .timer = &mx27ipcam_timer, | ||
77 | MACHINE_END | ||
diff --git a/arch/arm/plat-mxc/include/mach/uncompress.h b/arch/arm/plat-mxc/include/mach/uncompress.h index 3a70ebf0477f..2315541ac29d 100644 --- a/arch/arm/plat-mxc/include/mach/uncompress.h +++ b/arch/arm/plat-mxc/include/mach/uncompress.h | |||
@@ -83,6 +83,7 @@ static __inline__ void __arch_decomp_setup(unsigned long arch_id) | |||
83 | case MACH_TYPE_MX21ADS: | 83 | case MACH_TYPE_MX21ADS: |
84 | case MACH_TYPE_PCA100: | 84 | case MACH_TYPE_PCA100: |
85 | case MACH_TYPE_MXT_TD60: | 85 | case MACH_TYPE_MXT_TD60: |
86 | case MACH_TYPE_IMX27IPCAM: | ||
86 | uart_base = MX2X_UART1_BASE_ADDR; | 87 | uart_base = MX2X_UART1_BASE_ADDR; |
87 | break; | 88 | break; |
88 | case MACH_TYPE_MX31LITE: | 89 | case MACH_TYPE_MX31LITE: |