@@ -62,14 +62,16 @@ struct sd_clock {
unsigned int div_max;
};
-/* SDn divider
+/*
+ * SDn dividers - recommended settings from HW engineers
+ *
* sd_srcfc sd_fc div
* stp_hck stp_ck (div) (div) = sd_srcfc x sd_fc
*-------------------------------------------------------------------
- * 0 0 0 (1) 1 (4) 4
- * 0 0 1 (2) 1 (4) 8
- * 1 0 2 (4) 1 (4) 16
- * 1 0 3 (8) 1 (4) 32
+ * 0 0 0 (1) 1 (4) 4 -> SDR104 / HS200
+ * 0 0 1 (2) 1 (4) 8 -> SDR50
+ * 1 0 2 (4) 1 (4) 16 -> HS / SDR25
+ * 1 0 3 (8) 1 (4) 32 -> NS / SDR12
* 1 0 4 (16) 1 (4) 64
* 0 0 0 (1) 0 (2) 2
* 0 0 1 (2) 0 (2) 4
Document the intended use case for the SD dividers. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> --- drivers/clk/renesas/rcar-gen3-cpg.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)