[U-Boot] [PATCH v3] arm: add acpi support for the arm
Steven Hao
steven_hao5189 at outlook.com
Mon Nov 25 02:09:37 UTC 2019
Dear Bin:
Firstly:
I know that acpi about x86 is existing. And it is usefull for x86 platfporm. If it is used to arm platform,some modification may have to do. For example,facs table is useless for arm.
In adition,The acpi table is writed statically and then modified dynamically in my patch. It is a new method.
I want to consult that whether my method is helpful or not.
Secondly:
If i want to reuse the x86-acpi. I will overwrite the write_acpi_tables function. But the definition about acpi strcuture is placed in arch/x86/include/asm directory. It can not be used to arm plateform. If the acpi library need to surport for all platform,i think it should move to /include directory.
Thank you
Steven Hao
获取 Outlook for iOS<https://aka.ms/o0ukef>
________________________________
发件人: Bin Meng <bmeng.cn at gmail.com>
发送时间: Thursday, November 21, 2019 11:18:24 PM
收件人: Steven Hao <steven_hao5189 at outlook.com>
抄送: xypron.glpk at gmx.de <xypron.glpk at gmx.de>; liuhao at phytium.com.cn <liuhao at phytium.com.cn>; agraf at csgraf.de <agraf at csgraf.de>; jagan at amarulasolutions.com <jagan at amarulasolutions.com>; marek.vasut at gmail.com <marek.vasut at gmail.com>; sr at denx.de <sr at denx.de>; patrice.chotard at st.com <patrice.chotard at st.com>; afd at ti.com <afd at ti.com>; horatiu.vultur at microchip.com <horatiu.vultur at microchip.com>; narmstrong at baylibre.com <narmstrong at baylibre.com>; ryder.lee at mediatek.com <ryder.lee at mediatek.com>; igor.opaniuk at gmail.com <igor.opaniuk at gmail.com>; patrick.delaunay at st.com <patrick.delaunay at st.com>; eugen.hristev at microchip.com <eugen.hristev at microchip.com>; sjg at chromium.org <sjg at chromium.org>; judge.packham at gmail.com <judge.packham at gmail.com>; yamada.masahiro at socionext.com <yamada.masahiro at socionext.com>; swarren at nvidia.com <swarren at nvidia.com>; michal.simek at xilinx.com <michal.simek at xilinx.com>; u-boot at lists.denx.de <u-boot at lists.denx.de>; Andy Shevchenko <andriy.shevchenko at linux.intel.com>
主题: Re: [PATCH v3] arm: add acpi support for the arm
Hi Steven,
On Wed, Nov 20, 2019 at 4:41 PM Steven Hao <steven_hao5189 at outlook.com> wrote:
>
> This adds acpi code for arm and the acpi tables about Phytium Durian Board.
> The acpi table only support rsdp, rsdt, xsdt, fadt, dsdt, ssdt, gtdt, madt,
> mcfg, iort, spcr.
>
> Signed-off-by: Steven Hao <steven_hao5189 at outlook.com>
> ---
> Changes for v3:
> - modify arch/arm/Kconfig
> - modify lib/efi_loader/efi_setup.c
>
> Changes for v2:
> - execute git pull --rebase
> ---
> MAINTAINERS | 3 +
> Makefile | 1 +
> arch/arm/Kconfig | 69 ++
> arch/arm/include/asm/acpi_table.h | 39 ++
> arch/arm/include/asm/acpi_table/acpi61.h | 755 +++++++++++++++++++++
> arch/arm/include/asm/acpi_table/acpi_lib.h | 89 +++
> arch/arm/include/asm/acpi_table/arm_platform.h | 93 +++
> .../include/asm/acpi_table/io_remapping_table.h | 179 +++++
> arch/arm/include/asm/acpi_table/spcr_table.h | 175 +++++
> arch/arm/lib/Makefile | 1 +
> arch/arm/lib/acpi_table.c | 244 +++++++
> board/phytium/durian/Makefile | 18 +
> board/phytium/durian/acpi_platform.h | 38 ++
> board/phytium/durian/acpi_table.c | 53 ++
> board/phytium/durian/acpi_table/dsdt.asl | 305 +++++++++
> board/phytium/durian/acpi_table/fadt.c | 83 +++
> board/phytium/durian/acpi_table/gtdt.c | 81 +++
> board/phytium/durian/acpi_table/iort.c | 117 ++++
> board/phytium/durian/acpi_table/madt.c | 69 ++
> board/phytium/durian/acpi_table/mcfg.c | 68 ++
> board/phytium/durian/acpi_table/rsdp.c | 25 +
> board/phytium/durian/acpi_table/rsdt.c | 28 +
> board/phytium/durian/acpi_table/spcr.c | 78 +++
> board/phytium/durian/acpi_table/ssdt.asl | 190 ++++++
> board/phytium/durian/acpi_table/xsdt.c | 31 +
> cmd/bootefi.c | 6 +-
> configs/durian_defconfig | 9 +
> include/configs/durian.h | 8 +-
> lib/efi_loader/Makefile | 1 +
> lib/efi_loader/efi_setup.c | 2 +-
> scripts/Makefile.lib | 8 +
> 31 files changed, 2860 insertions(+), 6 deletions(-)
> create mode 100644 arch/arm/include/asm/acpi_table.h
> create mode 100644 arch/arm/include/asm/acpi_table/acpi61.h
> create mode 100644 arch/arm/include/asm/acpi_table/acpi_lib.h
> create mode 100644 arch/arm/include/asm/acpi_table/arm_platform.h
> create mode 100644 arch/arm/include/asm/acpi_table/io_remapping_table.h
> create mode 100644 arch/arm/include/asm/acpi_table/spcr_table.h
> create mode 100644 arch/arm/lib/acpi_table.c
> create mode 100644 board/phytium/durian/acpi_platform.h
> create mode 100644 board/phytium/durian/acpi_table.c
> create mode 100644 board/phytium/durian/acpi_table/dsdt.asl
> create mode 100644 board/phytium/durian/acpi_table/fadt.c
> create mode 100644 board/phytium/durian/acpi_table/gtdt.c
> create mode 100644 board/phytium/durian/acpi_table/iort.c
> create mode 100644 board/phytium/durian/acpi_table/madt.c
> create mode 100644 board/phytium/durian/acpi_table/mcfg.c
> create mode 100644 board/phytium/durian/acpi_table/rsdp.c
> create mode 100644 board/phytium/durian/acpi_table/rsdt.c
> create mode 100644 board/phytium/durian/acpi_table/spcr.c
> create mode 100644 board/phytium/durian/acpi_table/ssdt.asl
> create mode 100644 board/phytium/durian/acpi_table/xsdt.c
>
As discussed in the v1 thread, please consider the existing x86 ACPI
support. Also, please try to split this single patch into various
small, independent patches.
Regards,
Bin
More information about the U-Boot
mailing list