[PATCH V4 2/6] ARM: imx: add suspend in ocram support on i.mx6q

2014-01-13 Thread Anson Huang
When system enter suspend, we can set the DDR IO to high-Z state to save DDR IO's power, this operation can save many power(from ~26mA@1.5V to ~15mA@1.5V, measured on i.MX6Q/DL SabreSD board, R25) of DDR IO. To achieve that, we need to copy the suspend code to ocram and run the low level hardware

Re: [PATCH V4 2/6] ARM: imx: add suspend in ocram support on i.mx6q

2014-01-13 Thread Russell King - ARM Linux
On Mon, Jan 13, 2014 at 07:53:47PM +0800, Anson Huang wrote: #ifdef CONFIG_PM +void imx6_suspend(void); So, imx6_suspend() takes no arguments. +static int (*imx6_suspend_in_ocram_fn)(void __iomem *ocram_vbase); Oh, it takes one argument. + /* + * call low level

Re: [PATCH V4 2/6] ARM: imx: add suspend in ocram support on i.mx6q

2014-01-13 Thread Shawn Guo
On Mon, Jan 13, 2014 at 12:44:45PM +, Russell King - ARM Linux wrote: On Mon, Jan 13, 2014 at 07:53:47PM +0800, Anson Huang wrote: #ifdef CONFIG_PM +void imx6_suspend(void); So, imx6_suspend() takes no arguments. +static int (*imx6_suspend_in_ocram_fn)(void __iomem *ocram_vbase);