Re: [PATCH v4 4/6] ARM: rockchip: add suspend and resume for RK3288

2014-10-23 Thread Doug Anderson
Chris, On Tue, Oct 21, 2014 at 4:25 PM, Chris Zhong wrote: > +static inline void rk3288_copy_data_to_sram(void) > +{ > + u32 resume_code_size = (u32)_bootdata_cpu_code - > + (u32)rockchip_slp_cpu_resume + 4; > + > + /* save root sram data in ddr mem */ >

Re: [PATCH v4 4/6] ARM: rockchip: add suspend and resume for RK3288

2014-10-23 Thread Doug Anderson
Chris, On Tue, Oct 21, 2014 at 4:25 PM, Chris Zhong z...@rock-chips.com wrote: +static inline void rk3288_copy_data_to_sram(void) +{ + u32 resume_code_size = (u32)rkpm_bootdata_cpu_code - + (u32)rockchip_slp_cpu_resume + 4; + + /* save root sram data

Re: [PATCH v4 4/6] ARM: rockchip: add suspend and resume for RK3288

2014-10-21 Thread Doug Anderson
Chris, On Tue, Oct 21, 2014 at 4:25 PM, Chris Zhong wrote: > @@ -34,7 +40,8 @@ static const char * const rockchip_board_dt_compat[] = { > }; > > DT_MACHINE_START(ROCKCHIP_DT, "Rockchip Cortex-A9 (Device Tree)") > - .l2c_aux_val= 0, > - .l2c_aux_mask = ~0, > +

[PATCH v4 4/6] ARM: rockchip: add suspend and resume for RK3288

2014-10-21 Thread Chris Zhong
It's a basic version of suspend and resume for rockchip, it only support RK3288 now. Signed-off-by: Tony Xie Signed-off-by: Chris Zhong --- Changes in v4: - remove grf regmap Changes in v3: - move the pinmux of gpio6_c6 save and restore to pinctrl-rockchip Changes in v2: - add the regulator

[PATCH v4 4/6] ARM: rockchip: add suspend and resume for RK3288

2014-10-21 Thread Chris Zhong
It's a basic version of suspend and resume for rockchip, it only support RK3288 now. Signed-off-by: Tony Xie x...@rock-chips.com Signed-off-by: Chris Zhong z...@rock-chips.com --- Changes in v4: - remove grf regmap Changes in v3: - move the pinmux of gpio6_c6 save and restore to

Re: [PATCH v4 4/6] ARM: rockchip: add suspend and resume for RK3288

2014-10-21 Thread Doug Anderson
Chris, On Tue, Oct 21, 2014 at 4:25 PM, Chris Zhong z...@rock-chips.com wrote: @@ -34,7 +40,8 @@ static const char * const rockchip_board_dt_compat[] = { }; DT_MACHINE_START(ROCKCHIP_DT, Rockchip Cortex-A9 (Device Tree)) - .l2c_aux_val= 0, - .l2c_aux_mask = ~0, +