diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2018-07-19 03:07:33 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2018-07-20 09:33:22 +0800 |
commit | b37b7b2063e02718970ca1882a4522ccbe1106e9 (patch) | |
tree | 8c0d3cf873412f6abf5a6ddbb2dd30c49de80c1d /arch/x86/cpu/ivybridge/sdram.c | |
parent | 7bb6028768c31bf454314b622f52235fb7d82764 (diff) |
x86: Switch to use DM sysreset driver
This converts all x86 boards over to DM sysreset.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'arch/x86/cpu/ivybridge/sdram.c')
-rw-r--r-- | arch/x86/cpu/ivybridge/sdram.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/cpu/ivybridge/sdram.c b/arch/x86/cpu/ivybridge/sdram.c index 2f253e813e..8a58d0383d 100644 --- a/arch/x86/cpu/ivybridge/sdram.c +++ b/arch/x86/cpu/ivybridge/sdram.c @@ -18,6 +18,7 @@ #include <spi.h> #include <spi_flash.h> #include <syscon.h> +#include <sysreset.h> #include <asm/cpu.h> #include <asm/processor.h> #include <asm/gpio.h> @@ -497,7 +498,7 @@ int dram_init(void) /* If MRC data is not found we cannot continue S3 resume. */ if (pei_data->boot_mode == PEI_BOOT_RESUME && !pei_data->mrc_input) { debug("Giving up in sdram_initialize: No MRC data\n"); - reset_cpu(0); + sysreset_walk_halt(SYSRESET_COLD); } /* Pass console handler in pei_data */ |