From: Ed Swarthout Date: Mon, 25 Mar 2013 07:40:09 +0000 (+0000) Subject: powerpc/qixis: add clock measurement registers X-Git-Tag: v2025.01-rc5-pxa1908~16235^2~14 X-Git-Url: http://git.dujemihanovic.xyz/html/index.html?a=commitdiff_plain;h=428ea86c646fd9b485bfb015cd6293e345e6bb3e;p=u-boot.git powerpc/qixis: add clock measurement registers QIXIS includes frequency measurement functions for each major processor clock input. After reset (and after clocks are stable), QIXIS measures the clocks against a reference frequency and stores the results in CLK_FREQ registers. A base register supplies a multiplier which allows directly obtaining the measured value, without requiring knowledge of the target system or QIXIS core frequency. Signed-off-by: Ed Swarthout Signed-off-by: York Sun Signed-off-by: Andy Fleming --- diff --git a/board/freescale/common/qixis.h b/board/freescale/common/qixis.h index 8d914d5485..2cf87383d0 100644 --- a/board/freescale/common/qixis.h +++ b/board/freescale/common/qixis.h @@ -78,7 +78,11 @@ struct qixis { u8 trig_stat; u8 res12[3]; u8 trig_ctr[4]; - u8 res13[48]; + u8 res13[16]; + u8 clk_freq[6]; /* Clock Measurement Registers */ + u8 res_c6[8]; + u8 clk_base[2]; /* Clock Frequency Base Reg */ + u8 res_d0[16]; u8 aux2[4]; /* Auxiliary Registers,0xE0 */ u8 res14[10]; u8 aux_ad;