diff options
author | John Crispin <blogic@openwrt.org> | 2012-08-02 13:29:49 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-08-02 13:29:49 +0000 |
commit | 894d03b7158265e8e1fae350a51090fda9c15048 (patch) | |
tree | 8cda31687893f497b0c9bbfe18d8f53058ac838f | |
parent | 3b76373f58c70ebc99e19947bcff99df2cd6cd78 (diff) | |
download | upstream-894d03b7158265e8e1fae350a51090fda9c15048.tar.gz upstream-894d03b7158265e8e1fae350a51090fda9c15048.tar.bz2 upstream-894d03b7158265e8e1fae350a51090fda9c15048.zip |
[lantiq] fixes i2c clock enable
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32949 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/lantiq/patches-3.3/0072-fix_i2c_clock.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches-3.3/0072-fix_i2c_clock.patch b/target/linux/lantiq/patches-3.3/0072-fix_i2c_clock.patch new file mode 100644 index 0000000000..310b33f29f --- /dev/null +++ b/target/linux/lantiq/patches-3.3/0072-fix_i2c_clock.patch @@ -0,0 +1,32 @@ +Index: linux-3.3.8/arch/mips/lantiq/falcon/sysctrl.c +=================================================================== +--- linux-3.3.8.orig/arch/mips/lantiq/falcon/sysctrl.c 2012-08-02 15:14:10.811781411 +0200 ++++ linux-3.3.8/arch/mips/lantiq/falcon/sysctrl.c 2012-08-02 15:16:24.587787128 +0200 +@@ -171,6 +171,7 @@ + clk->cl.con_id = NULL; + clk->cl.clk = clk; + clk->module = module; ++ clk->bits = bits; + clk->activate = ltq_sysctl_activate; + clk->deactivate = ltq_sysctl_deactivate; + clk->enable = ltq_sysctl_clken; +@@ -206,5 +207,5 @@ + clkdev_add_sys("falcon_gpio.3", SYSCTL_SYS1, ACTS_PADCTRL3 | ACTS_P3); + clkdev_add_sys("falcon_gpio.4", SYSCTL_SYS1, ACTS_PADCTRL4 | ACTS_P4); + clkdev_add_sys("ltq_asc.1", SYSCTL_SYS1, ACTS_ASC1_ACT); +- clkdev_add_sys("falcon_i2c", SYSCTL_SYS1, ACTS_I2C_ACT); ++ clkdev_add_sys("i2c-falcon.0", SYSCTL_SYS1, ACTS_I2C_ACT); + } +Index: linux-3.3.8/drivers/i2c/busses/i2c-falcon.c +=================================================================== +--- linux-3.3.8.orig/drivers/i2c/busses/i2c-falcon.c 2012-08-02 15:14:10.939781415 +0200 ++++ linux-3.3.8/drivers/i2c/busses/i2c-falcon.c 2012-08-02 15:15:59.667786063 +0200 +@@ -824,7 +824,7 @@ + dev_err(&pdev->dev, "failed to get i2c clk\n"); + return -ENOENT; + } +- ++ clk_activate(clk); + /* allocate private data */ + priv = kzalloc(sizeof(*priv), GFP_KERNEL); + if (!priv) { |