Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit 1582485964f53ad275ec48cb9f2f519c65fbe117
- Author: Arnd Bergmann <arnd@arndb.de>
- Date: Mon Oct 3 22:15:51 2022 +0200
- experimental: make armv6 build together with armv5
- Signed-off-by: Arnd Bergmann <arnd@arndb.de>
- diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
- index b9bac8f7bc5d..2552ac97c0fd 100644
- --- a/arch/arm/Kconfig
- +++ b/arch/arm/Kconfig
- @@ -340,45 +340,37 @@ comment "CPU Core family selection"
- config ARCH_MULTI_V4
- bool "ARMv4 based platforms (FA526, StrongARM)"
- - depends on !ARCH_MULTI_V6_V7
- - select ARCH_MULTI_V4_V5
- + depends on !ARCH_MULTI_V7
- select CPU_FA526 if !(CPU_SA110 || CPU_SA1100)
- config ARCH_MULTI_V4T
- bool "ARMv4T based platforms (ARM720T, ARM920T, ...)"
- - depends on !ARCH_MULTI_V6_V7
- - select ARCH_MULTI_V4_V5
- + depends on !ARCH_MULTI_V7
- select CPU_ARM920T if !(CPU_ARM7TDMI || CPU_ARM720T || \
- CPU_ARM740T || CPU_ARM9TDMI || CPU_ARM922T || \
- CPU_ARM925T || CPU_ARM940T)
- config ARCH_MULTI_V5
- bool "ARMv5 based platforms (ARM926T, XSCALE, PJ1, ...)"
- - depends on !ARCH_MULTI_V6_V7
- - select ARCH_MULTI_V4_V5
- + depends on !ARCH_MULTI_V7
- select CPU_ARM926T if !(CPU_ARM946E || CPU_ARM1020 || \
- CPU_ARM1020E || CPU_ARM1022 || CPU_ARM1026 || \
- CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_FEROCEON)
- -config ARCH_MULTI_V4_V5
- - bool
- -
- config ARCH_MULTI_V6
- bool "ARMv6 based platforms (ARM11)"
- - select ARCH_MULTI_V6_V7
- + depends on !ARCH_MULTI_V7
- + select MIGHT_HAVE_CACHE_L2X0
- select CPU_V6K
- config ARCH_MULTI_V7
- bool "ARMv7 based platforms (Cortex-A, PJ4, Scorpion, Krait)"
- + depends on BROKEN
- default y
- - select ARCH_MULTI_V6_V7
- + select MIGHT_HAVE_CACHE_L2X0
- select CPU_V7
- select HAVE_SMP
- -config ARCH_MULTI_V6_V7
- - bool
- - select MIGHT_HAVE_CACHE_L2X0
- -
- config ARCH_MULTI_CPU_AUTO
- def_bool !(ARCH_MULTI_V4 || ARCH_MULTI_V4T || ARCH_MULTI_V6_V7)
- select ARCH_MULTI_V5
- @@ -948,7 +940,7 @@ config HAVE_SMP
- config SMP
- bool "Symmetric Multi-Processing"
- - depends on CPU_V6K || CPU_V7
- + depends on CPU_V7
- depends on HAVE_SMP
- depends on MMU || ARM_MPU
- select IRQ_WORK
- diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S
- index c39303e5c234..d4d5c17ab1cb 100644
- --- a/arch/arm/kernel/entry-armv.S
- +++ b/arch/arm/kernel/entry-armv.S
- @@ -910,7 +910,7 @@ __kuser_helper_start:
- __kuser_cmpxchg64: @ 0xffff0f60
- -#if defined(CONFIG_CPU_32v6K)
- +#ifdef CONFIG_CPU_v7
- stmfd sp!, {r4, r5, r6, r7}
- ldrd r4, r5, [r0] @ load old val
- @@ -927,7 +927,7 @@ __kuser_cmpxchg64: @ 0xffff0f60
- ldmfd sp!, {r4, r5, r6, r7}
- usr_ret lr
- -#elif !defined(CONFIG_SMP)
- +#else
- #ifdef CONFIG_MMU
- @@ -972,8 +972,6 @@ kuser_cmpxchg64_fixup:
- usr_ret lr
- #endif
- -#else
- -#error "incoherent kernel configuration"
- #endif
- kuser_pad __kuser_cmpxchg64, 64
- diff --git a/arch/arm/kernel/entry-header.S b/arch/arm/kernel/entry-header.S
- index 99411fa91350..a5f072e9fcaa 100644
- --- a/arch/arm/kernel/entry-header.S
- +++ b/arch/arm/kernel/entry-header.S
- @@ -222,7 +222,7 @@
- #ifndef CONFIG_THUMB2_KERNEL
- @ ARM mode SVC restore
- msr spsr_cxsf, \rpsr
- -#if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_32v6K)
- +#if defined(CONFIG_CPU_V7)
- @ We must avoid clrex due to Cortex-A15 erratum #830321
- sub r0, sp, #4 @ uninhabited address
- strex r1, r2, [r0] @ clear the exclusive monitor
- @@ -291,18 +291,12 @@
- .macro restore_user_regs, fast = 0, offset = 0
- -#if defined(CONFIG_CPU_32v6K) && \
- - (!defined(CONFIG_CPU_V6) || defined(CONFIG_SMP))
- -#ifdef CONFIG_CPU_V6
- -ALT_SMP(nop)
- -ALT_UP_B(.L1_\@)
- -#endif
- +#if defined(CONFIG_TLS_REGISTER)
- @ The TLS register update is deferred until return to user space so we
- @ can use it for other things while running in the kernel
- mrc p15, 0, r1, c13, c0, 3 @ get current_thread_info pointer
- ldr r1, [r1, #TI_TP_VALUE]
- mcr p15, 0, r1, c13, c0, 3 @ set TLS register
- -.L1_\@:
- #endif
- uaccess_enable r1, isb=0
- @@ -314,7 +308,7 @@ ALT_UP_B(.L1_\@)
- tst r1, #PSR_I_BIT | 0x0f
- bne 1f
- msr spsr_cxsf, r1 @ save in spsr_svc
- -#if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_32v6K)
- +#if defined(CONFIG_CPU_V7)
- @ We must avoid clrex due to Cortex-A15 erratum #830321
- strex r1, r2, [r2] @ clear the exclusive monitor
- #endif
- diff --git a/arch/arm/mach-bcm/Kconfig b/arch/arm/mach-bcm/Kconfig
- index 8789d93a7c04..2660767212f2 100644
- --- a/arch/arm/mach-bcm/Kconfig
- +++ b/arch/arm/mach-bcm/Kconfig
- @@ -1,7 +1,7 @@
- # SPDX-License-Identifier: GPL-2.0
- menuconfig ARCH_BCM
- bool "Broadcom SoC Support"
- - depends on ARCH_MULTI_V6_V7
- + depends on ARCH_MULTI_V6 || ARCH_MULTI_V7
- help
- This enables support for Broadcom ARM based SoC chips
- diff --git a/arch/arm/mach-davinci/common.h b/arch/arm/mach-davinci/common.h
- index b4fd0e9acf6c..b2a96cdf88da 100644
- --- a/arch/arm/mach-davinci/common.h
- +++ b/arch/arm/mach-davinci/common.h
- @@ -67,7 +67,7 @@ int davinci_pm_init(void);
- static inline int davinci_pm_init(void) { return 0; }
- #endif
- -void __init pdata_quirks_init(void);
- +void __init davinci_pdata_quirks_init(void);
- #define SRAM_SIZE SZ_128K
- diff --git a/arch/arm/mach-davinci/da8xx-dt.c b/arch/arm/mach-davinci/da8xx-dt.c
- index 45763a9b37ee..16c1b3e6c20a 100644
- --- a/arch/arm/mach-davinci/da8xx-dt.c
- +++ b/arch/arm/mach-davinci/da8xx-dt.c
- @@ -15,7 +15,7 @@
- static void __init da850_init_machine(void)
- {
- davinci_pm_init();
- - pdata_quirks_init();
- + davinci_pdata_quirks_init();
- }
- static const char *const da850_boards_compat[] __initconst = {
- diff --git a/arch/arm/mach-davinci/pdata-quirks.c b/arch/arm/mach-davinci/pdata-quirks.c
- index b8b5f1a5e092..a22ba00a0fba 100644
- --- a/arch/arm/mach-davinci/pdata-quirks.c
- +++ b/arch/arm/mach-davinci/pdata-quirks.c
- @@ -206,7 +206,7 @@ static struct pdata_init pdata_quirks[] __initdata = {
- { /* sentinel */ },
- };
- -void __init pdata_quirks_init(void)
- +void __init davinci_pdata_quirks_init(void)
- {
- pdata_quirks_check(pdata_quirks);
- }
- diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
- index ab767f059929..c15b31afcfdf 100644
- --- a/arch/arm/mach-imx/Kconfig
- +++ b/arch/arm/mach-imx/Kconfig
- @@ -2,7 +2,7 @@
- menuconfig ARCH_MXC
- bool "Freescale i.MX family"
- depends on ((ARCH_MULTI_V4T || ARCH_MULTI_V5) && CPU_LITTLE_ENDIAN) || \
- - ARCH_MULTI_V6_V7 || ARM_SINGLE_ARMV7M
- + ARCH_MULTI_V6 || ARCH_MULTI_V7 || ARM_SINGLE_ARMV7M
- select CLKSRC_IMX_GPT
- select GENERIC_IRQ_CHIP
- select GPIOLIB
- diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c
- index 83381e23fab9..bd0232e59e64 100644
- --- a/arch/arm/mach-omap1/clock.c
- +++ b/arch/arm/mach-omap1/clock.c
- @@ -236,7 +236,7 @@ int omap1_select_table_rate(struct omap1_clk *clk, unsigned long rate, unsigned
- ref_rate = ck_ref_p->rate;
- for (ptr = omap1_rate_table; ptr->rate; ptr++) {
- - if (!(ptr->flags & cpu_mask))
- + if (!(ptr->flags & omap1_cpu_mask))
- continue;
- if (ptr->xtal != ref_rate)
- @@ -333,7 +333,7 @@ long omap1_round_to_table_rate(struct omap1_clk *clk, unsigned long rate, unsign
- highest_rate = -EINVAL;
- for (ptr = omap1_rate_table; ptr->rate; ptr++) {
- - if (!(ptr->flags & cpu_mask))
- + if (!(ptr->flags & omap1_cpu_mask))
- continue;
- if (ptr->xtal != ref_rate)
- diff --git a/arch/arm/mach-omap1/clock.h b/arch/arm/mach-omap1/clock.h
- index 16cfb2e86ee4..0147537ff2c5 100644
- --- a/arch/arm/mach-omap1/clock.h
- +++ b/arch/arm/mach-omap1/clock.h
- @@ -185,7 +185,7 @@ extern const struct clkops clkops_uart_16xx;
- extern const struct clkops clkops_generic;
- /* used for passing SoC type to omap1_{select,round_to}_table_rate() */
- -extern u32 cpu_mask;
- +extern u32 omap1_cpu_mask;
- extern const struct clk_ops omap1_clk_null_ops;
- extern const struct clk_ops omap1_clk_gate_ops;
- diff --git a/arch/arm/mach-omap1/clock_data.c b/arch/arm/mach-omap1/clock_data.c
- index c58d200e4816..9cc2cc9625f3 100644
- --- a/arch/arm/mach-omap1/clock_data.c
- +++ b/arch/arm/mach-omap1/clock_data.c
- @@ -689,7 +689,7 @@ static void __init omap1_show_rates(void)
- arm_ck.rate / 1000000, (arm_ck.rate / 100000) % 10);
- }
- -u32 cpu_mask;
- +u32 omap1_cpu_mask;
- int __init omap1_clk_init(void)
- {
- @@ -713,15 +713,15 @@ int __init omap1_clk_init(void)
- /* By default all idlect1 clocks are allowed to idle */
- arm_idlect1_mask = ~0;
- - cpu_mask = 0;
- + omap1_cpu_mask = 0;
- if (cpu_is_omap1710())
- - cpu_mask |= CK_1710;
- + omap1_cpu_mask |= CK_1710;
- if (cpu_is_omap16xx())
- - cpu_mask |= CK_16XX;
- + omap1_cpu_mask |= CK_16XX;
- if (cpu_is_omap1510())
- - cpu_mask |= CK_1510;
- + omap1_cpu_mask |= CK_1510;
- if (cpu_is_omap310())
- - cpu_mask |= CK_310;
- + omap1_cpu_mask |= CK_310;
- /* Pointers to these clocks are needed by code in clock.c */
- api_ck_p = &api_ck.clk;
- @@ -788,7 +788,7 @@ int __init omap1_clk_init(void)
- omap_writew(0x0000, ARM_IDLECT2); /* Turn LCD clock off also */
- for (c = omap_clks; c < omap_clks + ARRAY_SIZE(omap_clks); c++) {
- - if (!(c->cpu & cpu_mask))
- + if (!(c->cpu & omap1_cpu_mask))
- continue;
- if (c->lk.clk_hw->init) { /* NULL if provider already registered */
- diff --git a/arch/arm/mach-omap1/id.c b/arch/arm/mach-omap1/id.c
- index c3bb1b71fdf3..796e764d181b 100644
- --- a/arch/arm/mach-omap1/id.c
- +++ b/arch/arm/mach-omap1/id.c
- @@ -59,11 +59,11 @@ static struct omap_id omap_ids[] __initdata = {
- { .jtag_id = 0xb5f7, .die_rev = 0x2, .omap_id = 0x03330100, .type = 0x17100000},
- };
- -unsigned int omap_rev(void)
- +unsigned int omap1_rev(void)
- {
- return omap_revision;
- }
- -EXPORT_SYMBOL(omap_rev);
- +EXPORT_SYMBOL(omap1_rev);
- /*
- * Get OMAP type from PROD_ID.
- diff --git a/arch/arm/mach-omap1/pm.c b/arch/arm/mach-omap1/pm.c
- index 9761d8404949..dbc33be2fd63 100644
- --- a/arch/arm/mach-omap1/pm.c
- +++ b/arch/arm/mach-omap1/pm.c
- @@ -202,7 +202,7 @@ void omap1_pm_suspend(void)
- unsigned long arg0 = 0, arg1 = 0;
- printk(KERN_INFO "PM: OMAP%x is trying to enter deep sleep...\n",
- - omap_rev());
- + omap1_rev());
- omap_serial_wake_trigger(1);
- @@ -381,7 +381,7 @@ void omap1_pm_suspend(void)
- omap_serial_wake_trigger(0);
- printk(KERN_INFO "PM: OMAP%x is re-starting from deep sleep...\n",
- - omap_rev());
- + omap1_rev());
- }
- #ifdef CONFIG_DEBUG_FS
- @@ -588,10 +588,10 @@ static int __init omap_pm_init(void)
- * memory the MPU can see when it wakes up.
- */
- if (cpu_is_omap15xx()) {
- - omap_sram_suspend = omap_sram_push(omap1510_cpu_suspend,
- + omap_sram_suspend = omap1_sram_push(omap1510_cpu_suspend,
- omap1510_cpu_suspend_sz);
- } else if (cpu_is_omap16xx()) {
- - omap_sram_suspend = omap_sram_push(omap1610_cpu_suspend,
- + omap_sram_suspend = omap1_sram_push(omap1610_cpu_suspend,
- omap1610_cpu_suspend_sz);
- }
- diff --git a/arch/arm/mach-omap1/sram-init.c b/arch/arm/mach-omap1/sram-init.c
- index 79b5a24420f6..7a5b244aacda 100644
- --- a/arch/arm/mach-omap1/sram-init.c
- +++ b/arch/arm/mach-omap1/sram-init.c
- @@ -56,7 +56,7 @@ static void *omap_sram_push_address(unsigned long size)
- return (void __force *)omap_sram_ceil;
- }
- -void *omap_sram_push(void *funcp, unsigned long size)
- +void *omap1_sram_push(void *funcp, unsigned long size)
- {
- void *sram;
- unsigned long base;
- @@ -140,7 +140,7 @@ int __init omap1_sram_init(void)
- {
- omap_detect_and_map_sram();
- _omap_sram_reprogram_clock =
- - omap_sram_push(omap1_sram_reprogram_clock,
- + omap1_sram_push(omap1_sram_reprogram_clock,
- omap1_sram_reprogram_clock_sz);
- return 0;
- diff --git a/arch/arm/mach-omap1/sram.h b/arch/arm/mach-omap1/sram.h
- index f45e6dd6d7e5..539c756b7a0f 100644
- --- a/arch/arm/mach-omap1/sram.h
- +++ b/arch/arm/mach-omap1/sram.h
- @@ -3,7 +3,7 @@
- extern void omap_sram_reprogram_clock(u32 dpllctl, u32 ckctl);
- int omap1_sram_init(void);
- -void *omap_sram_push(void *funcp, unsigned long size);
- +void *omap1_sram_push(void *funcp, unsigned long size);
- /* Do not use these */
- extern void omap1_sram_reprogram_clock(u32 ckctl, u32 dpllctl);
- diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c
- index 1610c567a6a3..853409b341a3 100644
- --- a/arch/arm/mach-omap2/board-generic.c
- +++ b/arch/arm/mach-omap2/board-generic.c
- @@ -28,7 +28,7 @@ static const struct of_device_id omap_dt_match_table[] __initconst = {
- static void __init __maybe_unused omap_generic_init(void)
- {
- - pdata_quirks_init(omap_dt_match_table);
- + omap_pdata_quirks_init(omap_dt_match_table);
- omap_soc_device_init();
- }
- diff --git a/arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c b/arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c
- index edf046b470ba..ae9f920f4623 100644
- --- a/arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c
- +++ b/arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c
- @@ -77,7 +77,7 @@ long omap2_round_to_table_rate(struct clk_hw *hw, unsigned long rate,
- highest_rate = -EINVAL;
- for (ptr = rate_table; ptr->mpu_speed; ptr++) {
- - if (!(ptr->flags & cpu_mask))
- + if (!(ptr->flags & omap2_cpu_mask))
- continue;
- if (ptr->xtal_speed != sys_ck_rate)
- continue;
- @@ -101,7 +101,7 @@ int omap2_select_table_rate(struct clk_hw *hw, unsigned long rate,
- unsigned long flags;
- for (prcm = rate_table; prcm->mpu_speed; prcm++) {
- - if (!(prcm->flags & cpu_mask))
- + if (!(prcm->flags & omap2_cpu_mask))
- continue;
- if (prcm->xtal_speed != sys_ck_rate)
- @@ -174,7 +174,7 @@ void omap2xxx_clkt_vps_check_bootloader_rates(void)
- rate = omap2xxx_clk_get_core_rate();
- for (prcm = rate_table; prcm->mpu_speed; prcm++) {
- - if (!(prcm->flags & cpu_mask))
- + if (!(prcm->flags & omap2_cpu_mask))
- continue;
- if (prcm->xtal_speed != sys_ck_rate)
- continue;
- diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c
- index 3c1d12dc8ff3..66d077fae77c 100644
- --- a/arch/arm/mach-omap2/clock.c
- +++ b/arch/arm/mach-omap2/clock.c
- @@ -36,7 +36,7 @@
- #include "cm-regbits-34xx.h"
- #include "common.h"
- -u16 cpu_mask;
- +u16 omap2_cpu_mask;
- /* DPLL valid Fint frequency band limits - from 34xx TRM Section 4.7.6.2 */
- #define OMAP3430_DPLL_FINT_BAND1_MIN 750000
- diff --git a/arch/arm/mach-omap2/clock.h b/arch/arm/mach-omap2/clock.h
- index bbe4b32891bb..d028ee22f001 100644
- --- a/arch/arm/mach-omap2/clock.h
- +++ b/arch/arm/mach-omap2/clock.h
- @@ -63,7 +63,7 @@
- extern struct ti_clk_ll_ops omap_clk_ll_ops;
- -extern u16 cpu_mask;
- +extern u16 omap2_cpu_mask;
- extern const struct clkops clkops_omap2_dflt_wait;
- extern const struct clkops clkops_omap2_dflt;
- diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h
- index bd5981945239..6cb87d2fb446 100644
- --- a/arch/arm/mach-omap2/common.h
- +++ b/arch/arm/mach-omap2/common.h
- @@ -344,7 +344,7 @@ static inline void omap5_secondary_hyp_startup(void)
- struct omap_system_dma_plat_info;
- -void pdata_quirks_init(const struct of_device_id *);
- +void omap_pdata_quirks_init(const struct of_device_id *);
- void omap_auxdata_legacy_init(struct device *dev);
- void omap_pcs_legacy_init(int irq, void (*rearm)(void));
- extern struct omap_system_dma_plat_info dma_plat_info;
- diff --git a/arch/arm/mach-omap2/omap-headsmp.S b/arch/arm/mach-omap2/omap-headsmp.S
- index 1762f919941f..ada360847c21 100644
- --- a/arch/arm/mach-omap2/omap-headsmp.S
- +++ b/arch/arm/mach-omap2/omap-headsmp.S
- @@ -16,6 +16,8 @@
- #include <linux/init.h>
- #include <asm/assembler.h>
- +.arch armv6k
- +
- #include "omap44xx.h"
- /* Physical address needed since MMU not enabled yet on secondary core */
- diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c
- index 5b99d602c87b..59ca82ce81d7 100644
- --- a/arch/arm/mach-omap2/pdata-quirks.c
- +++ b/arch/arm/mach-omap2/pdata-quirks.c
- @@ -545,7 +545,7 @@ pdata_quirks_init_clocks(const struct of_device_id *omap_dt_match_table)
- }
- }
- -void __init pdata_quirks_init(const struct of_device_id *omap_dt_match_table)
- +void __init omap_pdata_quirks_init(const struct of_device_id *omap_dt_match_table)
- {
- /*
- * We still need this for omap2420 and omap3 PM to work, others are
- diff --git a/arch/arm/mach-omap2/pm24xx.c b/arch/arm/mach-omap2/pm24xx.c
- index 6953c47d8dc6..87ef7f28a1f7 100644
- --- a/arch/arm/mach-omap2/pm24xx.c
- +++ b/arch/arm/mach-omap2/pm24xx.c
- @@ -303,7 +303,7 @@ int __init omap2_pm_init(void)
- * memory the MPU can see when it wakes up after the entire
- * chip enters idle.
- */
- - omap2_sram_suspend = omap_sram_push(omap24xx_cpu_suspend,
- + omap2_sram_suspend = omap2_sram_push(omap24xx_cpu_suspend,
- omap24xx_cpu_suspend_sz);
- arm_pm_idle = omap2_pm_idle;
- diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
- index d73c7b692116..d41d43a51061 100644
- --- a/arch/arm/mach-omap2/pm34xx.c
- +++ b/arch/arm/mach-omap2/pm34xx.c
- @@ -428,7 +428,7 @@ static int __init pwrdms_setup(struct powerdomain *pwrdm, void *unused)
- */
- void omap_push_sram_idle(void)
- {
- - omap3_do_wfi_sram = omap_sram_push(omap3_do_wfi, omap3_do_wfi_sz);
- + omap3_do_wfi_sram = omap2_sram_push(omap3_do_wfi, omap3_do_wfi_sz);
- }
- static void __init pm_errata_configure(void)
- diff --git a/arch/arm/mach-omap2/sram.c b/arch/arm/mach-omap2/sram.c
- index 39cf270da718..355ef415aa9e 100644
- --- a/arch/arm/mach-omap2/sram.c
- +++ b/arch/arm/mach-omap2/sram.c
- @@ -78,7 +78,7 @@ static void *omap_sram_push_address(unsigned long size)
- return (void __force *)omap_sram_ceil;
- }
- -void *omap_sram_push(void *funcp, unsigned long size)
- +void *omap2_sram_push(void *funcp, unsigned long size)
- {
- void *sram;
- unsigned long base;
- @@ -252,13 +252,13 @@ u32 omap2_set_prcm(u32 dpll_ctrl_val, u32 sdrc_rfr_val, int bypass)
- #ifdef CONFIG_SOC_OMAP2420
- static int __init omap242x_sram_init(void)
- {
- - _omap2_sram_ddr_init = omap_sram_push(omap242x_sram_ddr_init,
- + _omap2_sram_ddr_init = omap2_sram_push(omap242x_sram_ddr_init,
- omap242x_sram_ddr_init_sz);
- - _omap2_sram_reprogram_sdrc = omap_sram_push(omap242x_sram_reprogram_sdrc,
- + _omap2_sram_reprogram_sdrc = omap2_sram_push(omap242x_sram_reprogram_sdrc,
- omap242x_sram_reprogram_sdrc_sz);
- - _omap2_set_prcm = omap_sram_push(omap242x_sram_set_prcm,
- + _omap2_set_prcm = omap2_sram_push(omap242x_sram_set_prcm,
- omap242x_sram_set_prcm_sz);
- return 0;
- @@ -273,13 +273,13 @@ static inline int omap242x_sram_init(void)
- #ifdef CONFIG_SOC_OMAP2430
- static int __init omap243x_sram_init(void)
- {
- - _omap2_sram_ddr_init = omap_sram_push(omap243x_sram_ddr_init,
- + _omap2_sram_ddr_init = omap2_sram_push(omap243x_sram_ddr_init,
- omap243x_sram_ddr_init_sz);
- - _omap2_sram_reprogram_sdrc = omap_sram_push(omap243x_sram_reprogram_sdrc,
- + _omap2_sram_reprogram_sdrc = omap2_sram_push(omap243x_sram_reprogram_sdrc,
- omap243x_sram_reprogram_sdrc_sz);
- - _omap2_set_prcm = omap_sram_push(omap243x_sram_set_prcm,
- + _omap2_set_prcm = omap2_sram_push(omap243x_sram_set_prcm,
- omap243x_sram_set_prcm_sz);
- return 0;
- diff --git a/arch/arm/mach-omap2/sram.h b/arch/arm/mach-omap2/sram.h
- index 271062f23482..9de6012a9860 100644
- --- a/arch/arm/mach-omap2/sram.h
- +++ b/arch/arm/mach-omap2/sram.h
- @@ -15,7 +15,7 @@ extern void omap3_sram_restore_context(void);
- extern int __init omap_sram_init(void);
- -extern void *omap_sram_push(void *funcp, unsigned long size);
- +extern void *omap2_sram_push(void *funcp, unsigned long size);
- /* Do not use these */
- extern void omap24xx_sram_reprogram_clock(u32 ckctl, u32 dpllctl);
- diff --git a/arch/arm/mach-omap2/sram242x.S b/arch/arm/mach-omap2/sram242x.S
- index 92ef21ac2ac1..ed6267105d31 100644
- --- a/arch/arm/mach-omap2/sram242x.S
- +++ b/arch/arm/mach-omap2/sram242x.S
- @@ -24,6 +24,8 @@
- #include "cm2xxx.h"
- #include "sdrc.h"
- + .arch armv6
- +
- .text
- .align 3
- diff --git a/arch/arm/mach-omap2/sram243x.S b/arch/arm/mach-omap2/sram243x.S
- index faf03b7f08f5..acd696b40b5c 100644
- --- a/arch/arm/mach-omap2/sram243x.S
- +++ b/arch/arm/mach-omap2/sram243x.S
- @@ -24,6 +24,8 @@
- #include "cm2xxx.h"
- #include "sdrc.h"
- + .arch armv6
- +
- .text
- .align 3
- diff --git a/arch/arm/mm/copypage-v6.c b/arch/arm/mm/copypage-v6.c
- index d8a115de5507..127073ec7349 100644
- --- a/arch/arm/mm/copypage-v6.c
- +++ b/arch/arm/mm/copypage-v6.c
- @@ -56,7 +56,8 @@ static void v6_clear_user_highpage_nonaliasing(struct page *page, unsigned long
- */
- static void discard_old_kernel_data(void *kto)
- {
- - __asm__("mcrr p15, 0, %1, %0, c6 @ 0xec401f06"
- + __asm__(".arch armv6\n"
- + " mcrr p15, 0, %1, %0, c6 @ 0xec401f06"
- :
- : "r" (kto),
- "r" ((unsigned long)kto + PAGE_SIZE - 1)
- diff --git a/arch/arm/mm/flush.c b/arch/arm/mm/flush.c
- index 7ff9feea13a6..7f49585b5a42 100644
- --- a/arch/arm/mm/flush.c
- +++ b/arch/arm/mm/flush.c
- @@ -42,7 +42,8 @@ static void flush_pfn_alias(unsigned long pfn, unsigned long vaddr)
- set_top_pte(to, pfn_pte(pfn, PAGE_KERNEL));
- - asm( "mcrr p15, 0, %1, %0, c14\n"
- + asm( ".arch armv6\n"
- + " mcrr p15, 0, %1, %0, c14\n"
- " mcr p15, 0, %2, c7, c10, 4"
- :
- : "r" (to), "r" (to + PAGE_SIZE - 1), "r" (zero)
- diff --git a/arch/arm/probes/kprobes/test-arm.c b/arch/arm/probes/kprobes/test-arm.c
- index a0dae35ffacd..a17cf57155d3 100644
- --- a/arch/arm/probes/kprobes/test-arm.c
- +++ b/arch/arm/probes/kprobes/test-arm.c
- @@ -466,7 +466,7 @@ void kprobe_arm_test_cases(void)
- #if __LINUX_ARM_ARCH__ >= 6
- TEST_UNSUPPORTED("ldrex r2, [sp]")
- #endif
- -#if (__LINUX_ARM_ARCH__ >= 7) || defined(CONFIG_CPU_32v6K)
- +#if __LINUX_ARM_ARCH__ >= 7
- TEST_UNSUPPORTED("strexd r0, r2, r3, [sp]")
- TEST_UNSUPPORTED("ldrexd r2, r3, [sp]")
- TEST_UNSUPPORTED("strexb r0, r2, [sp]")
- diff --git a/include/linux/soc/ti/omap1-soc.h b/include/linux/soc/ti/omap1-soc.h
- index a42d9aa68648..cbc1a1833acb 100644
- --- a/include/linux/soc/ti/omap1-soc.h
- +++ b/include/linux/soc/ti/omap1-soc.h
- @@ -38,17 +38,17 @@
- #endif
- /*
- - * omap_rev bits:
- + * omap1_rev bits:
- * CPU id bits (0730, 1510, 1710, 2422...) [31:16]
- * CPU revision (See _REV_ defined in cpu.h) [15:08]
- * CPU class bits (15xx, 16xx, 24xx, 34xx...) [07:00]
- */
- -unsigned int omap_rev(void);
- +unsigned int omap1_rev(void);
- /*
- * Get the CPU revision for OMAP devices
- */
- -#define GET_OMAP_REVISION() ((omap_rev() >> 8) & 0xff)
- +#define GET_OMAP_REVISION() ((omap1_rev() >> 8) & 0xff)
- /*
- * Macros to group OMAP into cpu classes.
- @@ -56,7 +56,7 @@ unsigned int omap_rev(void);
- * cpu_is_omap15xx(): True for OMAP1510, OMAP5910 and OMAP310
- * cpu_is_omap16xx(): True for OMAP1610, OMAP5912 and OMAP1710
- */
- -#define GET_OMAP_CLASS (omap_rev() & 0xff)
- +#define GET_OMAP_CLASS (omap1_rev() & 0xff)
- #define IS_OMAP_CLASS(class, id) \
- static inline int is_omap ##class (void) \
- @@ -64,7 +64,7 @@ static inline int is_omap ##class (void) \
- return (GET_OMAP_CLASS == (id)) ? 1 : 0; \
- }
- -#define GET_OMAP_SUBCLASS ((omap_rev() >> 20) & 0x0fff)
- +#define GET_OMAP_SUBCLASS ((omap1_rev() >> 20) & 0x0fff)
- #define IS_OMAP_SUBCLASS(subclass, id) \
- static inline int is_omap ##subclass (void) \
- @@ -109,7 +109,7 @@ IS_OMAP_CLASS(16xx, 0x16)
- * cpu_is_omap1621(): True for OMAP1621
- * cpu_is_omap1710(): True for OMAP1710
- */
- -#define GET_OMAP_TYPE ((omap_rev() >> 16) & 0xffff)
- +#define GET_OMAP_TYPE ((omap1_rev() >> 16) & 0xffff)
- #define IS_OMAP_TYPE(type, id) \
- static inline int is_omap ##type (void) \
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement