]> git.karo-electronics.de Git - mv-sheeva.git/commit
ARM: orion5x: use safer FPGA ID 'default' for TS-78xx
authorAlexander Clouter <alex@digriz.org.uk>
Sat, 5 Mar 2011 11:49:36 +0000 (11:49 +0000)
committerNicolas Pitre <nico@fluxnic.net>
Sat, 5 Mar 2011 19:31:53 +0000 (14:31 -0500)
commitb3882330843650b751817712db57b9a7061e7879
treef214ee378dabf403c59ebeec0650da1118b386f5
parentf9b1184e12e5ff8129b04837dffddb5a3c390473
ARM: orion5x: use safer FPGA ID 'default' for TS-78xx

Originally the FPGA ID checking switch statement left disabled all the
TS implemented FPGA devices if the ID was unknown to it.  Michael Spang
created a fix in f9b1184e that changed the default to enable the devices
in the event TS silently release more revisions into the wild, this
unfortunately breaks custom FPGA bitstreams.

This patch amends the switch statement so that the TS devices are only
enabled if on the revision number is unknown (whilst the magic matches).

Changelog:
 v2: neater implementation and some cosmetic changes
 v1: initial release <20110305112937.GA22117@chipmunk>

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
arch/arm/mach-orion5x/ts78xx-fpga.h
arch/arm/mach-orion5x/ts78xx-setup.c