summaryrefslogtreecommitdiffstats
path: root/board/freescale/common/pq-mds-pib.c
diff options
context:
space:
mode:
authorMartin Krause <martin.krause@tqs.de>2007-10-23 08:30:06 +0200
committerMartin Krause <martin.krause@tqs.de>2007-10-23 08:30:06 +0200
commit341cc69d234dd1c361676395cf592113eb90c54c (patch)
treeef58caeaf3ded7c139158c82840eba18cc0355ec /board/freescale/common/pq-mds-pib.c
parentda3aad55cbde80ab6e301aafa82a2c411aa53eff (diff)
parent5441f61a3d8b7034f19fc1361183e936198e6dbb (diff)
downloadtalos-obmc-uboot-341cc69d234dd1c361676395cf592113eb90c54c.tar.gz
talos-obmc-uboot-341cc69d234dd1c361676395cf592113eb90c54c.zip
Merge branch 'u-boot' of /home/mkr/git/u-boot-tq-group into bugfix
Diffstat (limited to 'board/freescale/common/pq-mds-pib.c')
-rw-r--r--board/freescale/common/pq-mds-pib.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/board/freescale/common/pq-mds-pib.c b/board/freescale/common/pq-mds-pib.c
index d79f2eb2e8..e4f96e8848 100644
--- a/board/freescale/common/pq-mds-pib.c
+++ b/board/freescale/common/pq-mds-pib.c
@@ -79,19 +79,19 @@ int pib_init(void)
printf("QOC3 ATM card on PMC0\n");
#elif defined(CONFIG_MPC832XEMDS)
- val = 0;
- i2c_write(0x26, 0x7, 1, &val, 1);
- val = 0xf7;
- i2c_write(0x26, 0x3, 1, &val, 1);
-
- val = 0;
- i2c_write(0x21, 0x6, 1, &val, 1);
- i2c_write(0x21, 0x7, 1, &val, 1);
-
- val = 0xdf;
- i2c_write(0x21, 0x2, 1, &val, 1);
- val = 0xef;
- i2c_write(0x21, 0x3, 1, &val, 1);
+ val8 = 0;
+ i2c_write(0x26, 0x7, 1, &val8, 1);
+ val8 = 0xf7;
+ i2c_write(0x26, 0x3, 1, &val8, 1);
+
+ val8 = 0;
+ i2c_write(0x21, 0x6, 1, &val8, 1);
+ i2c_write(0x21, 0x7, 1, &val8, 1);
+
+ val8 = 0xdf;
+ i2c_write(0x21, 0x2, 1, &val8, 1);
+ val8 = 0xef;
+ i2c_write(0x21, 0x3, 1, &val8, 1);
eieio();
OpenPOWER on IntegriCloud