diff options
Diffstat (limited to 'arch/arm/mach-mx3/mach-kzm_arm11_01.c')
| -rw-r--r-- | arch/arm/mach-mx3/mach-kzm_arm11_01.c | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/arch/arm/mach-mx3/mach-kzm_arm11_01.c b/arch/arm/mach-mx3/mach-kzm_arm11_01.c index f085d5d1a6d..5b23e416d6c 100644 --- a/arch/arm/mach-mx3/mach-kzm_arm11_01.c +++ b/arch/arm/mach-mx3/mach-kzm_arm11_01.c | |||
| @@ -16,10 +16,6 @@ | |||
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. | 18 | * GNU General Public License for more details. |
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License | ||
| 21 | * along with this program; if not, write to the Free Software | ||
| 22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 23 | */ | 19 | */ |
| 24 | 20 | ||
| 25 | #include <linux/gpio.h> | 21 | #include <linux/gpio.h> |
| @@ -37,13 +33,12 @@ | |||
| 37 | #include <asm/mach/map.h> | 33 | #include <asm/mach/map.h> |
| 38 | #include <asm/mach/time.h> | 34 | #include <asm/mach/time.h> |
| 39 | 35 | ||
| 40 | #include <mach/board-kzmarm11.h> | ||
| 41 | #include <mach/clock.h> | 36 | #include <mach/clock.h> |
| 42 | #include <mach/common.h> | 37 | #include <mach/common.h> |
| 43 | #include <mach/imx-uart.h> | ||
| 44 | #include <mach/iomux-mx3.h> | 38 | #include <mach/iomux-mx3.h> |
| 45 | #include <mach/memory.h> | 39 | #include <mach/memory.h> |
| 46 | 40 | ||
| 41 | #include "devices-imx31.h" | ||
| 47 | #include "devices.h" | 42 | #include "devices.h" |
| 48 | 43 | ||
| 49 | #define KZM_ARM11_IO_ADDRESS(x) ( \ | 44 | #define KZM_ARM11_IO_ADDRESS(x) ( \ |
| @@ -51,6 +46,23 @@ | |||
| 51 | IMX_IO_ADDRESS(x, MX31_CS5) ?: \ | 46 | IMX_IO_ADDRESS(x, MX31_CS5) ?: \ |
| 52 | MX31_IO_ADDRESS(x)) | 47 | MX31_IO_ADDRESS(x)) |
| 53 | 48 | ||
| 49 | /* | ||
| 50 | * KZM-ARM11-01 Board Control Registers on FPGA | ||
| 51 | */ | ||
| 52 | #define KZM_ARM11_CTL1 (MX31_CS4_BASE_ADDR + 0x1000) | ||
| 53 | #define KZM_ARM11_CTL2 (MX31_CS4_BASE_ADDR + 0x1001) | ||
| 54 | #define KZM_ARM11_RSW1 (MX31_CS4_BASE_ADDR + 0x1002) | ||
| 55 | #define KZM_ARM11_BACK_LIGHT (MX31_CS4_BASE_ADDR + 0x1004) | ||
| 56 | #define KZM_ARM11_FPGA_REV (MX31_CS4_BASE_ADDR + 0x1008) | ||
| 57 | #define KZM_ARM11_7SEG_LED (MX31_CS4_BASE_ADDR + 0x1010) | ||
| 58 | #define KZM_ARM11_LEDS (MX31_CS4_BASE_ADDR + 0x1020) | ||
| 59 | #define KZM_ARM11_DIPSW2 (MX31_CS4_BASE_ADDR + 0x1003) | ||
| 60 | |||
| 61 | /* | ||
| 62 | * External UART for touch panel on FPGA | ||
| 63 | */ | ||
| 64 | #define KZM_ARM11_16550 (MX31_CS4_BASE_ADDR + 0x1050) | ||
| 65 | |||
| 54 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) | 66 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) |
| 55 | /* | 67 | /* |
| 56 | * KZM-ARM11-01 has an external UART on FPGA | 68 | * KZM-ARM11-01 has an external UART on FPGA |
| @@ -173,15 +185,14 @@ static inline int kzm_init_smsc9118(void) | |||
| 173 | #endif | 185 | #endif |
| 174 | 186 | ||
| 175 | #if defined(CONFIG_SERIAL_IMX) || defined(CONFIG_SERIAL_IMX_MODULE) | 187 | #if defined(CONFIG_SERIAL_IMX) || defined(CONFIG_SERIAL_IMX_MODULE) |
| 176 | static struct imxuart_platform_data uart_pdata = { | 188 | static const struct imxuart_platform_data uart_pdata __initconst = { |
| 177 | .flags = IMXUART_HAVE_RTSCTS, | 189 | .flags = IMXUART_HAVE_RTSCTS, |
| 178 | }; | 190 | }; |
| 179 | 191 | ||
| 180 | static void __init kzm_init_imx_uart(void) | 192 | static void __init kzm_init_imx_uart(void) |
| 181 | { | 193 | { |
| 182 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | 194 | imx31_add_imx_uart0(&uart_pdata); |
| 183 | 195 | imx31_add_imx_uart1(&uart_pdata); | |
| 184 | mxc_register_device(&mxc_uart_device1, &uart_pdata); | ||
| 185 | } | 196 | } |
| 186 | #else | 197 | #else |
| 187 | static inline void kzm_init_imx_uart(void) | 198 | static inline void kzm_init_imx_uart(void) |
