summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2020-09-28 17:50:27 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-09-29 10:27:21 +0200
commitf230389b80dd3e3b2d28ba68c55769eb4e923e1c (patch)
tree14e91e82f293f538a7ff45debdcb9420ca308b2f /arch/arm/boards
parentd3803a8a4ed385e781e064f13481b97ea4693b10 (diff)
downloadbarebox-f230389b80dd3e3b2d28ba68c55769eb4e923e1c.tar.gz
barebox-f230389b80dd3e3b2d28ba68c55769eb4e923e1c.tar.xz
ARM: mx6-sabrelite: remove obsolete sabrelite_mem_init()
The memory init is done by of_probe_memory() first which is part of the core_initcall's because the device tree has an valid memory node. Otherwise the memory-controller driver (esdctl) would add it by reading the information from the controller which are set by the DCD data. Therefore we can drop it from the local board file. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards')
-rw-r--r--arch/arm/boards/freescale-mx6-sabrelite/board.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/arm/boards/freescale-mx6-sabrelite/board.c b/arch/arm/boards/freescale-mx6-sabrelite/board.c
index 020a44297a..1b39ef82c6 100644
--- a/arch/arm/boards/freescale-mx6-sabrelite/board.c
+++ b/arch/arm/boards/freescale-mx6-sabrelite/board.c
@@ -39,18 +39,6 @@ static iomux_v3_cfg_t sabrelite_enet_gpio_pads[] = {
MX6Q_PAD_RGMII_RX_CTL__GPIO_6_24,
};
-static int sabrelite_mem_init(void)
-{
- if (!of_machine_is_compatible("fsl,imx6q-sabrelite") &&
- !of_machine_is_compatible("fsl,imx6dl-sabrelite"))
- return 0;
-
- arm_add_mem_device("ram0", 0x10000000, SZ_1G);
-
- return 0;
-}
-mem_initcall(sabrelite_mem_init);
-
static int ksz9021rn_phy_fixup(struct phy_device *dev)
{
phy_write(dev, 0x09, 0x0f00);