diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-06-09 07:59:04 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-06-17 08:28:55 +0200 |
commit | 47740c32087930089fc9e0a07fd254676780554a (patch) | |
tree | a285aded16eafc7882c9594fc81fa6ec01165527 /arch/arm/mach-bcm283x/core.c | |
parent | a38be63831aa3c5696581a58c8afb5bfc11e45d5 (diff) | |
download | barebox-47740c32087930089fc9e0a07fd254676780554a.tar.gz barebox-47740c32087930089fc9e0a07fd254676780554a.tar.xz |
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 <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220609055922.667016-4-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-bcm283x/core.c')
-rw-r--r-- | arch/arm/mach-bcm283x/core.c | 40 |
1 files changed, 0 insertions, 40 deletions
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 <carlo@carlocaione.org> - * - * Based on mach-nomadik - * Copyright (C) 2009 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com> - * - * 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 <common.h> -#include <init.h> - -#include <linux/clk.h> -#include <linux/clkdev.h> -#include <linux/err.h> - -#include <io.h> -#include <asm/armlinux.h> -#include <linux/sizes.h> - -#include <mach/platform.h> -#include <mach/core.h> -#include <linux/amba/bus.h> - -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); -} |