linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: orion5x: add new FPGA ID
@ 2022-10-17 17:17 Firas Ashkar
  0 siblings, 0 replies; 2+ messages in thread
From: Firas Ashkar @ 2022-10-17 17:17 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: linux-kernel, trivial, alex, Firas Ashkar

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@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@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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ARM: orion5x: add new FPGA ID
@ 2022-10-18 13:25 Firas Ashkar
  0 siblings, 0 replies; 2+ messages in thread
From: Firas Ashkar @ 2022-10-18 13:25 UTC (permalink / raw)
  To: alex; +Cc: linux-arm-kernel, Firas Ashkar

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@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@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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-18 13:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-17 17:17 [PATCH] ARM: orion5x: add new FPGA ID Firas Ashkar
2022-10-18 13:25 Firas Ashkar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).