diff options
author | Tony Lindgren <tony@atomide.com> | 2012-05-09 12:59:26 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-05-09 17:33:20 -0400 |
commit | 7f28427b85d1c5371f996b1390a9d6e9620b67ad (patch) | |
tree | 306fec1d466fab8d1403a39d13f532e8af7e4f60 /arch/arm/plat-omap | |
parent | 49b1a616a77d02b2b0034e0a5ad4bc2e565f2c58 (diff) |
ARM: OMAP2+: Move omap_dsp_reserve_sdram_memblock() to mach-omap2
This hardware exists only on 2430 and later omaps, so there's no
need to have it in plat-omap/devices.c.
Note that we don't have any users for exported omap_dsp_get_mempool_base(),
so we can make it static.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/devices.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/arch/arm/plat-omap/devices.c b/arch/arm/plat-omap/devices.c index 16c9ebed8b6..1151d0b11c9 100644 --- a/arch/arm/plat-omap/devices.c +++ b/arch/arm/plat-omap/devices.c | |||
@@ -109,35 +109,6 @@ static void omap_init_rng(void) | |||
109 | static inline void omap_init_rng(void) {} | 109 | static inline void omap_init_rng(void) {} |
110 | #endif | 110 | #endif |
111 | 111 | ||
112 | #if defined(CONFIG_TIDSPBRIDGE) || defined(CONFIG_TIDSPBRIDGE_MODULE) | ||
113 | |||
114 | static phys_addr_t omap_dsp_phys_mempool_base; | ||
115 | |||
116 | void __init omap_dsp_reserve_sdram_memblock(void) | ||
117 | { | ||
118 | phys_addr_t size = CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE; | ||
119 | phys_addr_t paddr; | ||
120 | |||
121 | if (!size) | ||
122 | return; | ||
123 | |||
124 | paddr = arm_memblock_steal(size, SZ_1M); | ||
125 | if (!paddr) { | ||
126 | pr_err("%s: failed to reserve %llx bytes\n", | ||
127 | __func__, (unsigned long long)size); | ||
128 | return; | ||
129 | } | ||
130 | |||
131 | omap_dsp_phys_mempool_base = paddr; | ||
132 | } | ||
133 | |||
134 | phys_addr_t omap_dsp_get_mempool_base(void) | ||
135 | { | ||
136 | return omap_dsp_phys_mempool_base; | ||
137 | } | ||
138 | EXPORT_SYMBOL(omap_dsp_get_mempool_base); | ||
139 | #endif | ||
140 | |||
141 | /* | 112 | /* |
142 | * This gets called after board-specific INIT_MACHINE, and initializes most | 113 | * This gets called after board-specific INIT_MACHINE, and initializes most |
143 | * on-chip peripherals accessible on this board (except for few like USB): | 114 | * on-chip peripherals accessible on this board (except for few like USB): |