14 #include <linux/i2c.h>
17 #include <linux/linkage.h>
19 #include <linux/types.h>
26 #include <asm/setup.h>
29 #include <mach/board.h>
31 #include <mach/portmux.h>
50 #ifdef CONFIG_BOARD_ATNGW100_MKII
62 .ncs_write_pulse = 30,
68 .ncs_read_recover = 0,
70 .ncs_write_recover = 0,
75 static struct smc_config nand_config __initdata = {
101 .parts = nand_partitions,
112 static struct eth_addr __initdata hw_addr[2];
117 .modalias =
"mtd_dataflash",
118 .max_speed_hz = 8000000,
126 #if defined(CONFIG_BOARD_ATNGW100_MKII)
137 #if defined(CONFIG_BOARD_ATNGW100_MKII)
159 sizeof(hw_addr[i].addr));
177 addr = hw_addr[pdev->
id].addr;
178 if (!is_valid_ether_addr(addr))
193 | (addr[1] << 8) | addr[0], regs + 0x98);
205 static const struct gpio_led ngw_leds[] = {
206 { .name =
"sys", .gpio =
GPIO_PIN_PA(16), .active_low = 1,
207 .default_trigger =
"heartbeat",
209 { .name =
"a", .gpio =
GPIO_PIN_PA(19), .active_low = 1, },
210 { .name =
"b", .gpio =
GPIO_PIN_PE(19), .active_low = 1, },
215 .leds = (
void *) ngw_leds,
222 .platform_data = (
void *) &ngw_led_data,
229 .sda_is_open_drain = 1,
230 .scl_is_open_drain = 1,
238 .platform_data = &i2c_gpio_data,
246 static int __init atngw100_init(
void)
254 #ifdef CONFIG_BOARD_ATNGW100_MKII
265 #ifndef CONFIG_BOARD_ATNGW100_MKII_LCD
284 #ifdef CONFIG_BOARD_ATNGW100_MKII
300 static int __init atngw100_arch_init(
void)
307 #ifdef CONFIG_BOARD_ATNGW100_MKII