Re: [PATCH] arm: moxa: add nport6600 platform

2023-08-02 Thread Sergei Antonov
On Tue, 1 Aug 2023 at 17:27, Tom Rini wrote: > > On Tue, Aug 01, 2023 at 01:11:28PM +0300, Sergei Antonov wrote: > > On Mon, 31 Jul 2023 at 21:59, Tom Rini wrote: > > > > > > On Mon, Jul 31, 2023 at 09:43:29PM +0300, Sergei Antonov wrote: > > > > >

Re: [PATCH] arm: moxa: add nport6600 platform

2023-08-01 Thread Sergei Antonov
On Mon, 31 Jul 2023 at 21:59, Tom Rini wrote: > > On Mon, Jul 31, 2023 at 09:43:29PM +0300, Sergei Antonov wrote: > > > Support for NPort 6600 Series RS-232/422/485 secure terminal servers. > > > > Technical specifications: > > FA526 ARMv4 CPU, 64 MB of RAM, 16

[PATCH] arm: moxa: add nport6600 platform

2023-07-31 Thread Sergei Antonov
Support for NPort 6600 Series RS-232/422/485 secure terminal servers. Technical specifications: FA526 ARMv4 CPU, 64 MB of RAM, 16 MB NOR flash, 100 Mbit/s Ethernet, optional expansion modules, up to 32 RS-232/422/485 ports. Signed-off-by: Sergei Antonov --- arch/arm/Kconfig

[PATCH] pci: ftpci100: add new driver implementation

2023-07-30 Thread Sergei Antonov
Add a new DM driver supporting FTPCI100 IP used in SoC designs. This implementation is not based on the old non-DM ftpci100 code dropped from U-Boot. Enable the driver in sandbox_defconfig to test compilability. Signed-off-by: Sergei Antonov --- configs/sandbox_defconfig | 1 + drivers/pci

[PATCH] watchdog: ftwdt010: need to reset watchdog in ftwdt010_wdt_start()

2023-07-30 Thread Sergei Antonov
ftwdt010_wdt_start() has to call ftwdt010_wdt_reset() after setting-up the timeout in the same fashion ftwdt010_wdt_expire_now() does it. Without this patch the "wdt start " command does not actually start the watchdog timer until the "wdt reset" command is executed. S

[PATCH] axi: fix a warning

2023-06-19 Thread Sergei Antonov
, | ^~~~ Make function declaration match function definition. Cc: Mario Six Signed-off-by: Sergei Antonov --- arch/sandbox/include/asm/axi.h | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/sandbox/include/asm/axi.h b/arch/sandbox/include

Re: [PATCH v2] sandbox: fix a compilation error

2023-06-13 Thread Sergei Antonov
On Tue, 13 Jun 2023 at 17:58, Simon Glass wrote: > The problem with this is it then cannot be built on non-sandbox > boards. I think v1 was OK. Before the patch as well as after the patch: if CONFIG_SANDBOX_SDL declaration of sandbox_sdl_set_bpp() else definition of sandbox_sdl_set_bpp()

[PATCH v2] sandbox: fix a compilation error

2023-06-12 Thread Sergei Antonov
: Simon Glass Suggested-by: Tom Rini Signed-off-by: Sergei Antonov --- v2: * move the function to another file instead of including arch/sandbox/include/asm/sdl.h | 23 +++ arch/sandbox/include/asm/test.h | 25 - test/dm/video.c | 1

[PATCH] sandbox: fix a compilation error

2023-06-12 Thread Sergei Antonov
-boot/arch/sandbox/include/asm/test.h:323:17: error: ‘ENOSYS’ undeclared (first use in this function) 323 | return -ENOSYS; | ^~ Cc: Tom Rini Cc: Simon Glass Signed-off-by: Sergei Antonov --- arch/sandbox/include/asm/test.h | 1 + 1 file changed, 1 insertion

[PATCH] hash: fix a memory leak

2023-06-12 Thread Sergei Antonov
memalign() returns a pointer which is to be freed by free(). To call unmap_sysmem() is incorrect, furthermore it was called in a wrong scope. Also add a check for allocation error. Fixes: d7af2baa49c6 ("crypto/fsl: Fix HW accelerated hash commands") Cc: Breno Lima Signed-off-by: Serg

Trouble building sandbox

2023-06-12 Thread Sergei Antonov
Hello! I get a build error with sandbox and sandbox64 configurations in the latest master. Using gcc version 12.2.0 (Ubuntu 12.2.0-3ubuntu1). In file included from .../u-Boot-Zlib/u-boot/include/test/test.h:156, from .../u-boot/include/test/lib.h:9, from

Re: [PATCH v4 1/3] net: ipv6: Add support for default gateway discovery.

2023-05-10 Thread Sergei Antonov
G_IPV6_ROUTER_DISCOVERY and invoked > > automatically from net_init_loop(). > > > > Signed-off-by: Ehsan Mohandesi > > Tested-by: Viacheslav Mitrofanov Reviewed-by: > > Tested-by: Viacheslav Mitrofanov > > Reviewed-by: Viacheslav Mitrofanov > > Tested-by: Sergei Antonov > > Reviewed-by: Sergei Antonov > > Applied to u-boot/master, thanks! Hey! It was added without "__packed", see https://lists.denx.de/pipermail/u-boot/2023-May/517370.html

Re: [PATCH v4 1/3] net: ipv6: Add support for default gateway discovery.

2023-05-04 Thread Sergei Antonov
On Sat, 22 Apr 2023 at 03:08, wrote: > + if (prefix->on_link && ntohl(prefix->valid_lifetime)) > { > + net_prefix_length = prefix->prefix_len; > + net_gateway6 = ip6->saddr; > +

Re: [PATCH v4 1/3] net: ipv6: Add support for default gateway discovery.

2023-05-04 Thread Sergei Antonov
in6_addr prefix; > +}; Here it should end with: } __packed; Because this structure may be placed at a badly aligned offset within a packet. For example, at offset 0x46 within Ethernet packet. Other than that: Tested-by: Sergei Antonov Reviewed-by: Sergei Antonov

[PATCH v2] watchdog: ftwdt010: return a previously deleted driver now ported to DM

2023-04-12 Thread Sergei Antonov
The ftwdt010 watchdog driver was deleted by commit 11232139e399 ("nds32: Remove the architecture") Return it to the codebase in a DM compatible form. Enable it in sandbox_defconfig to test compilability. Another platform using ftwdt010 will be submitted later. Signed-off-by: Serg

Re: [PATCH] watchdog: ftwdt010: return a previously deleted driver now ported to DM

2023-03-13 Thread Sergei Antonov
On Mon, 13 Feb 2023 at 16:52, Sergei Antonov wrote: > > The ftwdt010 watchdog driver was deleted by > commit 11232139e399 ("nds32: Remove the architecture") > > Return it to the codebase in a DM compatible form. Enable it in > sandbox_defconfig to test compilabili

[PATCH] timer: fttmr010: return a previously deleted driver now ported to DM

2023-02-13 Thread Sergei Antonov
/documents/FIC8120_DS_v1.2.pdf Signed-off-by: Sergei Antonov --- drivers/timer/Kconfig | 7 +++ drivers/timer/Makefile | 1 + drivers/timer/fttmr010_timer.c | 92 ++ include/faraday/fttmr010.h | 1 + 4 files changed, 101 insertions(+) create mode 1006

[PATCH] watchdog: ftwdt010: return a previously deleted driver now ported to DM

2023-02-13 Thread Sergei Antonov
The ftwdt010 watchdog driver was deleted by commit 11232139e399 ("nds32: Remove the architecture") Return it to the codebase in a DM compatible form. Enable it in sandbox_defconfig to test compilability. Another platform using ftwdt010 will be submitted later. Signed-off-by: Serg

Re: [PATCH v2 2/3] net: ftmac100: simplify priv->iobase casting

2023-02-03 Thread Sergei Antonov
On Fri, 3 Feb 2023 at 01:05, Tom Rini wrote: > > On Thu, Jan 19, 2023 at 10:51:15PM +0300, Sergei Antonov wrote: > > > Replace 'phys_addr_t iobase' with 'struct ftmac100 *ftmac100' > > in order to cast once on assignment and remove casting in a > > number of other

[PATCH v3 3/3] net: ftmac100: add mii read and write callbacks

2023-02-03 Thread Sergei Antonov
Register mii_bus with read and write callbacks to allow the 'mii' command to work. Use a timeout of 10 ms to wait for the R/W operations to complete. Signed-off-by: Sergei Antonov --- v2 -> v3: no change v1 -> v2: * fix a typo in the description * add a dependency from MII to Kconfig d

[PATCH v3 2/3] net: ftmac100: simplify priv->iobase casting

2023-02-03 Thread Sergei Antonov
Replace 'phys_addr_t iobase' with 'struct ftmac100 *ftmac100' in struct ftmac100_data. It allows to remove casting in a number of places. Since priv->iobase is phys_addr_t, use phys_to_virt() to make a pointer from it. Signed-off-by: Sergei Antonov --- v2 -> v3: Fix the following w

[PATCH v3 1/3] net: ftmac100: change driver name from nds32_mac to ftmac100

2023-02-03 Thread Sergei Antonov
So it will be named similarly to the related ftgmac100 driver. The old name 'nds32_mac' is not referred to anywhere in U-Boot. Signed-off-by: Sergei Antonov Reviewed-by: Ramon Fried --- v2 -> v3: no change v1 -> v2: no change drivers/net/ftmac100.c | 2 +- 1 file changed, 1 insertion

Re: [PATCH 3/3] net: ftmac100: add mii read and write callbacks

2023-01-19 Thread Sergei Antonov
On Tue, 10 Jan 2023 at 20:13, Ramon Fried wrote: > Reviewed-by: Ramon Fried Hello, Ramon! I have just submitted a v2 of this patch. The only substantial difference there is a Kconfig addition. If you are fine with it, could you please give it your "Reviewed-by"?

[PATCH v2 3/3] net: ftmac100: add mii read and write callbacks

2023-01-19 Thread Sergei Antonov
Register mii_bus with read and write callbacks to allow the 'mii' command to work. Use a timeout of 10 ms to wait for the R/W operations to complete. Signed-off-by: Sergei Antonov --- v1 -> v2: * fix a typo in the description * add a dependency from MII to Kconfig * rebase to the current mas

[PATCH v2 2/3] net: ftmac100: simplify priv->iobase casting

2023-01-19 Thread Sergei Antonov
Replace 'phys_addr_t iobase' with 'struct ftmac100 *ftmac100' in order to cast once on assignment and remove casting in a number of other places. Signed-off-by: Sergei Antonov Reviewed-by: Ramon Fried --- v1 -> v2: no change drivers/net/ftmac100.c | 14 +++--- 1 file changed

[PATCH v2 1/3] net: ftmac100: change driver name from nds32_mac to ftmac100

2023-01-19 Thread Sergei Antonov
So it will be named similarly to the related ftgmac100 driver. The old name 'nds32_mac' is not referred to anywhere in U-Boot. Signed-off-by: Sergei Antonov Reviewed-by: Ramon Fried --- v1 -> v2: no change drivers/net/ftmac100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

Making assembler listing files?

2023-01-19 Thread Sergei Antonov
Hello! Why is not there a scripts/makelst file? Command "make net/net6.lst" produces error output: MKLST net/net6.lst /bin/bash: .../u-boot/scripts/makelst: No such file or directory I was only able to create a listing when I copied scripts/makelst from Linux source tree.

Re: [PATCH] net: ipv6: fix alignment errors on ARM

2023-01-19 Thread Sergei Antonov
On Thu, 19 Jan 2023 at 11:18, Vyacheslav V. Mitrofanov wrote: > > On Wed, 2023-01-18 at 20:52 +0300, Sergei Antonov wrote: > > Commands "ping6" and "tftpboot ... -ipv6" did not work on ARM because > > machine code expects 4-byte alignment and some stru

[PATCH] net: ipv6: fix alignment errors on ARM

2023-01-18 Thread Sergei Antonov
Commands "ping6" and "tftpboot ... -ipv6" did not work on ARM because machine code expects 4-byte alignment and some structures from net6.h are not aligned in memory. Fix by adding __packed, since it is already used in this file. Signed-off-by: Sergei Antonov --- include/

Re: [PATCH] ns16550: Fix DM serial operation with non-DM SPL

2023-01-18 Thread Sergei Antonov
On Tue, 17 Jan 2023 at 19:14, Andre Przywara wrote: > > On Tue, 17 Jan 2023 16:12:54 +0300 > Sergei Antonov wrote: > > Hi Sergei, > > > On Tue, 17 Jan 2023 at 15:10, Andre Przywara wrote: > > > > > -#if CONFIG_IS_ENABLED(DM_SERIAL)

Re: [PATCH] ns16550: Fix DM serial operation with non-DM SPL

2023-01-17 Thread Sergei Antonov
On Tue, 17 Jan 2023 at 15:10, Andre Przywara wrote: > -#if CONFIG_IS_ENABLED(DM_SERIAL) && !defined(CONFIG_SYS_NS16550_REG_SIZE) > +#if CONFIG_IS_ENABLED(DM_SERIAL) > /* > * For driver model we always use one byte per register, and sort out the > * differences in the driver > */ > +#undef

[PATCH 3/3] net: ftmac100: add mii read and write callbacks

2022-12-28 Thread Sergei Antonov
Register mii_bus with read and write callbacks tp allow the 'mii' command to work. Use a timeout of 10 ms to wait for the R/W operations to complete. Signed-off-by: Sergei Antonov --- drivers/net/ftmac100.c | 103 + drivers/net/ftmac100.h | 9 2

[PATCH 2/3] net: ftmac100: simplify priv->iobase casting

2022-12-28 Thread Sergei Antonov
Replace 'phys_addr_t iobase' with 'struct ftmac100 *ftmac100' in order to cast once on assignment and remove casting in a number of other places. Signed-off-by: Sergei Antonov --- drivers/net/ftmac100.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers

[PATCH 1/3] net: ftmac100: change driver name from nds32_mac to ftmac100

2022-12-28 Thread Sergei Antonov
So it will be named similarly to the related ftgmac100 driver. The old name 'nds32_mac' is not referred to anywhere in U-Boot. Signed-off-by: Sergei Antonov --- drivers/net/ftmac100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ftmac100.c b/drivers/net

[PATCH v3] rtc: add ht1380 driver

2022-12-09 Thread Sergei Antonov
Support Holtek HT1380/HT1381 Serial Timekeeper Chip. It provides seconds , minutes, hours, day of the week, date, month and year information. Datasheet: https://www.holtek.com.tw/documents/10179/11842/ht1380_1v130.pdf Signed-off-by: Sergei Antonov --- v3: Suggested by Simon Glass: * remove

Re: [PATCH] rtc: add ht1380 driver

2022-12-08 Thread Sergei Antonov
On Thu, 8 Dec 2022 at 00:52, Simon Glass wrote: > > > Is this some sort of I2C protocol? > > > > Like I2C it uses a pin for clock and a pin for data in/out. Unlike I2C > > it does not use addressing. I am not sure whether this driver can > > utilize some of the existing I2C code in U-Boot. Wrote

Re: [PATCH] rtc: add ht1380 driver

2022-12-07 Thread Sergei Antonov
On Wed, 7 Dec 2022 at 04:08, Simon Glass wrote: > > Hi Sergei, > > On Tue, 6 Dec 2022 at 23:07, Sergei Antonov wrote: > > > > Support Holtek HT1380/HT1381 Serial Timekeeper Chip. It provides seconds > > , minutes, hours, day of the week, date, month and year

[PATCH] rtc: add ht1380 driver

2022-12-06 Thread Sergei Antonov
Support Holtek HT1380/HT1381 Serial Timekeeper Chip. It provides seconds , minutes, hours, day of the week, date, month and year information. Datasheet: https://www.holtek.com.tw/documents/10179/11842/ht1380_1v130.pdf Signed-off-by: Sergei Antonov --- v2: * The RESET pin is now

Re: [PATCH] rtc: add ht1380 driver

2022-11-21 Thread Sergei Antonov
On Wed, 26 Oct 2022 at 14:34, Sergei Antonov wrote: > > On Wed, 26 Oct 2022 at 02:35, Simon Glass wrote: > > > > +static void ht1380_half_period_delay(void) > > > +{ > > > + /* Delay for half a period. 1 us complies with the 500 KHz maximum > > &

Re: [PATCH] rtc: add ht1380 driver

2022-10-26 Thread Sergei Antonov
On Wed, 26 Oct 2022 at 02:35, Simon Glass wrote: > > +static void ht1380_half_period_delay(void) > > +{ > > + /* Delay for half a period. 1 us complies with the 500 KHz maximum > > + input serial clock limit given by the datasheet. */ > > /* > * Delay for half... > * second line

[PATCH] rtc: add ht1380 driver

2022-10-25 Thread Sergei Antonov
Support Holtek HT1380/HT1381 Serial Timekeeper Chip. Datasheet: https://www.holtek.com.tw/documents/10179/11842/ht1380_1v130.pdf Signed-off-by: Sergei Antonov --- drivers/rtc/Kconfig | 7 + drivers/rtc/Makefile | 1 + drivers/rtc/ht1380.c | 303

i2c-gpio: condition is always false

2022-10-20 Thread Sergei Antonov
Hello! Please look at this code from drivers/i2c/i2c-gpio.c: static int i2c_gpio_of_to_plat(struct udevice *dev) { struct i2c_gpio_bus *bus = dev_get_priv(dev); int ret; /* "gpios" is deprecated and replaced by "sda-gpios" + "scl-gpios". */ ret =

[PATCH] i2c: i2c-gpio: add newline

2022-10-20 Thread Sergei Antonov
Add newline at the end of the printed string. Signed-off-by: Sergei Antonov --- drivers/i2c/i2c-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/i2c-gpio.c b/drivers/i2c/i2c-gpio.c index 1aedad5c8ede..4ed9e9e7cddd 100644 --- a/drivers/i2c/i2c-gpio.c +++ b

Re: [PATCH v3] gpio: ftgpio010: Add support for Faraday Technology FTGPIO010

2022-10-07 Thread Sergei Antonov
On Mon, 12 Sept 2022 at 13:11, Sergei Antonov wrote: > > Add Faraday Technology's FTGPIO010 controller driver. > > Signed-off-by: Sergei Antonov > --- > v2 -> v3: > Implement .get_function to make "gpio status" command work. > > v1 -> v2: >

[PATCH v3] gpio: ftgpio010: Add support for Faraday Technology FTGPIO010

2022-09-12 Thread Sergei Antonov
Add Faraday Technology's FTGPIO010 controller driver. Signed-off-by: Sergei Antonov --- v2 -> v3: Implement .get_function to make "gpio status" command work. v1 -> v2: Replace setbits_le32() with a simpler function out_le32(). Replace readl() with in_le32() to respect endia

Re: [PATCH] lib: zlib: Use post-increment only in inffast.c.

2022-09-11 Thread Sergei Antonov
On Sun, 11 Sept 2022 at 11:47, Jit Loon Lim wrote: > > From: Chin Liang See > > An old inffast.c optimization turns out to not be optimal anymore > with modern compilers, and furthermore was not compliant with the > C standard, for which decrementing a pointer before its allocated > memory is

Re: [PATCH] scripts: config_whitelist: CONFIG_SYS_FLASH_AUTOPROTECT_LIST

2022-09-10 Thread Sergei Antonov
On Sat, 10 Sept 2022 at 17:18, Tom Rini wrote: > > On Sun, Sep 04, 2022 at 06:54:29PM +0300, Sergei Antonov wrote: > > On Sun, 4 Sept 2022 at 18:30, Tom Rini wrote: > > > > > > On Sun, Sep 04, 2022 at 06:28:56PM +0300, Sergei Antonov wrote: > > > > On

Re: [PATCH] scripts: config_whitelist: CONFIG_SYS_FLASH_AUTOPROTECT_LIST

2022-09-04 Thread Sergei Antonov
On Sun, 4 Sept 2022 at 18:30, Tom Rini wrote: > > On Sun, Sep 04, 2022 at 06:28:56PM +0300, Sergei Antonov wrote: > > On Sun, 4 Sept 2022 at 18:23, Tom Rini wrote: > > > > > > > What type must it be in Kconfig? Note, it is an array initializer > > > &g

Re: [PATCH] scripts: config_whitelist: CONFIG_SYS_FLASH_AUTOPROTECT_LIST

2022-09-04 Thread Sergei Antonov
On Sun, 4 Sept 2022 at 18:23, Tom Rini wrote: > > > > > What type must it be in Kconfig? Note, it is an array initializer > > > > > similar to CONFIG_SYS_BAUDRATE_TABLE. > > > > > > > > Ah, ugh. So, it's also currently unused code, what does it look like in > > > > the platform you're making use

[PATCH v2] gpio: ftgpio010: Add support for Faraday Technology FTGPIO010

2022-09-04 Thread Sergei Antonov
Add Faraday Technology's FTGPIO010 controller driver. Signed-off-by: Sergei Antonov --- v1 -> v2: Replace setbits_le32() with a simpler function out_le32(). Replace readl() with in_le32() to respect endianness. drivers/gpio/Kconfig | 6 +++ drivers/gpio/Makefile| 1 + driv

Re: [PATCH] scripts: config_whitelist: CONFIG_SYS_FLASH_AUTOPROTECT_LIST

2022-09-04 Thread Sergei Antonov
On Sun, 4 Sept 2022 at 12:23, Sergei Antonov wrote: > > On Sat, 3 Sept 2022 at 19:16, Tom Rini wrote: > > > > On Sat, Sep 03, 2022 at 05:49:50PM +0300, Sergei Antonov wrote: > > > On Sat, 3 Sept 2022 at 17:31, Tom Rini wrote: > > > > > > > &g

Re: [PATCH] scripts: config_whitelist: CONFIG_SYS_FLASH_AUTOPROTECT_LIST

2022-09-04 Thread Sergei Antonov
On Sat, 3 Sept 2022 at 19:16, Tom Rini wrote: > > On Sat, Sep 03, 2022 at 05:49:50PM +0300, Sergei Antonov wrote: > > On Sat, 3 Sept 2022 at 17:31, Tom Rini wrote: > > > > > > On Sat, Sep 03, 2022 at 05:30:30PM +0300, Sergei Antonov wrote: > > > &g

[PATCH] gpio: ftgpio010: Add support for Faraday Technology FTGPIO010

2022-09-03 Thread Sergei Antonov
Add Faraday Technology's FTGPIO010 controller driver. Signed-off-by: Sergei Antonov --- drivers/gpio/Kconfig | 6 +++ drivers/gpio/Makefile| 1 + drivers/gpio/ftgpio010.c | 100 +++ 3 files changed, 107 insertions(+) create mode 100644 drivers

Re: [PATCH] scripts: config_whitelist: CONFIG_SYS_FLASH_AUTOPROTECT_LIST

2022-09-03 Thread Sergei Antonov
On Sat, 3 Sept 2022 at 17:31, Tom Rini wrote: > > On Sat, Sep 03, 2022 at 05:30:30PM +0300, Sergei Antonov wrote: > > > CONFIG_SYS_FLASH_AUTOPROTECT_LIST is a feature of drivers/mtd/cfi_flash.c > > driver. It allows to specify a range of protected eraseblocks on flash >

[PATCH] scripts: config_whitelist: CONFIG_SYS_FLASH_AUTOPROTECT_LIST

2022-09-03 Thread Sergei Antonov
: CONFIG_SYS_FLASH_AUTOPROTECT_LIST Signed-off-by: Sergei Antonov --- scripts/config_whitelist.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 22a0f2bf8a5d..d2e4e5375baf 100644 --- a/scripts/config_whitelist.txt +++ b/scripts

[PATCH] mmc: ftsdc010: make command timeout 250 ms as in the comment

2022-09-02 Thread Sergei Antonov
Get rid of discrepancy beween comment /* 250 ms */ and code which shifts by 4 thus dividing by 16. So change code to shift by 2 and make the timeout value 250 ms. Signed-off-by: Sergei Antonov --- drivers/mmc/ftsdc010_mci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Using SYS_FLASH_AUTOPROTECT_LIST

2022-08-24 Thread Sergei Antonov
Hello! Should CONFIG_SYS_FLASH_AUTOPROTECT_LIST be added to scripts/config_whitelist.txt ? I am trying to use it to auto-protect a critical area of flash and 'make' fails on config check: Error: You must add new CONFIG options using Kconfig The following new ad-hoc CONFIG options were detected:

[PATCH] dm: core: fix a typo in help text

2022-08-21 Thread Sergei Antonov
Signed-off-by: Sergei Antonov --- cmd/dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dm.c b/cmd/dm.c index eb40f0865fe0..218be85795d4 100644 --- a/cmd/dm.c +++ b/cmd/dm.c @@ -87,7 +87,7 @@ static char dm_help_text[] = "dm drivers Dump list of dr

Re: [PATCH] arm: ARMv4 assembly compatibility

2022-08-21 Thread Sergei Antonov
On Sat, 20 Aug 2022 at 22:13, Tom Rini wrote: > So, my recollection at the time was that we were / had removed all > upstream platforms that were using a core design that didn't accept "bx > lr". If you're going to upstream the rest of your platform, please do a > v2 that also updates the comment

[PATCH v2] arm: ARMv4 assembly compatibility

2022-08-21 Thread Sergei Antonov
nt update. Pointed out by Andre Przywara. Signed-off-by: Sergei Antonov CC: Samuel Holland CC: Ye Li CC: Simon Glass CC: Andre Przywara CC: Marek Vasut CC: Sean Anderson CC: Tom Rini --- arch/arm/include/asm/assembler.h | 10 -- arch/arm/lib/lib1funcs.S | 8 arch/

Re: [PATCH] arm: ARMv4 assembly compatibility

2022-08-17 Thread Sergei Antonov
On Tue, 16 Aug 2022 at 19:17, Andre Przywara wrote: > > On Wed, 10 Aug 2022 12:04:46 +0300 > Sergei Antonov wrote: > > Hi, > > > There is currently a problem that U-Boot can not work on ARMv4 > > because assembly imlementations of memcpy() and some other functio

Re: [PATCH] arm: ARMv4 assembly compatibility

2022-08-16 Thread Sergei Antonov
On Wed, 10 Aug 2022 at 12:05, Sergei Antonov wrote: > > There is currently a problem that U-Boot can not work on ARMv4 > because assembly imlementations of memcpy() and some other functions > use "bx lr" instruction that is not available on ARMv4 ("mov pc, lr" &

[PATCH] arm: ARMv4 assembly compatibility

2022-08-10 Thread Sergei Antonov
lem is found in arch/arm/lib/relocate.S. Move it to the "ret" macro in arch/arm/include/asm/assembler.h and change all "bx lr" code to "ret lr" in functions that may run on ARMv4. Linux source code deals with this problem in the same manner. Signed-off-by: Sergei Anton

cmd_process warning

2022-08-01 Thread Sergei Antonov
Hello! There is an annoying warning about conflicting return types: common/command.c:586:20: warning: conflicting types for 'cmd_process' due to enum/integer mismatch; have 'enum command_ret_t(int, int, char * const*, int *, ulong *)' {aka 'enum command_ret_t(int, int, char * const*, int *,

[PATCH] meson: axg: search dtb for meson-axg-usb-ctrl on board axg

2022-05-09 Thread Sergei Antonov
USB controller for AXG is described as meson-axg-usb-ctrl, see arch/arm/dts/meson-axg.dtsi Look for that name instead of meson-gxl-usb-ctrl. Signed-off-by: Sergei Antonov --- arch/arm/mach-meson/board-axg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach