[PATCH] atyfb: Improve power management
Some register were only set in aty_init() which is not called on resume. I added the aty_resume_chip() function to reset those registers on resume. Susped-to-ram now works on a HP Omnibook 6000 with acpi_sleep=s3_bios. Signed-off-by: Ville Syrjala <syrjala@sci.fi> Cc: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
4ec3fd71e4
commit
efc08a75d3
@ -185,6 +185,7 @@ struct atyfb_par {
|
||||
int mtrr_aper;
|
||||
int mtrr_reg;
|
||||
#endif
|
||||
u32 mem_cntl;
|
||||
};
|
||||
|
||||
/*
|
||||
@ -314,6 +315,7 @@ struct aty_pll_ops {
|
||||
void (*set_pll) (const struct fb_info * info, const union aty_pll * pll);
|
||||
void (*get_pll) (const struct fb_info *info, union aty_pll * pll);
|
||||
int (*init_pll) (const struct fb_info * info, union aty_pll * pll);
|
||||
void (*resume_pll)(const struct fb_info *info, union aty_pll *pll);
|
||||
};
|
||||
|
||||
extern const struct aty_pll_ops aty_pll_ati18818_1; /* ATI 18818 */
|
||||
|
Reference in New Issue
Block a user