]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Merge branch 'master' of git://git.denx.de/u-boot-74xx-7xx
authorTom Rini <trini@ti.com>
Thu, 27 Jun 2013 12:23:27 +0000 (08:23 -0400)
committerTom Rini <trini@ti.com>
Thu, 27 Jun 2013 12:23:27 +0000 (08:23 -0400)
board/eltec/elppc/misc.c

index 89f1b1d3559ba9d4c6cd988d510917d574dd067b..4c3656e24dcce3a141a764fb9bb014eb07867388 100644 (file)
@@ -207,9 +207,14 @@ int misc_init_r (void)
                buf[4] = eerev.etheraddr[5];
                buf[5] = eerev.etheraddr[4];
 
-               *(unsigned short *) &buf[20] = 0x48B2;
-               *(unsigned short *) &buf[22] = 0x0004;
-               *(unsigned short *) &buf[24] = 0x1433;
+               buf[20] = 0x48;
+               buf[21] = 0xB2;
+
+               buf[22] = 0x00;
+               buf[23] = 0x04;
+
+               buf[24] = 0x14;
+               buf[25] = 0x33;
 
                printf ("\nSRom:  Writing i82559 info ........ ");
                if (eepro100_srom_store ((unsigned short *) buf) == -1)