From a4c12368e6ad739eecf0bebd9f6d7eec1926144b Mon Sep 17 00:00:00 2001 From: Jamin Lin Date: Mon, 8 Apr 2024 17:19:39 +0800 Subject: [PATCH] remove unused files Signed-off-by: Jamin Lin Change-Id: I688d392af509530e3a4065dea30f4a3f9e853865 --- boards/arm/ast10x0_mp/fun_def_list.h | 275 --------------------------- boards/arm/ast10x0_mp/fun_id.h | 13 -- 2 files changed, 288 deletions(-) delete mode 100644 boards/arm/ast10x0_mp/fun_def_list.h delete mode 100644 boards/arm/ast10x0_mp/fun_id.h diff --git a/boards/arm/ast10x0_mp/fun_def_list.h b/boards/arm/ast10x0_mp/fun_def_list.h deleted file mode 100644 index 61521fe..0000000 --- a/boards/arm/ast10x0_mp/fun_def_list.h +++ /dev/null @@ -1,275 +0,0 @@ -/* - * Copyright (c) 2020-2023 Aspeed Technology Inc. - * - * SPDX-License-Identifier: Apache-2.0 - */ -#include - -#ifdef CONFIG_ARM_ICE -FUN_DEFINE(DT_NODELABEL(pinctrl_arm_ice_default), ARM_TRST, ARM_TCK, ARM_TDI, ARM_TDO, ARM_TMS) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc0), okay) && CONFIG_ADC_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_adc0_default), ADC0) -FUN_DEFINE(DT_NODELABEL(pinctrl_adc1_default), ADC1) -FUN_DEFINE(DT_NODELABEL(pinctrl_adc2_default), ADC2) -FUN_DEFINE(DT_NODELABEL(pinctrl_adc3_default), ADC3) -FUN_DEFINE(DT_NODELABEL(pinctrl_adc4_default), ADC4) -FUN_DEFINE(DT_NODELABEL(pinctrl_adc5_default), ADC5) -FUN_DEFINE(DT_NODELABEL(pinctrl_adc6_default), ADC6) -FUN_DEFINE(DT_NODELABEL(pinctrl_adc7_default), ADC7) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc1), okay) && CONFIG_ADC_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_adc8_default), ADC8) -FUN_DEFINE(DT_NODELABEL(pinctrl_adc9_default), ADC9) -FUN_DEFINE(DT_NODELABEL(pinctrl_adc10_default), ADC10) -FUN_DEFINE(DT_NODELABEL(pinctrl_adc11_default), ADC11) -FUN_DEFINE(DT_NODELABEL(pinctrl_adc12_default), ADC12) -FUN_DEFINE(DT_NODELABEL(pinctrl_adc13_default), ADC13) -FUN_DEFINE(DT_NODELABEL(pinctrl_adc14_default), ADC14) -FUN_DEFINE(DT_NODELABEL(pinctrl_adc15_default), ADC15) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(pwm), okay) && CONFIG_PWM_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_pwm0_default), PWM0) -FUN_DEFINE(DT_NODELABEL(pinctrl_pwm1_default), PWM1) -FUN_DEFINE(DT_NODELABEL(pinctrl_pwm2_default), PWM2) -FUN_DEFINE(DT_NODELABEL(pinctrl_pwm3_default), PWM3) -FUN_DEFINE(DT_NODELABEL(pinctrl_pwm4_default), PWM4) -FUN_DEFINE(DT_NODELABEL(pinctrl_pwm5_default), PWM5) -FUN_DEFINE(DT_NODELABEL(pinctrl_pwm6_default), PWM6) -FUN_DEFINE(DT_NODELABEL(pinctrl_pwm7_default), PWM7) -FUN_DEFINE(DT_NODELABEL(pinctrl_pwm8_default), PWM8) -FUN_DEFINE(DT_NODELABEL(pinctrl_pwm9_default), PWM9) -FUN_DEFINE(DT_NODELABEL(pinctrl_pwm10_default), PWM10) -FUN_DEFINE(DT_NODELABEL(pinctrl_pwm11_default), PWM11) -FUN_DEFINE(DT_NODELABEL(pinctrl_pwm12_default), PWM12) -FUN_DEFINE(DT_NODELABEL(pinctrl_pwm13_default), PWM13) -FUN_DEFINE(DT_NODELABEL(pinctrl_pwm14_default), PWM14) -FUN_DEFINE(DT_NODELABEL(pinctrl_pwm15_default), PWM15) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(sgpiom), okay) && CONFIG_GPIO_ASPEED_SGPIOM -FUN_DEFINE(DT_NODELABEL(pinctrl_sgpiom_default), SGPMCLK, SGPMLD, SGPMO, SGPMI) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(tach), okay) && CONFIG_TACH_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_tach0_default), TACH0) -FUN_DEFINE(DT_NODELABEL(pinctrl_tach1_default), TACH1) -FUN_DEFINE(DT_NODELABEL(pinctrl_tach2_default), TACH2) -FUN_DEFINE(DT_NODELABEL(pinctrl_tach3_default), TACH3) -FUN_DEFINE(DT_NODELABEL(pinctrl_tach4_default), TACH4) -FUN_DEFINE(DT_NODELABEL(pinctrl_tach5_default), TACH5) -FUN_DEFINE(DT_NODELABEL(pinctrl_tach6_default), TACH6) -FUN_DEFINE(DT_NODELABEL(pinctrl_tach7_default), TACH7) -FUN_DEFINE(DT_NODELABEL(pinctrl_tach8_default), TACH8) -FUN_DEFINE(DT_NODELABEL(pinctrl_tach9_default), TACH9) -FUN_DEFINE(DT_NODELABEL(pinctrl_tach10_default), TACH10) -FUN_DEFINE(DT_NODELABEL(pinctrl_tach11_default), TACH11) -FUN_DEFINE(DT_NODELABEL(pinctrl_tach12_default), TACH12) -FUN_DEFINE(DT_NODELABEL(pinctrl_tach13_default), TACH13) -FUN_DEFINE(DT_NODELABEL(pinctrl_tach14_default), TACH14) -FUN_DEFINE(DT_NODELABEL(pinctrl_tach15_default), TACH15) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(jtag0), okay) && CONFIG_JTAG_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_jtagm0_default), MTRSTN1, MTDI1, MTCK1, MTMS1, MTDO1) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(jtag1), okay) && CONFIG_JTAG_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_jtagm1_default), MTRSTN2, MTDI2, MTCK2, MTMS2, MTDO2) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2cfilter), okay) && CONFIG_I2C_PFR_FILTER -FUN_DEFINE(DT_NODELABEL(pinctrl_smbflt_default), SMBF1SCLIN, SMBF1SDAIN, SMBF1SCLOUT, SMBF1SDAOUT, -SMBF2SCLIN, SMBF2SDAIN, SMBF2SCLOUT, SMBF2SDAOUT, SMBF3SCLIN, SMBF3SDAIN, SMBF3SCLOUT, SMBF3SDAOUT, -SMBF4SCLIN, SMBF4SDAIN, SMBF4SCLOUT, SMBF4SDAOUT) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c0), okay) && CONFIG_I2C_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_i2c0_default), SCL1, SDA1) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay) && CONFIG_I2C_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_i2c1_default), SCL2, SDA2) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay) && CONFIG_I2C_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_i2c2_default), SCL3, SDA3) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c3), okay) && CONFIG_I2C_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_i2c3_default), SCL4, SDA4) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c4), okay) && CONFIG_I2C_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_i2c4_default), SCL5, SDA5) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c5), okay) && CONFIG_I2C_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_i2c5_default), SCL6, SDA6) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c6), okay) && CONFIG_I2C_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_i2c6_default), SCL7, SDA7) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c7), okay) && CONFIG_I2C_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_i2c7_default), SCL8, SDA8) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c8), okay) && CONFIG_I2C_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_i2c8_default), SCL9, SDA9) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c9), okay) && CONFIG_I2C_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_i2c9_default), SCL10, SDA10) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c10), okay) && CONFIG_I2C_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_i2c10_default), SCL11, SDA11) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c11), okay) && CONFIG_I2C_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_i2c11_default), SCL12, SDA12) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c12), okay) && CONFIG_I2C_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_i2c12_default), SCL13, SDA13) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c13), okay) && CONFIG_I2C_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_i2c13_default), SCL14, SDA14) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart1), okay) && (CONFIG_UART_ASPEED || CONFIG_UART_NS16550) -FUN_DEFINE(DT_NODELABEL(pinctrl_uart1_default), TXD1, RXD1) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart2), okay) && (CONFIG_UART_ASPEED || CONFIG_UART_NS16550) -FUN_DEFINE(DT_NODELABEL(pinctrl_uart2_default), TXD2, RXD2) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart3), okay) && (CONFIG_UART_ASPEED || CONFIG_UART_NS16550) -FUN_DEFINE(DT_NODELABEL(pinctrl_uart3_default), TXD3, RXD3) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart4), okay) && (CONFIG_UART_ASPEED || CONFIG_UART_NS16550) -FUN_DEFINE(DT_NODELABEL(pinctrl_uart4_default), TXD4, RXD4) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart6), okay) && (CONFIG_UART_ASPEED || CONFIG_UART_NS16550) -FUN_DEFINE(DT_NODELABEL(pinctrl_uart6_default), TXD6, RXD6) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart7), okay) && (CONFIG_UART_ASPEED || CONFIG_UART_NS16550) -FUN_DEFINE(DT_NODELABEL(pinctrl_uart7_default), TXD7, RXD7) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart8), okay) && (CONFIG_UART_ASPEED || CONFIG_UART_NS16550) -FUN_DEFINE(DT_NODELABEL(pinctrl_uart8_default), TXD8, RXD8) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart9), okay) && (CONFIG_UART_ASPEED || CONFIG_UART_NS16550) -FUN_DEFINE(DT_NODELABEL(pinctrl_uart9_default), TXD9, RXD9) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart10), okay) && (CONFIG_UART_ASPEED || CONFIG_UART_NS16550) -FUN_DEFINE(DT_NODELABEL(pinctrl_uart10_default), TXD10, RXD10) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart11), okay) && (CONFIG_UART_ASPEED || CONFIG_UART_NS16550) -FUN_DEFINE(DT_NODELABEL(pinctrl_uart11_default), TXD11, RXD11) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart12), okay) && (CONFIG_UART_ASPEED || CONFIG_UART_NS16550) -FUN_DEFINE(DT_NODELABEL(pinctrl_uart12_default), TXD12, RXD12) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart13), okay) && (CONFIG_UART_ASPEED || CONFIG_UART_NS16550) -FUN_DEFINE(DT_NODELABEL(pinctrl_uart13_default), TXD13, RXD13) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(uart14), okay) && (CONFIG_UART_ASPEED || CONFIG_UART_NS16550) -FUN_DEFINE(DT_NODELABEL(pinctrl_uart14_default), TXD14, RXD14) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i3c0), okay) && CONFIG_I3C_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_i3c0_default), I3C1SCL, I3C1SDA) -FUN_DEFINE(DT_NODELABEL(pinctrl_hvi3c0_default), HVI3C1SCL, HVI3C1SDA) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i3c1), okay) && CONFIG_I3C_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_i3c1_default), I3C2SCL, I3C2SDA) -FUN_DEFINE(DT_NODELABEL(pinctrl_hvi3c1_default), HVI3C2SCL, HVI3C2SDA) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i3c2), okay) && CONFIG_I3C_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_i3c2_default), I3C3SCL, I3C3SDA) -FUN_DEFINE(DT_NODELABEL(pinctrl_hvi3c2_default), HVI3C3SCL, HVI3C3SDA) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(i3c3), okay) && CONFIG_I3C_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_i3c3_default), I3C4SCL, I3C4SDA) -FUN_DEFINE(DT_NODELABEL(pinctrl_hvi3c3_default), HVI3C4SCL, HVI3C4SDA) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(fmc), okay) && CONFIG_SPI_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_fmc_quad), FWSPIDQ2, FWSPIDQ3) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay) && CONFIG_SPI_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_spi1_quad), SPI1DQ2, SPI1DQ3) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay) && CONFIG_SPI_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_spi2_default), SPI2CS0, SPI2CK, SPI2DQ0, SPI2DQ1) -FUN_DEFINE(DT_NODELABEL(pinctrl_spi2_cs1), SPI2CS1) -FUN_DEFINE(DT_NODELABEL(pinctrl_spi2_quad), SPI2DQ2, SPI2DQ3) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(spim1), okay) && CONFIG_SPI_MONITOR_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_spim1_cs), SPIM1CSIN, SPIM1CSOUT) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim1_in_default), SPIM1CLKIN, SPIM1MOSIIN, SPIM1MISOIN) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim1_out_default), SPIM1CLKOUT, SPIM1MOSIOUT, SPIM1MISOOUT) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim1_qspi_in_default), SPIM1IO2IN, SPIM1IO3IN) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim1_qspi_out_default), SPIM1IO2OUT, SPIM1IO3OUT) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim1_rst_in), SPIM1SPIRSTIN) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim1_rst_out), SPIM1SPIRSTOUT) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim1_muxsel), SPIM1MUXSEL) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(spim2), okay) && CONFIG_SPI_MONITOR_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_spim2_cs), SPIM2CSIN, SPIM2CSOUT) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim2_in_default), SPIM2CLKIN, SPIM2MOSIIN, SPIM2MISOIN) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim2_out_default), SPIM2CLKOUT, SPIM2MOSIOUT, SPIM2MISOOUT) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim2_qspi_in_default), SPIM2IO2IN, SPIM2IO3IN) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim2_qspi_out_default), SPIM2IO2OUT, SPIM2IO3OUT) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim2_rst_in), SPIM2SPIRSTIN) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim2_rst_out), SPIM2SPIRSTOUT) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim2_muxsel), SPIM2MUXSEL) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(spim3), okay) && CONFIG_SPI_MONITOR_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_spim3_cs), SPIM3CSIN, SPIM3CSOUT) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim3_in_default), SPIM3CLKIN, SPIM3MOSIIN, SPIM3MISOIN) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim3_out_default), SPIM3CLKOUT, SPIM3MOSIOUT, SPIM3MISOOUT) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim3_qspi_in_default), SPIM3IO2IN, SPIM3IO3IN) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim3_qspi_out_default), SPIM3IO2OUT, SPIM3IO3OUT) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim3_rst_in), SPIM3SPIRSTIN) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim3_rst_out), SPIM3SPIRSTOUT) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim3_muxsel), SPIM3MUXSEL) -#endif - -#if DT_NODE_HAS_STATUS(DT_NODELABEL(spim4), okay) && CONFIG_SPI_MONITOR_ASPEED -FUN_DEFINE(DT_NODELABEL(pinctrl_spim4_cs), SPIM4CSIN, SPIM4CSOUT) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim4_in_default), SPIM4CLKIN, SPIM4MOSIIN, SPIM4MISOIN) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim4_out_default), SPIM4CLKOUT, SPIM4MOSIOUT, SPIM4MISOOUT) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim4_qspi_in_default), SPIM4IO2IN, SPIM4IO3IN) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim4_qspi_out_default), SPIM4IO2OUT, SPIM4IO3OUT) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim4_rst_in), SPIM4SPIRSTIN) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim4_rst_out), SPIM4SPIRSTOUT) -FUN_DEFINE(DT_NODELABEL(pinctrl_spim4_muxsel), SPIM4MUXSEL) -#endif - diff --git a/boards/arm/ast10x0_mp/fun_id.h b/boards/arm/ast10x0_mp/fun_id.h deleted file mode 100644 index 1a98fbe..0000000 --- a/boards/arm/ast10x0_mp/fun_id.h +++ /dev/null @@ -1,13 +0,0 @@ -#ifndef __FUN_ID_H__ -#define __FUN_ID_H__ - -/* Function ID */ -enum aspeed_fun_id_e { - FUN_NONE = -1, -#define FUN_DEFINE(fun, ...) fun, - #include "fun_def_list.h" -#undef FUN_DEFINE - MAX_FUN_ID, -}; - -#endif /* #ifndef __FUN_ID_H__ */