AnsweredAssumed Answered

Change NOR Flash 16 bit to 32 bit to T4 Series

Question asked by vinothkumar s on Sep 10, 2019
Latest reply on Oct 9, 2019 by vinothkumar s

Hi All,

 

   We have a custom board built with T4 Series processor. I changed the NOR flash address from 0xE8000000 - 0xEFFFFFFF to 0xE0000000 - 0xEFFFFFFF and we connected 2 NOR Flash chip in Hardware side.

 

But, after changed the address of NOR flash memory address the Ethernet is not working in Linux but it's working in u-boot and NAND is working in Linux and not working in u-boot. 

 

I needs to know, what are the things I want to carry when changed the NOR flash address. And also I provided my changes and please response If I anything I missed.

 

Currently used Document for NOR Flash,

https://www.nxp.com/docs/en/supporting-information/QORIQ-SDK-2.0-IC-REV0.pdf 

Table 110. NOR Flash Memory Map

 

Changed location,

  • include/configs/T4240RDB.h

Current,

#define CONFIG_SYS_NOR0_CSPR  (CSPR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS \

                                                               + 0x8000000) | \

                                                               CSPR_PORT_SIZE_16 | \

                                                               CSPR_MSEL_NOR | \

                                                               CSPR_V)

 

 

Modified,

#define CONFIG_SYS_NOR0_CSPR  (CSPR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS \

                                                               + 0x0000000) | \

                                                               CSPR_PORT_SIZE_32 | \

                                                               CSPR_MSEL_NOR | \

                                                               CSPR_V)

 

 

 

  • arch/powerpc/boot/dts/fsl/t4240rdb.dts,

Current,

ranges = <0 0 0xf 0xe8000000 0x08000000                 2 0 0xf 0xff800000 0x00010000                  3 0 0xf 0xffdf0000 0x00008000>;            nor@0,0 {                #address-cells = <1>;                #size-cells = <1>;                compatible = "cfi-flash";                reg = <0x0 0x0 0x8000000>;

 

Modified,

ranges = <0 0 0xf 0xe0000000 0x00000000                 2 0 0xf 0xff800000 0x00010000                  3 0 0xf 0xffdf0000 0x00008000>;            nor@0,0 {                #address-cells = <1>;                #size-cells = <1>;                compatible = "cfi-flash";                reg = <0x0 0x0 0x0000000>;

 

Thanks & Regards,

VinothS.

Outcomes