--- zzzz-none-000/linux-4.4.271/arch/arm/include/asm/prom.h 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/arch/arm/include/asm/prom.h 2023-04-19 10:22:27.000000000 +0000 @@ -26,4 +26,31 @@ static inline void arm_dt_init_cpu_maps(void) { } #endif /* CONFIG_OF */ + +/* AVM non-dt work-arounds follow */ + +#if defined(CONFIG_ARCH_QCOM) +#include +#include +#define prom_printf early_printk +#else +extern void prom_printf(const char *fmt, ...); +#endif +extern char *prom_getcmdline(void); +extern char *prom_getenv(char *name); + + + +extern char *arm_get_machine_name(void); +extern void arm_set_machine_name(const char *name); +/* Memory descriptor management. */ +#define PROM_MAX_PMEMBLOCKS 32 +struct prom_pmemblock { + unsigned long base; /* Within KSEG0. */ + unsigned int size; /* In bytes. */ + unsigned int type; /* free or prom memory */ +}; + + +#include #endif /* ASMARM_PROM_H */