aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/mach-mx35pdk.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-03-12 19:00:54 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-12 19:00:54 -0500
commitdca1d9f6d7ae428c193f32bd3e9a4ca13176648b (patch)
tree02de8c3503c1c811754423d2fa3f3b4978044f6e /arch/arm/mach-mx3/mach-mx35pdk.c
parent9ff99339447de403a46be5e3f23d0c794d540b06 (diff)
parent91e013827c0bcbb187ecf02213c5446b6f62d445 (diff)
Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (370 commits) ARM: S3C2443: Add set_rate and round_rate calls for armdiv clock ARM: S3C2443: Remove #if 0 for clk_mpll ARM: S3C2443: Update notes on MPLLREF clock ARM: S3C2443: Further clksrc-clk conversions ARM: S3C2443: Change to using plat-samsung clksrc-clk implementation USB: Fix s3c-hsotg build following Samsung platform header moves ARM: S3C64XX: Reintroduce unconditional build of audio device ARM: 5961/1: ux500: fix CLKRST addresses ARM: 5977/1: arm: Enable backtrace printing on oops when PC is corrupted ASoC: Fix S3C64xx IIS driver for Samsung header reorg ARM: S3C2440: Fix plat-s3c24xx move of s3c2440/s3c2442 support [ARM] pxa: fix typo in mxm8x10.h [ARM] pxa/raumfeld: set GPIO drive bits for LED pins [ARM] pxa/zeus: Add support for mcp2515 CAN bus [ARM] pxa/zeus: Add support for onboard max6369 watchdog [ARM] pxa/zeus: Add Eurotech as the manufacturer [ARM] pxa/zeus: Correct the USB host initialisation flags [ARM] pxa/zeus: Allow usage of 8250-compatible UART in uncompress [ARM] pxa: refactor uncompress.h for non-PXA uarts [ARM] mmp2: fix incorrect calling of chip->mask_ack() for 2nd level cascaded IRQs ...
Diffstat (limited to 'arch/arm/mach-mx3/mach-mx35pdk.c')
-rw-r--r--arch/arm/mach-mx3/mach-mx35pdk.c116
1 files changed, 116 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/mach-mx35pdk.c b/arch/arm/mach-mx3/mach-mx35pdk.c
new file mode 100644
index 000000000000..bcac84d4dca4
--- /dev/null
+++ b/arch/arm/mach-mx3/mach-mx35pdk.c
@@ -0,0 +1,116 @@
1/*
2 * Copyright 2009 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 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21#include <linux/types.h>
22#include <linux/init.h>
23#include <linux/platform_device.h>
24#include <linux/memory.h>
25#include <linux/gpio.h>
26#include <linux/fsl_devices.h>
27
28#include <asm/mach-types.h>
29#include <asm/mach/arch.h>
30#include <asm/mach/time.h>
31#include <asm/mach/map.h>
32
33#include <mach/hardware.h>
34#include <mach/common.h>
35#include <mach/imx-uart.h>
36#include <mach/iomux-mx35.h>
37
38#include "devices.h"
39
40static struct imxuart_platform_data uart_pdata = {
41 .flags = IMXUART_HAVE_RTSCTS,
42};
43
44static struct platform_device *devices[] __initdata = {
45 &mxc_fec_device,
46};
47
48static struct pad_desc mx35pdk_pads[] = {
49 /* UART1 */
50 MX35_PAD_CTS1__UART1_CTS,
51 MX35_PAD_RTS1__UART1_RTS,
52 MX35_PAD_TXD1__UART1_TXD_MUX,
53 MX35_PAD_RXD1__UART1_RXD_MUX,
54 /* FEC */
55 MX35_PAD_FEC_TX_CLK__FEC_TX_CLK,
56 MX35_PAD_FEC_RX_CLK__FEC_RX_CLK,
57 MX35_PAD_FEC_RX_DV__FEC_RX_DV,
58 MX35_PAD_FEC_COL__FEC_COL,
59 MX35_PAD_FEC_RDATA0__FEC_RDATA_0,
60 MX35_PAD_FEC_TDATA0__FEC_TDATA_0,
61 MX35_PAD_FEC_TX_EN__FEC_TX_EN,
62 MX35_PAD_FEC_MDC__FEC_MDC,
63 MX35_PAD_FEC_MDIO__FEC_MDIO,
64 MX35_PAD_FEC_TX_ERR__FEC_TX_ERR,
65 MX35_PAD_FEC_RX_ERR__FEC_RX_ERR,
66 MX35_PAD_FEC_CRS__FEC_CRS,
67 MX35_PAD_FEC_RDATA1__FEC_RDATA_1,
68 MX35_PAD_FEC_TDATA1__FEC_TDATA_1,
69 MX35_PAD_FEC_RDATA2__FEC_RDATA_2,
70 MX35_PAD_FEC_TDATA2__FEC_TDATA_2,
71 MX35_PAD_FEC_RDATA3__FEC_RDATA_3,
72 MX35_PAD_FEC_TDATA3__FEC_TDATA_3,
73 /* USBOTG */
74 MX35_PAD_USBOTG_PWR__USB_TOP_USBOTG_PWR,
75 MX35_PAD_USBOTG_OC__USB_TOP_USBOTG_OC,
76};
77
78/* OTG config */
79static struct fsl_usb2_platform_data usb_pdata = {
80 .operating_mode = FSL_USB2_DR_DEVICE,
81 .phy_mode = FSL_USB2_PHY_UTMI_WIDE,
82};
83
84/*
85 * Board specific initialization.
86 */
87static void __init mxc_board_init(void)
88{
89 mxc_iomux_v3_setup_multiple_pads(mx35pdk_pads, ARRAY_SIZE(mx35pdk_pads));
90
91 platform_add_devices(devices, ARRAY_SIZE(devices));
92
93 mxc_register_device(&mxc_uart_device0, &uart_pdata);
94
95 mxc_register_device(&mxc_otg_udc_device, &usb_pdata);
96}
97
98static void __init mx35pdk_timer_init(void)
99{
100 mx35_clocks_init();
101}
102
103struct sys_timer mx35pdk_timer = {
104 .init = mx35pdk_timer_init,
105};
106
107MACHINE_START(MX35_3DS, "Freescale MX35PDK")
108 /* Maintainer: Freescale Semiconductor, Inc */
109 .phys_io = MX35_AIPS1_BASE_ADDR,
110 .io_pg_offst = ((MX35_AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc,
111 .boot_params = MX3x_PHYS_OFFSET + 0x100,
112 .map_io = mx35_map_io,
113 .init_irq = mx35_init_irq,
114 .init_machine = mxc_board_init,
115 .timer = &mx35pdk_timer,
116MACHINE_END