Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1b154e5 authored by Mike Frysinger's avatar Mike Frysinger Committed by Bryan Wu
Browse files

Blackfin arch: check the EXTBANKS field of the DDRCTL1 register to see if we...


Blackfin arch: check the EXTBANKS field of the DDRCTL1 register to see if we are using both memory banks

Signed-off-by: default avatarMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
parent 9db144fe
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -700,6 +700,8 @@ static inline int __init get_mem_size(void)
		case DEVWD_8:  ret *= 2;
		case DEVWD_16: break;
	}
	if ((ddrctl & 0xc000) == 0x4000)
		ret *= 2;
	return ret;
#endif
	BUG();