From patchwork Fri Aug 7 11:48:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhuoyu Zhang X-Patchwork-Id: 505129 X-Patchwork-Delegate: yorksun@freescale.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id C1861140284 for ; Fri, 7 Aug 2015 22:27:15 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F08174BEA2; Fri, 7 Aug 2015 14:27:12 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RZ5tF9biItAi; Fri, 7 Aug 2015 14:27:12 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 73E784BC3D; Fri, 7 Aug 2015 14:27:12 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EB7914BC3D for ; Fri, 7 Aug 2015 14:27:08 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CfXliZkcXd6C for ; Fri, 7 Aug 2015 14:27:08 +0200 (CEST) X-Greylist: delayed 1106 seconds by postgrey-1.34 at theia; Fri, 07 Aug 2015 14:27:04 CEST X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0139.outbound.protection.outlook.com [157.56.110.139]) by theia.denx.de (Postfix) with ESMTPS id 0904F4BC30 for ; Fri, 7 Aug 2015 14:27:04 +0200 (CEST) Received: from BN3PR0301CA0032.namprd03.prod.outlook.com (10.160.180.170) by BN3PR0301MB0867.namprd03.prod.outlook.com (10.160.155.141) with Microsoft SMTP Server (TLS) id 15.1.225.19; Fri, 7 Aug 2015 11:53:56 +0000 Received: from BY2FFO11OLC003.protection.gbl (2a01:111:f400:7c0c::127) by BN3PR0301CA0032.outlook.office365.com (2a01:111:e400:4000::42) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Fri, 7 Aug 2015 11:53:55 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11OLC003.mail.protection.outlook.com (10.1.15.183) with Microsoft SMTP Server (TLS) id 15.1.243.9 via Frontend Transport; Fri, 7 Aug 2015 11:53:55 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t77BrqSw007344; Fri, 7 Aug 2015 04:53:52 -0700 From: Zhuoyu Zhang To: Date: Fri, 7 Aug 2015 19:48:44 +0800 Message-ID: <1438948124-23689-1-git-send-email-Zhuoyu.Zhang@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC003; 1:3zDZzPG7K7f75BQ087a3Ms7ie6L165E6hQTGIGkci7yvhPvCSYDiI3mkCxprIt/GU7uqUb0Atq+gbDdQwDcdHF5S56YR81oVWEEcSbkrFvSIgxr34sAM+ctxc+sn4zPQHGXbjM7ltRL6T2aXyG7/tXwlnsAp+ybZYgWDXEFcKu6ljDwnu9Tz/O+BExCR7q353zBZkqcKxrUZi5/r8iA9z/Xqx5IFhOhpSOL6k2Nrn4JKkybz1qhfYHcTKTCvEpvtvbCwUY9Yv3yA2+BLMA+YwtkTSCYclHBM+vB59fJ5yB6XlEPkqhwhAqJC8BQsSD2blWxy4glLeoOhkbdSG99Umw== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(189002)(199003)(68736005)(5003940100001)(85426001)(5001830100001)(4001450100002)(19580405001)(77096005)(6806004)(46102003)(19580395003)(575784001)(69596002)(86362001)(2371004)(50986999)(48376002)(50466002)(87936001)(5001960100002)(106466001)(50226001)(4001540100001)(5001860100001)(36756003)(64706001)(105606002)(81156007)(450100001)(107886002)(2351001)(104016003)(110136002)(77156002)(47776003)(229853001)(92566002)(189998001)(62966003)(97736004)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0301MB0867; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB0867; 2:tQgvGDLZ9nL2sLGsRRm/u4edQbw4q0X2UcJ0RWoLWnUW16mlsuPfJeonA8YGxuoap+maDb0kGEtWf5CLgw+c5NKsUrIMEGaEj605WMdHdrmOVJvXYswuhzMdTz3FPrjx86uK8MHvU4wQ8eEc3oSm2FzImP6PFrQr2XgqopJYlPQ=; 3:h/gL1F1qWcB6qrgwNDx28EwV1iOvSYjdB+fFsfwX7XZOKIlpMdAEcNEdL/2caLlpSa74ElwW5fa088scIXaUXQPiBDV1qAeaPPGs+P1qYfdisvLY+/r+gUjfT5Se2cslMu/akwEnUoucUCAgrWDyX71y0AAkz57OEBNTmDxtmVIQCG4bYYrbUwOldgXroES2SiVhhkTgLJ9RcCY1+NzvSz2qcCFBQ+m7jhRVg8J6fks=; 25:TCqRPic3X0nzqtLuRgDcgDg81FMiJwLYgGEiQl1Oq5Ay7e71OrlBVx/W2DXQdm/2slp93Gc1tH8W4bnZV4/PeXU/HUMywI+FsSzAi3zUL5HWR2D/lc7tjLPuumkyjxPi1ctEwYq3z74S/CzpREgDG3MQBCUF6GKFSsd74aMI5igoApYUl7sCw7YsO/k58JoVbntgkATa4+aZJvMErgSZ4IR0Pv5snyIb96VdWa8DLN3PHX47CDy+O7I9Z0+5Bw92CtR2ZSiyg/YisJ+r/e6s0w== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB0867; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB0867; 20:uDVFQ7eEkHqhsJqovPCM6GHsimaCd9tA+rt9tK1VWQx1s8IXEO5PgujCE/X3OzIPSlVd7GnaduWDmddcftaj6VIwrLb0Ja0Zv4gRc32hieoMOwud4gZqOg2bl2jPTt9LFVidcpwbPW2Vi1lvEo6Eg0o29E91tWOYBhOrfe9rEU+h9HGJd/qOMVku0KaKGmLEVKQm1qaVK699DGyWVCV+Fyjq0pMBUhj5DZRRGPoQDeMNct3qnaWNiDsAduZ0lfBatSMxfSKnhfRs1XFpQkgLGlHIMycLilk1fNC8ESBnnhMtpPTcAMINmMZsQHLrInILFx6NTjQ1LMxF8OjyNUvrOJu9fPJO5gpm0ibZgWfS+ZE=; 4:nvNPNpFdkQOOUF3HYFwLdvxJHpTwOfFBBw8G7D5n3t3sCy31pfKLjt2wOBPZU3AI9Em7hXl4OO6wDwaHWRcnR0agF5BXrZh4qtCbxaqvkqUJBeWws1I80bXrVflj94guhCSIy1xQdd9yJ0sWhyyU8nrAhg6ZPQSOemAJI73Q/LTYOY8aN/29KXSNKN7ZuWM1fEoliEaoI2RNtw2yOL4/MYjKRdnHY/j5bo6n3N70G+/PcVE745m3zlGb1efdEVnFhSZCfA5lDKXb4m7Q4yBj62jbLyrUMma0K0hEvgp8Q3k= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BN3PR0301MB0867; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0301MB0867; X-Forefront-PRVS: 066153096A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0301MB0867; 23:sDH84lERhslxqTUFiXeQ7tL14YHTJ9OLLv6z/Bd?= =?us-ascii?Q?9gC+OrS7slnik2RfOVCGaAkTSpjF2xhNg2kD/Tz2ockcrgil2105Hlc73evl?= =?us-ascii?Q?wDdVAJfgPBJz9iS3naQ8AIJ+zLx5lO9S9Mg1G6ivGPRoTzudpQqrmkWY4Tjq?= =?us-ascii?Q?EDswvcNWjYJvW9bX664qbwlh8nTxt0+o2IPiMSNDdJAdXSGBAwM1M0DkpUZp?= =?us-ascii?Q?9/FrI22N9QQdjsaErjUzQIkvjC9HyZxaZS8NsBW8lJKXK9yMTnGl7wNWleNP?= =?us-ascii?Q?hQP1lNlNKqWj0MGVmx4YxUom8MItdCub+3RWE4ql57pjYUgUiGsDAoGqK1Qz?= =?us-ascii?Q?jrCaUsaHYlT7dWdXYSidOEBShJWCcDdLPZ1/7Kb+m+VbZgsbQ24694Tn8t/E?= =?us-ascii?Q?NzgLxXe5/oeeLXop7snOra50Mx6nPx4uELcp1PT0SFl30ttQDgLzBQ308od7?= =?us-ascii?Q?vkX6Q25bY0Nu5evMQJLkbkXs2lYwhuU91syz8BI/3fa0km9YwElO973fJwZe?= =?us-ascii?Q?r8r/lFvj96zlKhHEekiWzFAf6ahAeCSsHVFJMufVI/y2j4eSwbRoQ/20QYpn?= =?us-ascii?Q?wBgdjRYkiE+JJLno6AAjfPc/e/PHvj82P41EwLyJVQbimzoB/kxRlAyamoCp?= =?us-ascii?Q?pq4tJas39rXAV/d/7Fjwi7B1FMZuhoFjAX6YNUBEees2bJ1YrazuCdanoLNh?= =?us-ascii?Q?opKUh4juIbnK8Tr8vItZsMWWBnSzJqIH5/dEqQ0gi2FU6xxKeIUWj1FhlJpQ?= =?us-ascii?Q?SCM4O2fG8BnC7jTwJLxYLVUXeHg1w5JQU6V8to2t5D2nBBxmWhtiHrkB7VBs?= =?us-ascii?Q?uMk0EwvYbKvhQYxL0HI1Nqasj4Zcg5ocqvVsz5Bb9DCpMt7xpyf3fShSR21j?= =?us-ascii?Q?sKjDjUURVmFkdYvmFpR5djzn6Jt1mbW+XVNRj33HPUkG0bExv7NH1B6ZMtFM?= =?us-ascii?Q?nB19TWPOCLfQPkRFISJJrtzQSyuNXam68sTbxFeifmkQf/Nady8Q3EhVYrpM?= =?us-ascii?Q?XkEgErG1459CzxdK+uX/8ciUeyV5SMR5KtR/DoJZxlaFDOdWpp3kxA+uIEuX?= =?us-ascii?Q?EPQugwM8iQnDDQbSN4NSikyYBPDDhFBwzMuOVOKwBiGYxuqpZoHohTTsCxSF?= =?us-ascii?Q?ZyQSJpRYOTP1loKgEYkCoF5y30C0p/1X7iI91CuWmf4IoewsRHJYkceCMJbo?= =?us-ascii?Q?4wABebFs9udGXsasGGKnr7p7WiY+MwIlteRVz?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB0867; 5:4cu+ClQS9+m6jUc2hHz2ODjM46zEd2yOZT4wwTtjTl9jkpVbkWt4mRFc15HhMaAxSP1YxSJ02IIsnRZaTeRaSwTWErjoDOoAIr+8ua9ljth4oGwCgRk32yHFUkFa3PUGJNGfVE//SEbooiRO93ehGA==; 24:jfUwJPY1e+9Z1e7ypc845SP1amgHHNfBdTUkg4bIIT8StYePaFvN8e/f58ych+I6EuL4z9c530ud9dOeNLsQdpDMTCY9CU6eS3xDpsLyXG8=; 20:ZKY/jFpba7w2IYwa8Q8o1WVlBmoDVWDOVYSQqfReQOaIiNbEhmwSAf7HPdFQs99VW06tRxdKD4K+Ya9szgXTCg== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2015 11:53:55.6510 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0301MB0867 Cc: u-boot@lists.denx.de, alison.wang@freescale.com Subject: [U-Boot] [PATCH] arm/ls102xa:add hwconfig setting to support disable unused devices. X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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 also enable CONFIG_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 diff --git a/arch/arm/include/asm/arch-ls102xa/ls102xa_devdis.h b/arch/arm/include/asm/arch-ls102xa/ls102xa_devdis.h new file mode 100644 index 0000000..3e9e9ea --- /dev/null +++ b/arch/arm/include/asm/arch-ls102xa/ls102xa_devdis.h @@ -0,0 +1,52 @@ +/* + * Copyright 2015 Freescale Semiconductor, Inc. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __FSL_LS102XA_DEVDIS_H_ +#define __FSL_LS102XA_DEVDIS_H_ + +#include + +const struct devdis_table devdis_tbl[] = { + { "pbl", 0x0, 0x80000000 }, /* PBL */ + { "esdhc", 0x0, 0x20000000 }, /* eSDHC */ + { "qdma", 0x0, 0x800000 }, /* qDMA */ + { "edma", 0x0, 0x400000 }, /* eDMA */ + { "usb3", 0x0, 0x84000 }, /* USB3.0 controller and PHY*/ + { "usb2", 0x0, 0x40000 }, /* USB2.0 controller */ + { "sata", 0x0, 0x8000 }, /* SATA */ + { "sec", 0x0, 0x200 }, /* SEC */ + { "dcu", 0x0, 0x2 }, /* Display controller Unit */ + { "qe", 0x0, 0x1 }, /* QUICC Engine */ + { "etsec1", 0x1, 0x80000000 }, /* eTSEC1 controller */ + { "etesc2", 0x1, 0x40000000 }, /* eTSEC2 controller */ + { "etsec3", 0x1, 0x20000000 }, /* eTSEC3 controller */ + { "pex1", 0x2, 0x80000000 }, /* PCIE controller 1 */ + { "pex2", 0x2, 0x40000000 }, /* PCIE controller 2 */ + { "duart1", 0x3, 0x20000000 }, /* DUART1 */ + { "duart2", 0x3, 0x10000000 }, /* DUART2 */ + { "qspi", 0x3, 0x8000000 }, /* QSPI */ + { "ddr", 0x4, 0x80000000 }, /* DDR */ + { "ocram1", 0x4, 0x8000000 }, /* OCRAM1 */ + { "ifc", 0x4, 0x800000 }, /* IFC */ + { "gpio", 0x4, 0x400000 }, /* GPIO */ + { "dbg", 0x4, 0x200000 }, /* DBG */ + { "can1", 0x4, 0x80000 }, /* FlexCAN1 */ + { "can2_4", 0x4, 0x40000 }, /* FlexCAN2_3_4 */ + { "ftm2_8", 0x4, 0x20000 }, /* FlexTimer2_3_4_5_6_7_8 */ + { "secmon", 0x4, 0x4000 }, /* Security Monitor */ + { "wdog1_2", 0x4, 0x400 }, /* WatchDog1_2 */ + { "i2c2_3", 0x4, 0x200 }, /* I2C2_3 */ + { "sai1_4", 0x4, 0x100 }, /* SAI1_2_3_4 */ + { "lpuart2_6", 0x4, 0x80 }, /* LPUART2_3_4_5_6 */ + { "dspi1_2", 0x4, 0x40 }, /* DSPI1_2 */ + { "asrc", 0x4, 0x20 }, /* ASRC */ + { "spdif", 0x4, 0x10 }, /* SPDIF */ + { "i2c1", 0x4, 0x4 }, /* I2C1 */ + { "lpuart1", 0x4, 0x2 }, /* LPUART1 */ + { "ftm1", 0x4, 0x1 }, /* FlexTimer1 */ +}; + +#endif diff --git a/board/freescale/ls1021aqds/ls1021aqds.c b/board/freescale/ls1021aqds/ls1021aqds.c index d6ef6ba..b7049f7 100644 --- a/board/freescale/ls1021aqds/ls1021aqds.c +++ b/board/freescale/ls1021aqds/ls1021aqds.c @@ -12,12 +12,14 @@ #include #include #include +#include #include #include #include #include #include #include +#include #include "../common/sleep.h" #include "../common/qixis.h" @@ -530,6 +532,9 @@ int misc_init_r(void) else if (hwconfig("sdhc")) config_board_mux(MUX_TYPE_SDHC); +#ifdef CONFIG_DEVICE_DISABLE + device_disable(devdis_tbl, ARRAY_SIZE(devdis_tbl)); +#endif #ifdef CONFIG_FSL_CAAM return sec_init(); #endif diff --git a/board/freescale/ls1021atwr/ls1021atwr.c b/board/freescale/ls1021atwr/ls1021atwr.c index b7458a9..ed96cae 100644 --- a/board/freescale/ls1021atwr/ls1021atwr.c +++ b/board/freescale/ls1021atwr/ls1021atwr.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -21,6 +22,7 @@ #include #include #include +#include #include #include "../common/sleep.h" #ifdef CONFIG_U_QE @@ -651,6 +653,9 @@ int board_init(void) #if defined(CONFIG_MISC_INIT_R) int misc_init_r(void) { +#ifdef CONFIG_DEVICE_DISABLE + device_disable(devdis_tbl, ARRAY_SIZE(devdis_tbl)); +#endif #ifndef CONFIG_QSPI_BOOT config_board_mux(); #endif diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile index 5218b91..8d0fc3c 100644 --- a/drivers/misc/Makefile +++ b/drivers/misc/Makefile @@ -35,3 +35,4 @@ obj-$(CONFIG_FSL_IFC) += fsl_ifc.o obj-$(CONFIG_FSL_SEC_MON) += fsl_sec_mon.o obj-$(CONFIG_PCA9551_LED) += pca9551_led.o obj-$(CONFIG_RESET) += reset-uclass.o +obj-$(CONFIG_FSL_DEVICE_DISABLE) += fsl_devdis.o diff --git a/drivers/misc/fsl_devdis.c b/drivers/misc/fsl_devdis.c new file mode 100644 index 0000000..d9c36e2 --- /dev/null +++ b/drivers/misc/fsl_devdis.c @@ -0,0 +1,29 @@ +/* + * Copyright 2015 Freescale Semiconductor, Inc. + * Author: Zhuoyu Zhang + * + * SPDX-License-Identifier: GPL-2.0+ + */ +#include +#include +#include +#include +#include +#include +#include + +void device_disable(const struct devdis_table *tbl, uint32_t num) +{ + int i; + struct ccsr_gur __iomem *gur = (void *)CONFIG_SYS_FSL_GUTS_ADDR; + + /* + * Extract hwconfig from environment and disable unused device. + */ + for (i = 0; i < ARRAY_SIZE(tbl); i++) { + if (hwconfig_sub("devdis", tbl[i].name)) + setbits_be32(&gur->devdisr + tbl[i].offset, + tbl[i].mask); + } +} + diff --git a/include/configs/ls1021aqds.h b/include/configs/ls1021aqds.h index 0871a71..f8710ed 100644 --- a/include/configs/ls1021aqds.h +++ b/include/configs/ls1021aqds.h @@ -567,7 +567,9 @@ unsigned long get_board_ddr_clk(void); #define CONFIG_TIMER_CLK_FREQ 12500000 #define CONFIG_HWCONFIG -#define HWCONFIG_BUFFER_SIZE 128 +#define HWCONFIG_BUFFER_SIZE 256 + +#define CONFIG_FSL_DEVICE_DISABLE #define CONFIG_BOOTDELAY 3 diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h index df7af3c..56e5808 100644 --- a/include/configs/ls1021atwr.h +++ b/include/configs/ls1021atwr.h @@ -415,7 +415,9 @@ #define CONFIG_TIMER_CLK_FREQ 12500000 #define CONFIG_HWCONFIG -#define HWCONFIG_BUFFER_SIZE 128 +#define HWCONFIG_BUFFER_SIZE 256 + +#define CONFIG_FSL_DEVICE_DISABLE #define CONFIG_BOOTDELAY 3 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