X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=board%2Ftqm8xx%2Ftqm8xx.c;h=a7a6f2a2fa78d9036b4ac4c13e665c0ade10d623;hb=cfca5e604d5692f081cc1a9185ca5dc6dc77599d;hp=b90f5e7673cfaf7be167b6f374a64eddba212e02;hpb=45eeb8983c3eca0e82178897c027a34a52295a0f;p=platform%2Fkernel%2Fu-boot.git diff --git a/board/tqm8xx/tqm8xx.c b/board/tqm8xx/tqm8xx.c index b90f5e7..a7a6f2a 100644 --- a/board/tqm8xx/tqm8xx.c +++ b/board/tqm8xx/tqm8xx.c @@ -445,12 +445,14 @@ int board_early_init_r (void) #endif /* CONFIG_PS2MULT */ -/* ------------------------------------------------------------------------- */ +/* ---------------------------------------------------------------------------- */ +/* HMI10 specific stuff */ +/* ---------------------------------------------------------------------------- */ #ifdef CONFIG_HMI10 int misc_init_r (void) { -#ifdef CONFIG_IDE_LED +# ifdef CONFIG_IDE_LED volatile immap_t *immap = (immap_t *) CFG_IMMR; /* Configure PA15 as output port */ @@ -458,11 +460,11 @@ int misc_init_r (void) immap->im_ioport.iop_paodr |= 0x0001; immap->im_ioport.iop_papar &= ~0x0001; immap->im_ioport.iop_padat &= ~0x0001; /* turn it off */ -#endif +# endif return (0); } -#ifdef CONFIG_IDE_LED +# ifdef CONFIG_IDE_LED void ide_led (uchar led, uchar status) { volatile immap_t *immap = (immap_t *) CFG_IMMR; @@ -474,7 +476,26 @@ void ide_led (uchar led, uchar status) immap->im_ioport.iop_padat &= ~0x0001; } } -#endif +# endif +#endif /* CONFIG_HMI10 */ + +/* ---------------------------------------------------------------------------- */ +/* NSCU specific stuff */ +/* ---------------------------------------------------------------------------- */ +#ifdef CONFIG_NSCU + +int misc_init_r (void) +{ + volatile immap_t *immr = (immap_t *) CFG_IMMR; + + /* wake up ethernet module */ + immr->im_ioport.iop_pcpar &= ~0x0004; /* GPIO pin */ + immr->im_ioport.iop_pcdir |= 0x0004; /* output */ + immr->im_ioport.iop_pcso &= ~0x0004; /* for clarity */ + immr->im_ioport.iop_pcdat |= 0x0004; /* enable */ + + return (0); +} +#endif /* CONFIG_NSCU */ -#endif /* CONFIG_HMI10 */ /* ------------------------------------------------------------------------- */