Path: blob/master/arch/arm/mach-imx/mach-imx27lite.c
10817 views
/*1* Copyright 2007 Robert Schwebel <[email protected]>, Pengutronix2* Copyright (C) 2008 Juergen Beisert ([email protected])3* Copyright 2009 Daniel Schaeffer ([email protected])4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*/1516#include <linux/platform_device.h>17#include <linux/gpio.h>18#include <asm/mach-types.h>19#include <asm/mach/arch.h>20#include <asm/mach/time.h>21#include <asm/mach/map.h>22#include <mach/hardware.h>23#include <mach/common.h>24#include <mach/iomux-mx27.h>2526#include "devices-imx27.h"2728static const int mx27lite_pins[] __initconst = {29/* UART1 */30PE12_PF_UART1_TXD,31PE13_PF_UART1_RXD,32PE14_PF_UART1_CTS,33PE15_PF_UART1_RTS,34/* FEC */35PD0_AIN_FEC_TXD0,36PD1_AIN_FEC_TXD1,37PD2_AIN_FEC_TXD2,38PD3_AIN_FEC_TXD3,39PD4_AOUT_FEC_RX_ER,40PD5_AOUT_FEC_RXD1,41PD6_AOUT_FEC_RXD2,42PD7_AOUT_FEC_RXD3,43PD8_AF_FEC_MDIO,44PD9_AIN_FEC_MDC,45PD10_AOUT_FEC_CRS,46PD11_AOUT_FEC_TX_CLK,47PD12_AOUT_FEC_RXD0,48PD13_AOUT_FEC_RX_DV,49PD14_AOUT_FEC_RX_CLK,50PD15_AOUT_FEC_COL,51PD16_AIN_FEC_TX_ER,52PF23_AIN_FEC_TX_EN,53};5455static const struct imxuart_platform_data uart_pdata __initconst = {56.flags = IMXUART_HAVE_RTSCTS,57};5859static void __init mx27lite_init(void)60{61mxc_gpio_setup_multiple_pins(mx27lite_pins, ARRAY_SIZE(mx27lite_pins),62"imx27lite");63imx27_add_imx_uart0(&uart_pdata);64imx27_add_fec(NULL);65}6667static void __init mx27lite_timer_init(void)68{69mx27_clocks_init(26000000);70}7172static struct sys_timer mx27lite_timer = {73.init = mx27lite_timer_init,74};7576MACHINE_START(IMX27LITE, "LogicPD i.MX27LITE")77.boot_params = MX27_PHYS_OFFSET + 0x100,78.map_io = mx27_map_io,79.init_early = imx27_init_early,80.init_irq = mx27_init_irq,81.timer = &mx27lite_timer,82.init_machine = mx27lite_init,83MACHINE_END848586