mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-15 16:48:56 +00:00
v1.2.1
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
CONFIG_PRJ_DEFCONFIG_FILENAME="d12x_demo68-mmc_baremetal_bootloader_defconfig"
|
||||
CONFIG_PRJ_CHIP="d12x"
|
||||
CONFIG_PRJ_BOARD="demo68-mmc"
|
||||
CONFIG_PRJ_KERNEL="baremetal"
|
||||
CONFIG_PRJ_APP="bootloader"
|
||||
CONFIG_PRJ_CUSTOM_LDS="application/baremetal/bootloader/ldscript/d12x_bootloader_gcc.ld"
|
||||
CONFIG_AIC_USING_UART0=y
|
||||
CONFIG_AIC_USING_UART1=y
|
||||
CONFIG_AIC_UART0_DMA_ENABLE_FLAG=y
|
||||
CONFIG_AIC_DEV_UART0_RX_MODE_INT=y
|
||||
CONFIG_AIC_DEV_UART0_RX_BUFSZ=2048
|
||||
CONFIG_AIC_DEV_UART0_TX_BUFSZ=2048
|
||||
CONFIG_AIC_USING_SDMC0=y
|
||||
# CONFIG_AIC_USING_DE is not set
|
||||
# CONFIG_AIC_USING_GE is not set
|
||||
# CONFIG_AIC_USING_VE is not set
|
||||
CONFIG_AIC_USING_DMA=y
|
||||
CONFIG_AIC_USING_WRI=y
|
||||
CONFIG_AIC_USING_WDT=y
|
||||
CONFIG_AIC_PSRAM_SW_SIZE=0x300000
|
||||
CONFIG_AIC_INTERRUPTSTACK_SIZE=8192
|
||||
CONFIG_AIC_CLK_PLL_FRA0_FREQ=384000000
|
||||
CONFIG_AIC_SYSCFG_LDO1X_ENABLE=y
|
||||
CONFIG_AIC_SYSCFG_LDO1X_VOL_VAL=8
|
||||
CONFIG_AIC_NORMALSTACK_SIZE=8192
|
||||
CONFIG_AIC_BOOTLOADER_TEXT_SIZE=0x7FF00
|
||||
CONFIG_AIC_BOOTLOADER_CONSOLE_UART=1
|
||||
CONFIG_AIC_BOOTLOADER_MMC_SUPPORT=y
|
||||
# CONFIG_AIC_BOOTLOADER_SPINOR_SUPPORT is not set
|
||||
# CONFIG_AIC_BOOTLOADER_SPINAND_SUPPORT is not set
|
||||
CONFIG_AICUPG_SINGLE_TRANS_BURN_CRC32_VERIFY=y
|
||||
CONFIG_AICUPG_UART_ENABLE=y
|
||||
# CONFIG_AICUPG_USB_ENABLE is not set
|
||||
CONFIG_AICUPG_MMC_ARTINCHIP=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_MMC_BOOT=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PART=y
|
||||
# CONFIG_LPKG_MPP is not set
|
||||
CONFIG_AIC_ENV_INTERFACE=y
|
||||
CONFIG_AIC_MMC_BARE_TEST=y
|
||||
@@ -0,0 +1,99 @@
|
||||
CONFIG_PRJ_DEFCONFIG_FILENAME="d12x_demo68-mmc_rt-thread_helloworld_defconfig"
|
||||
CONFIG_PRJ_CHIP="d12x"
|
||||
CONFIG_PRJ_BOARD="demo68-mmc"
|
||||
CONFIG_PRJ_KERNEL="rt-thread"
|
||||
CONFIG_PRJ_APP="helloworld"
|
||||
CONFIG_AIC_USING_FS_IMAGE_0=y
|
||||
CONFIG_AIC_USING_FS_IMAGE_TYPE_FATFS_FOR_0=y
|
||||
CONFIG_AIC_FS_IMAGE_DIR_0="rodata"
|
||||
CONFIG_AIC_FS_IMAGE_NAME_0="rodata.fatfs"
|
||||
CONFIG_AIC_USING_FS_IMAGE_1=y
|
||||
CONFIG_AIC_USING_FS_IMAGE_TYPE_FATFS_FOR_1=y
|
||||
CONFIG_AIC_FS_IMAGE_DIR_1="data"
|
||||
CONFIG_AIC_FS_IMAGE_NAME_1="data.fatfs"
|
||||
CONFIG_LVGL_V_9=y
|
||||
CONFIG_LPKG_LVGL_THREAD_STACK_SIZE=32768
|
||||
CONFIG_AIC_LVGL_DEMO=y
|
||||
CONFIG_AIC_LVGL_DEMO_HUB_DEMO=y
|
||||
CONFIG_LV_COLOR_DEPTH=16
|
||||
CONFIG_AIC_USING_UART0=y
|
||||
CONFIG_AIC_USING_UART1=y
|
||||
CONFIG_AIC_USING_I2C0=y
|
||||
CONFIG_AIC_USING_SDMC0=y
|
||||
CONFIG_AIC_PRGB_24BIT=y
|
||||
CONFIG_DATA_ORDER_BGR=y
|
||||
CONFIG_AIC_DEGREE_90=y
|
||||
CONFIG_AICFB_RGB565=y
|
||||
CONFIG_AIC_PAN_DISPLAY=y
|
||||
CONFIG_AIC_STARTUP_UI_SHOW=y
|
||||
CONFIG_AIC_PANEL_480X272_RESOLUTION=y
|
||||
CONFIG_AIC_PANEL_ENABLE_GPIO="PE.13"
|
||||
CONFIG_AIC_GE_CMDQ=y
|
||||
CONFIG_AIC_USING_DMA=y
|
||||
CONFIG_AIC_USING_WRI=y
|
||||
CONFIG_AIC_USING_WDT=y
|
||||
CONFIG_AIC_PSRAM_SW_SIZE=0x400000
|
||||
CONFIG_AIC_INTERRUPTSTACK_SIZE=8192
|
||||
CONFIG_AIC_CLK_PLL_FRA0_FREQ=384000000
|
||||
CONFIG_AIC_USING_SID=y
|
||||
CONFIG_EFUSE_MAX_WORD=64
|
||||
CONFIG_AIC_SYSCFG_LDO1X_ENABLE=y
|
||||
CONFIG_AIC_SYSCFG_LDO1X_VOL_VAL=8
|
||||
CONFIG_AIC_USING_MTOP=y
|
||||
CONFIG_IDLE_THREAD_STACK_SIZE=1024
|
||||
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
|
||||
# CONFIG_RT_DEBUG is not set
|
||||
CONFIG_RT_USING_MEMHEAP_AS_HEAP=y
|
||||
# CONFIG_RT_USING_MEMHEAP_AUTO_BINDING is not set
|
||||
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
|
||||
CONFIG_RT_USING_LEGACY=y
|
||||
CONFIG_FINSH_THREAD_STACK_SIZE=4096
|
||||
CONFIG_FINSH_HISTORY_LINES=1
|
||||
CONFIG_DFS_FILESYSTEMS_MAX=8
|
||||
CONFIG_RT_USING_DFS_MNTTABLE=y
|
||||
CONFIG_RT_USING_DFS_ELMFAT=y
|
||||
CONFIG_RT_DFS_ELM_LFN_UNICODE_2=y
|
||||
CONFIG_RT_DFS_ELM_USE_EXFAT=y
|
||||
CONFIG_RT_DFS_ELM_DRIVES=4
|
||||
CONFIG_RT_USING_DFS_ROMFS=y
|
||||
CONFIG_RT_USING_ADC=y
|
||||
CONFIG_RT_USING_PWM=y
|
||||
CONFIG_RT_USING_PM=y
|
||||
CONFIG_PM_USING_CUSTOM_CONFIG=y
|
||||
CONFIG_PM_ENABLE_SUSPEND_SLEEP_MODE=y
|
||||
CONFIG_PM_ENABLE_THRESHOLD_SLEEP_MODE=y
|
||||
CONFIG_RT_MMCSD_STACK_SIZE=8192
|
||||
CONFIG_RT_USING_SPI=y
|
||||
CONFIG_RT_USING_QSPI=y
|
||||
CONFIG_RT_USING_SENSOR=y
|
||||
CONFIG_RT_USING_TOUCH=y
|
||||
CONFIG_RT_TOUCH_PIN_IRQ=y
|
||||
CONFIG_RT_USING_ULOG=y
|
||||
CONFIG_ULOG_OUTPUT_LVL_I=y
|
||||
CONFIG_ULOG_TIME_USING_TIMESTAMP=y
|
||||
CONFIG_ULOG_USING_FILTER=y
|
||||
CONFIG_LPKG_USING_CPU_USAGE=y
|
||||
CONFIG_LPKG_USING_LITTLEFS=y
|
||||
CONFIG_LPKG_USING_CJSON=y
|
||||
CONFIG_AIC_MPP_PLAYER_INTERFACE=y
|
||||
CONFIG_AIC_MPP_PLAYER_VE_USE_FILL_FB=y
|
||||
CONFIG_AIC_MPP_PLAYER_AUDIO_RENDER_SHARE_TEST=y
|
||||
CONFIG_AIC_MPP_VE_TEST=y
|
||||
CONFIG_AIC_MPP_GE_TEST=y
|
||||
CONFIG_LPKG_USING_PINMUX_CHECHK=y
|
||||
CONFIG_AIC_PINMUX_CHECK=y
|
||||
CONFIG_LPKG_USING_OTA_DOWNLOADER=y
|
||||
CONFIG_AIC_GPIO_IRQ_DRV_EN=y
|
||||
CONFIG_AIC_USING_TOUCH=y
|
||||
CONFIG_AIC_TOUCH_PANEL_I2C_CHAN="i2c0"
|
||||
CONFIG_AIC_TOUCH_PANEL_RST_PIN="PA.10"
|
||||
CONFIG_AIC_TOUCH_PANEL_INT_PIN="PA.11"
|
||||
CONFIG_AIC_TOUCH_X_COORDINATE_RANGE=480
|
||||
CONFIG_AIC_TOUCH_Y_COORDINATE_RANGE=272
|
||||
CONFIG_AIC_SCREEN_REAL_X_RESOLUTION=480
|
||||
CONFIG_AIC_SCREEN_REAL_Y_RESOLUTION=272
|
||||
CONFIG_AIC_FB_DRV_DEBUG=y
|
||||
CONFIG_AIC_SDMC_DRV_TEST=y
|
||||
CONFIG_AIC_MMC_TEST=y
|
||||
CONFIG_AIC_GE_TEST=y
|
||||
CONFIG_AIC_VE_TEST=y
|
||||
@@ -7,6 +7,10 @@ CONFIG_PRJ_CUSTOM_LDS="application/baremetal/bootloader/ldscript/d12x_bootloader
|
||||
CONFIG_AIC_USING_UART0=y
|
||||
CONFIG_AIC_USING_UART1=y
|
||||
CONFIG_AIC_CLK_UART0_FREQ=53454545
|
||||
CONFIG_AIC_UART0_DMA_ENABLE_FLAG=y
|
||||
CONFIG_AIC_DEV_UART0_RX_MODE_INT=y
|
||||
CONFIG_AIC_DEV_UART0_RX_BUFSZ=2048
|
||||
CONFIG_AIC_DEV_UART0_TX_BUFSZ=2048
|
||||
CONFIG_AIC_CLK_UART1_FREQ=53454545
|
||||
CONFIG_AIC_USING_QSPI0=y
|
||||
CONFIG_AIC_QSPI0_DEVICE_SPINAND=y
|
||||
@@ -30,7 +34,6 @@ CONFIG_AIC_USING_WDT=y
|
||||
CONFIG_AIC_INTERRUPTSTACK_SIZE=8192
|
||||
CONFIG_AIC_CLK_PLL_FRA0_FREQ=384000000
|
||||
CONFIG_AIC_USING_SID=y
|
||||
CONFIG_EFUSE_MAX_WORD=64
|
||||
CONFIG_AIC_SYSCFG_LDO1X_ENABLE=y
|
||||
CONFIG_AIC_SYSCFG_LDO1X_VOL_VAL=8
|
||||
CONFIG_AIC_NORMALSTACK_SIZE=8192
|
||||
|
||||
@@ -37,12 +37,12 @@ CONFIG_AIC_PSRAM_SW_SIZE=0x400000
|
||||
CONFIG_AIC_INTERRUPTSTACK_SIZE=8192
|
||||
CONFIG_AIC_CLK_PLL_FRA0_FREQ=384000000
|
||||
CONFIG_AIC_USING_SID=y
|
||||
CONFIG_EFUSE_MAX_WORD=64
|
||||
CONFIG_AIC_SYSCFG_LDO1X_ENABLE=y
|
||||
CONFIG_AIC_SYSCFG_LDO1X_VOL_VAL=8
|
||||
CONFIG_IDLE_THREAD_STACK_SIZE=1024
|
||||
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
|
||||
# CONFIG_RT_DEBUG is not set
|
||||
CONFIG_RT_MEMHEAP_BSET_MODE=y
|
||||
CONFIG_RT_USING_MEMHEAP_AS_HEAP=y
|
||||
# CONFIG_RT_USING_MEMHEAP_AUTO_BINDING is not set
|
||||
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
|
||||
@@ -74,6 +74,7 @@ CONFIG_ULOG_TIME_USING_TIMESTAMP=y
|
||||
CONFIG_ULOG_USING_FILTER=y
|
||||
CONFIG_LPKG_USING_CPU_USAGE=y
|
||||
CONFIG_AIC_MPP_PLAYER_INTERFACE=y
|
||||
CONFIG_AIC_MPP_PLAYER_VE_USE_FILL_FB=y
|
||||
CONFIG_AIC_GPIO_IRQ_DRV_EN=y
|
||||
CONFIG_AIC_NFTL_SUPPORT=y
|
||||
CONFIG_AIC_NFLT_USED_LIB=y
|
||||
|
||||
@@ -7,6 +7,10 @@ CONFIG_PRJ_CUSTOM_LDS="application/baremetal/bootloader/ldscript/d12x_bootloader
|
||||
CONFIG_AIC_USING_UART0=y
|
||||
CONFIG_AIC_USING_UART1=y
|
||||
CONFIG_AIC_CLK_UART0_FREQ=53454545
|
||||
CONFIG_AIC_UART0_DMA_ENABLE_FLAG=y
|
||||
CONFIG_AIC_DEV_UART0_RX_MODE_INT=y
|
||||
CONFIG_AIC_DEV_UART0_RX_BUFSZ=2048
|
||||
CONFIG_AIC_DEV_UART0_TX_BUFSZ=2048
|
||||
CONFIG_AIC_CLK_UART1_FREQ=53454545
|
||||
CONFIG_AIC_USING_QSPI0=y
|
||||
CONFIG_AIC_QSPI0_DEVICE_SPINOR=y
|
||||
|
||||
@@ -16,6 +16,7 @@ CONFIG_AIC_LVGL_DEMO=y
|
||||
CONFIG_AIC_LVGL_DEMO_HUB_DEMO=y
|
||||
CONFIG_LV_COLOR_DEPTH=16
|
||||
CONFIG_LV_CACHE_IMG_NUM=8
|
||||
CONFIG_AIC_USING_UART0=y
|
||||
CONFIG_AIC_USING_UART1=y
|
||||
CONFIG_AIC_USING_I2C0=y
|
||||
CONFIG_AIC_USING_CAN0=y
|
||||
@@ -39,17 +40,18 @@ CONFIG_AIC_PSRAM_SW_SIZE=0x400000
|
||||
CONFIG_AIC_INTERRUPTSTACK_SIZE=8192
|
||||
CONFIG_AIC_CLK_PLL_FRA0_FREQ=384000000
|
||||
CONFIG_AIC_USING_SID=y
|
||||
CONFIG_EFUSE_MAX_WORD=64
|
||||
CONFIG_AIC_SYSCFG_LDO1X_ENABLE=y
|
||||
CONFIG_AIC_SYSCFG_LDO1X_VOL_VAL=8
|
||||
CONFIG_AIC_USING_MTOP=y
|
||||
CONFIG_IDLE_THREAD_STACK_SIZE=1024
|
||||
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
|
||||
# CONFIG_RT_DEBUG is not set
|
||||
CONFIG_RT_MEMHEAP_BSET_MODE=y
|
||||
CONFIG_RT_USING_MEMHEAP_AS_HEAP=y
|
||||
# CONFIG_RT_USING_MEMHEAP_AUTO_BINDING is not set
|
||||
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
|
||||
CONFIG_RT_MAIN_THREAD_STACK_SIZE=4096
|
||||
CONFIG_RT_USING_LEGACY=y
|
||||
CONFIG_FINSH_HISTORY_LINES=1
|
||||
CONFIG_DFS_FILESYSTEMS_MAX=8
|
||||
CONFIG_RT_USING_DFS_MNTTABLE=y
|
||||
@@ -80,6 +82,7 @@ CONFIG_ULOG_USING_FILTER=y
|
||||
CONFIG_LPKG_USING_CPU_USAGE=y
|
||||
CONFIG_LPKG_USING_LITTLEFS=y
|
||||
CONFIG_AIC_MPP_PLAYER_INTERFACE=y
|
||||
CONFIG_AIC_MPP_PLAYER_VE_USE_FILL_FB=y
|
||||
CONFIG_LPKG_USING_USERID=y
|
||||
CONFIG_USERID_IN_SPINOR=y
|
||||
CONFIG_AIC_GPIO_IRQ_DRV_EN=y
|
||||
@@ -87,6 +90,7 @@ CONFIG_AIC_USING_TOUCH=y
|
||||
CONFIG_AIC_TOUCH_PANEL_I2C_CHAN="i2c0"
|
||||
CONFIG_AIC_TOUCH_PANEL_RST_PIN="PA.10"
|
||||
CONFIG_AIC_TOUCH_PANEL_INT_PIN="PA.11"
|
||||
CONFIG_AIC_FB_DRV_DEBUG=y
|
||||
CONFIG_AIC_CMU_DRV_TEST=y
|
||||
CONFIG_AIC_GPIO_DRV_TEST=y
|
||||
CONFIG_AIC_DMA_DRV_TEST=y
|
||||
|
||||
@@ -7,6 +7,10 @@ CONFIG_PRJ_CUSTOM_LDS="application/baremetal/bootloader/ldscript/d12x_bootloader
|
||||
CONFIG_AIC_USING_UART0=y
|
||||
CONFIG_AIC_USING_UART1=y
|
||||
CONFIG_AIC_CLK_UART0_FREQ=53454545
|
||||
CONFIG_AIC_UART0_DMA_ENABLE_FLAG=y
|
||||
CONFIG_AIC_DEV_UART0_RX_MODE_INT=y
|
||||
CONFIG_AIC_DEV_UART0_RX_BUFSZ=2048
|
||||
CONFIG_AIC_DEV_UART0_TX_BUFSZ=2048
|
||||
CONFIG_AIC_CLK_UART1_FREQ=53454545
|
||||
CONFIG_AIC_USING_QSPI0=y
|
||||
CONFIG_AIC_QSPI0_DEVICE_SPINOR=y
|
||||
@@ -29,7 +33,6 @@ CONFIG_AIC_PSRAM_SW_SIZE=0x300000
|
||||
CONFIG_AIC_INTERRUPTSTACK_SIZE=8192
|
||||
CONFIG_AIC_CLK_PLL_FRA0_FREQ=384000000
|
||||
CONFIG_AIC_USING_SID=y
|
||||
CONFIG_EFUSE_MAX_WORD=64
|
||||
CONFIG_AIC_SYSCFG_LDO1X_ENABLE=y
|
||||
CONFIG_AIC_SYSCFG_LDO1X_VOL_VAL=8
|
||||
CONFIG_AIC_NORMALSTACK_SIZE=8192
|
||||
|
||||
@@ -3,6 +3,10 @@ CONFIG_PRJ_CHIP="d12x"
|
||||
CONFIG_PRJ_BOARD="hmi-nor"
|
||||
CONFIG_PRJ_KERNEL="rt-thread"
|
||||
CONFIG_PRJ_APP="helloworld"
|
||||
CONFIG_AIC_USING_FS_IMAGE_0=y
|
||||
CONFIG_AIC_USING_FS_IMAGE_TYPE_FATFS_FOR_0=y
|
||||
CONFIG_AIC_FS_IMAGE_DIR_0="rodata"
|
||||
CONFIG_AIC_FS_IMAGE_NAME_0="rodata.fatfs"
|
||||
CONFIG_LVGL_V_9=y
|
||||
CONFIG_AIC_LVGL_DEMO=y
|
||||
CONFIG_AIC_LVGL_DEMO_HUB_DEMO=y
|
||||
@@ -35,9 +39,11 @@ CONFIG_AIC_USING_MTOP=y
|
||||
CONFIG_IDLE_THREAD_STACK_SIZE=1024
|
||||
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
|
||||
# CONFIG_RT_DEBUG is not set
|
||||
CONFIG_RT_MEMHEAP_BSET_MODE=y
|
||||
CONFIG_RT_USING_MEMHEAP_AS_HEAP=y
|
||||
# CONFIG_RT_USING_MEMHEAP_AUTO_BINDING is not set
|
||||
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
|
||||
CONFIG_RT_USING_LEGACY=y
|
||||
CONFIG_FINSH_HISTORY_LINES=1
|
||||
CONFIG_DFS_FILESYSTEMS_MAX=8
|
||||
CONFIG_RT_USING_DFS_MNTTABLE=y
|
||||
@@ -67,6 +73,7 @@ CONFIG_ULOG_USING_FILTER=y
|
||||
CONFIG_LPKG_USING_CPU_USAGE=y
|
||||
CONFIG_LPKG_USING_LITTLEFS=y
|
||||
CONFIG_AIC_MPP_PLAYER_INTERFACE=y
|
||||
CONFIG_AIC_MPP_PLAYER_VE_USE_FILL_FB=y
|
||||
CONFIG_LPKG_USING_PINMUX_CHECHK=y
|
||||
CONFIG_AIC_PINMUX_CHECK=y
|
||||
CONFIG_AIC_GPIO_IRQ_DRV_EN=y
|
||||
|
||||
@@ -6,6 +6,10 @@ CONFIG_PRJ_APP="bootloader"
|
||||
CONFIG_PRJ_CUSTOM_LDS="application/baremetal/bootloader/ldscript/d13x_bootloader_gcc.ld"
|
||||
CONFIG_AIC_USING_UART0=y
|
||||
CONFIG_AIC_USING_UART1=y
|
||||
CONFIG_AIC_UART0_DMA_ENABLE_FLAG=y
|
||||
CONFIG_AIC_DEV_UART0_RX_MODE_INT=y
|
||||
CONFIG_AIC_DEV_UART0_RX_BUFSZ=2048
|
||||
CONFIG_AIC_DEV_UART0_TX_BUFSZ=2048
|
||||
CONFIG_AIC_USING_QSPI0=y
|
||||
CONFIG_AIC_QSPI0_DEVICE_SPINOR=y
|
||||
CONFIG_AIC_WIRELESS_LAN=y
|
||||
@@ -45,6 +49,7 @@ CONFIG_AIC_BOOTLOADER_CMD_MTD=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PART=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PROGRESS_BAR=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_FB_CONSOLE=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_CLASS_AIC_SINGLE=y
|
||||
# CONFIG_LPKG_MPP is not set
|
||||
CONFIG_AIC_ENV_INTERFACE=y
|
||||
CONFIG_LPKG_USING_SFUD=y
|
||||
|
||||
@@ -54,6 +54,7 @@ CONFIG_AIC_USING_PSADC6=y
|
||||
CONFIG_IDLE_THREAD_STACK_SIZE=1024
|
||||
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
|
||||
# CONFIG_RT_DEBUG is not set
|
||||
CONFIG_RT_MEMHEAP_BSET_MODE=y
|
||||
CONFIG_RT_USING_MEMHEAP_AS_HEAP=y
|
||||
# CONFIG_RT_USING_MEMHEAP_AUTO_BINDING is not set
|
||||
CONFIG_RT_CONSOLE_DEVICE_NAME="uart1"
|
||||
|
||||
@@ -42,6 +42,7 @@ CONFIG_AIC_BOOTLOADER_CMD_MTD=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PART=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PROGRESS_BAR=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_FB_CONSOLE=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_CLASS_AIC_SINGLE=y
|
||||
# CONFIG_LPKG_MPP is not set
|
||||
CONFIG_AIC_ENV_INTERFACE=y
|
||||
CONFIG_SPI_NAND_DOSILICON=y
|
||||
|
||||
@@ -11,8 +11,6 @@ CONFIG_AIC_USING_FS_IMAGE_1=y
|
||||
CONFIG_AIC_USING_FS_IMAGE_TYPE_FATFS_FOR_1=y
|
||||
CONFIG_AIC_FS_IMAGE_DIR_1="data/"
|
||||
CONFIG_AIC_FS_IMAGE_NAME_1="data.fatfs"
|
||||
# CONFIG_AIC_FATFS_AUTO_SIZE_FOR_1 is not set
|
||||
CONFIG_AIC_FATFS_SECTOR_COUNT_FOR_1=68800
|
||||
CONFIG_LVGL_V_9=y
|
||||
CONFIG_LPKG_LVGL_THREAD_STACK_SIZE=32768
|
||||
CONFIG_AIC_LVGL_DEMO=y
|
||||
@@ -45,6 +43,7 @@ CONFIG_AIC_USING_SID=y
|
||||
CONFIG_IDLE_THREAD_STACK_SIZE=1024
|
||||
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
|
||||
# CONFIG_RT_DEBUG is not set
|
||||
CONFIG_RT_MEMHEAP_BSET_MODE=y
|
||||
CONFIG_RT_USING_MEMHEAP_AS_HEAP=y
|
||||
# CONFIG_RT_USING_MEMHEAP_AUTO_BINDING is not set
|
||||
CONFIG_RT_CONSOLE_DEVICE_NAME="uart0"
|
||||
@@ -81,6 +80,7 @@ CONFIG_LPKG_USING_WEBCLIENT=y
|
||||
CONFIG_LPKG_USING_GIF=y
|
||||
CONFIG_GIF_USING_SAMPLES=y
|
||||
CONFIG_AIC_MPP_PLAYER_INTERFACE=y
|
||||
CONFIG_AIC_MPP_PLAYER_VE_USE_FILL_FB=y
|
||||
CONFIG_LPKG_USING_OTA_DOWNLOADER=y
|
||||
CONFIG_AIC_GPIO_IRQ_DRV_EN=y
|
||||
CONFIG_SPI_NAND_DOSILICON=y
|
||||
|
||||
@@ -44,6 +44,7 @@ CONFIG_AIC_BOOTLOADER_CMD_MTD=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PART=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PROGRESS_BAR=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_FB_CONSOLE=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_CLASS_AIC_SINGLE=y
|
||||
# CONFIG_LPKG_MPP is not set
|
||||
CONFIG_AIC_ENV_INTERFACE=y
|
||||
CONFIG_LPKG_USING_SFUD=y
|
||||
|
||||
@@ -54,6 +54,7 @@ CONFIG_AIC_USING_PSADC6=y
|
||||
CONFIG_IDLE_THREAD_STACK_SIZE=1024
|
||||
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
|
||||
# CONFIG_RT_DEBUG is not set
|
||||
CONFIG_RT_MEMHEAP_BSET_MODE=y
|
||||
CONFIG_RT_USING_MEMHEAP_AS_HEAP=y
|
||||
# CONFIG_RT_USING_MEMHEAP_AUTO_BINDING is not set
|
||||
CONFIG_RT_CONSOLE_DEVICE_NAME="uart0"
|
||||
|
||||
@@ -41,6 +41,7 @@ CONFIG_AIC_BOOTLOADER_CMD_MTD=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PART=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PROGRESS_BAR=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_FB_CONSOLE=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_CLASS_AIC_SINGLE=y
|
||||
# CONFIG_LPKG_MPP is not set
|
||||
CONFIG_AIC_ENV_INTERFACE=y
|
||||
CONFIG_LPKG_USING_SFUD=y
|
||||
|
||||
@@ -52,6 +52,7 @@ CONFIG_AIC_USING_PSADC6=y
|
||||
CONFIG_IDLE_THREAD_STACK_SIZE=1024
|
||||
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
|
||||
# CONFIG_RT_DEBUG is not set
|
||||
CONFIG_RT_MEMHEAP_BSET_MODE=y
|
||||
CONFIG_RT_USING_MEMHEAP_AS_HEAP=y
|
||||
# CONFIG_RT_USING_MEMHEAP_AUTO_BINDING is not set
|
||||
CONFIG_RT_CONSOLE_DEVICE_NAME="uart0"
|
||||
@@ -85,6 +86,7 @@ CONFIG_ULOG_USING_FILTER=y
|
||||
CONFIG_LPKG_USING_CPU_USAGE=y
|
||||
CONFIG_LPKG_USING_LITTLEFS=y
|
||||
CONFIG_AIC_MPP_PLAYER_INTERFACE=y
|
||||
CONFIG_AIC_MPP_PLAYER_VE_USE_FILL_FB=y
|
||||
CONFIG_AIC_GPIO_IRQ_DRV_EN=y
|
||||
CONFIG_AIC_USING_TOUCH=y
|
||||
CONFIG_AIC_TOUCH_PANEL_I2C_CHAN="i2c2"
|
||||
|
||||
@@ -47,6 +47,7 @@ CONFIG_AIC_BOOTLOADER_CMD_MTD=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PART=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PROGRESS_BAR=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_FB_CONSOLE=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_CLASS_AIC_SINGLE=y
|
||||
# CONFIG_LPKG_USING_MINIMP3 is not set
|
||||
# CONFIG_LPKG_MPP is not set
|
||||
CONFIG_AIC_ENV_INTERFACE=y
|
||||
|
||||
@@ -46,14 +46,6 @@ CONFIG_AIC_DEGREE_90=y
|
||||
# CONFIG_RGB_DATA_MIRROT is not set
|
||||
CONFIG_AICFB_RGB565=y
|
||||
CONFIG_AIC_PAN_DISPLAY=y
|
||||
CONFIG_PANEL_PIXELCLOCK=12
|
||||
CONFIG_PANEL_HACTIVE=480
|
||||
CONFIG_PANEL_VACTIVE=272
|
||||
CONFIG_PANEL_HBP=43
|
||||
CONFIG_PANEL_HFP=8
|
||||
CONFIG_PANEL_HSW=1
|
||||
CONFIG_PANEL_VFP=4
|
||||
CONFIG_PANEL_VSW=10
|
||||
CONFIG_AIC_PWM_BACKLIGHT=y
|
||||
CONFIG_AIC_PWM_BACKLIGHT_CHANNEL=2
|
||||
CONFIG_AIC_GE_CMDQ=y
|
||||
@@ -74,6 +66,7 @@ CONFIG_IDLE_THREAD_STACK_SIZE=1024
|
||||
CONFIG_RT_TIMER_THREAD_STACK_SIZE=4096
|
||||
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
|
||||
# CONFIG_RT_DEBUG is not set
|
||||
CONFIG_RT_MEMHEAP_BSET_MODE=y
|
||||
CONFIG_RT_USING_MEMHEAP_AS_HEAP=y
|
||||
# CONFIG_RT_USING_MEMHEAP_AUTO_BINDING is not set
|
||||
CONFIG_RT_CONSOLE_DEVICE_NAME="uart0"
|
||||
|
||||
@@ -45,6 +45,7 @@ CONFIG_AIC_BOOTLOADER_CMD_MTD=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PART=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PROGRESS_BAR=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_FB_CONSOLE=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_CLASS_AIC_SINGLE=y
|
||||
# CONFIG_LPKG_MPP is not set
|
||||
CONFIG_LPKG_USING_SFUD=y
|
||||
CONFIG_AIC_SPINOR_DRV_TEST=y
|
||||
|
||||
@@ -56,6 +56,7 @@ CONFIG_AIC_USING_SID=y
|
||||
CONFIG_IDLE_THREAD_STACK_SIZE=1024
|
||||
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
|
||||
# CONFIG_RT_DEBUG is not set
|
||||
CONFIG_RT_MEMHEAP_BSET_MODE=y
|
||||
CONFIG_RT_USING_MEMHEAP_AS_HEAP=y
|
||||
# CONFIG_RT_USING_MEMHEAP_AUTO_BINDING is not set
|
||||
CONFIG_RT_CONSOLE_DEVICE_NAME="uart0"
|
||||
@@ -91,6 +92,7 @@ CONFIG_LPKG_USING_LITTLEFS=y
|
||||
CONFIG_LPKG_USING_I2C_TOOLS=y
|
||||
CONFIG_LPKG_USING_FREETYPE=y
|
||||
CONFIG_AIC_MPP_PLAYER_INTERFACE=y
|
||||
CONFIG_AIC_MPP_PLAYER_VE_USE_FILL_FB=y
|
||||
CONFIG_AIC_MPP_VIN=y
|
||||
CONFIG_LPKG_USING_PINMUX_CHECHK=y
|
||||
CONFIG_AIC_GPIO_IRQ_DRV_EN=y
|
||||
|
||||
@@ -30,6 +30,7 @@ CONFIG_AIC_BOOTLOADER_CMD_NAND_BOOT=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_SPI_NAND=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_MTD=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PART=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_CLASS_AIC_SINGLE=y
|
||||
# CONFIG_LPKG_MPP is not set
|
||||
CONFIG_AIC_ENV_INTERFACE=y
|
||||
CONFIG_AIC_NFTL_SUPPORT=y
|
||||
|
||||
@@ -11,12 +11,11 @@ CONFIG_AIC_USING_FS_IMAGE_1=y
|
||||
CONFIG_AIC_USING_FS_IMAGE_TYPE_FATFS_FOR_1=y
|
||||
CONFIG_AIC_FS_IMAGE_DIR_1="packages/artinchip/lvgl-ui/aic_demo/usb_osd_demo/lvgl_src/"
|
||||
CONFIG_AIC_FS_IMAGE_NAME_1="data.fatfs"
|
||||
# CONFIG_AIC_FATFS_AUTO_SIZE_FOR_1 is not set
|
||||
CONFIG_AIC_FATFS_SECTOR_COUNT_FOR_1=68800
|
||||
CONFIG_LVGL_V_9=y
|
||||
CONFIG_LPKG_LVGL_THREAD_STACK_SIZE=32768
|
||||
CONFIG_AIC_LVGL_DEMO=y
|
||||
CONFIG_AIC_LVGL_USB_OSD_DEMO=y
|
||||
CONFIG_LV_DISPLAY_ROTATE_EN=y
|
||||
CONFIG_LV_USB_OSD_LOGO_TYPE_VIDEO=y
|
||||
CONFIG_LV_USB_OSD_SCREEN_LOCK_TIME=0
|
||||
CONFIG_LVGL_STORAGE_PATH="/data/lvgl_data"
|
||||
@@ -49,10 +48,12 @@ CONFIG_AIC_USING_SID=y
|
||||
CONFIG_AIC_USING_MTOP=y
|
||||
CONFIG_AIC_USING_PSADC=y
|
||||
CONFIG_AIC_USING_PSADC6=y
|
||||
CONFIG_IDLE_THREAD_STACK_SIZE=2048
|
||||
# CONFIG_RT_USING_TIMER_SOFT is not set
|
||||
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
|
||||
# CONFIG_RT_KPRINTF_USING_LONGLONG is not set
|
||||
# CONFIG_RT_DEBUG is not set
|
||||
CONFIG_RT_MEMHEAP_BSET_MODE=y
|
||||
CONFIG_RT_USING_MEMHEAP_AS_HEAP=y
|
||||
# CONFIG_RT_USING_MEMHEAP_AUTO_BINDING is not set
|
||||
CONFIG_RT_USING_DEVICE_OPS=y
|
||||
@@ -96,17 +97,15 @@ CONFIG_LPKG_USING_BONNIE=y
|
||||
CONFIG_LPKG_USING_CPU_USAGE=y
|
||||
CONFIG_LPKG_USING_CHERRYUSB=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_COMPOSITE=y
|
||||
CONFIG_LPKG_USING_COMP_UAC_TABLE1=y
|
||||
CONFIG_LPKG_USING_COMP_HID_TABLE1=y
|
||||
CONFIG_LPKG_CHERRYUSB_DYNAMIC_REGISTRATION_MODE=y
|
||||
CONFIG_LPKG_CHERRYUSB_AIC_DISP_DR=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_HID=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_HID_TOUCH_TEMPLATE=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_MSC=y
|
||||
# CONFIG_USBD_MSC_STORAGE_USING_HOTPLUG is not set
|
||||
CONFIG_USBDEV_MSC_READ_ONLY=y
|
||||
CONFIG_MSC_STORAGE_PATH="/rodata"
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_AUDIO=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_AUDIO_SPEAKER=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_DISPLAY=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_DISPLAY_TEMPLATE=y
|
||||
CONFIG_AIC_USB_DISP_INIT_DELAY_MS=4000
|
||||
CONFIG_LPKG_USING_I2C_TOOLS=y
|
||||
CONFIG_AIC_MPP_PLAYER_INTERFACE=y
|
||||
|
||||
@@ -29,6 +29,7 @@ CONFIG_AIC_BOOTLOADER_CMD_NOR_BOOT=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_SPI_NOR=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_MTD=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PART=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_CLASS_AIC_SINGLE=y
|
||||
# CONFIG_LPKG_MPP is not set
|
||||
CONFIG_AIC_ENV_INTERFACE=y
|
||||
CONFIG_LPKG_USING_SFUD=y
|
||||
|
||||
@@ -16,6 +16,7 @@ CONFIG_LVGL_V_9=y
|
||||
CONFIG_LPKG_LVGL_THREAD_STACK_SIZE=7168
|
||||
CONFIG_AIC_LVGL_DEMO=y
|
||||
CONFIG_AIC_LVGL_USB_OSD_DEMO=y
|
||||
CONFIG_LV_DISPLAY_ROTATE_EN=y
|
||||
CONFIG_LV_USB_OSD_SCREEN_LOCK_TIME=0
|
||||
CONFIG_LVGL_STORAGE_PATH="/data/lvgl_data"
|
||||
CONFIG_AIC_USING_UART0=y
|
||||
@@ -44,15 +45,18 @@ CONFIG_AIC_DRAM_TOTAL_SIZE=0x4000000
|
||||
CONFIG_AIC_DRAM_CMA_SIZE=0x3000000
|
||||
CONFIG_AIC_INTERRUPTSTACK_SIZE=4096
|
||||
CONFIG_AIC_USING_SID=y
|
||||
CONFIG_IDLE_THREAD_STACK_SIZE=2048
|
||||
# CONFIG_RT_USING_TIMER_SOFT is not set
|
||||
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
|
||||
# CONFIG_RT_KPRINTF_USING_LONGLONG is not set
|
||||
# CONFIG_RT_DEBUG is not set
|
||||
CONFIG_RT_MEMHEAP_BSET_MODE=y
|
||||
CONFIG_RT_USING_MEMHEAP_AS_HEAP=y
|
||||
# CONFIG_RT_USING_MEMHEAP_AUTO_BINDING is not set
|
||||
CONFIG_RT_USING_DEVICE_OPS=y
|
||||
CONFIG_RT_CONSOLE_DEVICE_NAME="uart0"
|
||||
CONFIG_RT_MAIN_THREAD_STACK_SIZE=4096
|
||||
CONFIG_RT_USING_LEGACY=y
|
||||
CONFIG_FINSH_HISTORY_LINES=1
|
||||
CONFIG_DFS_FILESYSTEMS_MAX=8
|
||||
CONFIG_RT_USING_DFS_MNTTABLE=y
|
||||
@@ -89,17 +93,16 @@ CONFIG_ULOG_USING_FILTER=y
|
||||
CONFIG_LPKG_USING_CPU_USAGE=y
|
||||
CONFIG_LPKG_USING_CHERRYUSB=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_COMPOSITE=y
|
||||
CONFIG_LPKG_USING_COMP_UAC_TABLE1=y
|
||||
CONFIG_LPKG_USING_COMP_HID_TABLE1=y
|
||||
CONFIG_LPKG_CHERRYUSB_DYNAMIC_REGISTRATION_MODE=y
|
||||
CONFIG_LPKG_CHERRYUSB_AIC_DISP_DR=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_HID=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_HID_TOUCH_TEMPLATE=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_MSC=y
|
||||
# CONFIG_USBD_MSC_STORAGE_USING_HOTPLUG is not set
|
||||
CONFIG_USBDEV_MSC_READ_ONLY=y
|
||||
CONFIG_MSC_STORAGE_PATH="/rodata"
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_AUDIO=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_AUDIO_SPEAKER=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_DISPLAY=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_DISPLAY_TEMPLATE=y
|
||||
CONFIG_AIC_USB_DISP_INIT_DELAY_MS=4000
|
||||
CONFIG_LPKG_USING_LITTLEFS=y
|
||||
CONFIG_LFS_READ_SIZE=2048
|
||||
CONFIG_LFS_PROG_SIZE=2048
|
||||
|
||||
@@ -36,6 +36,7 @@ CONFIG_AIC_BOOTLOADER_CMD_MTD=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PART=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PROGRESS_BAR=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_FB_CONSOLE=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_CLASS_AIC_SINGLE=y
|
||||
# CONFIG_LPKG_MPP is not set
|
||||
CONFIG_LPKG_USING_SFUD=y
|
||||
CONFIG_AIC_SPINOR_DRV_TEST=y
|
||||
|
||||
@@ -39,10 +39,12 @@ CONFIG_AIC_USING_WDT=y
|
||||
CONFIG_AIC_DRAM_CMA_SIZE=0x2000000
|
||||
CONFIG_AIC_INTERRUPTSTACK_SIZE=4096
|
||||
CONFIG_AIC_USING_SID=y
|
||||
CONFIG_IDLE_THREAD_STACK_SIZE=2048
|
||||
# CONFIG_RT_USING_TIMER_SOFT is not set
|
||||
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
|
||||
# CONFIG_RT_KPRINTF_USING_LONGLONG is not set
|
||||
# CONFIG_RT_DEBUG is not set
|
||||
CONFIG_RT_MEMHEAP_BSET_MODE=y
|
||||
CONFIG_RT_USING_MEMHEAP_AS_HEAP=y
|
||||
# CONFIG_RT_USING_MEMHEAP_AUTO_BINDING is not set
|
||||
CONFIG_RT_USING_DEVICE_OPS=y
|
||||
|
||||
@@ -8,7 +8,6 @@ CONFIG_AIC_USING_UART0=y
|
||||
# CONFIG_AIC_USING_USB1 is not set
|
||||
CONFIG_AIC_USING_QSPI0=y
|
||||
CONFIG_AIC_QSPI0_DEVICE_SPINAND=y
|
||||
CONFIG_AIC_QSPI0_DEVICE_SPINAND_CONT_READ=y
|
||||
CONFIG_AIC_WIRELESS_LAN=y
|
||||
CONFIG_AIC_DISP_LVDS=y
|
||||
CONFIG_AICFB_RGB565=y
|
||||
@@ -37,6 +36,7 @@ CONFIG_AIC_BOOTLOADER_CMD_NAND_BOOT=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PART=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PROGRESS_BAR=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_FB_CONSOLE=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_CLASS_AIC_SINGLE=y
|
||||
# CONFIG_LPKG_MPP is not set
|
||||
CONFIG_AIC_ENV_INTERFACE=y
|
||||
# CONFIG_AIC_AB_SYSTEM_INTERFACE is not set
|
||||
|
||||
@@ -11,8 +11,6 @@ CONFIG_AIC_USING_FS_IMAGE_1=y
|
||||
CONFIG_AIC_USING_FS_IMAGE_TYPE_FATFS_FOR_1=y
|
||||
CONFIG_AIC_FS_IMAGE_DIR_1="data/"
|
||||
CONFIG_AIC_FS_IMAGE_NAME_1="data.fatfs"
|
||||
# CONFIG_AIC_FATFS_AUTO_SIZE_FOR_1 is not set
|
||||
CONFIG_AIC_FATFS_SECTOR_COUNT_FOR_1=68800
|
||||
CONFIG_LVGL_V_9=y
|
||||
CONFIG_LPKG_LVGL_THREAD_STACK_SIZE=32768
|
||||
CONFIG_AIC_LVGL_DEMO=y
|
||||
@@ -28,7 +26,6 @@ CONFIG_AIC_USING_USB0_HOST=y
|
||||
# CONFIG_AIC_USING_USB1 is not set
|
||||
CONFIG_AIC_USING_QSPI0=y
|
||||
CONFIG_AIC_QSPI0_DEVICE_SPINAND=y
|
||||
CONFIG_AIC_QSPI0_DEVICE_SPINAND_CONT_READ=y
|
||||
CONFIG_AIC_USING_TSEN=y
|
||||
CONFIG_AIC_DISP_LVDS=y
|
||||
CONFIG_AIC_PAN_DISPLAY=y
|
||||
@@ -45,10 +42,12 @@ CONFIG_AIC_DRAM_CMA_SIZE=0x2000000
|
||||
CONFIG_AIC_INTERRUPTSTACK_SIZE=4096
|
||||
CONFIG_AIC_USING_SID=y
|
||||
CONFIG_AIC_USING_CE=y
|
||||
CONFIG_IDLE_THREAD_STACK_SIZE=2048
|
||||
# CONFIG_RT_USING_TIMER_SOFT is not set
|
||||
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
|
||||
# CONFIG_RT_KPRINTF_USING_LONGLONG is not set
|
||||
# CONFIG_RT_DEBUG is not set
|
||||
CONFIG_RT_MEMHEAP_BSET_MODE=y
|
||||
CONFIG_RT_USING_MEMHEAP_AS_HEAP=y
|
||||
# CONFIG_RT_USING_MEMHEAP_AUTO_BINDING is not set
|
||||
CONFIG_RT_USING_DEVICE_OPS=y
|
||||
|
||||
@@ -27,6 +27,7 @@ CONFIG_AICUPG_SDCARD_ENABLE=y
|
||||
CONFIG_AICUPG_MMC_ARTINCHIP=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_MMC_BOOT=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PART=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_CLASS_AIC_SINGLE=y
|
||||
# CONFIG_LPKG_MPP is not set
|
||||
CONFIG_AIC_ENV_INTERFACE=y
|
||||
CONFIG_LPKG_USING_SPINAND=y
|
||||
|
||||
@@ -35,10 +35,12 @@ CONFIG_AIC_DRAM_TOTAL_SIZE=0x4000000
|
||||
CONFIG_AIC_DRAM_CMA_SIZE=0x2000000
|
||||
CONFIG_AIC_INTERRUPTSTACK_SIZE=4096
|
||||
CONFIG_AIC_USING_SID=y
|
||||
CONFIG_IDLE_THREAD_STACK_SIZE=2048
|
||||
# CONFIG_RT_USING_TIMER_SOFT is not set
|
||||
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
|
||||
# CONFIG_RT_KPRINTF_USING_LONGLONG is not set
|
||||
# CONFIG_RT_DEBUG is not set
|
||||
CONFIG_RT_MEMHEAP_BSET_MODE=y
|
||||
CONFIG_RT_USING_MEMHEAP_AS_HEAP=y
|
||||
# CONFIG_RT_USING_MEMHEAP_AUTO_BINDING is not set
|
||||
CONFIG_RT_USING_DEVICE_OPS=y
|
||||
|
||||
@@ -34,6 +34,7 @@ CONFIG_AIC_BOOTLOADER_CMD_NOR_BOOT=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_SPI_NOR=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_MTD=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PART=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_CLASS_AIC_SINGLE=y
|
||||
# CONFIG_LPKG_MPP is not set
|
||||
CONFIG_LPKG_USING_SFUD=y
|
||||
CONFIG_AIC_SPINOR_DRV_TEST=y
|
||||
|
||||
@@ -40,6 +40,7 @@ CONFIG_AIC_SYSCFG_SIP_FLASH_ENABLE=y
|
||||
CONFIG_IDLE_THREAD_STACK_SIZE=1024
|
||||
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
|
||||
# CONFIG_RT_DEBUG is not set
|
||||
CONFIG_RT_MEMHEAP_BSET_MODE=y
|
||||
CONFIG_RT_USING_MEMHEAP_AS_HEAP=y
|
||||
# CONFIG_RT_USING_MEMHEAP_AUTO_BINDING is not set
|
||||
CONFIG_RT_CONSOLE_DEVICE_NAME="uart0"
|
||||
|
||||
@@ -5,6 +5,10 @@ CONFIG_PRJ_KERNEL="baremetal"
|
||||
CONFIG_PRJ_APP="bootloader"
|
||||
CONFIG_PRJ_CUSTOM_LDS="application/baremetal/bootloader/ldscript/g73x_bootloader_gcc.ld"
|
||||
CONFIG_AIC_USING_UART0=y
|
||||
CONFIG_AIC_UART0_DMA_ENABLE_FLAG=y
|
||||
CONFIG_AIC_DEV_UART0_RX_MODE_INT=y
|
||||
CONFIG_AIC_DEV_UART0_RX_BUFSZ=2048
|
||||
CONFIG_AIC_DEV_UART0_TX_BUFSZ=2048
|
||||
CONFIG_AIC_USING_QSPI0=y
|
||||
CONFIG_AIC_DEV_QSPI0_MAX_SRC_FREQ_HZ=50000000
|
||||
CONFIG_AIC_QSPI0_BUS_WIDTH_1=y
|
||||
@@ -33,6 +37,7 @@ CONFIG_AIC_BOOTLOADER_CMD_NOR_BOOT=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_SPI_NOR=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_MTD=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PART=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_CLASS_AIC_SINGLE=y
|
||||
# CONFIG_LPKG_MPP is not set
|
||||
CONFIG_LPKG_USING_SFUD=y
|
||||
CONFIG_AIC_SPINOR_DRV_TEST=y
|
||||
|
||||
@@ -38,6 +38,7 @@ CONFIG_AIC_SYSCFG_SIP_FLASH_ENABLE=y
|
||||
CONFIG_IDLE_THREAD_STACK_SIZE=1024
|
||||
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
|
||||
# CONFIG_RT_DEBUG is not set
|
||||
CONFIG_RT_MEMHEAP_BSET_MODE=y
|
||||
CONFIG_RT_USING_MEMHEAP_AS_HEAP=y
|
||||
# CONFIG_RT_USING_MEMHEAP_AUTO_BINDING is not set
|
||||
CONFIG_RT_CONSOLE_DEVICE_NAME="uart0"
|
||||
|
||||
@@ -41,6 +41,7 @@ CONFIG_AIC_BOOTLOADER_CMD_MTD=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PART=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_PROGRESS_BAR=y
|
||||
CONFIG_AIC_BOOTLOADER_CMD_FB_CONSOLE=y
|
||||
CONFIG_LPKG_CHERRYUSB_DEVICE_CLASS_AIC_SINGLE=y
|
||||
CONFIG_LPKG_CHERRYUSB_HOST=y
|
||||
CONFIG_LPKG_CHERRYUSB_HOST_MSC=y
|
||||
CONFIG_LPKG_CHERRYUSB_HOST_AICUPG_FOR_UDISK=y
|
||||
|
||||
@@ -39,6 +39,7 @@ CONFIG_AIC_SYSCFG_SIP_FLASH_ENABLE=y
|
||||
CONFIG_IDLE_THREAD_STACK_SIZE=1024
|
||||
# CONFIG_RT_KSERVICE_USING_STDLIB is not set
|
||||
# CONFIG_RT_DEBUG is not set
|
||||
CONFIG_RT_MEMHEAP_BSET_MODE=y
|
||||
CONFIG_RT_USING_MEMHEAP_AS_HEAP=y
|
||||
# CONFIG_RT_USING_MEMHEAP_AUTO_BINDING is not set
|
||||
CONFIG_RT_USING_MEMTRACE=y
|
||||
|
||||
14
target/d12x/demo68-mmc/SConscript
Executable file
14
target/d12x/demo68-mmc/SConscript
Executable file
@@ -0,0 +1,14 @@
|
||||
Import('RTT_ROOT')
|
||||
Import('rtconfig')
|
||||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
|
||||
# add the board drivers.
|
||||
src = Glob("*.c") + Glob("*.cpp") + Glob("*.S")
|
||||
|
||||
LOCAL_CPPPATH = [cwd]
|
||||
CPPPATH = [cwd + '/include']
|
||||
group = DefineGroup('Board', src, depend = [''], LOCAL_CPPPATH = LOCAL_CPPPATH, CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
235
target/d12x/demo68-mmc/board.c
Normal file
235
target/d12x/demo68-mmc/board.c
Normal file
@@ -0,0 +1,235 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Authors: weilin.peng@artinchip.com
|
||||
*/
|
||||
#include <aic_core.h>
|
||||
#include <rtconfig.h>
|
||||
#include "board.h"
|
||||
|
||||
extern void aic_board_pinmux_init(void);
|
||||
extern void aic_board_sysclk_init(void);
|
||||
|
||||
#if defined(KERNEL_RTTHREAD)
|
||||
#include <aic_drv.h>
|
||||
#include <rthw.h>
|
||||
#include <rtthread.h>
|
||||
|
||||
extern size_t __heap_start;
|
||||
extern size_t __heap_end;
|
||||
|
||||
#ifdef RT_USING_MEMHEAP
|
||||
extern size_t __psram_cma_heap_start;
|
||||
extern size_t __psram_cma_heap_end;
|
||||
|
||||
struct aic_memheap
|
||||
{
|
||||
aic_mem_region_t type;
|
||||
char * name;
|
||||
void * begin_addr;
|
||||
void * end_addr;
|
||||
struct rt_memheap heap;
|
||||
struct rt_mutex lock;
|
||||
};
|
||||
|
||||
struct aic_memheap aic_memheaps[] = {
|
||||
// 32K sram only used by png decoder after system startup
|
||||
#ifndef AIC_CHIP_D12X
|
||||
#ifdef AIC_SRAM_SW_EN
|
||||
{MEM_SRAM_SW, "heap_sram_sw", (void *)&__sram_sw_heap_start, (void *)&__sram_sw_heap_end},
|
||||
#endif
|
||||
#ifdef AIC_SRAM_CMA_EN
|
||||
{MEM_SRAM_CMA, "heap_sram_cma", (void *)&__sram_cma_heap_start, (void *)&__sram_cma_heap_end},
|
||||
#endif
|
||||
#endif
|
||||
#ifdef AIC_PSRAM_CMA_EN
|
||||
{MEM_CMA, "heap_cma", (void *)&__cma_heap_start, (void *)&__cma_heap_end},
|
||||
#endif
|
||||
};
|
||||
|
||||
void aic_memheap_init(void)
|
||||
{
|
||||
rt_ubase_t begin_align;
|
||||
rt_ubase_t end_align;
|
||||
int i = 0;
|
||||
|
||||
for (i=0; i<sizeof(aic_memheaps)/sizeof(struct aic_memheap); i++) {
|
||||
begin_align = RT_ALIGN((rt_ubase_t)aic_memheaps[i].begin_addr, RT_ALIGN_SIZE);
|
||||
end_align = RT_ALIGN_DOWN((rt_ubase_t)aic_memheaps[i].end_addr, RT_ALIGN_SIZE);
|
||||
RT_ASSERT(end_align > begin_align);
|
||||
|
||||
rt_memheap_init(&aic_memheaps[i].heap, aic_memheaps[i].name,
|
||||
(void *)begin_align, end_align - begin_align);
|
||||
rt_mutex_init(&aic_memheaps[i].lock, aic_memheaps[i].name, RT_IPC_FLAG_PRIO);
|
||||
}
|
||||
}
|
||||
|
||||
void *aic_memheap_malloc(int type, size_t size)
|
||||
{
|
||||
void *ptr;
|
||||
int i = 0;
|
||||
|
||||
for (i=0; i<sizeof(aic_memheaps)/sizeof(struct aic_memheap); i++) {
|
||||
if (aic_memheaps[i].type == type)
|
||||
break;
|
||||
}
|
||||
if (i >= sizeof(aic_memheaps)/sizeof(struct aic_memheap))
|
||||
return NULL;
|
||||
|
||||
/* Enter critical zone */
|
||||
rt_mutex_take(&aic_memheaps[i].lock, RT_WAITING_FOREVER);
|
||||
/* allocate memory block from system heap */
|
||||
ptr = rt_memheap_alloc(&aic_memheaps[i].heap, size);
|
||||
/* Exit critical zone */
|
||||
rt_mutex_release(&aic_memheaps[i].lock);
|
||||
|
||||
return ptr;
|
||||
}
|
||||
|
||||
void aic_memheap_free(int type, void *rmem)
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
if (rmem == RT_NULL)
|
||||
return;
|
||||
|
||||
for (i=0; i<sizeof(aic_memheaps)/sizeof(struct aic_memheap); i++) {
|
||||
if (aic_memheaps[i].type == type)
|
||||
break;
|
||||
}
|
||||
if (i >= sizeof(aic_memheaps)/sizeof(struct aic_memheap))
|
||||
return;
|
||||
|
||||
/* Enter critical zone */
|
||||
rt_mutex_take(&aic_memheaps[i].lock, RT_WAITING_FOREVER);
|
||||
rt_memheap_free(rmem);
|
||||
/* Exit critical zone */
|
||||
rt_mutex_release(&aic_memheaps[i].lock);
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* This function will initial smart-evb board.
|
||||
*/
|
||||
void rt_hw_board_init(void)
|
||||
{
|
||||
#ifdef RT_USING_HEAP
|
||||
rt_system_heap_init((void *)&__heap_start, (void *)&__heap_end);
|
||||
#if (!defined(QEMU_RUN) && defined(RT_USING_MEMHEAP))
|
||||
aic_memheap_init();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
aic_board_sysclk_init();
|
||||
aic_board_pinmux_init();
|
||||
|
||||
#ifdef RT_USING_COMPONENTS_INIT
|
||||
rt_components_board_init();
|
||||
#endif
|
||||
|
||||
#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
|
||||
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef AIC_USING_PM
|
||||
void rt_pm_board_level_power_off(void)
|
||||
{
|
||||
rt_base_t pin;
|
||||
|
||||
pin = rt_pin_get(AIC_BOARD_LEVEL_POWER_PIN);
|
||||
if (pin < 0)
|
||||
return;
|
||||
|
||||
rt_pin_mode(pin, PIN_MODE_OUTPUT);
|
||||
rt_pin_write(pin, 0);
|
||||
}
|
||||
|
||||
void rt_pm_board_level_power_on(void)
|
||||
{
|
||||
rt_base_t pin;
|
||||
|
||||
pin = rt_pin_get(AIC_BOARD_LEVEL_POWER_PIN);
|
||||
if (pin < 0)
|
||||
return;
|
||||
|
||||
rt_pin_mode(pin, PIN_MODE_OUTPUT);
|
||||
rt_pin_write(pin, 1);
|
||||
}
|
||||
#endif
|
||||
|
||||
#elif defined(KERNEL_FREERTOS)
|
||||
#elif defined(KERNEL_BAREMETAL)
|
||||
#include <aic_tlsf.h>
|
||||
|
||||
void aic_hw_board_init(void)
|
||||
{
|
||||
#ifdef TLSF_MEM_HEAP
|
||||
aic_tlsf_heap_init();
|
||||
#endif
|
||||
aic_board_sysclk_init();
|
||||
aic_board_pinmux_init();
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef RT_USING_DFS_MNTTABLE
|
||||
#include <dfs_fs.h>
|
||||
/*@}*/
|
||||
#ifdef RT_USING_DFS_ROMFS
|
||||
#include "dfs_romfs.h"
|
||||
static const struct romfs_dirent _mountpoint_root[] =
|
||||
{
|
||||
{ROMFS_DIRENT_DIR, "ram", RT_NULL, 0},
|
||||
{ROMFS_DIRENT_DIR, "data", RT_NULL, 0},
|
||||
{ROMFS_DIRENT_DIR, "rodata", RT_NULL, 0},
|
||||
{ROMFS_DIRENT_DIR, "sdcard", RT_NULL, 0},
|
||||
{ROMFS_DIRENT_DIR, "udisk", RT_NULL, 0},
|
||||
#if defined(AIC_FLASH_NUM_TWO)
|
||||
{ROMFS_DIRENT_DIR, "extra", RT_NULL, 0},
|
||||
#endif
|
||||
};
|
||||
const struct romfs_dirent romfs_root =
|
||||
{
|
||||
ROMFS_DIRENT_DIR, "/", (rt_uint8_t *)_mountpoint_root, ARRAY_SIZE(_mountpoint_root)
|
||||
};
|
||||
#endif
|
||||
const struct dfs_mount_tbl mount_table[] = {
|
||||
#ifdef RT_USING_DFS_ROMFS
|
||||
{RT_NULL, "/", "rom", 0, &romfs_root, 0},
|
||||
#endif
|
||||
#ifdef LPKG_RAMDISK_TYPE_INITDATA
|
||||
{"ramdisk0", "/ram", "elm", 0, 0, 0},
|
||||
#endif
|
||||
#ifndef AIC_AB_SYSTEM_INTERFACE
|
||||
#if (defined(AIC_USING_FS_IMAGE_TYPE_FATFS_FOR_0) || defined(AIC_USING_FS_IMAGE_TYPE_FATFS_FOR_1))
|
||||
{"blk_rodata", "/rodata", "elm", 0, 0, 0},
|
||||
#endif
|
||||
#endif
|
||||
#ifdef LPKG_USING_LITTLEFS
|
||||
{"data", "/data", "lfs", 0, 0, 0},
|
||||
#endif
|
||||
#ifdef LPKG_USING_DFS_UFFS
|
||||
{"data", "/data", "uffs", 0, 0, 1},
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC1
|
||||
// sdX or mmcX
|
||||
{"sd1", "/sdcard", "elm", 0, 0, 0},
|
||||
#endif
|
||||
#if (defined(AIC_USING_USB0_HOST) || defined(AIC_USING_USB1_HOST))
|
||||
{"udisk", "/udisk", "elm", 0, 0, 0xFF},
|
||||
#endif
|
||||
#if defined(AIC_SECONED_FLASH_NOR)
|
||||
{"extra", "/extra", "lfs", 0, 0, 0},
|
||||
#elif defined(AIC_SECONED_FLASH_NAND)
|
||||
{"blk_extra", "/extra", "elm", 0, 0, 0},
|
||||
#endif
|
||||
{0}
|
||||
};
|
||||
#endif
|
||||
|
||||
void show_board_version(void)
|
||||
{
|
||||
printf("Board: %s\n\n", PRJ_BOARD);
|
||||
}
|
||||
20
target/d12x/demo68-mmc/include/board.h
Normal file
20
target/d12x/demo68-mmc/include/board.h
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Authors: weilin.peng@artinchip.com
|
||||
*/
|
||||
|
||||
#ifndef __AIC_BOARD_H__
|
||||
#define __AIC_BOARD_H__
|
||||
|
||||
#include <rtconfig.h>
|
||||
|
||||
#if defined(KERNEL_RTTHREAD)
|
||||
#elif defined(KERNEL_FREERTOS)
|
||||
#elif defined(KERNEL_BAREMETAL)
|
||||
void aic_hw_board_init(void);
|
||||
#endif
|
||||
|
||||
#endif /* __AIC_BOARD_H__ */
|
||||
13
target/d12x/demo68-mmc/pack/env.txt
Normal file
13
target/d12x/demo68-mmc/pack/env.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
osAB_next=A
|
||||
osAB_now=A
|
||||
rodataAB_next=A
|
||||
rodataAB_now=A
|
||||
dataAB_next=A
|
||||
dataAB_now=A
|
||||
upgrade_available=0
|
||||
bootlimit=5
|
||||
bootcount=0
|
||||
rodata_partname=rodata
|
||||
rodata_partname_r=rodata_r
|
||||
data_partname=data
|
||||
data_partname_r=data_r
|
||||
122
target/d12x/demo68-mmc/pack/image_cfg.json
Normal file
122
target/d12x/demo68-mmc/pack/image_cfg.json
Normal file
@@ -0,0 +1,122 @@
|
||||
{
|
||||
"mmc": { // Device, The name should be the same with string in image:info:media:type
|
||||
"size": "8G", // Size of SD/eMMC
|
||||
"partitions": {
|
||||
"spl": { "offset": "0x4400", "size": "495k" },
|
||||
"env": { "size": "256k" },
|
||||
"env_r": { "size": "256k" },
|
||||
"os": { "size": "8m" },
|
||||
"os_r": { "size": "8m" },
|
||||
"rodata": { "size": "12m" },
|
||||
"rodata_r": { "size": "12m" },
|
||||
"data": { "size": "20m" },
|
||||
"data_r": { "size": "20m" }
|
||||
},
|
||||
},
|
||||
"image": {
|
||||
"info": { // Header information about image
|
||||
"platform": "d12x",
|
||||
"product": "demo68-mmc",
|
||||
"version": "1.0.0",
|
||||
"media": {
|
||||
"type": "mmc",
|
||||
"device_id": 0, // sdmc index
|
||||
}
|
||||
},
|
||||
"updater": { // Image writer which is downloaded to RAM by USB
|
||||
"psram": {
|
||||
"file": "uartupg-psram-init.aic",
|
||||
"attr": ["required", "run"],
|
||||
"ram": "0x30044000"
|
||||
},
|
||||
"spl": {
|
||||
"file": "bootloader.aic",
|
||||
"attr": ["required", "run"],
|
||||
"ram": "0x40100000"
|
||||
},
|
||||
"env": {
|
||||
"file": "env.bin",
|
||||
"attr": ["required"],
|
||||
"ram": "0x40140000"
|
||||
},
|
||||
},
|
||||
"target": { // Image components which will be burn to device's partitions
|
||||
"spl": {
|
||||
"file": "bootloader.aic",
|
||||
"attr": ["required"],
|
||||
"part": ["spl"]
|
||||
},
|
||||
"env": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env"]
|
||||
},
|
||||
"env_r": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env_r"]
|
||||
},
|
||||
"os": {
|
||||
"file": "d12x_os.itb",
|
||||
"attr": ["block", "required"],
|
||||
"part": ["os"]
|
||||
},
|
||||
"rodata": {
|
||||
"file": "rodata.fatfs",
|
||||
"attr": ["block", "optional"],
|
||||
"part": ["rodata"]
|
||||
},
|
||||
"data": {
|
||||
"file": "data.fatfs",
|
||||
"attr": ["block", "optional"],
|
||||
"part": ["data"]
|
||||
},
|
||||
},
|
||||
},
|
||||
"pre-process": { // Pre-proccess to generate image components from raw data
|
||||
"aicimage": { // Create aic boot image
|
||||
"uartupg-psram-init.aic": { // No loader, only PreBootProgram to initialize PSRAM
|
||||
"head_ver": "0x00010001",
|
||||
"resource": {
|
||||
"private": "pbp_cfg.bin",
|
||||
"pbp": "d12x.pbp",
|
||||
},
|
||||
},
|
||||
"pbp_ext.aic": {
|
||||
"head_ver": "0x00010001",
|
||||
"resource": {
|
||||
"pbp": "d12x.pbp",
|
||||
"private": "pbp_cfg.bin",
|
||||
},
|
||||
// combine to use with loader.aic
|
||||
"with_ext": "true",
|
||||
},
|
||||
"loader.aic": {
|
||||
"head_ver": "0x00010001",
|
||||
"loader": {
|
||||
"file": "bootloader.bin",
|
||||
"load address": "CONFIG_AIC_BOOTLOADER_LOAD_BASE",
|
||||
"entry point": "CONFIG_AIC_BOOTLOADER_TEXT_BASE", // 256 byte aic header
|
||||
},
|
||||
"resource": {
|
||||
"private": "pbp_cfg.bin",
|
||||
},
|
||||
},
|
||||
},
|
||||
"concatenate": { // cat files in order
|
||||
"bootloader.aic": ["pbp_ext.aic", "loader.aic"],
|
||||
},
|
||||
"itb": { // Create itb image from its
|
||||
"d12x_os.itb": {
|
||||
"its": "d12x_os.its"
|
||||
},
|
||||
},
|
||||
"uboot_env": { // Create env data from txt
|
||||
"env.bin": {
|
||||
"file": "env.txt",
|
||||
"size": "4096",
|
||||
"redundant": "enable",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
9
target/d12x/demo68-mmc/pack/ota-subimgs.cfg
Normal file
9
target/d12x/demo68-mmc/pack/ota-subimgs.cfg
Normal file
@@ -0,0 +1,9 @@
|
||||
[image]
|
||||
size = "";
|
||||
version = "1.0.0";
|
||||
|
||||
[file]
|
||||
ota_info.bin:file;
|
||||
d12x_os.itb:os;
|
||||
rodata.fatfs:rodata;
|
||||
data.fatfs:data;
|
||||
249
target/d12x/demo68-mmc/pack/pbp_cfg.json
Normal file
249
target/d12x/demo68-mmc/pack/pbp_cfg.json
Normal file
@@ -0,0 +1,249 @@
|
||||
{
|
||||
"psram": {
|
||||
|
||||
"cfg0": { //OPI APS3208K 8M PSRAM
|
||||
"common": {
|
||||
"clock": "198000000",
|
||||
"cs0_pins": "0x0",
|
||||
"cs1_pins": "0x0",
|
||||
"xspi_ctl": "0x116d",
|
||||
"xspi_tcr": "0x280011",
|
||||
"xspi_cfg": "0x03020001",
|
||||
"xspi_ldo": "0x17", //1.92V
|
||||
"psram_cfg0": "0x03030303",
|
||||
"psram_cfg1": "0x00400001",
|
||||
"xspi_cs0_iocfg1": "0x02020202",
|
||||
"xspi_cs0_iocfg2": "0x02020202",
|
||||
"xspi_cs0_iocfg3": "0x36060503",
|
||||
"xspi_cs0_iocfg4": "0x26",
|
||||
"xspi_cs1_iocfg1": "0x02020202",
|
||||
"xspi_cs1_iocfg2": "0x02020202",
|
||||
"xspi_cs1_iocfg3": "0x36060503",
|
||||
"xspi_cs1_iocfg4": "0x26",
|
||||
},
|
||||
"reset": {
|
||||
"proto": "0xff000001",
|
||||
"buf": "0x00ffffff",
|
||||
},
|
||||
"getid": {
|
||||
"proto": "0x40030204",
|
||||
"id": "0x80c980c9",
|
||||
"buf": "0xffffffff",
|
||||
},
|
||||
"init": {
|
||||
"proto0": "0xc0000002", //cmd: byte[0]=0xc0; dummy: byte[1]=0x00; addr: byte[2]=0x00; len: byte[3]=0x02;
|
||||
"buf0": "0x19000000",
|
||||
"proto1": "0xc0000402",
|
||||
"buf1": "0x80000000",
|
||||
"proto2": "0xffffffff",
|
||||
"buf2": "0xffffffff",
|
||||
"proto3": "0xffffffff",
|
||||
"buf3": "0xffffffff",
|
||||
},
|
||||
"xip_cfg": {
|
||||
"wr_proto": "0x80020002",
|
||||
"wr_buf": "0xffffffff",
|
||||
"rd_proto": "0x00060003",
|
||||
"rd_buf": "0xffffffff",
|
||||
},
|
||||
"backup": {
|
||||
"buf0": "0xAA55AA55", // training_value1
|
||||
"buf1": "0x55AA55AA", // training_value2
|
||||
"buf2": "0x02080100", //byte0:read_hold (0x02); byte1:write_hold (0x08); byte3:axi_read_first(0x01); byte4: bit mode
|
||||
"buf3": "0xFFFFFF04",
|
||||
"buf4": "0xFFFFFF05",
|
||||
"buf5": "0xFFFFFF06",
|
||||
"buf6": "0xFFFFFF07",
|
||||
"buf7": "0xFFFFFF08",
|
||||
"buf8": "0xFFFFFF09",
|
||||
"buf9": "0xFFFFFF00",
|
||||
},
|
||||
},
|
||||
|
||||
"cfg1": { // XCCELA AP12816 16M PSRAM
|
||||
"common": {
|
||||
"clock": "198000000",
|
||||
"cs0_pins": "0x0",
|
||||
"cs1_pins": "0x0",
|
||||
"xspi_ctl": "0x116d",
|
||||
"xspi_tcr": "0x280011",
|
||||
"xspi_cfg": "0x03000001",
|
||||
"xspi_ldo": "0x17", //1.92V
|
||||
"psram_cfg0": "0x03030304", //cmd_lines, addr_lines, data_lines, addr_width
|
||||
"psram_cfg1": "0x02000001",
|
||||
"xspi_cs0_iocfg1": "0x02020202",
|
||||
"xspi_cs0_iocfg2": "0x02020202",
|
||||
"xspi_cs0_iocfg3": "0x36060405",
|
||||
"xspi_cs0_iocfg4": "0x26",
|
||||
"xspi_cs1_iocfg1": "0x02020202",
|
||||
"xspi_cs1_iocfg2": "0x02020202",
|
||||
"xspi_cs1_iocfg3": "0x36060403",
|
||||
"xspi_cs1_iocfg4": "0x26",
|
||||
},
|
||||
"reset": {
|
||||
"proto": "0xff000001",
|
||||
"buf": "0x00ffffff",
|
||||
},
|
||||
"getid": {
|
||||
|
||||
"proto": "0x40040104",
|
||||
"id": "0xdd8ddd8d",
|
||||
"buf": "0xffffffff",
|
||||
},
|
||||
"init": {
|
||||
"proto0": "0xc0000001", //cmd: byte[0]=0xc0; dummy: byte[1]=0x00; addr: byte[2]=0x00; len: byte[3]=0x02;
|
||||
"buf0": "0x11000000",
|
||||
"proto1": "0xc0000401",
|
||||
"buf1": "0x20000000",
|
||||
"proto2": "0xc0000801",
|
||||
"buf2": "0x4c000000",
|
||||
"proto3": "0xffffffff",
|
||||
"buf3": "0xffffffff",
|
||||
},
|
||||
"xip_cfg": {
|
||||
"wr_proto": "0x80070002", //cmd: byte[0]=0x80; dummy: byte[1]=0x07; addr: byte[2]=0x08; len: byte[3]=0x02;
|
||||
"wr_buf": "0xffffffff",
|
||||
"rd_proto": "0x00070003",
|
||||
"rd_buf": "0xffffffff",
|
||||
},
|
||||
"backup": {
|
||||
"buf0": "0x5555aaaa",
|
||||
"buf1": "0xaaaa5555",
|
||||
"buf2": "0x05050101", //byte0:read_hold; byte1:write_hold; byte3:axi_read_first; byte4:bit mode
|
||||
"buf3": "0xFFFFFF04",
|
||||
"buf4": "0xFFFFFF05",
|
||||
"buf5": "0xFFFFFF06",
|
||||
"buf6": "0xFFFFFF07",
|
||||
"buf7": "0xFFFFFF08",
|
||||
"buf8": "0xFFFFFF09",
|
||||
"buf9": "0xFFFFFF00",
|
||||
},
|
||||
},
|
||||
|
||||
"cfg2": { // XCCELA UnilC SCKW18X12816 16M PSRAM
|
||||
"common": {
|
||||
"clock": "198000000",
|
||||
"cs0_pins": "0x0",
|
||||
"cs1_pins": "0x0",
|
||||
"xspi_ctl": "0x116d",
|
||||
"xspi_tcr": "0x280011",
|
||||
"xspi_cfg": "0x03000001",
|
||||
"xspi_ldo": "0x17", //1.92V
|
||||
"psram_cfg0": "0x03030304", //cmd_lines, addr_lines, data_lines, addr_width
|
||||
"psram_cfg1": "0x02000001",
|
||||
"xspi_cs0_iocfg1": "0x02020202",
|
||||
"xspi_cs0_iocfg2": "0x02020202",
|
||||
"xspi_cs0_iocfg3": "0x36060405",
|
||||
"xspi_cs0_iocfg4": "0x26",
|
||||
"xspi_cs1_iocfg1": "0x02020202",
|
||||
"xspi_cs1_iocfg2": "0x02020202",
|
||||
"xspi_cs1_iocfg3": "0x36060403",
|
||||
"xspi_cs1_iocfg4": "0x26",
|
||||
},
|
||||
"reset": {
|
||||
"proto": "0xff000001",
|
||||
"buf": "0x00ffffff",
|
||||
},
|
||||
"getid": {
|
||||
|
||||
"proto": "0x40040104",
|
||||
"id": "0xc59ac59a",
|
||||
"buf": "0xffffffff",
|
||||
},
|
||||
"init": {
|
||||
"proto0": "0xc0000001", //cmd: byte[0]=0xc0; dummy: byte[1]=0x00; addr: byte[2]=0x00; len: byte[3]=0x02;
|
||||
"buf0": "0x10000000",
|
||||
"proto1": "0xc0000401",
|
||||
"buf1": "0x20000000",
|
||||
"proto2": "0xc0000801",
|
||||
"buf2": "0x4c000000",
|
||||
"proto3": "0xffffffff",
|
||||
"buf3": "0xffffffff",
|
||||
},
|
||||
"xip_cfg": {
|
||||
"wr_proto": "0x80070002", //cmd: byte[0]=0x80; dummy: byte[1]=0x07; addr: byte[2]=0x08; len: byte[3]=0x02;
|
||||
"wr_buf": "0xffffffff",
|
||||
"rd_proto": "0x00070003",
|
||||
"rd_buf": "0xffffffff",
|
||||
},
|
||||
"backup": {
|
||||
"buf0": "0x5555aaaa",
|
||||
"buf1": "0xaaaa5555",
|
||||
"buf2": "0x05050101", //byte0:read_hold; byte1:write_hold; byte3:axi_read_first; byte4:bit mode
|
||||
"buf3": "0xFFFFFF04",
|
||||
"buf4": "0xFFFFFF05",
|
||||
"buf5": "0xFFFFFF06",
|
||||
"buf6": "0xFFFFFF07",
|
||||
"buf7": "0xFFFFFF08",
|
||||
"buf8": "0xFFFFFF09",
|
||||
"buf9": "0xFFFFFF00",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
"system": {
|
||||
"upgmode": { // Set PIN to enter BROM's upgrading mode
|
||||
// If set upgmode_pin_cfg_reg to "0", disable bootpin detect in PBP
|
||||
"upgmode_pin_cfg_reg": "0x18700080", // PINMUX REG, PA0
|
||||
"upgmode_pin_cfg_val": "0x10321", // PINMUX VAL
|
||||
"upgmode_pin_input_reg": "0x18700000", // INPUT VAL REG
|
||||
"upgmode_pin_input_msk": "0x1", // Bit MSK
|
||||
"upgmode_pin_input_val": "0x0", // Bit VAL
|
||||
"upgmode_pin_pullup_dly": "500", // us
|
||||
},
|
||||
"uart": { // PBP's uart setting, remove uart setting to disable log in PBP
|
||||
"main": {
|
||||
"uart_id": "0", // UART0 for log output
|
||||
"uart_tx_pin_cfg_reg": "0x18700080", // PA0
|
||||
"uart_tx_pin_cfg_val": "0x335",
|
||||
"uart_rx_pin_cfg_reg": "0x18700084", // PA1
|
||||
"uart_rx_pin_cfg_val": "0x335",
|
||||
|
||||
// "uart_id": "0", // UART0 for log output
|
||||
// "uart_tx_pin_cfg_reg": "0x18700E88", // PN2
|
||||
// "uart_tx_pin_cfg_val": "0x324",
|
||||
// "uart_rx_pin_cfg_reg": "0x18700E8C", // PN3
|
||||
// "uart_rx_pin_cfg_val": "0x324",
|
||||
|
||||
// "uart_id": "1", // UART1 for log output
|
||||
// "uart_tx_pin_cfg_reg": "0x18700090", // PA4
|
||||
// "uart_tx_pin_cfg_val": "0x325",
|
||||
// "uart_rx_pin_cfg_reg": "0x18700094", // PA5
|
||||
// "uart_rx_pin_cfg_val": "0x325",
|
||||
|
||||
// "uart_id": "3", // UART3 for log output
|
||||
// "uart_tx_pin_cfg_reg": "0x187004B8", // PE14
|
||||
// "uart_tx_pin_cfg_val": "0x325",
|
||||
// "uart_rx_pin_cfg_reg": "0x187004BC", // PE15
|
||||
// "uart_rx_pin_cfg_val": "0x325",
|
||||
|
||||
// "uart_id": "4", // UART4 for log output
|
||||
// "uart_tx_pin_cfg_reg": "0x18700198", // PB6
|
||||
// "uart_tx_pin_cfg_val": "0x325",
|
||||
// "uart_rx_pin_cfg_reg": "0x1870019C", // PB7
|
||||
// "uart_rx_pin_cfg_val": "0x325",
|
||||
|
||||
// "uart_id": "5", // UART5 for log output
|
||||
// "uart_tx_pin_cfg_reg": "0x18700490", // PE4
|
||||
// "uart_tx_pin_cfg_val": "0x325",
|
||||
// "uart_rx_pin_cfg_reg": "0x18700494", // PE5
|
||||
// "uart_rx_pin_cfg_val": "0x325",
|
||||
},
|
||||
},
|
||||
"jtag": {
|
||||
"jtag_only": "0", // 1: Boot code stop in PBP after DDR init and jtag init
|
||||
"main": {
|
||||
"jtag_id": "0",
|
||||
"jtag_ms_pin_cfg_reg": "0x187000A8", // PA10
|
||||
"jtag_ms_pin_cfg_val": "0x338",
|
||||
"jtag_ck_pin_cfg_reg": "0x187000AC", // PA11
|
||||
"jtag_ck_pin_cfg_val": "0x338",
|
||||
|
||||
// "jtag_ms_pin_cfg_reg": "0x18700280", // PC0
|
||||
// "jtag_ms_pin_cfg_val": "0x338",
|
||||
// "jtag_ck_pin_cfg_reg": "0x18700294", // PC5
|
||||
// "jtag_ck_pin_cfg_val": "0x338",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
247
target/d12x/demo68-mmc/pinmux.c
Normal file
247
target/d12x/demo68-mmc/pinmux.c
Normal file
@@ -0,0 +1,247 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Authors: weilin.peng@artinchip.com
|
||||
*/
|
||||
|
||||
#include <aic_core.h>
|
||||
#include <aic_hal.h>
|
||||
#include "board.h"
|
||||
#include <aic_utils.h>
|
||||
|
||||
struct aic_pinmux aic_pinmux_config[] = {
|
||||
#ifdef AIC_USING_UART0
|
||||
/* uart0 */
|
||||
{5, PIN_PULL_DIS, 3, "PA.0"},
|
||||
{5, PIN_PULL_UP, 3, "PA.1"},
|
||||
#endif
|
||||
#ifdef AIC_USING_UART1
|
||||
/* uart1 */
|
||||
{5, PIN_PULL_DIS, 3, "PA.2"},
|
||||
{5, PIN_PULL_UP, 3, "PA.3"},
|
||||
#endif
|
||||
#ifdef AIC_USING_UART2
|
||||
/* uart2 */
|
||||
{8, PIN_PULL_DIS, 3, "PA.2"}, // BT_UART2_CTS
|
||||
{8, PIN_PULL_DIS, 3, "PA.3"}, // BT_UART2_RTS
|
||||
{5, PIN_PULL_DIS, 3, "PD.4"}, // BT_UART2_TX
|
||||
{5, PIN_PULL_UP, 3, "PD.5"}, // BT_UART2_RX
|
||||
{1, PIN_PULL_DIS, 3, "PD.6"}, // BT_PWR_ON
|
||||
#endif
|
||||
#ifdef AIC_USING_GPAI0
|
||||
{2, PIN_PULL_DIS, 3, "PA.0"},
|
||||
#endif
|
||||
#ifdef AIC_USING_GPAI1
|
||||
{2, PIN_PULL_DIS, 3, "PA.1"},
|
||||
#endif
|
||||
#ifdef AIC_USING_GPAI2
|
||||
{2, PIN_PULL_DIS, 3, "PA.2"},
|
||||
#endif
|
||||
#ifdef AIC_USING_GPAI3
|
||||
{2, PIN_PULL_DIS, 3, "PA.3"},
|
||||
#endif
|
||||
#ifdef AIC_USING_GPAI4
|
||||
{2, PIN_PULL_DIS, 3, "PA.4"},
|
||||
#endif
|
||||
#ifdef AIC_USING_GPAI5
|
||||
{2, PIN_PULL_DIS, 3, "PA.5"},
|
||||
#endif
|
||||
#ifdef AIC_USING_GPAI6
|
||||
{2, PIN_PULL_DIS, 3, "PA.6"},
|
||||
#endif
|
||||
#ifdef AIC_USING_GPAI7
|
||||
{2, PIN_PULL_DIS, 3, "PA.7"},
|
||||
#endif
|
||||
#ifdef AIC_USING_CAN0
|
||||
/* can0 */
|
||||
{4, PIN_PULL_DIS, 3, "PA.4"},
|
||||
{4, PIN_PULL_DIS, 3, "PA.5"},
|
||||
#endif
|
||||
#ifdef AIC_USING_AUDIO
|
||||
#ifdef AIC_AUDIO_DMIC
|
||||
{4, PIN_PULL_DIS, 3, "PD.16"},
|
||||
{4, PIN_PULL_DIS, 3, "PD.17"},
|
||||
#endif
|
||||
#ifdef AIC_AUDIO_PLAYBACK
|
||||
{5, PIN_PULL_DIS, 3, "PE.12"},
|
||||
{1, PIN_PULL_DIS, 3, AIC_AUDIO_PA_ENABLE_GPIO},
|
||||
#endif
|
||||
#endif
|
||||
#ifdef AIC_USING_RTP
|
||||
{2, PIN_PULL_DIS, 3, "PA.8"},
|
||||
{2, PIN_PULL_DIS, 3, "PA.9"},
|
||||
{2, PIN_PULL_DIS, 3, "PA.10"},
|
||||
{2, PIN_PULL_DIS, 3, "PA.11"},
|
||||
#endif
|
||||
#ifdef AIC_USING_I2C0
|
||||
{4, PIN_PULL_DIS, 3, "PA.8"}, // SCK
|
||||
{4, PIN_PULL_DIS, 3, "PA.9"}, // SDA
|
||||
#endif
|
||||
#ifdef AIC_USING_QSPI0
|
||||
#ifndef AIC_SYSCFG_SIP_FLASH_ENABLE
|
||||
/* qspi0 */
|
||||
{2, PIN_PULL_UP, 3, "PB.0"},
|
||||
{2, PIN_PULL_UP, 3, "PB.1"},
|
||||
{2, PIN_PULL_UP, 3, "PB.2"},
|
||||
{2, PIN_PULL_UP, 3, "PB.3"},
|
||||
{2, PIN_PULL_UP, 3, "PB.4"},
|
||||
{2, PIN_PULL_UP, 3, "PB.5"},
|
||||
#else
|
||||
{8, PIN_PULL_UP, 3, "PB.12"},
|
||||
{8, PIN_PULL_UP, 3, "PB.13"},
|
||||
{8, PIN_PULL_UP, 3, "PB.14"},
|
||||
{8, PIN_PULL_UP, 3, "PB.15"},
|
||||
{8, PIN_PULL_UP, 3, "PB.16"},
|
||||
{8, PIN_PULL_UP, 3, "PB.17"},
|
||||
#endif
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC0
|
||||
{2, PIN_PULL_UP, 7, "PB.6"},
|
||||
{2, PIN_PULL_UP, 7, "PB.7"},
|
||||
{2, PIN_PULL_UP, 7, "PB.8"},
|
||||
{2, PIN_PULL_UP, 7, "PB.9"},
|
||||
{2, PIN_PULL_UP, 7, "PB.10"},
|
||||
{2, PIN_PULL_UP, 7, "PB.11"},
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC1
|
||||
{2, PIN_PULL_UP, 3, "PC.0"},
|
||||
{2, PIN_PULL_UP, 3, "PC.1"},
|
||||
{2, PIN_PULL_UP, 3, "PC.2"},
|
||||
{2, PIN_PULL_UP, 3, "PC.3"},
|
||||
{2, PIN_PULL_UP, 3, "PC.4"},
|
||||
{2, PIN_PULL_UP, 3, "PC.5"},
|
||||
{2, PIN_PULL_UP, 3, "PC.6"},
|
||||
#endif
|
||||
#ifdef AIC_WIRELESS_LAN
|
||||
{1, PIN_PULL_DIS, 3, "PD.7"}, // WIFI_PWR_ON
|
||||
#endif
|
||||
#ifdef AIC_PRGB_24BIT
|
||||
{2, PIN_PULL_DIS, 3, "PD.0"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.1"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.2"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.3"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.4"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.5"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.6"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.7"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.8"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.9"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.10"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.11"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.12"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.13"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.14"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.15"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.16"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.17"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.18"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.19"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.20"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.21"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.22"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.23"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.24"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.25"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.26"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.27"},
|
||||
#endif
|
||||
#ifdef AIC_PANEL_ENABLE_GPIO
|
||||
{1, PIN_PULL_DIS, 3, AIC_PANEL_ENABLE_GPIO},
|
||||
#endif
|
||||
#ifdef AIC_PRGB_16BIT_LD
|
||||
{2, PIN_PULL_DIS, 3, "PD.8"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.9"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.10"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.11"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.12"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.13"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.14"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.15"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.16"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.17"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.18"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.19"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.20"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.21"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.22"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.23"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.24"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.25"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.26"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.27"},
|
||||
#endif
|
||||
#ifdef AIC_PRGB_16BIT_HD
|
||||
{2, PIN_PULL_DIS, 3, "PD.0"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.1"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.2"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.3"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.4"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.5"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.6"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.7"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.8"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.9"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.10"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.11"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.12"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.13"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.14"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.15"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.24"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.25"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.26"},
|
||||
{2, PIN_PULL_DIS, 3, "PD.27"},
|
||||
#endif
|
||||
#ifdef AIC_DISP_MIPI_DSI
|
||||
{4, PIN_PULL_DIS, 3, "PD.18"},
|
||||
{4, PIN_PULL_DIS, 3, "PD.19"},
|
||||
{4, PIN_PULL_DIS, 3, "PD.20"},
|
||||
{4, PIN_PULL_DIS, 3, "PD.21"},
|
||||
{4, PIN_PULL_DIS, 3, "PD.22"},
|
||||
{4, PIN_PULL_DIS, 3, "PD.23"},
|
||||
{4, PIN_PULL_DIS, 3, "PD.24"},
|
||||
{4, PIN_PULL_DIS, 3, "PD.25"},
|
||||
{4, PIN_PULL_DIS, 3, "PD.26"},
|
||||
{4, PIN_PULL_DIS, 3, "PD.27"},
|
||||
#endif
|
||||
#ifdef AIC_USING_CLK_OUT0
|
||||
{6, PIN_PULL_DIS, 3, "PD.13"},
|
||||
#endif
|
||||
#ifdef AIC_USING_CLK_OUT1
|
||||
{2, PIN_PULL_DIS, 3, "PE.11"},
|
||||
#endif
|
||||
#ifdef AIC_USING_CLK_OUT2
|
||||
{2, PIN_PULL_DIS, 3, "PE.10"},
|
||||
#endif
|
||||
#ifdef AIC_USING_CLK_OUT3
|
||||
{7, PIN_PULL_DIS, 3, "PC.6"},
|
||||
#endif
|
||||
#ifdef AIC_USING_PWM1
|
||||
{3, PIN_PULL_DIS, 3, "PE.11"},
|
||||
//{3, PIN_PULL_DIS, 3, "PE.12"},
|
||||
#endif
|
||||
#ifdef AIC_USING_PWM2
|
||||
{3, PIN_PULL_DIS, 3, "PE.13"},
|
||||
//{3, PIN_PULL_DIS, 3, "PE.15"},
|
||||
#endif
|
||||
#ifdef AIC_USING_RTP
|
||||
{2, PIN_PULL_DIS, 3, "PA.8"},
|
||||
{2, PIN_PULL_DIS, 3, "PA.9"},
|
||||
{2, PIN_PULL_DIS, 3, "PA.10"},
|
||||
{2, PIN_PULL_DIS, 3, "PA.11"},
|
||||
#endif
|
||||
#ifdef AIC_USING_CTP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_RST_PIN},
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN},
|
||||
#endif
|
||||
#ifdef AIC_USING_PM
|
||||
{1, PIN_PULL_DIS, 3, AIC_BOARD_LEVEL_POWER_PIN, FLAG_POWER_PIN},
|
||||
#ifdef AIC_PM_DEMO
|
||||
{1, PIN_PULL_DIS, 3, AIC_PM_POWER_KEY_GPIO, FLAG_WAKEUP_SOURCE},
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
||||
uint32_t aic_pinmux_config_size = ARRAY_SIZE(aic_pinmux_config);
|
||||
57
target/d12x/demo68-mmc/sys_clk.c
Normal file
57
target/d12x/demo68-mmc/sys_clk.c
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Authors: weilin.peng@artinchip.com
|
||||
*/
|
||||
|
||||
#include <aic_core.h>
|
||||
#include <aic_hal.h>
|
||||
#include "board.h"
|
||||
|
||||
struct aic_sysclk
|
||||
{
|
||||
unsigned long freq;
|
||||
unsigned int clk_id;
|
||||
unsigned int parent_clk_id;
|
||||
};
|
||||
|
||||
struct aic_sysclk aic_sysclk_config[] = {
|
||||
{AIC_CLK_PLL_INT0_FREQ, CLK_PLL_INT0, 0}, /* 480000000 */
|
||||
{AIC_CLK_PLL_INT1_FREQ, CLK_PLL_INT1, 0}, /* 1200000000 */
|
||||
{AIC_CLK_PLL_FRA0_FREQ, CLK_PLL_FRA0, 0}, /* 792000000 */
|
||||
{AIC_CLK_PLL_FRA2_FREQ, CLK_PLL_FRA2, 0}, /* 1188000000 */
|
||||
{AIC_CLK_CPU_FREQ, CLK_CPU, CLK_CPU_SRC1}, /* 480000000 */
|
||||
{AIC_CLK_AXI0_FREQ, CLK_AXI0, CLK_AXI_AHB_SRC1}, /* 200000000 */
|
||||
{AIC_CLK_AHB0_FREQ, CLK_AHB0, CLK_AXI_AHB_SRC1}, /* 200000000 */
|
||||
{AIC_CLK_APB0_FREQ, CLK_APB0, CLK_APB0_SRC1}, /* 100000000 */
|
||||
// {24000000, CLK_APB1, 0},
|
||||
};
|
||||
|
||||
void aic_board_sysclk_init(void)
|
||||
{
|
||||
uint32_t i = 0;
|
||||
|
||||
for (i=0; i<sizeof(aic_sysclk_config)/sizeof(struct aic_sysclk); i++) {
|
||||
if (aic_sysclk_config[i].freq == 0)
|
||||
continue;
|
||||
|
||||
/* multi parent clk */
|
||||
if (aic_sysclk_config[i].parent_clk_id) {
|
||||
hal_clk_set_freq(aic_sysclk_config[i].parent_clk_id,
|
||||
aic_sysclk_config[i].freq);
|
||||
hal_clk_enable(aic_sysclk_config[i].parent_clk_id);
|
||||
hal_clk_set_parent(aic_sysclk_config[i].clk_id,
|
||||
aic_sysclk_config[i].parent_clk_id);
|
||||
} else {
|
||||
hal_clk_set_freq(aic_sysclk_config[i].clk_id, aic_sysclk_config[i].freq);
|
||||
hal_clk_enable(aic_sysclk_config[i].clk_id);
|
||||
}
|
||||
}
|
||||
|
||||
/* Enable sys clk */
|
||||
hal_clk_enable_deassertrst_iter(CLK_GPIO);
|
||||
hal_clk_enable_deassertrst_iter(CLK_GTC);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2024, ArtInChip Technology Co., Ltd
|
||||
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
@@ -214,7 +214,7 @@ const struct dfs_mount_tbl mount_table[] = {
|
||||
{"data", "/data", "uffs", 0, 0, 1},
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC1
|
||||
{"sd0", "/sdcard", "elm", 0, 0, 0},
|
||||
{"sd1", "/sdcard", "elm", 0, 0, 0},
|
||||
#endif
|
||||
#if (defined(AIC_USING_USB0_HOST) || defined(AIC_USING_USB1_HOST))
|
||||
{"udisk", "/udisk", "elm", 0, 0, 0xFF},
|
||||
|
||||
Binary file not shown.
@@ -59,7 +59,12 @@
|
||||
"env": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env","env_r"]
|
||||
"part": ["env"]
|
||||
},
|
||||
"env_r": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env_r"]
|
||||
},
|
||||
"os": {
|
||||
"file": "d12x_os.itb",
|
||||
|
||||
@@ -55,14 +55,23 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{4, PIN_PULL_DIS, 3, "PA.8"}, // SCK
|
||||
{4, PIN_PULL_DIS, 3, "PA.9"}, // SDA
|
||||
#endif
|
||||
#if defined(AIC_USING_QSPI0) && !defined(AIC_SYSCFG_SIP_FLASH_ENABLE)
|
||||
#ifdef AIC_USING_QSPI0
|
||||
#ifndef AIC_SYSCFG_SIP_FLASH_ENABLE
|
||||
/* qspi0 */
|
||||
{2, PIN_PULL_DIS, 3, "PB.0"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.1"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.2"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.3"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.4"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.5"},
|
||||
{2, PIN_PULL_UP, 3, "PB.0"},
|
||||
{2, PIN_PULL_UP, 3, "PB.1"},
|
||||
{2, PIN_PULL_UP, 3, "PB.2"},
|
||||
{2, PIN_PULL_UP, 3, "PB.3"},
|
||||
{2, PIN_PULL_UP, 3, "PB.4"},
|
||||
{2, PIN_PULL_UP, 3, "PB.5"},
|
||||
#else
|
||||
{8, PIN_PULL_UP, 3, "PB.12"},
|
||||
{8, PIN_PULL_UP, 3, "PB.13"},
|
||||
{8, PIN_PULL_UP, 3, "PB.14"},
|
||||
{8, PIN_PULL_UP, 3, "PB.15"},
|
||||
{8, PIN_PULL_UP, 3, "PB.16"},
|
||||
{8, PIN_PULL_UP, 3, "PB.17"},
|
||||
#endif
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC0
|
||||
{2, PIN_PULL_UP, 7, "PB.6"},
|
||||
@@ -177,7 +186,7 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
#endif
|
||||
#ifdef AIC_USING_CTP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_RST_PIN},
|
||||
#ifdef AIC_PM_DEMO_TOUCH_WAKEUP
|
||||
#ifdef AIC_TOUCH_PANEL_WAKE_UP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN, FLAG_WAKEUP_SOURCE},
|
||||
#else
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN},
|
||||
|
||||
@@ -214,7 +214,7 @@ const struct dfs_mount_tbl mount_table[] = {
|
||||
{"data", "/data", "uffs", 0, 0, 1},
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC1
|
||||
{"sd0", "/sdcard", "elm", 0, 0, 0},
|
||||
{"sd1", "/sdcard", "elm", 0, 0, 0},
|
||||
#endif
|
||||
#if (defined(AIC_USING_USB0_HOST) || defined(AIC_USING_USB1_HOST))
|
||||
{"udisk", "/udisk", "elm", 0, 0, 0xFF},
|
||||
|
||||
Binary file not shown.
@@ -42,7 +42,12 @@
|
||||
"env": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env","env_r"]
|
||||
"part": ["env"]
|
||||
},
|
||||
"env_r": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env_r"]
|
||||
},
|
||||
"os": {
|
||||
"file": "d12x_os.itb",
|
||||
|
||||
@@ -279,5 +279,14 @@
|
||||
// "jtag_ck_pin_cfg_val": "0x338",
|
||||
},
|
||||
},
|
||||
// "regcfg": {
|
||||
// "count": "4",
|
||||
// "regs": [ // Array of reg setting, delay time unit is us
|
||||
// { "reg" : "0x40700000", "val": "0xA", "dly": "1" },
|
||||
// { "reg" : "0x40700004", "val": "0xB", "dly": "1" },
|
||||
// { "reg" : "0x40700008", "val": "0xC", "dly": "1" },
|
||||
// { "reg" : "0x4070000C", "val": "0xD", "dly": "1" },
|
||||
// ],
|
||||
// },
|
||||
},
|
||||
}
|
||||
|
||||
@@ -59,14 +59,23 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{4, PIN_PULL_DIS, 3, "PA.2"}, // SCK
|
||||
{4, PIN_PULL_DIS, 3, "PA.3"}, // SDA
|
||||
#endif
|
||||
#if defined(AIC_USING_QSPI0) && !defined(AIC_SYSCFG_SIP_FLASH_ENABLE)
|
||||
#ifdef AIC_USING_QSPI0
|
||||
#ifndef AIC_SYSCFG_SIP_FLASH_ENABLE
|
||||
/* qspi0 */
|
||||
{2, PIN_PULL_DIS, 3, "PB.0"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.1"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.2"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.3"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.4"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.5"},
|
||||
{2, PIN_PULL_UP, 3, "PB.0"},
|
||||
{2, PIN_PULL_UP, 3, "PB.1"},
|
||||
{2, PIN_PULL_UP, 3, "PB.2"},
|
||||
{2, PIN_PULL_UP, 3, "PB.3"},
|
||||
{2, PIN_PULL_UP, 3, "PB.4"},
|
||||
{2, PIN_PULL_UP, 3, "PB.5"},
|
||||
#else
|
||||
{8, PIN_PULL_UP, 3, "PB.12"},
|
||||
{8, PIN_PULL_UP, 3, "PB.13"},
|
||||
{8, PIN_PULL_UP, 3, "PB.14"},
|
||||
{8, PIN_PULL_UP, 3, "PB.15"},
|
||||
{8, PIN_PULL_UP, 3, "PB.16"},
|
||||
{8, PIN_PULL_UP, 3, "PB.17"},
|
||||
#endif
|
||||
#endif
|
||||
#if defined(AIC_USING_QSPI1) && defined(AIC_SYSCFG_SIP_FLASH_ENABLE)
|
||||
/* qspi1 */
|
||||
@@ -322,7 +331,7 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
#endif
|
||||
#ifdef AIC_USING_CTP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_RST_PIN},
|
||||
#ifdef AIC_PM_DEMO_TOUCH_WAKEUP
|
||||
#ifdef AIC_TOUCH_PANEL_WAKE_UP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN, FLAG_WAKEUP_SOURCE},
|
||||
#else
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2024, ArtInChip Technology Co., Ltd
|
||||
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
@@ -185,7 +185,7 @@ const struct dfs_mount_tbl mount_table[] = {
|
||||
{"data", "/data", "uffs", 0, 0, 1},
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC1
|
||||
{"sd0", "/sdcard", "elm", 0, 0, 0},
|
||||
{"sd1", "/sdcard", "elm", 0, 0, 0},
|
||||
#endif
|
||||
#if (defined(AIC_USING_USB0_HOST) || defined(AIC_USING_USB1_HOST))
|
||||
{"udisk", "/udisk", "elm", 0, 0, 0xFF},
|
||||
|
||||
Binary file not shown.
@@ -42,7 +42,12 @@
|
||||
"env": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env","env_r"]
|
||||
"part": ["env"]
|
||||
},
|
||||
"env_r": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env_r"]
|
||||
},
|
||||
"os": {
|
||||
"file": "d12x_os.itb",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2024, ArtInChip Technology Co., Ltd
|
||||
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
@@ -62,14 +62,23 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{4, PIN_PULL_DIS, 3, "PD.0"},
|
||||
{4, PIN_PULL_DIS, 3, "PD.1"},
|
||||
#endif
|
||||
#if defined(AIC_USING_QSPI0) && !defined(AIC_SYSCFG_SIP_FLASH_ENABLE)
|
||||
#ifdef AIC_USING_QSPI0
|
||||
#ifndef AIC_SYSCFG_SIP_FLASH_ENABLE
|
||||
/* qspi0 */
|
||||
{2, PIN_PULL_DIS, 3, "PB.0"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.1"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.2"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.3"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.4"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.5"},
|
||||
{2, PIN_PULL_UP, 3, "PB.0"},
|
||||
{2, PIN_PULL_UP, 3, "PB.1"},
|
||||
{2, PIN_PULL_UP, 3, "PB.2"},
|
||||
{2, PIN_PULL_UP, 3, "PB.3"},
|
||||
{2, PIN_PULL_UP, 3, "PB.4"},
|
||||
{2, PIN_PULL_UP, 3, "PB.5"},
|
||||
#else
|
||||
{8, PIN_PULL_UP, 3, "PB.12"},
|
||||
{8, PIN_PULL_UP, 3, "PB.13"},
|
||||
{8, PIN_PULL_UP, 3, "PB.14"},
|
||||
{8, PIN_PULL_UP, 3, "PB.15"},
|
||||
{8, PIN_PULL_UP, 3, "PB.16"},
|
||||
{8, PIN_PULL_UP, 3, "PB.17"},
|
||||
#endif
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC0
|
||||
{2, PIN_PULL_UP, 7, "PB.6"},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2024, ArtInChip Technology Co., Ltd
|
||||
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
@@ -218,7 +218,7 @@ const struct dfs_mount_tbl mount_table[] = {
|
||||
{"data", "/data", "uffs", 0, 0, 1},
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC1
|
||||
{"sd0", "/sdcard", "elm", 0, 0, 0},
|
||||
{"sd1", "/sdcard", "elm", 0, 0, 0},
|
||||
#endif
|
||||
#if (defined(AIC_USING_USB0_HOST) || defined(AIC_USING_USB0_OTG) || defined(AIC_USING_USB1_HOST))
|
||||
{"udisk", "/udisk", "elm", 0, 0, 0xFF},
|
||||
|
||||
Binary file not shown.
@@ -41,7 +41,12 @@
|
||||
"env": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env","env_r"]
|
||||
"part": ["env"]
|
||||
},
|
||||
"env_r": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env_r"]
|
||||
},
|
||||
"os": {
|
||||
"file": "d13x_os.itb",
|
||||
|
||||
@@ -120,14 +120,23 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{4, PIN_PULL_DIS, 3, "PA.8"}, // SCK
|
||||
{4, PIN_PULL_DIS, 3, "PA.9"}, // SDA
|
||||
#endif
|
||||
#if defined(AIC_USING_QSPI0) && !defined(AIC_SYSCFG_SIP_FLASH_ENABLE)
|
||||
#ifdef AIC_USING_QSPI0
|
||||
#ifndef AIC_SYSCFG_SIP_FLASH_ENABLE
|
||||
/* qspi0 */
|
||||
{2, PIN_PULL_DIS, 3, "PB.0"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.1"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.2"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.3"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.4"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.5"},
|
||||
{2, PIN_PULL_UP, 3, "PB.0"},
|
||||
{2, PIN_PULL_UP, 3, "PB.1"},
|
||||
{2, PIN_PULL_UP, 3, "PB.2"},
|
||||
{2, PIN_PULL_UP, 3, "PB.3"},
|
||||
{2, PIN_PULL_UP, 3, "PB.4"},
|
||||
{2, PIN_PULL_UP, 3, "PB.5"},
|
||||
#else
|
||||
{8, PIN_PULL_UP, 3, "PB.12"},
|
||||
{8, PIN_PULL_UP, 3, "PB.13"},
|
||||
{8, PIN_PULL_UP, 3, "PB.14"},
|
||||
{8, PIN_PULL_UP, 3, "PB.15"},
|
||||
{8, PIN_PULL_UP, 3, "PB.16"},
|
||||
{8, PIN_PULL_UP, 3, "PB.17"},
|
||||
#endif
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC0
|
||||
{2, PIN_PULL_UP, 7, "PB.6"},
|
||||
@@ -373,7 +382,7 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
#endif
|
||||
#ifdef AIC_USING_CTP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_RST_PIN},
|
||||
#ifdef AIC_PM_DEMO_TOUCH_WAKEUP
|
||||
#ifdef AIC_TOUCH_PANEL_WAKE_UP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN, FLAG_WAKEUP_SOURCE},
|
||||
#else
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2024, ArtInChip Technology Co., Ltd
|
||||
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
@@ -219,7 +219,7 @@ const struct dfs_mount_tbl mount_table[] = {
|
||||
{"data", "/data", "uffs", 0, 0, 1},
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC1
|
||||
{"sd0", "/sdcard", "elm", 0, 0, 0},
|
||||
{"sd1", "/sdcard", "elm", 0, 0, 0},
|
||||
#endif
|
||||
#if (defined(AIC_USING_USB0_HOST) || defined(AIC_USING_USB0_OTG) || defined(AIC_USING_USB1_HOST))
|
||||
{"udisk", "/udisk", "elm", 0, 0, 0},
|
||||
|
||||
Binary file not shown.
@@ -58,7 +58,12 @@
|
||||
"env": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env","env_r"]
|
||||
"part": ["env"]
|
||||
},
|
||||
"env_r": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env_r"]
|
||||
},
|
||||
"os": {
|
||||
"file": "d13x_os.itb",
|
||||
|
||||
@@ -74,14 +74,23 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{4, PIN_PULL_DIS, 3, "PA.8"}, // SCK
|
||||
{4, PIN_PULL_DIS, 3, "PA.9"}, // SDA
|
||||
#endif
|
||||
#if defined(AIC_USING_QSPI0) && !defined(AIC_SYSCFG_SIP_FLASH_ENABLE)
|
||||
#ifdef AIC_USING_QSPI0
|
||||
#ifndef AIC_SYSCFG_SIP_FLASH_ENABLE
|
||||
/* qspi0 */
|
||||
{2, PIN_PULL_DIS, 3, "PB.0"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.1"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.2"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.3"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.4"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.5"},
|
||||
{2, PIN_PULL_UP, 3, "PB.0"},
|
||||
{2, PIN_PULL_UP, 3, "PB.1"},
|
||||
{2, PIN_PULL_UP, 3, "PB.2"},
|
||||
{2, PIN_PULL_UP, 3, "PB.3"},
|
||||
{2, PIN_PULL_UP, 3, "PB.4"},
|
||||
{2, PIN_PULL_UP, 3, "PB.5"},
|
||||
#else
|
||||
{8, PIN_PULL_UP, 3, "PB.12"},
|
||||
{8, PIN_PULL_UP, 3, "PB.13"},
|
||||
{8, PIN_PULL_UP, 3, "PB.14"},
|
||||
{8, PIN_PULL_UP, 3, "PB.15"},
|
||||
{8, PIN_PULL_UP, 3, "PB.16"},
|
||||
{8, PIN_PULL_UP, 3, "PB.17"},
|
||||
#endif
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC0
|
||||
{2, PIN_PULL_UP, 7, "PB.6"},
|
||||
@@ -289,7 +298,7 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
#endif
|
||||
#ifdef AIC_USING_CTP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_RST_PIN},
|
||||
#ifdef AIC_PM_DEMO_TOUCH_WAKEUP
|
||||
#ifdef AIC_TOUCH_PANEL_WAKE_UP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN, FLAG_WAKEUP_SOURCE},
|
||||
#else
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN},
|
||||
|
||||
@@ -221,7 +221,7 @@ const struct dfs_mount_tbl mount_table[] = {
|
||||
{"data", "/data", "uffs", 0, 0, 1},
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC1
|
||||
{"sd0", "/sdcard", "elm", 0, 0, 0},
|
||||
{"sd1", "/sdcard", "elm", 0, 0, 0},
|
||||
#endif
|
||||
#if (defined(AIC_USING_USB0_HOST) || defined(AIC_USING_USB0_OTG) || defined(AIC_USING_USB1_HOST))
|
||||
{"udisk", "/udisk", "elm", 0, 0, 0xFF},
|
||||
|
||||
Binary file not shown.
@@ -41,7 +41,12 @@
|
||||
"env": {
|
||||
"file": "env.bin.enc",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env","env_r"]
|
||||
"part": ["env"]
|
||||
},
|
||||
"env_r": {
|
||||
"file": "env.bin.enc",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env_r"]
|
||||
},
|
||||
"os": {
|
||||
"file": "d13x_os.itb.enc",
|
||||
|
||||
@@ -120,14 +120,23 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{4, PIN_PULL_DIS, 3, "PA.8"}, // SCK
|
||||
{4, PIN_PULL_DIS, 3, "PA.9"}, // SDA
|
||||
#endif
|
||||
#if defined(AIC_USING_QSPI0) && !defined(AIC_SYSCFG_SIP_FLASH_ENABLE)
|
||||
#ifdef AIC_USING_QSPI0
|
||||
#ifndef AIC_SYSCFG_SIP_FLASH_ENABLE
|
||||
/* qspi0 */
|
||||
{2, PIN_PULL_DIS, 3, "PB.0"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.1"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.2"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.3"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.4"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.5"},
|
||||
{2, PIN_PULL_UP, 3, "PB.0"},
|
||||
{2, PIN_PULL_UP, 3, "PB.1"},
|
||||
{2, PIN_PULL_UP, 3, "PB.2"},
|
||||
{2, PIN_PULL_UP, 3, "PB.3"},
|
||||
{2, PIN_PULL_UP, 3, "PB.4"},
|
||||
{2, PIN_PULL_UP, 3, "PB.5"},
|
||||
#else
|
||||
{8, PIN_PULL_UP, 3, "PB.12"},
|
||||
{8, PIN_PULL_UP, 3, "PB.13"},
|
||||
{8, PIN_PULL_UP, 3, "PB.14"},
|
||||
{8, PIN_PULL_UP, 3, "PB.15"},
|
||||
{8, PIN_PULL_UP, 3, "PB.16"},
|
||||
{8, PIN_PULL_UP, 3, "PB.17"},
|
||||
#endif
|
||||
#endif
|
||||
#if defined(AIC_USING_QSPI2) && defined(AIC_SYSCFG_SIP_FLASH_ENABLE) && !defined(AIC_USING_SDMC0)
|
||||
/* qspi2 */
|
||||
@@ -392,7 +401,7 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
#endif
|
||||
#ifdef AIC_USING_CTP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_RST_PIN},
|
||||
#ifdef AIC_PM_DEMO_TOUCH_WAKEUP
|
||||
#ifdef AIC_TOUCH_PANEL_WAKE_UP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN, FLAG_WAKEUP_SOURCE},
|
||||
#else
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN},
|
||||
|
||||
@@ -221,7 +221,7 @@ const struct dfs_mount_tbl mount_table[] = {
|
||||
{"data", "/data", "uffs", 0, 0, 1},
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC1
|
||||
{"sd0", "/sdcard", "elm", 0, 0, 0},
|
||||
{"sd1", "/sdcard", "elm", 0, 0, 0},
|
||||
#endif
|
||||
#if (defined(AIC_USING_USB0_HOST) || defined(AIC_USING_USB0_OTG) || defined(AIC_USING_USB1_HOST))
|
||||
{"udisk", "/udisk", "elm", 0, 0, 0xFF},
|
||||
|
||||
Binary file not shown.
@@ -41,7 +41,12 @@
|
||||
"env": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env","env_r"]
|
||||
"part": ["env"]
|
||||
},
|
||||
"env_r": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env_r"]
|
||||
},
|
||||
"os": {
|
||||
"file": "d13x_os.itb",
|
||||
|
||||
@@ -120,14 +120,23 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{4, PIN_PULL_DIS, 3, "PA.8"}, // SCK
|
||||
{4, PIN_PULL_DIS, 3, "PA.9"}, // SDA
|
||||
#endif
|
||||
#if defined(AIC_USING_QSPI0) && !defined(AIC_SYSCFG_SIP_FLASH_ENABLE)
|
||||
#ifdef AIC_USING_QSPI0
|
||||
#ifndef AIC_SYSCFG_SIP_FLASH_ENABLE
|
||||
/* qspi0 */
|
||||
{2, PIN_PULL_DIS, 3, "PB.0"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.1"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.2"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.3"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.4"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.5"},
|
||||
{2, PIN_PULL_UP, 3, "PB.0"},
|
||||
{2, PIN_PULL_UP, 3, "PB.1"},
|
||||
{2, PIN_PULL_UP, 3, "PB.2"},
|
||||
{2, PIN_PULL_UP, 3, "PB.3"},
|
||||
{2, PIN_PULL_UP, 3, "PB.4"},
|
||||
{2, PIN_PULL_UP, 3, "PB.5"},
|
||||
#else
|
||||
{8, PIN_PULL_UP, 3, "PB.12"},
|
||||
{8, PIN_PULL_UP, 3, "PB.13"},
|
||||
{8, PIN_PULL_UP, 3, "PB.14"},
|
||||
{8, PIN_PULL_UP, 3, "PB.15"},
|
||||
{8, PIN_PULL_UP, 3, "PB.16"},
|
||||
{8, PIN_PULL_UP, 3, "PB.17"},
|
||||
#endif
|
||||
#endif
|
||||
#if defined(AIC_USING_QSPI2) && defined(AIC_SYSCFG_SIP_FLASH_ENABLE) && !defined(AIC_USING_SDMC0)
|
||||
/* qspi2 */
|
||||
@@ -392,7 +401,7 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
#endif
|
||||
#ifdef AIC_USING_CTP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_RST_PIN},
|
||||
#ifdef AIC_PM_DEMO_TOUCH_WAKEUP
|
||||
#ifdef AIC_TOUCH_PANEL_WAKE_UP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN, FLAG_WAKEUP_SOURCE},
|
||||
#else
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2024, ArtInChip Technology Co., Ltd
|
||||
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
@@ -221,7 +221,7 @@ const struct dfs_mount_tbl mount_table[] = {
|
||||
{"data", "/data", "uffs", 0, 0, 1},
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC1
|
||||
{"sd0", "/sdcard", "elm", 0, 0, 0},
|
||||
{"sd1", "/sdcard", "elm", 0, 0, 0},
|
||||
#endif
|
||||
#if (defined(AIC_USING_USB0_HOST) || defined(AIC_USING_USB0_OTG) || defined(AIC_USING_USB1_HOST))
|
||||
{"udisk", "/udisk", "elm", 0, 0, 0xFF},
|
||||
|
||||
Binary file not shown.
@@ -41,7 +41,12 @@
|
||||
"env": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env","env_r"]
|
||||
"part": ["env"]
|
||||
},
|
||||
"env_r": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env_r"]
|
||||
},
|
||||
"os": {
|
||||
"file": "d13x_os.itb",
|
||||
|
||||
@@ -192,7 +192,7 @@ const struct dfs_mount_tbl mount_table[] = {
|
||||
{"data", "/data", "uffs", 0, 0, 1},
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC1
|
||||
{"sd0", "/sdcard", "elm", 0, 0, 0},
|
||||
{"sd1", "/sdcard", "elm", 0, 0, 0},
|
||||
#endif
|
||||
#if (defined(AIC_USING_USB0_HOST) || defined(AIC_USING_USB0_OTG) || defined(AIC_USING_USB1_HOST))
|
||||
{"udisk", "/udisk", "elm", 0, 0, 0xFF},
|
||||
|
||||
Binary file not shown.
@@ -41,7 +41,12 @@
|
||||
"env": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env","env_r"]
|
||||
"part": ["env"]
|
||||
},
|
||||
"env_r": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env_r"]
|
||||
},
|
||||
"os": {
|
||||
"file": "d13x_os.itb",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2024, ArtInChip Technology Co., Ltd
|
||||
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
@@ -52,14 +52,23 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{4, PIN_PULL_DIS, 3, "PA.8"}, // SCK
|
||||
{4, PIN_PULL_DIS, 3, "PA.9"}, // SDA
|
||||
#endif
|
||||
#if defined(AIC_USING_QSPI0) && !defined(AIC_SYSCFG_SIP_FLASH_ENABLE)
|
||||
#ifdef AIC_USING_QSPI0
|
||||
#ifndef AIC_SYSCFG_SIP_FLASH_ENABLE
|
||||
/* qspi0 */
|
||||
{2, PIN_PULL_DIS, 3, "PB.0"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.1"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.2"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.3"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.4"},
|
||||
{2, PIN_PULL_DIS, 3, "PB.5"},
|
||||
{2, PIN_PULL_UP, 3, "PB.0"},
|
||||
{2, PIN_PULL_UP, 3, "PB.1"},
|
||||
{2, PIN_PULL_UP, 3, "PB.2"},
|
||||
{2, PIN_PULL_UP, 3, "PB.3"},
|
||||
{2, PIN_PULL_UP, 3, "PB.4"},
|
||||
{2, PIN_PULL_UP, 3, "PB.5"},
|
||||
#else
|
||||
{8, PIN_PULL_UP, 3, "PB.12"},
|
||||
{8, PIN_PULL_UP, 3, "PB.13"},
|
||||
{8, PIN_PULL_UP, 3, "PB.14"},
|
||||
{8, PIN_PULL_UP, 3, "PB.15"},
|
||||
{8, PIN_PULL_UP, 3, "PB.16"},
|
||||
{8, PIN_PULL_UP, 3, "PB.17"},
|
||||
#endif
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC0
|
||||
{2, PIN_PULL_UP, 7, "PB.6"},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2024, ArtInChip Technology Co., Ltd
|
||||
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
@@ -124,6 +124,31 @@ void rt_hw_board_init(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef AIC_USING_PM
|
||||
void rt_pm_board_level_power_off(void)
|
||||
{
|
||||
rt_base_t pin;
|
||||
|
||||
pin = rt_pin_get(AIC_BOARD_LEVEL_POWER_PIN);
|
||||
if (pin < 0)
|
||||
return;
|
||||
|
||||
rt_pin_mode(pin, PIN_MODE_OUTPUT);
|
||||
rt_pin_write(pin, 0);
|
||||
}
|
||||
|
||||
void rt_pm_board_level_power_on(void)
|
||||
{
|
||||
rt_base_t pin;
|
||||
|
||||
pin = rt_pin_get(AIC_BOARD_LEVEL_POWER_PIN);
|
||||
if (pin < 0)
|
||||
return;
|
||||
|
||||
rt_pin_mode(pin, PIN_MODE_OUTPUT);
|
||||
rt_pin_write(pin, 1);
|
||||
}
|
||||
#endif
|
||||
#elif defined(KERNEL_FREERTOS)
|
||||
#elif defined(KERNEL_BAREMETAL)
|
||||
#include <aic_tlsf.h>
|
||||
@@ -176,7 +201,7 @@ const struct dfs_mount_tbl mount_table[] = {
|
||||
#endif
|
||||
|
||||
#ifdef AIC_USING_SDMC1
|
||||
{"sd0", "/sdcard", "elm", 0, 0, 0},
|
||||
{"sd1", "/sdcard", "elm", 0, 0, 0},
|
||||
#endif
|
||||
#if (defined(AIC_USING_USB0_HOST) || defined(AIC_USING_USB0_OTG) || defined(AIC_USING_USB1_HOST))
|
||||
{"udisk", "/udisk", "elm", 0, 0, 0xFF},
|
||||
|
||||
Binary file not shown.
@@ -58,7 +58,12 @@
|
||||
"env": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env","env_r"]
|
||||
"part": ["env"]
|
||||
},
|
||||
"env_r": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env_r"]
|
||||
},
|
||||
"os": {
|
||||
"file": "d21x_os.itb",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2024, ArtInChip Technology Co., Ltd
|
||||
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
@@ -74,14 +74,23 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{4, PIN_PULL_DIS, 3, "PA.10"}, // SCK
|
||||
{4, PIN_PULL_DIS, 3, "PA.11"}, // SDA
|
||||
#endif
|
||||
#if defined(AIC_USING_QSPI0) && !defined(AIC_SYSCFG_SIP_FLASH_ENABLE)
|
||||
#ifdef AIC_USING_QSPI0
|
||||
#ifndef AIC_SYSCFG_SIP_FLASH_ENABLE
|
||||
/* qspi0 */
|
||||
{3, PIN_PULL_DIS, 3, "PB.0"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.1"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.2"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.3"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.4"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.5"},
|
||||
{3, PIN_PULL_UP, 3, "PB.0"},
|
||||
{3, PIN_PULL_UP, 3, "PB.1"},
|
||||
{3, PIN_PULL_UP, 3, "PB.2"},
|
||||
{3, PIN_PULL_UP, 3, "PB.3"},
|
||||
{3, PIN_PULL_UP, 3, "PB.4"},
|
||||
{3, PIN_PULL_UP, 3, "PB.5"},
|
||||
#else
|
||||
{8, PIN_PULL_UP, 3, "PB.12"},
|
||||
{8, PIN_PULL_UP, 3, "PB.13"},
|
||||
{8, PIN_PULL_UP, 3, "PB.14"},
|
||||
{8, PIN_PULL_UP, 3, "PB.15"},
|
||||
{8, PIN_PULL_UP, 3, "PB.16"},
|
||||
{8, PIN_PULL_UP, 3, "PB.17"},
|
||||
#endif
|
||||
#endif
|
||||
#ifdef AIC_PRGB_24BIT
|
||||
{2, PIN_PULL_DIS, 3, "PD.0"},
|
||||
@@ -212,7 +221,7 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{3, PIN_PULL_DIS, 3, "PD.27"},
|
||||
#endif
|
||||
#ifdef AIC_PANEL_ENABLE_GPIO
|
||||
{1, PIN_PULL_DIS, 3, AIC_PANEL_ENABLE_GPIO},
|
||||
{1, PIN_PULL_DIS, 3, AIC_PANEL_ENABLE_GPIO, FLAG_WAKEUP_SOURCE},
|
||||
#endif
|
||||
#if (defined(AIC_USING_USB0_DEVICE) || defined(AIC_USING_USB0_HOST))
|
||||
/* usb0 */
|
||||
@@ -352,11 +361,21 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
#endif
|
||||
#ifdef AIC_USING_CTP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_RST_PIN},
|
||||
#ifdef AIC_PM_DEMO_TOUCH_WAKEUP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN, FLAG_WAKEUP_SOURCE},
|
||||
#else
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN},
|
||||
#endif
|
||||
#endif
|
||||
#ifdef LV_USB_OSD_SETTINGS_MENU
|
||||
{1, PIN_PULL_DIS, 3, LV_USB_OSD_SETTINGS_WAKEUP_KEY},
|
||||
#endif
|
||||
#ifdef AIC_USING_PM
|
||||
{1, PIN_PULL_DIS, 3, AIC_BOARD_LEVEL_POWER_PIN, FLAG_POWER_PIN},
|
||||
#ifdef AIC_PM_DEMO
|
||||
{1, PIN_PULL_UP, 3, AIC_PM_POWER_KEY_GPIO, FLAG_WAKEUP_SOURCE},
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
||||
uint32_t aic_pinmux_config_size = ARRAY_SIZE(aic_pinmux_config);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022, ArtInChip Technology Co., Ltd
|
||||
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
@@ -124,6 +124,32 @@ void rt_hw_board_init(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef AIC_USING_PM
|
||||
void rt_pm_board_level_power_off(void)
|
||||
{
|
||||
rt_base_t pin;
|
||||
|
||||
pin = rt_pin_get(AIC_BOARD_LEVEL_POWER_PIN);
|
||||
if (pin < 0)
|
||||
return;
|
||||
|
||||
rt_pin_mode(pin, PIN_MODE_OUTPUT);
|
||||
rt_pin_write(pin, 0);
|
||||
}
|
||||
|
||||
void rt_pm_board_level_power_on(void)
|
||||
{
|
||||
rt_base_t pin;
|
||||
|
||||
pin = rt_pin_get(AIC_BOARD_LEVEL_POWER_PIN);
|
||||
if (pin < 0)
|
||||
return;
|
||||
|
||||
rt_pin_mode(pin, PIN_MODE_OUTPUT);
|
||||
rt_pin_write(pin, 1);
|
||||
}
|
||||
#endif
|
||||
|
||||
#elif defined(KERNEL_FREERTOS)
|
||||
#elif defined(KERNEL_BAREMETAL)
|
||||
#include <aic_tlsf.h>
|
||||
@@ -177,7 +203,7 @@ const struct dfs_mount_tbl mount_table[] = {
|
||||
{"data", "/data", "lfs", 0, 0, 1},
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC1
|
||||
{"sd0", "/sdcard", "elm", 0, 0, 0},
|
||||
{"sd1", "/sdcard", "elm", 0, 0, 0},
|
||||
#endif
|
||||
#if (defined(AIC_USING_USB0_HOST) || defined(AIC_USING_USB0_OTG) || defined(AIC_USING_USB1_HOST))
|
||||
{"udisk", "/udisk", "elm", 0, 0, 0xFF},
|
||||
|
||||
Binary file not shown.
@@ -44,7 +44,12 @@
|
||||
"env": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env","env_r"]
|
||||
"part": ["env"]
|
||||
},
|
||||
"env_r": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env_r"]
|
||||
},
|
||||
"os": {
|
||||
"file": "d21x_os.itb",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2024, ArtInChip Technology Co., Ltd
|
||||
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
@@ -74,14 +74,23 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{4, PIN_PULL_DIS, 3, "PA.10"}, // SCK
|
||||
{4, PIN_PULL_DIS, 3, "PA.11"}, // SDA
|
||||
#endif
|
||||
#if defined(AIC_USING_QSPI0) && !defined(AIC_SYSCFG_SIP_FLASH_ENABLE)
|
||||
#ifdef AIC_USING_QSPI0
|
||||
#ifndef AIC_SYSCFG_SIP_FLASH_ENABLE
|
||||
/* qspi0 */
|
||||
{3, PIN_PULL_DIS, 3, "PB.0"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.1"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.2"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.3"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.4"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.5"},
|
||||
{3, PIN_PULL_UP, 3, "PB.0"},
|
||||
{3, PIN_PULL_UP, 3, "PB.1"},
|
||||
{3, PIN_PULL_UP, 3, "PB.2"},
|
||||
{3, PIN_PULL_UP, 3, "PB.3"},
|
||||
{3, PIN_PULL_UP, 3, "PB.4"},
|
||||
{3, PIN_PULL_UP, 3, "PB.5"},
|
||||
#else
|
||||
{8, PIN_PULL_UP, 3, "PB.12"},
|
||||
{8, PIN_PULL_UP, 3, "PB.13"},
|
||||
{8, PIN_PULL_UP, 3, "PB.14"},
|
||||
{8, PIN_PULL_UP, 3, "PB.15"},
|
||||
{8, PIN_PULL_UP, 3, "PB.16"},
|
||||
{8, PIN_PULL_UP, 3, "PB.17"},
|
||||
#endif
|
||||
#endif
|
||||
#ifdef AIC_PRGB_24BIT
|
||||
{2, PIN_PULL_DIS, 3, "PD.0"},
|
||||
@@ -204,7 +213,7 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{3, PIN_PULL_DIS, 3, "PD.27"},
|
||||
#endif
|
||||
#ifdef AIC_PANEL_ENABLE_GPIO
|
||||
{1, PIN_PULL_DIS, 3, AIC_PANEL_ENABLE_GPIO},
|
||||
{1, PIN_PULL_DIS, 3, AIC_PANEL_ENABLE_GPIO, FLAG_WAKEUP_SOURCE},
|
||||
#endif
|
||||
#ifdef AIC_USING_CLK_OUT0
|
||||
{6, PIN_PULL_DIS, 3, "PD.21"},
|
||||
@@ -313,8 +322,18 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
#endif
|
||||
#ifdef AIC_USING_CTP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_RST_PIN},
|
||||
#ifdef AIC_PM_DEMO_TOUCH_WAKEUP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN, FLAG_WAKEUP_SOURCE},
|
||||
#else
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN},
|
||||
#endif
|
||||
#endif
|
||||
#ifdef AIC_USING_PM
|
||||
{1, PIN_PULL_DIS, 3, AIC_BOARD_LEVEL_POWER_PIN, FLAG_POWER_PIN},
|
||||
#ifdef AIC_PM_DEMO
|
||||
{1, PIN_PULL_UP, 3, AIC_PM_POWER_KEY_GPIO, FLAG_WAKEUP_SOURCE},
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
||||
uint32_t aic_pinmux_config_size = ARRAY_SIZE(aic_pinmux_config);
|
||||
|
||||
@@ -177,7 +177,7 @@ const struct dfs_mount_tbl mount_table[] = {
|
||||
{"data", "/data", "lfs", 0, 0, 1},
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC1
|
||||
{"sd0", "/sdcard", "elm", 0, 0, 0},
|
||||
{"sd1", "/sdcard", "elm", 0, 0, 0},
|
||||
#endif
|
||||
#if (defined(AIC_USING_USB0_HOST) || defined(AIC_USING_USB0_OTG) || defined(AIC_USING_USB1_HOST))
|
||||
{"udisk", "/udisk", "elm", 0, 0, 0xFF},
|
||||
|
||||
Binary file not shown.
@@ -74,14 +74,14 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{4, PIN_PULL_DIS, 3, "PA.10"}, // SCK
|
||||
{4, PIN_PULL_DIS, 3, "PA.11"}, // SDA
|
||||
#endif
|
||||
#if defined(AIC_USING_QSPI0) && !defined(AIC_SYSCFG_SIP_FLASH_ENABLE)
|
||||
#ifdef AIC_USING_QSPI0
|
||||
/* qspi0 */
|
||||
{3, PIN_PULL_DIS, 3, "PB.0"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.1"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.2"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.3"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.4"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.5"},
|
||||
{3, PIN_PULL_UP, 3, "PB.0"},
|
||||
{3, PIN_PULL_UP, 3, "PB.1"},
|
||||
{3, PIN_PULL_UP, 3, "PB.2"},
|
||||
{3, PIN_PULL_UP, 3, "PB.3"},
|
||||
{3, PIN_PULL_UP, 3, "PB.4"},
|
||||
{3, PIN_PULL_UP, 3, "PB.5"},
|
||||
#endif
|
||||
#ifdef AIC_PRGB_24BIT
|
||||
{2, PIN_PULL_DIS, 3, "PD.0"},
|
||||
@@ -216,7 +216,7 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{4, PIN_PULL_DIS, 3, "PD.27"},
|
||||
#endif
|
||||
#ifdef AIC_PANEL_ENABLE_GPIO
|
||||
{1, PIN_PULL_DIS, 3, AIC_PANEL_ENABLE_GPIO},
|
||||
{1, PIN_PULL_DIS, 3, AIC_PANEL_ENABLE_GPIO, FLAG_WAKEUP_SOURCE},
|
||||
#endif
|
||||
#if (defined(AIC_USING_USB0_DEVICE) || defined(AIC_USING_USB0_HOST))
|
||||
/* usb0 */
|
||||
@@ -361,7 +361,7 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
#endif
|
||||
#ifdef AIC_USING_CTP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_RST_PIN},
|
||||
#ifdef AIC_PM_DEMO_TOUCH_WAKEUP
|
||||
#ifdef AIC_TOUCH_PANEL_WAKE_UP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN, FLAG_WAKEUP_SOURCE},
|
||||
#else
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2024, ArtInChip Technology Co., Ltd
|
||||
* Copyright (c) 2022-2025, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
@@ -201,7 +201,7 @@ const struct dfs_mount_tbl mount_table[] = {
|
||||
{"data", "/data", "uffs", 0, 0, 1},
|
||||
#endif
|
||||
#ifdef AIC_USING_SDMC1
|
||||
{"sd0", "/sdcard", "elm", 0, 0, 0},
|
||||
{"sd1", "/sdcard", "elm", 0, 0, 0},
|
||||
#endif
|
||||
#if (defined(AIC_USING_USB0_HOST) || defined(AIC_USING_USB0_OTG) || defined(AIC_USING_USB1_HOST))
|
||||
{"udisk", "/udisk", "elm", 0, 0, 0xFF},
|
||||
|
||||
Binary file not shown.
@@ -58,7 +58,12 @@
|
||||
"env": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env","env_r"]
|
||||
"part": ["env"]
|
||||
},
|
||||
"env_r": {
|
||||
"file": "env.bin",
|
||||
"attr": ["mtd", "optional"],
|
||||
"part": ["env_r"]
|
||||
},
|
||||
"os": {
|
||||
"file": "d21x_os.itb",
|
||||
|
||||
@@ -80,14 +80,14 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{4, PIN_PULL_DIS, 3, "PA.10"}, // SCK
|
||||
{4, PIN_PULL_DIS, 3, "PA.11"}, // SDA
|
||||
#endif
|
||||
#if defined(AIC_USING_QSPI0) && !defined(AIC_SYSCFG_SIP_FLASH_ENABLE)
|
||||
#ifdef AIC_USING_QSPI0
|
||||
/* qspi0 */
|
||||
{3, PIN_PULL_DIS, 3, "PB.0"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.1"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.2"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.3"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.4"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.5"},
|
||||
{3, PIN_PULL_UP, 3, "PB.0"},
|
||||
{3, PIN_PULL_UP, 3, "PB.1"},
|
||||
{3, PIN_PULL_UP, 3, "PB.2"},
|
||||
{3, PIN_PULL_UP, 3, "PB.3"},
|
||||
{3, PIN_PULL_UP, 3, "PB.4"},
|
||||
{3, PIN_PULL_UP, 3, "PB.5"},
|
||||
#endif
|
||||
#ifdef AIC_PRGB_24BIT
|
||||
{2, PIN_PULL_DIS, 3, "PD.0"},
|
||||
@@ -222,7 +222,7 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{4, PIN_PULL_DIS, 3, "PD.27"},
|
||||
#endif
|
||||
#ifdef AIC_PANEL_ENABLE_GPIO
|
||||
{1, PIN_PULL_DIS, 3, AIC_PANEL_ENABLE_GPIO},
|
||||
{1, PIN_PULL_DIS, 3, AIC_PANEL_ENABLE_GPIO, FLAG_WAKEUP_SOURCE},
|
||||
#endif
|
||||
#if (defined(AIC_USING_USB0_DEVICE) || defined(AIC_USING_USB0_HOST))
|
||||
/* usb0 */
|
||||
@@ -393,7 +393,7 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
|
||||
#ifdef AIC_USING_CTP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_RST_PIN},
|
||||
#ifdef AIC_PM_DEMO_TOUCH_WAKEUP
|
||||
#ifdef AIC_TOUCH_PANEL_WAKE_UP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN, FLAG_WAKEUP_SOURCE},
|
||||
#else
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN},
|
||||
|
||||
Binary file not shown.
@@ -7,7 +7,7 @@ dataAB_now=A
|
||||
upgrade_available=0
|
||||
bootlimit=5
|
||||
bootcount=0
|
||||
rodata_partname=mmc0p5
|
||||
rodata_partname_r=mmc0p6
|
||||
data_partname=mmc0p7
|
||||
data_partname_r=mmc0p8
|
||||
rodata_partname=rodata
|
||||
rodata_partname_r=rodata_r
|
||||
data_partname=data
|
||||
data_partname_r=data_r
|
||||
|
||||
@@ -4,6 +4,6 @@ version = "1.0.0";
|
||||
|
||||
[file]
|
||||
ota_info.bin:file;
|
||||
d21x_os.itb:mmc0p3;
|
||||
rodata.fatfs:mmc0p5;
|
||||
data.fatfs:mmc0p7;
|
||||
d21x_os.itb:os;
|
||||
rodata.fatfs:rodata;
|
||||
data.fatfs:data;
|
||||
|
||||
@@ -74,14 +74,14 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{4, PIN_PULL_DIS, 3, "PA.10"}, // SCK
|
||||
{4, PIN_PULL_DIS, 3, "PA.11"}, // SDA
|
||||
#endif
|
||||
#if defined(AIC_USING_QSPI0) && !defined(AIC_SYSCFG_SIP_FLASH_ENABLE)
|
||||
#ifdef AIC_USING_QSPI0
|
||||
/* qspi0 */
|
||||
{3, PIN_PULL_DIS, 3, "PB.0"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.1"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.2"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.3"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.4"},
|
||||
{3, PIN_PULL_DIS, 3, "PB.5"},
|
||||
{3, PIN_PULL_UP, 3, "PB.0"},
|
||||
{3, PIN_PULL_UP, 3, "PB.1"},
|
||||
{3, PIN_PULL_UP, 3, "PB.2"},
|
||||
{3, PIN_PULL_UP, 3, "PB.3"},
|
||||
{3, PIN_PULL_UP, 3, "PB.4"},
|
||||
{3, PIN_PULL_UP, 3, "PB.5"},
|
||||
#endif
|
||||
#ifdef AIC_PRGB_24BIT
|
||||
{2, PIN_PULL_DIS, 3, "PD.0"},
|
||||
@@ -204,7 +204,7 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
{3, PIN_PULL_DIS, 3, "PD.27"},
|
||||
#endif
|
||||
#ifdef AIC_PANEL_ENABLE_GPIO
|
||||
{1, PIN_PULL_DIS, 3, AIC_PANEL_ENABLE_GPIO},
|
||||
{1, PIN_PULL_DIS, 3, AIC_PANEL_ENABLE_GPIO, FLAG_WAKEUP_SOURCE},
|
||||
#endif
|
||||
#if (defined(AIC_USING_USB0_DEVICE) || defined(AIC_USING_USB0_HOST))
|
||||
/* usb0 */
|
||||
@@ -332,7 +332,7 @@ struct aic_pinmux aic_pinmux_config[] = {
|
||||
#endif
|
||||
#ifdef AIC_USING_CTP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_RST_PIN},
|
||||
#ifdef AIC_PM_DEMO_TOUCH_WAKEUP
|
||||
#ifdef AIC_TOUCH_PANEL_WAKE_UP
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN, FLAG_WAKEUP_SOURCE},
|
||||
#else
|
||||
{1, PIN_PULL_DIS, 3, AIC_TOUCH_PANEL_INT_PIN},
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user