diff options
author | imp <imp@FreeBSD.org> | 2012-07-13 04:22:08 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2012-07-13 04:22:08 +0000 |
commit | 28a7eca4eb47f6b8e9d9603ad2c9afdc4c11b44d (patch) | |
tree | c21526a6028a25c3eb704d4c4a2a60bc3dd915ee /sys/arm/at91/board_bwct.c | |
parent | c99370c950d35082bbe5b6a2a64a36af4c002996 (diff) | |
download | FreeBSD-src-28a7eca4eb47f6b8e9d9603ad2c9afdc4c11b44d.zip FreeBSD-src-28a7eca4eb47f6b8e9d9603ad2c9afdc4c11b44d.tar.gz |
For our at91rm9200 boards, register which subtype of SoC is on the
board. We'll use this later to control the differences between these
two variants' pins.
Diffstat (limited to 'sys/arm/at91/board_bwct.c')
-rw-r--r-- | sys/arm/at91/board_bwct.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arm/at91/board_bwct.c b/sys/arm/at91/board_bwct.c index 63f3910..ee017c2 100644 --- a/sys/arm/at91/board_bwct.c +++ b/sys/arm/at91/board_bwct.c @@ -1,6 +1,6 @@ /*- * Copyright (c) 2005-2008 Olivier Houchard. All rights reserved. - * Copyright (c) 2005-2008 Warner Losh. All rights reserved. + * Copyright (c) 2005-2012 Warner Losh. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -31,13 +31,18 @@ __FBSDID("$FreeBSD$"); #include <machine/board.h> #include <arm/at91/at91board.h> +#include <arm/at91/at91var.h> #include <arm/at91/at91rm92reg.h> +#include <arm/at91/at91rm9200var.h> #include <arm/at91/at91_piovar.h> #include <arm/at91/at91_pio_rm9200.h> BOARD_INIT long board_init(void) { + + at91rm9200_set_subtype(AT91_ST_RM9200_BGA); + /* * Since the USART supports RS-485 multidrop mode, it allows the * TX pins to float. However, for RS-232 operations, we don't want |