diff options
author | Simon Glass <sjg@chromium.org> | 2017-01-23 20:31:23 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-01-25 22:38:42 (GMT) |
commit | 8f3086aaac00749ce22be205ec01c97597a41b36 (patch) | |
tree | 9926a2c4f00897a8245001835a65bd025234cf44 /arch/powerpc/cpu/mpc8xx/i2c.c | |
parent | cbcbf71bf238abd6daf13116b9a209c8fc98ae64 (diff) | |
download | u-boot-8f3086aaac00749ce22be205ec01c97597a41b36.tar.xz |
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 'arch/powerpc/cpu/mpc8xx/i2c.c')
-rw-r--r-- | arch/powerpc/cpu/mpc8xx/i2c.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/powerpc/cpu/mpc8xx/i2c.c b/arch/powerpc/cpu/mpc8xx/i2c.c index 3dff4ab..54d5cb5 100644 --- a/arch/powerpc/cpu/mpc8xx/i2c.c +++ b/arch/powerpc/cpu/mpc8xx/i2c.c @@ -190,17 +190,7 @@ void i2c_init(int speed, int slaveaddr) iip->iic_rpbase = 0; #endif -#ifdef CONFIG_SYS_ALLOC_DPRAM - dpaddr = iip->iic_rbase; - if (dpaddr == 0) { - /* need to allocate dual port ram */ - dpaddr = dpram_alloc_align((NUM_RX_BDS * sizeof(I2C_BD)) + - (NUM_TX_BDS * sizeof(I2C_BD)) + - MAX_TX_SPACE, 8); - } -#else dpaddr = CPM_I2C_BASE; -#endif /* * initialise data in dual port ram: |