efi: app: Add a sysreset driver
PATCH v2 1/5 efi: app: Add a sysreset driver
This adds the DM sysreset driver for EFI application support.
---
Changes in v2:
- drop patches already applied
- new patch to add a sysreset driver for efi app
lib/efi/efi_app.c | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-)
lib/efi/efi_app.c +27 -1
@@ -10,11 +10,13 @@#include <common.h> #include <debug_uart.h> +#include <dm.h> #include <errno.h> #include <linux/err.h> #include <linux/types.h> #include <efi.h> #include <efi_api.h> +#include <sysreset.h> DECLARE_GLOBAL_DATA_PTR ;
@@ -129,7 +131,7 @@ efi_status_t EFIAPI efi_main(efi_handle_t image,return EFI_SUCCESS ; } -void reset_cpu (ulong addr) +static void efi_exit (void ) {struct efi_priv *priv = global_priv;
@@ -137,3 +139,27 @@ void reset_cpu(ulong addr)printf ("U-Boot EFI exiting\n" ); priv->boot->exit (priv->parent_image,EFI_SUCCESS ,0 ,NULL ); } + +static int efi_sysreset_request (struct udevice *dev,enum sysreset_t type) +{ +efi_exit (); + +return -EINPROGRESS ; +} + +static const struct udevice_id efi_sysreset_ids[] = { + { .compatible ="efi,reset" }, + { } +}; + +static struct sysreset_ops efi_sysreset_ops = { + .request = efi_sysreset_request, +}; + +U_BOOT_DRIVER (efi_sysreset) = { + .name ="efi-sysreset" , + .id =UCLASS_SYSRESET , + .of_match = efi_sysreset_ids, + .ops = &efi_sysreset_ops, + .flags =DM_FLAG_PRE_RELOC , +};
Signature · 1 line
2.7.4
PATCH v2 2/5 x86: tangier: Add a sysreset driver
This adds a reset driver for tangier processor.
---
Changes in v2:
- new patch to add a reset driver for tangier processor
arch/x86/cpu/tangier/Makefile | 2 +- arch/x86/cpu/tangier/sysreset.c | 48 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 arch/x86/cpu/tangier/sysreset.c
arch/x86/cpu/tangier/Makefile +1 -1
@@ -2,5 +2,5 @@ # # Copyright (c) 2017 Intel Corporation -obj-y += car.o tangier.o sdram.o +obj-y += car.o tangier.o sdram.o sysreset.o obj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi.o
arch/x86/cpu/tangier/sysreset.c new file +48 -0
48 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH v2 2/5 x86: tangier: Add a sysreset driver
Hi Andy,
Quoted 6 lines · Bin Meng
This adds a reset driver for tangier processor.
Signed-off-by Bin Meng <[email protected]>---
Quoted 8 lines
Changes in v2:
- new patch to add a reset driver for tangier processorarch/x86/cpu/tangier/Makefile | 2 +- arch/x86/cpu/tangier/sysreset.c | 48 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 arch/x86/cpu/tangier/sysreset.c
Could you please help test this driver? This series is at u-boot-x86/reset branch. Thanks!
Regards,
Bin
PATCH v2 2/5 x86: tangier: Add a sysreset driver
Quoted 19 lines · Bin Meng
Hi Andy,
Quoted 6 lines · Bin Meng
This adds a reset driver for tangier processor.
Signed-off-by Bin Meng <[email protected]>---
Quoted 9 lines
Changes in v2:
- new patch to add a reset driver for tangier processorarch/x86/cpu/tangier/Makefile | 2 +- arch/x86/cpu/tangier/sysreset.c | 48 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 arch/x86/cpu/tangier/sysreset.c
Quoted 2 lines
Could you please help test this driver? This series is at u-boot-x86/reset branch. Thanks!
Can you point me out to what exact steps I have to perform to test this functionality?
Just boot to U-boot console, run 'reset' and see if everything works as before? Or something more?
Signature · 2 lines
Andy Shevchenko <[email protected]> Intel Finland Oy
PATCH v2 2/5 x86: tangier: Add a sysreset driver
Quoted 24 lines · Andy Shevchenko
Quoted 20 lines · Bin Meng
Hi Andy,
Quoted 6 lines · Bin Meng
This adds a reset driver for tangier processor.
Signed-off-by Bin Meng <[email protected]>---
Quoted 9 lines
Changes in v2:
- new patch to add a reset driver for tangier processorarch/x86/cpu/tangier/Makefile | 2 +- arch/x86/cpu/tangier/sysreset.c | 48 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 arch/x86/cpu/tangier/sysreset.cQuoted 2 lines
Could you please help test this driver? This series is at u-boot-x86/reset branch. Thanks!
Quoted 7 lines
Can you point me out to what exact steps I have to perform to test this
functionality?Just boot to U-boot console, run 'reset' and see if everything works as
before? Or something more?
So, I merged the mentioned branch on top of my testing setup for ACPI bits. After, I boot to U-boot console and type reset (done 2 times with different delay after boot: few seconds vs. few dozen of seconds). After I tried to boot my ACPI kernel.
If it's enough, you may take mine
for u-boot-x86/reset branch.
Signature · 2 lines
Andy Shevchenko <[email protected]> Intel Finland Oy
PATCH v2 2/5 x86: tangier: Add a sysreset driver
Hi Andy,
Quoted 33 lines · Andy Shevchenko
Quoted 24 lines · Andy Shevchenko
Quoted 20 lines · Bin Meng
Hi Andy,
Quoted 6 lines · Bin Meng
This adds a reset driver for tangier processor.
Signed-off-by Bin Meng <[email protected]>---
Quoted 9 lines
Changes in v2:
- new patch to add a reset driver for tangier processorarch/x86/cpu/tangier/Makefile | 2 +- arch/x86/cpu/tangier/sysreset.c | 48 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 arch/x86/cpu/tangier/sysreset.cQuoted 2 lines
Could you please help test this driver? This series is at u-boot-x86/reset branch. Thanks!
Quoted 7 lines
Can you point me out to what exact steps I have to perform to test this
functionality?Just boot to U-boot console, run 'reset' and see if everything works as
before? Or something more?
Quoted 8 lines
So, I merged the mentioned branch on top of my testing setup for ACPI bits. After, I boot to U-boot console and type reset (done 2 times with different delay after boot: few seconds vs. few dozen of seconds). After I tried to boot my ACPI kernel.
If it's enough, you may take mine
Tested-by Andy Shevchenko <[email protected]>
This is enough. Thank you for the testing!
Quoted 2 lines
for u-boot-x86/reset branch.
Regards,
Bin
PATCH v2 2/5 x86: tangier: Add a sysreset driver
In reply to Bin MengQuoted 6 lines · Bin Meng
This adds a reset driver for tangier processor.
Signed-off-by Bin Meng <[email protected]>---
Quoted 7 lines
Changes in v2:
- new patch to add a reset driver for tangier processorarch/x86/cpu/tangier/Makefile | 2 +- arch/x86/cpu/tangier/sysreset.c | 48 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 arch/x86/cpu/tangier/sysreset.c
PATCH v2 2/5 x86: tangier: Add a sysreset driver
Quoted 10 lines · Simon Glass
Quoted 9 lines · Bin Meng
This adds a reset driver for tangier processor.
Signed-off-by Bin Meng <[email protected]>---
Changes in v2:
- new patch to add a reset driver for tangier processor
Quoted 6 lines
Quoted 4 lines
arch/x86/cpu/tangier/Makefile | 2 +- arch/x86/cpu/tangier/sysreset.c | 48 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 arch/x86/cpu/tangier/sysreset.cReviewed-by Simon Glass <[email protected]>
applied to u-boot-x86, thanks!
PATCH v2 3/5 dm: sysreset: Add a standard message when doing reset
In reply to Bin MengIt's good to print a message when doing reset.
---
Changes in v2:
- new patch per Wolfgang's suggestion to add a standard message when doing reset
drivers/sysreset/sysreset-uclass.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/sysreset/sysreset-uclass.c +2 -0
@@ -69,6 +69,8 @@ void reset_cpu(ulong addr)int do_reset (cmd_tbl_t *cmdtp,int flag,int argc,char *const argv[]) { +printf ("resetting ...\n" ); +sysreset_walk_halt (SYSRESET_COLD );return 0 ;
Signature · 1 line
2.7.4
PATCH v2 3/5 dm: sysreset: Add a standard message when doing reset
Quoted 4 lines · Bin Meng
It's good to print a message when doing reset.
Signed-off-by Bin Meng <[email protected]>
Quoted 8 lines
---
Changes in v2:
- new patch per Wolfgang's suggestion to add a standard message when doing resetdrivers/sysreset/sysreset-uclass.c | 2 ++ 1 file changed, 2 insertions(+)
I wonder how many platforms will actually show this message and how many will just put it in their serial buffer and then discard it?
PATCH v2 3/5 dm: sysreset: Add a standard message when doing reset
Quoted 11 lines · Simon Glass
Quoted 10 lines · Bin Meng
It's good to print a message when doing reset.
Signed-off-by Bin Meng <[email protected]>---
Changes in v2:
- new patch per Wolfgang's suggestion to add a standard message when doing reset
Quoted 7 lines
Quoted 2 lines
drivers/sysreset/sysreset-uclass.c | 2 ++ 1 file changed, 2 insertions(+)Reviewed-by Simon Glass <[email protected]>I wonder how many platforms will actually show this message and how many will just put it in their serial buffer and then discard it?
Edison does.
Signature · 2 lines
Andy Shevchenko <[email protected]> Intel Finland Oy
PATCH v2 3/5 dm: sysreset: Add a standard message when doing reset
In reply to Simon GlassQuoted 11 lines · Simon Glass
Quoted 10 lines · Bin Meng
It's good to print a message when doing reset.
Signed-off-by Bin Meng <[email protected]>---
Changes in v2:
- new patch per Wolfgang's suggestion to add a standard message when doing reset
Quoted 7 lines
Quoted 2 lines
drivers/sysreset/sysreset-uclass.c | 2 ++ 1 file changed, 2 insertions(+)Reviewed-by Simon Glass <[email protected]>I wonder how many platforms will actually show this message and how many will just put it in their serial buffer and then discard it?
applied to u-boot-x86, thanks!
PATCH v2 4/5 x86: fsp: Eliminate the reset_cpu() call
In reply to Bin MengIn preparation for the reset driver conversion, eliminate the reset_cpu() call in the FSP init path as it's too early for the reset driver to work.
---
Changes in v2: None
arch/x86/lib/fsp/fsp_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/lib/fsp/fsp_common.c +1 -1
@@ -132,7 +132,7 @@ int arch_fsp_init(void)chipset_clear_sleep_state ();/* Reboot */ debug ("Rebooting..\n" ); -reset_cpu (0 ); +outb (SYS_RST |RST_CPU ,IO_PORT_RESET );/* Should not reach here.. */ panic ("Reboot System" ); }
Signature · 1 line
2.7.4
PATCH v2 4/5 x86: fsp: Eliminate the reset_cpu() call
Quoted 11 lines · Bin Meng
In preparation for the reset driver conversion, eliminate the
reset_cpu()call in the FSP init path as it's too early for the reset driver to work.Signed-off-by Bin Meng <[email protected]>---
Changes in v2: None
arch/x86/lib/fsp/fsp_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Adding back
PATCH v2 4/5 x86: fsp: Eliminate the reset_cpu() call
Quoted 8 lines · Simon Glass
Quoted 7 lines · Bin Meng
In preparation for the reset driver conversion, eliminate the
reset_cpu()call in the FSP init path as it's too early for the reset driver to work.Signed-off-by Bin Meng <[email protected]>---
Quoted 8 lines
Quoted 4 lines
Changes in v2: None
arch/x86/lib/fsp/fsp_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Adding back
Reviewed-by Simon Glass <[email protected]>
applied to u-boot-x86, thanks!
PATCH v2 5/5 x86: Switch to use DM sysreset driver
In reply to Bin MengThis converts all x86 boards over to DM sysreset.
---
Changes in v2:
- remove include of "reset.dsti" in edison.dts
- add SYSRESET for efi-x86_app and edison
arch/Kconfig | 2 ++ arch/x86/cpu/baytrail/valleyview.c | 6 ------ arch/x86/cpu/braswell/braswell.c | 6 ------ arch/x86/cpu/cpu.c | 26 -------------------------- arch/x86/cpu/ivybridge/early_me.c | 7 ++++--- arch/x86/cpu/ivybridge/sdram.c | 3 ++- arch/x86/cpu/qemu/qemu.c | 6 ------ arch/x86/cpu/quark/quark.c | 6 ------ arch/x86/cpu/tangier/tangier.c | 6 ------ arch/x86/dts/bayleybay.dts | 1 + arch/x86/dts/baytrail_som-db5800-som-6867.dts | 1 + arch/x86/dts/broadwell_som-6896.dts | 1 + arch/x86/dts/cherryhill.dts | 1 + arch/x86/dts/chromebook_link.dts | 1 + arch/x86/dts/chromebook_samus.dts | 1 + arch/x86/dts/chromebox_panther.dts | 1 + arch/x86/dts/conga-qeval20-qa3-e3845.dts | 1 + arch/x86/dts/cougarcanyon2.dts | 1 + arch/x86/dts/crownbay.dts | 1 + arch/x86/dts/dfi-bt700.dtsi | 1 + arch/x86/dts/edison.dts | 5 +++++ arch/x86/dts/efi-x86_app.dts | 5 +++++ arch/x86/dts/efi-x86_payload.dts | 1 + arch/x86/dts/galileo.dts | 1 + arch/x86/dts/minnowmax.dts | 1 + arch/x86/dts/qemu-x86_i440fx.dts | 1 + arch/x86/dts/qemu-x86_q35.dts | 1 + arch/x86/dts/reset.dtsi | 6 ++++++ arch/x86/include/asm/processor.h | 5 ----- arch/x86/include/asm/u-boot-x86.h | 1 - configs/chromebook_link64_defconfig | 1 + 31 files changed, 41 insertions(+), 66 deletions(-) create mode 100644 arch/x86/dts/reset.dtsi
arch/Kconfig +2 -0
@@ -118,6 +118,8 @@ config X86 imply DM_SPI_FLASH imply DM_USB imply DM_VIDEO + imply SYSRESET + imply SYSRESET_X86 imply CMD_FPGA_LOADMK imply CMD_GETTIME imply CMD_IO
arch/x86/cpu/baytrail/valleyview.c +0 -6
@@ -55,9 +55,3 @@ int arch_misc_init(void)return 0 ; } - -void reset_cpu (ulong addr) -{ -/* cold reset */ -x86_full_reset (); -}
arch/x86/cpu/braswell/braswell.c +0 -6
@@ -27,9 +27,3 @@ int arch_misc_init(void)return 0 ; } - -void reset_cpu (ulong addr) -{ -/* cold reset */ -x86_full_reset (); -}
arch/x86/cpu/cpu.c +0 -26
@@ -76,37 +76,11 @@ int x86_init_cache(void) }int init_cache (void ) __attribute__((weak,alias ("x86_init_cache" ))); -int do_reset (cmd_tbl_t *cmdtp,int flag,int argc,char *const argv[]) -{ -printf ("resetting ...\n" ); - -/* wait 50 ms */ -udelay (50000 ); -disable_interrupts (); -reset_cpu (0 ); - -/*NOTREACHED*/ -return 0 ; -} -void flush_cache (unsigned long dummy1,unsigned long dummy2) { asm("wbinvd\n" ); } -__weak void reset_cpu (ulong addr) -{ -/* Do a hard reset through the chipset's reset control register */ -outb (SYS_RST |RST_CPU ,IO_PORT_RESET ); -for (;;) -cpu_hlt (); -} - -void x86_full_reset (void ) -{ -outb (FULL_RST |SYS_RST |RST_CPU ,IO_PORT_RESET ); -} -/* Define these functions to allow ehch-hcd to function */ void flush_dcache_range (unsigned long start,unsigned long stop) {
arch/x86/cpu/ivybridge/early_me.c +4 -3
@@ -8,6 +8,7 @@#include <common.h> #include <dm.h> #include <errno.h> +#include <sysreset.h> #include <asm/pci.h> #include <asm/cpu.h> #include <asm/processor.h>
@@ -138,17 +139,17 @@ int intel_early_me_init_done(struct udevice *dev, struct udevice *me_dev,case ME_HFS_ACK_RESET :/* Non-power cycle reset */ set_global_reset (dev,0 ); -reset_cpu (0 ); +sysreset_walk_halt (SYSRESET_COLD );break ;case ME_HFS_ACK_PWR_CYCLE :/* Power cycle reset */ set_global_reset (dev,0 ); -x86_full_reset (); +sysreset_walk_halt (SYSRESET_COLD );break ;case ME_HFS_ACK_GBL_RESET :/* Global reset */ set_global_reset (dev,1 ); -x86_full_reset (); +sysreset_walk_halt (SYSRESET_COLD );break ;case ME_HFS_ACK_S3 :case ME_HFS_ACK_S4 :
arch/x86/cpu/ivybridge/sdram.c +2 -1
@@ -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 */
arch/x86/cpu/qemu/qemu.c +0 -6
@@ -156,12 +156,6 @@ int print_cpuinfo(void) }#endif -void reset_cpu (ulong addr) -{ -/* cold reset */ -x86_full_reset (); -} -int arch_early_init_r (void ) {qemu_chipset_init ();
arch/x86/cpu/quark/quark.c +0 -6
@@ -270,12 +270,6 @@ int print_cpuinfo(void)return default_print_cpuinfo (); } -void reset_cpu (ulong addr) -{ -/* cold reset */ -x86_full_reset (); -} -static void quark_pcie_init (void ) {u32 val;
arch/x86/cpu/tangier/tangier.c +0 -6
@@ -4,7 +4,6 @@*/ #include <common.h> -#include <asm/scu.h> #include <asm/u-boot-x86.h> /*
@@ -24,8 +23,3 @@ int print_cpuinfo(void) {return default_print_cpuinfo (); } - -void reset_cpu (ulong addr) -{ -scu_ipc_simple_command (IPCMSG_COLD_RESET ,0 ); -}
arch/x86/dts/bayleybay.dts +1 -0
@@ -12,6 +12,7 @@ /include/ "skeleton.dtsi" /include/ "keyboard.dtsi" /include/ "serial.dtsi" +/include/ "reset.dtsi" /include/ "rtc.dtsi" /include/ "tsc_timer.dtsi" /include/ "coreboot_fb.dtsi"
arch/x86/dts/baytrail_som-db5800-som-6867.dts +1 -0
@@ -12,6 +12,7 @@ /include/ "skeleton.dtsi" /include/ "serial.dtsi" +/include/ "reset.dtsi" /include/ "rtc.dtsi" /include/ "tsc_timer.dtsi"
arch/x86/dts/broadwell_som-6896.dts +1 -0
@@ -2,6 +2,7 @@ /include/ "skeleton.dtsi" /include/ "serial.dtsi" +/include/ "reset.dtsi" /include/ "rtc.dtsi" /include/ "tsc_timer.dtsi" /include/ "coreboot_fb.dtsi"
arch/x86/dts/cherryhill.dts +1 -0
@@ -10,6 +10,7 @@ /include/ "skeleton.dtsi" /include/ "serial.dtsi" +/include/ "reset.dtsi" /include/ "rtc.dtsi" /include/ "tsc_timer.dtsi"
arch/x86/dts/chromebook_link.dts +1 -0
@@ -5,6 +5,7 @@ /include/ "skeleton.dtsi" /include/ "keyboard.dtsi" /include/ "serial.dtsi" +/include/ "reset.dtsi" /include/ "rtc.dtsi" /include/ "tsc_timer.dtsi" /include/ "coreboot_fb.dtsi"
arch/x86/dts/chromebook_samus.dts +1 -0
@@ -5,6 +5,7 @@ /include/ "skeleton.dtsi" /include/ "keyboard.dtsi" /include/ "serial.dtsi" +/include/ "reset.dtsi" /include/ "rtc.dtsi" /include/ "tsc_timer.dtsi" /include/ "coreboot_fb.dtsi"
arch/x86/dts/chromebox_panther.dts +1 -0
@@ -2,6 +2,7 @@ /include/ "skeleton.dtsi" /include/ "serial.dtsi" +/include/ "reset.dtsi" /include/ "rtc.dtsi" /include/ "tsc_timer.dtsi" /include/ "coreboot_fb.dtsi"
arch/x86/dts/conga-qeval20-qa3-e3845.dts +1 -0
@@ -12,6 +12,7 @@ /include/ "skeleton.dtsi" /include/ "serial.dtsi" +/include/ "reset.dtsi" /include/ "rtc.dtsi" /include/ "tsc_timer.dtsi"
arch/x86/dts/cougarcanyon2.dts +1 -0
@@ -10,6 +10,7 @@ /include/ "skeleton.dtsi" /include/ "serial.dtsi" /include/ "keyboard.dtsi" +/include/ "reset.dtsi" /include/ "rtc.dtsi" /include/ "tsc_timer.dtsi"
arch/x86/dts/crownbay.dts +1 -0
@@ -10,6 +10,7 @@ /include/ "skeleton.dtsi" /include/ "serial.dtsi" /include/ "keyboard.dtsi" +/include/ "reset.dtsi" /include/ "rtc.dtsi" /include/ "tsc_timer.dtsi"
arch/x86/dts/dfi-bt700.dtsi +1 -0
@@ -9,6 +9,7 @@ #include <dt-bindings/interrupt-router/intel-irq.h> #include "skeleton.dtsi" +#include "reset.dtsi" #include "rtc.dtsi" #include "tsc_timer.dtsi"
arch/x86/dts/edison.dts +5 -0
@@ -85,4 +85,9 @@ compatible = "intel,scu-ipc"; reg = <0xff009000 0x1000>; }; + + reset { + compatible = "intel,reset-tangier"; + u-boot,dm-pre-reloc; + }; };
arch/x86/dts/efi-x86_app.dts +5 -0
@@ -23,4 +23,9 @@ serial: serial { compatible = "efi,uart"; }; + + reset { + compatible = "efi,reset"; + u-boot,dm-pre-reloc; + }; };
arch/x86/dts/efi-x86_payload.dts +1 -0
@@ -10,6 +10,7 @@ /include/ "skeleton.dtsi" /include/ "serial.dtsi" /include/ "keyboard.dtsi" +/include/ "reset.dtsi" /include/ "rtc.dtsi" /include/ "tsc_timer.dtsi"
arch/x86/dts/galileo.dts +1 -0
@@ -9,6 +9,7 @@ #include <dt-bindings/interrupt-router/intel-irq.h> /include/ "skeleton.dtsi" +/include/ "reset.dtsi" /include/ "rtc.dtsi" /include/ "tsc_timer.dtsi"
arch/x86/dts/minnowmax.dts +1 -0
@@ -11,6 +11,7 @@ /include/ "skeleton.dtsi" /include/ "serial.dtsi" +/include/ "reset.dtsi" /include/ "rtc.dtsi" /include/ "tsc_timer.dtsi" /include/ "coreboot_fb.dtsi"
arch/x86/dts/qemu-x86_i440fx.dts +1 -0
@@ -10,6 +10,7 @@ /include/ "skeleton.dtsi" /include/ "serial.dtsi" /include/ "keyboard.dtsi" +/include/ "reset.dtsi" /include/ "rtc.dtsi" /include/ "tsc_timer.dtsi"
arch/x86/dts/qemu-x86_q35.dts +1 -0
@@ -20,6 +20,7 @@ /include/ "skeleton.dtsi" /include/ "serial.dtsi" /include/ "keyboard.dtsi" +/include/ "reset.dtsi" /include/ "rtc.dtsi" /include/ "tsc_timer.dtsi"
arch/x86/dts/reset.dtsi new file +6 -0
@@ -0,0 +1,6 @@ +/ { + reset { + compatible = "x86,reset"; + u-boot,dm-pre-reloc; + }; +};
arch/x86/include/asm/processor.h +0 -5
@@ -43,11 +43,6 @@ enum { FULL_RST = 1 << 3, /* full power cycle */ }; -/** -* x86_full_reset() - reset everything: perform a full power cycle -*/ -void x86_full_reset (void ); -static inline __attribute__((always_inline))void cpu_hlt (void ) { asm("hlt" );
arch/x86/include/asm/u-boot-x86.h +0 -1
@@ -40,7 +40,6 @@ int x86_cleanup_before_linux(void);void x86_enable_caches (void );void x86_disable_caches (void );int x86_init_cache (void ); -void reset_cpu (ulong addr);ulong board_get_usable_ram_top (ulong total_size);int default_print_cpuinfo (void );
configs/chromebook_link64_defconfig +1 -0
@@ -4,6 +4,7 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_SYS_MALLOC_F_LEN=0x2000 CONFIG_SPL_SERIAL_SUPPORT=y +CONFIG_SPL_DRIVERS_MISC_SUPPORT=y CONFIG_DEBUG_UART_BOARD_INIT=y CONFIG_DEBUG_UART_BASE=0x3f8 CONFIG_DEBUG_UART_CLOCK=1843200
Signature · 1 line
2.7.4
PATCH v2 5/5 x86: Switch to use DM sysreset driver
Quoted 35 lines · Bin Meng
This converts all x86 boards over to DM sysreset.
Signed-off-by Bin Meng <[email protected]>---
Changes in v2:
- remove include of "reset.dsti" inedison.dts
- add SYSRESET for efi-x86_app and edisonarch/Kconfig | 2 ++ arch/x86/cpu/baytrail/valleyview.c | 6 ------ arch/x86/cpu/braswell/braswell.c | 6 ------ arch/x86/cpu/cpu.c | 26 -------------------------- arch/x86/cpu/ivybridge/early_me.c | 7 ++++--- arch/x86/cpu/ivybridge/sdram.c | 3 ++- arch/x86/cpu/qemu/qemu.c | 6 ------ arch/x86/cpu/quark/quark.c | 6 ------ arch/x86/cpu/tangier/tangier.c | 6 ------ arch/x86/dts/bayleybay.dts | 1 + arch/x86/dts/baytrail_som-db5800-som-6867.dts | 1 + arch/x86/dts/broadwell_som-6896.dts | 1 + arch/x86/dts/cherryhill.dts | 1 + arch/x86/dts/chromebook_link.dts | 1 + arch/x86/dts/chromebook_samus.dts | 1 + arch/x86/dts/chromebox_panther.dts | 1 + arch/x86/dts/conga-qeval20-qa3-e3845.dts | 1 + arch/x86/dts/cougarcanyon2.dts | 1 + arch/x86/dts/crownbay.dts | 1 + arch/x86/dts/dfi-bt700.dtsi | 1 + arch/x86/dts/edison.dts | 5 +++++ arch/x86/dts/efi-x86_app.dts | 5 +++++ arch/x86/dts/efi-x86_payload.dts | 1 + arch/x86/dts/galileo.dts | 1 + arch/x86/dts/minnowmax.dts | 1 +
Quoted 8 lines
arch/x86/dts/qemu-x86_i440fx.dts | 1 + arch/x86/dts/qemu-x86_q35.dts | 1 + arch/x86/dts/reset.dtsi | 6 ++++++ arch/x86/include/asm/processor.h | 5 ----- arch/x86/include/asm/u-boot-x86.h | 1 - configs/chromebook_link64_defconfig | 1 + 31 files changed, 41 insertions(+), 66 deletions(-) create mode 100644 arch/x86/dts/reset.dtsi
PATCH v2 5/5 x86: Switch to use DM sysreset driver
Quoted 45 lines · Simon Glass
Quoted 35 lines · Bin Meng
This converts all x86 boards over to DM sysreset.
Signed-off-by Bin Meng <[email protected]>---
Changes in v2:
- remove include of "reset.dsti" inedison.dts
- add SYSRESET for efi-x86_app and edisonarch/Kconfig | 2 ++ arch/x86/cpu/baytrail/valleyview.c | 6 ------ arch/x86/cpu/braswell/braswell.c | 6 ------ arch/x86/cpu/cpu.c | 26 -------------------------- arch/x86/cpu/ivybridge/early_me.c | 7 ++++--- arch/x86/cpu/ivybridge/sdram.c | 3 ++- arch/x86/cpu/qemu/qemu.c | 6 ------ arch/x86/cpu/quark/quark.c | 6 ------ arch/x86/cpu/tangier/tangier.c | 6 ------ arch/x86/dts/bayleybay.dts | 1 + arch/x86/dts/baytrail_som-db5800-som-6867.dts | 1 + arch/x86/dts/broadwell_som-6896.dts | 1 + arch/x86/dts/cherryhill.dts | 1 + arch/x86/dts/chromebook_link.dts | 1 + arch/x86/dts/chromebook_samus.dts | 1 + arch/x86/dts/chromebox_panther.dts | 1 + arch/x86/dts/conga-qeval20-qa3-e3845.dts | 1 + arch/x86/dts/cougarcanyon2.dts | 1 + arch/x86/dts/crownbay.dts | 1 + arch/x86/dts/dfi-bt700.dtsi | 1 + arch/x86/dts/edison.dts | 5 +++++ arch/x86/dts/efi-x86_app.dts | 5 +++++ arch/x86/dts/efi-x86_payload.dts | 1 + arch/x86/dts/galileo.dts | 1 + arch/x86/dts/minnowmax.dts | 1 +Quoted 8 lines
arch/x86/dts/qemu-x86_i440fx.dts | 1 + arch/x86/dts/qemu-x86_q35.dts | 1 + arch/x86/dts/reset.dtsi | 6 ++++++ arch/x86/include/asm/processor.h | 5 ----- arch/x86/include/asm/u-boot-x86.h | 1 - configs/chromebook_link64_defconfig | 1 + 31 files changed, 41 insertions(+), 66 deletions(-) create mode 100644 arch/x86/dts/reset.dtsi
Quoted 1 line
Reviewed-by Simon Glass <[email protected]>
applied to u-boot-x86, thanks!
PATCH v2 1/5 efi: app: Add a sysreset driver
In reply to Bin MengQuoted 4 lines · Bin Meng
This adds the DM sysreset driver for EFI application support.
Signed-off-by Bin Meng <[email protected]>
Quoted 8 lines
---
Changes in v2:
- drop patches already applied
- new patch to add a sysreset driver for efi applib/efi/efi_app.c | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-)
PATCH v2 1/5 efi: app: Add a sysreset driver
Quoted 7 lines · Simon Glass
Quoted 6 lines · Bin Meng
This adds the DM sysreset driver for EFI application support.
Signed-off-by Bin Meng <[email protected]>---
Quoted 8 lines
Quoted 6 lines
Changes in v2:
- drop patches already applied
- new patch to add a sysreset driver for efi applib/efi/efi_app.c | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-)Reviewed-by Simon Glass <[email protected]>
applied to u-boot-x86, thanks!