summaryrefslogtreecommitdiff
path: root/cpu/bf537
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2007-10-14 14:31:47 +0200
committerMichal Simek <monstr@monstr.eu>2007-10-14 14:31:47 +0200
commit95df6f4ebaaa3972e312be1acf7650a18b84bf3d (patch)
treeee69b8872cf8c295a48244280c82d98e191111ab /cpu/bf537
parentb49c90df6e7cfcfb8b862b8bbf8448dff5eed9a5 (diff)
parentb90c045f035c3cc9b5d2edaed6048dfb74e40763 (diff)
downloadu-boot-imx-95df6f4ebaaa3972e312be1acf7650a18b84bf3d.zip
u-boot-imx-95df6f4ebaaa3972e312be1acf7650a18b84bf3d.tar.gz
u-boot-imx-95df6f4ebaaa3972e312be1acf7650a18b84bf3d.tar.bz2
Merge ../master/
Diffstat (limited to 'cpu/bf537')
-rw-r--r--cpu/bf537/i2c.c3
-rw-r--r--cpu/bf537/serial.c3
2 files changed, 4 insertions, 2 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)
diff --git a/cpu/bf537/serial.c b/cpu/bf537/serial.c
index e04d08a..f7a2483 100644
--- a/cpu/bf537/serial.c
+++ b/cpu/bf537/serial.c
@@ -52,6 +52,8 @@
#include <asm/io.h>
#include "serial.h"
+DECLARE_GLOBAL_DATA_PTR;
+
unsigned long pll_div_fact;
void calc_baud(void)
@@ -74,7 +76,6 @@ void calc_baud(void)
void serial_setbrg(void)
{
int i;
- DECLARE_GLOBAL_DATA_PTR;
calc_baud();