Xiang Xiao
e91c95b197
mtd: Implement BIOC_PARTINFO for all drivers
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-16 22:07:02 +08:00
chao.an
47f784a748
net/rpmsg: fix typo in comment
...
Change-Id: Icbf8122c5054e01516841b7f0d369992bc967931
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-08-16 21:46:35 +08:00
chao.an
886d567e7d
net/rpmsg: add nonblock connect(2) support
...
Change-Id: I6fe12c7e40d6e4c4353034d4731c24bd6a28225c
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-08-16 21:46:27 +08:00
chao.an
b6dbf55271
net/rpmsg: move the sync handshark to ns_bind callback
...
Change-Id: Ic37671f59fbf08bcbd78cf0221759ee8fed1ed22
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-08-16 21:38:00 +08:00
chao.an
79dd7453ac
net/rpmsg: simplify the socket timeout of connect
...
Change-Id: I9ff5b3e7dad0b73196cfa058f3a55f2ea3086815
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-08-16 21:38:00 +08:00
chao.an
00b373112b
driver/pipe: add nonblock open support
...
Change-Id: Ibdf627167b1a30e698607b4f32f6b1c8cc2f15ae
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-08-16 21:38:00 +08:00
chao.an
2d597f55df
net/local: add nonblock connect(2) support
...
Change-Id: Iee8250b5011f799c52d667b2593760673378443e
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-08-16 21:37:52 +08:00
chao.an
bfeefa09b1
net/tcp: add nonblock connect(2) support
...
Change-Id: I01b125996a85c9ea0220a24bb3d41d6e75e36554
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-08-16 21:27:08 +08:00
Xiang Xiao
93b478a71f
arch/arm: Add NVIC_FPCCR_XXX macro to avoid the hard code value
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-15 10:18:19 -07:00
Xiang Xiao
642443b8b3
arch/arm: Add NVIC_CPACR_CP_XXX(n) macro to avoid the hard code value
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-15 10:18:06 -07:00
Xiang Xiao
8c38d134f8
arch/arm: Add NVIC_AIRCR_VECTKEY macro to avoid the hard code value
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-15 10:17:54 -07:00
Xiang Xiao
e0c4c5822e
fs/partition: Support BIOC_PARTINFO
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-15 10:16:22 -07:00
genghuihui
11a0bb3e98
feature:add audio AUDIOIOC_SETPARAMTER ioctl command
...
add AUDIOIOC_SETPARAMTER iotcl command in include/nuttx/audio/audio.h
Signed-off-by: genghuihui <genghuihui@xiaomi.com >
Change-Id: I8d88c649a87cb5fbdd0fb1f83c111a1fff380507
2021-08-13 15:47:56 +08:00
genghuihui
d8c0f7279e
feature:add awinic88266a smart pa nuttx driver
...
awinic88266a smart pa driver use nuttx/audio framework to register audio device,
use i2c to control smart pa configuration
Signed-off-by: genghuihui <genghuihui@xiaomi.com >
Change-Id: I05361a582dde49af71c5dbd08ab9365b4ea0f80a
2021-08-13 15:44:03 +08:00
zhuyanlin
9d92277bb8
arch:xtensa: replace include file from src/chip_xxx to chip.h
...
Use chip.h as a standard include file, replace chip_xxx in src dir
2021-08-13 13:56:39 +08:00
zhuyanlin
7b1d3d5c75
arch:esp: create chip.h header for chip src code.
...
Create chip.h header for esp src code.
2021-08-13 13:56:35 +08:00
zhuyanlin
43b72c180a
arch:xtensa: add __ASSEMBLY__ for espxxx_soc.h
...
Those header contain syntax not be recognize by gnu assembler.
2021-08-13 13:56:31 +08:00
Xiang Xiao
4bee1e5690
mtd: Replace MTDIOC_XIPBASE with BIOC_XIPBASE
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-12 20:29:18 +08:00
Xiang Xiao
1e557e16ff
Revert "mtd: Add MTDIOC_FLUSH IOCTL like MTDIOC_XIPBASE"
...
to simplify flt and partion layer implementation
This reverts commit 2e49e1bc5c .
2021-08-12 20:29:12 +08:00
Xiang Xiao
0705ae633e
mtd: Replace MTDIOC_PARTINFO with BIOC_PARTINFO
...
to simplify flt and partion layer implementation
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-12 20:28:45 +08:00
Xiang Xiao
9b58b77b88
mtd: Remove the empty MTDIOC_XIPBASE implmentation
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-11 23:39:24 +08:00
Xiang Xiao
36e744d88a
fs: Remove endsector from partition_info_s
...
since it can be computed from startsector and numsectors simply
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-11 23:39:02 +08:00
Gustavo Henrique Nihei
336222524a
mtd: Translate BIOC_PARTINFO into MTDIOC_PARTINFO on FTL driver
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com >
2021-08-11 23:39:02 +08:00
Gustavo Henrique Nihei
e66503788e
fs: Add ioctl command for retrieving partition info of a block device
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com >
2021-08-11 23:39:02 +08:00
Gustavo Henrique Nihei
1767685a9e
mtd: Enable retrieval of MTD partition information
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com >
2021-08-11 23:39:02 +08:00
Gustavo Henrique Nihei
5883abbe77
fs: Add data structure for Partition Information
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com >
2021-08-11 23:39:02 +08:00
Gustavo Henrique Nihei
845b1e8043
risc-v/esp32c3: Implement MTDIOC_ERASESTATE for SPI Flash driver
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com >
2021-08-11 23:37:48 +08:00
Gustavo Henrique Nihei
4c13006515
drivers/mtd: Implement MTDIOC_ERASESTATE for MTD drivers
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com >
2021-08-11 23:37:48 +08:00
Gustavo Henrique Nihei
66aa221947
arm/lpc43xx: Implement MTDIOC_ERASESTATE for SPIFI Flash driver
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com >
2021-08-11 23:37:48 +08:00
Gustavo Henrique Nihei
5784d1384b
xtensa/esp32: Implement MTDIOC_ERASESTATE for SPI Flash driver
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com >
2021-08-11 23:37:48 +08:00
Gustavo Henrique Nihei
f5964d55dd
mtd: Add MTDIOC_ERASESTATE command for retrieving erase state value
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com >
2021-08-11 23:30:30 +08:00
Xiang Xiao
622c637832
fs/userfs: Support fchstat and chstat callback
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-11 18:18:52 +08:00
Xiang Xiao
276f99d239
fs/unionfs: Support fchstat and chstat callback
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-11 18:18:52 +08:00
Jiuzhu Dong
36ac863777
endian.h: add prefix for __LITTLE/__BIG_ENDIAN, __BYTE_ODRER
...
Change-Id: If072b69e37a89ccd6dc62e1d485b15703da029ac
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-08-11 17:58:17 +08:00
Jiuzhu Dong
10f091fdbb
byteswap.h: add byteswap.h header file
...
Change-Id: I2b00618f608efbb8834328823b5e0eaa66f42aba
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-08-11 16:49:39 +08:00
zhuyanlin
62ce5ca966
xtensa:coproc: fix XTENSA_CP_ALLSET error in some case
...
Consider follow coprocessor configuration case:
\#define XCHAL_CP_NUM 1 /* number of coprocessors */
\#define XCHAL_CP_MAX 2 /* max CP ID + 1 (0 if none) */
\#define XCHAL_CP_MASK 0x02 /* bitmask of all CPs by ID */
\#define XCHAL_CP_PORT_MASK 0x00 /* bitmask of only port CPs */
\
\#define XCHAL_CP1_NAME "AudioEngineLX"
\#define XCHAL_CP1_IDENT AudioEngineLX
\#define XCHAL_CP1_SA_SIZE 208 /* size of state save area */
\#define XCHAL_CP1_SA_ALIGN 8 /* min alignment of save area */
\#define XCHAL_CP_ID_AUDIOENGINELX 1 /* coprocessor ID (0..7) */
In this case, XTENSA_CP_ALLSET is 0x1, but valid coprocessors
bitmap is 0x2, use marco XCHAL_CP_MASK instead, it is bitmap of all
vaild coprocs.
Change-Id: I63ec01e4bd0cbafc62d56636cc11bdc4a2f7857f
2021-08-11 10:40:01 +08:00
zhuyanlin
dd2f465055
arch:xtensa: add arch stdarg.h include file for xtensa
...
Add arch/include/stdarg.h for xtensa.
Change-Id: Ia914ca0f4c95e86b130983ce690479a994a08b56
2021-08-11 10:39:44 +08:00
Xiang Xiao
4d96dc801c
fs/nfs: Support fchstat and chstat callback
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-10 20:45:53 +08:00
Xiang Xiao
66ddc7fd62
fs/nfs: Return nanosecond from nfs_fstat and nfs_stat callback
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-10 20:43:25 +08:00
Xiang Xiao
31475a94ac
fs/nfs: Support 64bit file length
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-10 20:42:21 +08:00
Xiang Xiao
d27a86486f
fs/hostfs: Support fchstat and chstat callback
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-10 14:33:14 +08:00
chao.an
0c06c44258
boards/sim: fix cxx build break
...
revert commit:
commit ecd66eb90c
Author: YAMAMOTO Takashi <yamamoto@midokura.com >
Date: Fri Oct 23 09:28:27 2020 +0900
sim: libcxx: Use __GLIBCXX__ ABI for non macOS
-----------------------------------------------------------------
commit 3fc06ff2d1
Author: YAMAMOTO Takashi <yamamoto@midokura.com >
Date: Thu Oct 22 10:47:08 2020 +0900
sim: Specify -fshort-wchar as NuttX wchar_t is 16-bit
-----------------------------------------------------------------
Change-Id: Idefd81ca3b0a88a38fcdfa0796c1a2897b4a015b
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-08-10 11:56:14 +08:00
Xiang Xiao
7afb3354cc
fs: Add utimens and lutimens
...
https://pubs.opengroup.org/onlinepubs/9699919799/functions/futimens.html
https://www.daemon-systems.org/man/utimens.2.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-09 21:09:35 +08:00
Xiang Xiao
c360ae777b
fs/hostfs: Change all priv_ to priv
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-09 21:09:35 +08:00
Xiang Xiao
e09dc6069b
arch/arm: Add CONTROL register bit field definition
...
and replace all hardcode value
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-09 21:08:29 +08:00
Xiang Xiao
ad827673b2
Rename CONFIG_LIB_BOARDCTL to CONFIG_BOARDCTL
...
since boardctl isn't a libc feature
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: If32db0451e10fb02e0c12ed48f2b7120859b8ae3
2021-08-09 21:03:17 +08:00
Xiang Xiao
4bffde887d
Rename LIB_ to LIBC_ for all libc Kconfig
...
follow other libc component naming convention
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I66cf8f3201560ce71576279640e94ae3147ad0a2
2021-08-09 21:03:17 +08:00
liuhaitao
6442b8ea2d
Revert "libc: Implement fesetround & fegetround for arm"
...
The updated GNU Arm Embedded Toolchain Version 10.3-2021.07 has implemented
fesetround & fegetround.
This reverts commit 5c0a079aea .
Change-Id: I6418c1f47a6c1a319a2973f01340480d50f54e8e
2021-08-09 20:02:47 +08:00
xiatian6
ca095b2d90
Feature: Sensor: Add ct7117 temperature sensor driver.
...
N/A
Add ct7117 temperature sensor driver for nuttx.
Change-Id: Ibc21e732c418ab2d61cc40a806c82cc76ad400bd
2021-08-09 18:30:04 +08:00
Xiang Xiao
9ca5722522
board/sim: Enable locale related setting in nsh
...
to extend the daily build cover the locale code
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-08-09 16:50:55 +08:00