ARMv7: normalize ramstage code flow
authorStefan Reinauer <reinauer@chromium.org>
Thu, 9 May 2013 23:16:13 +0000 (16:16 -0700)
committerChromeBot <chrome-bot@google.com>
Fri, 10 May 2013 18:55:20 +0000 (11:55 -0700)
commit11553c3afd1cc7f19ad5e7c53e343d87ed3a4274
treef8dbc3ecaed4ecf1bdc6018161ba5209e3999609
parent9000999a5266aff5954a3ee972a7913044e6f2fe
ARMv7: normalize ramstage code flow

In ram stage, all code flow should be tied to the resource allocator.
Stuff that has to happen before everything else goes into the mainboard
enable function in mainboard.c. This patch empties the main() wrapper
around hardwaremain.c, allowing to get rid of this special case in the
ARM port.

BUG=none
TEST=Boot tested on Snow
BRANCH=none
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Change-Id: I45537e871a51b1962b1fdd981296575eb863b07a
Reviewed-on: https://gerrit.chromium.org/gerrit/50727
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Commit-Queue: Stefan Reinauer <reinauer@google.com>
Tested-by: Stefan Reinauer <reinauer@google.com>
src/mainboard/emulation/qemu-armv7/ramstage.c
src/mainboard/google/snow/Makefile.inc
src/mainboard/google/snow/mainboard.c
src/mainboard/google/snow/mainboard.h
src/mainboard/google/snow/memory.c
src/mainboard/google/snow/ramstage.c