firmware/br-ext-chip-allwinner/board/v83x/kernel/patches/00000-drivers_devfreq_dramf...

22 lines
932 B
Diff

diff -drupN a/drivers/devfreq/dramfreq/Makefile b/drivers/devfreq/dramfreq/Makefile
--- a/drivers/devfreq/dramfreq/Makefile 1970-01-01 03:00:00.000000000 +0300
+++ b/drivers/devfreq/dramfreq/Makefile 2022-06-12 05:28:14.000000000 +0300
@@ -0,0 +1,17 @@
+ifneq ($(CONFIG_ARCH_SUN9IW1P1)$(CONFIG_ARCH_SUN8IW5P1)$(CONFIG_ARCH_SUN8IW6P1)$(CONFIG_ARCH_SUN8IW7P1)$(CONFIG_ARCH_SUN8IW8P1)$(CONFIG_ARCH_SUN8IW9P1),)
+CFLAGS_REMOVE_sunxi-ddrfreq.o := -pg
+obj-y += sunxi-ddrfreq.o
+ifdef CONFIG_ARCH_SUN9IW1P1
+obj-y += mdfs_asm.o
+endif
+ifneq ($(CONFIG_ARCH_SUN9IW1P1)$(CONFIG_ARCH_SUN8IW7P1)$(CONFIG_DEVFREQ_DRAM_FREQ_LOW_POWER_SW),)
+CFLAGS_REMOVE_sunxi-mdfs.o := -funwind-tables -pg -g
+CFLAGS_sunxi-mdfs.o := -O0
+obj-y += sunxi-mdfs.o
+endif
+ifneq ($(CONFIG_ARCH_SUN8IW6P1)$(CONFIG_DEVFREQ_DRAM_FREQ_CFS_SW),)
+CFLAGS_REMOVE_sunxi-mdfs.o := -funwind-tables -pg -g
+CFLAGS_sunxi-mdfs.o := -O0
+obj-y += sunxi-mdfs.o
+endif
+endif