diff options
author | imp <imp@FreeBSD.org> | 2012-07-07 05:02:39 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2012-07-07 05:02:39 +0000 |
commit | 3cb9677e87768a54552e1e340ac60464ce7e2773 (patch) | |
tree | 9d682509a1fcbdee7c3f71711ae9039defb47c58 /sys/arm/at91/board_sam9g20ek.c | |
parent | 16d0ba79413dcd4f8e9c90bf3eea144d52213c87 (diff) | |
download | FreeBSD-src-3cb9677e87768a54552e1e340ac60464ce7e2773.zip FreeBSD-src-3cb9677e87768a54552e1e340ac60464ce7e2773.tar.gz |
Create a generic way to support multiple boards within an
arm platform. Add all the atmel boards to the ATMEL kernel for
testing purposes. Until boot loader arg parsing of baord type
is done, this won't actually be able to do the runtime selection.
Diffstat (limited to 'sys/arm/at91/board_sam9g20ek.c')
-rw-r--r-- | sys/arm/at91/board_sam9g20ek.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arm/at91/board_sam9g20ek.c b/sys/arm/at91/board_sam9g20ek.c index 8858d02..918aea0 100644 --- a/sys/arm/at91/board_sam9g20ek.c +++ b/sys/arm/at91/board_sam9g20ek.c @@ -33,6 +33,7 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/systm.h> +#include <machine/board.h> #include <arm/at91/at91board.h> #include <arm/at91/at91reg.h> #include <arm/at91/at91var.h> @@ -41,7 +42,7 @@ __FBSDID("$FreeBSD$"); #include <arm/at91/at91_pio_sam9g20.h> //#include <arm/at91/at91_led.h> -long +BOARD_INIT long board_init(void) { /* PIOB's A periph: Turn USART 0's TX/RX pins */ @@ -122,3 +123,5 @@ board_init(void) return (at91_ramsize()); } + +ARM_BOARD(AT91SAM9G20, "Atmel SAM9G20-EK Development Card"); |