Path: blob/master/arch/arm/mach-msm/board-mahimahi.c
10817 views
/* linux/arch/arm/mach-msm/board-mahimahi.c1*2* Copyright (C) 2009 Google, Inc.3* Copyright (C) 2009 HTC Corporation.4* Author: Dima Zavin <[email protected]>5*6* This software is licensed under the terms of the GNU General Public7* License version 2, as published by the Free Software Foundation, and8* may be copied, distributed, and modified under those terms.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*15*/1617#include <linux/delay.h>18#include <linux/gpio.h>19#include <linux/init.h>20#include <linux/input.h>21#include <linux/io.h>22#include <linux/kernel.h>23#include <linux/platform_device.h>2425#include <asm/mach-types.h>26#include <asm/mach/arch.h>27#include <asm/mach/map.h>28#include <asm/setup.h>2930#include <mach/board.h>31#include <mach/hardware.h>32#include <mach/system.h>3334#include "board-mahimahi.h"35#include "devices.h"36#include "proc_comm.h"3738static uint debug_uart;3940module_param_named(debug_uart, debug_uart, uint, 0);4142static struct platform_device *devices[] __initdata = {43#if !defined(CONFIG_MSM_SERIAL_DEBUGGER)44&msm_device_uart1,45#endif46&msm_device_uart_dm1,47&msm_device_nand,48};4950static void __init mahimahi_init(void)51{52platform_add_devices(devices, ARRAY_SIZE(devices));53}5455static void __init mahimahi_fixup(struct machine_desc *desc, struct tag *tags,56char **cmdline, struct meminfo *mi)57{58mi->nr_banks = 2;59mi->bank[0].start = PHYS_OFFSET;60mi->bank[0].node = PHYS_TO_NID(PHYS_OFFSET);61mi->bank[0].size = (219*1024*1024);62mi->bank[1].start = MSM_HIGHMEM_BASE;63mi->bank[1].node = PHYS_TO_NID(MSM_HIGHMEM_BASE);64mi->bank[1].size = MSM_HIGHMEM_SIZE;65}6667static void __init mahimahi_map_io(void)68{69msm_map_common_io();70msm_clock_init();71}7273extern struct sys_timer msm_timer;7475MACHINE_START(MAHIMAHI, "mahimahi")76.boot_params = 0x20000100,77.fixup = mahimahi_fixup,78.map_io = mahimahi_map_io,79.init_irq = msm_init_irq,80.init_machine = mahimahi_init,81.timer = &msm_timer,82MACHINE_END838485