17 #include <linux/types.h>
20 #include <linux/kernel.h>
22 #include <linux/errno.h>
24 #include <linux/i2c.h>
29 #include <linux/input.h>
33 #include <linux/omapfb.h>
37 #include <asm/setup.h>
47 #include <mach/flash.h>
49 #include <mach/hardware.h>
50 #include <mach/irqs.h>
57 #define OMAP1710_ETHR_START 0x04000300
61 static const unsigned int h3_keymap[] = {
103 .name =
"bootloader",
124 .name =
"filesystem",
134 .parts = nor_partitions,
138 static struct resource nor_resource = {
144 .name =
"physmap-flash",
147 .platform_data = &nor_data,
150 .resource = &nor_resource,
163 .name =
"bootloader",
180 .name =
"filesystem",
186 #define H3_NAND_RB_GPIO_PIN 10
188 static int nand_dev_ready(
struct mtd_info *mtd)
198 .partitions = nand_partitions,
203 .dev_ready = nand_dev_ready,
208 static struct resource nand_resource = {
216 .platform_data = &nand_platdata,
219 .resource = &nand_resource,
228 static struct resource smc91x_resources[] = {
243 .platform_data = &smc91x_info,
245 .num_resources =
ARRAY_SIZE(smc91x_resources),
246 .resource = smc91x_resources,
249 static void __init h3_init_smc91x(
void)
253 printk(
"Error requesting gpio 40 for smc91x irq\n");
258 #define GPTIMER_BASE 0xFFFB1400
259 #define GPTIMER_REGS(x) (0xFFFB1400 + (x * 0x800))
260 #define GPTIMER_REGS_SIZE 0x46
262 static struct resource intlat_resources[] = {
276 .name =
"omap_intlat",
278 .num_resources =
ARRAY_SIZE(intlat_resources),
279 .resource = intlat_resources,
282 static struct resource h3_kp_resources[] = {
298 .keymap_data = &h3_keymap_data,
305 .name =
"omap-keypad",
308 .platform_data = &h3_kp_data,
311 .resource = h3_kp_resources,
321 .modalias =
"tsc2101",
324 .max_speed_hz = 16000000,
329 static struct gpio_led h3_gpio_led_pins[] = {
332 .default_trigger =
"heartbeat",
337 .default_trigger =
"cpu0",
343 .leds = h3_gpio_led_pins,
351 .platform_data = &h3_gpio_led_data,
369 #ifdef CONFIG_USB_GADGET_OMAP
371 #elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
380 .ctrl_name =
"internal",
392 static void __init h3_init(
void)
404 nor_resource.
end = nor_resource.
start = omap_cs3_phys();
452 .atag_offset = 0x100,
453 .map_io = omap16xx_map_io,
457 .init_machine = h3_init,