]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/powerpc/cpu/mpc8xx/i2c.c
powerpc: Drop CONFIG_SYS_ALLOC_DPRAM
[people/ms/u-boot.git] / arch / powerpc / cpu / mpc8xx / i2c.c
index 3dff4ab4ac426245733072b74fd321bb5291fed4..54d5cb513022674c5f419d4ce5314cada829db23 100644 (file)
@@ -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: