Merge branch 'fix/rng_register_prefix_discrepency_older_targets' into 'master'

fix(soc): Add the unavailable TRM mentioned RNG_DATA_REG register for C2 and C3

Closes DOC-5138 and DOC-5135

See merge request espressif/esp-idf!36602
This commit is contained in:
Mahavir Jain 2025-01-29 12:51:54 +08:00
commit c97b63db32
4 changed files with 13 additions and 15 deletions

View File

@ -7,6 +7,7 @@
#pragma once
#include "soc.h"
#include "soc/syscon_reg.h"
/* Hardware random number generator register */
#define WDEV_RND_REG 0x600260b0
#define WDEV_RND_REG RNG_DATA_REG

View File

@ -503,6 +503,8 @@ en only when have access the rom have clock.*/
#define SYSCON_RND_DATA_V 0xFFFFFFFF
#define SYSCON_RND_DATA_S 0
#define RNG_DATA_REG SYSCON_RND_DATA_REG
#define SYSCON_PERI_BACKUP_CONFIG_REG (DR_REG_SYSCON_BASE + 0xB4)
/* SYSCON_PERI_BACKUP_ENA : R/W ;bitpos:[31] ;default: 1'b0 ; */
/*description: reg_peri_backup_ena.*/

View File

@ -1,20 +1,13 @@
// Copyright 2020 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*
* SPDX-FileCopyrightText: 2020-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include "soc.h"
#include "soc/syscon_reg.h"
/* Hardware random number generator register */
#define WDEV_RND_REG 0x600260b0
#define WDEV_RND_REG RNG_DATA_REG

View File

@ -497,6 +497,8 @@ extern "C" {
#define SYSCON_RND_DATA_V 0xFFFFFFFF
#define SYSCON_RND_DATA_S 0
#define RNG_DATA_REG SYSCON_RND_DATA_REG
#define SYSCON_PERI_BACKUP_CONFIG_REG (DR_REG_SYSCON_BASE + 0x0B4)
/* SYSCON_PERI_BACKUP_ENA : R/W ;bitpos:[31] ;default: 1'b0 ; */
/*description: */