Skip to content

Commit b24ac68

Browse files
committed
Merge branch 'refactor/split_esp32_soc_include_folder' into 'master'
refactor(soc): sort esp32 soc headers See merge request espressif/esp-idf!33308
2 parents aa908c8 + 44c0fae commit b24ac68

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+352
-560
lines changed

.codespellrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[codespell]
22
skip = build,*.yuv,components/fatfs/src/*,alice.txt,*.rgb,components/wpa_supplicant/*,components/esp_wifi/*,*.pem
3-
ignore-words-list = ser,dout,rsource,fram,inout,shs,ans,aci,unstall,unstalling,hart,wheight,wel,ot,fane,assertIn,registr
3+
ignore-words-list = ser,dout,rsource,fram,inout,shs,ans,aci,unstall,unstalling,hart,wheight,wel,ot,fane,assertIn,registr,oen
44
write-changes = true

.gitlab/ci/host-test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,3 +402,21 @@ test_nvs_gen_check:
402402
script:
403403
- cd ${IDF_PATH}/components/nvs_flash/nvs_partition_tool
404404
- pytest --noconftest test_nvs_gen_check.py --junitxml=XUNIT_RESULT.xml
405+
406+
make_sure_soc_caps_compatible_in_idf_build_apps:
407+
extends:
408+
- .host_test_template
409+
- .rules:dev-push
410+
artifacts:
411+
paths:
412+
- new.json
413+
- base.json
414+
when: always
415+
when: manual
416+
script:
417+
- python tools/ci/idf_build_apps_dump_soc_caps.py new.json
418+
- git fetch --depth=1 origin $CI_MERGE_REQUEST_DIFF_BASE_SHA
419+
- git checkout -f $CI_MERGE_REQUEST_DIFF_BASE_SHA
420+
- git checkout $CI_COMMIT_SHA -- tools/ci/idf_build_apps_dump_soc_caps.py
421+
- python tools/ci/idf_build_apps_dump_soc_caps.py base.json
422+
- diff new.json base.json

.gitlab/ci/rules.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@
225225
rules:
226226
- <<: *if-tag-release
227227

228+
.rules:dev-push:
229+
rules:
230+
- <<: *if-dev-push
231+
228232
# Do not upload caches on dev branches by default
229233
.rules:upload-python-cache:
230234
rules:

components/soc/esp32/include/soc/hwcrypto_reg.h

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
1-
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
/*
2+
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
146
#ifndef __HWCRYPTO_REG_H__
157
#define __HWCRYPTO_REG_H__
168

17-
#include "soc.h"
9+
#include "soc/soc.h"
1810

1911
/* registers for RSA acceleration via Multiple Precision Integer ops */
2012
#define RSA_MEM_M_BLOCK_BASE ((DR_REG_RSA_BASE)+0x000)

components/soc/esp32/include/soc/nrx_reg.h

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
// See the License for the specific language governing permissions and
13-
// limitations under the License.
1+
/*
2+
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
146

157
#pragma once
168

components/soc/esp32/include/soc/soc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#endif
1515

1616
#include "esp_bit_defs.h"
17-
#include "reg_base.h"
17+
#include "soc/reg_base.h"
1818

1919
#define PRO_CPU_NUM (0)
2020
#define APP_CPU_NUM (1)

components/soc/esp32/register/soc/.gitkeep

Whitespace-only changes.

components/soc/esp32/include/soc/apb_ctrl_reg.h renamed to components/soc/esp32/register/soc/apb_ctrl_reg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#warning "apb_ctrl_reg is deprecated due to duplicated with syscon_reg, please use syscon_reg instead, they are same"
1010

11-
#include "soc.h"
11+
#include "soc/soc.h"
1212
#define APB_CTRL_SYSCLK_CONF_REG (DR_REG_APB_CTRL_BASE + 0x0)
1313
/* APB_CTRL_QUICK_CLK_CHNG : R/W ;bitpos:[13] ;default: 1'b1 ; */
1414
/*description: */

components/soc/esp32/include/soc/dport_reg.h renamed to components/soc/esp32/register/soc/dport_reg.h

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
/*
2-
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6-
#ifndef _SOC_DPORT_REG_H_
7-
#define _SOC_DPORT_REG_H_
6+
#pragma once
87

9-
#include "soc.h"
8+
#include "soc/soc.h"
109

1110
#ifndef __ASSEMBLER__
12-
#include "dport_access.h"
11+
#include "soc/dport_access.h"
1312
#endif
1413

1514
/* Registers defined in this header file must be accessed using special macros,
@@ -3210,8 +3209,8 @@
32103209
#define DPORT_RECORD_PRO_PDEBUGSTATUS_V 0xFF
32113210
#define DPORT_RECORD_PRO_PDEBUGSTATUS_S 0
32123211
/* register layout:
3213-
* BBCAUSE [5..0]: Indicates cause for bubble cycle. See below for posible values. When DPORT_RECORD_PDEBUGINST_SZ == 0
3214-
* INSNTYPE[5..0]: Indicates type of instruction retiring in the W stage. See below for posible values. When DPORT_RECORD_PDEBUGINST_SZ > 0
3212+
* BBCAUSE [5..0]: Indicates cause for bubble cycle. See below for possible values. When DPORT_RECORD_PDEBUGINST_SZ == 0
3213+
* INSNTYPE[5..0]: Indicates type of instruction retiring in the W stage. See below for possible values. When DPORT_RECORD_PDEBUGINST_SZ > 0
32153214
*/
32163215
#define DPORT_RECORD_PDEBUGSTATUS_BBCAUSE_M ((DPORT_RECORD_PDEBUGSTATUS_BBCAUSE_V)<<(DPORT_RECORD_PDEBUGSTATUS_BBCAUSE_S))
32173216
#define DPORT_RECORD_PDEBUGSTATUS_BBCAUSE_V 0x3F
@@ -4287,5 +4286,3 @@
42874286
#define TRACEMEM_MUX_BLK0_ONLY 1
42884287
#define TRACEMEM_MUX_BLK1_ONLY 2
42894288
#define TRACEMEM_MUX_PROBLK1_APPBLK0 3
4290-
4291-
#endif /*_SOC_DPORT_REG_H_ */

0 commit comments

Comments
 (0)