usb-a9263: add spi dataflash support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
44a293471a
commit
f2f75de27d
|
@ -39,6 +39,7 @@
|
|||
#include <mach/at91_rstc.h>
|
||||
#include <gpio_keys.h>
|
||||
#include <readkey.h>
|
||||
#include <spi/spi.h>
|
||||
|
||||
static void usb_a9260_set_board_type(void)
|
||||
{
|
||||
|
@ -148,6 +149,25 @@ static void usb_a9260_phy_reset(void)
|
|||
AT91_RSTC_URSTEN);
|
||||
}
|
||||
|
||||
static const struct spi_board_info usb_a9263_spi_devices[] = {
|
||||
{
|
||||
.name = "mtd_dataflash",
|
||||
.chip_select = 0,
|
||||
.max_speed_hz = 15 * 1000 * 1000,
|
||||
.bus_num = 0,
|
||||
}
|
||||
};
|
||||
|
||||
static void usb_a9260_add_spi(void)
|
||||
{
|
||||
if (!machine_is_usb_a9263())
|
||||
return;
|
||||
|
||||
spi_register_board_info(usb_a9263_spi_devices,
|
||||
ARRAY_SIZE(usb_a9263_spi_devices));
|
||||
at91_add_device_spi(0, NULL);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_MCI_ATMEL)
|
||||
static struct atmel_mci_platform_data __initdata usb_a9260_mci_data = {
|
||||
.bus_width = 4,
|
||||
|
@ -314,6 +334,7 @@ static int usb_a9260_devices_init(void)
|
|||
usb_a9260_phy_reset();
|
||||
at91_add_device_eth(0, &macb_pdata);
|
||||
usb_a9260_add_device_mci();
|
||||
usb_a9260_add_spi();
|
||||
at91_add_device_usbh_ohci(&ek_usbh_data);
|
||||
ek_add_device_udc();
|
||||
ek_add_led();
|
||||
|
|
|
@ -64,9 +64,10 @@ CONFIG_FS_TFTP=y
|
|||
CONFIG_NET_NETCONSOLE=y
|
||||
CONFIG_NET_RESOLV=y
|
||||
CONFIG_DRIVER_NET_MACB=y
|
||||
# CONFIG_SPI is not set
|
||||
CONFIG_DRIVER_SPI_ATMEL=y
|
||||
CONFIG_MTD=y
|
||||
# CONFIG_MTD_OOB_DEVICE is not set
|
||||
CONFIG_MTD_DATAFLASH=y
|
||||
CONFIG_NAND=y
|
||||
# CONFIG_NAND_ECC_HW is not set
|
||||
# CONFIG_NAND_ECC_HW_SYNDROME is not set
|
||||
|
|
|
@ -63,9 +63,10 @@ CONFIG_FS_TFTP=y
|
|||
CONFIG_NET_NETCONSOLE=y
|
||||
CONFIG_NET_RESOLV=y
|
||||
CONFIG_DRIVER_NET_MACB=y
|
||||
# CONFIG_SPI is not set
|
||||
CONFIG_DRIVER_SPI_ATMEL=y
|
||||
CONFIG_MTD=y
|
||||
# CONFIG_MTD_OOB_DEVICE is not set
|
||||
CONFIG_MTD_DATAFLASH=y
|
||||
CONFIG_NAND=y
|
||||
# CONFIG_NAND_ECC_HW is not set
|
||||
# CONFIG_NAND_ECC_HW_SYNDROME is not set
|
||||
|
|
Loading…
Reference in New Issue