]> git.baikalelectronics.ru Git - uboot.git/commit
x86: sysreset: Implement the get_last() method
authorSimon Glass <sjg@chromium.org>
Thu, 2 May 2019 16:52:15 +0000 (10:52 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 8 May 2019 05:02:16 +0000 (13:02 +0800)
commit1da439e70c53b75eb0f6223e7bf3f18ff3393d8c
tree09f464bc1a55ebb4041f32d8fb8c843f7be1bdb7
parentdf880b5262d7af485928ac3ef5bb6ecc02e2c173
x86: sysreset: Implement the get_last() method

Add a default implementation of this method which always indicates that
the last reset was a power-on reset. This is the most likely type of reset
and without a PCH-specific driver we cannot determine any other type.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/sysreset/sysreset_x86.c