Регистры Allwinner H616

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


INTOSC_CLK_AUTO_CALI_REG
3.13.5. Internal OSC Clock Auto Calibration Register - адрес: 0x700000c (смещение: 0x000C)

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



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

  INT_DIV

Bits 31 : 22
RO
0x1e8

32k calibration integer divider factor


  DEC_DIV

Bits 21 : 5
RO
0x0

32k calibration decimal divider factor


  CLK6M_RC_ENABLE

Bit 4
R/W
0x0

0: Auto gating
1: Soft bypass
Calibration function Clk16M_RC_enable


  RC_CALIBR_PREC

Bits 3 : 2
R/W
0x0

00: 1ms calibration precise
01: 16ms calibration precise
10: 128ms calibration precise
RC Calibration Precise Selection


  RC_CALIBR_ENA

Bit 1
R/W
0x0

0: Close Calibration circuit
1: Open Calibration circuit
RC Calibration Enable


  RC_CLK_SRC_SEL

Bit 0
R/W
0x0

Select the RTC 32k clock source from normal RC or Calibrated RC
0: Normal RC
1: Calibrated RC



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

md 700000c 1



Bit fields structure

typedef union  intosc_clk_auto_cali_reg
{
  struct
  {
   unsigned rc_clk_src_sel : 1;
   unsigned rc_calibr_ena : 1;
   unsigned rc_calibr_prec : 2;
   unsigned clk6m_rc_enable : 1;
   unsigned dec_div : 17;
   unsigned int_div : 10;
  } b;
   unsigned long w;
} INTOSC_CLK_AUTO_CALI_REG
   

Allwinner H616 Manual