-static void __init rt288x_detect_mem_size(void)
-{
- unsigned long size;
-
- for (size = RT288X_MEM_SIZE_MIN; size < RT288X_MEM_SIZE_MAX;
- size <<= 1 ) {
- if (!memcmp(rt288x_detect_mem_size,
- rt288x_detect_mem_size + size, 1024))
- break;
- }
-
- add_memory_region(RT2880_SDRAM_BASE, size, BOOT_MEM_RAM);
-}
-