]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
[PATCH] Change systemace driver to select 8 & 16bit mode
authorStefan Roese <sr@denx.de>
Thu, 22 Feb 2007 06:40:23 +0000 (07:40 +0100)
committerStefan Roese <sr@denx.de>
Thu, 22 Feb 2007 06:40:23 +0000 (07:40 +0100)
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>
drivers/systemace.c

index 1d1be12520295f0094594eab200935e25e0a9524..634aa9ba7d1fc1d1c3d81f4034cbf3b870288ec7 100644 (file)
@@ -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);