This series collects together a large number of small patches that I have been fiddling with for a while. At lot of them relate to SPL and TPL and updating Chromium OS verified boot to work on U-Boot.
Simon Glass (45): dm: core: Alloc uclass-private data to be cache-aligned dm: core: Update some functions to use const dm: core: Add a function to find the first inactive child dm: core: Update ofnode to read binman-style flash entry sf: Avoid allocating memory on every read operation spl: input: Allow input in SPL and TPL Makefile: Add a warning if SPL/TPL cannot be built spl: misc: Allow misc drivers in SPL and TPL blk: Support block drivers in TPL Kconfig: Convert CONFIG_RTC_MC146818 to Kconfig rtc: Allow use of RTC in SPL and TPL fdt: Document the fact that dtc is now built doc: Update docs for device tree in SPL, TPL fdt: Allow indicating a node is for U-Boot proper only tpm: Add support for SPL and TPL serial: Allow serial to be absent in TPL fdt: Allow libfdt in TPL cros: Update cros_ec code to use struct udevice cros: Adjust board_get_cros_ec_dev() to return a udevice dm: spi: Add logging of some return values fdt: Remove fdtdec_decode_region() function video: Adjust video_clear() to return an error tpm: Use livetree and allow children tpm: Tidy up logging in tpm-common.c tpm: Add a few new commands for v1 binman: Move to three-digit test-file numbers binman: Add a test for Intel reference code log: Add comments to the rest of the log categories malloc_simple: Add logging of allocations Add a header file for strings Rename GPT_HEADER_SIGNATURE to avoid conflict cros: Update ec_commands to latest version x86: Update mtrr functions to allow leaving cache alone cros_ec: Update cros_ec_read_hash() to specify the image cros_ec: Add support for v3 messages on LPC test: panel: Add a test for the panel uclass panel: Expand the backlight support ctags: Minor changes to fix ctags output fdt: Allow C++ comments in link scripts and DT files pci: Add a little more debugging to pci_rom sysreset: Tidy up a few comments and logging sysreset: Add a way to find the last reset video: at91: Adjust vidconsole_position_cursor() to use char pos video: Tidy up a few comments in video.o dtoc: Fix the value of SetInt() Makefile | 2 +- arch/sandbox/dts/sandbox.dts | 20 +- arch/sandbox/dts/sandbox64.dts | 20 +- arch/sandbox/dts/sandbox_pmic.dtsi | 2 +- arch/sandbox/dts/test.dts | 20 +- arch/sandbox/include/asm/test.h | 15 + arch/x86/cpu/mtrr.c | 31 +- arch/x86/include/asm/mtrr.h | 6 +- board/atmel/common/video_display.c | 5 +- cmd/cros_ec.c | 31 +- cmd/tpm_test.c | 15 - cmd/x86/mtrr.c | 8 +- common/cros_ec.c | 4 +- common/malloc_simple.c | 58 +- configs/edison_defconfig | 1 + configs/malta_defconfig | 1 + disk/part_efi.c | 6 +- doc/README.fdt-control | 16 +- doc/driver-model/README.txt | 7 +- drivers/block/Kconfig | 12 + drivers/block/Makefile | 2 +- drivers/core/device.c | 45 +- drivers/core/of_extra.c | 27 +- drivers/core/ofnode.c | 2 + drivers/input/Kconfig | 48 + drivers/input/Makefile | 11 +- drivers/input/input.c | 5 +- drivers/misc/Kconfig | 72 + drivers/misc/Makefile | 9 +- drivers/misc/cros_ec.c | 178 +- drivers/misc/cros_ec_lpc.c | 33 + drivers/misc/cros_ec_sandbox.c | 8 +- drivers/mtd/spi/sf-uclass.c | 6 +- drivers/mtd/spi/sf_probe.c | 2 +- drivers/mtd/spi/spi_flash.c | 17 +- drivers/pci/pci_rom.c | 4 +- drivers/pwm/sandbox_pwm.c | 25 + drivers/rtc/Kconfig | 26 + drivers/rtc/Makefile | 2 +- drivers/rtc/rtc-uclass.c | 1 + drivers/serial/Kconfig | 10 + drivers/serial/serial-uclass.c | 4 + drivers/spi/spi-uclass.c | 6 +- drivers/sysreset/sysreset-uclass.c | 34 +- drivers/sysreset/sysreset_sandbox.c | 12 + drivers/tpm/Makefile | 2 +- drivers/tpm/tpm-uclass.c | 7 +- drivers/tpm/tpm_tis_lpc.c | 2 +- drivers/video/backlight-uclass.c | 10 + drivers/video/panel-uclass.c | 18 + drivers/video/pwm_backlight.c | 186 +- drivers/video/simple_panel.c | 20 +- drivers/video/tegra124/sor.c | 3 +- drivers/video/vidconsole-uclass.c | 2 + drivers/video/video-uclass.c | 4 +- include/backlight.h | 25 + include/configs/edison.h | 1 - include/configs/malta.h | 1 - include/cros_ec.h | 72 +- include/dm/device.h | 39 +- include/dm/of_extra.h | 3 +- include/dm/uclass.h | 3 + include/ec_commands.h | 4324 ++++++++++++++--- include/fdtdec.h | 45 - include/linux/compiler-gcc.h | 6 +- include/log.h | 12 +- include/malloc.h | 1 + include/panel.h | 22 +- include/part_efi.h | 2 +- include/string.h | 1 + include/sysreset.h | 34 +- include/tpm-v1.h | 28 + include/video.h | 7 +- lib/Kconfig | 32 + lib/Makefile | 10 +- lib/fdtdec.c | 83 - lib/hang.c | 5 +- lib/tpm-common.c | 10 +- lib/tpm-v1.c | 68 +- scripts/Makefile.spl | 9 +- scripts/config_whitelist.txt | 1 - test/dm/Makefile | 1 + test/dm/core.c | 31 + test/dm/ofnode.c | 16 + test/dm/panel.c | 79 + test/dm/sysreset.c | 20 +- tools/binman/entry_test.py | 2 +- tools/binman/fdt_test.py | 4 +- tools/binman/ftest.py | 231 +- .../test/{01_invalid.dts => 001_invalid.dts} | 0 ..._missing_node.dts => 002_missing_node.dts} | 0 .../test/{03_empty.dts => 003_empty.dts} | 0 ...nvalid_entry.dts => 004_invalid_entry.dts} | 0 .../test/{05_simple.dts => 005_simple.dts} | 0 .../{06_dual_image.dts => 006_dual_image.dts} | 0 .../{07_bad_align.dts => 007_bad_align.dts} | 0 .../binman/test/{08_pack.dts => 008_pack.dts} | 0 .../{09_pack_extra.dts => 009_pack_extra.dts} | 0 ...n_power2.dts => 010_pack_align_power2.dts} | 0 ...er2.dts => 011_pack_align_size_power2.dts} | 0 ...k_inv_align.dts => 012_pack_inv_align.dts} | 0 ..._align.dts => 013_pack_inv_size_align.dts} | 0 ..._pack_overlap.dts => 014_pack_overlap.dts} | 0 ...ack_overflow.dts => 015_pack_overflow.dts} | 0 ...erflow.dts => 016_pack_image_overflow.dts} | 0 ...image_size.dts => 017_pack_image_size.dts} | 0 ...age_align.dts => 018_pack_image_align.dts} | 0 ...align.dts => 019_pack_inv_image_align.dts} | 0 ...ts => 020_pack_inv_image_align_power2.dts} | 0 .../{21_image_pad.dts => 021_image_pad.dts} | 0 .../{22_image_name.dts => 022_image_name.dts} | 0 .../binman/test/{23_blob.dts => 023_blob.dts} | 0 .../test/{24_sorted.dts => 024_sorted.dts} | 0 ...k_zero_size.dts => 025_pack_zero_size.dts} | 0 ...u_boot_dtb.dts => 026_pack_u_boot_dtb.dts} | 0 ...b_no_size.dts => 027_pack_4gb_no_size.dts} | 0 ...b_outside.dts => 028_pack_4gb_outside.dts} | 0 .../test/{29_x86-rom.dts => 029_x86-rom.dts} | 0 ...no-desc.dts => 030_x86-rom-me-no-desc.dts} | 0 .../{31_x86-rom-me.dts => 031_x86-rom-me.dts} | 0 .../{32_intel-vga.dts => 032_intel-vga.dts} | 0 ...33_x86-start16.dts => 033_x86-start16.dts} | 0 .../{34_x86_ucode.dts => 034_x86_ucode.dts} | 0 ...gle_ucode.dts => 035_x86_single_ucode.dts} | 0 .../{36_u_boot_img.dts => 036_u_boot_img.dts} | 0 ..._x86_no_ucode.dts => 037_x86_no_ucode.dts} | 0 ...ode.dts => 038_x86_ucode_missing_node.dts} | 0 ...e2.dts => 039_x86_ucode_missing_node2.dts} | 0 ...age.dts => 040_x86_ucode_not_in_image.dts} | 0 ..._pos_size.dts => 041_unknown_pos_size.dts} | 0 .../{42_intel-fsp.dts => 042_intel-fsp.dts} | 0 .../{43_intel-cmc.dts => 043_intel-cmc.dts} | 0 ...l_ucode.dts => 044_x86_optional_ucode.dts} | 0 .../{45_prop_test.dts => 045_prop_test.dts} | 0 .../{46_intel-vbt.dts => 046_intel-vbt.dts} | 0 ...47_spl_bss_pad.dts => 047_spl_bss_pad.dts} | 0 ...tart16-spl.dts => 048_x86-start16-spl.dts} | 0 ...86_ucode_spl.dts => 049_x86_ucode_spl.dts} | 0 .../{50_intel_mrc.dts => 050_intel_mrc.dts} | 0 ...oot_spl_dtb.dts => 051_u_boot_spl_dtb.dts} | 0 ...spl_nodtb.dts => 052_u_boot_spl_nodtb.dts} | 0 .../test/{53_symbols.dts => 053_symbols.dts} | 0 ..._unit_address.dts => 054_unit_address.dts} | 0 .../{55_sections.dts => 055_sections.dts} | 0 ...56_name_prefix.dts => 056_name_prefix.dts} | 0 ..._contents.dts => 057_unknown_contents.dts} | 0 ....dts => 058_x86_ucode_spl_needs_retry.dts} | 0 ...59_change_size.dts => 059_change_size.dts} | 0 .../{60_fdt_update.dts => 060_fdt_update.dts} | 0 ..._update_bad.dts => 061_fdt_update_bad.dts} | 0 .../{62_entry_args.dts => 062_entry_args.dts} | 0 ...missing.dts => 063_entry_args_missing.dts} | 0 ...quired.dts => 064_entry_args_required.dts} | 0 ...ts => 065_entry_args_unknown_datatype.dts} | 0 .../binman/test/{66_text.dts => 066_text.dts} | 0 .../binman/test/{67_fmap.dts => 067_fmap.dts} | 0 ...d_by_arg.dts => 068_blob_named_by_arg.dts} | 0 .../binman/test/{69_fill.dts => 069_fill.dts} | 0 ..._fill_no_size.dts => 070_fill_no_size.dts} | 0 tools/binman/test/{71_gbb.dts => 071_gbb.dts} | 0 ...bb_too_small.dts => 072_gbb_too_small.dts} | 0 ...73_gbb_no_size.dts => 073_gbb_no_size.dts} | 0 .../test/{74_vblock.dts => 074_vblock.dts} | 0 ..._content.dts => 075_vblock_no_content.dts} | 0 ...phandle.dts => 076_vblock_bad_phandle.dts} | 0 ...bad_entry.dts => 077_vblock_bad_entry.dts} | 0 .../{78_u_boot_tpl.dts => 078_u_boot_tpl.dts} | 0 .../{79_uses_pos.dts => 079_uses_pos.dts} | 0 .../{80_fill_empty.dts => 080_fill_empty.dts} | 0 ...tart16-tpl.dts => 081_x86-start16-tpl.dts} | 0 ..._update_all.dts => 082_fdt_update_all.dts} | 0 .../{83_compress.dts => 083_compress.dts} | 0 .../test/{84_files.dts => 084_files.dts} | 0 ...es_compress.dts => 085_files_compress.dts} | 0 .../{86_files_none.dts => 086_files_none.dts} | 0 ...o_pattern.dts => 087_files_no_pattern.dts} | 0 ...88_expand_size.dts => 088_expand_size.dts} | 0 ...d_size_bad.dts => 089_expand_size_bad.dts} | 0 .../binman/test/{90_hash.dts => 090_hash.dts} | 0 ..._hash_no_algo.dts => 091_hash_no_algo.dts} | 0 ...ash_bad_algo.dts => 092_hash_bad_algo.dts} | 0 ...86_tpl_ucode.dts => 093_x86_tpl_ucode.dts} | 0 .../{94_fmap_x86.dts => 094_fmap_x86.dts} | 0 ...6_section.dts => 095_fmap_x86_section.dts} | 0 tools/binman/test/{96_elf.dts => 096_elf.dts} | 0 .../{97_elf_strip.dts => 097_elf_strip.dts} | 0 ..._hash_section.dts => 099_hash_section.dts} | 0 tools/binman/test/100_intel_refcode.dts | 14 + tools/dtoc/fdt.py | 2 +- 189 files changed, 5038 insertions(+), 1329 deletions(-) create mode 100644 include/string.h create mode 100644 test/dm/panel.c rename tools/binman/test/{01_invalid.dts => 001_invalid.dts} (100%) rename tools/binman/test/{02_missing_node.dts => 002_missing_node.dts} (100%) rename tools/binman/test/{03_empty.dts => 003_empty.dts} (100%) rename tools/binman/test/{04_invalid_entry.dts => 004_invalid_entry.dts} (100%) rename tools/binman/test/{05_simple.dts => 005_simple.dts} (100%) rename tools/binman/test/{06_dual_image.dts => 006_dual_image.dts} (100%) rename tools/binman/test/{07_bad_align.dts => 007_bad_align.dts} (100%) rename tools/binman/test/{08_pack.dts => 008_pack.dts} (100%) rename tools/binman/test/{09_pack_extra.dts => 009_pack_extra.dts} (100%) rename tools/binman/test/{10_pack_align_power2.dts => 010_pack_align_power2.dts} (100%) rename tools/binman/test/{11_pack_align_size_power2.dts => 011_pack_align_size_power2.dts} (100%) rename tools/binman/test/{12_pack_inv_align.dts => 012_pack_inv_align.dts} (100%) rename tools/binman/test/{13_pack_inv_size_align.dts => 013_pack_inv_size_align.dts} (100%) rename tools/binman/test/{14_pack_overlap.dts => 014_pack_overlap.dts} (100%) rename tools/binman/test/{15_pack_overflow.dts => 015_pack_overflow.dts} (100%) rename tools/binman/test/{16_pack_image_overflow.dts => 016_pack_image_overflow.dts} (100%) rename tools/binman/test/{17_pack_image_size.dts => 017_pack_image_size.dts} (100%) rename tools/binman/test/{18_pack_image_align.dts => 018_pack_image_align.dts} (100%) rename tools/binman/test/{19_pack_inv_image_align.dts => 019_pack_inv_image_align.dts} (100%) rename tools/binman/test/{20_pack_inv_image_align_power2.dts => 020_pack_inv_image_align_power2.dts} (100%) rename tools/binman/test/{21_image_pad.dts => 021_image_pad.dts} (100%) rename tools/binman/test/{22_image_name.dts => 022_image_name.dts} (100%) rename tools/binman/test/{23_blob.dts => 023_blob.dts} (100%) rename tools/binman/test/{24_sorted.dts => 024_sorted.dts} (100%) rename tools/binman/test/{25_pack_zero_size.dts => 025_pack_zero_size.dts} (100%) rename tools/binman/test/{26_pack_u_boot_dtb.dts => 026_pack_u_boot_dtb.dts} (100%) rename tools/binman/test/{27_pack_4gb_no_size.dts => 027_pack_4gb_no_size.dts} (100%) rename tools/binman/test/{28_pack_4gb_outside.dts => 028_pack_4gb_outside.dts} (100%) rename tools/binman/test/{29_x86-rom.dts => 029_x86-rom.dts} (100%) rename tools/binman/test/{30_x86-rom-me-no-desc.dts => 030_x86-rom-me-no-desc.dts} (100%) rename tools/binman/test/{31_x86-rom-me.dts => 031_x86-rom-me.dts} (100%) rename tools/binman/test/{32_intel-vga.dts => 032_intel-vga.dts} (100%) rename tools/binman/test/{33_x86-start16.dts => 033_x86-start16.dts} (100%) rename tools/binman/test/{34_x86_ucode.dts => 034_x86_ucode.dts} (100%) rename tools/binman/test/{35_x86_single_ucode.dts => 035_x86_single_ucode.dts} (100%) rename tools/binman/test/{36_u_boot_img.dts => 036_u_boot_img.dts} (100%) rename tools/binman/test/{37_x86_no_ucode.dts => 037_x86_no_ucode.dts} (100%) rename tools/binman/test/{38_x86_ucode_missing_node.dts => 038_x86_ucode_missing_node.dts} (100%) rename tools/binman/test/{39_x86_ucode_missing_node2.dts => 039_x86_ucode_missing_node2.dts} (100%) rename tools/binman/test/{40_x86_ucode_not_in_image.dts => 040_x86_ucode_not_in_image.dts} (100%) rename tools/binman/test/{41_unknown_pos_size.dts => 041_unknown_pos_size.dts} (100%) rename tools/binman/test/{42_intel-fsp.dts => 042_intel-fsp.dts} (100%) rename tools/binman/test/{43_intel-cmc.dts => 043_intel-cmc.dts} (100%) rename tools/binman/test/{44_x86_optional_ucode.dts => 044_x86_optional_ucode.dts} (100%) rename tools/binman/test/{45_prop_test.dts => 045_prop_test.dts} (100%) rename tools/binman/test/{46_intel-vbt.dts => 046_intel-vbt.dts} (100%) rename tools/binman/test/{47_spl_bss_pad.dts => 047_spl_bss_pad.dts} (100%) rename tools/binman/test/{48_x86-start16-spl.dts => 048_x86-start16-spl.dts} (100%) rename tools/binman/test/{49_x86_ucode_spl.dts => 049_x86_ucode_spl.dts} (100%) rename tools/binman/test/{50_intel_mrc.dts => 050_intel_mrc.dts} (100%) rename tools/binman/test/{51_u_boot_spl_dtb.dts => 051_u_boot_spl_dtb.dts} (100%) rename tools/binman/test/{52_u_boot_spl_nodtb.dts => 052_u_boot_spl_nodtb.dts} (100%) rename tools/binman/test/{53_symbols.dts => 053_symbols.dts} (100%) rename tools/binman/test/{54_unit_address.dts => 054_unit_address.dts} (100%) rename tools/binman/test/{55_sections.dts => 055_sections.dts} (100%) rename tools/binman/test/{56_name_prefix.dts => 056_name_prefix.dts} (100%) rename tools/binman/test/{57_unknown_contents.dts => 057_unknown_contents.dts} (100%) rename tools/binman/test/{58_x86_ucode_spl_needs_retry.dts => 058_x86_ucode_spl_needs_retry.dts} (100%) rename tools/binman/test/{59_change_size.dts => 059_change_size.dts} (100%) rename tools/binman/test/{60_fdt_update.dts => 060_fdt_update.dts} (100%) rename tools/binman/test/{61_fdt_update_bad.dts => 061_fdt_update_bad.dts} (100%) rename tools/binman/test/{62_entry_args.dts => 062_entry_args.dts} (100%) rename tools/binman/test/{63_entry_args_missing.dts => 063_entry_args_missing.dts} (100%) rename tools/binman/test/{64_entry_args_required.dts => 064_entry_args_required.dts} (100%) rename tools/binman/test/{65_entry_args_unknown_datatype.dts => 065_entry_args_unknown_datatype.dts} (100%) rename tools/binman/test/{66_text.dts => 066_text.dts} (100%) rename tools/binman/test/{67_fmap.dts => 067_fmap.dts} (100%) rename tools/binman/test/{68_blob_named_by_arg.dts => 068_blob_named_by_arg.dts} (100%) rename tools/binman/test/{69_fill.dts => 069_fill.dts} (100%) rename tools/binman/test/{70_fill_no_size.dts => 070_fill_no_size.dts} (100%) rename tools/binman/test/{71_gbb.dts => 071_gbb.dts} (100%) rename tools/binman/test/{72_gbb_too_small.dts => 072_gbb_too_small.dts} (100%) rename tools/binman/test/{73_gbb_no_size.dts => 073_gbb_no_size.dts} (100%) rename tools/binman/test/{74_vblock.dts => 074_vblock.dts} (100%) rename tools/binman/test/{75_vblock_no_content.dts => 075_vblock_no_content.dts} (100%) rename tools/binman/test/{76_vblock_bad_phandle.dts => 076_vblock_bad_phandle.dts} (100%) rename tools/binman/test/{77_vblock_bad_entry.dts => 077_vblock_bad_entry.dts} (100%) rename tools/binman/test/{78_u_boot_tpl.dts => 078_u_boot_tpl.dts} (100%) rename tools/binman/test/{79_uses_pos.dts => 079_uses_pos.dts} (100%) rename tools/binman/test/{80_fill_empty.dts => 080_fill_empty.dts} (100%) rename tools/binman/test/{81_x86-start16-tpl.dts => 081_x86-start16-tpl.dts} (100%) rename tools/binman/test/{82_fdt_update_all.dts => 082_fdt_update_all.dts} (100%) rename tools/binman/test/{83_compress.dts => 083_compress.dts} (100%) rename tools/binman/test/{84_files.dts => 084_files.dts} (100%) rename tools/binman/test/{85_files_compress.dts => 085_files_compress.dts} (100%) rename tools/binman/test/{86_files_none.dts => 086_files_none.dts} (100%) rename tools/binman/test/{87_files_no_pattern.dts => 087_files_no_pattern.dts} (100%) rename tools/binman/test/{88_expand_size.dts => 088_expand_size.dts} (100%) rename tools/binman/test/{89_expand_size_bad.dts => 089_expand_size_bad.dts} (100%) rename tools/binman/test/{90_hash.dts => 090_hash.dts} (100%) rename tools/binman/test/{91_hash_no_algo.dts => 091_hash_no_algo.dts} (100%) rename tools/binman/test/{92_hash_bad_algo.dts => 092_hash_bad_algo.dts} (100%) rename tools/binman/test/{93_x86_tpl_ucode.dts => 093_x86_tpl_ucode.dts} (100%) rename tools/binman/test/{94_fmap_x86.dts => 094_fmap_x86.dts} (100%) rename tools/binman/test/{95_fmap_x86_section.dts => 095_fmap_x86_section.dts} (100%) rename tools/binman/test/{96_elf.dts => 096_elf.dts} (100%) rename tools/binman/test/{97_elf_strip.dts => 097_elf_strip.dts} (100%) rename tools/binman/test/{99_hash_section.dts => 099_hash_section.dts} (100%) create mode 100644 tools/binman/test/100_intel_refcode.dts -- 2.19.0.605.g01d371f741-goog _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot