[U-Boot] [PATCH] arm: add acpi support for the arm

Andy Shevchenko andriy.shevchenko at linux.intel.com
Wed Nov 20 10:56:05 UTC 2019


On Wed, Nov 20, 2019 at 06:21:33PM +0800, Bin Meng wrote:
> +Andy Shevchenko

Thanks!

> On Wed, Nov 20, 2019 at 3:39 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>
> > ---
> >  MAINTAINERS                                        |   3 +
> >  Makefile                                           |   1 +
> >  arch/arm/Kconfig                                   |  85 +++
> >  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                         |   3 +-
> >  scripts/Makefile.lib                               |   8 +
> >  31 files changed, 2877 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
> >
> 
> One generic comment, could you please check whether the existing x86
> ACPI support can be reused/refactored to support ARM?

Exactly!
My understanding that current x86 support has to be refactored to something
like lib/acpi/generate and then be re-used by other architectures.

-- 
With Best Regards,
Andy Shevchenko




More information about the U-Boot mailing list