board: ls2080ardb: Add fsl_fdt_fixup_flash
PATCH 1/1 board: ls2080ardb: Add fsl_fdt_fixup_flash
IFC and QSPI are muxed on board.
Add fsl_fdt_fixup_flash()
-To disable IFC node in dts if QSPI is enabled.
-Or disable QSPI node in dts if IFC is enabled.
--- board/freescale/ls2080ardb/ls2080ardb.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)
board/freescale/ls2080ardb/ls2080ardb.c +28 -0
@@ -341,6 +341,32 @@ void board_quiesce_devices(void)#endif #ifdef CONFIG_OF_BOARD_SETUP +void fsl_fdt_fixup_flash (void *fdt) +{ +int offset; + +/* +* IFC and QSPI are muxed on board. +* So disable IFC node in dts if QSPI is enabled or +* disable QSPI node in dts in case QSPI is not enabled. +*/ +#ifdef CONFIG_FSL_QSPI + offset =fdt_path_offset (fdt,"/soc/ifc" ); + +if (offset <0 ) + offset =fdt_path_offset (fdt,"/ifc" ); +#else + offset =fdt_path_offset (fdt,"/soc/quadspi" ); + +if (offset <0 ) + offset =fdt_path_offset (fdt,"/quadspi" ); +#endif +if (offset <0 ) +return ; + +fdt_status_disabled (fdt, offset); +} +int ft_board_setup (void *blob,bd_t *bd) {u64 base[CONFIG_NR_DRAM_BANKS ];
@@ -368,6 +394,8 @@ int ft_board_setup(void *blob, bd_t *bd)fsl_fdt_fixup_dr_usb (blob, bd); +fsl_fdt_fixup_flash (blob); +#ifdef CONFIG_FSL_MC_ENET fdt_fixup_board_enet (blob);#endif
Signature · 1 line
1.9.1
PATCH 1/1 board: ls2080ardb: Add fsl_fdt_fixup_flash
Review
Quoted 5 lines · Santan Kumar
IFC and QSPI are muxed on board.
Add
fsl_fdt_fixup_flash()(quoted diff) +0
-2-To disable IFC node in dts if QSPI is enabled. -Or disable QSPI node in dts if IFC is enabled.
The pin mux is at SoC level. Can you put this fixup at SoC level?
York
PATCH 1/1 board: ls2080ardb: Add fsl_fdt_fixup_flash
Quoted 12 lines
-----Original Message-----
From: York Sun
Sent: Tuesday, August 08, 2017 3:31 AM
To: Santan Kumar <[email protected]>; u-boot at lists.denx.de
Cc: Priyanka Jain <[email protected]>
Subject: Re: [PATCH 1/1] board: ls2080ardb: Addfsl_fdt_fixup_flashQuoted 2 lines · Santan Kumar
IFC and QSPI are muxed on board.
Quoted 7 lines
Review
Quoted 3 lines
Add
fsl_fdt_fixup_flash()(quoted diff) +0
-2-To disable IFC node in dts if QSPI is enabled. -Or disable QSPI node in dts if IFC is enabled.The pin mux is at SoC level. Can you put this fixup at SoC level?
York
At Soc level, some of IFC pins (not all) are mux-ed with QSPI lines. So, it is possible to provide NAND functionality with QSPI if the board allows.
But in this case at board level, complete IFC is mux-ed with QSPI. So, we have put this code in board file.
Priyanka
PATCH 1/1 board: ls2080ardb: Add fsl_fdt_fixup_flash
Quoted 18 lines · Priyanka Jain
Quoted 18 lines
-----Original Message-----
From: York Sun
Sent: Tuesday, August 08, 2017 3:31 AM
To: Santan Kumar <[email protected]>; u-boot at lists.denx.de
Cc: Priyanka Jain <[email protected]>
Subject: Re: [PATCH 1/1] board: ls2080ardb: Addfsl_fdt_fixup_flashReview
Quoted 5 lines · Santan Kumar
IFC and QSPI are muxed on board.
Add
fsl_fdt_fixup_flash()(quoted diff) +0
-2-To disable IFC node in dts if QSPI is enabled. -Or disable QSPI node in dts if IFC is enabled.The pin mux is at SoC level. Can you put this fixup at SoC level?
Quoted 6 lines
Quoted 1 line
York
At Soc level, some of IFC pins (not all) are mux-ed with QSPI lines. So, it is possible to provide NAND functionality with QSPI if the board allows.
But in this case at board level, complete IFC is mux-ed with QSPI. So, we have put this code in board file.
OK. Thanks for the explanation.
York
PATCH 1/1 board: ls2080ardb: Add fsl_fdt_fixup_flash
In reply to Priyanka JainQuoted 5 lines · Priyanka Jain
But in this case at board level, complete IFC is mux-ed with QSPI. So, we have put this code in board file.
Priyanka
Revised commit message. Applied to fsl-qoriq master, awaiting upstream. Thanks.
York