23 #include <linux/types.h>
45 #include <mach/hardware.h>
46 #include <mach/common.h>
61 static struct resource smsc91x_resources[] = {
85 .num_resources =
ARRAY_SIZE(smsc91x_resources),
86 .resource = smsc91x_resources,
88 .platform_data = &smsc911x_config,
97 static struct resource nor_flash_resource = {
104 .name =
"physmap-flash",
107 .platform_data = &nor_flash_data,
109 .resource = &nor_flash_resource,
115 #define USB_PAD_CFG (PAD_CTL_DRV_MAX | PAD_CTL_SRE_FAST | PAD_CTL_HYS_CMOS | \
116 PAD_CTL_ODE_CMOS | PAD_CTL_100K_PU)
197 static void __init lilly1131_usb_init(
void)
209 static int spi_internal_chipselect[] = {
216 .chipselect = spi_internal_chipselect,
217 .num_chipselect =
ARRAY_SIZE(spi_internal_chipselect),
222 .num_chipselect =
ARRAY_SIZE(spi_internal_chipselect),
230 .modalias =
"mc13783",
231 .max_speed_hz = 1000000,
234 .platform_data = &mc13783_pdata,
240 &physmap_flash_device,
243 static int mx31lilly_baseboard;
244 core_param(mx31lilly_baseboard, mx31lilly_baseboard,
int, 0444);
251 static void __init mx31lilly_board_init(
void)
255 switch (mx31lilly_baseboard) {
263 mx31lilly_baseboard);
292 smsc91x_resources[1].
start =
294 smsc91x_resources[1].
end =
299 lilly1131_usb_init();
302 static void __init mx31lilly_timer_init(
void)
307 static struct sys_timer mx31lilly_timer = {
308 .init = mx31lilly_timer_init,
312 .atag_offset = 0x100,
317 .timer = &mx31lilly_timer,
318 .init_machine = mx31lilly_board_init,