13 #include <linux/kernel.h>
16 #include <linux/pci.h>
21 #include <linux/i2c.h>
38 #define RD88F5182_NOR_BOOT_BASE 0xf4000000
39 #define RD88F5182_NOR_BOOT_SIZE SZ_512K
45 #define RD88F5182_NOR_BASE 0xfc000000
46 #define RD88F5182_NOR_SIZE SZ_16M
52 #define RD88F5182_PCI_SLOT0_OFFS 7
53 #define RD88F5182_PCI_SLOT0_IRQ_A_PIN 7
54 #define RD88F5182_PCI_SLOT0_IRQ_B_PIN 6
64 static struct resource rd88f5182_nor_flash_resource = {
71 .name =
"physmap-flash",
74 .platform_data = &rd88f5182_nor_flash_data,
77 .resource = &rd88f5182_nor_flash_resource,
84 #define RD88F5182_GPIO_LED 0
86 static struct gpio_led rd88f5182_gpio_led_pins[] = {
88 .name =
"rd88f5182:cpu",
89 .default_trigger =
"cpu0",
95 .leds = rd88f5182_gpio_led_pins,
96 .num_leds =
ARRAY_SIZE(rd88f5182_gpio_led_pins),
103 .platform_data = &rd88f5182_gpio_led_data,
124 "set_irq_type pin %d\n", pin);
128 printk(
KERN_ERR "rd88f5182_pci_preinit failed to request gpio %d\n", pin);
137 "set_irq_type pin %d\n", pin);
141 printk(
KERN_ERR "rd88f5182_pci_preinit failed to gpio_request %d\n", pin);
176 .map_irq = rd88f5182_pci_map_irq,
179 static int __init rd88f5182_pci_init(
void)
181 if (machine_is_rd88f5182())
214 static unsigned int rd88f5182_mpp_modes[] __initdata = {
238 static void __init rd88f5182_init(
void)
277 MACHINE_START(RD88F5182,
"Marvell Orion-NAS Reference Design")
279 .atag_offset = 0x100,
280 .init_machine = rd88f5182_init,