ls1046ardb: SPL size reduction in case of non-xip boot
PATCH v4 1/1 ls1046ardb: SPL size reduction in case of non-xip boot
Using changes in this patch we were able to reduce approx 4k size of u-boot-spl.bin image. Following is breif description of changes to reduce SPL size:
1. Changes in board/freescale/ls1046ardb/Makefile to remove compilation of eth.c and cpld.c in case of SPL build.
2. Changes in board/freescale/ls1046ardb/ls1046ardb.c to keep only ddr_init and board_early_init_f funcations in case of SPL build.
3. Changes in ls1046a_common.h & ls1046ardb.h to remove driver specific macros due to which static data was being compiled in case of SPL build.
4. Disable MMC driver from bieng compiled in case of SPL NAND build and NAND driver from bieng compiled in case of SPL MMC build.
---
Changes in v4:
Rename macros in header files.
Changes in v3:
Reorganised way to remove driver macros in ls1046a_common.h & ls1046ardb.h files for easy maintainability.
Changes in v2:
Rebased and fixed compilation warning on ls1046aqds.
board/freescale/ls1046aqds/Makefile | 2 ++ board/freescale/ls1046ardb/Makefile | 4 +++- board/freescale/ls1046ardb/ls1046ardb.c | 16 +++++++++------- include/configs/ls1046a_common.h | 23 +++++++++++++++++++++++ include/configs/ls1046ardb.h | 25 ++++++++++++++++++++++++- 5 files changed, 61 insertions(+), 9 deletions(-)
board/freescale/ls1046aqds/Makefile +2 -0
@@ -5,5 +5,7 @@ # obj-y += ddr.o +ifndef CONFIG_SPL_BUILD obj-y += eth.o +endif obj-y += ls1046aqds.o
board/freescale/ls1046ardb/Makefile +3 -1
@@ -4,7 +4,9 @@ # SPDX-License-Identifier: GPL-2.0+ # -obj-y += cpld.o obj-y += ddr.o obj-y += ls1046ardb.o +ifndef CONFIG_SPL_BUILD obj-$(CONFIG_SYS_DPAA_FMAN) += eth.o +obj-y += cpld.o +endif
board/freescale/ls1046ardb/ls1046ardb.c +9 -7
@@ -24,6 +24,14 @@DECLARE_GLOBAL_DATA_PTR ; +int board_early_init_f (void ) +{ +fsl_lsch2_early_init_f (); + +return 0 ; +} + +#ifndef CONFIG_SPL_BUILD int checkboard (void ) {static const char *freq[2 ] = {"100.00MHZ" ,"156.25MHZ" };
@@ -56,13 +64,6 @@ int checkboard(void)return 0 ; } -int board_early_init_f (void ) -{ -fsl_lsch2_early_init_f (); - -return 0 ; -} -int board_init (void ) {struct ccsr_scfg *scfg = (struct ccsr_scfg *)CONFIG_SYS_FSL_SCFG_ADDR ;
@@ -161,3 +162,4 @@ int ft_board_setup(void *blob, bd_t *bd) return 0; } +#endif
include/configs/ls1046a_common.h +23 -0
@@ -7,6 +7,17 @@#ifndef __LS1046A_COMMON_H#define __LS1046A_COMMON_H +/* SPL build */ +#ifdef CONFIG_SPL_BUILD +#define SPL_NO_QBMAN +#define SPL_NO_FMAN_UCODE +#define SPL_NO_CMD_ENV +#define SPL_NO_MISC +#endif +#if (defined(CONFIG_SPL_BUILD ) && defined(CONFIG_NAND_BOOT )) +#define SPL_NO_MMC +#endif +#define CONFIG_REMAKE_ELF #define CONFIG_FSL_LAYERSCAPE #define CONFIG_MP
@@ -109,20 +120,28 @@#define CONFIG_SYS_I2C_MXC_I2C4 /* Command line configuration */ +#ifndef SPL_NO_CMD_ENV #define CONFIG_CMD_ENV +#endif /* MMC */ +#ifndef SPL_NO_MMC #ifdef CONFIG_MMC #define CONFIG_FSL_ESDHC #define CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33 #endif +#endif +#ifndef SPL_NO_QBMAN #define CONFIG_SYS_DPAA_QBMAN /* Support Q/Bman */ +#endif /* FMan ucode */ +#ifndef SPL_NO_FMAN_UCODE #define CONFIG_SYS_DPAA_FMAN #ifdef CONFIG_SYS_DPAA_FMAN #define CONFIG_SYS_FM_MURAM_SIZE 0x60000 +#endif #ifdef CONFIG_SD_BOOT /*
@@ -156,6 +175,7 @@#define CONFIG_HWCONFIG #define HWCONFIG_BUFFER_SIZE 128 +#ifndef SPL_NO_MISC /* Initial environment variables */ #define CONFIG_EXTRA_ENV_SETTINGS \ "hwconfig=fsl_ddr:bank_intlv=auto\0" \
@@ -173,13 +193,16 @@#define CONFIG_BOOTARGS "console=ttyS0,115200 root=/dev/ram0 " \ "earlycon=uart8250,mmio,0x21c0500 " \ MTDPARTS_DEFAULT +#endif /* Monitor Command Prompt */ #define CONFIG_SYS_CBSIZE 512/* Console I/O Buffer Size */ #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ sizeof(CONFIG_SYS_PROMPT) + 16)#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE/* Boot args buffer */ #define CONFIG_SYS_LONGHELP +#ifndef SPL_NO_MISC #define CONFIG_CMDLINE_EDITING 1 +#endif #define CONFIG_AUTO_COMPLETE #define CONFIG_SYS_MAXARGS 64/* max command args */
include/configs/ls1046ardb.h +24 -1
@@ -9,6 +9,18 @@#include "ls1046a_common.h" +/* SPL build */ +#ifdef CONFIG_SPL_BUILD +#define SPL_NO_FMAN +#define SPL_NO_QSPI +#define SPL_NO_USB +#define SPL_NO_SATA +#define SPL_NO_ENV +#endif +#if (defined(CONFIG_SPL_BUILD ) && defined(CONFIG_SD_BOOT )) +#define SPL_NO_IFC +#endif +#ifdef CONFIG_SD_BOOT #define CONFIG_SYS_TEXT_BASE 0x82000000#else
@@ -51,13 +63,14 @@#endif #endif +#ifndef SPL_NO_IFC /* IFC */ #define CONFIG_FSL_IFC -/* * NAND Flash Definitions */ #define CONFIG_NAND_FSL_IFC +#endif #define CONFIG_SYS_NAND_BASE 0x7e800000#define CONFIG_SYS_NAND_BASE_PHYS CONFIG_SYS_NAND_BASE
@@ -161,7 +174,9 @@/* * Environment */ +#ifndef SPL_NO_ENV #define CONFIG_ENV_OVERWRITE +#endif #if defined(CONFIG_SD_BOOT )#define CONFIG_ENV_IS_IN_MMC
@@ -176,6 +191,7 @@#endif /* FMan */ +#ifndef SPL_NO_FMAN #ifdef CONFIG_SYS_DPAA_FMAN #define CONFIG_FMAN_ENET #define CONFIG_PHYLIB
@@ -196,16 +212,20 @@#define CONFIG_ETHPRIME "FM1 at DTSEC3"#endif +#endif /* QSPI device */ +#ifndef SPL_NO_QSPI #ifdef CONFIG_FSL_QSPI #define CONFIG_SPI_FLASH_SPANSION #define FSL_QSPI_FLASH_SIZE (1 << 26)#define FSL_QSPI_FLASH_NUM 2#define CONFIG_SPI_FLASH_BAR #endif +#endif /* USB */ +#ifndef SPL_NO_USB #define CONFIG_HAS_FSL_XHCI_USB #ifdef CONFIG_HAS_FSL_XHCI_USB #define CONFIG_USB_XHCI_HCD
@@ -216,8 +236,10 @@#define CONFIG_CMD_USB #define CONFIG_USB_STORAGE #endif +#endif /* SATA */ +#ifndef SPL_NO_SATA #define CONFIG_LIBATA #define CONFIG_SCSI_AHCI #define CONFIG_SCSI_AHCI_PLAT
@@ -238,5 +260,6 @@"15m(u-boot),48m(kernel.itb);" \"7e800000.flash:16m(nand_uboot)," \ "48m(nand_kernel),448m(nand_free)" +#endif #endif /* __LS1046ARDB_H__ */
Signature · 1 line
1.9.1
PATCH v4 1/1 ls1046ardb: SPL size reduction in case of non-xip boot
Quoted 185 lines · Sumit Garg
Using changes in this patch we were able to reduce approx 4k size of u-boot-spl.bin image. Following is breif description of changes to reduce SPL size:
1. Changes in board/freescale/ls1046ardb/Makefile to remove compilation ofeth.candcpld.cin case of SPL build.
2. Changes inboard/freescale/ls1046ardb/ls1046ardb.cto keep onlyddr_initandboard_early_init_ffuncations in case of SPL build.
3. Changes inls1046a_common.h&ls1046ardb.hto remove driver specific macros due to which static data was being compiled in case of SPL build.
4. Disable MMC driver from bieng compiled in case of SPL NAND build and NAND driver from bieng compiled in case of SPL MMC build.Signed-off-by Vinitha Pillai <[email protected]>Signed-off-by Sumit Garg <[email protected]>---
Changes in v4:
Rename macros in header files.Changes in v3:
Reorganised way to remove driver macros inls1046a_common.h&ls1046ardb.hfiles for easy maintainability.Changes in v2:
Rebased and fixed compilation warning on ls1046aqds.board/freescale/ls1046aqds/Makefile | 2 ++ board/freescale/ls1046ardb/Makefile | 4 +++- board/freescale/ls1046ardb/ls1046ardb.c | 16 +++++++++------- include/configs/ls1046a_common.h | 23 +++++++++++++++++++++++ include/configs/ls1046ardb.h | 25 ++++++++++++++++++++++++- 5 files changed, 61 insertions(+), 9 deletions(-)board/freescale/ls1046aqds/Makefile +2
-0@@ -5,5 +5,7 @@ # obj-y += ddr.o +ifndef CONFIG_SPL_BUILD obj-y += eth.o +endif obj-y += ls1046aqds.oboard/freescale/ls1046ardb/Makefile +3
-1@@ -4,7 +4,9 @@ # SPDX-License-Identifier: GPL-2.0+ # -obj-y += cpld.o obj-y += ddr.o obj-y += ls1046ardb.o +ifndef CONFIG_SPL_BUILD obj-$(CONFIG_SYS_DPAA_FMAN) += eth.o +obj-y += cpld.o +endifboard/freescale/ls1046ardb/ls1046ardb.c +9
-7@@ -24,6 +24,14 @@DECLARE_GLOBAL_DATA_PTR ; +int board_early_init_f (void ) +{ +fsl_lsch2_early_init_f (); + +return 0 ; +} + +#ifndef CONFIG_SPL_BUILD int checkboard (void ) {static const char *freq[2 ] = {"100.00MHZ" ,"156.25MHZ" };@@ -56,13 +64,6 @@ int checkboard(void)return 0 ; } -int board_early_init_f (void ) -{ -fsl_lsch2_early_init_f (); - -return 0 ; -} -int board_init (void ) {struct ccsr_scfg *scfg = (struct ccsr_scfg *)CONFIG_SYS_FSL_SCFG_ADDR ;@@ -161,3 +162,4 @@ int ft_board_setup(void *blob, bd_t *bd) return 0; } +#endif include/configs/ls1046a_common.h +23
-0@@ -7,6 +7,17 @@#ifndef __LS1046A_COMMON_H#define __LS1046A_COMMON_H +/* SPL build */ +#ifdef CONFIG_SPL_BUILD +#define SPL_NO_QBMAN +#define SPL_NO_FMAN_UCODE +#define SPL_NO_CMD_ENV +#define SPL_NO_MISC +#endif +#if (defined(CONFIG_SPL_BUILD ) && defined(CONFIG_NAND_BOOT )) +#define SPL_NO_MMC +#endif +#define CONFIG_REMAKE_ELF #define CONFIG_FSL_LAYERSCAPE #define CONFIG_MP @@ -109,20 +120,28 @@#define CONFIG_SYS_I2C_MXC_I2C4 /* Command line configuration */ +#ifndef SPL_NO_CMD_ENV #define CONFIG_CMD_ENV +#endif /* MMC */ +#ifndef SPL_NO_MMC #ifdef CONFIG_MMC #define CONFIG_FSL_ESDHC #define CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33 #endif +#endif +#ifndef SPL_NO_QBMAN #define CONFIG_SYS_DPAA_QBMAN /* Support Q/Bman */ +#endif /* FMan ucode */ +#ifndef SPL_NO_FMAN_UCODE #define CONFIG_SYS_DPAA_FMAN #ifdef CONFIG_SYS_DPAA_FMAN #define CONFIG_SYS_FM_MURAM_SIZE 0x60000 +#endif #ifdef CONFIG_SD_BOOT /* @@ -156,6 +175,7 @@#define CONFIG_HWCONFIG #define HWCONFIG_BUFFER_SIZE 128 +#ifndef SPL_NO_MISC /* Initial environment variables */ #define CONFIG_EXTRA_ENV_SETTINGS \ "hwconfig=fsl_ddr:bank_intlv=auto\0" \@@ -173,13 +193,16 @@#define CONFIG_BOOTARGS "console=ttyS0,115200 root=/dev/ram0 " \ "earlycon=uart8250,mmio,0x21c0500 " \ MTDPARTS_DEFAULT +#endif /* Monitor Command Prompt */ #define CONFIG_SYS_CBSIZE 512/* Console I/O Buffer Size */ #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ sizeof(CONFIG_SYS_PROMPT) + 16)#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE/* Boot args buffer */ #define CONFIG_SYS_LONGHELP +#ifndef SPL_NO_MISC #define CONFIG_CMDLINE_EDITING 1 +#endif #define CONFIG_AUTO_COMPLETE #define CONFIG_SYS_MAXARGS 64/* max command args */ include/configs/ls1046ardb.h +1
-0@@ -9,6 +9,18 @@#include "ls1046a_common.h" +/* SPL build */
include/configs/ls1046ardb.h line 22
Quoted 10 lines
include/configs/ls1046ardb.h +10
-0+#ifdef CONFIG_SPL_BUILD +#define SPL_NO_FMAN +#define SPL_NO_QSPI +#define SPL_NO_USB +#define SPL_NO_SATA +#define SPL_NO_ENV +#endif +#if (defined(CONFIG_SPL_BUILD ) && defined(CONFIG_SD_BOOT )) +#define SPL_NO_IFC +#endif
Are these RDB specific? Why not put this block into the common header?
York
PATCH v4 1/1 ls1046ardb: SPL size reduction in case of non-xip boot
Quoted 216 lines
-----Original Message-----
From: york sun
Sent: Wednesday, March 29, 2017 8:57 PM
To: Sumit Garg <[email protected]>; u-boot at lists.denx.de
Cc: Ruchika Gupta <[email protected]>; Prabhakar Kushwaha <[email protected]>; Mingkai Hu <[email protected]>; Vini Pillai <[email protected]>
Subject: Re: [PATCH v4] ls1046ardb: SPL size reduction in case of non-xip bootQuoted 111 lines · Sumit Garg
Using changes in this patch we were able to reduce approx 4k size of u-boot-spl.bin image. Following is breif description of changes to reduce SPL size:
1. Changes in board/freescale/ls1046ardb/Makefile to remove compilation ofeth.candcpld.cin case of SPL build.
2. Changes inboard/freescale/ls1046ardb/ls1046ardb.cto keep onlyddr_initandboard_early_init_ffuncations in case of SPL build.
3. Changes inls1046a_common.h&ls1046ardb.hto remove driver specific macros due to which static data was being compiled in case of SPL build.
4. Disable MMC driver from bieng compiled in case of SPL NAND build and NAND driver from bieng compiled in case of SPL MMC build.Signed-off-by Vinitha Pillai <[email protected]>Signed-off-by Sumit Garg <[email protected]>---
Changes in v4:
Rename macros in header files.Changes in v3:
Reorganised way to remove driver macros inls1046a_common.h&ls1046ardb.hfiles for easy maintainability.Changes in v2:
Rebased and fixed compilation warning on ls1046aqds.board/freescale/ls1046aqds/Makefile | 2 ++ board/freescale/ls1046ardb/Makefile | 4 +++- board/freescale/ls1046ardb/ls1046ardb.c | 16 +++++++++------- include/configs/ls1046a_common.h | 23 +++++++++++++++++++++++ include/configs/ls1046ardb.h | 25 ++++++++++++++++++++++++- 5 files changed, 61 insertions(+), 9 deletions(-)board/freescale/ls1046aqds/Makefile +2
-0@@ -5,5 +5,7 @@ # obj-y += ddr.o +ifndef CONFIG_SPL_BUILD obj-y += eth.o +endif obj-y += ls1046aqds.oboard/freescale/ls1046ardb/Makefile +3
-1@@ -4,7 +4,9 @@ # SPDX-License-Identifier: GPL-2.0+ # -obj-y += cpld.o obj-y += ddr.o obj-y += ls1046ardb.o +ifndef CONFIG_SPL_BUILD obj-$(CONFIG_SYS_DPAA_FMAN) += eth.o +obj-y += cpld.o +endifboard/freescale/ls1046ardb/ls1046ardb.c +9
-7@@ -24,6 +24,14 @@DECLARE_GLOBAL_DATA_PTR ; +int board_early_init_f (void ) +{ +fsl_lsch2_early_init_f (); + +return 0 ; +} + +#ifndef CONFIG_SPL_BUILD int checkboard (void ) { static const char *freq[2] = {"100.00MHZ", "156.25MHZ"}; @@ -56,13 +64,6 @@ int checkboard(void) return 0; } -int board_early_init_f (void ) -{ -fsl_lsch2_early_init_f (); - -return 0 ; -} -int board_init (void ) { struct ccsr_scfg *scfg = (struct ccsr_scfg*)CONFIG_SYS_FSL_SCFG_ADDR; @@ -161,3 +162,4 @@ int
ft_board_setup(void *blob, bd_t *bd)board/freescale/ls1046ardb/ls1046ardb.c +1
-0return 0; } +#endif include/configs/ls1046a_common.h +0
-0@@ -7,6 +7,17 @@#ifndef __LS1046A_COMMON_Hinclude/configs/ls1046a_common.h line 17
Quoted 10 lines
include/configs/ls1046a_common.h +8
-0#define __LS1046A_COMMON_H +/* SPL build */ +#ifdef CONFIG_SPL_BUILD +#define SPL_NO_QBMAN +#define SPL_NO_FMAN_UCODE +#define SPL_NO_CMD_ENV +#define SPL_NO_MISC +#endif +#if (defined(CONFIG_SPL_BUILD ) && defined(CONFIG_NAND_BOOT ))#define
Quoted 43 lines
include/configs/ls1046a_common.h +11
-0+SPL_NO_MMC #endif +#define CONFIG_REMAKE_ELF #define CONFIG_FSL_LAYERSCAPE #define CONFIG_MP @@ -109,20 +120,28 @@#define CONFIG_SYS_I2C_MXC_I2C4 /* Command line configuration */ +#ifndef SPL_NO_CMD_ENV #define CONFIG_CMD_ENV +#endif /* MMC */ +#ifndef SPL_NO_MMC #ifdef CONFIG_MMC #define CONFIG_FSL_ESDHC #define CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33 #endif +#endif +#ifndef SPL_NO_QBMAN #define CONFIG_SYS_DPAA_QBMAN /* Support Q/Bman */ +#endif /* FMan ucode */ +#ifndef SPL_NO_FMAN_UCODE #define CONFIG_SYS_DPAA_FMAN #ifdef CONFIG_SYS_DPAA_FMAN #define CONFIG_SYS_FM_MURAM_SIZE 0x60000 +#endif #ifdef CONFIG_SD_BOOT /* @@ -156,6 +175,7 @@#define CONFIG_HWCONFIG #define HWCONFIG_BUFFER_SIZE 128 +#ifndef SPL_NO_MISC /* Initial environment variables */ #define CONFIG_EXTRA_ENV_SETTINGS \ "hwconfig=fsl_ddr:bank_intlv=auto\0" \include/configs/ls1046a_common.h line 193
Quoted 1 line
include/configs/ls1046a_common.h +0
-0@@ -173,13 +193,16 @@#define CONFIG_BOOTARGS "console=ttyS0,115200root=/dev/ram0 " \
include/configs/ls1046a_common.h
Quoted 5 lines
include/configs/ls1046a_common.h +1
-0"earlycon=uart8250,mmio,0x21c0500 " \ MTDPARTS_DEFAULT +#endif /* Monitor Command Prompt */ #define CONFIG_SYS_CBSIZE 512/* Console I/O Buffer Size */
include/configs/ls1046a_common.h
Quoted 3 lines
include/configs/ls1046a_common.h +0
-0#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ sizeof(CONFIG_SYS_PROMPT) + 16)#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE/* Boot args buffer */
include/configs/ls1046a_common.h
Quoted 6 lines
include/configs/ls1046a_common.h +2
-0#define CONFIG_SYS_LONGHELP +#ifndef SPL_NO_MISC #define CONFIG_CMDLINE_EDITING 1 +#endif #define CONFIG_AUTO_COMPLETE #define CONFIG_SYS_MAXARGS 64/* max command args */
Quoted 9 lines
(quoted diff) +0
-0
b/include/configs/ls1046ardb.hindex 2141b82..c01eb1f 100644include/configs/ls1046ardb.h +0
-0@@ -9,6 +9,18 @@#include "ls1046a_common.h" include/configs/ls1046ardb.h line 21
Quoted 10 lines
include/configs/ls1046ardb.h +10
-0+/* SPL build */ +#ifdef CONFIG_SPL_BUILD +#define SPL_NO_FMAN +#define SPL_NO_QSPI +#define SPL_NO_USB +#define SPL_NO_SATA +#define SPL_NO_ENV +#endif +#if (defined(CONFIG_SPL_BUILD) && defined(CONFIG_SD_BOOT)) #define +SPL_NO_IFC #endifAre these RDB specific? Why not put this block into the common header?
Quoted 1 line
York
Yes these macros are used to mask macros in RDB header file from inclusion during SPL build. Also this block can be put in common header but I am not sure how many of above macros relevant for the QDS header file.
Sumit
PATCH v4 1/1 ls1046ardb: SPL size reduction in case of non-xip boot
On 03/29/2017 08:36 AM, Sumit Garg wrote:
<snip>
Quoted 22 lines
Quoted 22 lines
Quoted 9 lines
(quoted diff) +0
-0
b/include/configs/ls1046ardb.hindex 2141b82..c01eb1f 100644include/configs/ls1046ardb.h +0
-0@@ -9,6 +9,18 @@#include "ls1046a_common.h" include/configs/ls1046ardb.h line 21
Quoted 10 lines
include/configs/ls1046ardb.h +10
-0+/* SPL build */ +#ifdef CONFIG_SPL_BUILD +#define SPL_NO_FMAN +#define SPL_NO_QSPI +#define SPL_NO_USB +#define SPL_NO_SATA +#define SPL_NO_ENV +#endif +#if (defined(CONFIG_SPL_BUILD) && defined(CONFIG_SD_BOOT)) #define +SPL_NO_IFC #endifAre these RDB specific? Why not put this block into the common header?
Quoted 3 lines
Quoted 1 line
York
Yes these macros are used to mask macros in RDB header file from inclusion during SPL build. Also this block can be put in common header but I am not sure how many of above macros relevant for the QDS header file.
Don't both boards have FMAN, QSPI, USB, SATA, ENV?
Please be aware, I have asked Mingkai to separate DPAA_FMAN from general NET. I want to see the flexibility to use either PCIe network, and/or DPAA network separately.
York
PATCH v4 1/1 ls1046ardb: SPL size reduction in case of non-xip boot
Quoted 36 lines
-----Original Message-----
From: york sun
Sent: Wednesday, March 29, 2017 9:15 PM
To: Sumit Garg <[email protected]>; u-boot at lists.denx.de
Cc: Ruchika Gupta <[email protected]>; Prabhakar Kushwaha <[email protected]>; Mingkai Hu <[email protected]>; Vini Pillai <[email protected]>
Subject: Re: [PATCH v4] ls1046ardb: SPL size reduction in case of non-xip bootOn 03/29/2017 08:36 AM, Sumit Garg wrote:
<snip>
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
(quoted diff) +0
-0
b/include/configs/ls1046ardb.hindex 2141b82..c01eb1f 100644include/configs/ls1046ardb.h +0
-0@@ -9,6 +9,18 @@#include "ls1046a_common.h" Quoted 9 lines
Quoted 9 lines
include/configs/ls1046ardb.h line 20
Quoted 9 lines
include/configs/ls1046ardb.h +9
-0+/* SPL build */ +#ifdef CONFIG_SPL_BUILD +#define SPL_NO_FMAN +#define SPL_NO_QSPI +#define SPL_NO_USB +#define SPL_NO_SATA +#define SPL_NO_ENV +#endif +#if (defined(CONFIG_SPL_BUILD ) && defined(CONFIG_SD_BOOT ))#define
Quoted 4 lines
Quoted 4 lines
include/configs/ls1046ardb.h line 21
Quoted 1 line
include/configs/ls1046ardb.h +1
-0+SPL_NO_IFC #endifAre these RDB specific? Why not put this block into the common header?
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
York
Yes these macros are used to mask macros in RDB header file from inclusion
during SPL build. Also this block can be put in common header but I am not sure how many of above macros relevant for the QDS header file.
Don't both boards have FMAN, QSPI, USB, SATA, ENV?
I had a look at QDS header file, it does have all these macros. I will move these macros to common header file in v5.
Sumit
Quoted 6 lines
Please be aware, I have asked Mingkai to separate
DPAA_FMANfrom general NET. I want to see the flexibility to use either PCIe network, and/or DPAA network separately.York