]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: Enable TS-78XX features in unknown revisions
authorMichael Spang <mspang@csclub.uwaterloo.ca>
Sat, 5 Mar 2011 04:50:57 +0000 (23:50 -0500)
committerNicolas Pitre <nico@fluxnic.net>
Sat, 5 Mar 2011 04:59:57 +0000 (23:59 -0500)
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>
arch/arm/mach-orion5x/ts78xx-setup.c

index f4ff53c9fb39d87ecfe39ab70c948020d4784a44..1cac714e982d9b4b57373fbc966b62db8dec1e00 100644 (file)
@@ -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;
        }
 }