Skip to content

Commit

Permalink
[ARM] orion5x: added a new FPGA ID set for the TS-78xx
Browse files Browse the repository at this point in the history
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: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
  • Loading branch information
Alexander Clouter authored and Nicolas Pitre committed Mar 4, 2009
1 parent 6935994 commit 195f4a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion arch/arm/mach-orion5x/ts78xx-fpga.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
*/
enum fpga_ids {
/* Technologic Systems */
TS7800_REV_B = FPGAID(0x00b480, 0x03),
TS7800_REV_B2 = FPGAID(0x00b480, 0x02),
TS7800_REV_B3 = FPGAID(0x00b480, 0x03),
};

struct fpga_device {
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-orion5x/ts78xx-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ static void ts78xx_fpga_supports(void)
{
/* TODO: put this 'table' into ts78xx-fpga.h */
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_nand.present = 1;
break;
Expand Down

0 comments on commit 195f4a1

Please sign in to comment.