diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-03-10 01:01:55 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-03-10 01:01:55 +0000 |
commit | 95431b7843cfee353703e664698fc269f867d45b (patch) | |
tree | 7b91e57172445ae9d7c5e46e2f10ea4c8afec2e4 /target/linux/cns3xxx/patches-3.3/097-l2x0_cmdline_disable.patch | |
parent | 3d919b7c086977cdf470042530e5d1bcf1e514b9 (diff) | |
download | mtk-20170518-95431b7843cfee353703e664698fc269f867d45b.zip mtk-20170518-95431b7843cfee353703e664698fc269f867d45b.tar.gz mtk-20170518-95431b7843cfee353703e664698fc269f867d45b.tar.bz2 |
cns3xxx: remove linux 3.3 support
SVN-Revision: 35916
Diffstat (limited to 'target/linux/cns3xxx/patches-3.3/097-l2x0_cmdline_disable.patch')
-rw-r--r-- | target/linux/cns3xxx/patches-3.3/097-l2x0_cmdline_disable.patch | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/target/linux/cns3xxx/patches-3.3/097-l2x0_cmdline_disable.patch b/target/linux/cns3xxx/patches-3.3/097-l2x0_cmdline_disable.patch deleted file mode 100644 index 87b1090..0000000 --- a/target/linux/cns3xxx/patches-3.3/097-l2x0_cmdline_disable.patch +++ /dev/null @@ -1,47 +0,0 @@ ---- a/arch/arm/mach-cns3xxx/core.c -+++ b/arch/arm/mach-cns3xxx/core.c -@@ -284,11 +284,24 @@ struct sys_timer cns3xxx_timer = { - - #ifdef CONFIG_CACHE_L2X0 - -+static int cns3xxx_l2x0_enable = 1; -+ -+static int __init cns3xxx_l2x0_disable(char *s) -+{ -+ cns3xxx_l2x0_enable = 0; -+ return 1; -+} -+__setup("nol2x0", cns3xxx_l2x0_disable); -+ - void __init cns3xxx_l2x0_init(void) - { -- void __iomem *base = ioremap(CNS3XXX_L2C_BASE, SZ_4K); -+ void __iomem *base; - u32 val; - -+ if (!cns3xxx_l2x0_enable) -+ return; -+ -+ base = ioremap(CNS3XXX_L2C_BASE, SZ_4K); - if (WARN_ON(!base)) - return; - -@@ -321,6 +334,7 @@ void __init cns3xxx_l2x0_init(void) - /* 32 KiB, 8-way, parity disable */ - l2x0_init(base, 0x00540000, 0xfe000fff); - } -+arch_initcall(cns3xxx_l2x0_init); - - #endif /* CONFIG_CACHE_L2X0 */ - ---- a/arch/arm/mach-cns3xxx/cns3420vb.c -+++ b/arch/arm/mach-cns3xxx/cns3420vb.c -@@ -193,8 +193,6 @@ static struct platform_device *cns3420_p - - static void __init cns3420_init(void) - { -- cns3xxx_l2x0_init(); -- - platform_add_devices(cns3420_pdevs, ARRAY_SIZE(cns3420_pdevs)); - - cns3xxx_ahci_init(); |