chao.an
0ec74ec6dd
wireless/bcm43xxx: remove global variable for bcmf_sdio_thread
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-19 11:43:25 +08:00
chao.an
fbddae8813
wireless/bcm43xxx: add customized MAC address support
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-19 10:13:23 +08:00
chao.an
e498e5308a
wireless/bcm43xxx: handle disassoc correctly
...
1. use WLC_DISASSOC to deal disconnect event
2. carrier net device status
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-18 19:43:13 +08:00
chao.an
e6a23e7b8a
wireless/bcm43xxx: sort scan result by rssi
...
1. Replace SCAN_RESULT_SIZE to SCAN_RESULT_ENTRIES
2. filter scan result with better rssi
3. Sort scan result by rssi
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-18 19:42:30 +08:00
Xiang Xiao
0de089e2e8
wireless/bcm43xxx: Don't call bcmf_board_setup_oob_irq in bcmf_sdio_thread
...
since oob irq is already setup in bcmf_bus_setup_interrupts, it waste
time and energy to do the same thing repeatly in the work thread.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-06-17 20:12:41 +08:00
chao.an
2992b10fbb
wireless/bcm43xxx: add more ioctl command support
...
Support command:
SIOCGIWFREQ
SIOCGIWMODE
SIOCSIWAP
SIOCGIWAP
SIOCGIWESSID
SIOCGIWRATE
SIOCGIWTXPOW
SIOCGIWSENS
SIOCGIWRANGE
Before: After:
cp> wapi show wlan0 cp> wapi show wlan0
wlan0 Configuration: wlan0 Configuration:
IP: 192.168.31.202 IP: 192.168.31.202
NetMask: 255.255.255.0 NetMask: 255.255.255.0
ioctl(SIOCGIWFREQ): 88 Frequency: 5785
ERROR: wapi_get_freq() failed: -88 Flag: WAPI_FREQ_AUTO
ioctl(SIOCGIWESSID): 88 Channel: 157
ERROR: wapi_get_essid() failed: -88 Frequency: 5785
ioctl(SIOCGIWMODE): 88 ESSID: archer5
ERROR: wapi_get_mode() failed: -88 Flag: WAPI_ESSID_ON
ioctl(SIOCGIWAP): 88 Mode: WAPI_MODE_MANAGED
ERROR: wapi_get_ap() failed: -88 AP: ec:41:18:e0:76:7f
ioctl(SIOCGIWRATE): 88 BitRate: 58500
ERROR: wapi_get_bitrate() failed: -88 Flag: WAPI_BITRATE_FIXED
ioctl(SIOCGIWTXPOW): 88 TxPower: 31
ERROR: wapi_get_txpower() failed: -88 Flag: WAPI_TXPOWER_DBM
ioctl(SIOCGIWSENS): 25 Sense: -17
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-17 18:27:12 +08:00
chao.an
9c68064024
wireless/bcm43xxx: add status print on bcmf_wl_auth_event_handler()
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-17 16:17:01 +08:00
Charles Cross
d12e2778a5
Adds device descriptor for the MB5RS2MTA 256KB FRAM part
2022-06-17 09:57:56 +08:00
Xiang Xiao
22548d71eb
drivers/syslog: reuse rmutex_t for the recursive check
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-06-16 19:01:49 +03:00
Satoshi Togawa
a9ad1a336b
usbhost_cdcacm: fix error with interrupt IN endpoint.
2022-06-16 19:01:17 +03:00
chao.an
e2c154dffe
wireless/bcm43xxx: configurable buffer size of escan result
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-16 23:36:40 +08:00
chao.an
29dd12283c
wireless/bcm43xxx: replace all busy delay to nxsig_usleep
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-16 23:02:09 +08:00
chao.an
591942f69b
mmcsd/sdio: correct return value of sdio_probe()
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-16 22:48:21 +08:00
chao.an
b33a709213
wireless/bcm43xxx: improve throughput of net driver
...
1. Wake up tx if there is data alreay to sent after rx update
2. Try tx queue again after every data frame sent
iperf test:
```
TCP RX 4M->16M
TCP TX 2M->14M
UDP RX 18M->26M
UDP TX 2M->18M
```
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-16 21:08:28 +09:00
Xiang Xiao
f75f100954
bcm43xxx: Remove bcmf_txavail_work and resue bcmf_tx_poll_work
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-06-16 09:13:16 +03:00
chao.an
6d85e9b320
wireless/bcm43xx: replace sem_wait to uninterruptible version
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-16 02:44:47 +08:00
chao.an
0951d859d3
wireless/bcm43xxx: configurable schedule priority of daemon thread
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-16 01:41:50 +08:00
chao.an
4712307ecc
wireless/bcm43xxx: fix typo sq_init() -> dq_init()
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-16 01:40:41 +08:00
chao.an
e75c88df5b
wireless/bcm43xxx: load nvram from file system
...
added an option to load nvram from file system, which will help developers
easily to tuning the firmware parameters without compile firmware.
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-15 22:19:02 +08:00
chao.an
f6b8cc1407
wireless/bcm430xx: rename chip minor id to 'x'
...
rename 4301x chip minor id to 'x' to compatible more versions of variant of bcm430xx
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-15 02:01:37 +08:00
chao.an
4659e00fac
wireless/bcm43xxx: add extended join parameters
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-15 00:56:31 +08:00
chao.an
28b46bd381
wirless/sdio: frame length should with guard bound
...
some SDIO device will return the larger frames out of bound
error log:
bcmf_sdpcm_readframe: Frame is too large, cancel 1544 1536
bcmf_sdpcm_readframe: Frame is too large, cancel 1544 1536
bcmf_sdpcm_readframe: Frame is too large, cancel 1544 1536
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-14 18:31:22 +03:00
Petro Karashchenko
e42e3aa642
drivers/syslog: fix deadlock by reverting part of the changes from b88a8cf39f
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-06-14 00:11:28 +08:00
chao.an
c7fd1a113f
wireless/bcm43xxx: add support of bcm43013 chip
...
Reference:
https://www.broadcom.cn/bcm43013
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-13 21:03:05 +08:00
chao.an
7e1f906b74
drvers/mmcsd/sdio: function enable should wait for CCCR_IORDY
...
1. function enable should wait for CCCR_IORDY
2. enlarge wait timeout from 10ms to 1s
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-13 15:45:09 +03:00
zouboan
cb8c992914
drivers/sensors: add driver for as5048a magnetic encoder
2022-06-13 12:21:35 +03:00
Adam Kaliszan
88bfadc55d
e-ink ssd1680 driver
...
No BSP files
2022-06-10 22:19:29 +08:00
Eero Nurkkala
9f9fb17d64
usbdev/Kconfig: allow CONFIG_USBMSC_IFNOBASE configuration
...
usbmsc.h uses the CONFIG_USBMSC_IFNOBASE configuration option,
but it cannot be set anywhere. Provide means to configure this
option which is useful when it's other than the default zero.
Signed-off-by: Eero Nurkkala <eero.nurkkala@offcode.fi>
2022-06-09 20:44:40 +08:00
Xiang Xiao
f1236da21c
fs: Make the binary(no process) mode as the default
...
POSIX require file system shouldn't enable the \r and \n conversion by default
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-06-07 20:22:26 +03:00
Fotis Panagiotopoulos
73d5a27702
Fix in default syslog date format.
2022-06-05 22:23:32 +08:00
Fotis Panagiotopoulos
c0df7317ac
Fix in syslog file separator.
2022-06-04 14:30:15 +08:00
Michael Jung
9be3848491
Add driver for WIZnet W5500 Ethernet controller
...
A device driver based on drivers/net/skeleton.c, which uses the W5500 in
MACRAW mode (i.e. bypassing the integrated protocol stack).
Signed-off-by: Michael Jung <michael.jung@secore.ly>
2022-06-03 13:01:23 +08:00
zhanghongyu
035d925864
devif: remove all devif_timer
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2022-06-02 20:11:50 -03:00
Alin Jerpelea
72f399e052
drivers: video: add isx019 camera sensor
...
The driver is provided by Spresense SDK
ISX019 has the DOL-HDR feature, which combines images with different exposure so that
both bright and dark data of high-contrast subject can be viewed at the same time.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-05-31 19:52:33 +08:00
SPRESENSE
247ad41bb2
drivers/video/isx012: Fix getting the iso sensitivity
...
Fix bug to get the value of iso sensitivity.
2022-05-30 20:38:47 +03:00
SPRESENSE
acde5fed49
drivers/video/isx012: Fix getting the value of auto exposure
...
Fix bug to get the current setting value at AE auto mode.
2022-05-30 20:38:47 +03:00
SPRESENSE
1613ded060
drivers/video/isx012: Add exclusive controls for I2C access
...
Add exclusive control to prevent from I2C write(for sending requst) and
I2C read(for receiving response).
2022-05-30 20:38:47 +03:00
SPRESENSE
bea6d3a7ef
drivers/video: Fix bug that is_available() is false
...
is_available() may be false because chip id register does not
have unique value.
So, judge availability not by chip id but by i2c accessibility.
2022-05-30 20:38:47 +03:00
SPRESENSE
b296494fb8
drivers/video: Avoid additional overflow cases
...
Add clip size validation to avoid additional overflow.
2022-05-30 20:38:47 +03:00
SPRESENSE
1212d3b7d8
drivers/video: Fix multiplication overflow
...
Add cast to uint32_t type to avoid multiplication overflow.
2022-05-30 20:38:47 +03:00
SPRESENSE
c0ea6c5b49
drivers/video: Fix thumbnail size bug
...
Fix copy size to set thumbnail component, when thumbnail format is used
without clipping.
2022-05-30 20:38:47 +03:00
SPRESENSE
9c57850466
drivers/video: Support clip
...
Support clip by ioctl(VIDIOC_S_SELECTION) and ioctl(VIDIOC_G_SELECTION).
2022-05-30 20:38:47 +03:00
SPRESENSE
b45489753a
drivers/video: Enable to select connected image sensor driver at runtime
...
Enable to select connected image sensor driver at runtime by adding is_available()
to image sensor I/F.
2022-05-30 20:38:47 +03:00
SPRESENSE
a25ac08774
boards: cxd56xx: Change pin initialization timing for camera
...
Change pin initialization timing for camera from board power on to camera device
power on for the following purposes.
- avoid unnecessary power consumption
- Make the corresponding pins available for other uses when camera is not in use
2022-05-30 20:38:47 +03:00
SPRESENSE
229c7d30b6
drivers/video: Support ioctl(VIDIOC_QUERYCAP)
...
Support ioctl(VIDIOC_QUERYCAP) to get driver's name.
2022-05-30 20:38:47 +03:00
anjiahao
b88a8cf39f
use rmutex inside of all repeated implementation
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-05-30 19:43:48 +08:00
Xiang Xiao
7ec6b4c7dd
Change dpends on SCHED_[L|H]PWORK to SCHED_WORKQUEUE
...
since the code could map the unsupported work to the
supported one and remove select SCHED_WORKQUEUE from
Kconfig since SCHED_[L|H]PWORK already do the selection
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-05-28 18:41:51 +03:00
klmchp
d9e95a8f9b
fix devname array size
...
Fix drivers/mtd/smart.c devname overflow issue.
2022-05-26 10:00:14 -03:00
Cis van Mierlo
12469dd15e
SSD1306: Added option to force reconfigure display after power off
2022-05-24 23:25:24 +08:00
Xiang Xiao
5b0b4bd586
sched/wdog: Change the return type of wd_gettime from int to sclock_t
...
to handle 64bits sclock_t correctly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-05-19 23:21:54 +03:00