Signed-off-by: Wolfgang Denk <wd@denx.de>
Based on patch by Mike Frysinger, 20 Jun 2006
Patch by Aaron Sells, 20 Jun 2006