Регистры Allwinner H616

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


CALI_CTRL_REG
3.13.5. Calibration Control Register - адрес: 0x7000164 (смещение: 0x0164)

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



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

  WAKEUP_DCXO_EN

Bit 31
R/W
0x0

Wake up DCXO circuit enable.


  Unused

Bits 30 : 17

  WAKEUP_READY_SLEEP_MODE

Bit 16
R/W
0x0

Calibration wake up ready sleep mode, it must be set before the
WAKEUP_DCXO_EN is set to 1.
0: Disable
1: Enable


  TIMER_FOR_READY_SLEEP

Bits 15 : 12
R/W
0x0

Total timer for ready sleep

0x00: 15s
0x01: 30s
0x02: 45s
0x03: 60s
0x04: 90s
0x05: 120s
0x06: 150s
Others: /


  WAKEUP_CNT_FOR_READY_SLEEP

Bits 11 : 8
R/W
0x0

Wake up counter for ready sleep
0x00: 250ms
0x01: 500ms
0x02: 750ms
0x03: 1s
0x04: 1.25s
0x05: 1.5s
0x06: 1.75s
0x07: 2s
0x08: 2.25s
0x09: 2.5s
0x0A: 2.75s
0x0B: 3s
0x0C: 3.25s
0x0D: 3.5s
0x0E: 3.75s
0x0F: 4s


  WAKEUP_CNT_FOR_SLEEP

Bits 7 : 4
R/W
0x4

Wake up counter for sleep
0x00: 250ms
0x01: 500ms
0x02: 1s
0x03: 10s
0x04: 60s
0x05: 120s
0x06: 180s
0x07: 240s
0x08: 300s
0x09: 360s
0x0A: 420s
0x0B: 480s
0x0C: 540s
0x0D: 600s
0x0E: 1200s
0x0F: 1800s


  WAIT_DCXO_SEL

Bits 3 : 0
R/W
0x3

Select for DCXO active after DCXO enable
0x00: 1ms
0x01: 2ms
0x02: 3ms
0x03: 4ms
0x04: 5ms
0x05: 6ms
0x06: 7ms
0x07: 8ms
0x08: 9ms
0x09: 10ms
0x0A: 11ms
0x0B: 12ms
0x0C: 13ms
0x0D: 14ms
0x0E: 15ms
0x0F: 16ms



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

md 7000164 1



Bit fields structure

typedef union  cali_ctrl_reg
{
  struct
  {
   unsigned wait_dcxo_sel : 4;
   unsigned wakeup_cnt_for_sleep : 4;
   unsigned wakeup_cnt_for_ready_sleep : 4;
   unsigned timer_for_ready_sleep : 4;
   unsigned wakeup_ready_sleep_mode : 1;
   unsigned unused0 : 14;
   unsigned wakeup_dcxo_en : 1;
  } b;
   unsigned long w;
} CALI_CTRL_REG
   

Allwinner H616 Manual