[U-Boot] [PATCH v2 11/28] x86: acpi: Remove unused codes

2016-05-07 Thread Bin Meng
- Remove #include <> header files. - Remove APM_CNT register defines, which should not be here as they are SMI related. - Remove MP_IRQ_ defines as they are duplicates of the same ones in asm/mpspec.h. - Remove ACTL register defines, which should not be here as they are chipset specific. -

[U-Boot] [PATCH v2 15/28] x86: acpi: Change fill_header()

2016-05-07 Thread Bin Meng
Rename fill_header() to acpi_fill_header() for consistency. Change its signature to remove the 'length' parameter and make it a public API. Also remove the unnecessary include files, and improve the AmlCode[] comment a little bit. Signed-off-by: Bin Meng Reviewed-by: Stefan

[U-Boot] [PATCH v2 09/28] acpi: Specify U-Boot include path for ASL files

2016-05-07 Thread Bin Meng
It will be much easier if we split the whole dsdt.asl file into multiple smaller ASL parts and have access to U-Boot include files. Signed-off-by: Bin Meng Reviewed-by: Stefan Roese Tested-by: Stefan Roese --- Changes in v2: None

[U-Boot] [PATCH v2 10/28] acpi: Output all errors/warnings/remarks when compiling ASL

2016-05-07 Thread Bin Meng
Remove -va option when invoking IASL compiler so that we can see errors/warnings/remarks in the build log. Signed-off-by: Bin Meng Reviewed-by: Stefan Roese Tested-by: Stefan Roese --- Changes in v2: None scripts/Makefile.lib | 2 +- 1 file

[U-Boot] [PATCH v2 03/28] x86: acpi: Fix compiler warnings in write_acpi_tables()

2016-05-07 Thread Bin Meng
Fix the following two build warnings in function 'write_acpi_tables': warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'u32' [-Wformat=] Signed-off-by: Bin Meng Reviewed-by: Stefan Roese Tested-by: Stefan Roese

[U-Boot] [PATCH v2 06/28] x86: dts: Update to include ACTL register details

2016-05-07 Thread Bin Meng
This updates all x86 boards that currently have IRQ router in the dts files to include ACTL register details. Signed-off-by: Bin Meng Reviewed-by: Stefan Roese Tested-by: Stefan Roese --- Changes in v2: None arch/x86/dts/bayleybay.dts

[U-Boot] [PATCH v2 08/28] acpi: Explicitly spell out dsdt.c in the make rule

2016-05-07 Thread Bin Meng
Currently the make rule for dsdt.c uses a wildcard, as below: $(obj)/%.c:$(src)/%.asl To avoid any side effect, explicitly mention dsdt.c as this is the file we intend to use for ACPI DSDT AML generation. Signed-off-by: Bin Meng Reviewed-by: Stefan Roese

[U-Boot] [PATCH v2 05/28] x86: irq: Enable SCI on IRQ9

2016-05-07 Thread Bin Meng
By default SCI is disabled after power on. ACTL is the register to enable SCI and route it to PIC/APIC. To support both ACPI in PIC mode and APIC mode, configure SCI to use IRQ9. Signed-off-by: Bin Meng Reviewed-by: Stefan Roese Tested-by: Stefan Roese

[U-Boot] [PATCH v2 07/28] acpi: Change build log for ASL files

2016-05-07 Thread Bin Meng
Currently when compiling U-Boot with ASL file, the build log says: ASL board/intel/bayleybay/dsdt.c This looks odd as ASL compiler's input is ASL file, not C file. Change the make rule to use $< instead. Signed-off-by: Bin Meng Reviewed-by: Stefan Roese

[U-Boot] [PATCH v2 04/28] x86: irq: Reserve IRQ9 for ACPI in PIC mode

2016-05-07 Thread Bin Meng
Reserve IRQ9 which is to be used as SCI interrupt number for ACPI in PIC mode. Signed-off-by: Bin Meng Reviewed-by: Stefan Roese Tested-by: Stefan Roese --- Changes in v2: - Change to use IS_ENABLED() arch/x86/cpu/irq.c | 5 + 1 file

[U-Boot] [PATCH v2 00/28] x86: Initial ACPI support for Intel BayTrail

2016-05-07 Thread Bin Meng
This series introduces initial ACPI support for Intel BayTrail. Advanced Configuration and Power Interface (ACPI) aims to establish industry-standard interfaces enabling OS-directed configuration, power management, and thermal management of mobile, desktop, and server platforms. Linux can boot

[U-Boot] [PATCH v2 02/28] x86: Fix build warning in tables.c when CONFIG_SEABIOS

2016-05-07 Thread Bin Meng
The following build warning is seen in tables.c: warning: implicit declaration of function 'memalign' Add the missing header file to fix it. Signed-off-by: Bin Meng Reviewed-by: Stefan Roese Tested-by: Stefan Roese --- Changes in v2: None

[U-Boot] [PATCH v2 01/28] x86: Drop asm/acpi.h

2016-05-07 Thread Bin Meng
Remove asm/acpi.h which is never used. Signed-off-by: Bin Meng Reviewed-by: Stefan Roese Tested-by: Stefan Roese --- Changes in v2: None arch/x86/cpu/ivybridge/lpc.c | 1 - arch/x86/cpu/ivybridge/model_206ax.c | 1 -

Re: [U-Boot] [PATCH 05/26] x86: irq: Enable SCI on IRQ9

2016-05-07 Thread Bin Meng
Hi Stefan, On Tue, May 3, 2016 at 8:31 PM, Stefan Roese wrote: > Hi Bin, > > > On 02.05.2016 09:33, Bin Meng wrote: >> >> By default SCI is disabled after power on. ACTL is the register to >> enable SCI and route it to PIC/APIC. To support both ACPI in PIC >> mode and APIC mode,

Re: [U-Boot] ARM64: How to protect spin-table code from U-Boot?

2016-05-07 Thread Alexander Graf
On 07.05.16 09:12, Masahiro Yamada wrote: > Hi. > > I assume the following code in > arch/arm/cpu/armv8/start.S is for spin-table. > > > > #ifdef CONFIG_ARMV8_MULTIENTRY >branch_if_master x0, x1, master_cpu > >/* > * Slave CPUs > */ > slave_cpu: >wfe

[U-Boot] ARM64: How to protect spin-table code from U-Boot?

2016-05-07 Thread Masahiro Yamada
Hi. I assume the following code in arch/arm/cpu/armv8/start.S is for spin-table. #ifdef CONFIG_ARMV8_MULTIENTRY branch_if_master x0, x1, master_cpu /* * Slave CPUs */ slave_cpu: wfe ldr x1, =CPU_RELEASE_ADDR ldr x0, [x1] cbz x0,

<    1   2