I found a ls1021atwr.h file, but I have no idea where the header file is being included or what new variables I need to define in order to change the CSPR3 and CSOR3 registers. The variables that already exist in the ls1021atwr.h file either don't specify a memory bank or specify memory bank 0 but none utilize memory bank 3.
Some of the relevant variables that currently exist in ls1021atwr.h:
#define CONFIG_SYS_NOR0_CSPR_EXT (0x0)
define CONFIG_SYS_NOR0_CSPR (CSPR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS) | \
CSPR_PORT_SIZE_16 | \
CSPR_MSEL_NOR | \
CSPR_V)
#define CONFIG_SYS_NOR_CSOR (CSOR_NOR_ADM_SHIFT(4) | \ CSOR_NOR_TRHZ_80)
I'm trying to add my own variables that follow the structure of this header file.
For example:
#define CONFIG_SYS_GPCM3_CSPR_EXT (0x0)
#define CONFIG_SYS_GPCM3_CSPR (CSPR_PHYS_ADDR(CONFIG_SYS_FLASH) | \
CSPR_MSEL_GPCM | \
CSPR_V)
#define CONFIG_SYS_GPCM_CSOR (CSOR_GPCM_GPMODE(1) | \
CSOR_GPCM_TRHZ_80)
CONFIG_SYS_NOR_CSOR doesn't specify a memory bank. Does that mean they just write to all IFC_CSOR registers 0-6?
Am I specifying variables correctly? I don't know where constants like CSOR_NOR_TRHZ_80 are defined. I also have no idea what's using this header file.
How can I ioremap an address that maps to memory bank 3? All 32 bit addresses on the LS1021A-TWR have documented use or are "reserved". mmap only accepts 32 bit values for the offset field, so I don't see how to access a different memory bank.