On 12/22/20 6:00 AM, Bin Meng wrote:
Hi,
Please check the log:
https://dev.azure.com/bmeng/GitHub/_build/results?buildId=302&view=logs&j=cf9e8018-ed89-5c32-5567-a8524d857521&t=4197aefe-2a0c-53e5-5744-78f78ce6022b
Re-run the pipeline with the same commit, the tests pass.
https://dev.azure.com/bm
On 12/22/20 9:14 AM, Heinrich Schuchardt wrote:
On 12/22/20 6:00 AM, Bin Meng wrote:
Hi,
Please check the log:
https://dev.azure.com/bmeng/GitHub/_build/results?buildId=302&view=logs&j=cf9e8018-ed89-5c32-5567-a8524d857521&t=4197aefe-2a0c-53e5-5744-78f78ce6022b
Re-run the pipeline with the sam
Dump adc-keys bindings documentation from Linux kernel source tree v5.10.
Signed-off-by: Marek Szyprowski
---
doc/device-tree-bindings/input/adc-keys.txt | 49 +
1 file changed, 49 insertions(+)
create mode 100644 doc/device-tree-bindings/input/adc-keys.txt
diff --git a/doc
Hi All,
This patchset adds all building blocks needed for checking the 'Function'
button state in the boot script on Amlogic A311D based VIM3 board. This
button is connected to the ADC lines of the SoC, so it required to enable
meson SARADC, the clocks needed for it and a simple button-adc drivers
Add a simple Analog to Digital Converter device based button driver. This
driver binds to the 'adc-keys' device tree node.
Signed-off-by: Marek Szyprowski
---
drivers/button/Kconfig | 8 +++
drivers/button/Makefile | 1 +
drivers/button/button-adc.c | 121 +++
Add options required to check the 'Function' button state.
Signed-off-by: Marek Szyprowski
---
configs/khadas-vim3_defconfig | 2 ++
configs/khadas-vim3l_defconfig | 2 ++
2 files changed, 4 insertions(+)
diff --git a/configs/khadas-vim3_defconfig b/configs/khadas-vim3_defconfig
index 5d16652f
Hi Miquel
Le 22/12/2020 à 08:46, Miquel Raynal a écrit :
Hi Richard,
Richard Genoud wrote on Mon, 21 Dec 2020
17:17:56 +0100:
Hi Miquel
Le 21/12/2020 à 16:49, Miquel Raynal a écrit :
Hi Richard,
Richard Genoud wrote on Mon, 21 Dec 2020
16:40:51 +0100:
Hi Miquel,
Le 21/12/2020 à 16:2
On 12/22/20 9:56 AM, Marek Szyprowski wrote:
Add a simple Analog to Digital Converter device based button driver. This
driver binds to the 'adc-keys' device tree node.
Signed-off-by: Marek Szyprowski
---
drivers/button/Kconfig | 8 +++
drivers/button/Makefile | 1 +
drivers/but
On 21.12.20 11:09, Pali Rohár wrote:
This change extends previous commit 061c6d1b238a ("arm: mvebu: Espressobin:
Detect presence of emmc at runtime") and when emmc is not present then emmc
is removed from U-Boot DM and corresponding slot is disabled. Therefore on
Espressobin board without soldere
On 12/22/20 9:56 AM, Marek Szyprowski wrote:
Dump adc-keys bindings documentation from Linux kernel source tree v5.10.
Signed-off-by: Marek Szyprowski
---
doc/device-tree-bindings/input/adc-keys.txt | 49 +
1 file changed, 49 insertions(+)
create mode 100644 doc/device-
Hi All,
This patchset adds support for SKIP and SCRIPT entity types to the DFU
subsystem. They significantly extends the flexibility of the storage
flashing commands. Together with the recently posted 'Add MBR partition
table creation and verify command' patchset and proper script it allows
to cre
From: Jaehoon Chung
Define a new 'SKIP' type for the DFU entities. The flashed data for that
entity is simply ignored without returning any error values.
This allows to have one flashing procedure and images for the different
board types or variants, where each board uses only the images relevan
Reinitialize dfu_env_entities after flashing the 'SCRIPT' entity to
ensure that the potential changes to the 'dfu_alt_info' environment
variable are applied.
Signed-off-by: Marek Szyprowski
---
cmd/thordown.c | 19 ---
drivers/usb/gadget/f_thor.c | 3 +++
include/th
Reinitialize DFU USB gadget after flashing the 'SCRIPT' entity to ensure
that the potential changes to the 'dfu_alt_info' environment variable are
applied.
Signed-off-by: Marek Szyprowski
---
cmd/dfu.c| 14 +-
common/dfu.c | 3 +++
2 files changed, 16 insertions(+), 1 deletion(-
Define a new 'SCRIPT' type for DFU entities. The downloaded data are
treated as simple u-boot's scripts and executed with run_command_list()
function.
Flashing the 'SCRIPT' entity might result in changing the 'dfu_alt_info'
environment variable from the flashed script, so add a global variable
for
Use the default MMC device set in the command line if entity specifies it
as -1. This allows to use the same dfu_alt_info string for different MMC
devices (like embedded eMMC and external SD card if data layout is the
same on both devices).
Signed-off-by: Marek Szyprowski
---
drivers/dfu/dfu_mmc
Hi Tom and Stefano,
On Tue, Dec 22, 2020 at 3:01 AM Peng Fan wrote:
>
> > Subject: [PATCH] imx8mp_evk: Increase CONFIG_SYS_MALLOC_F_LEN
> >
> > When booting imx8mp-evk the following allocation error message is seen:
> >
> > U-Boot 2021.01-rc3-00200-ge668bec96a5f (Dec 21 2020 - 14:36:42 -0300)
> >
On 22.12.20 11:59, Fabio Estevam wrote:
> Hi Tom and Stefano,
>
> On Tue, Dec 22, 2020 at 3:01 AM Peng Fan wrote:
>>
>>> Subject: [PATCH] imx8mp_evk: Increase CONFIG_SYS_MALLOC_F_LEN
>>>
>>> When booting imx8mp-evk the following allocation error message is seen:
>>>
>>> U-Boot 2021.01-rc3-00200-g
On 12/22/20 11:12 AM, Heinrich Schuchardt wrote:
On 12/22/20 9:56 AM, Marek Szyprowski wrote:
Dump adc-keys bindings documentation from Linux kernel source tree v5.10.
Signed-off-by: Marek Szyprowski
---
doc/device-tree-bindings/input/adc-keys.txt | 49 +
1 file changed,
@Simon: I had to roll back all "if (CONFIG_IS_ENABLED(DM_DMA)" uses. As
per buildman it breaks compilation when !DM or !DM_DMA due to access to
undefined variables, namely dev and dev->dma_offset. I figure in u-boot
we root for small Image sizes, so defining the variables regarless of
them being ne
The Raspberry Pi Foundation released the new RPi400 which we want to
detect, so we can enable Ethernet on it and know the correct device tree
file name.
Signed-off-by: Nicolas Saenz Julienne
---
Changes since v1:
- The RPi Foundation introduced a RPi400 specific device tree, so use
that fil
Calculating the DMA offset between a bus address space and CPU's every
time we call phys_to_bus() and bus_to_phys() isn't ideal performance
wise, as it implies traversing the device tree from the device's node up
to the root. Since this information is static and available before the
device's initia
The Raspberry Pi Foundation released the new Compute Module 4 which we
want to detect, so we can enable Ethernet on it and know the correct
device tree file name.
Note that this sets the Ethernet option to true since the official CM4
IO board has an Ethernet port. But that might not be the case wh
Introduce some new nodes in sandbox's test device-tree and dm tests in
order to validate dev_get_dma_range().
Signed-off-by: Nicolas Saenz Julienne
Reviewed-by: Simon Glass
---
Changes since v3:
- Use ut_assertok() instead of ut_assert(!func())
arch/sandbox/dts/test.dts | 17 ++
So far we've assumed a fixed configuration for inbound windows as we had
a single user for this controller. But the controller's DMA constraints
were improved starting with BCM2711's B1 revision of the SoC, notably
available in CM4 and Pi400. They allow for wider inbound windows. We can
now cover t
Add the following functions to get a specific device's DMA ranges:
- dev_get_dma_range()
- ofnode_get_dma_range()
- of_get_dma_range()
- fdt_get_dma_range()
They are specially useful in oder to be able validate a physical address
space range into a bus's and to convert addresses from and to add
These functions, instead of relying on hard-coded platform-specific
address translations, make use of the DMA constraints provided by the DM
core. This allows for per-device translations.
We can't yet get rid of the legacy phys_to_bus()/bus_to_phys()
implementations as some of its users are not in
Add test to validate dev->dma_offset is properly set on devices.
Signed-off-by: Nicolas Saenz Julienne
Reviewed-by: Simon Glass
---
Changes since v3:
- Use ut_assertok() instead of ut_assert(!func())
arch/sandbox/dts/test.dts | 4
configs/sandbox64_defconfig| 1 +
con
By reusing DT nodes already available in sandbox's test DT introduce a
test to validate dev_phys_to_bus()/dev_bus_to_phys().
Signed-off-by: Nicolas Saenz Julienne
Reviewed-by: Simon Glass
---
Changes since v3:
- Use ut_assertok() instead of ut_assert(!func())
- Use ut_assert_addr()
test/dm/
This will allow us to use DM variants of phys_to_bus()/bus_to_phys()
when relevant.
Signed-off-by: Nicolas Saenz Julienne
Reviewed-by: Simon Glass
---
Changes since v3
- Don't call phys_to_bus()/bus_to_phys(), we only support DM
drivers/mmc/sdhci.c | 7 ---
include/mmc.h | 10
So far we've been content with passing physical addresses when
configuring memory addresses into XHCI controllers, but not all
platforms have buses with transparent mappings. Specifically the
Raspberry Pi 4 might introduce an offset to memory accesses incoming
from its PCIe port.
Introduce xhci_vi
The DM_DMA option is needed in order to translate physical address into
bus addresses on a per-device basis.
Signed-off-by: Nicolas Saenz Julienne
Reviewed-by: Simon Glass
---
configs/rpi_4_32b_defconfig | 1 +
configs/rpi_4_defconfig | 1 +
configs/rpi_arm64_defconfig | 1 +
3 files change
The 'brcm,bcm2711-hdmi0' compatible string is used on RPi4 instead of
'brcm,bcm2835-hdmi' since the IP core was upgraded (now called VC6
instead of VC4). This has no functional change as far as u-boot driver
is concerned. So simply add the compatible string.
Signed-off-by: Nicolas Saenz Julienne
Heinrich Schuchardt writes:
> efivar.py requires that 'set' is the first parameter.
> I will fix the commit message.
Thanks!
> Could you, please, provide a man-page for the tool as restructured text
> in doc/usage/. Please, check that it is correct with 'make htmldocs'.
Yes, will do it.
Hi Dario,
On 22/11/20 9:41 pm, Dario Binacchi wrote:
>
> The series was born from the need to manage the PWM backlight of the
> display connected to my beaglebone board. To hit the target, I had to
> develop drivers for PWM management which in turn relied on drivers for
> managing timers and cloc
Hi Pali,
[...snip...]
> +++ b/configs/nokia_rx51_defconfig
> @@ -29,6 +29,7 @@ CONFIG_CMD_BOOTMENU=y
> # CONFIG_CMD_SAVEENV is not set
> # CONFIG_CMD_ENV_EXISTS is not set
> # CONFIG_CMD_FLASH is not set
> +# CONFIG_CMD_SLEEP is not set
> CONFIG_CMD_GPIO=y
> CONFIG_CMD_I2C=y
> CONFIG_CMD_MM
On Tuesday 22 December 2020 19:26:21 Lokesh Vutla wrote:
> Hi Pali,
>
> [...snip...]
>
> > +++ b/configs/nokia_rx51_defconfig
> > @@ -29,6 +29,7 @@ CONFIG_CMD_BOOTMENU=y
> > # CONFIG_CMD_SAVEENV is not set
> > # CONFIG_CMD_ENV_EXISTS is not set
> > # CONFIG_CMD_FLASH is not set
> > +# CONFIG_C
Add some handy defines for some hardcoded magic numbers related to
extended partition handling.
Signed-off-by: Marek Szyprowski
---
disk/part_dos.c | 6 +++---
disk/part_dos.h | 3 +++
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/disk/part_dos.c b/disk/part_dos.c
index ef706fb5
write_mbr_partition() function name is a bit misleading, so rename it to
write_mbr_sector(). This is a preparation for adding code for writing a
complete MBR partition layout.
Signed-off-by: Marek Szyprowski
---
disk/part_dos.c | 2 +-
drivers/fastboot/fb_mmc.c | 2 +-
include/part.h
Make functions not used outside this file static.
Signed-off-by: Marek Szyprowski
---
disk/part_dos.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/disk/part_dos.c b/disk/part_dos.c
index 3b79b9b1b8..2c4ad0b6ba 100644
--- a/disk/part_dos.c
+++ b/disk/part_dos.c
@@ -302,
Add a code for creating and writing MBR partition layout. The code
generates similar layout of EBRs (Exteneded Block Records) and logical
volumes as Linux's fdisk utility.
Signed-off-by: Marek Szyprowski
---
disk/part_dos.c | 167
disk/part_dos.h
Use a generic helper for reading LE32 integers.
Signed-off-by: Marek Szyprowski
---
disk/part_dos.c | 28 +---
1 file changed, 9 insertions(+), 19 deletions(-)
diff --git a/disk/part_dos.c b/disk/part_dos.c
index 20d35dc9cd..3b79b9b1b8 100644
--- a/disk/part_dos.c
+++ b/
Add a 'mbr' command to let user create or verify MBR partition layout
based on the provided text description. The partition layout is
altearnatively read from 'mbr_parts' environment variable. This can be
used in scripts to help system image flashing tools to ensure proper
partition layout.
The sy
Hi All,
This patchset adds 'mbr' command to let one create or verify MBR (Master
Boot Record) partition layout based on the provided text description.
This can be used in scripts to help system flashing tools/scripts to
ensure proper partition layout. It has been inspired by the 'gpt' command
alre
On 01/12/20 12:57 am, Pali Rohár wrote:
> Now when usbtty serial console is fixed in U-Boot enable CONFIG_USB_TTY for
> Nokia RX-51 board by default.
>
> Fix also USB product id as U-Boot ignores CONFIG_USBD_PRODUCTID macro and
> include U-Boot string into USB product name to indicate usage of
On 22/12/20 7:30 pm, Pali Rohár wrote:
> On Tuesday 22 December 2020 19:26:21 Lokesh Vutla wrote:
>> Hi Pali,
>>
>> [...snip...]
>>
>>> +++ b/configs/nokia_rx51_defconfig
>>> @@ -29,6 +29,7 @@ CONFIG_CMD_BOOTMENU=y
>>> # CONFIG_CMD_SAVEENV is not set
>>> # CONFIG_CMD_ENV_EXISTS is not set
>>>
On Tuesday 22 December 2020 19:56:51 Lokesh Vutla wrote:
>
>
> On 01/12/20 12:57 am, Pali Rohár wrote:
> > Now when usbtty serial console is fixed in U-Boot enable CONFIG_USB_TTY for
> > Nokia RX-51 board by default.
> >
> > Fix also USB product id as U-Boot ignores CONFIG_USBD_PRODUCTID macro a
On Tuesday 22 December 2020 20:20:26 Lokesh Vutla wrote:
>
>
> On 22/12/20 7:30 pm, Pali Rohár wrote:
> > On Tuesday 22 December 2020 19:26:21 Lokesh Vutla wrote:
> >> Hi Pali,
> >>
> >> [...snip...]
> >>
> >>> +++ b/configs/nokia_rx51_defconfig
> >>> @@ -29,6 +29,7 @@ CONFIG_CMD_BOOTMENU=y
> >>>
On 22/12/20 8:28 pm, Pali Rohár wrote:
> On Tuesday 22 December 2020 19:56:51 Lokesh Vutla wrote:
>>
>>
>> On 01/12/20 12:57 am, Pali Rohár wrote:
>>> Now when usbtty serial console is fixed in U-Boot enable CONFIG_USB_TTY for
>>> Nokia RX-51 board by default.
>>>
>>> Fix also USB product id as
On 22/12/20 8:36 pm, Lokesh Vutla wrote:
>
>
> On 22/12/20 8:28 pm, Pali Rohár wrote:
>> On Tuesday 22 December 2020 19:56:51 Lokesh Vutla wrote:
>>>
>>>
>>> On 01/12/20 12:57 am, Pali Rohár wrote:
Now when usbtty serial console is fixed in U-Boot enable CONFIG_USB_TTY for
Nokia RX-5
On 22/12/20 8:38 pm, Lokesh Vutla wrote:
>
>
> On 22/12/20 8:36 pm, Lokesh Vutla wrote:
>>
>>
>> On 22/12/20 8:28 pm, Pali Rohár wrote:
>>> On Tuesday 22 December 2020 19:56:51 Lokesh Vutla wrote:
On 01/12/20 12:57 am, Pali Rohár wrote:
> Now when usbtty serial console is fi
On Tuesday 22 December 2020 20:39:11 Lokesh Vutla wrote:
>
>
> On 22/12/20 8:38 pm, Lokesh Vutla wrote:
> >
> >
> > On 22/12/20 8:36 pm, Lokesh Vutla wrote:
> >>
> >>
> >> On 22/12/20 8:28 pm, Pali Rohár wrote:
> >>> On Tuesday 22 December 2020 19:56:51 Lokesh Vutla wrote:
>
>
>
On 22.12.20 13:35, Nicolas Saenz Julienne wrote:
So far we've been content with passing physical addresses when
configuring memory addresses into XHCI controllers, but not all
platforms have buses with transparent mappings. Specifically the
Raspberry Pi 4 might introduce an offset to memory acces
On 22.12.20 13:35, Nicolas Saenz Julienne wrote:
These functions, instead of relying on hard-coded platform-specific
address translations, make use of the DMA constraints provided by the DM
core. This allows for per-device translations.
We can't yet get rid of the legacy phys_to_bus()/bus_to_phy
On Mon, Dec 21, 2020 at 2:36 PM Jaehoon Chung wrote:
>
> Hi,
>
> On 12/22/20 1:19 AM, Tim Harvey wrote:
> > This adds basic register access and child regulator binding
> > for the Monolithic MP5416 Power Management IC which integrates
> > four DC/DC switching converters and five LDO regulators.
>
On 22/12/20 8:47 pm, Pali Rohár wrote:
> On Tuesday 22 December 2020 20:39:11 Lokesh Vutla wrote:
>>
>>
>> On 22/12/20 8:38 pm, Lokesh Vutla wrote:
>>>
>>>
>>> On 22/12/20 8:36 pm, Lokesh Vutla wrote:
On 22/12/20 8:28 pm, Pali Rohár wrote:
> On Tuesday 22 December 2020 19:56:5
From: Igor Opaniuk
Hand over maintainership of Toradex SoMs (that I was responsible of) to
Oleksandr because of my resignation from Toradex, as such I will
have no immediate involvement with these modules and as a result not
able to continue maintaining these boards.
CC: Oleksandr Suvorov
Signe
On Tuesday 22 December 2020 21:08:45 Lokesh Vutla wrote:
> On 22/12/20 8:47 pm, Pali Rohár wrote:
> > On Tuesday 22 December 2020 20:39:11 Lokesh Vutla wrote:
> >>
> >>
> >> On 22/12/20 8:38 pm, Lokesh Vutla wrote:
> >>>
> >>>
> >>> On 22/12/20 8:36 pm, Lokesh Vutla wrote:
>
>
> On 2
dma_addr_t holds any valid DMA address. If the DMA API only uses 32/64-bit
addresses, dma_addr_t need only be 32/64 bits wide.
Signed-off-by: Padmarao Begari
Reviewed-by: Anup Patel
Reviewed-by: Bin Meng
---
arch/riscv/Kconfig | 4
arch/riscv/include/asm/types.h | 4
2 fi
This patch set adds Microchip PolarFire SoC Icicle Kit support
to RISC-V U-Boot.
The patches are based upon latest U-Boot tree
(https://gitlab.denx.de/u-boot/u-boot.git) at commit id
c15f44acf9d473f4682bfdc63b8aebd313492b15
All drivers namely: NS16550 Serial, Microchip clock,
Cadence eMMC and Cad
Enable 32-bit or 64-bit DMA in the macb driver based on the macb
hardware compatibility and it is configured with structure macb_config
in the driver.
The Microchip PolarFire SoC Memory Protection Unit(MPU) gives the 64-bit
DMA access with the GEM, the MPU transactions on the AXI bus is 64-bit
not
Add clock driver code for the Microchip PolarFire SoC. This driver
handles reset and clock control of the Microchip PolarFire SoC device.
Signed-off-by: Padmarao Begari
Reviewed-by: Anup Patel
Tested-by: Bin Meng
---
drivers/clk/Kconfig | 1 +
drivers/clk/Makefile
Read phy address from device tree and use it to find the phy device
if not found then search in the range of 0 to 31.
Signed-off-by: Padmarao Begari
Reviewed-by: Anup Patel
Reviewed-by: Bin Meng
Tested-by: Bin Meng
---
drivers/net/macb.c | 13 +
1 file changed, 13 insertions(+)
d
This patch adds Microchip MPFS Icicle Kit support. For now, only
NS16550 Serial, Microchip clock, Cadence eMMC and MACB drivers are
enabled. The Microchip MPFS Icicle defconfig by default builds
U-Boot for S-Mode because U-Boot on Microchip PolarFire SoC will run
in S-Mode as payload of HSS + OpenS
This doc describes the procedure to build, flash and
boot Linux using U-boot on Microchip MPFS Icicle Kit.
Signed-off-by: Padmarao Begari
Reviewed-by: Anup Patel
Reviewed-by: Bin Meng
---
doc/board/index.rst | 1 +
doc/board/microchip/index.rst | 9 +
doc/board/microc
Add device tree for Microchip PolarFire SoC Icicle Kit.
Signed-off-by: Padmarao Begari
Reviewed-by: Anup Patel
Reviewed-by: Bin Meng
---
arch/riscv/dts/Makefile | 1 +
.../dts/microchip-mpfs-icicle-kit-u-boot.dtsi | 14 +
arch/riscv/dts/microchip-mpfs-icicle-kit.dts |
On 12/22/20 3:09 PM, Marek Szyprowski wrote:
Add a 'mbr' command to let user create or verify MBR partition layout
based on the provided text description. The partition layout is
altearnatively read from 'mbr_parts' environment variable. This can be
used in scripts to help system image flashing t
Hi Lokesh,
> Il 22/12/2020 14:52 Lokesh Vutla ha scritto:
>
>
> Hi Dario,
>
> On 22/11/20 9:41 pm, Dario Binacchi wrote:
> >
> > The series was born from the need to manage the PWM backlight of the
> > display connected to my beaglebone board. To hit the target, I had to
> > develop drivers
Latest opensbi uses generic platform for Qemu. Update the build
instructions.
Signed-off-by: Atish Patra
---
doc/board/emulation/qemu-riscv.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/board/emulation/qemu-riscv.rst
b/doc/board/emulation/qemu-riscv.rst
index 3acd4
From: Marc Ferland
The eeprom at address 0x50 is a BR24G04NUX-3TTR. It has a
4Kbit (512x8) capacity, change the compatible string to reflect this
fact.
Also, add an alias to easily refer to this eeprom with
fdt_path_offset() which will be in another commit.
Signed-off-by: Marc Ferland
---
arc
From: Marc Ferland
The dart6ul has an i2c eeprom at 0x50 which contains, among other
things, the manufacturing/revision/options info of the SoM. This patch
replaces the current checkboard() implementation with a more
exhaustive one based on the content of the eeprom.
Since this code uses the new
On 12/19/20 11:51 PM, Amit Singh Tomar wrote:
> From: Amit Singh Tomar
>
> This patch adds node for ethernet controller found on Action Semi OWL
> S700 SoC.
Is "ethernet controller" right?
>
> Since, upstream Linux binding has not been merged for S700 MMC/SD
> controller, Changes are put in u-
On 12/19/20 11:51 PM, Amit Singh Tomar wrote:
> From: Amit Singh Tomar
>
> This commit adds support for MMC controllers found on Actions OWL
> S700 SoC platform.
>
> Signed-off-by: Amit Singh Tomar
> ---
> Changes since previous version
> * Corrected block count to 512.
> * Changed
On 12/22/20 1:49 AM, Siew Chin Lim wrote:
> Change 'clksel' callback function to allow the code to return a
> status.
>
> This patch is a preparation for enabling Arm-Trusted-Firmware (ATF)
> in Intel SoC FPGA. This patch does not change functionality.
>
> When using Arm-Trusted-Firmware (ATF) in
On 12/22/20 1:49 AM, Siew Chin Lim wrote:
> From: Chee Hong Ang
>
> In non-secure mode (EL2), MMC driver calls the SMC/PSCI services
> provided by ATF to set SDMMC's DRVSEL and SMPLSEL.
>
> Signed-off-by: Chee Hong Ang
> Signed-off-by: Siew Chin Lim
Reviewed-by: Jaehoon Chung
Best Regards,
On 12/11/20 11:29 AM, Simon Glass wrote:
Hi Bin,
On Thu, 10 Dec 2020 at 21:37, Bin Meng wrote:
On Fri, Dec 11, 2020 at 12:32 PM Sean Anderson wrote:
On 12/10/20 11:27 PM, Bin Meng wrote:
On Fri, Dec 11, 2020 at 12:08 PM Bin Meng wrote:
Hi Simon,
The following command no longer works.
This enables configs necessary for using SPI. The environment is saved to
the very end of SPI flash. This is unlikely to be overwritten unless the
entire flash is reprogrammed.
This also supplies a default bootcommand. It loads an image and device tree
from the first partition of the MMC. This is
This patch series is part of a larger effort to get linux to boot
really fast alongside a secure OS. One piece of the puzzle is getting
Linux and OP-TEE to boot straight from SPL. This is where the FIT
image comes in.
The "simple" fit code was mostly ready for this, although it was
quite difficult
The size is derived from the FIT image itself. Any alignment
requirements are machine-specific and known by the board code. Thus
the total length can be derived from the FIT image and knowledge of
the platform. The 'length' argument is redundant. Remove it.
Signed-off-by: Alexandru Gagniuc
Review
The logical steps in spl_load_simple_fit() are difficult to follow.
I think the long comments, ifdefs, and ungodly number of variables
seriously affect the readability. In particular, it violates section 6
of the coding style, paragraphs (3), and (4).
The purpose of this patch is to improve the si
Several loose arguments describe the FIT image. They are thus related,
and it makes sense to pass them together, in a structure. Examples
include the FIT blob pointer, offset to FDT nodes, and the offset to
external data.
Use a spl_fit_info structure to group these parameters.
Signed-off-by: Alex
When a desired configuration is not found, conf_node will have a
negative value. Thus the for loop will start at the root "/" node of
the image, print the "/description" property, and stop.
It appears the intent of the loop was to print the names of the
subnodes under "/configurations". We would n
The configuration node a sub node under "/configurations", which
describes the components to load from "/images". We only need to
locate this node once.
However, for each component, spl_fit_get_image_name() would parse the
FIT image, looking for the correct node. Such work duplication is not
neces
There's no point in guarding function prototypes with #ifdefs. If a
function is not defined, the linker will notice. Having the prototype
does not affect code size.
What the #if guard takes away is the ability to use IS_ENABLED:
if (CONFIG_IS ENABLED(FIT_IMAGE_POST_PROCESS))
Use the IS_ENABLED() macro to control code flow, instead of the
caveman approach of sprinkling #ifdefs. Code size is not affected, as
the linker garbage-collects unused functions. However, readability is
improved significantly.
Signed-off-by: Alexandru Gagniuc
Reviewed-by: Simon Glass
---
commo
When a FIT config specifies a devicetree, we should load it, no
questions asked. In the case of the "simple" FIT loading path, a
difficulty arises in selecting the load address of the FDT.
The default FDT location is right after the "kernel" or "firmware"
image. However, if that is an OP-TEE image
This enables configs necessary for using SPI. The environment is saved to
the very end of SPI flash. This is unlikely to be overwritten unless the
entire flash is reprogrammed.
This also supplies a default bootcommand. It loads an image and device tree
from the first partition of the MMC. This is
log_2_n_round_up is only found in arm. fls performs the same job and is
generic.
Signed-off-by: Sean Anderson
Reviewed-by: Simon Glass
---
(no changes since v2)
Changes in v2:
- Fix fls being off-by-one when compared to log_2_n_round_up
drivers/watchdog/designware_wdt.c | 3 +--
1 file chang
This is preferred over #if because the compiler can check syntax even if
the feature is disabled. This cannot be used for CONFIG_CLK because
CONFIG_DW_WDT_CLOCK_KHZ is not defined on all platforms.
Signed-off-by: Sean Anderson
Reviewed-by: Heinrich Schuchardt
---
(no changes since v1)
drivers
The watchdog won't work if the clock isn't enabled.
Fixes: cf89ef8d10f240554541c20b2e1bdcdd58d1d7e6
Signed-off-by: Sean Anderson
Reviewed-by: Simon Glass
---
(no changes since v1)
drivers/watchdog/designware_wdt.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/watchdog/design
The clock subsystem requires that clk_free be called on clocks obtained via
clk_get_*.
Signed-off-by: Sean Anderson
Reviewed-by: Simon Glass
---
(no changes since v4)
Changes in v4:
- Fix build error without CONFIG_CLK
drivers/watchdog/designware_wdt.c | 18 +-
1 file changed
This series depends on
https://patchwork.ozlabs.org/project/uboot/list/?series=200642
Changes in v5:
- Rebase on u-boot/master
Changes in v4:
- Fix build error without CONFIG_CLK
Changes in v3:
- Note dependency on "time: Fix get_ticks being non-monotonic"
- Add a few signed-off-bys which were s
This adds the necessary bindings. Most of them are already there.
Signed-off-by: Sean Anderson
Acked-by: Rick Chen
---
(no changes since v2)
Changes in v2:
- Move watchdog enable to k210.dtsi as it does not depend on anything
board-specific.
arch/riscv/dts/k210.dtsi | 1 -
1 file changed,
This enables the necessary config options.
Signed-off-by: Sean Anderson
Reviewed-by: Simon Glass
---
(no changes since v1)
board/sipeed/maix/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/board/sipeed/maix/Kconfig b/board/sipeed/maix/Kconfig
index 4c42dd2087..95fe6d9706 100644
Hi Sean,
On Tue, 22 Dec 2020 at 16:51, Sean Anderson wrote:
>
> On 12/11/20 11:29 AM, Simon Glass wrote:
> > Hi Bin,
> >
> > On Thu, 10 Dec 2020 at 21:37, Bin Meng wrote:
> >>
> >> On Fri, Dec 11, 2020 at 12:32 PM Sean Anderson wrote:
> >>>
> >>> On 12/10/20 11:27 PM, Bin Meng wrote:
> On
Hi Philipp,
On Wed, 25 Nov 2020 at 12:41, Philipp Tomsich wrote:
>
> Simon,
>
> On Wed, 25 Nov 2020 at 16:30, Simon Glass wrote:
> > Here is a pointer to the docs I saw:
> >
> > https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.set_defaults
> >
> > "Parser-level defaults ca
Hi Nicolas,
On Tue, 22 Dec 2020 at 05:36, Nicolas Saenz Julienne
wrote:
>
> @Simon: I had to roll back all "if (CONFIG_IS_ENABLED(DM_DMA)" uses. As
> per buildman it breaks compilation when !DM or !DM_DMA due to access to
> undefined variables, namely dev and dev->dma_offset. I figure in u-boot
>
On 19/12/2020 14:51, Amit Singh Tomar wrote:
Hi,
> From: Amit Singh Tomar
>
> This commit adds SD/MMC clocks, and provides .set/get_rate callbacks
> for SD/MMC device present on Actions OWL S700 SoCs.
>
> Signed-off-by: Amit Singh Tomar
> ---
> Changes since previous version:
> * Remove
On 22/12/2020 23:28, Jaehoon Chung wrote:
> On 12/19/20 11:51 PM, Amit Singh Tomar wrote:
>> From: Amit Singh Tomar
>>
>> This patch adds node for ethernet controller found on Action Semi OWL
>> S700 SoC.
>
> Is "ethernet controller" right?
>
>>
>> Since, upstream Linux binding has not been merg
On 22/12/2020 23:37, Jaehoon Chung wrote:
> On 12/19/20 11:51 PM, Amit Singh Tomar wrote:
>> From: Amit Singh Tomar
>>
>> This commit adds support for MMC controllers found on Actions OWL
>> S700 SoC platform.
>>
>> Signed-off-by: Amit Singh Tomar
>> ---
>> Changes since previous version
>>
1 - 100 of 159 matches
Mail list logo