Skip to content
Snippets Groups Projects
Commit 8274ec0b authored by Stefan Roese's avatar Stefan Roese
Browse files

[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: default avatarStefan Roese <sr@denx.de>
parent 3a197b2f
No related branches found
No related tags found
No related merge requests found
...@@ -119,13 +119,10 @@ block_dev_desc_t *systemace_get_dev(int dev) ...@@ -119,13 +119,10 @@ block_dev_desc_t *systemace_get_dev(int dev)
systemace_dev.removable = 1; systemace_dev.removable = 1;
systemace_dev.block_read = systemace_read; systemace_dev.block_read = systemace_read;
#if (CFG_SYSTEMACE_WIDTH == 16)
/* /*
* By default the SystemACE comes up in 8-bit mode. * Ensure the correct bus mode (8/16 bits) gets enabled
* Ensure that 16-bit mode gets enabled.
*/ */
ace_writew(0x0001, 0); ace_writew(CFG_SYSTEMACE_WIDTH == 8 ? 0 : 0x0001, 0);
#endif
init_part(&systemace_dev); init_part(&systemace_dev);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment