mbox series

[0/5] some sysreset patches (mostly for mpc83xx)

Message ID 20200501145516.18168-1-rasmus.villemoes@prevas.dk
Headers show
Series some sysreset patches (mostly for mpc83xx) | expand

Message

Rasmus Villemoes May 1, 2020, 2:55 p.m. UTC
The first four of these are some minor improvements to the
sysreset_mpc83xx driver.

Patch 5 is independent of the others, but included because I need to
print the reset info in SPL - since, on the mpc8309, the reset status
register gets cleared after reading, only SPL gets to know the actual
reset cause; in U-Boot proper, gd->arch.reset_status is always clear.

Rasmus Villemoes (5):
  sysreset: mpc83xx: use scnprintf instead of snprintf
  sysreset: mpc83xx: shuffle newline logic in
    mpc83xx_sysreset_get_status
  sysreset: mpc83xx: fix CONFIG_IS_ENABLED logic
  sysreset: mpc83xx: add output in case of cold boot
  sysreset: move print_resetinfo() to sysreset-uclass.c

 common/board_f.c                    | 24 --------
 drivers/sysreset/sysreset-uclass.c  | 22 ++++++++
 drivers/sysreset/sysreset_mpc83xx.c | 88 ++++++++++++++---------------
 include/sysreset.h                  |  5 ++
 4 files changed, 68 insertions(+), 71 deletions(-)