[Armadeus-commitlog] SF.net SVN: armadeus:[974] trunk/target/linux/modules/isp1761/hal/hal_imx.c
Brought to you by:
sszy
|
From: <jo...@us...> - 2008-12-27 22:26:19
|
Revision: 974
http://armadeus.svn.sourceforge.net/armadeus/?rev=974&view=rev
Author: jorasse
Date: 2008-12-27 22:26:16 +0000 (Sat, 27 Dec 2008)
Log Message:
-----------
[linux] Enhanced Identification test to check 32bit registers access
Modified Paths:
--------------
trunk/target/linux/modules/isp1761/hal/hal_imx.c
Modified: trunk/target/linux/modules/isp1761/hal/hal_imx.c
===================================================================
--- trunk/target/linux/modules/isp1761/hal/hal_imx.c 2008-12-27 22:24:37 UTC (rev 973)
+++ trunk/target/linux/modules/isp1761/hal/hal_imx.c 2008-12-27 22:26:16 UTC (rev 974)
@@ -834,17 +834,17 @@
#endif
loc_dev = &(isp1761_loc_dev[ISP1761_HC]);
- isp1761_reg_write16(loc_dev, HC_SCRATCH_REG, 0xFACE);
+ isp1761_reg_write32(loc_dev, HC_SCRATCH_REG, 0xFACEECAF);
/* perform a read of the chip ID to avoir bus hold effect when
* reading back the scratch register */
isp1761_reg_read16(loc_dev, HC_CHIP_ID_REG, reg_data);
udelay(100);
- reg_data = isp1761_reg_read16(loc_dev, HC_SCRATCH_REG,reg_data);
+ reg_data = isp1761_reg_read32(loc_dev, HC_SCRATCH_REG,reg_data);
/* Host Controller presence is detected by writing to scratch register
* and reading back and checking the contents are same or not
*/
- if(reg_data != 0xFACE) {
+ if(reg_data != 0xFACEECAF) {
err("%s scratch register mismatch %x. Unable to find the ISP176x device",
isp1761_driver_name,reg_data);
status = -ENODEV;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|