[PATCH 31/40] acpi: Tidy up the item list

Simon Glass sjg at chromium.org
Sun Jan 23 22:53:29 CET 2022


At present this is really just a debugging aid, but it is a bit untidy.
Add proper columns and display the type name instead of a number.

Sample output for coral:

   => acpi items
   Seq  Type       Addr  Size  Device/Writer
   ---  -----  --------  ----  -------------
     0  other  79925000    240  0base
     1  other  79925240     40  1facs
     2  dsdt   799252a4     58  board
     3  dsdt   799252fc     10  lpc
     4  other  79925280   32f0  3dsdt
     5  other  79928570   1000  4gnvs
     6  other  79929570    100  5fact
     7  other  79929670     30  5mcfg
     8  other  799296a0     50  5spcr
     9  other  799296f0     50  5tpm2
     a  other  79929740     70  5x86
     b  ssdt   799297d4     fe  maxim-codec
     c  ssdt   799298d2     28  i2c2 at 16,0
     d  ssdt   799298fa    270  da-codec
     e  ssdt   79929b6a     28  i2c2 at 16,1
     f  ssdt   79929b92     28  i2c2 at 16,2
    10  ssdt   79929bba     83  tpm at 50
    11  ssdt   79929c3d     28  i2c2 at 16,3
    12  ssdt   79929c65    282  elan-touchscreen at 10
    13  ssdt   79929ee7    285  raydium-touchscreen at 39
    14  ssdt   7992a16c     28  i2c2 at 17,0
    15  ssdt   7992a194     d8  elan-touchpad at 15
    16  ssdt   7992a26c    163  synaptics-touchpad at 2c
    17  ssdt   7992a3cf     28  i2c2 at 17,1
    18  ssdt   7992a3f7    111  wacom-digitizer at 9
    19  ssdt   7992a508     8f  sdmmc at 1b,0
    1a  ssdt   7992a597     4b  wifi
    1b  ssdt   7992a5e2    1a0  cpu at 0
    1c  ssdt   7992a782    1a0  cpu at 1
    1d  ssdt   7992a922    1a0  cpu at 2
    1e  ssdt   7992aac2    211  cpu at 3
    1f  other  799297b0   1530  6ssdt
    20  other  7992ace0   2f10  8dev

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 drivers/core/acpi.c | 24 ++++++++++++++++++++----
 test/dm/acpi.c      | 20 ++++++++++++++------
 2 files changed, 34 insertions(+), 10 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list