@@ -15,6 +15,22 @@
#include <asm/freq.h>
#include <asm/io.h>
+static int mode4_pin;
+
+static int __init setup_mode4_pin(char *buf)
+{
+ if (buf) {
+ if (strstr(buf, "high"))
+ mode4_pin = 1;
+
+ if (strstr(buf, "low"))
+ mode4_pin = 0;
+ }
+
+ return 0;
+}
+early_param("mode4_pin", setup_mode4_pin);
+
static int ifc_divisors[] = { 1, 2, 4, 6 };
static int ufc_divisors[] = { 1, 1, 4, 6 };
static int sfc_divisors[] = { 1, 1, 4, 6 };
@@ -26,7 +42,7 @@ static int pfc_divisors[] = { 1, 1, 1, 1
static void master_clk_init(struct clk *clk)
{
- clk->rate *= pfc_divisors[ctrl_inl(FRQMR1) & 0x000f];
+ clk->rate *= mode4_pin ? 36 : 72;
}
static struct clk_ops sh7785_master_clk_ops = {