提交 a261eec0 编写于 作者: M Mike Frysinger

Blackfin: rename some Blackfin drivers

Try to keep the naming conventions consistent, so:
	SPI_ADC_BF533 -> BFIN_SPI_ADC
	TWI_LCD       -> BFIN_TWI_LCD
Signed-off-by: NMike Frysinger <vapier@gentoo.org>
上级 a17c7f6f
...@@ -166,8 +166,8 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = { ...@@ -166,8 +166,8 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = {
}; };
#endif #endif
#if defined(CONFIG_SPI_ADC_BF533) \ #if defined(CONFIG_BFIN_SPI_ADC) \
|| defined(CONFIG_SPI_ADC_BF533_MODULE) || defined(CONFIG_BFIN_SPI_ADC_MODULE)
/* SPI ADC chip */ /* SPI ADC chip */
static struct bfin5xx_spi_chip spi_adc_chip_info = { static struct bfin5xx_spi_chip spi_adc_chip_info = {
.enable_dma = 1, /* use dma transfer with this chip*/ .enable_dma = 1, /* use dma transfer with this chip*/
...@@ -253,8 +253,8 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { ...@@ -253,8 +253,8 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
}, },
#endif #endif
#if defined(CONFIG_SPI_ADC_BF533) \ #if defined(CONFIG_BFIN_SPI_ADC) \
|| defined(CONFIG_SPI_ADC_BF533_MODULE) || defined(CONFIG_BFIN_SPI_ADC_MODULE)
{ {
.modalias = "bfin_spi_adc", /* Name of spi_driver for this device */ .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */
.max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */
...@@ -518,7 +518,7 @@ static struct platform_device i2c_bfin_twi_device = { ...@@ -518,7 +518,7 @@ static struct platform_device i2c_bfin_twi_device = {
#endif #endif
static struct i2c_board_info __initdata bfin_i2c_board_info[] = { static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
#if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE) #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
{ {
I2C_BOARD_INFO("pcf8574_lcd", 0x22), I2C_BOARD_INFO("pcf8574_lcd", 0x22),
}, },
......
...@@ -463,8 +463,8 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = { ...@@ -463,8 +463,8 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = {
}; };
#endif #endif
#if defined(CONFIG_SPI_ADC_BF533) \ #if defined(CONFIG_BFIN_SPI_ADC) \
|| defined(CONFIG_SPI_ADC_BF533_MODULE) || defined(CONFIG_BFIN_SPI_ADC_MODULE)
/* SPI ADC chip */ /* SPI ADC chip */
static struct bfin5xx_spi_chip spi_adc_chip_info = { static struct bfin5xx_spi_chip spi_adc_chip_info = {
.enable_dma = 1, /* use dma transfer with this chip*/ .enable_dma = 1, /* use dma transfer with this chip*/
...@@ -554,8 +554,8 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { ...@@ -554,8 +554,8 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
}, },
#endif #endif
#if defined(CONFIG_SPI_ADC_BF533) \ #if defined(CONFIG_BFIN_SPI_ADC) \
|| defined(CONFIG_SPI_ADC_BF533_MODULE) || defined(CONFIG_BFIN_SPI_ADC_MODULE)
{ {
.modalias = "bfin_spi_adc", /* Name of spi_driver for this device */ .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */
.max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */
...@@ -789,7 +789,7 @@ static struct platform_device i2c_bfin_twi_device = { ...@@ -789,7 +789,7 @@ static struct platform_device i2c_bfin_twi_device = {
#endif #endif
static struct i2c_board_info __initdata bfin_i2c_board_info[] = { static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
#if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE) #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
{ {
I2C_BOARD_INFO("pcf8574_lcd", 0x22), I2C_BOARD_INFO("pcf8574_lcd", 0x22),
.type = "pcf8574_lcd", .type = "pcf8574_lcd",
......
...@@ -247,8 +247,8 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = { ...@@ -247,8 +247,8 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = {
}; };
#endif #endif
#if defined(CONFIG_SPI_ADC_BF533) \ #if defined(CONFIG_BFIN_SPI_ADC) \
|| defined(CONFIG_SPI_ADC_BF533_MODULE) || defined(CONFIG_BFIN_SPI_ADC_MODULE)
/* SPI ADC chip */ /* SPI ADC chip */
static struct bfin5xx_spi_chip spi_adc_chip_info = { static struct bfin5xx_spi_chip spi_adc_chip_info = {
.enable_dma = 1, /* use dma transfer with this chip*/ .enable_dma = 1, /* use dma transfer with this chip*/
...@@ -354,8 +354,8 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { ...@@ -354,8 +354,8 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
}, },
#endif #endif
#if defined(CONFIG_SPI_ADC_BF533) \ #if defined(CONFIG_BFIN_SPI_ADC) \
|| defined(CONFIG_SPI_ADC_BF533_MODULE) || defined(CONFIG_BFIN_SPI_ADC_MODULE)
{ {
.modalias = "bfin_spi_adc", /* Name of spi_driver for this device */ .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */
.max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */
...@@ -586,7 +586,7 @@ static struct platform_device i2c_bfin_twi_device = { ...@@ -586,7 +586,7 @@ static struct platform_device i2c_bfin_twi_device = {
#endif #endif
static struct i2c_board_info __initdata bfin_i2c_board_info[] = { static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
#if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE) #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
{ {
I2C_BOARD_INFO("pcf8574_lcd", 0x22), I2C_BOARD_INFO("pcf8574_lcd", 0x22),
}, },
......
...@@ -485,8 +485,8 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = { ...@@ -485,8 +485,8 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = {
}; };
#endif #endif
#if defined(CONFIG_SPI_ADC_BF533) \ #if defined(CONFIG_BFIN_SPI_ADC) \
|| defined(CONFIG_SPI_ADC_BF533_MODULE) || defined(CONFIG_BFIN_SPI_ADC_MODULE)
/* SPI ADC chip */ /* SPI ADC chip */
static struct bfin5xx_spi_chip spi_adc_chip_info = { static struct bfin5xx_spi_chip spi_adc_chip_info = {
.enable_dma = 1, /* use dma transfer with this chip*/ .enable_dma = 1, /* use dma transfer with this chip*/
...@@ -600,8 +600,8 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { ...@@ -600,8 +600,8 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
}, },
#endif #endif
#if defined(CONFIG_SPI_ADC_BF533) \ #if defined(CONFIG_BFIN_SPI_ADC) \
|| defined(CONFIG_SPI_ADC_BF533_MODULE) || defined(CONFIG_BFIN_SPI_ADC_MODULE)
{ {
.modalias = "bfin_spi_adc", /* Name of spi_driver for this device */ .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */
.max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */
...@@ -854,7 +854,7 @@ static struct platform_device i2c_bfin_twi_device = { ...@@ -854,7 +854,7 @@ static struct platform_device i2c_bfin_twi_device = {
#endif #endif
static struct i2c_board_info __initdata bfin_i2c_board_info[] = { static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
#if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE) #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
{ {
I2C_BOARD_INFO("pcf8574_lcd", 0x22), I2C_BOARD_INFO("pcf8574_lcd", 0x22),
}, },
......
...@@ -173,7 +173,7 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = { ...@@ -173,7 +173,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 */ /* SPI ADC chip */
static struct bfin5xx_spi_chip spi_adc_chip_info = { static struct bfin5xx_spi_chip spi_adc_chip_info = {
.ctl_reg = 0x1000, .ctl_reg = 0x1000,
...@@ -216,7 +216,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { ...@@ -216,7 +216,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 */ .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */
.max_speed_hz = 4, /* actual baudrate is SCLK/(2xspeed_hz) */ .max_speed_hz = 4, /* actual baudrate is SCLK/(2xspeed_hz) */
......
...@@ -82,7 +82,7 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = { ...@@ -82,7 +82,7 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = {
#endif #endif
/* SPI ADC chip */ /* SPI ADC chip */
#if defined(CONFIG_SPI_ADC_BF533) || defined(CONFIG_SPI_ADC_BF533_MODULE) #if defined(CONFIG_BFIN_SPI_ADC) || defined(CONFIG_BFIN_SPI_ADC_MODULE)
static struct bfin5xx_spi_chip spi_adc_chip_info = { static struct bfin5xx_spi_chip spi_adc_chip_info = {
.enable_dma = 1, /* use dma transfer with this chip*/ .enable_dma = 1, /* use dma transfer with this chip*/
.bits_per_word = 16, .bits_per_word = 16,
...@@ -117,7 +117,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { ...@@ -117,7 +117,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 */ .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */
.max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */
......
...@@ -118,7 +118,7 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = { ...@@ -118,7 +118,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 */ /* SPI ADC chip */
static struct bfin5xx_spi_chip spi_adc_chip_info = { static struct bfin5xx_spi_chip spi_adc_chip_info = {
.enable_dma = 1, /* use dma transfer with this chip*/ .enable_dma = 1, /* use dma transfer with this chip*/
...@@ -154,7 +154,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { ...@@ -154,7 +154,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 */ .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */
.max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */
......
...@@ -192,7 +192,7 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = { ...@@ -192,7 +192,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 */ /* SPI ADC chip */
static struct bfin5xx_spi_chip spi_adc_chip_info = { static struct bfin5xx_spi_chip spi_adc_chip_info = {
.enable_dma = 1, /* use dma transfer with this chip*/ .enable_dma = 1, /* use dma transfer with this chip*/
...@@ -237,7 +237,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { ...@@ -237,7 +237,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 */ .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */
.max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */
...@@ -448,7 +448,7 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = { ...@@ -448,7 +448,7 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
.irq = 39, .irq = 39,
}, },
#endif #endif
#if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE) #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
{ {
I2C_BOARD_INFO("pcf8574_lcd", 0x22), I2C_BOARD_INFO("pcf8574_lcd", 0x22),
}, },
......
...@@ -86,7 +86,7 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = { ...@@ -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 */ /* SPI ADC chip */
static struct bfin5xx_spi_chip spi_adc_chip_info = { static struct bfin5xx_spi_chip spi_adc_chip_info = {
.enable_dma = 1, /* use dma transfer with this chip*/ .enable_dma = 1, /* use dma transfer with this chip*/
...@@ -129,7 +129,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { ...@@ -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 */ .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */
.max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */
......
...@@ -265,8 +265,8 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = { ...@@ -265,8 +265,8 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = {
}; };
#endif #endif
#if defined(CONFIG_SPI_ADC_BF533) \ #if defined(CONFIG_BFIN_SPI_ADC) \
|| defined(CONFIG_SPI_ADC_BF533_MODULE) || defined(CONFIG_BFIN_SPI_ADC_MODULE)
/* SPI ADC chip */ /* SPI ADC chip */
static struct bfin5xx_spi_chip spi_adc_chip_info = { static struct bfin5xx_spi_chip spi_adc_chip_info = {
.enable_dma = 1, /* use dma transfer with this chip*/ .enable_dma = 1, /* use dma transfer with this chip*/
...@@ -333,8 +333,8 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { ...@@ -333,8 +333,8 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
}, },
#endif #endif
#if defined(CONFIG_SPI_ADC_BF533) \ #if defined(CONFIG_BFIN_SPI_ADC) \
|| defined(CONFIG_SPI_ADC_BF533_MODULE) || defined(CONFIG_BFIN_SPI_ADC_MODULE)
{ {
.modalias = "bfin_spi_adc", /* Name of spi_driver for this device */ .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */
.max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */
......
...@@ -508,8 +508,8 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = { ...@@ -508,8 +508,8 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = {
}; };
#endif #endif
#if defined(CONFIG_SPI_ADC_BF533) \ #if defined(CONFIG_BFIN_SPI_ADC) \
|| defined(CONFIG_SPI_ADC_BF533_MODULE) || defined(CONFIG_BFIN_SPI_ADC_MODULE)
/* SPI ADC chip */ /* SPI ADC chip */
static struct bfin5xx_spi_chip spi_adc_chip_info = { static struct bfin5xx_spi_chip spi_adc_chip_info = {
.enable_dma = 1, /* use dma transfer with this chip*/ .enable_dma = 1, /* use dma transfer with this chip*/
...@@ -695,8 +695,8 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { ...@@ -695,8 +695,8 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
.mode = SPI_MODE_3, .mode = SPI_MODE_3,
}, },
#endif #endif
#if defined(CONFIG_SPI_ADC_BF533) \ #if defined(CONFIG_BFIN_SPI_ADC) \
|| defined(CONFIG_SPI_ADC_BF533_MODULE) || defined(CONFIG_BFIN_SPI_ADC_MODULE)
{ {
.modalias = "bfin_spi_adc", /* Name of spi_driver for this device */ .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */
.max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */
...@@ -1280,7 +1280,7 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = { ...@@ -1280,7 +1280,7 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
.irq = IRQ_PF5, .irq = IRQ_PF5,
}, },
#endif #endif
#if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE) #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
{ {
I2C_BOARD_INFO("pcf8574_lcd", 0x22), I2C_BOARD_INFO("pcf8574_lcd", 0x22),
}, },
......
...@@ -86,7 +86,7 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = { ...@@ -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 */ /* SPI ADC chip */
static struct bfin5xx_spi_chip spi_adc_chip_info = { static struct bfin5xx_spi_chip spi_adc_chip_info = {
.enable_dma = 1, /* use dma transfer with this chip*/ .enable_dma = 1, /* use dma transfer with this chip*/
...@@ -129,7 +129,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { ...@@ -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 */ .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */
.max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */
......
...@@ -786,7 +786,7 @@ static struct i2c_board_info __initdata bfin_i2c_board_info0[] = { ...@@ -786,7 +786,7 @@ static struct i2c_board_info __initdata bfin_i2c_board_info0[] = {
#if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */ #if !defined(CONFIG_BF542) /* The BF542 only has 1 TWI */
static struct i2c_board_info __initdata bfin_i2c_board_info1[] = { static struct i2c_board_info __initdata bfin_i2c_board_info1[] = {
#if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE) #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE)
{ {
I2C_BOARD_INFO("pcf8574_lcd", 0x22), I2C_BOARD_INFO("pcf8574_lcd", 0x22),
}, },
......
...@@ -83,7 +83,7 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = { ...@@ -83,7 +83,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 */ /* SPI ADC chip */
static struct bfin5xx_spi_chip spi_adc_chip_info = { static struct bfin5xx_spi_chip spi_adc_chip_info = {
.enable_dma = 1, /* use dma transfer with this chip*/ .enable_dma = 1, /* use dma transfer with this chip*/
...@@ -126,7 +126,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { ...@@ -126,7 +126,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 */ .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */
.max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册