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:
> > >
> >
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
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
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
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
,
| ^~~~
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
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()
: 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
-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
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
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
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
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;
> +
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
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
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
/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
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
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
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
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
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
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"?
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
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
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
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.
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
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/
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)
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
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
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
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
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
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
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
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
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
> > &
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
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
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 =
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
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:
>
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
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
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
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
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
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
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
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
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
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
>
:
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
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
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:
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
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
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/
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
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"
&
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
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 *,
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
65 matches
Mail list logo