exynos: Provide a mechanism to patch SDRAM init

It's a bit scary that we rely on read only code to init our SDRAM
after suspend/resume.  Provide a mechanism for the kernel to either
insert a bit of code before memory init or completely replace memory
init.

See proof of concept kernel patch for some details.

Conflicts in arch/arm/cpu/armv7/exynos/lowlevel_init.c and
arch/arm/cpu/armv7/exynos/spl_boot.c were resolved by restoring and
then manually patching these two files. Also, the removal of the
DO_MEM_INIT action in the previous patch was handled manually.

BRANCH=none
BUG=chrome-os-partner:26424
TEST=Proof of concept kernel patch works.
TEST=Autotest in <http://crosreview.com/58769/> works

Change-Id: I2aaaf2267ca9aea7001b12201d185badfea647d1
Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/188611
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
(cherry picked from commit af9f78000eeb6bd181be6fbaa927543171733880)
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/191160
5 files changed