summaryrefslogtreecommitdiff
path: root/bsp/cvitek
AgeCommit message (Collapse)Author
2024-06-26[bsp/Cvitek]去除shell脚本中的'\r' (#9097)heyuanjie87
* [bsp/cvitek]去除脚本中'\r' * [bsp/cvitek]删除脚本中的'\r' * Update combine-fip.sh
2024-06-20bsp中option env语句替换为新语句,并同步更新了source "$xxx"语句latercomer
2024-06-18[libcpu] rv64: support for ARCH_REMAP_KERNEL (#9067)Shell
* [libcpu] support for ARCH_REMAP_KERNEL These changes introduce support for the ARCH_REMAP_KERNEL configuration, which isolates kernel space in high virtual address regions. This feature is necessary to enhance memory protection and management by segregating user and kernel spaces more effectively. Changes: - Updated conditional macros to check for ARCH_REMAP_KERNEL instead of ARCH_KERNEL_IN_HIGH_VA in board initialization files to reflect the new configuration option. - Modified qemu-virt64-riscv Kconfig and SConstruct files to include and utilize ARCH_REMAP_KERNEL. - Created a new linker script `link_smart.lds` for smart linking in qemu-virt64-riscv. - Updated rtconfig.py to use a more flexible execution path setup. - Enhanced user address space definitions in `lwp_arch.h` to support the new virtual address mappings. - Adjusted kernel memory initialization and mapping logic in `c906/mmu.c` and `virt64/mmu.c` to account for high virtual address regions. - Added Kconfig option to enable ARCH_REMAP_KERNEL for RISCV64 architectures. - Enhanced memory setup functions to support new mapping scheme, including updates to early page table setup and address relocation logic. These modifications ensure that the system can utilize high memory addresses for the kernel, improving memory isolation and system stability. Signed-off-by: Shell <[email protected]> * fixup: CI run failed * bsp: default config without using smart * fixup: static checks * restore rt_hw_mmu_kernel_map_init for D1 --------- Signed-off-by: Shell <[email protected]>
2024-05-27update gpio driverflyingcys
2024-05-22Accumulated patchsets for bsp/cvitek (#8968)Chen Wang
* bsp: cvitek: kconfig: add wdt for cv18xx_riscv Add Watchdog timer in Kconfig. Signed-off-by: Chen Wang <[email protected]> * drv: cvitek: remove using macro from source file Building of source file should be controlled by SConscript, but not in source file itself. Signed-off-by: Chen Wang <[email protected]> * bsp: cvitek: kconfig: add i2c for cv18xx_riscv Add I2C in Kconfig for c906B. Note, the IRQ# is different from that of c906L. Signed-off-by: Chen Wang <[email protected]> * bsp: cvitek: kconfig: add rtc for cv18xx_riscv Add RTC in Kconfig for c906B. Signed-off-by: Chen Wang <[email protected]> * bsp: cvitek: fix channel issue for pwm driver The original code confuses the concepts of controllers and channels. Fixed it and do some code cleanup. Signed-off-by: Chen Wang <[email protected]> * bsp:cvitek: add i2c pinmux config for cv18xx_riscv Pinmux in driver code is controlled by SOC type, bcos driver code should be general and support all pins defined by SoC. Pinmux configuration in Kconfig is controlled by BOARD type, bcos when we operate on board, it does not expose all chip-level pin signals and we can only use part of them. Following is I2C signals exported by duo family. Details see https://milkv.io/docs/duo/overview. Note: we have not added support for duo-S. Duo === NAME I2C CV1800B/GPIO <PINNAME>__<FUNCNAME> ---- --- ------------ --------------------- GP0 I2C0_SCL XGPIOA[28] IIC0_SCL__IIC0_SCL GP1 I2C0_SDA XGPIOA[29] IIC0_SDA__IIC0_SDA GP4 I2C1_SCL PWR_GPIO[19] SD1_D2__IIC1_SCL GP9 I2C1_SCL PWR_GPIO[18] SD1_D3__IIC1_SCL GP11 I2C1_SCL XGPIOC[10] PAD_MIPIRX0N__IIC1_SCL GP5 I2C1_SDA PWR_GPIO[20] SD1_D1__IIC1_SDA GP8 I2C1_SDA PWR_GPIO[21] SD1_D0__IIC1_SDA GP10 I2C1_SDA XGPIOC[9] PAD_MIPIRX1P__IIC1_SDA GP7 I2C3_SCL PWR_GPIO[22] SD1_CMD__IIC3_SCL GP6 I2C3_SDA PWR_GPIO[23] SD1_CLK__IIC3_SDA Duo 256m ======== NAME I2C CV1800B/GPIO <PINNAME>__<FUNCNAME> ---- --- ------------ --------------------- GP4 I2C1_SCL PWR_GPIO[19] SD1_D2__IIC1_SCL GP9 I2C1_SCL PWR_GPIO[18] SD1_D3__IIC1_SCL GP5 I2C1_SDA PWR_GPIO[20] SD1_D1__IIC1_SDA GP8 I2C1_SDA PWR_GPIO[21] SD1_D0__IIC1_SDA GP11 I2C2_SCL XGPIOC[15] PAD_MIPI_TXP1__IIC2_SCL GP10 I2C2_SDA XGPIOC[14] PAD_MIPI_TXM1__IIC2_SDA GP7 I2C3_SCL PWR_GPIO[22] SD1_CMD__IIC3_SCL GP6 I2C3_SDA PWR_GPIO[23] SD1_CLK__IIC3_SDA Duo S ===== NAME I2C CV1800B/GPIO <PINNAME>__<FUNCNAME> ---- --- ------------ --------------------- J3-B18 I2C1_SCL XGPIOB[18] VIVO_D3__IIC1_SCL J3-B12 I2C1_SCL XGPIOB[12] VIVO_D9__IIC1_SCL J3-B11 I2C1_SDA XGPIOB[11] VIVO_D10__IIC1_SDA J3-B13 I2C2_SCL XGPIOB[13] VIVO_D8__IIC2_SCL J4-E1 I2C2_SCL PWR_GPIO[1] PWR_GPIO1__IIC2_SCL J3-B14 I2C2_SDA XGPIOB[14] VIVO_D7__IIC2_SDA J4-E2 I2C2_SDA PWR_GPIO[2] PWR_GPIO2__IIC2_SDA J3-B20 I2C4_SCL XGPIOB[20] VIVO_D1__IIC4_SCL J4-B1 I2C4_SCL XGPIOB[1] ADC3__IIC4_SCL J3-B21 I2C4_SDA XGPIOB[21] VIVO_D0__IIC4_SDA J4-B2 I2C4_SDA XGPIOB[2] ADC2__IIC4_SDA Signed-off-by: Chen Wang <[email protected]> Signed-off-by: flyingcys <[email protected]> * bsp:cvitek: remove using macro from source file for i2c Signed-off-by: Chen Wang <[email protected]> * bsp:cvitek: unify menu message text for i2c as other drivers Other dirvers has no extra word "HW". Signed-off-by: Chen Wang <[email protected]> * bsp:cvitek: add i2c pinmux config for c906_little Porting what we have done in commit "bsp:cvitek: add i2c pinmux config for cv18xx_riscv" to c906_little. Signed-off-by: Chen Wang <[email protected]> --------- Signed-off-by: Chen Wang <[email protected]> Signed-off-by: flyingcys <[email protected]> Co-authored-by: flyingcys <[email protected]>
2024-05-13[bsp/cvitek]update gpio driver (#8946)flyingcys
update gpio driver
2024-04-29[bsp/cvitek]add eth driverflyingcys
2024-04-28[bsp/cvitek]update cvitek sdhci drvier (#8874)flyingcys
update cvitek sdhci drvier
2024-04-24[bsp]support cvitek sdhci drvier (#8849)flyingcys
support cvitek sdhci drvier
2024-04-23[bsp][cvitek] Initialize the Milk-V Duo 256M using the device tree (#8841)liYangYang
Initialize the board using the device tree
2024-04-21[bsp][cvitek] Milk-V Duo 256M Supports running ARM large core and RISCV ↵liYangYang
small core 支持将rtthread.bin和dtb文件合成boot.sd文件,使用uboot直接通过bootcmd命令启动rtthread内核。 支持构建带有小核riscv程序的fip.bin文件,保证在运行arm大核的同时运行小核的riscv程序。
2024-04-18[bsp][cvitek] 修正PIN设备的控制宏Yaochenger
2024-04-16[bsp][cvitek] 在Milk-V Duo ↵liYangYang
256M开发板中支持ARM核运行RT-Thread标准版和Smart版内核 (#8800) * Supports ARM core of Milk-V Duo 256M development board * add fip.bin(arm)
2024-04-09support cvitek bsp spinor flashflyingcys
2024-04-07[bsp/cvitek]update cv18xx series README.mdflyingcys
update cv18xx series README.md
2024-04-07[bsp/cvitek]add gitignore fileflyingcys
提交 cvitek 下大核 被gitignore 编译依赖文件
2024-04-03support cv181x-riscv for RT-SMART (#8724)flyingcys
2024-04-01[bsp][CV1800B] add SPI driver for CV1800BJingbao Qiu
Signed-off-by: Jingbao Qiu <[email protected]>
2024-03-28support cv181x c906_little (#8680)flyingcys
2024-03-23[pin] pin_read/write rt_uint8_t to rt_ssize_tkk
2024-03-21[bsp][CV1800B] add POR driver which support rebootqiujingbao
2024-03-21[bsp] update projectsMeco Man
2024-03-20[bsp][CV1800B] add RTC Alarm function for CV1800BJingbao Qiu
Signed-off-by: Jingbao Qiu <[email protected]>
2024-03-18[bsp][CV1800B] fix cv1800b polarity reversal errorJingbao Qiu
Signed-off-by: Jingbao Qiu <[email protected]>
2024-03-07[bsp][cvitek] add rtc driver (#8586)Shicheng Chu
2024-03-03[bsp][cvitek] add wdt driverZ8MAN8
2024-03-02[bsp/cvitek]add pwm driver (#8571)flyingcys
2024-02-28[bsp/cvitek]add adc driver (#8562)flyingcys
2024-02-20[ci] open ci check with function declaration warning (#8546)Yuqiang Wang
2024-02-18[bsp][cvitek] 修复cv1800b默认中断号的配置问题flyingcys
2024-02-15[bsp][cvitek]: add c906_little i2c driver (#8535)Shicheng Chu
2024-01-29add cvitek/c906_little (#8514)flyingcys
2024-01-28fix bl808-d0 && cv1800b compile error (#8513)flyingcys