summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2007-02-22 07:40:23 +0100
committerStefan Roese <sr@denx.de>2007-02-22 07:40:23 +0100
commit8274ec0bd01d2feb2c7f095eba78d42ea009798b (patch)
tree6606b39ff3c006988663fa99400d1addaaea5138
parent3a197b2fe49d6fa03978e60af2394efe9c70b527 (diff)
downloadu-boot-imx-8274ec0bd01d2feb2c7f095eba78d42ea009798b.zip
u-boot-imx-8274ec0bd01d2feb2c7f095eba78d42ea009798b.tar.gz
u-boot-imx-8274ec0bd01d2feb2c7f095eba78d42ea009798b.tar.bz2
[PATCH] Change systemace driver to select 8 & 16bit mode
As suggested by Grant Likely this patch enables the Xilinx SystemACE driver to select 8 or 16bit mode upon startup. Signed-off-by: Stefan Roese <sr@denx.de>
-rw-r--r--drivers/systemace.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/systemace.c b/drivers/systemace.c
index 1d1be12..634aa9b 100644
--- a/drivers/systemace.c
+++ b/drivers/systemace.c
@@ -119,13 +119,10 @@ block_dev_desc_t *systemace_get_dev(int dev)
systemace_dev.removable = 1;
systemace_dev.block_read = systemace_read;
-#if (CFG_SYSTEMACE_WIDTH == 16)
/*
- * By default the SystemACE comes up in 8-bit mode.
- * Ensure that 16-bit mode gets enabled.
+ * Ensure the correct bus mode (8/16 bits) gets enabled
*/
- ace_writew(0x0001, 0);
-#endif
+ ace_writew(CFG_SYSTEMACE_WIDTH == 8 ? 0 : 0x0001, 0);
init_part(&systemace_dev);