diff options
author | Luo Ji <ji.luo@nxp.com> | 2018-09-11 16:59:46 +0800 |
---|---|---|
committer | Luo Ji <ji.luo@nxp.com> | 2018-09-12 14:55:20 +0800 |
commit | abe6d873d1f540b4b1e598d8079d3426c1feabd0 (patch) | |
tree | d34e290975acf85e404ad54d8efd983337ec1458 | |
parent | 13fccde4c694453a3a038c4fb5fdb38cb7327747 (diff) |
MA-12664 Refine dts file for android auto
Remove some unnecessary nodes based on default dts file to reduce
u-boot boot time, add node '/config/load-environment' and set its
value as '0' to tell u-boot not to load environment variables from
eMMC.
This commit can save about 220ms on imx8qxp and about 270ms on imx8qm..
Test: Boots ok on both imx8qm/imx8qxp.
Change-Id: If2010e0a537a6ae322f51c771d2eee723a089e50
Signed-off-by: Luo Ji <ji.luo@nxp.com>
-rw-r--r-- | arch/arm/dts/fsl-imx8qm-mek-auto.dts | 71 | ||||
-rw-r--r-- | arch/arm/dts/fsl-imx8qxp-mek-auto.dts | 71 | ||||
-rw-r--r-- | configs/imx8qm_mek_androidauto_defconfig | 2 | ||||
-rw-r--r-- | configs/imx8qxp_mek_androidauto_defconfig | 2 |
4 files changed, 144 insertions, 2 deletions
diff --git a/arch/arm/dts/fsl-imx8qm-mek-auto.dts b/arch/arm/dts/fsl-imx8qm-mek-auto.dts new file mode 100644 index 0000000000..e2ee4a91d7 --- /dev/null +++ b/arch/arm/dts/fsl-imx8qm-mek-auto.dts @@ -0,0 +1,71 @@ +/* + * Copyright 2017 NXP + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; + +#include "fsl-imx8qm-mek.dts" + +/ { + config { + load-environment = <0>; + }; +}; + +&gpio2 { + status = "disabled"; +}; + +&gpio4 { + status = "disabled"; +}; + +&gpio5 { + status = "disabled"; +}; + +&usdhc2 { + status = "disabled"; +}; + +&usbotg1 { + status = "disabled"; +}; + +&usb2 { + status = "disabled"; +}; + +&fec1 { + status = "disabled"; +}; + +&fec2 { + status = "disabled"; +}; + +&flexspi0 { + status = "disabled"; +}; + +&i2c1_lvds0 { + status = "disabled"; +}; + +&i2c1_lvds1 { + status = "disabled"; +}; + +&lpspi0 { + status = "disabled"; +}; diff --git a/arch/arm/dts/fsl-imx8qxp-mek-auto.dts b/arch/arm/dts/fsl-imx8qxp-mek-auto.dts new file mode 100644 index 0000000000..ab90312e5a --- /dev/null +++ b/arch/arm/dts/fsl-imx8qxp-mek-auto.dts @@ -0,0 +1,71 @@ +/* + * Copyright 2018 NXP + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; + +#include "fsl-imx8qxp-mek.dts" + +/ { + config { + load-environment = <0>; + }; +}; + +&gpio0 { + status = "disabled"; +}; + +&gpio1 { + status = "disabled"; +}; + +&gpio3 { + status = "disabled"; +}; + +&gpio4 { + status = "disabled"; +}; + +&fec1 { + status = "disabled"; +}; + +&fec2 { + status = "disabled"; +}; + +&flexspi0 { + status = "disabled"; +}; + +&i2c0_mipi_lvds0 { + status = "disabled"; +}; + +&i2c0_mipi_lvds1 { + status = "disabled"; +}; + +&usdhc2 { + status = "disabled"; +}; + +&usbotg1 { + status = "disabled"; +}; + +&usb2 { + status = "disabled"; +}; diff --git a/configs/imx8qm_mek_androidauto_defconfig b/configs/imx8qm_mek_androidauto_defconfig index 1b0393dac0..3f5b74765d 100644 --- a/configs/imx8qm_mek_androidauto_defconfig +++ b/configs/imx8qm_mek_androidauto_defconfig @@ -1,6 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_IMX8=y -CONFIG_DEFAULT_DEVICE_TREE="fsl-imx8qm-mek" +CONFIG_DEFAULT_DEVICE_TREE="fsl-imx8qm-mek-auto" CONFIG_SYS_EXTRA_OPTIONS="ANDROID_AUTO_SUPPORT" CONFIG_TARGET_IMX8QM_MEK=y CONFIG_SYS_TEXT_BASE=0x80020000 diff --git a/configs/imx8qxp_mek_androidauto_defconfig b/configs/imx8qxp_mek_androidauto_defconfig index 59ca37880b..79922a03a6 100644 --- a/configs/imx8qxp_mek_androidauto_defconfig +++ b/configs/imx8qxp_mek_androidauto_defconfig @@ -1,6 +1,6 @@ CONFIG_ARM=y CONFIG_ARCH_IMX8=y -CONFIG_DEFAULT_DEVICE_TREE="fsl-imx8qxp-mek" +CONFIG_DEFAULT_DEVICE_TREE="fsl-imx8qxp-mek-auto" CONFIG_SYS_EXTRA_OPTIONS="ANDROID_AUTO_SUPPORT" CONFIG_TARGET_IMX8QXP_MEK=y CONFIG_SYS_TEXT_BASE=0x80020000 |