summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard Cochran <richardcochran@gmail.com>2012-10-29 08:45:19 +0000
committerDavid S. Miller <davem@davemloft.net>2012-11-01 12:21:32 -0400
commit00ab94eeaf6c1ad38ad7368c5148fed31403c8a2 (patch)
treee76e94fe6e4ff9ac7b48dfedd0584bf2bb5164de /include
parent78ca0b287314ad6b7b06161b3ff9b13e8a8bcce0 (diff)
cpts: specify the input clock frequency via DT
This patch adds a way to configure the CPTS input clock scaling factors via the device tree. Signed-off-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_data/cpsw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/platform_data/cpsw.h b/include/linux/platform_data/cpsw.h
index 15a077eb0689..b5c16c3df458 100644
--- a/include/linux/platform_data/cpsw.h
+++ b/include/linux/platform_data/cpsw.h
@@ -34,6 +34,8 @@ struct cpsw_platform_data {
u32 slaves; /* number of slave cpgmac ports */
struct cpsw_slave_data *slave_data;
u32 cpts_active_slave; /* time stamping slave */
+ u32 cpts_clock_mult; /* convert input clock ticks to nanoseconds */
+ u32 cpts_clock_shift; /* convert input clock ticks to nanoseconds */
u32 ale_reg_ofs; /* address lookup engine reg offset */
u32 ale_entries; /* ale table size */