linkstation.c (48a7afe314bfc4d7f50e1608632f503dbba7e013) linkstation.c (09b55f76c9e41ed88f445f64f00ed39b48ed137d)
1/*
2 * Board setup routines for the Buffalo Linkstation / Kurobox Platform.
3 *
4 * Copyright (C) 2006 G. Liakhovetski (g.liakhovetski@gmx.de)
5 *
6 * Based on sandpoint.c by Mark A. Greer
7 *
8 * This file is licensed under the terms of the GNU General Public License

--- 40 unchanged lines hidden (view full) ---

49 },
50 {
51 .name = "mtd_data",
52 .offset = 0x310000,
53 .size = 0x0f0000,
54 },
55};
56
1/*
2 * Board setup routines for the Buffalo Linkstation / Kurobox Platform.
3 *
4 * Copyright (C) 2006 G. Liakhovetski (g.liakhovetski@gmx.de)
5 *
6 * Based on sandpoint.c by Mark A. Greer
7 *
8 * This file is licensed under the terms of the GNU General Public License

--- 40 unchanged lines hidden (view full) ---

49 },
50 {
51 .name = "mtd_data",
52 .offset = 0x310000,
53 .size = 0x0f0000,
54 },
55};
56
57static int __init add_bridge(struct device_node *dev)
57static int __init linkstation_add_bridge(struct device_node *dev)
58{
59 int len;
60 struct pci_controller *hose;
61 const int *bus_range;
62
63 printk("Adding PCI host bridge %s\n", dev->full_name);
64
65 bus_range = of_get_property(dev, "bus-range", &len);

--- 21 unchanged lines hidden (view full) ---

87 struct device_node *np;
88#ifdef CONFIG_MTD_PHYSMAP
89 physmap_set_partitions(linkstation_physmap_partitions,
90 ARRAY_SIZE(linkstation_physmap_partitions));
91#endif
92
93 /* Lookup PCI host bridges */
94 for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;)
58{
59 int len;
60 struct pci_controller *hose;
61 const int *bus_range;
62
63 printk("Adding PCI host bridge %s\n", dev->full_name);
64
65 bus_range = of_get_property(dev, "bus-range", &len);

--- 21 unchanged lines hidden (view full) ---

87 struct device_node *np;
88#ifdef CONFIG_MTD_PHYSMAP
89 physmap_set_partitions(linkstation_physmap_partitions,
90 ARRAY_SIZE(linkstation_physmap_partitions));
91#endif
92
93 /* Lookup PCI host bridges */
94 for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;)
95 add_bridge(np);
95 linkstation_add_bridge(np);
96
97 printk(KERN_INFO "BUFFALO Network Attached Storage Series\n");
98 printk(KERN_INFO "(C) 2002-2005 BUFFALO INC.\n");
99}
100
101/*
102 * Interrupt setup and service. Interrrupts on the linkstation come
103 * from the four PCI slots plus onboard 8241 devices: I2C, DUART.

--- 96 unchanged lines hidden ---
96
97 printk(KERN_INFO "BUFFALO Network Attached Storage Series\n");
98 printk(KERN_INFO "(C) 2002-2005 BUFFALO INC.\n");
99}
100
101/*
102 * Interrupt setup and service. Interrrupts on the linkstation come
103 * from the four PCI slots plus onboard 8241 devices: I2C, DUART.

--- 96 unchanged lines hidden ---