ramips: replace RALINK_SOC_* macros with global variables