Skip to content

Commit

Permalink
soc: quicklogic_eos_s3: remove unneeded code
Browse files Browse the repository at this point in the history
Pinmuxing is now done by a pinctrl driver, not by board.c,
so the code used previously for pinmuxing can be removed.

Fixes #59186.

Signed-off-by: Wojciech Sipak <wsipak@antmicro.com>
  • Loading branch information
wsipak committed Jul 6, 2023
1 parent 65da7a4 commit 2949b33
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
14 changes: 0 additions & 14 deletions soc/arm/quicklogic_eos_s3/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@ void eos_s3_lock_disable(void)
MISC_CTRL->LOCK_KEY_CTRL = 1;
}

int eos_s3_io_mux(uint32_t pad_nr, uint32_t pad_cfg)
{
volatile uint32_t *p = (uint32_t *)IO_MUX_BASE;

if (pad_nr > EOS_S3_MAX_PAD_NR) {
return -EINVAL;
}

p += pad_nr;
*p = pad_cfg;

return 0;
}

static void eos_s3_cru_init(void)
{
/* Set desired frequency */
Expand Down
4 changes: 0 additions & 4 deletions soc/arm/quicklogic_eos_s3/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@
#define OSC_SET_FREQ_INC(FREQ) (AIP->OSC_CTRL_1 = ((FREQ / 32768) - 3) & 0xFFF)
#define OSC_GET_FREQ_INC() (((AIP->OSC_CTRL_1 & 0xFFF) + 3) * 32768)

#define EOS_S3_MAX_PAD_NR 45

void eos_s3_lock_enable(void);
void eos_s3_lock_disable(void);

int eos_s3_io_mux(uint32_t pad_nr, uint32_t pad_cfg);

#endif /* _SOC__H_ */

0 comments on commit 2949b33

Please sign in to comment.