summaryrefslogtreecommitdiff
path: root/arch/arm/mach-davinci/misc.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2019-04-29 18:37:12 +0200
committerTom Rini <trini@konsulko.com>2019-05-04 13:04:10 -0400
commitcef443c1666cc70d7b0902936311da986d09a77c (patch)
tree2ed1444bed57ddc6385b4454210855eb85fbf05f /arch/arm/mach-davinci/misc.c
parent028020247d0e3946045dc5f6587c1539056bfee0 (diff)
downloadu-boot-cef443c1666cc70d7b0902936311da986d09a77c.tar.gz
u-boot-cef443c1666cc70d7b0902936311da986d09a77c.tar.bz2
u-boot-cef443c1666cc70d7b0902936311da986d09a77c.zip
arm: davinci: remove leftover code for dm* SoCs
The support for DaVinci DM* SoCs has been dropped a while ago. There's still a lot of leftover code in mach-davinci though. Entirely remove certain files and modify the common code to no longer reference unsupported chips. Note: all DaVinci platforms supported in u-boot now define SOC_DA8XX but not all define SOC_DA850 (e.g. omapl138). We can safely remove all ifdefs for the former, but let's leave the ones for the latter. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'arch/arm/mach-davinci/misc.c')
-rw-r--r--arch/arm/mach-davinci/misc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/mach-davinci/misc.c b/arch/arm/mach-davinci/misc.c
index 919041521b..df500c8f35 100644
--- a/arch/arm/mach-davinci/misc.c
+++ b/arch/arm/mach-davinci/misc.c
@@ -68,7 +68,6 @@ err:
/*
* Set the mii mode as MII or RMII
*/
-#if defined(CONFIG_SOC_DA8XX)
void davinci_emac_mii_mode_sel(int mode_sel)
{
int val;
@@ -80,7 +79,7 @@ void davinci_emac_mii_mode_sel(int mode_sel)
val |= (1 << 8);
writel(val, &davinci_syscfg_regs->cfgchip3);
}
-#endif
+
/*
* If there is no MAC address in the environment, then it will be initialized
* (silently) from the value in the EEPROM.
@@ -106,7 +105,6 @@ void davinci_sync_env_enetaddr(uint8_t *rom_enetaddr)
}
#endif /* CONFIG_DRIVER_TI_EMAC */
-#if defined(CONFIG_SOC_DA8XX)
void irq_init(void)
{
/*
@@ -135,4 +133,3 @@ int da8xx_configure_lpsc_items(const struct lpsc_resource *item,
return 0;
}
-#endif