diff --git a/configs/starfive/visionfive2/cflags/01-arch b/configs/starfive/visionfive2/cflags/01-arch new file mode 100644 index 000000000..a0804879a --- /dev/null +++ b/configs/starfive/visionfive2/cflags/01-arch @@ -0,0 +1,14 @@ +# VisionFive2 CPU Flags +# https://wiki.gentoo.org/wiki/Embedded_Handbook/Boards/StarFive_VisionFive_2 +# /proc/cpuinfo: +# - isa: rv64imafdc_zicntr_zicsr_zifencei_zihpm_zba_zbb +# - mmu: sv39 +# - uarch: sifive,u74-mc +# zicntr and zihpm are not known to gcc at this time. +-mabi=lp64d +-march=rv64imafdc_zicsr_zifencei_zba_zbb +-mcpu=sifive-u74 +-mtune=sifive-7-series +--param l1-cache-size=32 +--param l2-cache-size=2048 + diff --git a/configs/starfive/visionfive2/kernel/audio b/configs/starfive/visionfive2/kernel/audio new file mode 100644 index 000000000..1c0fc45d7 --- /dev/null +++ b/configs/starfive/visionfive2/kernel/audio @@ -0,0 +1,3 @@ +CONFIG_SND_SOC_STARFIVE=y +CONFIG_SND_SOC_JH7110_PWMDAC=m +CONFIG_SND_SOC_JH7110_TDM=m diff --git a/configs/starfive/visionfive2/kernel/crypto b/configs/starfive/visionfive2/kernel/crypto new file mode 100644 index 000000000..02dc46f34 --- /dev/null +++ b/configs/starfive/visionfive2/kernel/crypto @@ -0,0 +1 @@ +CONFIG_CRYPTO_DEV_JH7110=y diff --git a/configs/starfive/visionfive2/kernel/random b/configs/starfive/visionfive2/kernel/random new file mode 100644 index 000000000..e3e432ebf --- /dev/null +++ b/configs/starfive/visionfive2/kernel/random @@ -0,0 +1 @@ +CONFIG_HW_RANDOM_JH7110=y diff --git a/configs/starfive/visionfive2/kernel/usb b/configs/starfive/visionfive2/kernel/usb new file mode 100644 index 000000000..13dffc8dc --- /dev/null +++ b/configs/starfive/visionfive2/kernel/usb @@ -0,0 +1 @@ +CONFIG_USB_CDNS3_STARFIVE=m