| vikram pandita | 5f35fbe | 2009-11-22 10:11:32 -0800 | [diff] [blame] | 1 | /* | 
 | 2 |  * Copyright (C) 2009 Texas Instruments Inc. | 
 | 3 |  * | 
 | 4 |  * | 
 | 5 |  * This program is free software; you can redistribute it and/or modify | 
 | 6 |  * it under the terms of the GNU General Public License version 2 as | 
 | 7 |  * published by the Free Software Foundation. | 
 | 8 |  */ | 
 | 9 |  | 
 | 10 | #include <linux/kernel.h> | 
 | 11 | #include <linux/init.h> | 
 | 12 | #include <linux/platform_device.h> | 
 | 13 | #include <linux/input.h> | 
 | 14 | #include <linux/gpio.h> | 
 | 15 |  | 
 | 16 | #include <asm/mach-types.h> | 
 | 17 | #include <asm/mach/arch.h> | 
 | 18 |  | 
 | 19 | #include <mach/board-zoom.h> | 
 | 20 |  | 
 | 21 | #include <plat/common.h> | 
 | 22 | #include <plat/board.h> | 
 | 23 |  | 
| Tony Lindgren | 662c8b5 | 2009-12-11 16:16:33 -0800 | [diff] [blame] | 24 | #include "mux.h" | 
| vikram pandita | 5f35fbe | 2009-11-22 10:11:32 -0800 | [diff] [blame] | 25 | #include "sdram-hynix-h8mbx00u0mer-0em.h" | 
 | 26 |  | 
 | 27 | static void __init omap_zoom_map_io(void) | 
 | 28 | { | 
 | 29 | 	omap2_set_globals_343x(); | 
 | 30 | 	omap2_map_common_io(); | 
 | 31 | } | 
 | 32 |  | 
 | 33 | static struct omap_board_config_kernel zoom_config[] __initdata = { | 
 | 34 | }; | 
 | 35 |  | 
 | 36 | static void __init omap_zoom_init_irq(void) | 
 | 37 | { | 
 | 38 | 	omap_board_config = zoom_config; | 
 | 39 | 	omap_board_config_size = ARRAY_SIZE(zoom_config); | 
 | 40 | 	omap2_init_common_hw(h8mbx00u0mer0em_sdrc_params, | 
 | 41 | 			h8mbx00u0mer0em_sdrc_params); | 
 | 42 | 	omap_init_irq(); | 
 | 43 | 	omap_gpio_init(); | 
 | 44 | } | 
 | 45 |  | 
| Tony Lindgren | 662c8b5 | 2009-12-11 16:16:33 -0800 | [diff] [blame] | 46 | #ifdef CONFIG_OMAP_MUX | 
 | 47 | static struct omap_board_mux board_mux[] __initdata = { | 
 | 48 | 	{ .reg_offset = OMAP_MUX_TERMINATOR }, | 
 | 49 | }; | 
 | 50 | #else | 
 | 51 | #define board_mux	NULL | 
 | 52 | #endif | 
 | 53 |  | 
| vikram pandita | 5f35fbe | 2009-11-22 10:11:32 -0800 | [diff] [blame] | 54 | static void __init omap_zoom_init(void) | 
 | 55 | { | 
| Tony Lindgren | 662c8b5 | 2009-12-11 16:16:33 -0800 | [diff] [blame] | 56 | 	omap3_mux_init(board_mux, OMAP_PACKAGE_CBP); | 
| vikram pandita | 5f35fbe | 2009-11-22 10:11:32 -0800 | [diff] [blame] | 57 | 	zoom_peripherals_init(); | 
 | 58 | 	zoom_debugboard_init(); | 
 | 59 | } | 
 | 60 |  | 
 | 61 | MACHINE_START(OMAP_ZOOM3, "OMAP Zoom3 board") | 
 | 62 | 	.phys_io	= 0x48000000, | 
 | 63 | 	.io_pg_offst	= ((0xfa000000) >> 18) & 0xfffc, | 
 | 64 | 	.boot_params	= 0x80000100, | 
 | 65 | 	.map_io		= omap_zoom_map_io, | 
 | 66 | 	.init_irq	= omap_zoom_init_irq, | 
 | 67 | 	.init_machine	= omap_zoom_init, | 
 | 68 | 	.timer		= &omap_timer, | 
 | 69 | MACHINE_END |