summaryrefslogtreecommitdiffstats
path: root/sys/arm/rockchip
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/rockchip
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/rockchip')
-rw-r--r--sys/arm/rockchip/rk30xx_machdep.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/arm/rockchip/rk30xx_machdep.c b/sys/arm/rockchip/rk30xx_machdep.c
index 4316073..8a21883 100644
--- a/sys/arm/rockchip/rk30xx_machdep.c
+++ b/sys/arm/rockchip/rk30xx_machdep.c
@@ -46,31 +46,32 @@ __FBSDID("$FreeBSD$");
#include <machine/bus.h>
#include <machine/devmap.h>
#include <machine/machdep.h>
+#include <machine/platform.h>
#include <dev/fdt/fdt_common.h>
#include <arm/rockchip/rk30xx_wdog.h>
vm_offset_t
-initarm_lastaddr(void)
+platform_lastaddr(void)
{
return (arm_devmap_lastaddr());
}
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)
{
/* Enable cache */
@@ -82,7 +83,7 @@ initarm_late_init(void)
* Set up static device mappings.
*/
int
-initarm_devmap_init(void)
+platform_devmap_init(void)
{
arm_devmap_add_entry(0x10000000, 0x00200000);
OpenPOWER on IntegriCloud