mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-08 13:00:57 +01:00
[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>
This commit is contained in:
parent
3a197b2fe4
commit
8274ec0bd0
1 changed files with 2 additions and 5 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue