]> git.sur5r.net Git - u-boot/blobdiff - board/freescale/mpc8323erdb/mpc8323erdb.c
imx: mx7dsabresd: drop SYS_SOC from board Kconfig
[u-boot] / board / freescale / mpc8323erdb / mpc8323erdb.c
index 7a0ff184fc7e4e05ebb5d8126e4128a17d70f82d..0a0152ad9ea30969d8c4de54c5fcbe2a495a1c8a 100644 (file)
@@ -66,11 +66,6 @@ const qe_iop_conf_t qe_iop_conf_tab[] = {
        {0,  0, 0, 0, QE_IOP_TAB_END}, /* END of table */
 };
 
-int board_early_init_f(void)
-{
-       return 0;
-}
-
 int fixed_sdram(void);
 
 phys_size_t initdram(int board_type)
@@ -177,12 +172,14 @@ void pci_init_board(void)
 }
 
 #if defined(CONFIG_OF_BOARD_SETUP)
-void ft_board_setup(void *blob, bd_t *bd)
+int ft_board_setup(void *blob, bd_t *bd)
 {
        ft_cpu_setup(blob, bd);
 #ifdef CONFIG_PCI
        ft_pci_setup(blob, bd);
 #endif
+
+       return 0;
 }
 #endif
 
@@ -200,7 +197,11 @@ int mac_read_from_eeprom(void)
                printf("\nEEPROM @ 0x%02x read FAILED!!!\n",
                       CONFIG_SYS_I2C_EEPROM_ADDR);
        } else {
-               if (crc32(crc, buf, 24) == *(unsigned int *)&buf[24]) {
+               uint32_t crc_buf;
+
+               memcpy(&crc_buf, &buf[24], sizeof(uint32_t));
+
+               if (crc32(crc, buf, 24) == crc_buf) {
                        printf("Reading MAC from EEPROM\n");
                        for (i = 0; i < 4; i++) {
                                if (memcmp(&buf[i * 6], "\0\0\0\0\0\0", 6)) {