Skip to content

Commit fd42bf7

Browse files
pflnashif
authored andcommitted
soc: Rename reserved function names
Rename reserved function names in the soc/ subdirectory. Signed-off-by: Patrik Flykt <[email protected]>
1 parent 5aecf9d commit fd42bf7

File tree

34 files changed

+84
-84
lines changed

34 files changed

+84
-84
lines changed

arch/arm/include/cortex_m/exc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ static ALWAYS_INLINE void z_ExcSetup(void)
144144
*
145145
* @return N/A
146146
*/
147-
static ALWAYS_INLINE void _ClearFaults(void)
147+
static ALWAYS_INLINE void z_clearfaults(void)
148148
{
149149
#if defined(CONFIG_ARMV6_M_ARMV8_M_BASELINE)
150150
#elif defined(CONFIG_ARMV7_M_ARMV8_M_MAINLINE)

drivers/pinmux/pinmux_esp32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static int pinmux_pullup(struct device *dev, u32_t pin, u8_t func)
112112
return -EINVAL;
113113
}
114114

115-
#define CFG(id) ((GPIO_ ## id ## _REG) & 0xff)
115+
#define CFG(id) ((GPIO_ ## id ## Z_REG) & 0xff)
116116
static int pinmux_input(struct device *dev, u32_t pin, u8_t func)
117117
{
118118
static const u8_t offs[2][3] = {

soc/arc/quark_se_c1000_ss/power.c

+9-9
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@
1818
#include "vreg.h"
1919

2020
#if (defined(CONFIG_SYS_POWER_DEEP_SLEEP_STATES))
21-
extern void _power_soc_sleep(void);
22-
extern void _power_soc_deep_sleep(void);
23-
extern void _power_soc_lpss_mode(void);
21+
extern void z_power_soc_sleep(void);
22+
extern void z_power_soc_deep_sleep(void);
23+
extern void z_power_soc_lpss_mode(void);
2424

25-
static void _deep_sleep(enum power_states state)
25+
static void deep_sleep(enum power_states state)
2626
{
2727
qm_power_soc_set_ss_restore_flag();
2828

2929
switch (state) {
3030
case SYS_POWER_STATE_DEEP_SLEEP_2:
31-
_power_soc_sleep();
31+
z_power_soc_sleep();
3232
break;
3333
case SYS_POWER_STATE_DEEP_SLEEP_3:
34-
_power_soc_deep_sleep();
34+
z_power_soc_deep_sleep();
3535
break;
3636
default:
3737
break;
@@ -54,11 +54,11 @@ void sys_set_power_state(enum power_states state)
5454
case SYS_POWER_STATE_DEEP_SLEEP_1:
5555
qm_ss_power_soc_lpss_enable();
5656
qm_power_soc_set_ss_restore_flag();
57-
_power_soc_lpss_mode();
57+
z_power_soc_lpss_mode();
5858
break;
5959
case SYS_POWER_STATE_DEEP_SLEEP_2:
6060
case SYS_POWER_STATE_DEEP_SLEEP_3:
61-
_deep_sleep(state);
61+
deep_sleep(state);
6262
break;
6363
#endif
6464
default:
@@ -90,7 +90,7 @@ void _sys_pm_power_state_exit_post_ops(enum power_states state)
9090
* its execution.
9191
*/
9292
if ((QM_SCSS_GP->gp0 & GP0_BIT_SLEEP_READY) == 0) {
93-
_quark_se_ss_ready();
93+
z_quark_se_ss_ready();
9494
__builtin_arc_seti(0);
9595
} else {
9696
QM_SCSS_GP->gp0 &= ~GP0_BIT_SLEEP_READY;

soc/arc/quark_se_c1000_ss/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static int quark_se_arc_init(struct device *arg)
2424
{
2525
ARG_UNUSED(arg);
2626

27-
_quark_se_ss_ready();
27+
quark_se_ss_ready();
2828

2929
return 0;
3030
}

soc/arc/quark_se_c1000_ss/soc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
#define DT_RTC_0_IRQ_FLAGS (IOAPIC_EDGE | IOAPIC_HIGH)
202202

203203

204-
static inline void _quark_se_ss_ready(void)
204+
static inline void quark_se_ss_ready(void)
205205
{
206206
shared_data->flags |= ARC_READY;
207207
}

soc/arc/quark_se_c1000_ss/soc_power.S

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
#ifdef CONFIG_SYS_POWER_DEEP_SLEEP_STATES
1212
GDATA(_pm_arc_context)
1313

14-
GTEXT(_sys_resume_from_deep_sleep)
15-
GTEXT(_power_restore_cpu_context)
16-
GTEXT(_power_soc_sleep)
17-
GTEXT(_power_soc_deep_sleep)
18-
GTEXT(_power_soc_lpss_mode)
14+
GTEXT(sys_resume_from_deep_sleep)
15+
GTEXT(z_power_restore_cpu_context)
16+
GTEXT(z_power_soc_sleep)
17+
GTEXT(z_power_soc_deep_sleep)
18+
GTEXT(z_power_soc_lpss_mode)
1919

2020
#define GPS0_REGISTER 0xb0800100
2121
#define GP0_REGISTER 0xb0800114
@@ -47,7 +47,7 @@ SECTION_FUNC(TEXT, save_cpu_context)
4747

4848
j_s [blink] /* Jump to context of BLINK register. */
4949

50-
SECTION_FUNC(TEXT, _power_soc_sleep)
50+
SECTION_FUNC(TEXT, z_power_soc_sleep)
5151
/*
5252
* Save the return address.
5353
* The restore function will pop this and jump
@@ -60,7 +60,7 @@ SECTION_FUNC(TEXT, _power_soc_sleep)
6060
j @qm_power_soc_sleep
6161
/* Does not return */
6262

63-
SECTION_FUNC(TEXT, _power_soc_deep_sleep)
63+
SECTION_FUNC(TEXT, z_power_soc_deep_sleep)
6464
/*
6565
* Save the return address.
6666
* The restore function will pop this and jump
@@ -73,7 +73,7 @@ SECTION_FUNC(TEXT, _power_soc_deep_sleep)
7373
j @qm_power_soc_deep_sleep
7474
/* Does not return */
7575

76-
SECTION_FUNC(TEXT, _power_soc_lpss_mode)
76+
SECTION_FUNC(TEXT, z_power_soc_lpss_mode)
7777
/*
7878
* Setup 'sleep' instruction operand.
7979
*/

soc/arm/atmel_sam/sam3x/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static int atmel_sam3x_init(struct device *arg)
209209

210210
key = irq_lock();
211211

212-
_ClearFaults();
212+
z_clearfaults();
213213

214214
/*
215215
* Set FWS (Flash Wait State) value before increasing Master Clock

soc/arm/atmel_sam/sam4s/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ static int atmel_sam4s_init(struct device *arg)
197197
key = irq_lock();
198198

199199
/* Clear all faults. */
200-
_ClearFaults();
200+
z_clearfaults();
201201

202202
/*
203203
* Set FWS (Flash Wait State) value before increasing Master Clock

soc/arm/atmel_sam/same70/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static int atmel_same70_init(struct device *arg)
234234
}
235235

236236
/* Clear all faults */
237-
_ClearFaults();
237+
z_clearfaults();
238238

239239
/*
240240
* Set FWS (Flash Wait State) value before increasing Master Clock

soc/arm/atmel_sam0/samd20/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static int atmel_samd_init(struct device *arg)
172172

173173
key = irq_lock();
174174

175-
_ClearFaults();
175+
z_clearfaults();
176176

177177
flash_waitstates_init();
178178
osc8m_init();

soc/arm/atmel_sam0/samd21/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ static int atmel_samd_init(struct device *arg)
173173

174174
key = irq_lock();
175175

176-
_ClearFaults();
176+
z_clearfaults();
177177

178178
flash_waitstates_init();
179179
osc8m_init();

soc/arm/nordic_nrf/nrf52/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static int nordicsemi_nrf52_init(struct device *arg)
6969
nrf_power_dcdcen_set(true);
7070
#endif
7171

72-
_ClearFaults();
72+
z_clearfaults();
7373

7474
/* Install default handler that simply resets the CPU
7575
* if configured in the kernel, NOP otherwise

soc/arm/nordic_nrf/nrf91/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static int nordicsemi_nrf91_init(struct device *arg)
5050
NRF_NVMC->ICACHECNF = NVMC_ICACHECNF_CACHEEN_Msk;
5151
#endif
5252

53-
_ClearFaults();
53+
z_clearfaults();
5454

5555
/* Install default handler that simply resets the CPU
5656
* if configured in the kernel, NOP otherwise

soc/arm/nxp_imx/mcimx6x_m4/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static int mcimx6x_m4_init(struct device *arg)
187187
/* Initialize Cache */
188188
SOC_CacheInit();
189189

190-
_ClearFaults();
190+
z_clearfaults();
191191

192192
/* Initialize clock */
193193
SOC_ClockInit();

soc/arm/nxp_imx/rt/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ static int imxrt_init(struct device *arg)
210210
SCB_EnableDCache();
211211
}
212212

213-
_ClearFaults();
213+
z_clearfaults();
214214

215215
/* Initialize system clock */
216216
clkInit();

soc/arm/nxp_kinetis/k6x/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ static int fsl_frdm_k64f_init(struct device *arg)
180180
SYSMPU->CESR = temp_reg;
181181
#endif /* !CONFIG_ARM_MPU */
182182

183-
_ClearFaults();
183+
z_clearfaults();
184184

185185
/* Initialize PLL/system clock to 120 MHz */
186186
clkInit();

soc/arm/nxp_kinetis/kwx/soc_kw2xd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ static int kw2xd_init(struct device *arg)
189189
/* release I/O power hold to allow normal run state */
190190
PMC->REGSC |= PMC_REGSC_ACKISO_MASK;
191191

192-
_ClearFaults();
192+
z_clearfaults();
193193

194194
/* Initialize PLL/system clock to 48 MHz */
195195
clkInit();

soc/arm/nxp_lpc/lpc54xxx/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static int nxp_lpc54114_init(struct device *arg)
8787
/* disable interrupts */
8888
oldLevel = irq_lock();
8989

90-
_ClearFaults();
90+
z_clearfaults();
9191

9292
/* Initialize FRO/system clock to 48 MHz */
9393
clkInit();

soc/arm/silabs_exx32/common/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static int silabs_exx32_init(struct device *arg)
119119
/* handle chip errata */
120120
CHIP_Init();
121121

122-
_ClearFaults();
122+
z_clearfaults();
123123

124124
#ifdef CONFIG_SOC_GECKO_EMU_DCDC
125125
dcdc_init();

soc/arm/st_stm32/stm32f0/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static int stm32f0_init(struct device *arg)
6262

6363
key = irq_lock();
6464

65-
_ClearFaults();
65+
z_clearfaults();
6666

6767
/* Install default handler that simply resets the CPU
6868
* if configured in the kernel, NOP otherwise

soc/arm/st_stm32/stm32f1/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static int stm32f1_init(struct device *arg)
3030

3131
key = irq_lock();
3232

33-
_ClearFaults();
33+
z_clearfaults();
3434

3535
/* Install default handler that simply resets the CPU
3636
* if configured in the kernel, NOP otherwise

soc/arm/st_stm32/stm32f2/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static int stm32f2_init(struct device *arg)
3434

3535
key = irq_lock();
3636

37-
_ClearFaults();
37+
z_clearfaults();
3838

3939
/* Install default handler that simply resets the CPU
4040
* if configured in the kernel, NOP otherwise

soc/arm/st_stm32/stm32f3/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static int stm32f3_init(struct device *arg)
3030

3131
key = irq_lock();
3232

33-
_ClearFaults();
33+
z_clearfaults();
3434

3535
/* Install default handler that simply resets the CPU
3636
* if configured in the kernel, NOP otherwise

soc/arm/st_stm32/stm32f4/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static int st_stm32f4_init(struct device *arg)
3131

3232
key = irq_lock();
3333

34-
_ClearFaults();
34+
z_clearfaults();
3535

3636
/* Install default handler that simply resets the CPU
3737
* if configured in the kernel, NOP otherwise

soc/arm/st_stm32/stm32f7/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static int st_stm32f7_init(struct device *arg)
3737
SCB_EnableDCache();
3838
}
3939

40-
_ClearFaults();
40+
z_clearfaults();
4141

4242
/* Install default handler that simply resets the CPU
4343
* if configured in the kernel, NOP otherwise

soc/arm/st_stm32/stm32l0/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static int stm32l0_init(struct device *arg)
3232

3333
key = irq_lock();
3434

35-
_ClearFaults();
35+
z_clearfaults();
3636

3737
/* Install default handler that simply resets the CPU
3838
* if configured in the kernel, NOP otherwise

soc/arm/st_stm32/stm32l4/soc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static int stm32l4_init(struct device *arg)
3131

3232
key = irq_lock();
3333

34-
_ClearFaults();
34+
z_clearfaults();
3535

3636
/* Install default handler that simply resets the CPU
3737
* if configured in the kernel, NOP otherwise

soc/arm/ti_lm3s6965/reboot.S

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ _ASM_FILE_PROLOGUE
1313

1414
GDATA(_interrupt_stack)
1515

16-
GTEXT(_do_software_reboot)
17-
SECTION_FUNC(TEXT,_do_software_reboot)
16+
GTEXT(z_do_software_reboot)
17+
SECTION_FUNC(TEXT,z_do_software_reboot)
1818

1919
eors r0, r0
2020

@@ -26,8 +26,8 @@ SECTION_FUNC(TEXT,_do_software_reboot)
2626
bx r0
2727

2828

29-
GTEXT(_force_exit_one_nested_irq)
30-
SECTION_FUNC(TEXT,_force_exit_one_nested_irq)
29+
GTEXT(z_force_exit_one_nested_irq)
30+
SECTION_FUNC(TEXT,z_force_exit_one_nested_irq)
3131

3232
ldr r0, =_SCS_ICSR_RETTOBASE
3333
ldr r1, =_SCS_ICSR
@@ -41,9 +41,9 @@ SECTION_FUNC(TEXT,_force_exit_one_nested_irq)
4141
*/
4242
ittee eq
4343
ldreq lr, =0xfffffff1
44-
ldreq r2, =_force_exit_one_nested_irq
44+
ldreq r2, =z_force_exit_one_nested_irq
4545
ldrne lr, =0xfffffffd
46-
ldrne r2, =_do_software_reboot
46+
ldrne r2, =z_do_software_reboot
4747

4848
ldr ip, =_interrupt_stack
4949
add.w ip, ip, #(___esf_t_SIZEOF * 2) /* enough for a stack frame */

soc/arm/ti_lm3s6965/sys_arch_reboot.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ void sys_arch_reboot(int type)
2828
* which address can _always_ be found in the vector table reset slot
2929
* located at address 0x4.
3030
*/
31-
extern void _do_software_reboot(void);
32-
extern void _force_exit_one_nested_irq(void);
31+
extern void z_do_software_reboot(void);
32+
extern void z_force_exit_one_nested_irq(void);
3333
/*
3434
* force enable interrupts locked via PRIMASK if somehow disabled: the
3535
* boot code does not enable them
3636
*/
3737
__asm__ volatile("cpsie i" :::);
3838

3939
if ((SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk) == 0) {
40-
_do_software_reboot();
40+
z_do_software_reboot();
4141
} else {
4242
__asm__ volatile(
43-
"ldr r0, =_force_exit_one_nested_irq\n\t"
43+
"ldr r0, =z_force_exit_one_nested_irq\n\t"
4444
"bx r0\n\t"
4545
:::);
4646
}

0 commit comments

Comments
 (0)