common: oftree: Pass reset source and reset source instance to kernel
Detecting reset reason is, in some cases, a destructive operation and
in such cases it is impossible to obtain that information in the
kernel without some help from barebox.

Pass reset source and reset source instance to kernel to Linux to make
it availible to Linux userspace. This info is placeed under
/chosen/bootsource and it can be read under Linux in

/sys/firmware/devicetree/base/chosen/reset-source.

and

/sys/firmware/devicetree/base/chosen/reset-source-instance.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 89677d1 commit 58243d98b3f8e000c674a78a9466bd2fce213cc6
@Andrey Smirnov Andrey Smirnov authored on 17 May 2018
Sascha Hauer committed on 18 May 2018
Showing 1 changed file
View
common/oftree.c