[PATCH v2 00/21] dm: Preparation for enhanced of-platdata (part B)

Simon Glass sjg at chromium.org
Wed Dec 23 16:11:12 CET 2020


This series includes some refactoring of the dtoc tool and some changes
to a few drivers (particularly on x86) to reduce TPL size.

It is available at u-boot-dm/prep-working

Changes in v2:
- Rename DriverInfo to Driver
- Add a test for the new code and a comment for Driver

Simon Glass (21):
  pinctrl: Drop post_bind() method when not needed
  sysreset: Use a shorter error with SPL
  arc: m68k: nds32: nios2: sh: xtensa: Add empty spl.h header
  timer: Use a shorter error in TPL
  test: Use a simple variable to record removed device
  test: Move some test drivers into their own file
  dtoc: Fix a few pylint warnings in dtb_platdata
  dtoc: Make _output_list a top-level function
  dtoc: Output the device in a separate function
  dtoc: Output the struct values in a separate function
  dtoc: Convert _drivers to a dict
  dtoc: Scan drivers for available information
  dtoc: Allow use of the of_match_ptr() macro
  x86: apl: Use const for driver operations
  x86: Move call64 into its own section
  x86: coral: Move fsp-m settings to a subnode
  x86: apl: Update hostbridge to remove unwanted TPL code
  x86: apl: Reduce size for TPL
  x86: pinctrl: Drop unlikely error messages from TPL
  x86: tpl: Remove unwanted devicetree string
  x86: Fix header guard in asm/pmu.h

 arch/arc/include/asm/spl.h               |   0
 arch/m68k/include/asm/spl.h              |   0
 arch/nds32/include/asm/spl.h             |   0
 arch/nios2/include/asm/spl.h             |   0
 arch/sh/include/asm/spl.h                |   0
 arch/x86/cpu/apollolake/fsp_m.c          |   5 +-
 arch/x86/cpu/apollolake/hostbridge.c     |  14 +-
 arch/x86/cpu/apollolake/lpc.c            |  13 +-
 arch/x86/cpu/apollolake/pch.c            |   4 +-
 arch/x86/cpu/apollolake/pmc.c            |   6 +-
 arch/x86/cpu/apollolake/uart.c           |   4 +-
 arch/x86/cpu/i386/call64.S               |   1 +
 arch/x86/cpu/intel_common/Makefile       |   2 +-
 arch/x86/cpu/intel_common/itss.c         |   4 +-
 arch/x86/cpu/intel_common/p2sb.c         |   6 +-
 arch/x86/cpu/turbo.c                     |   5 +
 arch/x86/dts/chromebook_coral.dts        |   5 +
 arch/x86/include/asm/pmu.h               |   6 +-
 arch/x86/lib/tpl.c                       |   4 +-
 arch/xtensa/include/asm/spl.h            |   0
 board/google/chromebook_coral/coral.c    |   4 +-
 drivers/gpio/intel_gpio.c                |   4 +-
 drivers/misc/Kconfig                     |   9 +
 drivers/misc/Makefile                    |   1 +
 drivers/misc/test_drv.c                  | 230 ++++++++++++++
 drivers/pinctrl/intel/pinctrl.c          |  11 +-
 drivers/pinctrl/intel/pinctrl_apl.c      |   4 +-
 drivers/pinctrl/pinctrl-uclass.c         |   4 +-
 drivers/power/acpi_pmc/acpi-pmc-uclass.c |   4 +-
 drivers/sysreset/sysreset-uclass.c       |  12 +-
 drivers/timer/tsc_timer.c                |   4 +-
 include/dm/test.h                        |  20 +-
 include/test/test.h                      |   9 +
 lib/time.c                               |  10 +-
 test/dm/bus.c                            | 107 +------
 test/dm/test-fdt.c                       | 120 --------
 tools/dtoc/dtb_platdata.py               | 370 +++++++++++++++++------
 tools/dtoc/test_dtoc.py                  | 123 ++++++++
 38 files changed, 777 insertions(+), 348 deletions(-)
 create mode 100644 arch/arc/include/asm/spl.h
 create mode 100644 arch/m68k/include/asm/spl.h
 create mode 100644 arch/nds32/include/asm/spl.h
 create mode 100644 arch/nios2/include/asm/spl.h
 create mode 100644 arch/sh/include/asm/spl.h
 create mode 100644 arch/xtensa/include/asm/spl.h
 create mode 100644 drivers/misc/test_drv.c

-- 
2.29.2.729.g45daf8777d-goog



More information about the U-Boot mailing list