Skip to content

Commit

Permalink
HACK/ath79: switch CPU type to MIPS 74Kc
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Salvaterra <[email protected]>
  • Loading branch information
rsalvaterra committed Mar 3, 2024
1 parent aac0bac commit a989b3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion target/linux/ath79/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include $(TOPDIR)/rules.mk
ARCH:=mips
BOARD:=ath79
BOARDNAME:=Atheros ATH79
CPU_TYPE:=24kc
CPU_TYPE:=74kc
SUBTARGETS:=generic mikrotik nand tiny

FEATURES:=ramdisk squashfs usb
Expand Down
2 changes: 1 addition & 1 deletion target/linux/generic/pending-6.1/308-mips32r2_tune.patch
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
cflags-$(CONFIG_CPU_TX49XX) += -march=r4600 -Wa,--trap
cflags-$(CONFIG_CPU_MIPS32_R1) += -march=mips32 -Wa,--trap
-cflags-$(CONFIG_CPU_MIPS32_R2) += -march=mips32r2 -Wa,--trap
+cflags-$(CONFIG_CPU_MIPS32_R2) += -march=mips32r2 -mtune=24kc -Wa,--trap
+cflags-$(CONFIG_CPU_MIPS32_R2) += -march=mips32r2 -mtune=74kc -Wa,--trap
cflags-$(CONFIG_CPU_MIPS32_R5) += -march=mips32r5 -Wa,--trap -modd-spreg
cflags-$(CONFIG_CPU_MIPS32_R6) += -march=mips32r6 -Wa,--trap -modd-spreg
cflags-$(CONFIG_CPU_MIPS64_R1) += -march=mips64 -Wa,--trap

0 comments on commit a989b3d

Please sign in to comment.