Регистры Allwinner H616

Сокращения  |  Дерево шин  |  Карта памяти


LOSC_CTRL_REG
3.13.5. Low Oscillator Control Register - адрес: 0x7000000 (смещение: 0x0000)

Часы реального времени RTC: список регистров



31 ||||||||||||||||| 16
15 ||||||||||||||||| 00

  RESERV_1

Bits 31 : 16
W
0x0

Reserved


  RESERV_2

Bit 15
R/W
0x0

Reserved


  RESERV_3

Bit 14
R/W
0x1

Reserved


  Unused

Bits 13 : 9

  RTC_HHMMSS_ACCE

Bit 8
R/W
0x0

RTC HH-MM-SS access
After writing the RTC HH-MM-SS Register, this bit is set and it will be cleared
until the real writing operation is finished.
After writing the RTC HH-MM-SS Register, the RTC HH-MM-SS Register will be
refreshed for at most one second.


  RTC_DAY_ACCE

Bit 7
R/W
0x0

RTC DAY access
After writing the RTC DAY register, this bit is set and it will be cleared until the
real writing operation is finished.
After writing the RTC DAY register, the DAY register will be refreshed for at
most one second.


  Unused

Bits 6 : 5

  RESERV_4

Bit 4
R/W
0x1

Reserved


  RESERV_5

Bits 3 : 2
R/W
0x0

Reserved


  Unused

Bit 1

  RESERV_6

Bit 0
R/W
0x0

Reserved

Note
If the bit[8:7] of LOSC_CTRL_REG is set, the RTC HH-MM-SS, DD and ALARM DD-HH-MM-SS register cannot be written.



Команда U-Boot для чтения регистра

md 7000000 1



Bit fields structure

typedef union  losc_ctrl_reg
{
  struct
  {
   unsigned reserv_6 : 1;
   unsigned unused0 : 1;
   unsigned reserv_5 : 2;
   unsigned reserv_4 : 1;
   unsigned unused1 : 2;
   unsigned rtc_day_acce : 1;
   unsigned rtc_hhmmss_acce : 1;
   unsigned unused2 : 5;
   unsigned reserv_3 : 1;
   unsigned reserv_2 : 1;
   unsigned reserv_1 : 16;
  } b;
   unsigned long w;
} LOSC_CTRL_REG
   

Allwinner H616 Manual