mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 20:18:54 -04:00
SPC1920 GO/NOGO led should be set to color red in U-Boot
This commit is contained in:
parent
0be62728aa
commit
e4c2d37adc
@ -209,12 +209,20 @@ int board_early_init_f(void)
|
|||||||
{
|
{
|
||||||
volatile immap_t *immap = (immap_t *) CFG_IMMR;
|
volatile immap_t *immap = (immap_t *) CFG_IMMR;
|
||||||
|
|
||||||
|
/* Set Go/NoGo led (PA15) to color red */
|
||||||
|
immap->im_ioport.iop_papar &= ~0x1;
|
||||||
|
immap->im_ioport.iop_paodr &= ~0x1;
|
||||||
|
immap->im_ioport.iop_padir |= 0x1;
|
||||||
|
immap->im_ioport.iop_padat |= 0x1;
|
||||||
|
|
||||||
|
#if 0
|
||||||
/* Turn on LED PD9 */
|
/* Turn on LED PD9 */
|
||||||
immap->im_ioport.iop_pdpar &= ~(0x0040);
|
immap->im_ioport.iop_pdpar &= ~(0x0040);
|
||||||
immap->im_ioport.iop_pddir |= 0x0040;
|
immap->im_ioport.iop_pddir |= 0x0040;
|
||||||
immap->im_ioport.iop_pddat |= 0x0040;
|
immap->im_ioport.iop_pddat |= 0x0040;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Enable PD10 (COM2_EN) */
|
/* Enable PD10 (COM2_EN) */
|
||||||
immap->im_ioport.iop_pdpar &= ~0x0020;
|
immap->im_ioport.iop_pdpar &= ~0x0020;
|
||||||
immap->im_ioport.iop_pddir &= ~0x4000;
|
immap->im_ioport.iop_pddir &= ~0x4000;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user