/*------------------------------------------------------------------------------------------*\ * \*------------------------------------------------------------------------------------------*/ #ifndef _ENV_H_ #define _ENV_H_ /*------------------------------------------------------------------------------------------*\ * [0] : 123 * [1] : 1=paged flash, 0 restricted flash * [2] : 0=normal audio I2C adr, 1=altenative audio I2C adr * [3] : unused * [4] : unused \*------------------------------------------------------------------------------------------*/ extern unsigned int davinci_revision[5]; enum _env_location { ENV_LOCATION_FLASH = 0, ENV_LOCATION_PHY_RAM = 1, ENV_LOCATION_VIRT_RAM = 2, ENV_LOCATION_AVM_CONF = 3 }; #if IS_ENABLED(CONFIG_AVM_PROM_ENVIRONMENT) extern void env_init(int *penv, enum _env_location ); extern char *prom_getenv(char *envname); extern char *getcmdline(void); #else #warning AVM PROM environment support is NOT enabled! #endif #include #if IS_ENABLED(CONFIG_AVM_ENHANCED) #if IS_ENABLED(CONFIG_MIPS) #include #endif #endif #endif