main: Print register list after initing serial

The serial is in an unknown state at the start, so print the
register list after init.

This will cause some registers to get clobbered.  If we really need
to know the state of the registers early on, we should copy them
to RAM before our init code runs.

Signed-off-by: Sean Cross <xobs@kosagi.com>
This commit is contained in:
Sean Cross 2014-12-02 13:44:52 +08:00
parent a15a05f074
commit 95fea803e1

4
main.c
View file

@ -185,10 +185,10 @@ static int list_registers(void)
static int shell_run_command(char *line); static int shell_run_command(char *line);
static int do_init(void) static int do_init(void)
{ {
list_registers();
serial_init(); serial_init();
list_registers();
/* Disable system watchdog */ /* Disable system watchdog */
writel(0x2200, 0xa0030000); writel(0x2200, 0xa0030000);