]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
armv8/ls2085ardb: DSPI pin muxing configure through QIXIS CPLD
authorHaikun.Wang@freescale.com <Haikun.Wang@freescale.com>
Fri, 26 Jun 2015 11:58:24 +0000 (19:58 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:34:25 +0000 (13:34 +0200)
commitc9d42dc1f18e164d209d74b9439c825bbd4d2edf
tree3ab0a0e48b021b09c2a09f1cb6371aa601b88384
parentf9687a4ad75c9501c7c379056eb69391b609114c
armv8/ls2085ardb: DSPI pin muxing configure through QIXIS CPLD

DSPI has pin muxing with SDHC and other IPs, this patch check the
value of RCW SPI_PCS_BASE and SPI_BASE_BASE fields, it also check
the "hwconfig" variable. If those pins are configured to DSPI and
"hwconfig" enable DSPI, set the BRDCFG5 of QIXIS CPLD to configure
the routing to on-board SPI memory. Otherwise will configure to SDHC.
DSPI is enabled in "hwconfig" by appending "dspi", eg.
setenv hwconfig "$hwconfig;dspi"

Signed-off-by: Haikun Wang <Haikun.Wang@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
board/freescale/ls2085ardb/ls2085ardb.c