Re: [PATCH v3 5/5] bootstd: Add test for bootmeth_android

2024-07-11 Thread Guillaume LA ROQUE
t_dir, 'vendor_boot.img') +with open(vendor_boot_img, 'rb') as inf: +set_part_data(4, inf.read()) + +with open(fname, 'wb') as outf: +outf.write(disk_data) + +print('wrote to {}'.format(fname)) + +return fname def setup_cedit_file(cons): infname = os.path.join(cons.config.source_dir, @@ -478,6 +556,7 @@ def test_ut_dm_init_bootstd(u_boot_console): setup_bootmenu_image(u_boot_console) setup_cedit_file(u_boot_console) setup_cros_image(u_boot_console) +setup_android_image(u_boot_console) # Restart so that the new mmc1.img is picked up u_boot_console.restart_uboot() Reviewed-by: Guillaume La Roque

Re: [PATCH v2 0/5] bootstd: Add Android support

2024-06-14 Thread Guillaume LA ROQUE
you can add for this series: Tested-by: Guillaume La Roque Guillaume Le 13/06/2024 à 12:13, Mattijs Korpershoek a écrit : Android boot flow is a bit different than a regular Linux distro. Android relies on multiple partitions in order to boot. A typical boot flow would be: 1. Parse

Re: [PATCH v2 5/5] bootstd: Add test for bootmeth_android

2024-06-13 Thread Guillaume LA ROQUE
') as outf: +outf.write(disk_data) + +print('wrote to {}'.format(fname)) + +return fname def setup_cedit_file(cons): infname = os.path.join(cons.config.source_dir, @@ -477,6 +552,7 @@ def test_ut_dm_init_bootstd(u_boot_console): setup_bootmenu_image(u_boot_console) setup_cedit_file(u_boot_console) setup_cros_image(u_boot_console) +setup_android_image(u_boot_console) # Restart so that the new mmc1.img is picked up u_boot_console.restart_uboot() Reviewed-by: Guillaume La Roque

Re: [PATCH v2 1/5] boot: android: Provide vendor_bootimg_addr in boot_get_fdt()

2024-06-13 Thread Guillaume LA ROQUE
ob = (char *)map_sysmem(fdt_addr, 0); if (fdt_check_header(fdt_blob)) Reviewed-by: Guillaume La Roque

Re: [PATCH v2 3/5] android: boot: Add set_abootimg_addr() and set_avendor_bootimg_addr()

2024-06-13 Thread Guillaume LA ROQUE
a matching board name * Reviewed-by: Guillaume La Roque

Re: [PATCH v2 2/5] bootstd: Add bootflow_iter_check_mmc() helper

2024-06-13 Thread Guillaume LA ROQUE
ake sure it uses a mmc device + * + * Return: 0 if OK, -ENOTSUPP if some other device is used (e.g. ethernet) + */ +int bootflow_iter_check_mmc(const struct bootflow_iter *iter); + /** * bootflow_iter_check_sf() - Check that a bootflow uses SPI FLASH * Reviewed-by: Guillaume La Roque

Re: [PATCH v2 1/2] bootstd: Fix a handful of doc typos in bootmeth

2024-06-05 Thread Guillaume LA ROQUE
in bootstd_priv->bootmeth_order. If there is no + * ordering of the bootmeths in bootstd_priv->bootmeth_order. If there is no * ordering there, then all bootmethods are added * * @iter: Iterator to update with the order Reviewed-by: Guillaume La Roque Guillaume

Re: [PATCH] cmd: bcb: Fix bcb compilation when CONFIG_CMD_BCB=n

2024-06-05 Thread Guillaume LA ROQUE
c inline int bcb_get(enum bcb_field field, + char *value_out, size_t value_size) { return -EOPNOTSUPP; } --- base-commit: ea722aa5eb33740ae77e8816aeb72b385e621cd0 change-id: 20240603-bcb-compil-d8eaf7074475 Best regards, Reviewed-by: Guillaume La Roque Regards Guillaume

[PATCH] phy: meson-g12a-usb2: fix ret check on power_domain_get

2023-10-17 Thread Guillaume La Roque
xes: 5533c883ce10 ("phy: support Amlogic A1 family") Signed-off-by: Guillaume La Roque --- drivers/phy/meson-g12a-usb2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/phy/meson-g12a-usb2.c b/drivers/phy/meson-g12a-usb2.c index 4ba3992bda70..3958d2

Re: [PATCH] drivers: usb: dwc3: Add support for AM62 USB wrapper driver

2022-06-20 Thread Guillaume LA ROQUE
Hi, Le 07/04/2022 à 09:28, Aswath Govindraju a écrit : Add support for AM62 USB wrapper for DWC3 Controller in AM62 SoC. Signed-off-by: Aswath Govindraju --- Link to corresponding kernel dt-bindings and driver patches, - https://patchwork.kernel.org/project/linux-usb/list/?series=629613

[PATCH v2] arm: mediatek: merge board Kconfigs into mach-mediatek

2021-09-10 Thread Guillaume La Roque
only define SYS_{SOC,VENDOR} once - all board definitions are in a single place, simplifying the build logic. Signed-off-by: Guillaume La Roque --- arch/arm/mach-mediatek/Kconfig | 42 +++- arch/mips/mach-mtmips/Kconfig| 3 ++ arch/mips/mach-mtmips/mt7620

[PATCH] arm: mediatek: merge board Kconfigs into mach-mediatek

2021-07-19 Thread Guillaume La Roque
only define SYS_{SOC,VENDOR} once - all board definitions are in a single place, simplifying the build logic. Signed-off-by: Guillaume La Roque --- arch/arm/mach-mediatek/Kconfig | 42 +++- arch/mips/mach-mtmips/Kconfig| 3 ++ arch/mips/mach-mtmips/mt7620

Re: [PATCH] serial: meson: handle RX errors

2020-07-21 Thread guillaume La Roque
/* > + * Handle and drop any RX error here to avoid > + * returning true here when an error byte is in the FIFO > + */ > + if (status & AML_UART_ERR) { > + meson_serial_rx_error(dev); > + return false; > + } > + > + return true; > + } else { > return !(status & AML_UART_TX_FULL); > + } > } > > static int meson_serial_ofdata_to_platdata(struct udevice *dev) Tested-by: Guillaume La Roque on Khadas VIM3L thanks for this patch. Guillaume

[U-Boot] [PATCH 2/3] pinctrl: meson: add support of drive-strength-microamp

2019-06-04 Thread Guillaume La Roque
drive-strength-microamp is a new feature needed for G12A SoC. the default DS setting after boot is usually 500uA and it is not enough for many functions. We need to be able to set the drive strength to reliably enable things like MMC, I2C, etc ... Signed-off-by: Guillaume La Roque --- drivers

[U-Boot] [PATCH 3/3] pinctrl: meson: g12a: add DS bank value

2019-06-04 Thread Guillaume La Roque
add drive-strength bank regiter and bit value for G12A SoC Signed-off-by: Guillaume La Roque --- drivers/pinctrl/meson/pinctrl-meson-g12a.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/pinctrl/meson/pinctrl-meson-g12a.c b/drivers/pinctrl

[U-Boot] [PATCH 1/3] dm: pinctrl: Add driver-strength-microamp property

2019-06-04 Thread Guillaume La Roque
Add drive-strength-microamp property support to allow drive strength in uA Signed-off-by: Guillaume La Roque --- include/dm/pinctrl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dm/pinctrl.h b/include/dm/pinctrl.h index e7b8ad9078..3eca34fbf7 100644 --- a/include/dm/pinctrl.h

[U-Boot] [PATCH 0/3] Add drive-strength-microamp in Meson pinctrl driver

2019-06-04 Thread Guillaume La Roque
kernel.org/lkml/20190514082652.20686-1-glaro...@baylibre.com/ Cheers Guillaume Guillaume La Roque (3): dm: pinctrl: Add driver-strength-microamp property pinctrl: meson: add support of drive-strength-microamp pinctrl: meson: g12a: add DS bank value drivers/pinctrl/meson/pinctrl-meson-axg-

[U-Boot] [PATCH] pinctrl: meson: axg: Fix PIN and BANK offsets

2019-04-08 Thread Guillaume La Roque
-by: Guillaume La Roque --- drivers/pinctrl/meson/pinctrl-meson-axg.c | 358 +++--- 1 file changed, 179 insertions(+), 179 deletions(-) diff --git a/drivers/pinctrl/meson/pinctrl-meson-axg.c b/drivers/pinctrl/meson/pinctrl-meson-axg.c index 3bbbe817b4..8f23c8cef1 100644 --- a/drivers

[U-Boot] [PATCH] i2c: meson: add configurable divider factors

2019-03-22 Thread Guillaume La Roque
This patch add support for I2C controller in Meson-AXG SoC, Due to the IP changes between I2C controller, we need to introduce a compatible data to make the divider factor configurable. backport from linux: 931b18e92cd0 ("2c: meson: add configurable divider factors") Signed-off-by: Gu