diff options
Diffstat (limited to 'arch/arm/mach-davinci/board-da830-evm.c')
-rw-r--r-- | arch/arm/mach-davinci/board-da830-evm.c | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/arch/arm/mach-davinci/board-da830-evm.c b/arch/arm/mach-davinci/board-da830-evm.c index 7f3cdbfc0fbb..b52a3a1abd94 100644 --- a/arch/arm/mach-davinci/board-da830-evm.c +++ b/arch/arm/mach-davinci/board-da830-evm.c | |||
@@ -29,10 +29,9 @@ | |||
29 | #include <mach/nand.h> | 29 | #include <mach/nand.h> |
30 | #include <mach/da8xx.h> | 30 | #include <mach/da8xx.h> |
31 | #include <mach/usb.h> | 31 | #include <mach/usb.h> |
32 | #include <mach/aemif.h> | ||
32 | 33 | ||
33 | #define DA830_EVM_PHY_MASK 0x0 | 34 | #define DA830_EVM_PHY_ID "" |
34 | #define DA830_EVM_MDIO_FREQUENCY 2200000 /* PHY bus frequency */ | ||
35 | |||
36 | /* | 35 | /* |
37 | * USB1 VBUS is controlled by GPIO1[15], over-current is reported on GPIO2[4]. | 36 | * USB1 VBUS is controlled by GPIO1[15], over-current is reported on GPIO2[4]. |
38 | */ | 37 | */ |
@@ -360,6 +359,16 @@ static struct nand_bbt_descr da830_evm_nand_bbt_mirror_descr = { | |||
360 | .pattern = da830_evm_nand_mirror_pattern | 359 | .pattern = da830_evm_nand_mirror_pattern |
361 | }; | 360 | }; |
362 | 361 | ||
362 | static struct davinci_aemif_timing da830_evm_nandflash_timing = { | ||
363 | .wsetup = 24, | ||
364 | .wstrobe = 21, | ||
365 | .whold = 14, | ||
366 | .rsetup = 19, | ||
367 | .rstrobe = 50, | ||
368 | .rhold = 0, | ||
369 | .ta = 20, | ||
370 | }; | ||
371 | |||
363 | static struct davinci_nand_pdata da830_evm_nand_pdata = { | 372 | static struct davinci_nand_pdata da830_evm_nand_pdata = { |
364 | .parts = da830_evm_nand_partitions, | 373 | .parts = da830_evm_nand_partitions, |
365 | .nr_parts = ARRAY_SIZE(da830_evm_nand_partitions), | 374 | .nr_parts = ARRAY_SIZE(da830_evm_nand_partitions), |
@@ -368,6 +377,7 @@ static struct davinci_nand_pdata da830_evm_nand_pdata = { | |||
368 | .options = NAND_USE_FLASH_BBT, | 377 | .options = NAND_USE_FLASH_BBT, |
369 | .bbt_td = &da830_evm_nand_bbt_main_descr, | 378 | .bbt_td = &da830_evm_nand_bbt_main_descr, |
370 | .bbt_md = &da830_evm_nand_bbt_mirror_descr, | 379 | .bbt_md = &da830_evm_nand_bbt_mirror_descr, |
380 | .timing = &da830_evm_nandflash_timing, | ||
371 | }; | 381 | }; |
372 | 382 | ||
373 | static struct resource da830_evm_nand_resources[] = { | 383 | static struct resource da830_evm_nand_resources[] = { |
@@ -546,9 +556,8 @@ static __init void da830_evm_init(void) | |||
546 | 556 | ||
547 | da830_evm_usb_init(); | 557 | da830_evm_usb_init(); |
548 | 558 | ||
549 | soc_info->emac_pdata->phy_mask = DA830_EVM_PHY_MASK; | ||
550 | soc_info->emac_pdata->mdio_max_freq = DA830_EVM_MDIO_FREQUENCY; | ||
551 | soc_info->emac_pdata->rmii_en = 1; | 559 | soc_info->emac_pdata->rmii_en = 1; |
560 | soc_info->emac_pdata->phy_id = DA830_EVM_PHY_ID; | ||
552 | 561 | ||
553 | ret = davinci_cfg_reg_list(da830_cpgmac_pins); | 562 | ret = davinci_cfg_reg_list(da830_cpgmac_pins); |
554 | if (ret) | 563 | if (ret) |
@@ -586,6 +595,9 @@ static __init void da830_evm_init(void) | |||
586 | #ifdef CONFIG_SERIAL_8250_CONSOLE | 595 | #ifdef CONFIG_SERIAL_8250_CONSOLE |
587 | static int __init da830_evm_console_init(void) | 596 | static int __init da830_evm_console_init(void) |
588 | { | 597 | { |
598 | if (!machine_is_davinci_da830_evm()) | ||
599 | return 0; | ||
600 | |||
589 | return add_preferred_console("ttyS", 2, "115200"); | 601 | return add_preferred_console("ttyS", 2, "115200"); |
590 | } | 602 | } |
591 | console_initcall(da830_evm_console_init); | 603 | console_initcall(da830_evm_console_init); |
@@ -596,7 +608,7 @@ static void __init da830_evm_map_io(void) | |||
596 | da830_init(); | 608 | da830_init(); |
597 | } | 609 | } |
598 | 610 | ||
599 | MACHINE_START(DAVINCI_DA830_EVM, "DaVinci DA830/OMAP-L137 EVM") | 611 | MACHINE_START(DAVINCI_DA830_EVM, "DaVinci DA830/OMAP-L137/AM17x EVM") |
600 | .boot_params = (DA8XX_DDR_BASE + 0x100), | 612 | .boot_params = (DA8XX_DDR_BASE + 0x100), |
601 | .map_io = da830_evm_map_io, | 613 | .map_io = da830_evm_map_io, |
602 | .init_irq = cp_intc_init, | 614 | .init_irq = cp_intc_init, |