diff options
author | Priyanka Jain <priyanka.jain@nxp.com> | 2018-01-08 12:20:42 +0530 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2018-01-15 12:44:23 -0800 |
commit | da28a03ed4a1420c5b748cfe08d991cf8da0df32 (patch) | |
tree | 7acec794e55000406c53de1a9d51b9f55b92cba1 /board | |
parent | f436fbfeb1e906603350b6e24a2b55a45842efc5 (diff) | |
download | u-boot-da28a03ed4a1420c5b748cfe08d991cf8da0df32.zip u-boot-da28a03ed4a1420c5b748cfe08d991cf8da0df32.tar.gz u-boot-da28a03ed4a1420c5b748cfe08d991cf8da0df32.tar.bz2 |
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>
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/ls2080ardb/ls2080ardb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/freescale/ls2080ardb/ls2080ardb.c index 14e16c2..d781e3e 100644 --- a/board/freescale/ls2080ardb/ls2080ardb.c +++ b/board/freescale/ls2080ardb/ls2080ardb.c @@ -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"); |