Sascha Hauer | de41fdd | 2009-10-02 09:14:18 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2009 Sascha Hauer, <kernel@pengutronix.de> |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License |
| 6 | * as published by the Free Software Foundation; either version 2 |
| 7 | * of the License, or (at your option) any later version. |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program; if not, write to the Free Software |
| 15 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 16 | * Boston, MA 02110-1301, USA. |
| 17 | */ |
| 18 | |
Sascha Hauer | 635baf6 | 2009-06-04 11:32:46 +0200 | [diff] [blame] | 19 | #include <linux/types.h> |
| 20 | #include <linux/init.h> |
| 21 | #include <linux/clk.h> |
| 22 | #include <linux/irq.h> |
| 23 | #include <linux/gpio.h> |
| 24 | #include <linux/smsc911x.h> |
| 25 | #include <linux/platform_device.h> |
| 26 | |
| 27 | #include <mach/hardware.h> |
| 28 | #include <asm/mach-types.h> |
| 29 | #include <asm/mach/arch.h> |
| 30 | #include <asm/mach/time.h> |
| 31 | #include <asm/memory.h> |
| 32 | #include <asm/mach/map.h> |
| 33 | #include <mach/common.h> |
| 34 | #include <mach/imx-uart.h> |
| 35 | #include <mach/mx25.h> |
| 36 | #include <mach/mxc_nand.h> |
| 37 | #include "devices.h" |
| 38 | #include <mach/iomux-v3.h> |
| 39 | |
| 40 | static struct imxuart_platform_data uart_pdata = { |
| 41 | .flags = IMXUART_HAVE_RTSCTS, |
| 42 | }; |
| 43 | |
Sascha Hauer | 635baf6 | 2009-06-04 11:32:46 +0200 | [diff] [blame] | 44 | static void __init mx25pdk_init(void) |
| 45 | { |
| 46 | mxc_register_device(&mxc_uart_device0, &uart_pdata); |
| 47 | mxc_register_device(&mxc_usbh2, NULL); |
Sascha Hauer | 635baf6 | 2009-06-04 11:32:46 +0200 | [diff] [blame] | 48 | } |
| 49 | |
Sascha Hauer | 635baf6 | 2009-06-04 11:32:46 +0200 | [diff] [blame] | 50 | static void __init mx25pdk_timer_init(void) |
| 51 | { |
| 52 | mx25_clocks_init(26000000); |
| 53 | } |
| 54 | |
| 55 | static struct sys_timer mx25pdk_timer = { |
| 56 | .init = mx25pdk_timer_init, |
| 57 | }; |
| 58 | |
| 59 | MACHINE_START(MX25_3DS, "Freescale MX25PDK (3DS)") |
| 60 | /* Maintainer: Freescale Semiconductor, Inc. */ |
| 61 | .phys_io = MX25_AIPS1_BASE_ADDR, |
| 62 | .io_pg_offst = ((MX25_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
| 63 | .boot_params = PHYS_OFFSET + 0x100, |
| 64 | .map_io = mx25_map_io, |
| 65 | .init_irq = mx25_init_irq, |
| 66 | .init_machine = mx25pdk_init, |
| 67 | .timer = &mx25pdk_timer, |
| 68 | MACHINE_END |
| 69 | |