Регистры Allwinner H616

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


E_FRINDEX
9.5.3. EHCI USB Frame Index Register - адрес: 0x520001c 0x531001c 0x531101c (смещение: 0x001C)

Хост-контроллер USB2.0: список регистров



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

  Unused

Bits 31 : 14

  FRAME_INDEX

Bits 13 : 0
R/W
0x0

The value in this register increment at the end of each time frame (e.g. micro-frame).
Bits[N:3] are used for the Frame List current index.
It means that each location of the frame list is accessed 8 times(frames or Micro-frames) before moving to the next index.
The following illustrates values of N based on the value of the Frame List Size field in the USBCMD register.
USB-CMD[Frame List Size]
00 Number Elements=1024 N=12
01 Number Elements=512 N=11
10 Number Elements=256 N=10
11 Reserved

Note
This register must be written as a DWord. Byte writes produce undefined results.



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

md 520001c 1
md 531001c 1
md 531101c 1



Bit fields structure

typedef union  e_frindex
{
  struct
  {
   unsigned frame_index : 14;
   unsigned unused0 : 18;
  } b;
   unsigned long w;
} E_FRINDEX
   

Allwinner H616 Manual