Linux_SDK_V1.5.4

Signed-off-by: thead_admin <occ_thead@service.alibaba.com>
This commit is contained in:
thead_admin
2024-04-26 03:07:14 +00:00
committed by Han Gao
parent e0247b8a62
commit 2674ac70e4
51 changed files with 5272 additions and 1121 deletions

View File

@@ -30,10 +30,15 @@
#define CONFIG_SYS_BOOTM_LEN SZ_64M
#define CONFIG_SYS_CACHELINE_SIZE 64
#define CONFIG_CMD_READ 1
#define SRAM_BASE_ADDR 0xffe0000000
#define PLIC_BASE_ADDR 0xffd8000000
#define PMP_BASE_ADDR 0xffdc020000
#define MINIMAL_DDR_DENSITY_MB (1*1024)
#define MAXIMAL_DDR_DENSITY_MB (16*1024)
#define UNIT_MB (1024*1024)
/* Network Configuration */
#define CONFIG_DW_ALTDESCRIPTOR
@@ -127,6 +132,8 @@
#define ENV_STR_SERIAL "serial#=\0"
#define ENV_KERNEL_KDUMP "kdump_buf=0M\0"
#endif
/*public bootargs in mostly boards, make env 'set_booargs' shorter and clean */
#define ENV_PUBLIC_BOOTARGS "pub_bootargs=rootfstype=ext4 rdinit=/sbin/init rootwait rw earlycon clk_ignore_unused\0"
#define CONFIG_MISC_INIT_R
@@ -163,12 +170,12 @@
"partitions=name=table,size=2031KB;name=boot,size=500MiB,type=boot;name=swap,size=4096MiB,type=swap,uuid=${uuid_swap};name=root,size=-,type=linux,uuid=${uuid_rootfsA}\0" \
"gpt_partition=gpt write mmc ${emmc_dev} $partitions\0" \
"sdcard_gpt_partition=gpt write mmc ${sdcard_dev} $partitions\0" \
"load_aon=load mmc ${mmcdev}:${mmcbootpart} $fwaddr light_aon_fpga.bin;cp.b $fwaddr $aon_ram_addr $filesize\0" \
"load_aon=load mmc ${mmcdev}:${mmcbootpart} $fwaddr light_aon_fpga.bin;cp.b $fwaddr $aon_ram_addr $filesize;bootaon\0" \
"load_c906_audio=load mmc ${mmcdev}:${mmcbootpart} $fwaddr light_c906_audio.bin;cp.b $fwaddr $audio_ram_addr $filesize\0" \
"load_str=load mmc ${mmcdev}:${mmcbootpart} $fwaddr str.bin;cp.b $fwaddr $str_ram_addr $filesize\0" \
"load_opensbi=load mmc ${mmcdev}:${mmcbootpart} $opensbi_addr fw_dynamic.bin\0" \
"bootcmd_load=run mmc_select; run load_aon; run load_c906_audio; run load_str; run load_opensbi\0" \
"bootcmd=run bootcmd_load; bootslave; sysboot mmc ${mmcdev}:${mmcbootpart} any $boot_conf_addr_r $boot_conf_file;\0" \
"bootcmd=run bootcmd_load; chk_hibernate; fixup_memory_region; bootslave; sysboot mmc ${mmcdev}:${mmcbootpart} any $boot_conf_addr_r $boot_conf_file;\0" \
"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
"\0"

View File

@@ -0,0 +1,55 @@
#ifndef __LIGHT_PMIC_H_
#define __LIGHT_PMIC_H_
/*for da9063*/
#define DA9063_ID_BCORE1 0
#define DA9063_ID_BCORE2 1
#define DA9063_ID_BUCKPRO 2
#define DA9063_ID_BUCKMEM 3
#define DA9063_ID_BUCKIO 4
#define DA9063_ID_BUCKPERI 5
#define DA9063_ID_LDO1 6
#define DA9063_ID_LDO2 7
#define DA9063_ID_LDO3 8
#define DA9063_ID_LDO4 9
#define DA9063_ID_LDO5 10
#define DA9063_ID_LDO9 11
#define DA9063_ID_LDO10 12
#define DA9063_ID_LDO11 13
#define DA9063_ID_LDO6 14
#define DA9063_ID_LDO7 15
#define DA9063_ID_LDO8 16
#define DA9063_ID_GPIO4 17
#define DA9063_ID_GPIO7 18
/*for da9121*/
#define DA9121_ID_BUCK1 0
/* for slg51000*/
#define SLG51000_ID_LDO1 0
#define SLG51000_ID_LDO2 1
#define SLG51000_ID_LDO3 2
#define SLG51000_ID_LDO4 3
#define SLG51000_ID_LDO5 4
#define SLG51000_ID_LDO6 5
#define SLG51000_ID_LDO7 6
/* for ricoh567*/
#define RICOH567_ID_DC1 0
#define RICOH567_ID_DC2 1
#define RICOH567_ID_DC3 2
#define RICOH567_ID_DC4 3
#define RICOH567_ID_LDO1 4
#define RICOH567_ID_LDO2 5
#define RICOH567_ID_LDO3 6
#define RICOH567_ID_LDO4 7
#define RICOH567_ID_LDO5 8
#define RICOH567_ID_LDORTC1 9
#define RICOH567_ID_LDORTC2 10
#define RICOH567_ID_GPIO3 11
#endif