[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20221017171723.1639558-1-firas.ashkar@savoirfairelinux.com>
Date: Mon, 17 Oct 2022 13:17:23 -0400
From: Firas Ashkar <firas.ashkar@...oirfairelinux.com>
To: linux-arm-kernel@...ts.infradead.org
Cc: linux-kernel@...r.kernel.org, trivial@...nel.org,
alex@...riz.org.uk,
Firas Ashkar <firas.ashkar@...oirfairelinux.com>
Subject: [PATCH] ARM: orion5x: add new FPGA ID
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@...barian) \
(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@...oirfairelinux.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
Powered by blists - more mailing lists