projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mmc: atmel_sdhci: Enable the quirk SDHCI_QUIRK_WAIT_SEND_CMD
[platform/kernel/u-boot.git]
/
arch
/
powerpc
/
cpu
/
mpc8xx
/
i2c.c
diff --git
a/arch/powerpc/cpu/mpc8xx/i2c.c
b/arch/powerpc/cpu/mpc8xx/i2c.c
index
6146de3
..
54d5cb5
100644
(file)
--- a/
arch/powerpc/cpu/mpc8xx/i2c.c
+++ b/
arch/powerpc/cpu/mpc8xx/i2c.c
@@
-12,6
+12,7
@@
*/
#include <common.h>
*/
#include <common.h>
+#include <console.h>
#ifdef CONFIG_HARD_I2C
#ifdef CONFIG_HARD_I2C
@@
-189,17
+190,7
@@
void i2c_init(int speed, int slaveaddr)
iip->iic_rpbase = 0;
#endif
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;
dpaddr = CPM_I2C_BASE;
-#endif
/*
* initialise data in dual port ram:
/*
* initialise data in dual port ram: