diff options
Diffstat (limited to 'arch/arm/mach-davinci/board-da850-evm.c')
-rw-r--r-- | arch/arm/mach-davinci/board-da850-evm.c | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index 07de8db14581..411284d0b0fa 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c | |||
@@ -46,8 +46,20 @@ | |||
46 | 46 | ||
47 | static struct mtd_partition da850_evm_norflash_partition[] = { | 47 | static struct mtd_partition da850_evm_norflash_partition[] = { |
48 | { | 48 | { |
49 | .name = "NOR filesystem", | 49 | .name = "bootloaders + env", |
50 | .offset = 0, | 50 | .offset = 0, |
51 | .size = SZ_512K, | ||
52 | .mask_flags = MTD_WRITEABLE, | ||
53 | }, | ||
54 | { | ||
55 | .name = "kernel", | ||
56 | .offset = MTDPART_OFS_APPEND, | ||
57 | .size = SZ_2M, | ||
58 | .mask_flags = 0, | ||
59 | }, | ||
60 | { | ||
61 | .name = "filesystem", | ||
62 | .offset = MTDPART_OFS_APPEND, | ||
51 | .size = MTDPART_SIZ_FULL, | 63 | .size = MTDPART_SIZ_FULL, |
52 | .mask_flags = 0, | 64 | .mask_flags = 0, |
53 | }, | 65 | }, |
@@ -77,6 +89,18 @@ static struct platform_device da850_evm_norflash_device = { | |||
77 | .resource = da850_evm_norflash_resource, | 89 | .resource = da850_evm_norflash_resource, |
78 | }; | 90 | }; |
79 | 91 | ||
92 | static struct davinci_pm_config da850_pm_pdata = { | ||
93 | .sleepcount = 128, | ||
94 | }; | ||
95 | |||
96 | static struct platform_device da850_pm_device = { | ||
97 | .name = "pm-davinci", | ||
98 | .dev = { | ||
99 | .platform_data = &da850_pm_pdata, | ||
100 | }, | ||
101 | .id = -1, | ||
102 | }; | ||
103 | |||
80 | /* DA850/OMAP-L138 EVM includes a 512 MByte large-page NAND flash | 104 | /* DA850/OMAP-L138 EVM includes a 512 MByte large-page NAND flash |
81 | * (128K blocks). It may be used instead of the (default) SPI flash | 105 | * (128K blocks). It may be used instead of the (default) SPI flash |
82 | * to boot, using TI's tools to install the secondary boot loader | 106 | * to boot, using TI's tools to install the secondary boot loader |
@@ -119,6 +143,7 @@ static struct davinci_nand_pdata da850_evm_nandflash_data = { | |||
119 | .parts = da850_evm_nandflash_partition, | 143 | .parts = da850_evm_nandflash_partition, |
120 | .nr_parts = ARRAY_SIZE(da850_evm_nandflash_partition), | 144 | .nr_parts = ARRAY_SIZE(da850_evm_nandflash_partition), |
121 | .ecc_mode = NAND_ECC_HW, | 145 | .ecc_mode = NAND_ECC_HW, |
146 | .ecc_bits = 4, | ||
122 | .options = NAND_USE_FLASH_BBT, | 147 | .options = NAND_USE_FLASH_BBT, |
123 | }; | 148 | }; |
124 | 149 | ||
@@ -537,7 +562,7 @@ static int __init da850_evm_config_emac(void) | |||
537 | if (!machine_is_davinci_da850_evm()) | 562 | if (!machine_is_davinci_da850_evm()) |
538 | return 0; | 563 | return 0; |
539 | 564 | ||
540 | cfg_chip3_base = DA8XX_SYSCFG_VIRT(DA8XX_CFGCHIP3_REG); | 565 | cfg_chip3_base = DA8XX_SYSCFG0_VIRT(DA8XX_CFGCHIP3_REG); |
541 | 566 | ||
542 | val = __raw_readl(cfg_chip3_base); | 567 | val = __raw_readl(cfg_chip3_base); |
543 | 568 | ||
@@ -696,6 +721,11 @@ static __init void da850_evm_init(void) | |||
696 | if (ret) | 721 | if (ret) |
697 | pr_warning("da850_evm_init: cpuidle registration failed: %d\n", | 722 | pr_warning("da850_evm_init: cpuidle registration failed: %d\n", |
698 | ret); | 723 | ret); |
724 | |||
725 | ret = da850_register_pm(&da850_pm_device); | ||
726 | if (ret) | ||
727 | pr_warning("da850_evm_init: suspend registration failed: %d\n", | ||
728 | ret); | ||
699 | } | 729 | } |
700 | 730 | ||
701 | #ifdef CONFIG_SERIAL_8250_CONSOLE | 731 | #ifdef CONFIG_SERIAL_8250_CONSOLE |