Path: blob/master/arch/arm/mach-omap2/board-generic.c
10817 views
/*1* linux/arch/arm/mach-omap2/board-generic.c2*3* Copyright (C) 2005 Nokia Corporation4* Author: Paul Mundt <[email protected]>5*6* Modified from mach-omap/omap1/board-generic.c7*8* Code for generic OMAP2 board. Should work on many OMAP2 systems where9* the bootloader passes the board-specific data to the kernel.10* Do not put any board specific code to this file; create a new machine11* type if you need custom low-level initializations.12*13* This program is free software; you can redistribute it and/or modify14* it under the terms of the GNU General Public License version 2 as15* published by the Free Software Foundation.16*/1718#include <linux/kernel.h>19#include <linux/init.h>20#include <linux/device.h>2122#include <mach/hardware.h>23#include <asm/mach-types.h>24#include <asm/mach/arch.h>25#include <asm/mach/map.h>2627#include <mach/gpio.h>28#include <plat/usb.h>29#include <plat/board.h>30#include <plat/common.h>3132static struct omap_board_config_kernel generic_config[] = {33};3435static void __init omap_generic_init_early(void)36{37omap2_init_common_infrastructure();38omap2_init_common_devices(NULL, NULL);39}4041static void __init omap_generic_init(void)42{43omap_serial_init();44omap_board_config = generic_config;45omap_board_config_size = ARRAY_SIZE(generic_config);46}4748static void __init omap_generic_map_io(void)49{50if (cpu_is_omap242x()) {51omap2_set_globals_242x();52omap242x_map_common_io();53} else if (cpu_is_omap243x()) {54omap2_set_globals_243x();55omap243x_map_common_io();56} else if (cpu_is_omap34xx()) {57omap2_set_globals_3xxx();58omap34xx_map_common_io();59} else if (cpu_is_omap44xx()) {60omap2_set_globals_443x();61omap44xx_map_common_io();62}63}6465/* XXX This machine entry name should be updated */66MACHINE_START(OMAP_GENERIC, "Generic OMAP24xx")67/* Maintainer: Paul Mundt <[email protected]> */68.boot_params = 0x80000100,69.reserve = omap_reserve,70.map_io = omap_generic_map_io,71.init_early = omap_generic_init_early,72.init_irq = omap_init_irq,73.init_machine = omap_generic_init,74.timer = &omap_timer,75MACHINE_END767778