board/ls2081ard: Correct code to get QMAP value in checkboard
QMAP value contains information about QSPI chip-selects. These bits are used to display information of boot device in checkboard() function. QMAP value is stored in most significant 3-bits of 8-bit register brdcfg[0] in Qixis, this patch corrects code to get QMAP bits using below logic: (brdcfg[0] >> 5) & 0x7 Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
This commit is contained in:
parent
f436fbfeb1
commit
da28a03ed4
@ -74,7 +74,7 @@ int checkboard(void)
|
||||
printf("Board version: %c, ", (sw & 0xf) + 'A');
|
||||
|
||||
sw = QIXIS_READ(brdcfg[0]);
|
||||
sw = (sw & QIXIS_QMAP_MASK) >> QIXIS_QMAP_SHIFT;
|
||||
sw = (sw >> QIXIS_QMAP_SHIFT) & QIXIS_QMAP_MASK;
|
||||
switch (sw) {
|
||||
case 0:
|
||||
puts("boot from QSPI DEV#0\n");
|
||||
|
Loading…
Reference in New Issue
Block a user