diff options
Diffstat (limited to 'board/inka4x0')
-rw-r--r-- | board/inka4x0/inka4x0.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/board/inka4x0/inka4x0.c b/board/inka4x0/inka4x0.c index a332510..08a1b7f 100644 --- a/board/inka4x0/inka4x0.c +++ b/board/inka4x0/inka4x0.c @@ -177,6 +177,19 @@ void flash_preinit(void) *(vu_long *)MPC5XXX_BOOTCS_CFG &= ~0x1; /* clear RO */ } +#define GPIO_PSC3_9 0x04000000UL + +int misc_init_f (void) +{ + /* + * Reset Coral-P graphics controller + */ + *(vu_long *) MPC5XXX_WU_GPIO_ENABLE |= GPIO_PSC3_9; + *(vu_long *) MPC5XXX_WU_GPIO_DIR |= GPIO_PSC3_9; + *(vu_long *) MPC5XXX_WU_GPIO_DATA |= GPIO_PSC3_9; + return 0; +} + #ifdef CONFIG_PCI static struct pci_controller hose; @@ -187,5 +200,3 @@ void pci_init_board(void) pci_mpc5xxx_init(&hose); } #endif - - |