tqma9263: update board definition for 3.x series and fix config choose

SVN-Revision: 31436
lede-17.01
Claudio Mignanti 2012-04-22 09:09:53 +00:00
parent 2852345af0
commit 6cd35fe3d3
3 changed files with 7 additions and 18 deletions

View File

@ -18,5 +18,4 @@ CONFIG_MTD_NAND_ATMEL_ECC_HW=y
CONFIG_MTD_NAND_ECC=y CONFIG_MTD_NAND_ECC=y
# CONFIG_MTD_SM_COMMON is not set # CONFIG_MTD_SM_COMMON is not set
# CONFIG_USB_FUNCTIONFS is not set # CONFIG_USB_FUNCTIONFS is not set
# CONFIG_USB_G_HID is not set CONFIG_AT91_EARLY_DBGU1=y
# CONFIG_USB_G_WEBCAM is not set

View File

@ -6,7 +6,7 @@ CONFIG_ARCH_AT91=y
# CONFIG_ARCH_AT91SAM9261 is not set # CONFIG_ARCH_AT91SAM9261 is not set
# CONFIG_ARCH_AT91SAM9263 is not set # CONFIG_ARCH_AT91SAM9263 is not set
# CONFIG_ARCH_AT91SAM9G10 is not set # CONFIG_ARCH_AT91SAM9G10 is not set
CONFIG_ARCH_AT91SAM9G20=y # CONFIG_ARCH_AT91SAM9G20 is not set
# CONFIG_ARCH_AT91SAM9G45 is not set # CONFIG_ARCH_AT91SAM9G45 is not set
# CONFIG_ARCH_AT91SAM9RL is not set # CONFIG_ARCH_AT91SAM9RL is not set
# CONFIG_ARCH_AT91X40 is not set # CONFIG_ARCH_AT91X40 is not set

View File

@ -51,7 +51,7 @@ static void __init tqma9263_map_io(void)
unsigned pins; unsigned pins;
/* Initialize processor: 18.432 MHz crystal */ /* Initialize processor: 18.432 MHz crystal */
at91sam9263_initialize(18432000); at91_initialize(18432000);
/* DGBU on ttyS0. (Rx & Tx only) */ /* DGBU on ttyS0. (Rx & Tx only) */
at91_register_uart(0, 0, 0); at91_register_uart(0, 0, 0);
@ -75,19 +75,13 @@ static void __init tqma9263_map_io(void)
} }
static void __init tqma9263_init_irq(void)
{
at91sam9263_init_interrupts(NULL);
}
/* /*
* USB Host port * USB Host port
*/ */
static struct at91_usbh_data __initdata tqma9263_usbh_data = { static struct at91_usbh_data __initdata tqma9263_usbh_data = {
.ports = 2, .ports = 2,
.vbus_pin = { AT91_PIN_PA24, AT91_PIN_PA21 }, .vbus_pin = { AT91_PIN_PA24, AT91_PIN_PA21 },
.vbus_active_high = 1, .vbus_pin_active_low = 0,
}; };
@ -113,7 +107,7 @@ static struct at91_mmc_data __initdata tqma9263_mmc_data = {
/* /*
* MACB Ethernet device * MACB Ethernet device
*/ */
static struct at91_eth_data __initdata tqma9263_macb_data = { static struct macb_platform_data __initdata tqma9263_macb_data = {
.phy_irq_pin = AT91_PIN_PE31, .phy_irq_pin = AT91_PIN_PE31,
.is_rmii = 1, .is_rmii = 1,
}; };
@ -169,7 +163,6 @@ static struct atmel_nand_data __initdata tqma9263_nand_data = {
.cle = 22, .cle = 22,
.rdy_pin = AT91_PIN_PD14, .rdy_pin = AT91_PIN_PD14,
.enable_pin = AT91_PIN_PD15, .enable_pin = AT91_PIN_PD15,
.partition_info = nand_partitions,
}; };
static struct sam9_smc_config __initdata tqma9263_nand_smc_config = { static struct sam9_smc_config __initdata tqma9263_nand_smc_config = {
@ -193,7 +186,7 @@ static struct sam9_smc_config __initdata tqma9263_nand_smc_config = {
static void __init tqma9263_add_device_nand(void) static void __init tqma9263_add_device_nand(void)
{ {
/* configure chip-select 3 (NAND) */ /* configure chip-select 3 (NAND) */
sam9_smc_configure(3, &tqma9263_nand_smc_config); sam9_smc_configure(0, 3, &tqma9263_nand_smc_config);
at91_add_device_nand(&tqma9263_nand_data); at91_add_device_nand(&tqma9263_nand_data);
} }
@ -219,11 +212,8 @@ static void __init tqma9263_board_init(void)
MACHINE_START(TQMA9263, "TQ Components TQMa9263") MACHINE_START(TQMA9263, "TQ Components TQMa9263")
/* Maintainer: Michael Heimpold */ /* Maintainer: Michael Heimpold */
.phys_io = AT91_BASE_SYS,
.io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc,
.boot_params = AT91_SDRAM_BASE + 0x100,
.timer = &at91sam926x_timer, .timer = &at91sam926x_timer,
.map_io = tqma9263_map_io, .map_io = tqma9263_map_io,
.init_irq = tqma9263_init_irq, .init_irq = at91_init_irq_default,
.init_machine = tqma9263_board_init, .init_machine = tqma9263_board_init,
MACHINE_END MACHINE_END