AnsweredAssumed Answered

Need information about ROM #defines used in plugin boot

Question asked by mrigendra chaubey on Jul 4, 2018
Latest reply on Jul 4, 2018 by igorpadykov

Hi all,

 

I am trying to change mx6_plugin.S for my own board. There are some #define s inside this file and I am suspecting how they are used by ROM code. I am listing those that I want to understand or their specific use case that need to be in mind before doing any change in this file


#ifdef CONFIG_ROM_UNIFIED_SECTIONS
#define ROM_API_TABLE_BASE_ADDR_LEGACY 0x180
#define ROM_VERSION_OFFSET 0x80
#else
#define ROM_API_TABLE_BASE_ADDR_LEGACY 0xC0
#define ROM_VERSION_OFFSET 0x48
#endif
#define ROM_API_TABLE_BASE_ADDR_MX6DQ_TO15 0xC
#define ROM_API_TABLE_BASE_ADDR_MX6DL_TO12 0xC4 
#define ROM_API_HWCNFG_SETUP_OFFSET 0x08
#define ROM_VERSION_TO10 0x10
#define ROM_VERSION_TO12 0x12
#define ROM_VERSION_TO15 0x15

 

In my case I had this older #define that is nowhere in the newer code.

 

#define ROM_API_TABLE_BASE_ADDR_NEWAPI  0xC4

.

.

.

ldrge r3, =ROM_API_TABLE_BASE_ADDR_NEWAPI

Outcomes