From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Fri, 14 Aug 2015 09:06:45 -0700 Subject: [U-Boot] [PATCH v2 1/1] arm/ls102xa:add hwconfig setting to support disable unused devices. In-Reply-To: <1439546016-6361-1-git-send-email-Zhuoyu.Zhang@freescale.com> References: <1439546016-6361-1-git-send-email-Zhuoyu.Zhang@freescale.com> Message-ID: <55CE1215.1000606@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 08/14/2015 02:53 AM, Zhuoyu Zhang wrote: > 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 > --- > arch/arm/include/asm/arch-ls102xa/ls102xa_devdis.h | 52 ++++++++++++++++++++++ > board/freescale/ls1021aqds/ls1021aqds.c | 5 +++ > board/freescale/ls1021atwr/ls1021atwr.c | 5 +++ > drivers/misc/Makefile | 1 + > drivers/misc/fsl_devdis.c | 29 ++++++++++++ > include/configs/ls1021aqds.h | 4 +- > include/configs/ls1021atwr.h | 4 +- > include/fsl_devdis.h | 18 ++++++++ > 8 files changed, 116 insertions(+), 2 deletions(-) > create mode 100644 arch/arm/include/asm/arch-ls102xa/ls102xa_devdis.h > create mode 100644 drivers/misc/fsl_devdis.c > create mode 100644 include/fsl_devdis.h > What's the change since v1? You missed change log. York