From 6304718e371e590b09e176c05df21fc5fb631cec Mon Sep 17 00:00:00 2001 From: henryk Date: Wed, 5 Mar 2008 05:03:36 +0000 Subject: 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 --- openpicc/config/board.c | 3 +++ openpicc/config/board.h | 6 ++++++ 2 files changed, 9 insertions(+) (limited to 'openpicc/config') 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; -- cgit v1.2.3