summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Retanubun <RichardRetanubun@RuggedCom.com>2008-11-06 14:01:51 -0500
committerWolfgang Denk <wd@denx.de>2008-12-07 01:24:53 +0100
commitbcdf1d2cf6b24fb905fd7da80da4b3c65a7995b5 (patch)
tree4fed96be0921ffc9a6538f46f8723d051f87fd4e
parent16a28ef219c27423a1ef502f19070c4d375079b8 (diff)
downloadu-boot-imx-bcdf1d2cf6b24fb905fd7da80da4b3c65a7995b5.zip
u-boot-imx-bcdf1d2cf6b24fb905fd7da80da4b3c65a7995b5.tar.gz
u-boot-imx-bcdf1d2cf6b24fb905fd7da80da4b3c65a7995b5.tar.bz2
common/cmd_ide.c: Corrected endian order printing for compact flash serial number.
Corrected endian order printing for compact flash serial number. Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
-rw-r--r--common/cmd_ide.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/cmd_ide.c b/common/cmd_ide.c
index 2564c2b..db05f76 100644
--- a/common/cmd_ide.c
+++ b/common/cmd_ide.c
@@ -1166,15 +1166,16 @@ static void ide_ident (block_dev_desc_t *dev_desc)
ident_cpy ((unsigned char*)dev_desc->product, iop->serial_no, sizeof(dev_desc->product));
#ifdef __LITTLE_ENDIAN
/*
- * firmware revision and model number have Big Endian Byte
- * order in Word. Convert both to little endian.
+ * firmware revision, model, and serial number have Big Endian Byte
+ * order in Word. Convert all three to little endian.
*
* See CF+ and CompactFlash Specification Revision 2.0:
- * 6.2.1.6: Identfy Drive, Table 39 for more details
+ * 6.2.1.6: Identify Drive, Table 39 for more details
*/
strswab (dev_desc->revision);
strswab (dev_desc->vendor);
+ strswab (dev_desc->product);
#endif /* __LITTLE_ENDIAN */
if ((iop->config & 0x0080)==0x0080)