summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Kilb <J.Kilb@phytec.de>2011-09-09 14:10:56 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-09-12 12:31:20 +0200
commit3c68ddb583b4651d14758841f23d4cdcf4873285 (patch)
tree1697ffdc46e372693683aff607262f141ade867a
parente8d4f5a39372dcbe5be773799f7229024c918c40 (diff)
downloadbarebox-3c68ddb583b4651d14758841f23d4cdcf4873285.tar.gz
barebox-3c68ddb583b4651d14758841f23d4cdcf4873285.tar.xz
Corrected ns16550 access at all omap based boards.
Commit c71a77ab8 (ns16550: switch to resource) has introduced generic read/write access to 16550 register and a 'shift' parameter to allign register index to physicall registers. The correct 'shift' value was missing in all omap based boards. Corrected this to 2 which has fixed the problem. Tested on a PCM-049 phyCORE-OMAP4 board. Signed-off-by: Juergen Kilb <J.Kilb@phytec.de> Tested-by: Jan Weitzel <J.Weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/boards/omap/board-beagle.c1
-rw-r--r--arch/arm/boards/omap/board-omap3evm.c1
-rw-r--r--arch/arm/boards/omap/board-sdp343x.c1
-rw-r--r--arch/arm/boards/panda/board.c1
-rw-r--r--arch/arm/boards/pcm049/board.c1
5 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/boards/omap/board-beagle.c b/arch/arm/boards/omap/board-beagle.c
index 49af40cf7..4e7f179a6 100644
--- a/arch/arm/boards/omap/board-beagle.c
+++ b/arch/arm/boards/omap/board-beagle.c
@@ -237,6 +237,7 @@ void board_init(void)
static struct NS16550_plat serial_plat = {
.clock = 48000000, /* 48MHz (APLL96/2) */
+ .shift = 2,
};
/**
diff --git a/arch/arm/boards/omap/board-omap3evm.c b/arch/arm/boards/omap/board-omap3evm.c
index a2532d5c0..71d6ca9e4 100644
--- a/arch/arm/boards/omap/board-omap3evm.c
+++ b/arch/arm/boards/omap/board-omap3evm.c
@@ -213,6 +213,7 @@ void board_init(void)
static struct NS16550_plat serial_plat = {
.clock = 48000000, /* 48MHz (APLL96/2) */
+ .shift = 2,
};
/**
diff --git a/arch/arm/boards/omap/board-sdp343x.c b/arch/arm/boards/omap/board-sdp343x.c
index 82fc16df6..83efe6223 100644
--- a/arch/arm/boards/omap/board-sdp343x.c
+++ b/arch/arm/boards/omap/board-sdp343x.c
@@ -605,6 +605,7 @@ static void mux_config(void)
static struct NS16550_plat serial_plat = {
.clock = 48000000, /* 48MHz (APLL96/2) */
+ .shift = 2,
};
/**
diff --git a/arch/arm/boards/panda/board.c b/arch/arm/boards/panda/board.c
index 1303c4723..33ec144db 100644
--- a/arch/arm/boards/panda/board.c
+++ b/arch/arm/boards/panda/board.c
@@ -32,6 +32,7 @@ static int board_revision;
static struct NS16550_plat serial_plat = {
.clock = 48000000, /* 48MHz (APLL96/2) */
+ .shift = 2,
};
static int panda_console_init(void)
diff --git a/arch/arm/boards/pcm049/board.c b/arch/arm/boards/pcm049/board.c
index 502e121b4..3d0277988 100644
--- a/arch/arm/boards/pcm049/board.c
+++ b/arch/arm/boards/pcm049/board.c
@@ -43,6 +43,7 @@
static struct NS16550_plat serial_plat = {
.clock = 48000000, /* 48MHz (APLL96/2) */
+ .shift = 2,
};
static int pcm049_console_init(void)