[brcm47xx]: use memcmp in mem size detection as suggested by blogic