summaryrefslogtreecommitdiff
path: root/include/fsl_devdis.h
diff options
context:
space:
mode:
authorZhuoyu Zhang <Zhuoyu.Zhang@freescale.com>2015-08-17 18:55:12 +0800
committerYork Sun <yorksun@freescale.com>2015-09-01 21:49:20 -0500
commit03c22449c5b7daff0a43291b34564a52660b83b8 (patch)
tree5925e5f7cbbcc63e89d40674300b635936d1b94a /include/fsl_devdis.h
parentec93af0dec4c9f17cefadd24d54edf5c5b91bc8d (diff)
downloadu-boot-imx-03c22449c5b7daff0a43291b34564a52660b83b8.zip
u-boot-imx-03c22449c5b7daff0a43291b34564a52660b83b8.tar.gz
u-boot-imx-03c22449c5b7daff0a43291b34564a52660b83b8.tar.bz2
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>
Diffstat (limited to 'include/fsl_devdis.h')
-rw-r--r--include/fsl_devdis.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/fsl_devdis.h b/include/fsl_devdis.h
new file mode 100644
index 0000000..02415fe
--- /dev/null
+++ b/include/fsl_devdis.h
@@ -0,0 +1,18 @@
+/*
+ * Copyright 2015 Freescale Semiconductor, Inc.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef __FSL_DEVDIS_H_
+#define __FSL_DEVDIS_H_
+
+struct devdis_table {
+ char name[32];
+ u32 offset;
+ u32 mask;
+};
+
+void device_disable(const struct devdis_table *tbl, uint32_t num);
+
+#endif