Registers

Summary

NameOffsetLengthDescription
clkmgr.ALERT_TEST0x04Alert Test Register
clkmgr.EXTCLK_CTRL_REGWEN0x44External clock control write enable
clkmgr.EXTCLK_CTRL0x84Request the system clocks be sourced from an external clock instead of the internal
clkmgr.EXTCLK_STATUS0xc4Status of requested external clock switch
clkmgr.JITTER_REGWEN0x104Jitter write enable
clkmgr.JITTER_ENABLE0x144Enable jittery clock
clkmgr.CLK_ENABLES0x184Clock enable for software gateable clocks.
clkmgr.CLK_HINTS0x1c4Clock hint for software gateable transactional clocks during active mode.
clkmgr.CLK_HINTS_STATUS0x204Since the final state of CLK_HINTS is not always determined by software,
clkmgr.MEASURE_CTRL_REGWEN0x244Measurement control write enable
clkmgr.IO_MEAS_CTRL_EN0x284Enable for measurement control
clkmgr.IO_MEAS_CTRL_SHADOWED0x2c4Configuration controls for io measurement.
clkmgr.IO_DIV2_MEAS_CTRL_EN0x304Enable for measurement control
clkmgr.IO_DIV2_MEAS_CTRL_SHADOWED0x344Configuration controls for io_div2 measurement.
clkmgr.IO_DIV4_MEAS_CTRL_EN0x384Enable for measurement control
clkmgr.IO_DIV4_MEAS_CTRL_SHADOWED0x3c4Configuration controls for io_div4 measurement.
clkmgr.MAIN_MEAS_CTRL_EN0x404Enable for measurement control
clkmgr.MAIN_MEAS_CTRL_SHADOWED0x444Configuration controls for main measurement.
clkmgr.USB_MEAS_CTRL_EN0x484Enable for measurement control
clkmgr.USB_MEAS_CTRL_SHADOWED0x4c4Configuration controls for usb measurement.
clkmgr.RECOV_ERR_CODE0x504Recoverable Error code
clkmgr.FATAL_ERR_CODE0x544Error code

ALERT_TEST

Alert Test Register

  • Offset: 0x0
  • Reset default: 0x0
  • Reset mask: 0x3

Fields

{"reg": [{"name": "recov_fault", "bits": 1, "attr": ["wo"], "rotate": -90}, {"name": "fatal_fault", "bits": 1, "attr": ["wo"], "rotate": -90}, {"bits": 30}], "config": {"lanes": 1, "fontsize": 10, "vspace": 130}}
BitsTypeResetNameDescription
31:2Reserved
1wo0x0fatal_faultWrite 1 to trigger one alert event of this kind.
0wo0x0recov_faultWrite 1 to trigger one alert event of this kind.

EXTCLK_CTRL_REGWEN

External clock control write enable

  • Offset: 0x4
  • Reset default: 0x1
  • Reset mask: 0x1

Fields

{"reg": [{"name": "EN", "bits": 1, "attr": ["rw0c"], "rotate": -90}, {"bits": 31}], "config": {"lanes": 1, "fontsize": 10, "vspace": 80}}
BitsTypeResetNameDescription
31:1Reserved
0rw0c0x1ENWrite protection for the external clock controls. While this field is 1, EXTCLK_CTRL accepts writes. Clearing it to 0 is permanent until the next reset, so software can lock out any later attempt to move the chip onto an external clock.

EXTCLK_CTRL

Request the system clocks be sourced from an external clock instead of the internal oscillator.

Fields

{"reg": [{"name": "SEL", "bits": 4, "attr": ["rw"], "rotate": 0}, {"name": "HI_SPEED_SEL", "bits": 4, "attr": ["rw"], "rotate": -90}, {"bits": 24}], "config": {"lanes": 1, "fontsize": 10, "vspace": 140}}
BitsTypeResetName
31:8Reserved
7:4rw0x9HI_SPEED_SEL
3:0rw0x9SEL

EXTCLK_CTRL . HI_SPEED_SEL

Declares how fast the external clock is, so that the internal dividers can be adjusted to hold the divided clocks at their usual frequencies. This field only has an effect while EXTCLK_CTRL.SEL is kMultiBitBool4True.

kMultiBitBool4True means nominal speed: the external clock is approximately the same frequency as the internal oscillator source, the dividers are left as they are, and every clock keeps running at roughly its usual frequency.

Any other value means low speed: the external clock is approximately half the frequency of the internal oscillator source, so the dividers are stepped down in order to keep the divided clocks at their usual frequencies. The undivided clocks then run at half their usual frequency, which is the unavoidable cost of the slower source rather than an intended effect.

See external clock switch support for more details.

EXTCLK_CTRL . SEL

Selects where the system clocks come from. kMultiBitBool4True requests the external clock; every other value, not only kMultiBitBool4False, leaves them on the internal oscillator, because the hardware tests for a strict true.

The request is honored only while debug functions are enabled, that is in the life cycle TEST, DEV or RMA states. The field itself is writable in any state, so a write that appears to succeed does not on its own mean the clock has switched. Read EXTCLK_STATUS.ACK to find out whether it did.

EXTCLK_STATUS

Status of requested external clock switch

  • Offset: 0xc
  • Reset default: 0x9
  • Reset mask: 0xf

Fields

{"reg": [{"name": "ACK", "bits": 4, "attr": ["ro"], "rotate": 0}, {"bits": 28}], "config": {"lanes": 1, "fontsize": 10, "vspace": 80}}
BitsTypeResetName
31:4Reserved
3:0ro0x9ACK

EXTCLK_STATUS . ACK

Whether the switch requested through EXTCLK_CTRL.SEL has actually taken place. The switch is reported complete only once the analog side has acknowledged it and, where a divider step down was required, once the dividers have taken their new ratio.

kMultiBitBool4True indicates the switch is complete. kMultiBitBool4False indicates it is still ongoing, or that it was not possible because debug functions are not enabled.

JITTER_REGWEN

Jitter write enable

  • Offset: 0x10
  • Reset default: 0x1
  • Reset mask: 0x1

Fields

{"reg": [{"name": "EN", "bits": 1, "attr": ["rw0c"], "rotate": -90}, {"bits": 31}], "config": {"lanes": 1, "fontsize": 10, "vspace": 80}}
BitsTypeResetNameDescription
31:1Reserved
0rw0c0x1ENWhen 1, the value of JITTER_ENABLE can be changed. When 0, writes have no effect.

JITTER_ENABLE

Enable jittery clock

  • Offset: 0x14
  • Reset default: 0x9
  • Reset mask: 0xf
  • Register enable: JITTER_REGWEN

Fields

{"reg": [{"name": "VAL", "bits": 4, "attr": ["rw"], "rotate": 0}, {"bits": 28}], "config": {"lanes": 1, "fontsize": 10, "vspace": 80}}
BitsTypeResetNameDescription
31:4Reserved
3:0rw0x9VALEnable jittery clock. A value of kMultiBitBool4False disables the jittery clock, while all other values enable jittery clock.

CLK_ENABLES

Clock enable for software gateable clocks. These clocks are directly controlled by software.

  • Offset: 0x18
  • Reset default: 0xf
  • Reset mask: 0xf

Fields

{"reg": [{"name": "CLK_IO_DIV4_PERI_EN", "bits": 1, "attr": ["rw"], "rotate": -90}, {"name": "CLK_IO_DIV2_PERI_EN", "bits": 1, "attr": ["rw"], "rotate": -90}, {"name": "CLK_IO_PERI_EN", "bits": 1, "attr": ["rw"], "rotate": -90}, {"name": "CLK_USB_PERI_EN", "bits": 1, "attr": ["rw"], "rotate": -90}, {"bits": 28}], "config": {"lanes": 1, "fontsize": 10, "vspace": 210}}
BitsTypeResetNameDescription
31:4Reserved
3rw0x1CLK_USB_PERI_EN0 CLK_USB_PERI is disabled. 1 CLK_USB_PERI is enabled.
2rw0x1CLK_IO_PERI_EN0 CLK_IO_PERI is disabled. 1 CLK_IO_PERI is enabled.
1rw0x1CLK_IO_DIV2_PERI_EN0 CLK_IO_DIV2_PERI is disabled. 1 CLK_IO_DIV2_PERI is enabled.
0rw0x1CLK_IO_DIV4_PERI_EN0 CLK_IO_DIV4_PERI is disabled. 1 CLK_IO_DIV4_PERI is enabled.

CLK_HINTS

Clock hint for software gateable transactional clocks during active mode. During low power mode, all clocks are gated off regardless of the software hint.

Transactional clocks are not fully controlled by software. Instead software provides only a disable hint.

When software provides a disable hint, the clock manager checks to see if the associated hardware block is idle. If the hardware block is idle, then the clock is disabled. If the hardware block is not idle, the clock is kept on.

For the enable case, the software hint is immediately honored and the clock turned on. Hardware does not provide any feedback in this case.

  • Offset: 0x1c
  • Reset default: 0xf
  • Reset mask: 0xf

Fields

{"reg": [{"name": "CLK_MAIN_ACC_HINT", "bits": 1, "attr": ["rw"], "rotate": -90}, {"name": "CLK_MAIN_AES_HINT", "bits": 1, "attr": ["rw"], "rotate": -90}, {"name": "CLK_MAIN_HMAC_HINT", "bits": 1, "attr": ["rw"], "rotate": -90}, {"name": "CLK_MAIN_KMAC_HINT", "bits": 1, "attr": ["rw"], "rotate": -90}, {"bits": 28}], "config": {"lanes": 1, "fontsize": 10, "vspace": 200}}
BitsTypeResetNameDescription
31:4Reserved
3rw0x1CLK_MAIN_KMAC_HINT0 CLK_MAIN_KMAC can be disabled. 1 CLK_MAIN_KMAC is enabled.
2rw0x1CLK_MAIN_HMAC_HINT0 CLK_MAIN_HMAC can be disabled. 1 CLK_MAIN_HMAC is enabled.
1rw0x1CLK_MAIN_AES_HINT0 CLK_MAIN_AES can be disabled. 1 CLK_MAIN_AES is enabled.
0rw0x1CLK_MAIN_ACC_HINT0 CLK_MAIN_ACC can be disabled. 1 CLK_MAIN_ACC is enabled.

CLK_HINTS_STATUS

Since the final state of CLK_HINTS is not always determined by software, this register provides read feedback for the current clock state.

  • Offset: 0x20
  • Reset default: 0xf
  • Reset mask: 0xf

Fields

{"reg": [{"name": "CLK_MAIN_ACC_VAL", "bits": 1, "attr": ["ro"], "rotate": -90}, {"name": "CLK_MAIN_AES_VAL", "bits": 1, "attr": ["ro"], "rotate": -90}, {"name": "CLK_MAIN_HMAC_VAL", "bits": 1, "attr": ["ro"], "rotate": -90}, {"name": "CLK_MAIN_KMAC_VAL", "bits": 1, "attr": ["ro"], "rotate": -90}, {"bits": 28}], "config": {"lanes": 1, "fontsize": 10, "vspace": 190}}
BitsTypeResetNameDescription
31:4Reserved
3ro0x1CLK_MAIN_KMAC_VAL0 CLK_MAIN_KMAC is disabled. 1 CLK_MAIN_KMAC is enabled.
2ro0x1CLK_MAIN_HMAC_VAL0 CLK_MAIN_HMAC is disabled. 1 CLK_MAIN_HMAC is enabled.
1ro0x1CLK_MAIN_AES_VAL0 CLK_MAIN_AES is disabled. 1 CLK_MAIN_AES is enabled.
0ro0x1CLK_MAIN_ACC_VAL0 CLK_MAIN_ACC is disabled. 1 CLK_MAIN_ACC is enabled.

MEASURE_CTRL_REGWEN

Measurement control write enable

  • Offset: 0x24
  • Reset default: 0x1
  • Reset mask: 0x1

Fields

{"reg": [{"name": "EN", "bits": 1, "attr": ["rw0c"], "rotate": -90}, {"bits": 31}], "config": {"lanes": 1, "fontsize": 10, "vspace": 80}}
BitsTypeResetNameDescription
31:1Reserved
0rw0c0x1ENWhen 1, the value of the measurement control can be set. When 0, writes have no effect.

IO_MEAS_CTRL_EN

Enable for measurement control

Fields

{"reg": [{"name": "EN", "bits": 4, "attr": ["rw"], "rotate": 0}, {"bits": 28}], "config": {"lanes": 1, "fontsize": 10, "vspace": 80}}
BitsTypeResetNameDescription
31:4Reserved
3:0rw0x9ENEnable measurement for io

IO_MEAS_CTRL_SHADOWED

Configuration controls for io measurement.

The threshold fields are made wider than required (by 1 bit) to ensure there is room to adjust for measurement inaccuracies.

Fields

{"reg": [{"name": "HI", "bits": 10, "attr": ["rw"], "rotate": 0}, {"name": "LO", "bits": 10, "attr": ["rw"], "rotate": 0}, {"bits": 12}], "config": {"lanes": 1, "fontsize": 10, "vspace": 80}}
BitsTypeResetNameDescription
31:20Reserved
19:10rw0x1d6LOMin threshold for io measurement
9:0rw0x1eaHIMax threshold for io measurement

IO_DIV2_MEAS_CTRL_EN

Enable for measurement control

Fields

{"reg": [{"name": "EN", "bits": 4, "attr": ["rw"], "rotate": 0}, {"bits": 28}], "config": {"lanes": 1, "fontsize": 10, "vspace": 80}}
BitsTypeResetNameDescription
31:4Reserved
3:0rw0x9ENEnable measurement for io_div2

IO_DIV2_MEAS_CTRL_SHADOWED

Configuration controls for io_div2 measurement.

The threshold fields are made wider than required (by 1 bit) to ensure there is room to adjust for measurement inaccuracies.

Fields

{"reg": [{"name": "HI", "bits": 9, "attr": ["rw"], "rotate": 0}, {"name": "LO", "bits": 9, "attr": ["rw"], "rotate": 0}, {"bits": 14}], "config": {"lanes": 1, "fontsize": 10, "vspace": 80}}
BitsTypeResetNameDescription
31:18Reserved
17:9rw0xe6LOMin threshold for io_div2 measurement
8:0rw0xfaHIMax threshold for io_div2 measurement

IO_DIV4_MEAS_CTRL_EN

Enable for measurement control

Fields

{"reg": [{"name": "EN", "bits": 4, "attr": ["rw"], "rotate": 0}, {"bits": 28}], "config": {"lanes": 1, "fontsize": 10, "vspace": 80}}
BitsTypeResetNameDescription
31:4Reserved
3:0rw0x9ENEnable measurement for io_div4

IO_DIV4_MEAS_CTRL_SHADOWED

Configuration controls for io_div4 measurement.

The threshold fields are made wider than required (by 1 bit) to ensure there is room to adjust for measurement inaccuracies.

Fields

{"reg": [{"name": "HI", "bits": 8, "attr": ["rw"], "rotate": 0}, {"name": "LO", "bits": 8, "attr": ["rw"], "rotate": 0}, {"bits": 16}], "config": {"lanes": 1, "fontsize": 10, "vspace": 80}}
BitsTypeResetNameDescription
31:16Reserved
15:8rw0x6eLOMin threshold for io_div4 measurement
7:0rw0x82HIMax threshold for io_div4 measurement

MAIN_MEAS_CTRL_EN

Enable for measurement control

Fields

{"reg": [{"name": "EN", "bits": 4, "attr": ["rw"], "rotate": 0}, {"bits": 28}], "config": {"lanes": 1, "fontsize": 10, "vspace": 80}}
BitsTypeResetNameDescription
31:4Reserved
3:0rw0x9ENEnable measurement for main

MAIN_MEAS_CTRL_SHADOWED

Configuration controls for main measurement.

The threshold fields are made wider than required (by 1 bit) to ensure there is room to adjust for measurement inaccuracies.

Fields

{"reg": [{"name": "HI", "bits": 10, "attr": ["rw"], "rotate": 0}, {"name": "LO", "bits": 10, "attr": ["rw"], "rotate": 0}, {"bits": 12}], "config": {"lanes": 1, "fontsize": 10, "vspace": 80}}
BitsTypeResetNameDescription
31:20Reserved
19:10rw0x1eaLOMin threshold for main measurement
9:0rw0x1feHIMax threshold for main measurement

USB_MEAS_CTRL_EN

Enable for measurement control

Fields

{"reg": [{"name": "EN", "bits": 4, "attr": ["rw"], "rotate": 0}, {"bits": 28}], "config": {"lanes": 1, "fontsize": 10, "vspace": 80}}
BitsTypeResetNameDescription
31:4Reserved
3:0rw0x9ENEnable measurement for usb

USB_MEAS_CTRL_SHADOWED

Configuration controls for usb measurement.

The threshold fields are made wider than required (by 1 bit) to ensure there is room to adjust for measurement inaccuracies.

Fields

{"reg": [{"name": "HI", "bits": 9, "attr": ["rw"], "rotate": 0}, {"name": "LO", "bits": 9, "attr": ["rw"], "rotate": 0}, {"bits": 14}], "config": {"lanes": 1, "fontsize": 10, "vspace": 80}}
BitsTypeResetNameDescription
31:18Reserved
17:9rw0xe6LOMin threshold for usb measurement
8:0rw0xfaHIMax threshold for usb measurement

RECOV_ERR_CODE

Recoverable Error code

  • Offset: 0x50
  • Reset default: 0x0
  • Reset mask: 0x7ff

Fields

{"reg": [{"name": "SHADOW_UPDATE_ERR", "bits": 1, "attr": ["rw1c"], "rotate": -90}, {"name": "IO_MEASURE_ERR", "bits": 1, "attr": ["rw1c"], "rotate": -90}, {"name": "IO_DIV2_MEASURE_ERR", "bits": 1, "attr": ["rw1c"], "rotate": -90}, {"name": "IO_DIV4_MEASURE_ERR", "bits": 1, "attr": ["rw1c"], "rotate": -90}, {"name": "MAIN_MEASURE_ERR", "bits": 1, "attr": ["rw1c"], "rotate": -90}, {"name": "USB_MEASURE_ERR", "bits": 1, "attr": ["rw1c"], "rotate": -90}, {"name": "IO_TIMEOUT_ERR", "bits": 1, "attr": ["rw1c"], "rotate": -90}, {"name": "IO_DIV2_TIMEOUT_ERR", "bits": 1, "attr": ["rw1c"], "rotate": -90}, {"name": "IO_DIV4_TIMEOUT_ERR", "bits": 1, "attr": ["rw1c"], "rotate": -90}, {"name": "MAIN_TIMEOUT_ERR", "bits": 1, "attr": ["rw1c"], "rotate": -90}, {"name": "USB_TIMEOUT_ERR", "bits": 1, "attr": ["rw1c"], "rotate": -90}, {"bits": 21}], "config": {"lanes": 1, "fontsize": 10, "vspace": 210}}
BitsTypeResetNameDescription
31:11Reserved
10rw1c0x0USB_TIMEOUT_ERRusb has timed out.
9rw1c0x0MAIN_TIMEOUT_ERRmain has timed out.
8rw1c0x0IO_DIV4_TIMEOUT_ERRio_div4 has timed out.
7rw1c0x0IO_DIV2_TIMEOUT_ERRio_div2 has timed out.
6rw1c0x0IO_TIMEOUT_ERRio has timed out.
5rw1c0x0USB_MEASURE_ERRusb has encountered a measurement error.
4rw1c0x0MAIN_MEASURE_ERRmain has encountered a measurement error.
3rw1c0x0IO_DIV4_MEASURE_ERRio_div4 has encountered a measurement error.
2rw1c0x0IO_DIV2_MEASURE_ERRio_div2 has encountered a measurement error.
1rw1c0x0IO_MEASURE_ERRio has encountered a measurement error.
0rw1c0x0SHADOW_UPDATE_ERROne of the shadow registers encountered an update error.

FATAL_ERR_CODE

Error code

  • Offset: 0x54
  • Reset default: 0x0
  • Reset mask: 0x7

Fields

{"reg": [{"name": "REG_INTG", "bits": 1, "attr": ["ro"], "rotate": -90}, {"name": "IDLE_CNT", "bits": 1, "attr": ["ro"], "rotate": -90}, {"name": "SHADOW_STORAGE_ERR", "bits": 1, "attr": ["ro"], "rotate": -90}, {"bits": 29}], "config": {"lanes": 1, "fontsize": 10, "vspace": 200}}
BitsTypeResetNameDescription
31:3Reserved
2ro0x0SHADOW_STORAGE_ERROne of the shadow registers encountered a storage error.
1ro0x0IDLE_CNTOne of the idle counts encountered a duplicate error.
0ro0x0REG_INTGRegister file has experienced a fatal integrity error.