Skip to content

Commit

Permalink
Merge branch 'fix/rng_register_prefix_discrepency_newer_targets_v5.1'…
Browse files Browse the repository at this point in the history
… into 'release/v5.1'

Fix: RNG register prefix discrepancy for ESP32C6 and ESP32H2 (v5.1)

See merge request espressif/esp-idf!27684
  • Loading branch information
mahavirj committed Dec 8, 2023
2 parents d52d82e + 6a990a3 commit ca02c6d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions components/soc/esp32c6/include/soc/lpperi_reg.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -137,13 +137,13 @@ extern "C" {
* need_des
*/
#define LPPERI_RNG_DATA_REG (DR_REG_LPPERI_BASE + 0x8)
/** LPPERI_RND_DATA : RO; bitpos: [31:0]; default: 0;
/** LPPERI_RNG_DATA : RO; bitpos: [31:0]; default: 0;
* need_des
*/
#define LPPERI_RND_DATA 0xFFFFFFFFU
#define LPPERI_RND_DATA_M (LPPERI_RND_DATA_V << LPPERI_RND_DATA_S)
#define LPPERI_RND_DATA_V 0xFFFFFFFFU
#define LPPERI_RND_DATA_S 0
#define LPPERI_RNG_DATA 0xFFFFFFFFU
#define LPPERI_RNG_DATA_M (LPPERI_RNG_DATA_V << LPPERI_RNG_DATA_S)
#define LPPERI_RNG_DATA_V 0xFFFFFFFFU
#define LPPERI_RNG_DATA_S 0

/** LPPERI_CPU_REG register
* need_des
Expand Down
6 changes: 3 additions & 3 deletions components/soc/esp32c6/include/soc/lpperi_struct.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -101,10 +101,10 @@ typedef union {
*/
typedef union {
struct {
/** rnd_data : RO; bitpos: [31:0]; default: 0;
/** rng_data : RO; bitpos: [31:0]; default: 0;
* need_des
*/
uint32_t rnd_data:32;
uint32_t rng_data:32;
};
uint32_t val;
} lpperi_rng_data_reg_t;
Expand Down
12 changes: 6 additions & 6 deletions components/soc/esp32h2/include/soc/lpperi_reg.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -144,13 +144,13 @@ extern "C" {
* need_des
*/
#define LPPERI_RNG_DATA_REG (DR_REG_LPPERI_BASE + 0x8)
/** LPPERI_RND_DATA : RO; bitpos: [31:0]; default: 0;
/** LPPERI_RNG_DATA : RO; bitpos: [31:0]; default: 0;
* need_des
*/
#define LPPERI_RND_DATA 0xFFFFFFFFU
#define LPPERI_RND_DATA_M (LPPERI_RND_DATA_V << LPPERI_RND_DATA_S)
#define LPPERI_RND_DATA_V 0xFFFFFFFFU
#define LPPERI_RND_DATA_S 0
#define LPPERI_RNG_DATA 0xFFFFFFFFU
#define LPPERI_RNG_DATA_M (LPPERI_RNG_DATA_V << LPPERI_RNG_DATA_S)
#define LPPERI_RNG_DATA_V 0xFFFFFFFFU
#define LPPERI_RNG_DATA_S 0

/** LPPERI_CPU_REG register
* need_des
Expand Down
6 changes: 3 additions & 3 deletions components/soc/esp32h2/include/soc/lpperi_struct.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -104,10 +104,10 @@ typedef union {
*/
typedef union {
struct {
/** rnd_data : RO; bitpos: [31:0]; default: 0;
/** rng_data : RO; bitpos: [31:0]; default: 0;
* need_des
*/
uint32_t rnd_data:32;
uint32_t rng_data:32;
};
uint32_t val;
} lpperi_rng_data_reg_t;
Expand Down

0 comments on commit ca02c6d

Please sign in to comment.