diff options
author | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2008-02-11 12:25:41 +0000 |
---|---|---|
committer | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2008-02-11 12:25:41 +0000 |
commit | a72e0c20bb28d382fc7377f270b4d9944baeaf97 (patch) | |
tree | ccef735dde833330c87b44cbc02c9a5a4849174b /openpicc/config/board.c | |
parent | f0c0bc64efe337d28955bf0f0cc05871606e9ea6 (diff) |
Framework to support run-time hardware selection. Future hardware releases should be changed to be boot-time detectable (e.g. using the yet unused AD inputs) so that one image can be used for all
releases
git-svn-id: https://svn.openpcd.org:2342/trunk@411 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/config/board.c')
-rw-r--r-- | openpicc/config/board.c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/openpicc/config/board.c b/openpicc/config/board.c new file mode 100644 index 0000000..aaa1163 --- /dev/null +++ b/openpicc/config/board.c @@ -0,0 +1,40 @@ +/* OpenPICC pin assignment array for dynamic run-time configuration for different board layouts + * (C) 2008 Henryk Plötz <henryk@ploetzli.ch> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +#include "board.h" +#include "lib_AT91SAM7.h" + +const struct openpicc_hardware OPENPICC_HARDWARE[] = { + [OPENPICC_v0_4] = {OPENPICC_v0_4, + "OpenPICC v0.4", // release name + {0, 0,}, // features: data_gating, clock_gating + AT91C_PIO_PA4, // PLL_LOCK + -1, // CLOCK_GATE + -1, // DATA_GATE + }, + [OPENPICC_v0_4_p1] = {OPENPICC_v0_4_p1, + "OpenPICC v0.4 patchlevel 1", + {1, 1,}, + AT91C_PIO_PA5, + AT91C_PIO_PA4, + AT91C_PIO_PA31, + }, +}; + +const struct openpicc_hardware *OPENPICC; |