Skip to content

Commit

Permalink
Add reset values and access modifiers from the SDK (#6)
Browse files Browse the repository at this point in the history
* Add reset values and access to all PWM registers

These are taken directly from the SDK
https://github.com/pine64/bl_iot_sdk/blob/master/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/pwm_reg.h#L470

* Add reset values and access modifiers to AON register

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/aon_reg.h#L1076

* Add reset values and access to CCI register

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/cci_reg.h#L132

* Add reset values and access for CKS registers

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/cks_reg.h#L71

* Add reset values and access for DMA registers

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/dma_reg.h#L648

* Add reset values and access to EF_CTRL registers

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/ef_ctrl_reg.h#L575

* Add reset values to EF_DAT_0 registers

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/ef_data_0_reg.h#L468

* Add reset values to EF_DATA_1

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/ef_data_1_reg.h#L237

* Add reset values and access to GLB registers

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/glb_reg.h#L2746

* Add reset values and access for GPIP registers

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/gpip_reg.h#L210

* Add reset values and access for HBN registers

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/hbn_reg.h#L492

* Add reset values and access to I2C registers

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/i2c_reg.h#L385

* Add reset values and access to IR registers

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/ir_reg.h#L388

* Add reset values and access for L1C registers

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/l1c_reg.h#L197

* Add reset values and access for PDS registers

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/pds_reg.h#L746

* Add reset values and access for SEC_DBG registers

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/sec_dbg_reg.h#L136

* Add reset values and access to SEC_ENG registers

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/sec_eng_reg.h#L1197

* Add values and access to SF_CTRL registers

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/sf_ctrl_reg.h#L1296

* Add reset values and access for SPI registers

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/spi_reg.h#L350

* Add reset values and access for TIMER registers

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/timer_reg.h#L445

* Add reset values and access for TZC_NSEC registers

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/tzc_nsec_reg.h#L182

* Add reset values for TZC_SEC registers

Note that unlike the TZC_NSEC registers these registers are not marked
as read only.

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/tzc_sec_reg.h#L182

* Add reset values and access for UART registers

Parsed from
https://github.com/pine64/bl_iot_sdk/blob/4c2e1c6dbbb44fd67ba680415e708a409164c425/components/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals/uart_reg.h#L468

* Fix reset value and access mistakes, change `se_trng_0_rosc_en`

Reset and access values were incorrectly applied to the wrong registers.

`se_trng_0_rosc_en` is called `se_trng_0_rosc_dis` in the SDK and has
been changed (same bit location in the same register).

* Fix resetMasks wrongly called resetValue
  • Loading branch information
username223 authored Feb 6, 2021
1 parent 12bd81c commit f309636
Showing 1 changed file with 1,330 additions and 6 deletions.
Loading

0 comments on commit f309636

Please sign in to comment.