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
yangjiukui
fe98e909d2
L61: Sensor: Add sensor driver for LSM6DSO.
...
N/A
Add driver for the STMicro LSM6DSO.
Change-Id: I462a2912cf8c7f141f285e482c8222bdb854b5ee
Signed-off-by: yangjiukui <yangjiukui@xiaomi.com>
2021-08-09 11:39:42 +08:00
Jiuzhu Dong
8ecd51ac0e
cmd/df: Fix the abnormal output after off_t change
...
Change-Id: Ieaf063cb636a77eea971cb19e6eaeea6421bff4b
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-08-06 10:20:55 +08:00
Xiang Xiao
df1ffd9680
signal: Allow SIG_EVTHREAD selectable in protected mode
...
since we can delivery signal through libs/libc/wqueue
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-05 21:19:34 +08:00
chao.an
3bd2a5b11a
local/stream: remove preamble header in stream mode
...
Preable sync header is no necessary in stream mode
Signed-off-by: chao.an <anchao@xiaomi.com>
Change-Id: Id269fc09cf877ec6dc42706eb667adfc5362bf7a
2021-08-05 21:14:23 +08:00
chao.an
acad830329
net/local: remove unused client lc_remaining
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-08-05 21:14:14 +08:00
zhuyanlin
cca615e35f
arch:xtensa:include chip/irq.h instead of depend on chip config.
...
Many duplicate code when more chips add-in,
follow arch/arm/include/irq.h method, use chip/irq.h instead.
Change-Id: I42f516c1dda68e973939c669f627c457cd0bc65e
2021-08-05 14:07:08 +08:00
zhuyanlin
2152ec3fbb
arch:xtensa_testset: remove include arch/spinlock.h
...
In config with no "CONFIG_SPINLOCK", include arch/spinlock.h will lead to
build error as multi definition with spinlock_t. Nuttx/spinlock.h will
include arch/spinlock.h when needed.
Change-Id: I33b48503f679ec79af3a0ef1f0fb1536aaf1ce7c
2021-08-05 14:07:08 +08:00
zhuyanlin
acf8d58472
arch:xtensa: use letter 'i' in inline assemble constraint instead of I
...
Some toolchain such as xtensa-xcc is unrecognize with constraint letter 'I',
letter 'i' is more common in GNU assembler.
Change-Id: I00f6a33fd7a5f2b95508c683e9954d402b68755f
2021-08-05 14:07:08 +08:00
zhuyanlin
15abaf6eaa
arch:xtensa: add multi GNU toolchain for xtensa.
...
Add support xcc/xclang/esp GUN toolchin in xtensa,
ESP toolchain is default.
Change-Id: Id00bcf4a16c1e16862a106db32b1da3f3713a14c
2021-08-05 14:07:08 +08:00
zhuyanlin
9e2d5e4e7e
build.sh: add license file and set EXTRAFLAG when arch is xtensa.
...
Change-Id: I3c93f78297d4216b4b1ad25532aa3f2e23bb4d54
2021-08-05 14:06:59 +08:00
Xiang Xiao
e783f6e648
libc/gettext: Change g_domain to array
...
otherwise textdomain will deference NULL pointer in the default case
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-05 12:14:52 +08:00
liuhaitao
694e7d29f4
armv8-m: correct CONFIG_SYS_RESERVED from 8 to 9 accordingly
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
Change-Id: I94a24140c57f21e80b7a0c517e7458adf23e2c88
2021-08-04 22:42:50 +08:00