summaryrefslogtreecommitdiff
path: root/post
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-01-23 13:31:23 -0700
committerTom Rini <trini@konsulko.com>2017-01-25 17:38:42 -0500
commit8f3086aaac00749ce22be205ec01c97597a41b36 (patch)
tree9926a2c4f00897a8245001835a65bd025234cf44 /post
parentcbcbf71bf238abd6daf13116b9a209c8fc98ae64 (diff)
powerpc: Drop CONFIG_SYS_ALLOC_DPRAM
This is not defined anywhere in U-Boot. Drop this dead code. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'post')
-rw-r--r--post/cpu/mpc8xx/ether.c5
-rw-r--r--post/cpu/mpc8xx/uart.c13
2 files changed, 0 insertions, 18 deletions
diff --git a/post/cpu/mpc8xx/ether.c b/post/cpu/mpc8xx/ether.c
index 1b75eb6fb8..47f6f32246 100644
--- a/post/cpu/mpc8xx/ether.c
+++ b/post/cpu/mpc8xx/ether.c
@@ -119,12 +119,7 @@ static void scc_init (int scc_index)
rxIdx = 0;
txIdx = 0;
-#ifdef CONFIG_SYS_ALLOC_DPRAM
- rtx = (RTXBD *) (immr->im_cpm.cp_dpmem +
- dpram_alloc_align (sizeof (RTXBD), 8));
-#else
rtx = (RTXBD *) (immr->im_cpm.cp_dpmem + CPM_SCC_BASE);
-#endif
#if 0
diff --git a/post/cpu/mpc8xx/uart.c b/post/cpu/mpc8xx/uart.c
index e54a4cacfa..64ca7e4b98 100644
--- a/post/cpu/mpc8xx/uart.c
+++ b/post/cpu/mpc8xx/uart.c
@@ -103,12 +103,7 @@ static void smc_init (int smc_index)
/* Set the physical address of the host memory buffers in
* the buffer descriptors.
*/
-
-#ifdef CONFIG_SYS_ALLOC_DPRAM
- dpaddr = dpram_alloc_align (sizeof (cbd_t) * 2 + 2, 8);
-#else
dpaddr = CPM_POST_BASE;
-#endif
/* Allocate space for two buffer descriptors in the DP ram.
* For now, this address seems OK, but it may have to
@@ -276,15 +271,7 @@ static void scc_init (int scc_index)
*/
sp->scc_gsmrl &= ~(SCC_GSMRL_ENR | SCC_GSMRL_ENT);
-
- /* Allocate space for two buffer descriptors in the DP ram.
- */
-
-#ifdef CONFIG_SYS_ALLOC_DPRAM
- dpaddr = dpram_alloc_align (sizeof (cbd_t) * 2 + 2, 8);
-#else
dpaddr = CPM_POST_BASE;
-#endif
/* Enable SDMA.
*/