]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - arch/arm/mach-omap1/board-h6300.c
94b9c1458d64adc4494df9ea2b8df6c16edbcb1e
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap1 / board-h6300.c
1 /*
2  * linux/arch/arm/mach-omap1/board-h6300.c
3  *
4  * Modified from board-innovator.c
5  *
6  * Board specific inits for OMAP-1510 based iPAQ h63xx series of mobile phones.
7  * (h6315, h6340 and h6365)
8  *
9  * Copyright (C) 2009 Mika Laitio
10  * Copyright (C) 2009 Husam Senussi
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License version 2 as
14  * published by the Free Software Foundation.
15  */
16
17 #include <linux/kernel.h>
18 #include <linux/init.h>
19 #include <linux/platform_device.h>
20 #include <linux/delay.h>
21
22 #include <linux/input.h>
23
24 #include <mach/hardware.h>
25 #include <asm/mach-types.h>
26 #include <asm/mach/arch.h>
27 #include <asm/mach/map.h>
28
29 #include <mach/mux.h>
30 #include <mach/gpio.h>
31 #include <mach/common.h>
32
33 static void __init h6300_init_irq(void)
34 {
35         omap1_init_common_hw();
36         omap_init_irq();
37         omap_gpio_init();
38 }
39
40 static void __init h6300_init(void)
41 {
42         omap_serial_init();
43         omap_register_i2c_bus(1, 100, NULL, 0);
44 }
45
46 static void __init h6300_map_io(void)
47 {
48         omap1_map_common_io();
49 }
50
51 MACHINE_START(OMAP_H6300, "HP iPAQ h6300")
52         /* MAINTAINER("Mika Laitio <lamikr at pilppa dot org>") */
53         .phys_io        = 0xfff00000,
54         .io_pg_offst    = ((0xfef00000) >> 18) & 0xfffc,
55         .boot_params    = 0x10000100,
56         .map_io         = h6300_map_io,
57         .init_irq       = h6300_init_irq,
58         .init_machine   = h6300_init,
59         .timer          = &omap_timer,
60 MACHINE_END