summaryrefslogtreecommitdiff
path: root/api/api_private.h
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2014-09-16 21:17:51 +0200
committerMarek Vasut <marex@denx.de>2014-10-06 17:31:42 +0200
commit2012f238bd4383904e898cfc26c9fd433af835aa (patch)
tree474ea7b36ab220e2b2fe65ba9eae901dfe863f75 /api/api_private.h
parentd44ef7ffbfef26f71d5811006f00fc82e941fe98 (diff)
downloadu-boot-imx-2012f238bd4383904e898cfc26c9fd433af835aa.zip
u-boot-imx-2012f238bd4383904e898cfc26c9fd433af835aa.tar.gz
u-boot-imx-2012f238bd4383904e898cfc26c9fd433af835aa.tar.bz2
fpga: altera: Turn the switches into table lookup
Add a table of FPGA family with matching functions associated with it and make all the code just look up the family in that table and call the associated function instead of the horrible switch voodoo which was duplicated all over the place. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Chin Liang See <clsee@altera.com> Cc: Dinh Nguyen <dinguyen@altera.com> Cc: Albert Aribaud <albert.u.boot@aribaud.net> Cc: Tom Rini <trini@ti.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Pavel Machek <pavel@denx.de> Acked-by: Pavel Machek <pavel@denx.de>
Diffstat (limited to 'api/api_private.h')
0 files changed, 0 insertions, 0 deletions