diff options
author | John Crispin <john@openwrt.org> | 2013-07-15 10:06:55 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-07-15 10:06:55 +0000 |
commit | a0de18807ba35e1888f6ea8ada84695e46558262 (patch) | |
tree | cfebd84e00717863717511b879661c2dbb417434 /target/linux/ramips/patches-3.10/0004-MIPS-ralink-add-rt_sysc_m32-helper.patch | |
parent | f75bba6f87dc756a60003c83495230d5f6b2d5e5 (diff) | |
download | mtk-20170518-a0de18807ba35e1888f6ea8ada84695e46558262.zip mtk-20170518-a0de18807ba35e1888f6ea8ada84695e46558262.tar.gz mtk-20170518-a0de18807ba35e1888f6ea8ada84695e46558262.tar.bz2 |
ramips: add ralink v3.10 support
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37331
Diffstat (limited to 'target/linux/ramips/patches-3.10/0004-MIPS-ralink-add-rt_sysc_m32-helper.patch')
-rw-r--r-- | target/linux/ramips/patches-3.10/0004-MIPS-ralink-add-rt_sysc_m32-helper.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-3.10/0004-MIPS-ralink-add-rt_sysc_m32-helper.patch b/target/linux/ramips/patches-3.10/0004-MIPS-ralink-add-rt_sysc_m32-helper.patch new file mode 100644 index 0000000..7466c4d --- /dev/null +++ b/target/linux/ramips/patches-3.10/0004-MIPS-ralink-add-rt_sysc_m32-helper.patch @@ -0,0 +1,31 @@ +From 3af962f91035ae4500e63c758c49f1c067bdae09 Mon Sep 17 00:00:00 2001 +From: John Crispin <blogic@openwrt.org> +Date: Sun, 19 May 2013 00:42:23 +0200 +Subject: [PATCH 04/33] MIPS: ralink: add rt_sysc_m32 helper + +Signed-off-by: John Crispin <blogic@openwrt.org> +--- + arch/mips/include/asm/mach-ralink/ralink_regs.h | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/arch/mips/include/asm/mach-ralink/ralink_regs.h b/arch/mips/include/asm/mach-ralink/ralink_regs.h +index 5a508f9..bd93014 100644 +--- a/arch/mips/include/asm/mach-ralink/ralink_regs.h ++++ b/arch/mips/include/asm/mach-ralink/ralink_regs.h +@@ -26,6 +26,13 @@ static inline u32 rt_sysc_r32(unsigned reg) + return __raw_readl(rt_sysc_membase + reg); + } + ++static inline void rt_sysc_m32(u32 clr, u32 set, unsigned reg) ++{ ++ u32 val = rt_sysc_r32(reg) & ~clr; ++ ++ __raw_writel(val | set, rt_sysc_membase + reg); ++} ++ + static inline void rt_memc_w32(u32 val, unsigned reg) + { + __raw_writel(val, rt_memc_membase + reg); +-- +1.7.10.4 + |