ARM: i.MX: ccxmx51: detect SDRAM size by board id
This partly reverts:

commit 697e02b
Author: Alexander Shiyan <shc_work@mail.ru>
Date:   Tue Jan 22 15:08:31 2013 +0400

    ARM: ccmx51: Remove SDRAM size settings

    This patch removes SDRAM memory size setting from board due
    to auto detect last one by ESDCTL.

    Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
    Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

The board originally configured the SDRAM controller for the
maximum size and detected the usable SDRAM size by reading the
board id. This became broken after switching to automatic SDRAM
size detection by reading back ESDCTL values.

This patch brings back the old behaviour.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent f388d35 commit ccadba181c03c60a8128234793e3152c544562ce
@Sascha Hauer Sascha Hauer authored on 26 Apr 2013
Showing 3 changed files
View
arch/arm/boards/ccxmx51/ccxmx51.c
View
arch/arm/boards/ccxmx51/ccxmx51.h
View
arch/arm/boards/ccxmx51/lowlevel.c