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)
commitf77ab00e898bb24323d027f3f27c5661e19c8461
tree09f464bc1a55ebb4041f32d8fb8c843f7be1bdb7
parentd6b1ba2fb99cdda35983b1e70c745728b8df9b4b
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