diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2007-09-24 14:43:43 -0500 |
---|---|---|
committer | Kim Phillips <kim.phillips@freescale.com> | 2007-09-24 14:43:43 -0500 |
commit | 8ffc774993725a0646aa8d1995d968c95aee9e3c (patch) | |
tree | ee69b8872cf8c295a48244280c82d98e191111ab /cpu/bf537/i2c.c | |
parent | d7fee32b7e61fe11c64e371cde79faa4768e8350 (diff) | |
parent | 66dcad3a9a53e0766d90e0084123bd8529522fb0 (diff) | |
download | u-boot-imx-8ffc774993725a0646aa8d1995d968c95aee9e3c.zip u-boot-imx-8ffc774993725a0646aa8d1995d968c95aee9e3c.tar.gz u-boot-imx-8ffc774993725a0646aa8d1995d968c95aee9e3c.tar.bz2 |
Merge branch 'master' of git://www.denx.de/git/u-boot
Diffstat (limited to 'cpu/bf537/i2c.c')
-rw-r--r-- | cpu/bf537/i2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpu/bf537/i2c.c b/cpu/bf537/i2c.c index 3b0d026..0daba63 100644 --- a/cpu/bf537/i2c.c +++ b/cpu/bf537/i2c.c @@ -22,6 +22,8 @@ #include <i2c.h> #include <asm/io.h> +DECLARE_GLOBAL_DATA_PTR; + #define bfin_read16(addr) ({ unsigned __v; \ __asm__ __volatile__ (\ "%0 = w[%1] (z);\n\t"\ @@ -68,7 +70,6 @@ #ifdef DEBUG_I2C #define PRINTD(fmt,args...) do { \ - DECLARE_GLOBAL_DATA_PTR; \ if (gd->have_console) \ printf(fmt ,##args); \ } while (0) |