9 #include <linux/device.h>
18 #include <linux/i2c.h>
23 #include <asm/reboot.h>
39 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
42 .
name =
"bootloader(nor)",
55 .parts = tcm_partitions,
59 static struct resource tcm_flash_resource = {
66 .
name =
"physmap-flash",
69 .platform_data = &tcm_flash_data,
72 .resource = &tcm_flash_resource,
76 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
83 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
85 static const unsigned short bfin_mac_peripherals[] =
P_MII0;
96 .phydev_data = bfin_phydev_data,
98 .mac_peripherals = bfin_mac_peripherals,
102 .
name =
"bfin_mii_bus",
104 .platform_data = &bfin_mii_bus_data,
111 .platform_data = &bfin_mii_bus,
116 #if defined(CONFIG_MTD_M25P80) \
117 || defined(CONFIG_MTD_M25P80_MODULE)
120 .
name =
"bootloader(spi)",
125 .name =
"linux kernel(spi)",
133 .parts = bfin_spi_flash_partitions,
134 .nr_parts =
ARRAY_SIZE(bfin_spi_flash_partitions),
144 #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
150 #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE)
153 .vref_delay_usecs = 50,
156 .pressure_max = 1000,
158 .stopacq_polarity = 1,
159 .first_conversion_delay = 3,
160 .acquisition_time = 1,
162 .pen_down_acc_interval = 1,
167 #if defined(CONFIG_MTD_M25P80) \
168 || defined(CONFIG_MTD_M25P80_MODULE)
171 .modalias =
"m25p80",
172 .max_speed_hz = 25000000,
175 .platform_data = &bfin_spi_flash_data,
176 .controller_data = &spi_flash_chip_info,
181 #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
183 .modalias =
"mmc_spi",
184 .max_speed_hz = 20000000,
187 .controller_data = &mmc_spi_chip_info,
191 #if defined(CONFIG_TOUCHSCREEN_AD7877) || defined(CONFIG_TOUCHSCREEN_AD7877_MODULE)
193 .modalias =
"ad7877",
194 .platform_data = &bfin_ad7877_ts_info,
196 .max_speed_hz = 12500000,
201 #if defined(CONFIG_SND_SOC_WM8731) || defined(CONFIG_SND_SOC_WM8731_MODULE) \
202 && defined(CONFIG_SND_SOC_WM8731_SPI)
204 .modalias =
"wm8731",
205 .max_speed_hz = 3125000,
211 #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
213 .modalias =
"spidev",
214 .max_speed_hz = 3125000,
219 #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE)
221 .modalias =
"bfin-lq035q1-spi",
222 .max_speed_hz = 20000000,
231 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
239 static struct resource bfin_spi0_resource[] = {
260 .num_resources =
ARRAY_SIZE(bfin_spi0_resource),
261 .resource = bfin_spi0_resource,
263 .platform_data = &bfin_spi0_info,
274 static struct resource bfin_spi1_resource[] = {
295 .num_resources =
ARRAY_SIZE(bfin_spi1_resource),
296 .resource = bfin_spi1_resource,
298 .platform_data = &bfin_spi1_info,
303 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
304 #ifdef CONFIG_SERIAL_BFIN_UART0
305 static struct resource bfin_uart0_resources[] = {
338 static unsigned short bfin_uart0_peripherals[] = {
345 .num_resources =
ARRAY_SIZE(bfin_uart0_resources),
346 .resource = bfin_uart0_resources,
348 .platform_data = &bfin_uart0_peripherals,
352 #ifdef CONFIG_SERIAL_BFIN_UART1
353 static struct resource bfin_uart1_resources[] = {
386 static unsigned short bfin_uart1_peripherals[] = {
393 .num_resources =
ARRAY_SIZE(bfin_uart1_resources),
394 .resource = bfin_uart1_resources,
396 .platform_data = &bfin_uart1_peripherals,
402 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
403 #ifdef CONFIG_BFIN_SIR0
404 static struct resource bfin_sir0_resources[] = {
425 .num_resources =
ARRAY_SIZE(bfin_sir0_resources),
426 .resource = bfin_sir0_resources,
429 #ifdef CONFIG_BFIN_SIR1
430 static struct resource bfin_sir1_resources[] = {
451 .num_resources =
ARRAY_SIZE(bfin_sir1_resources),
452 .resource = bfin_sir1_resources,
457 #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
460 static struct resource bfin_twi0_resource[] = {
474 .
name =
"i2c-bfin-twi",
476 .num_resources =
ARRAY_SIZE(bfin_twi0_resource),
477 .resource = bfin_twi0_resource,
479 .platform_data = &bfin_twi0_pins,
485 #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE)
490 #if defined(CONFIG_INPUT_PCF8574) || defined(CONFIG_INPUT_PCF8574_MODULE)
498 #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
499 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
500 static struct resource bfin_sport0_uart_resources[] = {
518 static unsigned short bfin_sport0_peripherals[] = {
524 .
name =
"bfin-sport-uart",
526 .num_resources =
ARRAY_SIZE(bfin_sport0_uart_resources),
527 .resource = bfin_sport0_uart_resources,
529 .platform_data = &bfin_sport0_peripherals,
533 #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
534 static struct resource bfin_sport1_uart_resources[] = {
552 static unsigned short bfin_sport1_peripherals[] = {
558 .
name =
"bfin-sport-uart",
560 .num_resources =
ARRAY_SIZE(bfin_sport1_uart_resources),
561 .resource = bfin_sport1_uart_resources,
563 .platform_data = &bfin_sport1_peripherals,
569 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
570 #include <linux/input.h>
579 .
buttons = bfin_gpio_keys_table,
586 .platform_data = &bfin_gpio_keys_data,
591 #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE)
603 .platform_data = &bfin_sdh_data,
608 static const unsigned int cclk_vlev_datasheet[] =
618 .tuple_tab = cclk_vlev_datasheet,
620 .vr_settling_time = 25 ,
626 .platform_data = &bfin_dmpc_vreg_data,
634 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
638 #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
643 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
648 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
649 #ifdef CONFIG_SERIAL_BFIN_UART0
652 #ifdef CONFIG_SERIAL_BFIN_UART1
657 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
658 #ifdef CONFIG_BFIN_SIR0
661 #ifdef CONFIG_BFIN_SIR1
666 #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
667 &i2c_bfin_twi_device,
670 #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
671 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
672 &bfin_sport0_uart_device,
674 #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
675 &bfin_sport1_uart_device,
679 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
680 &bfin_device_gpiokeys,
683 #if defined(CONFIG_SDH_BFIN) || defined(CONFIG_SDH_BFIN_MODULE)
687 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
705 #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK)
706 #ifdef CONFIG_SERIAL_BFIN_UART0
709 #ifdef CONFIG_SERIAL_BFIN_UART1
714 #if defined(CONFIG_SERIAL_BFIN_SPORT_CONSOLE)
715 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
716 &bfin_sport0_uart_device,
718 #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
719 &bfin_sport1_uart_device,