common.c (d9214556b11a8d18ff588e60824c12041d30f791) | common.c (fdc76bf9b62446c9d4b00e0d355c3212b4f1b13b) |
---|---|
1/* 2 * arch/arm/mach-orion5x/common.c 3 * 4 * Core functions for Marvell Orion 5x SoCs 5 * 6 * Maintainer: Tzachi Perelstein <tzachi@marvell.com> 7 * 8 * This file is licensed under the terms of the GNU General Public --- 5 unchanged lines hidden (view full) --- 14#include <linux/init.h> 15#include <linux/platform_device.h> 16#include <linux/serial_8250.h> 17#include <linux/mbus.h> 18#include <linux/mv643xx_eth.h> 19#include <linux/mv643xx_i2c.h> 20#include <linux/ata_platform.h> 21#include <linux/spi/orion_spi.h> | 1/* 2 * arch/arm/mach-orion5x/common.c 3 * 4 * Core functions for Marvell Orion 5x SoCs 5 * 6 * Maintainer: Tzachi Perelstein <tzachi@marvell.com> 7 * 8 * This file is licensed under the terms of the GNU General Public --- 5 unchanged lines hidden (view full) --- 14#include <linux/init.h> 15#include <linux/platform_device.h> 16#include <linux/serial_8250.h> 17#include <linux/mbus.h> 18#include <linux/mv643xx_eth.h> 19#include <linux/mv643xx_i2c.h> 20#include <linux/ata_platform.h> 21#include <linux/spi/orion_spi.h> |
22#include <net/dsa.h> |
|
22#include <asm/page.h> 23#include <asm/setup.h> 24#include <asm/timex.h> 25#include <asm/mach/arch.h> 26#include <asm/mach/map.h> 27#include <asm/mach/time.h> 28#include <mach/hardware.h> 29#include <mach/orion5x.h> --- 163 unchanged lines hidden (view full) --- 193 orion5x_eth.dev.platform_data = eth_data; 194 195 platform_device_register(&orion5x_eth_shared); 196 platform_device_register(&orion5x_eth); 197} 198 199 200/***************************************************************************** | 23#include <asm/page.h> 24#include <asm/setup.h> 25#include <asm/timex.h> 26#include <asm/mach/arch.h> 27#include <asm/mach/map.h> 28#include <asm/mach/time.h> 29#include <mach/hardware.h> 30#include <mach/orion5x.h> --- 163 unchanged lines hidden (view full) --- 194 orion5x_eth.dev.platform_data = eth_data; 195 196 platform_device_register(&orion5x_eth_shared); 197 platform_device_register(&orion5x_eth); 198} 199 200 201/***************************************************************************** |
202 * Ethernet switch 203 ****************************************************************************/ 204static struct resource orion5x_switch_resources[] = { 205 { 206 .start = 0, 207 .end = 0, 208 .flags = IORESOURCE_IRQ, 209 }, 210}; 211 212static struct platform_device orion5x_switch_device = { 213 .name = "dsa", 214 .id = 0, 215 .num_resources = 0, 216 .resource = orion5x_switch_resources, 217}; 218 219void __init orion5x_eth_switch_init(struct dsa_platform_data *d, int irq) 220{ 221 if (irq != NO_IRQ) { 222 orion5x_switch_resources[0].start = irq; 223 orion5x_switch_resources[0].end = irq; 224 orion5x_switch_device.num_resources = 1; 225 } 226 227 d->mii_bus = &orion5x_eth_shared.dev; 228 d->netdev = &orion5x_eth.dev; 229 orion5x_switch_device.dev.platform_data = d; 230 231 platform_device_register(&orion5x_switch_device); 232} 233 234 235/***************************************************************************** |
|
201 * I2C 202 ****************************************************************************/ 203static struct mv64xxx_i2c_pdata orion5x_i2c_pdata = { 204 .freq_m = 8, /* assumes 166 MHz TCLK */ 205 .freq_n = 3, 206 .timeout = 1000, /* Default timeout of 1 second */ 207}; 208 --- 61 unchanged lines hidden (view full) --- 270 platform_device_register(&orion5x_sata); 271} 272 273 274/***************************************************************************** 275 * SPI 276 ****************************************************************************/ 277static struct orion_spi_info orion5x_spi_plat_data = { | 236 * I2C 237 ****************************************************************************/ 238static struct mv64xxx_i2c_pdata orion5x_i2c_pdata = { 239 .freq_m = 8, /* assumes 166 MHz TCLK */ 240 .freq_n = 3, 241 .timeout = 1000, /* Default timeout of 1 second */ 242}; 243 --- 61 unchanged lines hidden (view full) --- 305 platform_device_register(&orion5x_sata); 306} 307 308 309/***************************************************************************** 310 * SPI 311 ****************************************************************************/ 312static struct orion_spi_info orion5x_spi_plat_data = { |
278 .tclk = 0, | 313 .tclk = 0, 314 .enable_clock_fix = 1, |
279}; 280 281static struct resource orion5x_spi_resources[] = { 282 { 283 .name = "spi base", 284 .start = SPI_PHYS_BASE, 285 .end = SPI_PHYS_BASE + 0x1f, 286 .flags = IORESOURCE_MEM, --- 322 unchanged lines hidden --- | 315}; 316 317static struct resource orion5x_spi_resources[] = { 318 { 319 .name = "spi base", 320 .start = SPI_PHYS_BASE, 321 .end = SPI_PHYS_BASE + 0x1f, 322 .flags = IORESOURCE_MEM, --- 322 unchanged lines hidden --- |