u-boot-brain/drivers
Miquel Raynal 2a2096ea60 tpm: allow TPM v1 and v2 to be compiled at the same time
While there is probably no reason to do so in a real life situation, it
will allow to compile test both stacks with the same sandbox defconfig.

As we cannot define two 'tpm' commands at the same time, the command for
TPM v1 is still called 'tpm' and the one for TPM v2 'tpm2'. While this
is the exact command name that must be written into eg. test files, any
user already using the TPM v2 stack can continue to do so by just writing
'tpm' because as long as TPM v1 support is not compiled, U-Boot prompt
will search for the closest command named after 'tpm'.

The command set can also be changed at runtime (not supported yet, but
ready to be), but as one can compile only either one stack or the other,
there is still one spot in the code where conditionals are used: to
retrieve the v1 or v2 command set.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
[trini: In sandbox_tpm2_fill_buf() use NULL not \0 to ensure NULL
terminated string due to LLVM warning]
Signed-off-by: Tom Rini <trini@konsulko.com>
2018-07-28 11:57:38 -04:00
..
adc adc: meson-saradc: fix regmap_init_mem call 2018-06-19 07:31:46 -04:00
ata scsi: ceva: add ls1012a soc support 2018-07-26 10:59:35 -07:00
bios_emulator bios_emulator: remove assignment without effect 2018-07-23 14:33:21 -04:00
block block: Add SPL_BLOCK_CACHE and default n 2018-06-18 14:43:13 -04:00
bootcount bootcount: flush after storing the bootcounter 2018-07-23 09:55:20 +02:00
clk stm32mp1: clk: support digital bypass 2018-07-20 15:55:07 -04:00
core dm: core: Add logging of some common errors 2018-07-09 09:11:00 -06:00
cpu cpu: bmips: fix probe to get the address 2018-07-11 14:23:55 +02:00
crypto SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr drivers/ddr/fsl: fix '__hwconfig without a buffer' messages 2018-07-26 11:54:00 -07:00
demo SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dfu SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dma SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fastboot usb: fastboot: Convert USB f_fastboot to shared fastboot 2018-05-30 11:59:21 +02:00
firmware SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fpga drivers: fpga: zynqpl: fix compilation with SPL 2018-07-19 10:49:57 +02:00
gpio Convert CONFIG_DA8XX_GPIO to Kconfig 2018-07-23 14:33:21 -04:00
i2c rockchip: i2c: enable i2c controller for rk3066 and rk3188 2018-07-21 01:55:25 +02:00
input SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
led led: bcm6328: read base address in the parent node 2018-07-11 14:23:55 +02:00
mailbox SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
memory SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
misc misc: stm32: Add STM32MP1 support 2018-07-20 15:55:05 -04:00
mmc mmc: break out get_op_cond code to its own function 2018-07-23 10:17:04 +02:00
mtd mtd: nand: denali: correct buffer alignment for DMA transfer 2018-07-25 08:47:52 +09:00
net net: zynq_gem: convert to use livetree 2018-07-26 14:08:23 -05:00
nvme SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pch SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci dm: pci: Use a 1:1 mapping for bus <-> phy addresses 2018-06-13 09:50:57 +08:00
pcmcia SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
phy phy: Be able to get phy from PHY provider 2018-07-19 16:31:35 -04:00
pinctrl pinctrl: renesas: Fix register usage in sh_pfc_{read,write} 2018-06-19 06:15:55 +02:00
power power: regulator: stpmu1: add power off delay 2018-07-19 16:31:36 -04:00
pwm pwm: sunxi: add support for PWM found on Allwinner A64 2018-05-15 08:18:09 +02:00
qe SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ram ram: bmips: convert to use live dt 2018-06-01 15:56:02 +02:00
remoteproc SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
reset misc: stm32: Add STM32MP1 support 2018-07-20 15:55:05 -04:00
rtc rtc: compile date.c if DM_RTC 2018-07-24 09:25:23 -04:00
scsi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial sandbox: Don't disable ctrlc() on sandbox if in raw mode 2018-07-26 14:08:17 -05:00
smem drivers: smem: sandbox 2018-07-19 16:31:38 -04:00
soc SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sound SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spi spi: stm32_qspi: rework mode management 2018-07-23 14:33:21 -04:00
spmi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sysreset Merge git://git.denx.de/u-boot-x86 2018-07-20 19:31:30 -04:00
thermal SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
timer x86: timer: tsc: Allow specifying clock rate from device tree again 2018-07-02 09:23:28 +08:00
tpm tpm: allow TPM v1 and v2 to be compiled at the same time 2018-07-28 11:57:38 -04:00
usb sunxi: A64: OHCI: prevent turning off shared USB clock 2018-07-05 11:25:50 +02:00
video video: arm: rpi: Add brcm,bcm2708-fb compatible 2018-07-02 15:23:50 +02:00
watchdog watchdog: cadence: Do not stop wdt in probe 2018-07-19 10:49:56 +02:00
Kconfig soc: qualcomm: Add Shared Memory Manager driver 2018-07-19 16:31:37 -04:00
Makefile dm: SMEM (Shared memory) uclass 2018-07-19 16:31:37 -04:00