- May 26, 2018
-
-
Patrick Delaunay authored
The register TAMP_BOOT_CONTEXT is already updated in get_bootmode() in cpu.c and no need to be done twice. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by:
Patrice Chotard <patrice.chotard@st.com>
-
Patrick Delaunay authored
Add the needed information to enable the debug uart to have printf before the serial driver probe (so before probe for clock, pincontrol and reset drivers) To enable the debug on uart 4 (default console): + CONFIG_DEBUG_UART=y + CONFIG_DEBUG_UART_STM32=y Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by:
Patrice Chotard <patrice.chotard@st.com>
-
Patrick Delaunay authored
Add possibility to update the serial parity used. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by:
Patrice Chotard <patrice.chotard@st.com>
-
Patrick Delaunay authored
Implements serial setparity ops to allow uart parity change. It allows to select ODD, EVEN or NONE parity. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by:
Patrice Chotard <patrice.chotard@st.com>
-
Patrice Chotard authored
Rename USART_ISR_FLAG_xxx bits to USART_ISR_xxx bits and USART_ICR_OREF to USART_ICR_ORECF in order to match datasheets. Sort defines by descendant order. Signed-off-by:
Patrice Chotard <patrice.chotard@st.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Patrick Delaunay authored
Add support for early debug printf, before the availability of driver model and device tree support. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by:
Patrice Chotard <patrice.chotard@st.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Radoslaw Pietrzyk authored
- adds reading FMC swap setting from DTB to SDRAM driver - sets FMC swap for stm32f429-disco board - changes ram start address to 0x90000000 Signed-off-by:
Radoslaw Pietrzyk <radoslaw.pietrzyk@gmail.com> Acked-by:
Patrice Chotard <patrice.chotard@st.com>
-
Ramon Fried authored
Serial port configuration was missing from previous implementation. It only worked because it was preconfigured by LK. This patch configures the uart for 115200 8N1. It also configures the pin mux for uart pins using DT bindings. Signed-off-by:
Ramon Fried <ramon.fried@gmail.com>
-
Ramon Fried authored
Added TLMM pinctrl node for pin muxing & config. Additionally, added a serial node for uart. Signed-off-by:
Ramon Fried <ramon.fried@gmail.com>
-
Ramon Fried authored
This patch adds pinmux and pinctrl driver for TLMM subsystem in snapdragon chipsets. Currently, supporting only 8016, but implementation is generic and 8096 can be added easily. Driver is using the generic dt-bindings and doesn't introduce any new bindings (yet). Signed-off-by:
Ramon Fried <ramon.fried@gmail.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Ramon Fried authored
UART clock enabling flow was wrong. Changed the flow according to downstream implementation in LK. Signed-off-by:
Ramon Fried <ramon.fried@gmail.com>
-
Ramon Fried authored
The uart is already initialized prior to relocation, reinitialization after relocation is unnecessary. Signed-off-by:
Ramon Fried <ramon.fried@gmail.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Ramon Fried authored
Failure to set the clocks will causes data abort exception when trying to write to AHB uart registers. This patch ensures that we don't touch these registers if clock setting failed. Signed-off-by:
Ramon Fried <ramon.fried@gmail.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Ramon Fried authored
The clock and serial nodes are needed before relocation. This patch ensures that the msm-serial driver will probe and provide uart output before relocation. Signed-off-by:
Ramon Fried <ramon.fried@gmail.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Chris Packham authored
Now that there are more boards defining this it can be removed from the whitelist. Signed-off-by:
Chris Packham <judge.packham@gmail.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Tuomas Tynkkynen authored
Add a doc comment for pciauto_region_allocate(). Signed-off-by:
Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Tuomas Tynkkynen authored
Currently, if we happen to allocate an address requiring 64 bits to a device only supporting 32-bit BARs, the address eventually gets silently truncated to 32 bits. Avoid this by adding a new flag to pciauto_region_allocate() to bail out in such situations. Signed-off-by:
Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Tuomas Tynkkynen authored
All of the debug output from this file is squished to one line. Fix it. Signed-off-by:
Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Tuomas Tynkkynen authored
Now that U-Boot works fine with highmem enabled, there is no need to tell users to disable highmem. Signed-off-by:
Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Tuomas Tynkkynen authored
Now that PCI devices work with highmem-enabled QEMU emulation, bump up the RAM size in the MMU tables to gain access to the full 255 GB of RAM potential instead of the puny 3 GB. Signed-off-by:
Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Tuomas Tynkkynen authored
Currently, qemu_arm_defconfig and qemu_arm64_defconfig only work with the 'highmem=off' parameter passed to QEMU's virt machine. The reason is that when 'highmem' is not disabled, QEMU appends 64-bit a memory resource to the PCI controller's regions property in DT in addition to the 32-bit PCI memory window in low memory. And the current DT parsing code picks the last (thus the 64-bit one) memory resource, whose address eventually gets silently truncated to 32 bits because CONFIG_SYS_PCI_64BIT is not set, which obviously causes PCI to break. Avoid this problem by ignoring memory regions whose addresses are above the 32-bit boundary when CONFIG_SYS_PCI_64BIT is not set. Signed-off-by:
Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Miquel Raynal authored
Enable the Sandbox TPMv2 driver in all possible configurations. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Miquel Raynal authored
This node declares the presence of the Sandbox TPMv2.x emulated chip, available for testing. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Miquel Raynal authored
Add Sandbox TPMv2.0 module bindings. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Miquel Raynal authored
This driver can emulate all the basic functionalities of a TPMv2.x chip and should behave like them during regular testing. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Miquel Raynal authored
Add tests for the TPMv2.x commands. These commands may run both on a physical TPM and with the sandbox driver. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Miquel Raynal authored
Add TIS TPMv2.0 SPI module bindings. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Miquel Raynal authored
On some designs, the reset line could not be connected to the SoC reset line, in this case, request the GPIO and ensure the chip gets reset. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Miquel Raynal authored
Add the tpm2_tis_spi driver that should support any TPMv2 compliant (SPI) module. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Miquel Raynal authored
Add support for the TPM2_PCR_SetAuthPolicy and TPM2_PCR_SetAuthValue commands. Change the command file and the help accordingly. Note: These commands could not be tested because the TPMs available do not support them, however they could be useful for someone else. The user is warned by the command help. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Miquel Raynal authored
Add support for the TPM2_HierarchyChangeAuth command. Change the command file and the help accordingly. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Miquel Raynal authored
Add support for the TPM2_DictionaryAttackParameters and TPM2_DictionaryAttackLockReset commands. Change the command file and the help accordingly. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Miquel Raynal authored
Add support for the TPM2_GetCapability command. Change the command file and the help accordingly. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Miquel Raynal authored
Add support for the TPM2_PCR_Read command. Change the command file and the help accordingly. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Miquel Raynal authored
Add support for the TPM2_PCR_Extend command. Change the command file and the help accordingly. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Miquel Raynal authored
Add support for the TPM2_Clear command. Change the command file and the help accordingly. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Miquel Raynal authored
Add support for the TPM2_Selftest command. Change the command file and the help accordingly. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Miquel Raynal authored
Add support for the TPM2_Startup command. Change the command file and the help accordingly. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Miquel Raynal authored
Instead of returning a generic 'library' error, report back the actual error code so it can be displayed to the user by the regular error path. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Miquel Raynal authored
When debugging, it is welcome to get more information about what the TPM returns. Add the possibility to print the packets received to show their exact content. Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Tom Rini <trini@konsulko.com>
-