MIPS R6, just like MIPS R2, have scratch pad storage, so add a new symbol which is selected by MIPS R2 and R6.
Link: http://www.linux-mips.org/archives/linux-mips/2015-01/msg00389.html Cc: Maciej W. Rozycki Signed-off-by: Markos Chandras
#ifndef _MIPS_SPRAM_H #define _MIPS_SPRAM_H #if defined(CONFIG_MIPS_SPRAM) extern __init void spram_config(void); #else static inline void spram_config(void) { }; #endif /* CONFIG_MIPS_SPRAM */ #endif /* _MIPS_SPRAM_H */