[U-Boot] [PATCH] inka4x0: Add hardware diagnosis and RTC in configuration.

Wolfgang Denk wd at denx.de
Tue Mar 24 23:56:12 CET 2009


Dear Detlev Zundel,

In message <1237914158-15693-7-git-send-email-dzu at denx.de> you wrote:
> This patch adds the board specific communication routines needed by
> the external 4543 RTC.
> 
> Signed-off-by: Detlev Zundel <ap at denx.de>
> Signed-off-by: Andreas Pfefferle <ap at denx.de>
...
> @@ -235,6 +238,23 @@ int misc_init_f (void)
>  	*(vu_long *) MPC5XXX_WU_GPIO_ENABLE |= GPIO_PSC3_9;
>  	*(vu_long *) MPC5XXX_WU_GPIO_DIR    |= GPIO_PSC3_9;
>  	*(vu_long *) MPC5XXX_WU_GPIO_DATA_O   |= GPIO_PSC3_9;

You don't want to fix the missing accessor functions here, do you? ;-)

> +
> +	/*
> +	 * Configure three wire serial interface to RTC (PSC1_4,
> +	 * PSC2_4, PSC3_4, PSC3_5)
> +	 */
> +	setbits_8(&wu_gpio->enable,  MPC5XXX_GPIO_WKUP_PSC1_4 |
> +				     MPC5XXX_GPIO_WKUP_PSC2_4);
> +	setbits_8(&wu_gpio->ddr,     MPC5XXX_GPIO_WKUP_PSC1_4 |
> +				     MPC5XXX_GPIO_WKUP_PSC2_4);
> +	clrbits_8(&wu_gpio->dvo,     MPC5XXX_GPIO_WKUP_PSC1_4);
> +	clrbits_8(&gpio->sint_inten, MPC5XXX_GPIO_SINT_PSC3_4 |
> +				     MPC5XXX_GPIO_SINT_PSC3_5);
> +	setbits_8(&gpio->sint_gpioe, MPC5XXX_GPIO_SINT_PSC3_4 |
> +				     MPC5XXX_GPIO_SINT_PSC3_5);
> +	setbits_8(&gpio->sint_ddr,   MPC5XXX_GPIO_SINT_PSC3_5);
> +	clrbits_8(&gpio->sint_dvo,   MPC5XXX_GPIO_SINT_PSC3_5);
> +
>  	return 0;
>  }


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Name one thing windows is better than unix in?
                                          Making money for Microsoft?
         -- Randal L. Schwartz in <8cvi5t4c3t.fsf at gadget.cscaper.com>


More information about the U-Boot mailing list