Skip to content

Commit

Permalink
ARM: Enable TS-78XX features in unknown revisions
Browse files Browse the repository at this point in the history
When the manufacturer increases the revision number the platform
devices for the RTC, NAND, and RNG disappear. We should assume
new revisions have these devices instead of assuming they do not.

Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
  • Loading branch information
Michael Spang authored and Nicolas Pitre committed Mar 5, 2011
1 parent 6920aaf commit f9b1184
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions arch/arm/mach-orion5x/ts78xx-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,11 @@ static void ts78xx_fpga_supports(void)
ts78xx_fpga.supports.ts_rng.present = 1;
break;
default:
ts78xx_fpga.supports.ts_rtc.present = 0;
ts78xx_fpga.supports.ts_nand.present = 0;
ts78xx_fpga.supports.ts_rng.present = 0;
printk(KERN_WARNING "Unrecognized TS-78XX FPGA ID 0x%02x",
ts78xx_fpga.id);
ts78xx_fpga.supports.ts_rtc.present = 1;
ts78xx_fpga.supports.ts_nand.present = 1;
ts78xx_fpga.supports.ts_rng.present = 1;
}
}

Expand Down

0 comments on commit f9b1184

Please sign in to comment.