ramips: allow to use custom code for memory size detection