Bowen Wang
a662c7aab3
rpmsg/rpmsg_port: judge notify_rx_free and notify_tx_ready before calling
...
Some lower layers do not need implement these two operations, so judge
them before calling.
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-09-17 01:55:51 +08:00
Bowen Wang
d27a9c516f
rpmsg/Kconfig: move RPMSG_PORT outside RPMSG and select RPMSG direclty
...
All the RPMSG transport should direcly select the RPMSG like RPMSG_VIRTIO
does.
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-09-17 01:55:51 +08:00
liaoao
f7939a8081
rpmsg_port_spi: add spi transport layer
...
Add Rpmsg-Port-SPI transport layer.
Rpmsg Port SPI is a new rpmsg transport layer based on the Rpmsg Port,
it provides the capability for two SPI-connected (and two extra GPIO)
chips to communicate with each other using Rpmsg.
All already implemented Rpmsg Services can be used with this new transport
layer without any modifications.
Signed-off-by: liaoao <liaoao@xiaomi.com>
2024-09-17 01:55:51 +08:00
liaoao
dd66a6b203
rpmsg_port:reduce len and avail of rpmsg_port_header_s to uint16_t
...
uint16_t is enough and more suitable
Signed-off-by: liaoao <liaoao@xiaomi.com>
2024-09-17 01:55:51 +08:00
liaoao
3d6abb1d86
rpmsg_port:add rpmsg_port_queue_nused api
...
Add nused api for lower layer to get the used buffer number
Signed-off-by: liaoao <liaoao@xiaomi.com>
2024-09-17 01:55:51 +08:00
liaoao
6d604ec487
rpmsg: add physical transport layer support
...
Rpmsg Physical Transport Layer is a new rpmsg transport, it's a
common part for the physical communication based rpmsg transport
layers such as Rpmsg-SPI and Rpmsg-Uart.
It implements three common parts:
1. Implement the NuttX and OpenAMP rpmsg frameworks' ops and the
rpmsg name service;
2. The buffer management and provide some APIs to lower layer to use;
Signed-off-by: liaoao <liaoao@xiaomi.com>
2024-09-17 01:55:51 +08:00
p-szafonimateusz
1e212981b9
drivers/net: add support for Intel I225 network card
...
add support for Intel I225 network card
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
2024-09-17 01:42:38 +08:00
p-szafonimateusz
bc0c7b0db3
drivers/net: add Intel e1000 network card support
...
add Intel e1000 network card support
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
2024-09-17 01:42:38 +08:00
Jorge Guzman
e3dabcd999
boards/esp32s3: add support to esp32s3-lhcbit board
...
The esp32s3-lhcbit is a board with lora, sdcard, display TFT, etc.
Signed-off-by: Jorge Guzman jorge.gzm@gmail.com
2024-09-17 01:30:44 +08:00
p-szafonimateusz
8723aa7125
drivers: fix gcc14 errors for virtio
...
fix gcc14 errors for virtio
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
2024-09-16 11:25:40 -03:00
wanggang26
584931aa0d
fix two typos
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-09-16 11:25:10 -03:00
wanggang26
89e5ceb51e
vfs:fix a type mismatch issue and a typo
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-09-16 11:24:56 -03:00
wanggang26
0a8b6404d8
rwbuffer: fix a typo
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-09-16 09:22:23 -03:00
wanggang26
872208fdf8
boardctl: add board control api to start slave core
...
This interface may be used by application specific logic to start
specified slave cpu core under the pseudo AMP case which is different
with armv7-a/armv8-a SMP. Support for this function is required by
board-level logic if CONFIG_BOARDCTL_START_CPU is selected.
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-09-16 13:03:33 +08:00
dongjiuzhu1
d2591380ae
Revert "fs/mount and fs/romfs: Add support to mount a ROMFS volume using an MTD driver interface using the standard mount() operation."
...
This reverts commit 5708a1ac73
.
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-16 12:27:40 +08:00
dongjiuzhu1
ace2683492
fs/mount: add ftl proxy to mount block filesystem on mtd device
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-16 12:27:40 +08:00
Matteo Golin
9d1e7a0510
docs: Update Raspberry Pi Pico and Pico W docs to include the new SDK version and picotool
instructions.
2024-09-16 12:22:17 +08:00
wanggang26
a4883d8fa6
nucleo-h745zi: fix potential bl jump to app failed issue
...
After changing sp, following functions calling will result
in unpredictable behavior in case of jumping
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-09-16 12:20:47 +08:00
dongjiuzhu1
7f99a15ccf
libc/time: add g_lcl_lock to protect local context in localsub
...
0x0c1561f8 in localsub (tmp=0x3c887088, offset=0, timep=0x3c887078) at time/lib_localtime.c:1993
localtime_r (timep=0x3c887078, timep@entry=0x3c887088, tmp=0x3c887088, tmp@entry=0x3c887098) at time/lib_localtime.c:2819
0x0c1225c8 in nx_vsyslog (priority=7, fmt=0x2c6d9700 <error: Cannot access memory at address 0x2c6d9700>,
ap=0x3c887170, ap@entry=0x3c887178) at syslog/vsyslog.c:135
0x0c152068 in vsyslog (priority=priority@entry=7,
fmt=fmt@entry=0x2c6d9700 <error: Cannot access memory at address 0x2c6d9700>, ap=ap@entry=...) at syslog/lib_syslog.c:68
0x0c152098 in syslog (priority=priority@entry=7, fmt=0x2c6d9700 <error: Cannot access memory at address 0x2c6d9700>) at syslog/lib_syslog.c:100
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-16 10:35:17 +08:00
dongjiuzhu1
a9bc198bc3
composite.c warning
...
usbdev/composite.c:649:36: warning: implicit declaration of function 'board_usbdev_pid' [-Wimplicit-function-declaration]
649 | uint16_t pid = board_usbdev_pid(); usbdev/composite.c:650:36: warning: implicit declaration of function 'board_usbdev_vid'
[-Wimplicit-function-declaration] 650 | uint16_t vid = board_usbdev_vid();
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-16 10:33:01 +08:00
dongjiuzhu1
e0d82fdf3a
drivers/usedev: remove unnecessary mdelay because remain req info had beed push to serial buffer
...
this mdelay causes cpu busy wait, affects other process running.
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-16 10:33:01 +08:00
dongjiuzhu1
1a69d3c6ee
cdcacm: Add cdcacm bulkout request buffer config
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-16 10:33:01 +08:00
hujun5
c16fd8c911
gicv2:g_gic_init_done need to be protect
...
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-09-16 10:30:41 +08:00
ligd
cd88cb1e48
armv7-a/r: check gic init wait done when using sgi
...
In SMP mode, qemu/goldfish platform, cpu0 use up_cpu_start()
to start others cpus.
But in previous patch(mathion ahead), arm_gic_initialize() will
wait others cpus start, so deadlocked!
Resolve:
Move the wait logic when use using sgi
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-09-16 10:30:41 +08:00
Bowen Wang
4f5b3f3d82
arm_gicv2: always enable GIC_ICCICRS_ACKTCTL
...
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-09-16 10:30:41 +08:00
Bowen Wang
7f0ab52b12
arm_gicv2: cpu 0 wait other cpu gic init done
...
After move the SGI irq to group1, other cpu can't response the
sgi request from cpu0 when its gic not initialized.
So let cpu0 wait until all other cpus gic initialize done.
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-09-16 10:30:41 +08:00
ligd
4358eba13a
armv7-a/r: export __start symbol
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-09-16 10:30:41 +08:00
ligd
07b55cf7ab
armv7-a/r: set up_cpu_start() to wakefunction
...
cause some platform will have their special way
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-09-16 10:30:41 +08:00
wanggang26
702068e62c
ftl: should pre-allocate eblock for car case
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-09-16 10:25:36 +08:00
dongjiuzhu1
97d684847b
drivers/reset: support rpmsg reset
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-15 20:21:41 +08:00
Masayuki Ishikawa
df298c186f
Revert "build depend:Revert Make.dep intermediate ddc file"
...
This reverts commit ddc3119c4e
.
2024-09-15 19:29:47 +08:00
liwenxiang1
868b17bc5a
misc/goldfish: Compatible with x86_64 goldfish pipe
...
x86_64 uses 4-5G virtual addresses, we need to convert them into physical addresses and pass them to qemu, otherwise qemu will fail to map
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-09-15 19:28:55 +08:00
Xiang Xiao
908cd1b10a
misc/goldfish_pipe: Refine the implementation
...
1.Merge goldfish_pipe_qemu.h into goldfish_pipe.c
2.Change all enum to macro
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-09-15 19:28:55 +08:00
yangguangcai
12ecfe365f
driver/goldfish_pipe:remove pipe interrupt task delay.
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2024-09-15 19:28:55 +08:00
zhanghu5
9642d8dae6
fix goldfish_pipe poll error
...
when multiple processes call poll and a event occured,
all the processes are waked up. it should wake up one
process based on pipe->id
Signed-off-by: zhanghu5 <zhanghu5@xiaomi.com>
2024-09-15 19:28:55 +08:00
Shanmin Zhang
e793a741cc
goldfish_pipe: Fix pointer-to-int-cast warning
...
Signed-off-by: Shanmin Zhang <zhangshanmin@xiaomi.com>
2024-09-15 19:28:55 +08:00
rongyichang
69af7eef54
drivers/goldfish_pipe: notify poll event in interrupt task
...
Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2024-09-15 19:28:55 +08:00
zhanghu5
3fd404a4c5
fds pointer not initialized cause dereference error
...
Signed-off-by: zhanghu5 <zhanghu5@xiaomi.com>
2024-09-15 19:28:55 +08:00
rongyichang
ce6382cc0c
drivers/misc: enable irq for goldfish pipe
...
Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2024-09-15 19:28:55 +08:00
zhanghu5
2ce2844480
drivers/misc: support nuttx goldfish_pipe
...
Signed-off-by: zhanghu5 <zhanghu5@xiaomi.com>
2024-09-15 19:28:55 +08:00
ligd
fc50e57a26
pthread_mutx: remove unused critical_secton lock
...
Caused the 'nlocks' are remove from mutex, so
here don't need do critical_secton lock like nxmutex_lock
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-09-15 17:32:33 +08:00
wanggang26
f07a1868ce
coredump: just save latest core file
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-09-15 17:31:40 +08:00
wanggang26
2c24e5b430
arch/arm-m: Clear lr before jump to __start
...
to fix issue about https://github.com/apache/nuttx/issues/12687
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2024-09-15 17:31:12 +08:00
dongjiuzhu1
1bad603fe7
drivers/gpio: save memory if dont support signal
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-15 11:29:55 +08:00
dongjiuzhu1
28815fb7c5
drivers/gpio: add poll function for gpio device
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2024-09-15 11:29:55 +08:00
xuxin19
997be40003
cmake:bugfix fix sim CMake build break
...
fix lim CMake config prefix error
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-09-15 10:29:21 +08:00
xuxin19
ec99359812
cmake:add mtd driver dhara cmake build
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-09-15 10:29:21 +08:00
xuxin19
5b3275c07b
cmake:add libmcs cmake build
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-09-15 10:29:21 +08:00
xuxin19
21c68b44da
cmake:support openlibm cmake build
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-09-15 10:29:21 +08:00
xuxin19
a3e7fee595
cmake:add missing libc regex CMake support
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-09-15 10:29:21 +08:00