Skip to content

Commit 57d8496

Browse files
Kefeng Wangbebarino
authored andcommitted
clk: at91: fix the build with binutils 2.27
There is an issue when build with older versions of binutils 2.27.0, arch/arm/mach-at91/pm_suspend.S: Assembler messages: arch/arm/mach-at91/pm_suspend.S:1086: Error: garbage following instruction -- `ldr tmp1,=0x00020010UL' Use UL() macro to fix the issue in assembly file. Fixes: 4fd36e4 ("ARM: at91: pm: add plla disable/enable support for sam9x60") Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Link: https://lore.kernel.org/r/20221012030635.13140-1-wangkefeng.wang@huawei.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 8c7bc6c commit 57d8496

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

include/linux/clk/at91_pmc.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#ifndef AT91_PMC_H
1313
#define AT91_PMC_H
1414

15+
#include <linux/bits.h>
16+
1517
#define AT91_PMC_V1 (1) /* PMC version 1 */
1618
#define AT91_PMC_V2 (2) /* PMC version 2 [SAM9X60] */
1719

@@ -45,8 +47,8 @@
4547
#define AT91_PMC_PCSR 0x18 /* Peripheral Clock Status Register */
4648

4749
#define AT91_PMC_PLL_ACR 0x18 /* PLL Analog Control Register [for SAM9X60] */
48-
#define AT91_PMC_PLL_ACR_DEFAULT_UPLL 0x12020010UL /* Default PLL ACR value for UPLL */
49-
#define AT91_PMC_PLL_ACR_DEFAULT_PLLA 0x00020010UL /* Default PLL ACR value for PLLA */
50+
#define AT91_PMC_PLL_ACR_DEFAULT_UPLL UL(0x12020010) /* Default PLL ACR value for UPLL */
51+
#define AT91_PMC_PLL_ACR_DEFAULT_PLLA UL(0x00020010) /* Default PLL ACR value for PLLA */
5052
#define AT91_PMC_PLL_ACR_UTMIVR (1 << 12) /* UPLL Voltage regulator Control */
5153
#define AT91_PMC_PLL_ACR_UTMIBG (1 << 13) /* UPLL Bandgap Control */
5254

0 commit comments

Comments
 (0)