mmc: atmel_sdhci: Enable the quirk SDHCI_QUIRK_WAIT_SEND_CMD
[platform/kernel/u-boot.git] / arch / powerpc / cpu / mpc8xx / i2c.c
index 6146de3..54d5cb5 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include <common.h>
+#include <console.h>
 
 #ifdef CONFIG_HARD_I2C
 
@@ -189,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: