[PATCH] ARM: orion5x: add new FPGA ID
Firas Ashkar
firas.ashkar at savoirfairelinux.com
Tue Oct 18 06:25:30 PDT 2022
add new EmbeddedTS FPGA revision id, suppressing related boot time warning
message.
$ dmesg
Booting Linux on physical CPU 0x0
Linux version 6.1.0-rc1 (fashkar at barbarian) \
(arm-buildroot-linux-gnueabi-gcc.br_real 10.3.0, \
GNU ld (GNU Binutils) 2.36.1) #2 PREEMPT Mon Oct 17 12:04:27 EDT 2022
CPU: Feroceon [41069260] revision 0 (ARMv5TEJ), cr=b005317f
CPU: VIVT data cache, VIVT instruction cache
Machine: Technologic Systems TS-78xx SBC
...
DMA: preallocated 256 KiB pool for atomic coherent allocations
Orion ID: MV88F5182-A2. TCLK=166666667.
initial MPP regs:
00000000
00000000
03ff0000
final MPP regs:
00000003
00000000
03ff0000
ts78xx_setup: FPGA magic=0x00b480, rev=0x0b
...
$
Signed-off-by: Firas Ashkar <firas.ashkar at savoirfairelinux.com>
---
:100644 100644 2f4fe3ca5c1a 466e2a4cd6f7 M arch/arm/mach-orion5x/ts78xx-fpga.h
:100644 100644 af810e7ccd79 0f619b1bbc52 M arch/arm/mach-orion5x/ts78xx-setup.c
arch/arm/mach-orion5x/ts78xx-fpga.h | 1 +
arch/arm/mach-orion5x/ts78xx-setup.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/arm/mach-orion5x/ts78xx-fpga.h b/arch/arm/mach-orion5x/ts78xx-fpga.h
index 2f4fe3ca5c1a..466e2a4cd6f7 100644
--- a/arch/arm/mach-orion5x/ts78xx-fpga.h
+++ b/arch/arm/mach-orion5x/ts78xx-fpga.h
@@ -17,6 +17,7 @@ enum fpga_ids {
TS7800_REV_7 = FPGAID(TS7800_FPGA_MAGIC, 0x07),
TS7800_REV_8 = FPGAID(TS7800_FPGA_MAGIC, 0x08),
TS7800_REV_9 = FPGAID(TS7800_FPGA_MAGIC, 0x09),
+ TS7800_REV_11 = FPGAID(TS7800_FPGA_MAGIC, 0x0b),
/* Unaffordable & Expensive */
UAE_DUMMY = FPGAID(0xffffff, 0x01),
diff --git a/arch/arm/mach-orion5x/ts78xx-setup.c b/arch/arm/mach-orion5x/ts78xx-setup.c
index af810e7ccd79..0f619b1bbc52 100644
--- a/arch/arm/mach-orion5x/ts78xx-setup.c
+++ b/arch/arm/mach-orion5x/ts78xx-setup.c
@@ -345,6 +345,7 @@ static void ts78xx_fpga_supports(void)
case TS7800_REV_7:
case TS7800_REV_8:
case TS7800_REV_9:
+ case TS7800_REV_11:
ts78xx_fpga.supports.ts_rtc.present = 1;
ts78xx_fpga.supports.ts_nand.present = 1;
ts78xx_fpga.supports.ts_rng.present = 1;
--
2.34.1
More information about the linux-arm-kernel
mailing list