Path: blob/master/arch/arm/mach-imx/mach-imx27ipcam.c
10817 views
/*1* Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved.2*3* Author: Fabio Estevam <[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 <asm/mach-types.h>17#include <asm/mach/arch.h>18#include <asm/mach/time.h>19#include <mach/hardware.h>20#include <mach/common.h>21#include <mach/iomux-mx27.h>2223#include "devices-imx27.h"2425static const int mx27ipcam_pins[] __initconst = {26/* UART1 */27PE12_PF_UART1_TXD,28PE13_PF_UART1_RXD,29/* FEC */30PD0_AIN_FEC_TXD0,31PD1_AIN_FEC_TXD1,32PD2_AIN_FEC_TXD2,33PD3_AIN_FEC_TXD3,34PD4_AOUT_FEC_RX_ER,35PD5_AOUT_FEC_RXD1,36PD6_AOUT_FEC_RXD2,37PD7_AOUT_FEC_RXD3,38PD8_AF_FEC_MDIO,39PD9_AIN_FEC_MDC,40PD10_AOUT_FEC_CRS,41PD11_AOUT_FEC_TX_CLK,42PD12_AOUT_FEC_RXD0,43PD13_AOUT_FEC_RX_DV,44PD14_AOUT_FEC_RX_CLK,45PD15_AOUT_FEC_COL,46PD16_AIN_FEC_TX_ER,47PF23_AIN_FEC_TX_EN,48};4950static void __init mx27ipcam_init(void)51{52mxc_gpio_setup_multiple_pins(mx27ipcam_pins, ARRAY_SIZE(mx27ipcam_pins),53"mx27ipcam");5455imx27_add_imx_uart0(NULL);56imx27_add_fec(NULL);57imx27_add_imx2_wdt(NULL);58}5960static void __init mx27ipcam_timer_init(void)61{62mx27_clocks_init(25000000);63}6465static struct sys_timer mx27ipcam_timer = {66.init = mx27ipcam_timer_init,67};6869MACHINE_START(IMX27IPCAM, "Freescale IMX27IPCAM")70/* maintainer: Freescale Semiconductor, Inc. */71.boot_params = MX27_PHYS_OFFSET + 0x100,72.map_io = mx27_map_io,73.init_early = imx27_init_early,74.init_irq = mx27_init_irq,75.timer = &mx27ipcam_timer,76.init_machine = mx27ipcam_init,77MACHINE_END787980