net: pfe_eth: read PFE ESBC header flash with spi_flash_read API
PATCH v3 1/1 net: pfe_eth: read PFE ESBC header flash with spi_flash_read API
From: Biwen Li <[email protected]>
Read PFE ESBC header flash with spi_flash_read API
- logs as follows,
Net: SF: Detected s25fs512s with page size 256 Bytes, erase size 256
KiB, total 64 MiB
"Synchronous Abort" handler, esr 0x96000210
elr: 000000008206db44 lr : 0000000082004ea0 (reloc)
elr: 00000000b7ba6b44 lr : 00000000b7b3dea0 x0 : 00000000b79407e8 x1 : 0000000040640000 x2 : 0000000000000050 x3 : 0000000000000000 x4 : 000000000000000a x5 : 0000000000000050 x6 : 0000000000000366 x7 : 00000000b7942308 x8 : 00000000b76407c0 x9 : 0000000000000008
x10: 0000000000000044 x11: 00000000b7634d1c
x12: 000000000000004f x13: 0000000000000044
x14: 00000000b7634d98 x15: 00000000b76407c0
x16: 0000000000000000 x17: 0000000000000000
x18: 00000000b7636dd8 x19: 0000000000000000
x20: 00000000b79407d0 x21: 00000000b79407e8
x22: 0000000040640000 x23: 00000000b7634e58
x24: 0000000000000000 x25: 0000000003800000
x26: 00000000b7bdd000 x27: 0000000000000000
x28: 0000000000000000 x29: 00000000b7634d10
Code: d2800003 eb03005f 54000101 d65f03c0 (f8636826) Resetting CPU ...
---
Change in v3:
- cleanup code
Change in v2:
- update subject and description
board/freescale/ls1012afrdm/Kconfig | 11 +++++++ board/freescale/ls1012aqds/Kconfig | 14 +++++++-- board/freescale/ls1012ardb/Kconfig | 18 +++++++++-- drivers/net/pfe_eth/pfe_firmware.c | 48 ++++++++++++++++++++++++++--- 4 files changed, 81 insertions(+), 10 deletions(-)
board/freescale/ls1012afrdm/Kconfig +11 -0
@@ -16,6 +16,10 @@ config SYS_LS_PFE_FW_ADDR hex "Flash address of PFE firmware" default 0x40a00000 +config SYS_LS_PFE_FW_LENGTH + hex "length of PFE firmware" + default 0x40000 + config SYS_LS_PPA_FW_ADDR hex "PPA Firmware Addr" default 0x40400000
@@ -65,6 +69,10 @@ config SYS_LS_PFE_FW_ADDR hex "Flash address of PFE firmware" default 0x40020000 +config SYS_LS_PFE_FW_LENGTH + hex "length of PFE firmware" + default 0x40000 + config SYS_LS_PPA_FW_ADDR hex "PPA Firmware Addr" default 0x40060000
@@ -77,6 +85,9 @@ config SYS_LS_PFE_ESBC_ADDR hex "PFE Firmware HDR Addr" default 0x401f8000 +config SYS_LS_PFE_ESBC_LENGTH + hex "length of PFE Firmware HDR" + default 0xc00 endif if TARGET_LS1012AFRDM || TARGET_LS1012AFRWY
board/freescale/ls1012aqds/Kconfig +11 -3
@@ -20,6 +20,14 @@ if CHAIN_OF_TRUST config SYS_LS_PPA_ESBC_ADDR hex "PPA Firmware HDR Addr" default 0x40680000 + +config SYS_LS_PFE_ESBC_ADDR + hex "PFE Firmware HDR Addr" + default 0x40700000 + +config SYS_LS_PFE_ESBC_LENGTH + hex "length of PFE Firmware HDR" + default 0xc00 endif if FSL_PFE
@@ -39,9 +47,9 @@ config SYS_LS_PFE_FW_ADDR hex "Flash address of PFE firmware" default 0x40a00000 -config SYS_LS_PFE_ESBC_ADDR - hex "PFE Firmware HDR Addr" - default 0x40700000 +config SYS_LS_PFE_FW_LENGTH + hex "length of PFE firmware" + default 0x300000 config DDR_PFE_PHYS_BASEADDR hex "PFE DDR physical base address"
board/freescale/ls1012ardb/Kconfig +15 -3
@@ -20,6 +20,14 @@ if CHAIN_OF_TRUST config SYS_LS_PPA_ESBC_ADDR hex "PPA Firmware HDR Addr" default 0x40680000 + +config SYS_LS_PFE_ESBC_ADDR + hex "PFE Firmware HDR Addr" + default 0x40640000 + +config SYS_LS_PFE_ESBC_LENGTH + hex "length of PFE Firmware HDR" + default 0xc00 endif if FSL_PFE
@@ -33,9 +41,9 @@ config SYS_LS_PFE_FW_ADDR hex "Flash address of PFE firmware" default 0x40a00000 -config SYS_LS_PFE_ESBC_ADDR - hex "PFE Firmware HDR Addr" - default 0x40640000 +config SYS_LS_PFE_FW_LENGTH + hex "length of PFE firmware" + default 0x300000 config DDR_PFE_PHYS_BASEADDR hex "PFE DDR physical base address"
@@ -89,6 +97,10 @@ config SYS_LS_PFE_FW_ADDR hex "Flash address of PFE firmware" default 0x40a00000 +config SYS_LS_PFE_FW_LENGTH + hex "length of PFE firmware" + default 0x300000 + config DDR_PFE_PHYS_BASEADDR hex "PFE DDR physical base address" default 0x03800000
drivers/net/pfe_eth/pfe_firmware.c +44 -4
91 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v3 1/1 net: pfe_eth: read PFE ESBC header flash with spi_flash_read API
Quoted 35 lines
-----Original Message-----
From: Biwen Li <[email protected]>
Sent: Thursday, November 5, 2020 4:58 PM
To: Priyanka Jain <[email protected]>; Kuldeep Singh <[email protected]>
Cc: Jiafei Pan <[email protected]>; u-boot at lists.denx.de; Xiaobo Xie <[email protected]>; Biwen Li <[email protected]>
Subject: [v3] net:pfe_eth: read PFE ESBC header flash withspi_flash_readAPIFrom: Biwen Li <[email protected]>
Read PFE ESBC header flash with
spi_flash_readAPI
- logs as follows,
Net: SF: Detected s25fs512s with page size 256 Bytes, erase size 256
KiB, total 64 MiB
"Synchronous Abort" handler, esr0x96000210
elr:000000008206db44lr :0000000082004ea0(reloc)
elr:00000000b7ba6b44lr :00000000b7b3dea0x0 :00000000b79407e8x1 : 0000000040640000 x2 : 0000000000000050 x3 : 0000000000000000 x4 :000000000000000ax5 : 0000000000000050 x6 : 0000000000000366 x7 :00000000b7942308x8 :00000000b76407c0x9 : 0000000000000008
x10: 0000000000000044 x11:00000000b7634d1c
x12:000000000000004fx13: 0000000000000044
x14:00000000b7634d98x15:00000000b76407c0
x16: 0000000000000000 x17: 0000000000000000
x18:00000000b7636dd8x19: 0000000000000000
x20:00000000b79407d0x21:00000000b79407e8
x22: 0000000040640000 x23:00000000b7634e58
x24: 0000000000000000 x25: 0000000003800000
x26:00000000b7bdd000x27: 0000000000000000
x28: 0000000000000000 x29:00000000b7634d10
Quoted 5 lines
Code: d2800003 eb03005f 54000101 d65f03c0 (f8636826) Resetting CPU ...Signed-off-by Biwen Li <[email protected]>---
<snip>
Applied to fsl-qoriq.
Awaiting upstream
Thanks
Priyanka