git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Blackfin: convert boards to use platform data with smc91x
[safe/jmp/linux-2.6]
/
arch
/
blackfin
/
mach-bf537
/
boards
/
tcm_bf537.c
diff --git
a/arch/blackfin/mach-bf537/boards/tcm_bf537.c
b/arch/blackfin/mach-bf537/boards/tcm_bf537.c
index
53ad10f
..
97a86b4
100644
(file)
--- a/
arch/blackfin/mach-bf537/boards/tcm_bf537.c
+++ b/
arch/blackfin/mach-bf537/boards/tcm_bf537.c
@@
-86,7
+86,7
@@
static struct bfin5xx_spi_chip spi_flash_chip_info = {
};
#endif
};
#endif
-#if defined(CONFIG_
SPI_ADC_BF533) || defined(CONFIG_SPI_ADC_BF533
_MODULE)
+#if defined(CONFIG_
BFIN_SPI_ADC) || defined(CONFIG_BFIN_SPI_ADC
_MODULE)
/* SPI ADC chip */
static struct bfin5xx_spi_chip spi_adc_chip_info = {
.enable_dma = 1, /* use dma transfer with this chip*/
/* SPI ADC chip */
static struct bfin5xx_spi_chip spi_adc_chip_info = {
.enable_dma = 1, /* use dma transfer with this chip*/
@@
-129,7
+129,7
@@
static struct spi_board_info bfin_spi_board_info[] __initdata = {
},
#endif
},
#endif
-#if defined(CONFIG_
SPI_ADC_BF533) || defined(CONFIG_SPI_ADC_BF533
_MODULE)
+#if defined(CONFIG_
BFIN_SPI_ADC) || defined(CONFIG_BFIN_SPI_ADC
_MODULE)
{
.modalias = "bfin_spi_adc", /* Name of spi_driver for this device */
.max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */
{
.modalias = "bfin_spi_adc", /* Name of spi_driver for this device */
.max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */
@@
-182,6
+182,11
@@
static struct resource bfin_spi0_resource[] = {
[1] = {
.start = CH_SPI,
.end = CH_SPI,
[1] = {
.start = CH_SPI,
.end = CH_SPI,
+ .flags = IORESOURCE_DMA,
+ },
+ [2] = {
+ .start = IRQ_SPI,
+ .end = IRQ_SPI,
.flags = IORESOURCE_IRQ,
}
};
.flags = IORESOURCE_IRQ,
}
};
@@
-218,6
+223,14
@@
static struct platform_device hitachi_fb_device = {
#endif
#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
#endif
#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
+#include <linux/smc91x.h>
+
+static struct smc91x_platdata smc91x_info = {
+ .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT,
+ .leda = RPC_LED_100_10,
+ .ledb = RPC_LED_TX_RX,
+};
+
static struct resource smc91x_resources[] = {
{
.start = 0x20200300,
static struct resource smc91x_resources[] = {
{
.start = 0x20200300,
@@
-235,6
+248,9
@@
static struct platform_device smc91x_device = {
.id = 0,
.num_resources = ARRAY_SIZE(smc91x_resources),
.resource = smc91x_resources,
.id = 0,
.num_resources = ARRAY_SIZE(smc91x_resources),
.resource = smc91x_resources,
+ .dev = {
+ .platform_data = &smc91x_info,
+ },
};
#endif
};
#endif