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 26, 2023
1 parent 13132f7 commit b103e74
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 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_ */
10 changes: 0 additions & 10 deletions soc/arm/quicklogic_eos_s3/soc_pinmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,4 @@

#include <soc.h>

/* Set UART TX to PAD44 */
#define UART_TXD_PAD44 (UART_TXD_SEL_PAD44 | PAD_CTRL_SEL_AO_REG \
| PAD_OEN_NORMAL | PAD_P_Z | PAD_SR_SLOW \
| PAD_E_4MA | PAD_REN_DISABLE | PAD_SMT_DISABLE)

/* Set UART RX to PAD45 */
#define UART_RXD_PAD45 (UART_RXD_SEL_PAD45 | PAD_CTRL_SEL_AO_REG \
| PAD_OEN_DISABLE | PAD_P_Z | PAD_SR_SLOW \
| PAD_E_4MA | PAD_REN_ENABLE | PAD_SMT_DISABLE)

#endif /* _QUICKLOGIC_EOS_S3_SOC_PINMAP_H_ */

0 comments on commit b103e74

Please sign in to comment.