diff options
author | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2008-03-05 05:03:36 +0000 |
---|---|---|
committer | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2008-03-05 05:03:36 +0000 |
commit | 6304718e371e590b09e176c05df21fc5fb631cec (patch) | |
tree | 49004ef275322a779594d8ebd5d69c9da8ba1d4e /openpicc/config | |
parent | 3ee3c4a649545d1f132bca61cc7484f0d5c92638 (diff) |
Port over the differential miller decoder from the sniffonly host tool
Move clock switch to its own header file
Specify default (and for non-clock switching capable hardware: single) clock source in hardware definitions
git-svn-id: https://svn.openpcd.org:2342/trunk@443 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/config')
-rw-r--r-- | openpicc/config/board.c | 3 | ||||
-rw-r--r-- | openpicc/config/board.h | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/openpicc/config/board.c b/openpicc/config/board.c index 129cc37..b730809 100644 --- a/openpicc/config/board.c +++ b/openpicc/config/board.c @@ -24,6 +24,7 @@ const struct openpicc_hardware OPENPICC_HARDWARE[] = { [OPENPICC_v0_4] = {OPENPICC_v0_4, "OpenPICC v0.4", // release name {0, 0, 0,}, // features: data_gating, clock_gating, clock_switching + CLOCK_SELECT_PLL, // default_clock AT91C_PIO_PA4, // PLL_LOCK -1, // CLOCK_GATE -1, // DATA_GATE @@ -32,6 +33,7 @@ const struct openpicc_hardware OPENPICC_HARDWARE[] = { [OPENPICC_v0_4_p1] = {OPENPICC_v0_4_p1, "OpenPICC v0.4 patchlevel 1", {1, 1, 0,}, + CLOCK_SELECT_PLL, AT91C_PIO_PA5, AT91C_PIO_PA4, AT91C_PIO_PA31, @@ -40,6 +42,7 @@ const struct openpicc_hardware OPENPICC_HARDWARE[] = { [OPENPICC_v0_4_p2] = {OPENPICC_v0_4_p2, "OpenPICC v0.4 patchlevel 2", {1, 1, 1,}, + CLOCK_SELECT_CARRIER, AT91C_PIO_PA5, AT91C_PIO_PA4, AT91C_PIO_PA31, diff --git a/openpicc/config/board.h b/openpicc/config/board.h index ac6bf81..55a965b 100644 --- a/openpicc/config/board.h +++ b/openpicc/config/board.h @@ -64,6 +64,11 @@ enum openpicc_release { * using PA30 */ }; +enum clock_source { + CLOCK_SELECT_PLL, + CLOCK_SELECT_CARRIER, +}; + struct openpicc_hardware { enum openpicc_release release; char *release_name; @@ -72,6 +77,7 @@ struct openpicc_hardware { int clock_gating:1; int clock_switching:1; } features; + enum clock_source default_clock; int PLL_LOCK; |