summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYuri Tikhonov <yur@pollux.denx.de>2008-02-06 18:48:36 +0100
committerWolfgang Denk <wd@denx.de>2008-03-18 21:59:24 +0100
commit2d991958b1e420fbfe17b128bd26ade74be5efcc (patch)
tree9fb303a7b6361eac55cb68be96b284c1fc4c5d1a /include
parentff818b21b069f4bc9cb73373cc5a16014be101b7 (diff)
downloadu-boot-imx-2d991958b1e420fbfe17b128bd26ade74be5efcc.zip
u-boot-imx-2d991958b1e420fbfe17b128bd26ade74be5efcc.tar.gz
u-boot-imx-2d991958b1e420fbfe17b128bd26ade74be5efcc.tar.bz2
The patch introduces the alternative configuration of the log buffer for
the lwmon5 board: the storage for the log-buffer itself is OCM(on-chip memory), the log-buffer header is moved to six GPT registers (PPC440EPX_GPT0_COMP1, ..., PPC440EPX_GPT0_COMP5). To enable this, alternative, configuration the U-Boot board configuration file for lwmon5 includes the definitions of alternative addresses for header (CONFIG_ALT_LH_ADDR) and buffer (CONFIG_ALT_LB_ADDR). The Linux shall be configured with the CONFIG_ALT_LB_LOCATION option set, and has the BOARD_ALT_LH_ADDR and BOARD_ALT_LB_ADDR constants defined in the lwmon5 board-specific header (arch/ppc/platforms/4xx/lwmon5.h). Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/lwmon5.h2
-rw-r--r--include/ppc440.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/configs/lwmon5.h b/include/configs/lwmon5.h
index e179e4f..ced7ba6 100644
--- a/include/configs/lwmon5.h
+++ b/include/configs/lwmon5.h
@@ -244,6 +244,8 @@
#define CFG_POST_CACHE_ADDR 0x7fff0000 /* free virtual address */
#define CONFIG_LOGBUFFER
+#define CONFIG_ALT_LH_ADDR (CFG_PERIPHERAL_BASE + GPT0_COMP1)
+#define CONFIG_ALT_LB_ADDR (CFG_OCM_BASE)
#define CFG_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */
/*-----------------------------------------------------------------------
diff --git a/include/ppc440.h b/include/ppc440.h
index 6e3b68d..10517cb 100644
--- a/include/ppc440.h
+++ b/include/ppc440.h
@@ -1434,6 +1434,8 @@
#define GPT0_COMP5 0x00000094
#define GPT0_COMP4 0x00000090
#define GPT0_COMP3 0x0000008C
+#define GPT0_COMP2 0x00000088
+#define GPT0_COMP1 0x00000084
#if defined(CONFIG_440EPX) || defined(CONFIG_440GRX)
#define SDR0_USB2D0CR 0x0320