diff options
author | Jason Jin <Jason.jin@freescale.com> | 2007-10-29 19:26:21 +0800 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2007-11-17 00:57:51 +0100 |
commit | db74b3c1c9481a6bffbf8cd445e5bcbf6908e836 (patch) | |
tree | 5406edd66d9277294c88a52c3cd731ca92890ca6 /board/freescale | |
parent | ee1f5e3bfe2e52e1d8795ccce0acd7927536f6f5 (diff) | |
download | u-boot-imx-db74b3c1c9481a6bffbf8cd445e5bcbf6908e836.zip u-boot-imx-db74b3c1c9481a6bffbf8cd445e5bcbf6908e836.tar.gz u-boot-imx-db74b3c1c9481a6bffbf8cd445e5bcbf6908e836.tar.bz2 |
Unify pixis_reset altbank across board families
Basically, refactor the CFG_PIXIS_VBOOT_MASK values
into the separate board config files.
Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/common/pixis.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/board/freescale/common/pixis.c b/board/freescale/common/pixis.c index fd99a93..45dcf4d 100644 --- a/board/freescale/common/pixis.c +++ b/board/freescale/common/pixis.c @@ -207,13 +207,16 @@ void read_from_px_regs_altbank(int set) out8(PIXIS_BASE + PIXIS_VCFGEN1, tmp); } +#ifndef CFG_PIXIS_VBOOT_MASK +#define CFG_PIXIS_VBOOT_MASK 0x40 +#endif void set_altbank(void) { u8 tmp; tmp = in8(PIXIS_BASE + PIXIS_VBOOT); - tmp ^= 0x40; + tmp ^= CFG_PIXIS_VBOOT_MASK; out8(PIXIS_BASE + PIXIS_VBOOT, tmp); } |