]> git.ipfire.org Git - people/ms/u-boot.git/commit
arm/ls102xa:add hwconfig setting to support disable unused devices
authorZhuoyu Zhang <Zhuoyu.Zhang@freescale.com>
Mon, 17 Aug 2015 10:55:12 +0000 (18:55 +0800)
committerYork Sun <yorksun@freescale.com>
Wed, 2 Sep 2015 02:49:20 +0000 (21:49 -0500)
commit03c22449c5b7daff0a43291b34564a52660b83b8
tree5925e5f7cbbcc63e89d40674300b635936d1b94a
parentec93af0dec4c9f17cefadd24d54edf5c5b91bc8d
arm/ls102xa:add hwconfig setting to support disable unused devices

DEVDISRn registers provides a mechanism for gating clocks of IP blocks
that are not used. Here we implement hwconfig option to allow users
to disable unused peripherals on the board.

For ex. If eSDHC/qDMA/eDMA are unused and with disabled status in dts,
User can enable CONFIG_FSL_DEVICE_DISABLE and set "devdis:esdhc,qdma,edma"
in hwconfig, thus ESDHC controller & eDMA/qDMA will be clock gated to
save more power.

Signed-off-by: Zhuoyu Zhang <Zhuoyu.Zhang@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
arch/arm/include/asm/arch-ls102xa/ls102xa_devdis.h [new file with mode: 0644]
board/freescale/ls1021aqds/ls1021aqds.c
board/freescale/ls1021atwr/ls1021atwr.c
drivers/misc/Makefile
drivers/misc/fsl_devdis.c [new file with mode: 0644]
include/configs/ls1021aqds.h
include/configs/ls1021atwr.h
include/fsl_devdis.h [new file with mode: 0644]