From 47740c32087930089fc9e0a07fd254676780554a Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Thu, 9 Jun 2022 07:59:04 +0200 Subject: ARM: rpi: move bcm2835_add_device_sdram() into header We will repurpose core.c in a later commit. It has a single function similar in spirit to bcm2835_register_fb which lives in a header, so move it there too. Signed-off-by: Ahmad Fatoum Link: https://lore.barebox.org/20220609055922.667016-4-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer --- arch/arm/mach-bcm283x/core.c | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 arch/arm/mach-bcm283x/core.c (limited to 'arch/arm/mach-bcm283x/core.c') diff --git a/arch/arm/mach-bcm283x/core.c b/arch/arm/mach-bcm283x/core.c deleted file mode 100644 index f2528cf1f1..0000000000 --- a/arch/arm/mach-bcm283x/core.c +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Author: Carlo Caione - * - * Based on mach-nomadik - * Copyright (C) 2009 Jean-Christophe PLAGNIOL-VILLARD - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - */ - -#include -#include - -#include -#include -#include - -#include -#include -#include - -#include -#include -#include - -void bcm2835_add_device_sdram(u32 size) -{ - if (!size) - size = get_ram_size((ulong *) BCM2835_SDRAM_BASE, SZ_128M); - - arm_add_mem_device("ram0", BCM2835_SDRAM_BASE, size); -} -- cgit v1.2.3