summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-bcm283x/include/mach/core.h
blob: c8547351a39d70b1ea8808b17136224b03ae885a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (C) 2009 Carlo Caione <carlo@carlocaione.org>
 */

#ifndef __BCM2835_CORE_H__
#define __BCM2835_CORE_H__

#include <common.h>
#include <linux/types.h>
#include <linux/sizes.h>
#include <asm/memory.h>
#include <mach/platform.h>

static void inline bcm2835_add_device_sdram(u32 size)
{
	arm_add_mem_device("ram0", BCM2835_SDRAM_BASE, size);
}

static void inline bcm2835_register_fb(void)
{
	add_generic_device("bcm2835_fb", 0, NULL, 0, 0, 0, NULL);
}

void __iomem *bcm2835_get_mmio_base_by_cpuid(void);

#endif