diff options
Diffstat (limited to 'arch/arm/mach-davinci/board-dm646x-evm.c')
-rw-r--r-- | arch/arm/mach-davinci/board-dm646x-evm.c | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/arch/arm/mach-davinci/board-dm646x-evm.c b/arch/arm/mach-davinci/board-dm646x-evm.c index 5ba3cb2daaa0..6d8889342c9f 100644 --- a/arch/arm/mach-davinci/board-dm646x-evm.c +++ b/arch/arm/mach-davinci/board-dm646x-evm.c | |||
@@ -80,17 +80,14 @@ static struct davinci_nand_pdata davinci_nand_data = { | |||
80 | .options = 0, | 80 | .options = 0, |
81 | }; | 81 | }; |
82 | 82 | ||
83 | #define DAVINCI_ASYNC_EMIF_CONTROL_BASE 0x20008000 | ||
84 | #define DAVINCI_ASYNC_EMIF_DATA_CE0_BASE 0x42000000 | ||
85 | |||
86 | static struct resource davinci_nand_resources[] = { | 83 | static struct resource davinci_nand_resources[] = { |
87 | { | 84 | { |
88 | .start = DAVINCI_ASYNC_EMIF_DATA_CE0_BASE, | 85 | .start = DM646X_ASYNC_EMIF_CS2_SPACE_BASE, |
89 | .end = DAVINCI_ASYNC_EMIF_DATA_CE0_BASE + SZ_32M - 1, | 86 | .end = DM646X_ASYNC_EMIF_CS2_SPACE_BASE + SZ_32M - 1, |
90 | .flags = IORESOURCE_MEM, | 87 | .flags = IORESOURCE_MEM, |
91 | }, { | 88 | }, { |
92 | .start = DAVINCI_ASYNC_EMIF_CONTROL_BASE, | 89 | .start = DM646X_ASYNC_EMIF_CONTROL_BASE, |
93 | .end = DAVINCI_ASYNC_EMIF_CONTROL_BASE + SZ_4K - 1, | 90 | .end = DM646X_ASYNC_EMIF_CONTROL_BASE + SZ_4K - 1, |
94 | .flags = IORESOURCE_MEM, | 91 | .flags = IORESOURCE_MEM, |
95 | }, | 92 | }, |
96 | }; | 93 | }; |
@@ -736,17 +733,12 @@ static __init void evm_init(void) | |||
736 | platform_device_register(&davinci_nand_device); | 733 | platform_device_register(&davinci_nand_device); |
737 | 734 | ||
738 | if (HAS_ATA) | 735 | if (HAS_ATA) |
739 | dm646x_init_ide(); | 736 | davinci_init_ide(); |
740 | 737 | ||
741 | soc_info->emac_pdata->phy_mask = DM646X_EVM_PHY_MASK; | 738 | soc_info->emac_pdata->phy_mask = DM646X_EVM_PHY_MASK; |
742 | soc_info->emac_pdata->mdio_max_freq = DM646X_EVM_MDIO_FREQUENCY; | 739 | soc_info->emac_pdata->mdio_max_freq = DM646X_EVM_MDIO_FREQUENCY; |
743 | } | 740 | } |
744 | 741 | ||
745 | static __init void davinci_dm646x_evm_irq_init(void) | ||
746 | { | ||
747 | davinci_irq_init(); | ||
748 | } | ||
749 | |||
750 | #define DM646X_EVM_REF_FREQ 27000000 | 742 | #define DM646X_EVM_REF_FREQ 27000000 |
751 | #define DM6467T_EVM_REF_FREQ 33000000 | 743 | #define DM6467T_EVM_REF_FREQ 33000000 |
752 | 744 | ||
@@ -763,7 +755,7 @@ MACHINE_START(DAVINCI_DM6467_EVM, "DaVinci DM646x EVM") | |||
763 | .io_pg_offst = (__IO_ADDRESS(IO_PHYS) >> 18) & 0xfffc, | 755 | .io_pg_offst = (__IO_ADDRESS(IO_PHYS) >> 18) & 0xfffc, |
764 | .boot_params = (0x80000100), | 756 | .boot_params = (0x80000100), |
765 | .map_io = davinci_map_io, | 757 | .map_io = davinci_map_io, |
766 | .init_irq = davinci_dm646x_evm_irq_init, | 758 | .init_irq = davinci_irq_init, |
767 | .timer = &davinci_timer, | 759 | .timer = &davinci_timer, |
768 | .init_machine = evm_init, | 760 | .init_machine = evm_init, |
769 | MACHINE_END | 761 | MACHINE_END |
@@ -773,7 +765,7 @@ MACHINE_START(DAVINCI_DM6467TEVM, "DaVinci DM6467T EVM") | |||
773 | .io_pg_offst = (__IO_ADDRESS(IO_PHYS) >> 18) & 0xfffc, | 765 | .io_pg_offst = (__IO_ADDRESS(IO_PHYS) >> 18) & 0xfffc, |
774 | .boot_params = (0x80000100), | 766 | .boot_params = (0x80000100), |
775 | .map_io = davinci_map_io, | 767 | .map_io = davinci_map_io, |
776 | .init_irq = davinci_dm646x_evm_irq_init, | 768 | .init_irq = davinci_irq_init, |
777 | .timer = &davinci_timer, | 769 | .timer = &davinci_timer, |
778 | .init_machine = evm_init, | 770 | .init_machine = evm_init, |
779 | MACHINE_END | 771 | MACHINE_END |