From patchwork Fri May 1 14:55:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 244745 List-Id: U-Boot discussion From: rasmus.villemoes at prevas.dk (Rasmus Villemoes) Date: Fri, 1 May 2020 16:55:11 +0200 Subject: [PATCH 0/5] some sysreset patches (mostly for mpc83xx) Message-ID: <20200501145516.18168-1-rasmus.villemoes@prevas.dk> 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(-)