Merge tag 'locks-v3.16-2' of git://git.samba.org/jlayton/linux
[linux/fpc-iii.git] / arch / arm / mach-ep93xx / simone.c
blob36f22c1a31fe596a71c596aa21d4e589435f15ba
1 /*
2 * arch/arm/mach-ep93xx/simone.c
3 * Simplemachines Sim.One support.
5 * Copyright (C) 2010 Ryan Mallon
7 * Based on the 2.6.24.7 support:
8 * Copyright (C) 2009 Simplemachines
9 * MMC support by Peter Ivanov <ivanovp@gmail.com>, 2007
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or (at
14 * your option) any later version.
18 #include <linux/kernel.h>
19 #include <linux/init.h>
20 #include <linux/platform_device.h>
21 #include <linux/i2c.h>
22 #include <linux/i2c-gpio.h>
24 #include <mach/hardware.h>
25 #include <linux/platform_data/video-ep93xx.h>
26 #include <mach/gpio-ep93xx.h>
28 #include <asm/mach-types.h>
29 #include <asm/mach/arch.h>
31 #include "soc.h"
33 static struct ep93xx_eth_data __initdata simone_eth_data = {
34 .phy_id = 1,
37 static struct ep93xxfb_mach_info __initdata simone_fb_info = {
38 .num_modes = EP93XXFB_USE_MODEDB,
39 .bpp = 16,
40 .flags = EP93XXFB_USE_SDCSN0 | EP93XXFB_PCLK_FALLING,
43 static struct i2c_gpio_platform_data __initdata simone_i2c_gpio_data = {
44 .sda_pin = EP93XX_GPIO_LINE_EEDAT,
45 .sda_is_open_drain = 0,
46 .scl_pin = EP93XX_GPIO_LINE_EECLK,
47 .scl_is_open_drain = 0,
48 .udelay = 0,
49 .timeout = 0,
52 static struct i2c_board_info __initdata simone_i2c_board_info[] = {
54 I2C_BOARD_INFO("ds1337", 0x68),
58 static struct platform_device simone_audio_device = {
59 .name = "simone-audio",
60 .id = -1,
63 static void __init simone_register_audio(void)
65 ep93xx_register_ac97();
66 platform_device_register(&simone_audio_device);
69 static void __init simone_init_machine(void)
71 ep93xx_init_devices();
72 ep93xx_register_flash(2, EP93XX_CS6_PHYS_BASE, SZ_8M);
73 ep93xx_register_eth(&simone_eth_data, 1);
74 ep93xx_register_fb(&simone_fb_info);
75 ep93xx_register_i2c(&simone_i2c_gpio_data, simone_i2c_board_info,
76 ARRAY_SIZE(simone_i2c_board_info));
77 simone_register_audio();
80 MACHINE_START(SIM_ONE, "Simplemachines Sim.One Board")
81 /* Maintainer: Ryan Mallon */
82 .atag_offset = 0x100,
83 .map_io = ep93xx_map_io,
84 .init_irq = ep93xx_init_irq,
85 .init_time = ep93xx_timer_init,
86 .init_machine = simone_init_machine,
87 .init_late = ep93xx_init_late,
88 .restart = ep93xx_restart,
89 MACHINE_END