-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
starfive/visionfive: add cflags and kernel opts
This patch enables new kernel drivers available in 6.7. It also fine-tunes the compiler to use proper processor flags. Signed-off-by: Max Berger <[email protected]> Reviewed-by: Christian Stewart <[email protected]>
- Loading branch information
Showing
5 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CONFIG_SND_SOC_STARFIVE=y | ||
CONFIG_SND_SOC_JH7110_PWMDAC=m | ||
CONFIG_SND_SOC_JH7110_TDM=m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_CRYPTO_DEV_JH7110=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_HW_RANDOM_JH7110=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_USB_CDNS3_STARFIVE=m |