Commit 195f4a17 authored by Alexander Clouter's avatar Alexander Clouter Committed by Nicolas Pitre

[ARM] orion5x: added a new FPGA ID set for the TS-78xx

Stefan Agner found his board comes with 0x00b480/0x02 but the main
board also has Rev B printed on it like my 0x00b480/0x03.  Some light
enum renaming was needed but it was to be expected.
Signed-off-by: default avatarAlexander Clouter <alex@digriz.org.uk>
Signed-off-by: default avatarNicolas Pitre <nico@marvell.com>
parent 69359943
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
*/ */
enum fpga_ids { enum fpga_ids {
/* Technologic Systems */ /* Technologic Systems */
TS7800_REV_B = FPGAID(0x00b480, 0x03), TS7800_REV_B2 = FPGAID(0x00b480, 0x02),
TS7800_REV_B3 = FPGAID(0x00b480, 0x03),
}; };
struct fpga_device { struct fpga_device {
......
...@@ -282,7 +282,8 @@ static void ts78xx_fpga_supports(void) ...@@ -282,7 +282,8 @@ static void ts78xx_fpga_supports(void)
{ {
/* TODO: put this 'table' into ts78xx-fpga.h */ /* TODO: put this 'table' into ts78xx-fpga.h */
switch (ts78xx_fpga.id) { switch (ts78xx_fpga.id) {
case TS7800_REV_B: case TS7800_REV_B2:
case TS7800_REV_B3:
ts78xx_fpga.supports.ts_rtc.present = 1; ts78xx_fpga.supports.ts_rtc.present = 1;
ts78xx_fpga.supports.ts_nand.present = 1; ts78xx_fpga.supports.ts_nand.present = 1;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment