Commit 51d738af authored by sam.xiang's avatar sam.xiang Committed by forum_service

build: weekly update 2023-04-02 1. add cv1801c rls config

Change-Id: I588ae7244d83bf56b849a4e6b4eaa328f179a04c
parent 9b648a18
...@@ -28,7 +28,7 @@ CONFIG_UBOOT_2021_10=y ...@@ -28,7 +28,7 @@ CONFIG_UBOOT_2021_10=y
CONFIG_KERNEL_SRC_5.10=y CONFIG_KERNEL_SRC_5.10=y
CONFIG_KERNEL_LZMA=y CONFIG_KERNEL_LZMA=y
CONFIG_SKIP_RAMDISK=y CONFIG_SKIP_RAMDISK=y
CONFIG_BUILDROOT_FS=y # CONFIG_BUILDROOT_FS is not set
# CONFIG_ROOTFS_OVERLAYFS is not set # CONFIG_ROOTFS_OVERLAYFS is not set
# CONFIG_TARGET_PACKAGE_CVITRACER is not set # CONFIG_TARGET_PACKAGE_CVITRACER is not set
# CONFIG_TARGET_PACKAGE_GDBSERVER is not set # CONFIG_TARGET_PACKAGE_GDBSERVER is not set
......
../../cv1800b_wdmb_0008a_spinor/u-boot/cvitek_cv1800b_wdmb_0008a_spinor_rls_defconfig
\ No newline at end of file
<physical_partition type="spinor">
<partition label="fip" size_in_kb="1024" readonly="false" file="fip.bin"/>
<partition label="BOOT" size_in_kb="3072" readonly="false" file="boot.spinor"/>
<partition label="ENV" size_in_kb="64" file="" />
<partition label="ENV_BAK" size_in_kb="64" file="" />
<partition label="ROOTFS" size_in_kb="10240" readonly="false" file="rootfs.spinor" />
<partition label="DATA" size_in_kb="512" readonly="false" file="data.spinor" mountpoint="/mnt/data" type="jffs2" />
</physical_partition>
../../cv1800b_wdmb_0008a_spinor/u-boot/cvitek_cv1800b_wdmb_0008a_spinor_rls_defconfig
\ No newline at end of file
../../cv1800b_wdmb_0008a_spinor/linux/cvitek_cv1800b_wdmb_0008a_spinor_rls_defconfig
\ No newline at end of file
<physical_partition type="spinor">
<partition label="fip" size_in_kb="1024" readonly="false" file="fip.bin"/>
<partition label="BOOT" size_in_kb="3072" readonly="false" file="boot.spinor"/>
<partition label="ENV" size_in_kb="64" file="" />
<partition label="ENV_BAK" size_in_kb="64" file="" />
<partition label="ROOTFS" size_in_kb="10240" readonly="false" file="rootfs.spinor" />
<partition label="DATA" size_in_kb="512" readonly="false" file="data.spinor" mountpoint="/mnt/data" type="jffs2" />
</physical_partition>
../../cv1800b_wdmb_0008a_spinor/u-boot/cvitek_cv1800b_wdmb_0008a_spinor_rls_defconfig
\ No newline at end of file
../../cv1800b_wdmb_0008a_spinor/linux/cvitek_cv1800b_wdmb_0008a_spinor_rls_defconfig
\ No newline at end of file
<physical_partition type="spinor">
<partition label="fip" size_in_kb="1024" readonly="false" file="fip.bin"/>
<partition label="BOOT" size_in_kb="3072" readonly="false" file="boot.spinor"/>
<partition label="ENV" size_in_kb="64" file="" />
<partition label="ENV_BAK" size_in_kb="64" file="" />
<partition label="ROOTFS" size_in_kb="10240" readonly="false" file="rootfs.spinor" />
<partition label="DATA" size_in_kb="512" readonly="false" file="data.spinor" mountpoint="/mnt/data" type="jffs2" />
</physical_partition>
../../cv1800b_wdmb_0008a_spinor/u-boot/cvitek_cv1800b_wdmb_0008a_spinor_rls_defconfig
\ No newline at end of file
<physical_partition type="spinand">
<partition label="fip" size_in_kb="2560" file="fip.bin"/>
<partition label="BOOT" size_in_kb="8192" file="boot.spinand"/>
<partition label="MISC" size_in_kb="384" file="logo.jpg" />
<partition label="ENV" size_in_kb="128" file="" />
<partition label="ENV_BAK" size_in_kb="128" file="" />
<partition label="ROOTFS" size_in_kb="71680" file="rootfs.spinand" />
<partition label="SYSTEM" size_in_kb="20480" file="system.spinand" mountpoint="" type="ubifs" />
<partition label="CFG" size_in_kb="4096" file="cfg.spinand" mountpoint="/mnt/cfg" type="ubifs" />
<partition label="DATA" file="" mountpoint="/mnt/data" type="ubifs" />
</physical_partition>
<physical_partition type="spinor">
<partition label="fip" size_in_kb="1024" readonly="false" file="fip.bin"/>
<partition label="BOOT" size_in_kb="3072" readonly="false" file="boot.spinor"/>
<partition label="ENV" size_in_kb="64" file="" />
<partition label="ENV_BAK" size_in_kb="64" file="" />
<partition label="ROOTFS" size_in_kb="10240" readonly="false" file="rootfs.spinor" />
<partition label="DATA" size_in_kb="512" readonly="false" file="data.spinor" mountpoint="/mnt/data" type="jffs2" />
</physical_partition>
../../cv1800b_wdmb_0008a_spinor/linux/cvitek_cv1800b_wdmb_0008a_spinor_rls_defconfig
\ No newline at end of file
../../../default/linux/cv181x_wevb_spinor_spinand_riscv_defconfig
\ No newline at end of file
../../../default/partition/partition_spinor_16mb_cv181x.xml
\ No newline at end of file
<physical_partition type="spinor">
<partition label="fip" size_in_kb="800" readonly="false" file="fip.bin"/>
<partition label="BOOT" size_in_kb="2600" readonly="false" file="boot.spinor"/>
<partition label="ENV" size_in_kb="64" file="" />
<partition label="ROOTFS" size_in_kb="4000" readonly="false" file="rootfs.spinor" />
<partition label="DATA" size_in_kb="512" readonly="false" file="data.spinor" mountpoint="/mnt/data" type="jffs2" />
</physical_partition>
../../../default/partition/partition_spinor_16mb_cv181x.xml
\ No newline at end of file
<physical_partition type="spinor">
<partition label="fip" size_in_kb="800" readonly="false" file="fip.bin"/>
<partition label="BOOT" size_in_kb="2600" readonly="false" file="boot.spinor"/>
<partition label="ENV" size_in_kb="64" file="" />
<partition label="ROOTFS" size_in_kb="4000" readonly="false" file="rootfs.spinor" />
<partition label="DATA" size_in_kb="512" readonly="false" file="data.spinor" mountpoint="/mnt/data" type="jffs2" />
</physical_partition>
../../default/memmap/cv181x/memmap_ddr_128mb.py
\ No newline at end of file
SIZE_1M = 0x100000
SIZE_1K = 1024
# Only attributes in class MemoryMap are generated to .h
class MemoryMap:
# No prefix "CVIMMAP_" for the items in _no_prefix[]
_no_prefix = [
"CONFIG_SYS_TEXT_BASE" # u-boot's CONFIG_SYS_TEXT_BASE is used without CPP.
]
DRAM_BASE = 0x80000000
DRAM_SIZE = 128 * SIZE_1M
# ==============
# C906L FreeRTOS
# ==============
FREERTOS_SIZE = 2 * SIZE_1M
# FreeRTOS is at the end of DRAM
FREERTOS_ADDR = DRAM_BASE + DRAM_SIZE - FREERTOS_SIZE
FSBL_C906L_START_ADDR = FREERTOS_ADDR
# ==============================
# OpenSBI | arm-trusted-firmware
# ==============================
# Monitor is at the begining of DRAM
MONITOR_ADDR = DRAM_BASE
ATF_SIZE = 512 * SIZE_1K
OPENSBI_SIZE = 512 * SIZE_1K
OPENSBI_FDT_ADDR = MONITOR_ADDR + OPENSBI_SIZE
# =========================
# memory@DRAM_BASE in .dts.
# =========================
# Ignore the area of FreeRTOS in u-boot and kernel
KERNEL_MEMORY_ADDR = DRAM_BASE
KERNEL_MEMORY_SIZE = DRAM_SIZE - FREERTOS_SIZE
# =================
# Multimedia buffer. Used by u-boot/kernel/FreeRTOS
# =================
ION_SIZE = 75 * SIZE_1M
H26X_BITSTREAM_SIZE = 2 * SIZE_1M
H26X_ENC_BUFF_SIZE = 0
ISP_MEM_BASE_SIZE = 20 * SIZE_1M
FREERTOS_RESERVED_ION_SIZE = H26X_BITSTREAM_SIZE + H26X_ENC_BUFF_SIZE + ISP_MEM_BASE_SIZE
# ION after FreeRTOS
ION_ADDR = FREERTOS_ADDR - ION_SIZE
# Buffers of the fast image are inside the ION buffer
H26X_BITSTREAM_ADDR = ION_ADDR
H26X_ENC_BUFF_ADDR = H26X_BITSTREAM_ADDR + H26X_BITSTREAM_SIZE
ISP_MEM_BASE_ADDR = H26X_ENC_BUFF_ADDR + H26X_ENC_BUFF_SIZE
assert ISP_MEM_BASE_ADDR + ISP_MEM_BASE_SIZE <= ION_ADDR + ION_SIZE
# Boot logo is after the ION buffer
# Framebuffer uses boot logo's reserved memory
BOOTLOGO_SIZE = 1800 * SIZE_1K
BOOTLOGO_ADDR = ION_ADDR - BOOTLOGO_SIZE
FRAMEBUFFER_SIZE = BOOTLOGO_SIZE
FRAMEBUFFER_ADDR = BOOTLOGO_ADDR
# ===================
# FSBL and u-boot-2021
# ===================
CVI_UPDATE_HEADER_SIZE = SIZE_1K
UIMAG_SIZE = 16 * SIZE_1M
# kernel image loading buffer
UIMAG_ADDR = DRAM_BASE + 24 * SIZE_1M
CVI_UPDATE_HEADER_ADDR = UIMAG_ADDR - CVI_UPDATE_HEADER_SIZE
# FSBL decompress buffer
FSBL_UNZIP_ADDR = UIMAG_ADDR
FSBL_UNZIP_SIZE = UIMAG_SIZE
assert UIMAG_ADDR + UIMAG_SIZE <= BOOTLOGO_ADDR
# u-boot's run address and entry point
CONFIG_SYS_TEXT_BASE = DRAM_BASE + 2 * SIZE_1M
# u-boot's init stack point is only used before board_init_f()
CONFIG_SYS_INIT_SP_ADDR = UIMAG_ADDR + UIMAG_SIZE
../../../default/partition/partition_spinor_16mb_cv181x.xml
\ No newline at end of file
<physical_partition type="spinor">
<partition label="fip" size_in_kb="1024" readonly="false" file="fip.bin"/>
<partition label="BOOT" size_in_kb="3072" readonly="false" file="boot.spinor"/>
<partition label="APPCFG" size_in_kb="64" readonly="false" file="app_cfg.bin"/>
<partition label="APPCFGDEF" size_in_kb="64" readonly="false" file="app_cfg_def.bin"/>
<partition label="ENV" size_in_kb="64" file="" />
<partition label="ENV_BAK" size_in_kb="64" file="" />
<partition label="ROOTFS" size_in_kb="11264" readonly="false" file="rootfs.spinor" />
<partition label="MISC" size_in_kb="512" file="logo.jpg" />
<partition label="DATA" readonly="false" file="" mountpoint="/mnt/data" type="jffs2" />
</physical_partition>
../../../default/u-boot/cv181x_bga_cvi_board_init.c
\ No newline at end of file
static void set_rtc_register_for_power(void)
{
printf("set_rtc_register_for_power\n");
mmio_write_32(0x050250AC, 0x2);
mmio_write_32(0x050260D0, 0x3);
mmio_write_32(0x03001098, 0x0);
mmio_write_32(0x0300109C, 0x0);
mmio_write_32(0x03001090, 0x0);
mmio_write_32(0x03001094, 0x0);
mmio_write_32(0x05027084, 0x0);
mmio_write_32(0x05027088, 0x0);
mmio_write_32(0x0502708C, 0x0);
mmio_write_32(0x05027090, 0x0);
mmio_write_32(0x050260BC, 0x1700);
mmio_write_32(0x05026128, 0x0);
}
int cvi_board_init(void)
{
PINMUX_CONFIG(CAM_MCLK0, CAM_MCLK0);
PINMUX_CONFIG(IIC3_SCL, IIC3_SCL);
PINMUX_CONFIG(IIC3_SDA, IIC3_SDA);
//##########I2C0 ######### demo board i2c0 need using gpio to simulate i2c
/*touch panel*/
PINMUX_CONFIG(IIC0_SCL, XGPIOA_28);
PINMUX_CONFIG(IIC0_SDA, XGPIOA_29);
PINMUX_CONFIG(VIVO_D9, XGPIOB_12);
PINMUX_CONFIG(VIVO_D8, XGPIOB_13);
//#########SENSOR_PWR_EN
PINMUX_CONFIG(CAM_PD0, XGPIOA_1);
//#########WIFI
pinmux_config(PINMUX_SDIO1);
PINMUX_CONFIG(VIVO_D10, XGPIOB_11);
//########AHD
PINMUX_CONFIG(ADC3, IIC4_SCL);
PINMUX_CONFIG(ADC2, IIC4_SDA);
PINMUX_CONFIG(USB_VBUS_EN, XGPIOB_5);
PINMUX_CONFIG(PAD_MIPIRX5N, XGPIOC_0);
//#######tp
PINMUX_CONFIG(VIVO_D9, XGPIOB_12);
PINMUX_CONFIG(VIVO_D8, XGPIOB_13);
//########panel
PINMUX_CONFIG(JTAG_CPU_TRST, XGPIOA_20);
pinmux_config(PINMUX_DSI);
PINMUX_CONFIG(AUX0, XGPIOA_30);
PINMUX_CONFIG(PWR_GPIO0, PWR_GPIO_0);
//######## mipi-dsi
PINMUX_CONFIG(PAD_MIPI_TXM0, XGPIOC_12);
PINMUX_CONFIG(PAD_MIPI_TXP0, XGPIOC_13);
PINMUX_CONFIG(PAD_MIPI_TXM1, XGPIOC_14);
PINMUX_CONFIG(PAD_MIPI_TXP1, XGPIOC_15);
PINMUX_CONFIG(PAD_MIPI_TXM2, XGPIOC_16);
PINMUX_CONFIG(PAD_MIPI_TXP2, XGPIOC_17);
PINMUX_CONFIG(PAD_MIPI_TXM3, XGPIOC_20);
PINMUX_CONFIG(PAD_MIPI_TXP3, XGPIOC_21);
PINMUX_CONFIG(PAD_MIPI_TXM4, XGPIOC_18);
PINMUX_CONFIG(PAD_MIPI_TXP4, XGPIOC_19);
//######## usb
PINMUX_CONFIG(USB_VBUS_DET, XGPIOB_6);
set_rtc_register_for_power();
return 0;
}
../../../default/u-boot/cv181x_wevb_riscv_spinor_defconfig
\ No newline at end of file
CONFIG_RISCV=y
CONFIG_SYS_MALLOC_F_LEN=0x2000
CONFIG_NR_DRAM_BANKS=1
CONFIG_DEFAULT_DEVICE_TREE="cv181x_asic"
CONFIG_IDENT_STRING=" cvitek_cv181x"
CONFIG_ARCH_RV64I=y
CONFIG_RISCV_SMODE=y
CONFIG_TARGET_CVITEK_CV181X=y
CONFIG_CVITEK_SPI_FLASH=y
CONFIG_DISTRO_DEFAULTS=y
CONFIG_FIT=y
# CONFIG_ARCH_FIXUP_FDT_MEMORY is not set
CONFIG_BOOTDELAY=1
CONFIG_SYS_PROMPT="cv181x_c906# "
# CONFIG_CMD_CONSOLE is not set
# CONFIG_CMD_XIMG is not set
# CONFIG_CMD_EDITENV is not set
# CONFIG_CMD_CRC32 is not set
# CONFIG_CMD_LZMADEC is not set
# CONFIG_CMD_UNLZ4 is not set
# CONFIG_CMD_UNZIP is not set
# CONFIG_CMD_LOADS is not set
CONFIG_CMD_MMC=y
# CONFIG_CMD_ITEST is not set
CONFIG_CMD_CACHE=y
CONFIG_CMD_CVI_SD_UPDATE=y
# CONFIG_ISO_PARTITION is not set
# CONFIG_EFI_PARTITION is not set
CONFIG_NET_RANDOM_ETHADDR=y
CONFIG_MMC=y
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_SDMA=y
CONFIG_MMC_SDHCI_CVITEK=y
CONFIG_MTD=y
# CONFIG_PHY_SMSC is not set
CONFIG_DM_ETH=y
CONFIG_ETH_DESIGNWARE=y
CONFIG_PHY_CVITEK=y
CONFIG_SYS_NS16550=y
CONFIG_SPI=y
CONFIG_LZ4=y
CONFIG_LZMA=y
# CONFIG_TOOLS_LIBCRYPTO is not set
# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
CONFIG_DM=y
CONFIG_DM_MMC=y
CONFIG_DM_GPIO=y
CONFIG_DWAPB_GPIO=y
CONFIG_BOOTLOGO=y
CONFIG_CMD_CVI_VO=y
CONFIG_DISPLAY=y
CONFIG_DM_VIDEO=y
CONFIG_VIDEO_CVITEK=y
CONFIG_DISPLAY_CVITEK_MIPI=y
CONFIG_MIPI_PANEL_LANE_SWAP=y
#CONFIG_DISPLAY_CVITEK_LVDS is not set
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment