]> git.sur5r.net Git - u-boot/blobdiff - board/digsy_mtc/digsy_mtc.c
Add support for operating system OSE
[u-boot] / board / digsy_mtc / digsy_mtc.c
index e231c10f2d0ccafd40e1da8fe47b95664d69fb26..cc6087b339598d916dfd378f6daf8760f6d15fd4 100644 (file)
@@ -186,6 +186,9 @@ int checkboard(void)
 
 int board_early_init_r(void)
 {
+#ifdef CONFIG_MPC52XX_SPI
+       struct mpc5xxx_gpt *gpt = (struct mpc5xxx_gpt*)MPC5XXX_GPT;
+#endif
        /*
         * Now, when we are in RAM, enable flash write access for detection
         * process.  Note that CS_BOOT cannot be cleared when executing in
@@ -202,6 +205,13 @@ int board_early_init_r(void)
        /* Low level USB init, required for proper kernel operation */
        usb_cpu_init();
 #endif
+#ifdef CONFIG_MPC52XX_SPI
+       /* GPT 6 Output Enable */
+       out_be32(&gpt[6].emsr, 0x00000034);
+       /* GPT 7 Output Enable */
+       out_be32(&gpt[7].emsr, 0x00000034);
+#endif
+
        return (0);
 }
 
@@ -304,4 +314,3 @@ void ft_board_setup(void *blob, bd_t *bd)
 #endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */
 
 #endif /* CONFIG_CMD_IDE */
-