summaryrefslogtreecommitdiffstats
path: root/sys/arm/versatile
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2014-05-17 11:27:36 +0000
committerandrew <andrew@FreeBSD.org>2014-05-17 11:27:36 +0000
commitad9a51105addd4d4db64b48a123381cccb0ec1de (patch)
tree83fcd263f59bac75687fdb3eb6d581241b714140 /sys/arm/versatile
parent3bde90fb7a8ed0d081beae48f4a718d45527ac71 (diff)
downloadFreeBSD-src-ad9a51105addd4d4db64b48a123381cccb0ec1de.zip
FreeBSD-src-ad9a51105addd4d4db64b48a123381cccb0ec1de.tar.gz
Add the start of the ARM platform code. This is based on the PowerPC
platform code, it is expected these will be merged in the future when the ARM code is more complete. Until more boards can be tested only use this with the Raspberry Pi and rrename the functions on the other SoCs. Reviewed by: ian@
Diffstat (limited to 'sys/arm/versatile')
-rw-r--r--sys/arm/versatile/versatile_machdep.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/arm/versatile/versatile_machdep.c b/sys/arm/versatile/versatile_machdep.c
index 0be0ad5..ef531e1 100644
--- a/sys/arm/versatile/versatile_machdep.c
+++ b/sys/arm/versatile/versatile_machdep.c
@@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$");
#include <machine/bus.h>
#include <machine/devmap.h>
#include <machine/machdep.h>
+#include <machine/platform.h>
#include <dev/fdt/fdt_common.h>
@@ -58,25 +59,25 @@ __FBSDID("$FreeBSD$");
#define DEVMAP_BOOTSTRAP_MAP_START 0xE0000000
vm_offset_t
-initarm_lastaddr(void)
+platform_lastaddr(void)
{
return (DEVMAP_BOOTSTRAP_MAP_START);
}
void
-initarm_early_init(void)
+platform_probe_and_attach(void)
{
}
void
-initarm_gpio_init(void)
+platform_gpio_init(void)
{
}
void
-initarm_late_init(void)
+platform_late_init(void)
{
}
@@ -91,7 +92,7 @@ static struct arm_devmap_entry fdt_devmap[FDT_DEVMAP_MAX] = {
* Construct pmap_devmap[] with DT-derived config data.
*/
int
-initarm_devmap_init(void)
+platform_devmap_init(void)
{
int i = 0;
fdt_devmap[i].pd_va = 0xf0100000;
OpenPOWER on IntegriCloud