On 14.05.2018 23:03, Marek Vasut wrote:
On 05/14/2018 11:02 PM, Simon Goldschmidt wrote:
The boot ROMs of the socfpga platform limit the size of the
SPL to copy to less than the available SRAM.
(See "Intel SoC FPGA Embedded Development Suite User Guide")
According to this document, Cyclone V
On 14.05.2018 22:43, Marek Vasut wrote:
On 05/14/2018 09:43 PM, Simon Goldschmidt wrote:
On 14.05.2018 17:51, Stefan Roese wrote:
On 14.05.2018 11:06, Marek Vasut wrote:
On 05/14/2018 11:01 AM, Simon Goldschmidt wrote:
On 14.05.2018 10:17, Marek Vasut wrote:
On 05/14/2018 10:03 AM, Sim
Hi Simon,
On Wed, 2 May 2018 20:32:10 -0600, Simon Glass wrote:
> Hi Miquel,
>
> On 2 May 2018 at 02:59, Miquel Raynal wrote:
> > Add support for the TPM2_PCR_Read command.
> >
> > Change the command file and the help accordingly.
> >
> > Signed-off-by: Miquel Raynal
> > ---
> > cmd/tpm-v2.c
Hello Marek,
Am 12.05.2018 um 23:15 schrieb Marek Vasut:
Remove the rcar_i2c driver, since it's no longer used by any
board and will be superseded by a DM and DT capable variant.
Signed-off-by: Marek Vasut
Cc: Heiko Schocher
Cc: Nobuhiro Iwamatsu
---
drivers/i2c/Makefile | 1 -
driver
Hello Marek,
Am 12.05.2018 um 23:15 schrieb Marek Vasut:
Add derivative of the rcar_i2c driver which is capable of
probing itself from DM and uses DT.
Signed-off-by: Marek Vasut
Cc: Heiko Schocher
Cc: Nobuhiro Iwamatsu
---
drivers/i2c/Kconfig| 6 +
drivers/i2c/Makefile | 1 +
d
Hi Simon,
On Wed, 2 May 2018 20:32:13 -0600, Simon Glass wrote:
> Hi Miquel,
>
> On 2 May 2018 at 02:59, Miquel Raynal wrote:
> > Add support for the TPM2_GetCapability command.
> >
> > Change the command file and the help accordingly.
> >
> > Signed-off-by: Miquel Raynal
> > ---
> > cmd/tpm
2018-05-07 15:33 GMT+08:00 Jagan Teki :
> This series rework of previous version where it removes legacy
> usb phy handling and added phy driver on generic-phy framework.
>
> Current implementation phy driver is unable to get pinctrl, clock
> and reset details from DT since the dm code on these wil
Hi Simon,
On Wed, 2 May 2018 20:32:32 -0600, Simon Glass wrote:
> Hi Miquel,
>
> On 2 May 2018 at 02:59, Miquel Raynal wrote:
> > Add the tpm2_tis_spi driver that should support any TPMv2 compliant
> > (SPI) module.
> >
> > Signed-off-by: Miquel Raynal
> > ---
> > drivers/tpm/Kconfig
Hi Tom,
On Mon, 14 May 2018 15:43:07 -0400, Tom Rini wrote:
> On Mon, May 14, 2018 at 08:01:57PM +0200, Miquel Raynal wrote:
> > Hi Simon,
> >
> > On Wed, 2 May 2018 20:31:48 -0600, Simon Glass wrote:
> >
> > > Hi Miquel,
> > >
> > > On 2 May 2018 at 02:59, Miquel Raynal wrote:
> > > >
On 05/15/2018 09:14 AM, Simon Goldschmidt wrote:
>
>
> On 14.05.2018 23:03, Marek Vasut wrote:
>> On 05/14/2018 11:02 PM, Simon Goldschmidt wrote:
>>> The boot ROMs of the socfpga platform limit the size of the
>>> SPL to copy to less than the available SRAM.
>>> (See "Intel SoC FPGA Embedded Dev
On 05/15/2018 09:26 AM, Simon Goldschmidt wrote:
>
>
> On 14.05.2018 22:43, Marek Vasut wrote:
>> On 05/14/2018 09:43 PM, Simon Goldschmidt wrote:
>>>
>>>
>>> On 14.05.2018 17:51, Stefan Roese wrote:
On 14.05.2018 11:06, Marek Vasut wrote:
> On 05/14/2018 11:01 AM, Simon Goldschmidt wrot
Hi Tom,
The following changes since commit db6b0281eca0dc4a1a40d9ef52d543b09979a1bf:
Merge branch 'master' of git://git.denx.de/u-boot-rockchip (2018-05-14
18:13:59 -0400)
are available in the git repository at:
git://git.denx.de/u-boot-video.git master
for you to fetch changes up to 3ece
Current U-Boot supports TPM v1.2 specification. The new specification
(v2.0) is not backward compatible and renames/introduces several
functions. This series introduces the support for TPMv2.x chips.
First, some cleaning is done in TPM-related code. Then, the code is
split in two categories: gener
Fix following checkpatch.pl issue in TPM-related code:
CHECK: Please don't use multiple blank lines
Signed-off-by: Miquel Raynal
---
lib/tpm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/tpm.c b/lib/tpm.c
index c8bf06178f..0d8cdf9651 100644
--- a/lib/tpm.c
+++ b/lib/tpm.c
@@ -821
Fix following checkpatch.pl issue in TPM-related code:
WARNING: space prohibited between function name and open
parenthesis '('
Signed-off-by: Miquel Raynal
---
lib/tpm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/tpm.c b/lib/tpm.c
index 0d8cdf9651..58b0
Fix following checkpatch.pl issue in TPM-related code:
CHECK: Alignment should match open parenthesis
Signed-off-by: Miquel Raynal
---
cmd/tpm.c | 120 ++
lib/tpm.c | 100 ++-
2 files
Fix following checkpatch.pl issues in TPM-related code:
CHECK: '' may be misspelled - perhaps ''?
Signed-off-by: Miquel Raynal
---
include/tpm.h | 8
lib/tpm.c | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/tpm.h b/include/tpm.h
index 241597d879.
Fix following checkpatch.pl issues in TPM-related code:
CHECK: Prefer kernel type 'u8' over 'uint8_t'
CHECK: Prefer kernel type 'u16' over 'uint16_t'
CHECK: Prefer kernel type 'u32' over 'uint32_t'
Signed-off-by: Miquel Raynal
---
cmd/tpm.c | 86 -
include/tpm.h
Fix following checkpatch.pl issue in TPM-related code:
WARNING: Missing a blank line after declarations
Signed-off-by: Miquel Raynal
---
lib/tpm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/tpm.c b/lib/tpm.c
index cc76a46e78..e8ebbbe6cd 100644
--- a/lib/tpm.c
+++ b/lib/tpm.c
Fix following checkpatch.pl issue in TPM-related code:
CHECK: Prefer using the BIT macro
Signed-off-by: Miquel Raynal
---
include/tpm.h | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/include/tpm.h b/include/tpm.h
index 62117f6cc2..241597d879 100644
--- a/
Because both major revisions are not compatible at all, let's make them
mutually exclusive in Kconfig. This way we will be sure, when using a
command or a library function that it is supported by the right
revision.
Current drivers are currently prefixed by "tpm_", we will prefix TPMv2.x
files by
TPM are shipped with a few read-only register from which we can retrieve
for instance:
- vendor ID
- product ID
- revision ID
Product and vendor ID share the same register and are already referenced
in the tpm_chip structure. Add the revision ID entry which is missing.
Signed-off-by: Miquel Rayna
Both parameters 'duration_ms' and 'retry_time_ms' of the tpm_chip_priv
structure are documented is the comment above the declaration but 'buf'
was forgotten. Add the missing description.
Signed-off-by: Miquel Raynal
---
include/tpm-common.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/inc
There are no changes in this commit but a new organization of the code
as follow.
* cmd/ directory:
> move existing code from cmd/tpm.c in cmd/tpm-common.c
> move specific code in cmd/tpm-v1.c
> create a specific header file with generic definitions for
commands o
Choice between v1 and v2 compliant functions is done with the
configuration.
Create the various files that will receive TPMv2-only code on the same
scheme as for the TPMv1 code.
Signed-off-by: Miquel Raynal
Reviewed-by: Simon Glass
---
cmd/Makefile | 1 +
cmd/tpm-v2.c
TPM commands are much easier to read/write with these macros that will
transform words or integers into byte strings. This way, there is no
need to call pack_byte_string() while all variable length in a command
are known (and at must 4 bytes, which is a lot of them).
Signed-off-by: Miquel Raynal
Add support for the TPM2_PCR_Extend command.
Change the command file and the help accordingly.
Signed-off-by: Miquel Raynal
Reviewed-by: Simon Glass
---
cmd/tpm-v2.c | 37 +
include/tpm-v2.h | 10 ++
lib/tpm-v2.c | 38
Add support for the TPM2_DictionaryAttackParameters and
TPM2_DictionaryAttackLockReset commands.
Change the command file and the help accordingly.
Signed-off-by: Miquel Raynal
Reviewed-by: Simon Glass
---
cmd/tpm-v2.c | 67 +
include/tpm-v2.h | 2
Add support for the TPM2_Startup command.
Change the command file and the help accordingly.
Signed-off-by: Miquel Raynal
Reviewed-by: Simon Glass
---
cmd/tpm-v2.c | 26 ++
include/tpm-v2.h | 9 +
lib/tpm-v2.c | 21 +
3 files changed,
Add support for the TPM2_PCR_Read command.
Change the command file and the help accordingly.
Signed-off-by: Miquel Raynal
Reviewed-by: Simon Glass
---
cmd/tpm-v2.c | 43 +++
include/tpm-v2.h | 13 +
lib/tpm-v2.c | 42 +
Add support for the TPM2_HierarchyChangeAuth command.
Change the command file and the help accordingly.
Signed-off-by: Miquel Raynal
Reviewed-by: Simon Glass
---
cmd/tpm-v2.c | 59
include/tpm-v2.h | 14 ++
lib/tpm-v2.c
Add support for the TPM2_Selftest command.
Change the command file and the help accordingly.
Signed-off-by: Miquel Raynal
Reviewed-by: Simon Glass
---
cmd/tpm-v2.c | 26 ++
include/tpm-v2.h | 9 +
lib/tpm-v2.c | 12
3 files changed, 47 inse
Add TIS TPMv2.0 SPI module bindings.
Signed-off-by: Miquel Raynal
Reviewed-by: Simon Glass
---
doc/device-tree-bindings/tpm2/tis-tpm2-spi.txt | 18 ++
1 file changed, 18 insertions(+)
create mode 100644 doc/device-tree-bindings/tpm2/tis-tpm2-spi.txt
diff --git a/doc/device-tre
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
Reviewed-by: Simon Glass
---
lib/tpm-common.c | 10 +-
1 file changed, 9 insertions(+), 1 deletio
Add Sandbox TPMv2.0 module bindings.
Signed-off-by: Miquel Raynal
Reviewed-by: Simon Glass
---
doc/device-tree-bindings/tpm2/sandbox.txt | 11 +++
1 file changed, 11 insertions(+)
create mode 100644 doc/device-tree-bindings/tpm2/sandbox.txt
diff --git a/doc/device-tree-bindings/tpm2/s
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
Reviewed-by: Simon Glass
---
lib/tpm-common.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/tp
Add support for the TPM2_GetCapability command.
Change the command file and the help accordingly.
Signed-off-by: Miquel Raynal
Reviewed-by: Simon Glass
---
cmd/tpm-v2.c | 45 +
include/tpm-v2.h | 14 ++
lib/tpm-v2.c | 33 +
Add support for the TPM2_Clear command.
Change the command file and the help accordingly.
Signed-off-by: Miquel Raynal
Reviewed-by: Simon Glass
---
cmd/tpm-v2.c | 29 +
include/tpm-v2.h | 11 +++
lib/tpm-v2.c | 35 +++
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 comman
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
Reviewed-by: Simon Glass
---
test/py/tests/test_tpm2.py | 234 +
1 file changed, 234 insertions(+)
create mode
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
Reviewed-by: Simon Glass
---
drivers/tpm/Kconfig| 11 +-
drivers/tpm/Makefile | 1 +
drivers/tpm/tpm2_tis_sandbox.c |
Enable the Sandbox TPMv2 driver in all possible configurations.
Signed-off-by: Miquel Raynal
Reviewed-by: Simon Glass
---
configs/sandbox64_defconfig| 1 +
configs/sandbox_defconfig | 1 +
configs/sandbox_flattree_defconfig | 1 +
configs/sandbox_noblk_defconfig| 1 +
confi
This node declares the presence of the Sandbox TPMv2.x emulated chip,
available for testing.
Signed-off-by: Miquel Raynal
Reviewed-by: Simon Glass
---
arch/sandbox/dts/sandbox.dts | 4
arch/sandbox/dts/sandbox64.dts | 4
arch/sandbox/dts/test.dts | 4
3 files changed, 12 i
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
---
drivers/tpm/tpm2_tis_spi.c | 17 +
1 file changed, 17 insertions(+)
diff --git a/drivers/tpm/tpm2_tis_spi
Add the tpm2_tis_spi driver that should support any TPMv2 compliant
(SPI) module.
Signed-off-by: Miquel Raynal
---
drivers/tpm/Kconfig| 10 +
drivers/tpm/Makefile | 2 +
drivers/tpm/tpm2_tis_spi.c | 664 +
3 files changed, 676 insertio
While the `env export` can take as parameters variables to be exported,
`env import` does not have such a mechanism of variable selection.
Let's add a `-w` option that asks `env import` to look for the
`whitelisted_vars` env variable for a space-separated list of variables
that are whitelisted.
E
On 15.05.2018 11:14, Marek Vasut wrote:
On 05/15/2018 09:14 AM, Simon Goldschmidt wrote:
On 14.05.2018 23:03, Marek Vasut wrote:
On 05/14/2018 11:02 PM, Simon Goldschmidt wrote:
The boot ROMs of the socfpga platform limit the size of the
SPL to copy to less than the available SRAM.
(See "I
On 05/15/2018 12:21 PM, Simon Goldschmidt wrote:
>
>
> On 15.05.2018 11:14, Marek Vasut wrote:
>> On 05/15/2018 09:14 AM, Simon Goldschmidt wrote:
>>>
>>>
>>> On 14.05.2018 23:03, Marek Vasut wrote:
On 05/14/2018 11:02 PM, Simon Goldschmidt wrote:
> The boot ROMs of the socfpga platform
On 15.05.2018 12:30, Marek Vasut wrote:
On 05/15/2018 12:21 PM, Simon Goldschmidt wrote:
On 15.05.2018 11:14, Marek Vasut wrote:
On 05/15/2018 09:14 AM, Simon Goldschmidt wrote:
On 14.05.2018 23:03, Marek Vasut wrote:
On 05/14/2018 11:02 PM, Simon Goldschmidt wrote:
The boot ROMs of th
On 05/15/2018 12:37 PM, Simon Goldschmidt wrote:
>
>
> On 15.05.2018 12:30, Marek Vasut wrote:
>> On 05/15/2018 12:21 PM, Simon Goldschmidt wrote:
>>>
>>>
>>> On 15.05.2018 11:14, Marek Vasut wrote:
On 05/15/2018 09:14 AM, Simon Goldschmidt wrote:
>
>
> On 14.05.2018 23:03, Marek
Hi Chris,
On 10.05.2018 02:51, Chris Packham wrote:
On Thu, May 10, 2018 at 6:27 AM bodhi bodhi wrote:
Hi Chris,
What we have in Linux mainline is Zyxel NSA310 (Marvell 88f6281). The
Zyxel NSA310S (Marvell 88f6702) is actually a different box, which has not
been mainlined yet.
By the wa
On Thu, May 03, 2018 at 11:00:34PM +1200, Chris Packham wrote:
> Nothing defines CONFIG_DOVE so remove the code that uses it.
>
> Signed-off-by: Chris Packham
> Reviewed-by: Stefan Roese
> Acked-by: Joe Hershberger
Applied to u-boot/master, thanks!
--
Tom
signature.asc
Description: PGP si
On Thu, May 03, 2018 at 11:00:35PM +1200, Chris Packham wrote:
> Add Kconfig for MVGBE and update boards to select this.
>
> Signed-off-by: Chris Packham
> Reviewed-by: Stefan Roese
Applied to u-boot/master, thanks!
But please note that this seems to have disabled MVGBE on edminiv2 and
I'm su
On Mon, May 14, 2018 at 03:02:30PM +0300, Ramon Fried wrote:
> The check is necessary to avoid NULL pointer dereference.
>
> Signed-off-by: Ramon Fried
> Reviewed-by: Michal Simek
Applied to u-boot/master, thanks!
--
Tom
signature.asc
Description: PGP signature
On Thu, May 03, 2018 at 08:19:03PM +1200, Chris Packham wrote:
> When the following configuration is set
>
> # CONFIG_CMD_DHCP is not set
> CONFIG_CMD_BOOTP=y
> CONFIG_BOOTP_NTPSERVER=y
>
> The following compile error is observed
>
> error: used struct type value where scalar is require
On Thu, May 03, 2018 at 08:19:02PM +1200, Chris Packham wrote:
> Add a Kconfig option for BOOTP_NTPSERVER to enable the DHCP/BOOTP option
> to configure the sntp server address.
>
> Signed-off-by: Chris Packham
> Acked-by: Joe Hershberger
Applied to u-boot/master, thanks!
--
Tom
signature.
Hi, I am using tower board with arm vf6 controller i need to change default
Uart1 for debuging to Uart0 can anyone suggest what changes i need to make
for changing the Uart.
--
Sent from: http://u-boot.10912.n7.nabble.com/
___
U-Boot mailing list
U-Boo
On Fri, Apr 27, 2018 at 02:52:21PM +0200, Mario Six wrote:
> The CONFIG_PHY_MARVELL has already been migrated to Kconfig (some boards
> already had it in their Kconfig), but had not been moved for older
> boards.
>
> Move it to the defconfigs for all boards.
>
> Signed-off-by: Mario Six
> Acked
Hi Marek,
On Tue, May 15, 2018 at 2:16 PM, Jun Nie wrote:
> 2018-05-07 15:33 GMT+08:00 Jagan Teki :
>> This series rework of previous version where it removes legacy
>> usb phy handling and added phy driver on generic-phy framework.
>>
>> Current implementation phy driver is unable to get pinctrl
Hi Marek
On 04/27/2018 11:18 AM, Marek Vasut wrote:
> On 04/27/2018 11:01 AM, Patrice Chotard wrote:
>> This patch adds phy tranceiver driver for STM32 USB PHY
>> Controller (usbphyc) that provides dual port High-Speed
>> phy for OTG (single port) and EHCI/OHCI host controller
>> (two ports).
>
>
Hi Simon,
On Mon, May 14, 2018 at 01:52:09PM -0600, Simon Glass wrote:
> Hi,
>
> On 13 May 2018 at 16:45, Eugeniu Rosca wrote:
> > Hi Simon,
> >
> > On Mon, May 14, 2018 at 08:00:40AM +1000, Simon Glass wrote:
> >> Hi,
> >>
> >> Can you please check that this does not adversely impact code size?
Adding this device required some changes into the PMIC uclass.
Most notable one was the support for 3 bytes r/w operations.
Moreover, emulation and tests for this device has been added to
sandbox.
Travis-CI:
https://travis-ci.org/lmajewski/u-boot-dfu/builds/378678458
Changes in v3:
- None
- None
This commit adds some more defines for MC34708 PMIC.
Signed-off-by: Lukasz Majewski
---
Changes in v3:
- None
Changes in v2:
- None
include/fsl_pmic.h | 40
1 file changed, 40 insertions(+)
diff --git a/include/fsl_pmic.h b/include/fsl_pmic.h
index 6
The struct uc_pmic_priv's trans_len field stores the number of types to
be transmitted per PMIC transfer.
Signed-off-by: Lukasz Majewski
Reviewed-by: Simon Glass
---
Changes in v3:
- Rename dm_pmic_info to uc_pmic_priv
Changes in v2:
- New patch
drivers/power/pmic/pmic-uclass.c | 10 +++
This patch adds definition of the number of bytes sent at once by the
MC34708 PMIC.
Signed-off-by: Lukasz Majewski
Reviewed-by: Simon Glass
---
Changes in v3:
- None
Changes in v2:
- None
include/fsl_pmic.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/fsl_pmic.h b/include/fsl
This MC34708 PMIC is somewhat special - it used single transfers (R/W) with
3 bytes size - up till now U-Boot's PMICs only used 1 byte.
Signed-off-by: Lukasz Majewski
Reviewed-by: Simon Glass
---
Changes in v3:
- Enable MC34708 PMIC support in sandbox_{flattree|spl}_defconfig
Changes in v2:
-
Following tests has been added for mc34708 device:
- get_test for mc34708 PMIC
- Check if proper number of registers is read
- Check if default (emulated via i2c device) value is properly read
- Check if value write/read operation is correct
- Perform tests to check if pmic_clrsetbits() is working
This patch adds support for MC34708 PMIC, to be used with driver model
(DM).
Signed-off-by: Lukasz Majewski
---
Changes in v3:
- Rename dm_pmic_info with uc_pmic_priv
- Sort alphabetically includes
- Add comment regarding MC34708 byte ordering
Changes in v2:
- Support for uclass private data w
The common code can be excluded to be reused by tests for other PMIC.
Signed-off-by: Lukasz Majewski
Reviewed-by: Simon Glass
---
Changes in v3:
- None
Changes in v2:
- New patch
test/dm/pmic.c | 12 ++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/test/dm/pmic.c
This commit provides support for transmissions larger than 1 byte for
PMIC devices used with DM (e.g. MC34708 from NXP).
Signed-off-by: Lukasz Majewski
Reviewed-by: Simon Glass
---
Changes in v3:
- Rename dm_pmic_info -> uc_pmic_priv
- Replace printf() -> debug()
- Use priv->trans_len instead
This change enables support for MC34708 PMIC in sandbox. Now we can
emulate the I2C transfers larger than 1 byte.
Notable changes for this driver:
- From now on the register number is not equal to index in the buffer,
which emulates the PMIC registers
- The PMIC register's pool is now dynamica
This commit also provides the default values of the emulated MC34708 PMIC
internal registers content.
Signed-off-by: Lukasz Majewski
Reviewed-by: Simon Glass
---
Changes in v3:
- Fix DTS property style to compy with Device Tree specification
as suggested by Fabio.
Changes in v2:
- New patch
Up till now it was only possible to use 'pmic' command with a single byte
transmission.
The pmic_read|write functions has been replaced with ones, which don't need
the transmission length as a parameter.
Due to that it is possible now to read data from PMICs transmitting more
data than 1 byte at o
Is it possible to use *cached* addresses as device's output buffer?
E.g, is it a correct thing, to read an uImage from USB pen to cacheable
addresses in order to boot from these cached area?
U-Boot 2014.10-00051-g8cb056b-dirty / SDK (May 15 2018 - 17:11:35)
CPU: MIPS32 P5600 @ 1200 MHz (Rev
Implement timer_get_boot_us() based on available functions to support
bootstage command.
Signed-off-by: Michal Simek
---
arch/arm/cpu/armv8/generic_timer.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/cpu/armv8/generic_timer.c
b/arch/arm/cpu/armv8/generic_timer.c
index 3
Anyone who wants FASTBOOT before this series wants USB_FUNCTION_FASTBOOT.
Split USB_FUNCTION_FASTBOOT from FASTBOOT so they retain their existing
behaviour.
Signed-off-by: Alex Kiernan
Reviewed-by: Joe Hershberger
---
Changes in v4: None
Changes in v3:
- move Kconfig changes to previous patch
Add the response string as a parameter to fastboot_okay/fail, instead
of modifying a global, to match the contract expected by the AOSP
U-Boot code.
Signed-off-by: Alex Kiernan
Reviewed-by: Joe Hershberger
---
Changes in v4: None
Changes in v3:
- refactor for changes in master
Changes in v2: N
Add drivers/fastboot/fb_common.c, where fastboot_okay/fail are implemented
so we can call them from a non-USB implementation.
Introduce fastboot_response which takes varargs parameters so we can
use it to generate formatted response strings. Refactor fastboot_okay/fail
to use it.
Signed-off-by: A
Ensure that when selecting FASTBOOT_FLASH you end up with a buildable
configuration. Prior to this you could select NAND without MTDPARTS
and end up with an image which (surprisingly) excluded NAND.
Also fix dependencies on FASTBOOT_GPT_NAME/FASTBOOT_MBR_NAME which require
you have EFI_PARTITION/D
Add newlines so we format our output correctly.
Signed-off-by: Alex Kiernan
Acked-by: Joe Hershberger
Reviewed-by: Jocelyn Bohr
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
drivers/fastboot/fb_mmc.c | 28 ++--
1 file changed, 14 insertions(+), 14 de
Move FASTBOOT_VERSION to include/fastboot.h so when we merge the UDP code
we only have one definition.
Signed-off-by: Alex Kiernan
---
Changes in v4:
- leave strcmp_l1() in USB fastboot as we don't need it in UDP path
Changes in v3:
- new
Changes in v2: None
drivers/usb/gadget/f_fastboot.c |
CONFIG_FASTBOOT_GPT_NAME and CONFIG_FASTBOOT_MBR_NAME are always defined
by Kconfig if you're compiling this code, so remove these redundant
defaults.
Signed-off-by: Alex Kiernan
Reviewed-by: Simon Glass
---
Changes in v4: None
Changes in v3:
- new
Changes in v2: None
drivers/fastboot/fb_mmc
Compiling on a 64 bit target the arguments to _fb_nand_write are
incompatible:
drivers/fastboot/fb_nand.c: In function ‘_fb_nand_write’:
drivers/fastboot/fb_nand.c:101:42: warning: passing argument 3 of
‘nand_write_skip_bad’ from incompatible pointer type
[-Wincompatible-pointer-types]
r
Overriding fastboot_set_reboot_flag() in arch/arm/mach-omap2/boot-common.c
leaves it applying all boards that derive from this, not just the ones which
have support for Android bootloader flow. Move the weak function override to
the relevant board files.
Signed-off-by: Alex Kiernan
Reviewed-by: S
Rename fb_set_reboot_flag to fastboot_set_reboot_flag so it matches
all other fastboot code in the global name space. Fix the guards around
them so that they're dependent on FASTBOOT, not just USB_FUNCTION_FASTBOOT.
Move the weak implementation of fastboot_set_reboot_flag to fb_common.c
so we can
Add fs_get_type_name so we can get the current filesystem type.
Signed-off-by: Alex Kiernan
Reviewed-by: Simon Glass
---
Changes in v4:
- add docbook comments
Changes in v3:
- new
Changes in v2: None
fs/fs.c | 13 +
include/fs.h | 10 ++
2 files changed, 23 insertio
Merge UDP fastboot support from AOSP:
https://android.googlesource.com/platform/external/u-boot/+/android-o-mr1-iot-preview-8
Signed-off-by: Alex Kiernan
Signed-off-by: Alex Deymo
Signed-off-by: Jocelyn Bohr
Reviewed-by: Simon Glass
---
Changes in v4:
- guard fb_getvar/fb_command with UDP
This series merges the fastboot UDP support from AOSP into mainline
U-Boot.
Changes in UDP behaviour from the AOSP code, so it follows the existing USB
behaviour:
- 'boot' now follows the USB code and does 'bootm CONFIG_FASTBOOT_BUF_ADDR'.
I've added 'fastboot_bootcmd' which if set overrides t
Separate CMD_FASTBOOT from FASTBOOT and move code and configuration to
drivers/fastboot.
Signed-off-by: Alex Kiernan
Reviewed-by: Simon Glass
---
Changes in v4: None
Changes in v3:
- move imply ANDROID_BOOT_IMAGE, CMD_FASTBOOT to FASTBOOT from
USB_FUNCTION_FASTBOOT
- add depend on USB_FUNCTIO
- adds reading FMC swap setting from DTB to SDRAM driver
- sets FMC swap for stm32f429-disco board
- changes ram start address to 0x9000
Signed-off-by: Radoslaw Pietrzyk
---
arch/arm/dts/stm32f429-disco-u-boot.dtsi | 2 ++
drivers/ram/stm32_sdram.c| 37 +-
Introduce CONFIG_IMAGE_SPARSE and CONFIG_CMD_MMC_SWRITE so the "mmc
swrite" command is separated from the fastboot code.
Move image-sparse from common to lib so it's clear it's library code.
Signed-off-by: Alex Kiernan
---
Changes in v4:
- new
Changes in v3: None
Changes in v2: None
cmd/Kcon
On Sun, May 06, 2018 at 01:31:18PM +0200, Eugeniu Rosca wrote:
> Hello Igor, Alex, Kever,
>
> I wonder if it would be possible to keep the internal libavb headers in
> lib/libavb (similar to how it's done by NXP in [4]), since this would
> allow not rewriting the original include paths for such he
Hi Simon,
I've dug into DriverModel documentation and even created a PoC for
existing avb commands. The problem is that (maybe I missed out some
key concepts) I'm still
not sure if it makes sense to follow it driver mode in the context of
AVB 2.0 feature and
what kind of extra devices can be used
On Tue, May 15, 2018 at 11:50:08AM +0200, Anatolij Gustschin wrote:
> Hi Tom,
>
> The following changes since commit db6b0281eca0dc4a1a40d9ef52d543b09979a1bf:
>
> Merge branch 'master' of git://git.denx.de/u-boot-rockchip (2018-05-14
> 18:13:59 -0400)
>
> are available in the git repository
On Tue, May 15, 2018 at 01:31:11PM +1200, Chris Packham wrote:
> mv_ddr_build_message.c is generated in Marvell's standalone mv_ddr code.
> When imported into u-boot we need to add the appropriate SPDX tag and
> re-format it slightly.
>
> Signed-off-by: Chris Packham
Applied to u-boot/master, t
On Tue, May 15, 2018 at 11:56:59AM +0200, Miquel Raynal wrote:
> Fix following checkpatch.pl issues in TPM-related code:
>
> CHECK: Prefer kernel type 'u8' over 'uint8_t'
> CHECK: Prefer kernel type 'u16' over 'uint16_t'
> CHECK: Prefer kernel type 'u32' over 'uint32_t'
>
> Signed-of
On Tue, May 15, 2018 at 11:57:00AM +0200, Miquel Raynal wrote:
> Fix following checkpatch.pl issue in TPM-related code:
>
> CHECK: Alignment should match open parenthesis
>
> Signed-off-by: Miquel Raynal
Reviewed-by: Tom Rini
--
Tom
signature.asc
Description: PGP signature
___
On Tue, May 15, 2018 at 08:15:31AM +0200, Michal Simek wrote:
> On 14.5.2018 23:33, Ramon Fried wrote:
> > Snapdragon bootloader needs to jump from 32bit to 64bit
> > Allow booting in these cases when CONFIG_AARCH32_SUPPORT_ARM64 is defined.
> >
> > Signed-off-by: Ramon Fried
> > ---
> > common/
On Tue, May 15, 2018 at 11:56:57AM +0200, Miquel Raynal wrote:
> Fix following checkpatch.pl issue in TPM-related code:
>
> CHECK: Please don't use multiple blank lines
>
> Signed-off-by: Miquel Raynal
Reviewed-by: Tom Rini
--
Tom
signature.asc
Description: PGP signature
_
On Tue, May 15, 2018 at 11:57:03AM +0200, Miquel Raynal wrote:
> Fix following checkpatch.pl issue in TPM-related code:
>
> WARNING: Missing a blank line after declarations
>
> Signed-off-by: Miquel Raynal
Reviewed-by: Tom Rini
--
Tom
signature.asc
Description: PGP signature
_
1 - 100 of 205 matches
Mail list logo