chao.an
76dfffe834
wireless/bcm43xxx: fix nxstyle issue
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2023-09-21 01:36:21 +08:00
chao.an
ff2b87c298
wireless/bcm43xxx: add Packet Traffic Arbitration Priority support
...
For Bluetooth wifi co-existence
Signed-off-by: chao.an <anchao@xiaomi.com>
2023-09-21 01:36:21 +08:00
hujun5
1aa42cc7d2
vnc_updater: use [enter|leave]_critical_section replace sched_[un]lock
...
sched_[un]lock can not prohibit pre-emption in smp
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-09-21 00:57:51 +08:00
chao.an
43dd6836f5
wireless/bcm43xxx: correct beacon loss behavior
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2023-09-21 00:39:40 +08:00
Shanmin Zhang
9b68971853
goldfish: add goldfish gps driver
...
Verification:
uorb_listener -r 1 sensor_gps
[ 18.240000] [13] [ INFO] [ap]
Mointor objects num:2
[ 18.240000] [13] [ INFO] [ap] object_name:sensor_gps, object_instance:0
[ 18.240000] [13] [ INFO] [ap] object_name:sensor_gps, object_instance:1
[ 18.240000] [13] [ ALERT] [ap] period_us = 1000000
[ 19.010000] [13] [ INFO] [ap] sensor_gps: timestamp: 19010000 (0 us ago) time_utc: 1689601925 latitude: 37.4210 longitude: -121.9150
[ 19.010000] [13] [ INFO] [ap] sensor_gps: altitude: 0.0000 altitude_ellipsoid: 0.0000 ground_speed: 145.3254 course: 166.2700
[ 19.010000] [13] [ INFO] [ap] sensor_gps: eph: nan epv: nan hdop: nan vdop: nan
[ 20.020000] [13] [ INFO] [ap] sensor_gps: timestamp: 20020000 (0 us ago) time_utc: 1689601926 latitude: 37.4210 longitude: -121.9150
[ 20.020000] [13] [ INFO] [ap] sensor_gps: altitude: 0.0000 altitude_ellipsoid: 0.0000 ground_speed: 145.3254 course: 166.2700
[ 20.020000] [13] [ INFO] [ap] sensor_gps: eph: nan epv: nan hdop: nan vdop: nan
[ 21.010000] [13] [ INFO] [ap] sensor_gps: timestamp: 21010000 (0 us ago) time_utc: 1689601927 latitude: 37.4210 longitude: -121.9150
[ 21.010000] [13] [ INFO] [ap] sensor_gps: altitude: 0.0000 altitude_ellipsoid: 0.0000 ground_speed: 145.3254 course: 166.2700
[ 21.010000] [13] [ INFO] [ap] sensor_gps: eph: nan epv: nan hdop: nan vdop: nan
[ 22.020000] [13] [ INFO] [ap] sensor_gps: timestamp: 22020000 (0 us ago) time_utc: 1689601928 latitude: 37.4210 longitude: -121.9150
[ 22.020000] [13] [ INFO] [ap] sensor_gps: altitude: 0.0000 altitude_ellipsoid: 0.0000 ground_speed: 145.3254 course: 166.2700
[ 22.020000] [13] [ INFO] [ap] sensor_gps: eph: nan epv: nan hdop: nan vdop: nan
[ 23.010000] [13] [ INFO] [ap] sensor_gps: timestamp: 23010000 (0 us ago) time_utc: 1689601929 latitude: 37.4210 longitude: -121.9150
[ 23.010000] [13] [ INFO] [ap] sensor_gps: altitude: 0.0000 altitude_ellipsoid: 0.0000 ground_speed: 145.3254 course: 166.2700
[ 23.010000] [13] [ INFO] [ap] sensor_gps: eph: nan epv: nan hdop: nan vdop: nan
...
Signed-off-by: Shanmin Zhang <zhangshanmin@xiaomi.com>
2023-09-21 00:38:14 +08:00
Jani Paalijarvi
c8540a1f9b
drivers/net/rpmsgdrv.c: Improve init error handling
...
Signed-off-by: Jani Paalijarvi <jani.paalijarvi@unikie.com>
2023-09-20 19:23:14 +08:00
Jani Paalijarvi
999970b820
drivers/net/rpmsgdrv.c: Take netdev_register() return value into account
...
Signed-off-by: Jani Paalijarvi <jani.paalijarvi@unikie.com>
2023-09-20 19:23:14 +08:00
zhanghongyu
398734500e
wifi: parse channel from IE when ctl_ch is 0
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-09-20 14:26:41 +08:00
zhanghongyu
537975656c
wifi: Add handle type for disconnecting event
...
Some disconnected events will be missed
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-09-20 10:07:40 +08:00
wanggang26
fa744e24a3
mmcsd: update cid reg layout
...
refer spec: https://www.jedec.org/sites/default/files/docs/JESD84-B51.pdf
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-09-20 00:42:30 +08:00
yintao
f3c9a8643b
nuttx: change RPTUNIOC_START and RPTUNIOC_STOP to synchronous
...
Support quit remote when server poweroff
Signed-off-by: yintao <yintao@xiaomi.com>
2023-09-20 00:42:02 +08:00
ligd
1f9fb5fce2
rptun: add rptun_update_rx() when device_created()
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2023-09-20 00:42:02 +08:00
ligd
378470f611
add remote poweroff support
...
Signed-off-by: yintao <yintao@xiaomi.com>
2023-09-20 00:42:02 +08:00
yangsen5
e0873c5a48
drivers/video: Fix crash caused by priv->capture_cb = null
...
When the upper layer calls goldfish_camera_data_uninit, priv->capture_cb=NULL, but when there is data transmission in goldfish_camera_thread, priv->capture_cb will be called, which will cause a crash.
Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2023-09-20 00:34:54 +08:00
sunkun3
219677cdae
rndis: Fixed rndis assert issue when calling composite_uninitlize
...
Signed-off-by: sunkun3 <sunkun3@xiaomi.com>
2023-09-19 07:51:49 +02:00
Xiang Xiao
635d578a73
drivers/sensor: Remove the selection of UORB from Kconfig
...
since the driver doesn't depend on userspace library(uORB) at all
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-19 11:27:47 +08:00
zhengshaobo1
6e6ba062fd
clock flags add CLK_OPS_PARENT_ENABLE, parents need enable during gate/ungate, set rate and re-parent
...
Signed-off-by: zhengshaobo1 <zhengshaobo1@xiaomi.com>
2023-09-19 10:34:48 +08:00
zhengshaobo1
be767dde01
vela fs procfs add clock procfs entry
...
procfs enrty add clock feature procfs operations
Signed-off-by: zhengshaobo1 <zhengshaobo1@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-19 10:34:48 +08:00
Xiang Xiao
4d2cc2ab4d
supply/regulator: Refine rpmsg regulator
...
1.Change priv to client or server
2.Allocate memory for name in regulator_rpmsg_get
3.Lock/unlock regulator_list in regulator_rpmsg_server_s
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-19 10:33:09 +08:00
yinshengkai
1d8e69700f
drivers/serial: add ram uart driver
...
It uses the memory block as the serial communication medium, which can communicate between different processes or different CPUs
Using the following configuration, the cross-core communication rate of 200MHz cortex-M55 is about 461KB/s
RAM_UART_BUFSIZE=1024
RAM_UART_POLLING_INTERVAL=100
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-09-19 09:41:07 +08:00
yinshengkai
1d9097f1df
drivers/serial: unmodify head and tail pointers
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2023-09-19 09:41:07 +08:00
chao an
5026a96cfa
nxstyle: cleanup UTF-8 Unicode to ASCII
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-09-18 11:54:17 -04:00
Daniel Appiagyei
5bfda12634
c++ compatibility: rename reserved c++ keywords 'public' and 'this'
2023-09-16 19:45:02 +08:00
dulibo1
ac62a08ac9
support pm runtime base function
...
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
2023-09-16 14:44:08 +08:00
dongjiuzhu1
8ababfc310
usbdev/mtp: support mtp class driver
...
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2023-09-16 14:40:08 +08:00
jturnsek
4407aa148e
Fixing row_size calculation when bpp is equal 1
2023-09-16 14:37:19 +08:00
jturnsek
6840b4444b
Adding Byte-Per-Pixel Memory model option to memlcd
2023-09-16 14:34:32 +08:00
Petro Karashchenko
dbc37a0165
nuttx: fix nxstyle issues
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-09-16 14:17:47 +08:00
Petro Karashchenko
1c9fe095bf
drivers/ramdisk: add missing 'FAR'
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-09-16 14:17:47 +08:00
liushuai25
10fce11e19
After turning on the system by power button, the first press of the power button is ineffective.
...
Signed-off-by: liushuai25 <liushuai25@xiaomi.com>
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2023-09-16 08:31:44 +03:00
SPRESENSE
1b1b1a025d
usbdev: Fix build error with BOARD_USBDEV_SERIALSTR
2023-09-15 13:34:06 +08:00
Zhe Weng
e4721cef5c
usrsock_rpmsg_server: Add net_lock to combine get_tx_payload and recvfrom in recvfrom_handler
...
A dead lock may happen before this patch:
rptun thread (usrsock_rpmsg_recvfrom_handler):
Gets all tx payload but waiting net_lock in psock_recvfrom
net driver thread (higher priority):
Receives a packet, holding net_lock, calling usrsock_rpmsg_send_event
But no tx buffer left, so rpmsg_send blocks, and won't release net_lock
In short:
Rptun: Hold all `tx_payload_buffer` -> want `net_lock`
Driver: Hold `net_lock` -> want `tx_payload_buffer`
This patch use net_lock to combine get_tx_payload and recvfrom together,
then:
- If it's waiting net_lock, tx payload will not be held, other threads
may get tx buffer and do their work.
- If net_lock is got, it won't be disturbed before finish receiving,
then tx payload won't have chance to be blocked before releasing.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-09-14 14:32:40 +08:00
wanggang26
dcadd87919
pm: fix issue that system crash when passed invalid relpath value
...
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
2023-09-13 21:47:27 +08:00
simbit18
b3973496cd
Fix Kconfig style
...
Remove spaces from Kconfig
Add comments
2023-09-13 21:39:49 +08:00
Zhe Weng
33da959fbc
usrsock_rpmsg_server: Clear revents for POLLHUP and POLLERR
...
Note:
tcp_poll_eventhandler have logic after poll_notify, if we teardown poll
inside poll callback without clearing revents, use-after-free will
happen.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-09-12 22:12:31 +08:00
jianglianfang
bbf5b0bb6d
driver/video: adapting Goldfish FB to VSync optimized FB driver
...
The circbuf part is implemented by the fb driver, and goldfish needs to
delete the part related to circbuf and adapt to the interface of the fb
driver.
Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
2023-09-12 22:10:10 +08:00
pengyiqiang
e578f3b20d
video/fb: add vsync queue
...
refact vsync queue to support multi fb poll and overlay poll.
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Signed-off-by: rongyichang <rongyichang@xiaomi.com>
2023-09-12 22:10:10 +08:00
jianglianfang
43ea7e65e1
driver/fb: add fb_get_planeinfo and initialize local variable pinfo
...
VELAPLATFO-11808
Change-Id: I32db03d52b778cc7dd1784adea0a432976fde6bf
Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
2023-09-12 22:10:10 +08:00
pengyiqiang
7485816d6f
video/fb: use counter record the num of poll ready
...
add a count to record the number of pollready.
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2023-09-12 22:10:10 +08:00
yangsen5
f8b19c2030
drivers/video: Modify the properties of the goldfish camera driver kthread_create
...
1. priority = SCHED_PRIORITY_DEFAULT
2. stack_size = DEFAULT_TASK_STACKSIZE
Signed-off-by: yangsen5 <yangsen5@xiaomi.com>
2023-09-12 16:28:16 +08:00
zhangyuan21
fb7c36978f
usbdev: support usb adb fastboot
...
Enable CONFIG_USBFASTBOOT to support fastboot driver.
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-09-12 16:27:49 +08:00
Xiang Xiao
78728fc5eb
Fix error: spi/qspi_flash.c:576:45: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-12 10:02:50 +08:00
Xiang Xiao
08b151a681
Fix error: mtd/smart.c:2800:12: error: variable 'mincount' set but not used [-Werror,-Wunused-but-set-variable]
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-09-11 17:38:45 +08:00
zhengshaobo1
09a81017b8
To solve the problem of unordered setting of div & mux, after solving the problem, the frequency will be set to mux first, and then div
...
Signed-off-by: zhengshaobo1 <zhengshaobo1@xiaomi.com>
2023-09-10 13:36:16 +03:00
zhengshaobo1
f6ba2970e0
Solve the risk of dividing by 0 when setting frequency points
...
Signed-off-by: zhengshaobo1 <zhengshaobo1@xiaomi.com>
2023-09-10 13:36:16 +03:00
wangming9
f05e72324c
drivers/video: fix build error on CONFIG_DEBUG_OPTLEVEL="-O3"
...
Summary
The following compilation error occurs after configuring CONFIG_DEBUG_OPTLEVEL="-O3"
CC: ping.c video/video.c: In function 'video_ioctl':
video/video.c:2347:22: error: 'control.size' may be used uninitialized [-Werror=maybe-uninitialized]
2347 | control->size,
| ^~
video/video.c:2273:28: note: 'control' declared here
2273 | struct v4l2_ext_control control;
| ^~~~~~~
Signed-off-by: wangming9 <wangming9@xiaomi.com>
2023-09-09 17:08:23 +03:00
Andre Heinemans
329e050c30
Added NXP SE05x support (secure element)
2023-09-09 15:54:08 +08:00
zhangyuan21
59f7fe11a3
usbdev: adb use fs device for ep process
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-09-09 15:52:08 +08:00
zhangyuan21
1f6d9bbd17
usbdev: add usbdev fs device for usb char device
...
Add usb_fs driver so that userspace can directly transfer USB packets
through the EP node. ADB, Fastboot, MTP will use usb_fs, these class
driver only need to provide the descriptors and register the usb_fs device.
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-09-09 15:52:08 +08:00
SPRESENSE
60364d7c72
drivers/sensors/bmi270: Enable to select config memory
...
Allow to transfer the BMI270 configuration data directly, and
provide an option to use the heap memory if it cannot transfer
directly.
2023-09-09 00:46:24 +08:00