mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
venice: Simplify conditions for network init
The conditions in this code do not align when doing an SPL build with split config. Use __maybe_unused to avoid needing to be so explicit. Of course a better solution would be to refactor all of this to avoid using #ifdef. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -41,8 +41,7 @@ int board_fit_config_name_match(const char *name)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (IS_ENABLED(CONFIG_NET))
|
static int __maybe_unused setup_fec(void)
|
||||||
static int setup_fec(void)
|
|
||||||
{
|
{
|
||||||
struct iomuxc_gpr_base_regs *gpr =
|
struct iomuxc_gpr_base_regs *gpr =
|
||||||
(struct iomuxc_gpr_base_regs *)IOMUXC_GPR_BASE_ADDR;
|
(struct iomuxc_gpr_base_regs *)IOMUXC_GPR_BASE_ADDR;
|
||||||
@@ -58,7 +57,7 @@ static int setup_fec(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int setup_eqos(void)
|
static int __maybe_unused setup_eqos(void)
|
||||||
{
|
{
|
||||||
struct iomuxc_gpr_base_regs *gpr =
|
struct iomuxc_gpr_base_regs *gpr =
|
||||||
(struct iomuxc_gpr_base_regs *)IOMUXC_GPR_BASE_ADDR;
|
(struct iomuxc_gpr_base_regs *)IOMUXC_GPR_BASE_ADDR;
|
||||||
@@ -71,6 +70,7 @@ static int setup_eqos(void)
|
|||||||
return set_clk_eqos(ENET_125MHZ);
|
return set_clk_eqos(ENET_125MHZ);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (IS_ENABLED(CONFIG_NET))
|
||||||
int board_phy_config(struct phy_device *phydev)
|
int board_phy_config(struct phy_device *phydev)
|
||||||
{
|
{
|
||||||
unsigned short val;
|
unsigned short val;
|
||||||
|
Reference in New Issue
Block a user