summaryrefslogtreecommitdiff
path: root/openpicc/config
diff options
context:
space:
mode:
Diffstat (limited to 'openpicc/config')
-rw-r--r--openpicc/config/board.c3
-rw-r--r--openpicc/config/board.h6
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;
personal git repositories of Harald Welte. Your mileage may vary