Date: Sun, 17 Aug 2014 02:53:37 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r270080 - head/sys/arm/at91 Message-ID: <201408170253.s7H2rbN1021467@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ian Date: Sun Aug 17 02:53:36 2014 New Revision: 270080 URL: http://svnweb.freebsd.org/changeset/base/270080 Log: Rename the old initarm_* functions to the new platform_* names. Also move the registration of the static device map table into the function intended to do devmap init stuff. Modified: head/sys/arm/at91/at91_common.c Modified: head/sys/arm/at91/at91_common.c ============================================================================== --- head/sys/arm/at91/at91_common.c Sun Aug 17 02:40:44 2014 (r270079) +++ head/sys/arm/at91/at91_common.c Sun Aug 17 02:53:36 2014 (r270080) @@ -7,6 +7,7 @@ __FBSDID("$FreeBSD$"); #include <vm/vm.h> #include <machine/devmap.h> #include <machine/machdep.h> +#include <machine/platform.h> #include <arm/at91/at91var.h> #include <arm/at91/at91soc.h> #include <arm/at91/at91_aicreg.h> @@ -55,36 +56,37 @@ at91_eoi(void *unused) vm_offset_t -initarm_lastaddr(void) +platform_lastaddr(void) { return (arm_devmap_lastaddr()); } void -initarm_early_init(void) +platform_probe_and_attach(void) { arm_post_filter = at91_eoi; at91_soc_id(); - arm_devmap_register_table(at91_devmap); } int -initarm_devmap_init(void) +platform_devmap_init(void) { // arm_devmap_add_entry(0xfff00000, 0x00100000); /* 1MB - uart, aic and timers*/ + arm_devmap_register_table(at91_devmap); + return (0); } void -initarm_gpio_init(void) +platform_gpio_init(void) { } void -initarm_late_init(void) +platform_late_init(void) { }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408170253.s7H2rbN1021467>