]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/clk/ingenic/cgu.h
clk: ingenic: Add support for divider tables
[linux.git] / drivers / clk / ingenic / cgu.h
index e12716d8ce3cf13ef002a8159a99568178b625cc..8dcd83aeab84cdcbed60d7d3a3c4e796191524d9 100644 (file)
@@ -88,6 +88,8 @@ struct ingenic_cgu_mux_info {
  *          isn't one
  * @busy_bit: the index of the busy bit within reg, or -1 if there isn't one
  * @stop_bit: the index of the stop bit within reg, or -1 if there isn't one
+ * @div_table: optional table to map the value read from the register to the
+ *             actual divider value
  */
 struct ingenic_cgu_div_info {
        unsigned reg;
@@ -97,6 +99,7 @@ struct ingenic_cgu_div_info {
        s8 ce_bit;
        s8 busy_bit;
        s8 stop_bit;
+       const u8 *div_table;
 };
 
 /**