mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
AT91: fix related at91 driver files
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
This commit is contained in:
parent
9f3fe90f09
commit
372f2783a7
4 changed files with 47 additions and 37 deletions
|
@ -48,8 +48,8 @@
|
|||
|
||||
int rtc_get (struct rtc_time *tmp)
|
||||
{
|
||||
at91_rtt_t *rtt = (at91_rtt_t *) AT91_RTT_BASE;
|
||||
at91_gpbr_t *gpbr = (at91_gpbr_t *) AT91_GPR_BASE;
|
||||
at91_rtt_t *rtt = (at91_rtt_t *) ATMEL_BASE_RTT;
|
||||
at91_gpbr_t *gpbr = (at91_gpbr_t *) ATMEL_BASE_GPBR;
|
||||
ulong tim;
|
||||
ulong tim2;
|
||||
ulong off;
|
||||
|
@ -66,8 +66,8 @@ int rtc_get (struct rtc_time *tmp)
|
|||
|
||||
int rtc_set (struct rtc_time *tmp)
|
||||
{
|
||||
at91_rtt_t *rtt = (at91_rtt_t *) AT91_RTT_BASE;
|
||||
at91_gpbr_t *gpbr = (at91_gpbr_t *) AT91_GPR_BASE;
|
||||
at91_rtt_t *rtt = (at91_rtt_t *) ATMEL_BASE_RTT;
|
||||
at91_gpbr_t *gpbr = (at91_gpbr_t *) ATMEL_BASE_GPBR;
|
||||
ulong tim;
|
||||
|
||||
tim = mktime (tmp->tm_year, tmp->tm_mon, tmp->tm_mday,
|
||||
|
@ -85,8 +85,8 @@ int rtc_set (struct rtc_time *tmp)
|
|||
|
||||
void rtc_reset (void)
|
||||
{
|
||||
at91_rtt_t *rtt = (at91_rtt_t *) AT91_RTT_BASE;
|
||||
at91_gpbr_t *gpbr = (at91_gpbr_t *) AT91_GPR_BASE;
|
||||
at91_rtt_t *rtt = (at91_rtt_t *) ATMEL_BASE_RTT;
|
||||
at91_gpbr_t *gpbr = (at91_gpbr_t *) ATMEL_BASE_GPBR;
|
||||
|
||||
/* clear alarm, set prescaler to 32768, clear counter */
|
||||
writel(32768+AT91_RTT_RTTRST, &rtt->mr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue