15 #include <linux/device.h>
23 #include <linux/i2c.h>
34 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
44 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
53 static struct resource smc91x_resources[] = {
55 .
name =
"smc91x-regs",
57 .end = 0x20300300 + 16,
70 .resource = smc91x_resources,
72 .platform_data = &smc91x_info,
77 #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE)
80 .
name =
"bootloader(spi)",
85 .name =
"linux kernel(spi)",
89 .name =
"file system(spi)",
97 .parts = bfin_spi_flash_partitions,
98 .nr_parts =
ARRAY_SIZE(bfin_spi_flash_partitions),
108 #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
115 #if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE)
118 .modalias =
"m25p80",
119 .max_speed_hz = 20000000,
122 .platform_data = &bfin_spi_flash_data,
123 .controller_data = &spi_flash_chip_info,
128 #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
130 .modalias =
"mmc_spi",
131 .max_speed_hz = 20000000,
134 .controller_data = &mmc_spi_chip_info,
139 #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE)
141 .modalias =
"spidev",
142 .max_speed_hz = 3125000,
149 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
151 static struct resource bfin_spi0_resource[] = {
179 .num_resources =
ARRAY_SIZE(bfin_spi0_resource),
180 .resource = bfin_spi0_resource,
182 .platform_data = &bfin_spi0_info,
187 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
188 #ifdef CONFIG_SERIAL_BFIN_UART0
189 static struct resource bfin_uart0_resources[] = {
222 static unsigned short bfin_uart0_peripherals[] = {
229 .num_resources =
ARRAY_SIZE(bfin_uart0_resources),
230 .resource = bfin_uart0_resources,
232 .platform_data = &bfin_uart0_peripherals,
238 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
239 #ifdef CONFIG_BFIN_SIR0
240 static struct resource bfin_sir0_resources[] = {
261 .num_resources =
ARRAY_SIZE(bfin_sir0_resources),
262 .resource = bfin_sir0_resources,
267 #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
268 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
269 static struct resource bfin_sport0_uart_resources[] = {
287 static unsigned short bfin_sport0_peripherals[] = {
293 .
name =
"bfin-sport-uart",
295 .num_resources =
ARRAY_SIZE(bfin_sport0_uart_resources),
296 .resource = bfin_sport0_uart_resources,
298 .platform_data = &bfin_sport0_peripherals,
302 #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
303 static struct resource bfin_sport1_uart_resources[] = {
321 static unsigned short bfin_sport1_peripherals[] = {
327 .
name =
"bfin-sport-uart",
329 .num_resources =
ARRAY_SIZE(bfin_sport1_uart_resources),
330 .resource = bfin_sport1_uart_resources,
332 .platform_data = &bfin_sport1_peripherals,
338 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
339 #include <linux/input.h>
349 .
buttons = bfin_gpio_keys_table,
356 .platform_data = &bfin_gpio_keys_data,
361 #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
367 .sda_is_open_drain = 0,
368 .scl_is_open_drain = 0,
377 .platform_data = &i2c_gpio_data,
385 static const unsigned int cclk_vlev_datasheet[] =
400 .tuple_tab = cclk_vlev_datasheet,
402 .vr_settling_time = 25 ,
408 .platform_data = &bfin_dmpc_vreg_data,
416 #if defined(CONFIG_RTC_DRV_BFIN) || defined(CONFIG_RTC_DRV_BFIN_MODULE)
420 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
425 #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE)
429 #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE)
430 #ifdef CONFIG_SERIAL_BFIN_UART0
435 #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
436 #ifdef CONFIG_BFIN_SIR0
441 #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
442 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
443 &bfin_sport0_uart_device,
445 #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
446 &bfin_sport1_uart_device,
450 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
451 &bfin_device_gpiokeys,
454 #if defined(CONFIG_I2C_GPIO) || defined(CONFIG_I2C_GPIO_MODULE)
459 static int __init blackstamp_init(
void)
472 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
492 #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK)
493 #ifdef CONFIG_SERIAL_BFIN_UART0
498 #if defined(CONFIG_SERIAL_BFIN_SPORT_CONSOLE)
499 #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
500 &bfin_sport0_uart_device,
502 #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
503 &bfin_sport1_uart_device,