esp32: include register headers in soc.h
This fixes a build issue on esp32 that was introduced recently with the merge of an old PR. Include the register headers in soc.h rather than soc.c and make them available to other code via soc.h Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
c8b114f25d
commit
942ab7ed35
|
@ -22,16 +22,6 @@
|
|||
#define DPORT_APPCPU_CTRL_B _REG(DPORT_BASE, 0x030)
|
||||
#define DPORT_APPCPU_CTRL_C _REG(DPORT_BASE, 0x034)
|
||||
|
||||
/* Two fields with same naming conventions live in two different
|
||||
* registers and have different widths...
|
||||
*/
|
||||
#define RTC_CNTL_SW_STALL_APPCPU_C0 (0x03 << 0) /* reg: OPTIONS0 */
|
||||
#define RTC_CNTL_SW_STALL_APPCPU_C1 (0x3f << 20) /* reg: SW_CPU_STALL */
|
||||
|
||||
#define DPORT_APPCPU_CLKGATE_EN BIT(0)
|
||||
#define DPORT_APPCPU_RUNSTALL BIT(0)
|
||||
#define DPORT_APPCPU_RESETTING BIT(0)
|
||||
|
||||
struct cpustart_rec {
|
||||
int cpu;
|
||||
void (*fn)(int, void *);
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
/* Include esp-idf headers first to avoid redefining BIT() macro */
|
||||
#include <soc/dport_reg.h>
|
||||
#include "soc.h"
|
||||
#include <soc/rtc_cntl_reg.h>
|
||||
#include <soc/timer_group_reg.h>
|
||||
#include <xtensa/config/core-isa.h>
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
|
||||
#ifndef __SOC_H__
|
||||
#define __SOC_H__
|
||||
|
||||
#include <soc/dport_reg.h>
|
||||
#include <soc/rtc_cntl_reg.h>
|
||||
#include <rom/ets_sys.h>
|
||||
|
||||
#include <zephyr/types.h>
|
||||
|
|
Loading…
Reference in a new issue