x86: geode: MSR cleanup
This cleans up a few MSR-using drivers in the following manner: - Ensures MSRs are all defined in asm/geode.h, rather than in misc places - Makes the naming consistent; cs553[56] ones begin with MSR_, GX-specific ones start with MSR_GX_, and LX-specific ones start with MSR_LX_. Also, make the names match the data sheet. - Use MSR names rather than numbers in source code - Document the fact that the LX's MSR_PADSEL has the wrong value in the data sheet. That's, uh, good to note. Signed-off-by: Andres Salomon <dilinger@debian.org> Acked-by: Jordan Crouse <jordan.crouse@amd.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
22af89aa0c
commit
32bf87e369
@ -30,7 +30,11 @@ extern int geode_get_dev_base(unsigned int dev);
|
||||
|
||||
/* MSRS */
|
||||
|
||||
#define GX_GLCP_SYS_RSTPLL 0x4C000014
|
||||
#define MSR_LX_GLD_MSR_CONFIG 0x48002001
|
||||
#define MSR_LX_MSR_PADSEL 0x48002011 /* NOT 0x48000011; the data
|
||||
* sheet has the wrong value */
|
||||
#define MSR_GLCP_SYS_RSTPLL 0x4C000014
|
||||
#define MSR_GLCP_DOTPLL 0x4C000015
|
||||
|
||||
#define MSR_LBAR_SMB 0x5140000B
|
||||
#define MSR_LBAR_GPIO 0x5140000C
|
||||
@ -45,8 +49,14 @@ extern int geode_get_dev_base(unsigned int dev);
|
||||
#define MSR_PIC_ZSEL_LOW 0x51400022
|
||||
#define MSR_PIC_ZSEL_HIGH 0x51400023
|
||||
|
||||
#define MFGPT_IRQ_MSR 0x51400028
|
||||
#define MFGPT_NR_MSR 0x51400029
|
||||
#define MSR_MFGPT_IRQ 0x51400028
|
||||
#define MSR_MFGPT_NR 0x51400029
|
||||
#define MSR_MFGPT_SETUP 0x5140002B
|
||||
|
||||
#define MSR_LX_SPARE_MSR 0x80000011 /* DC-specific */
|
||||
|
||||
#define MSR_GX_GLD_MSR_CONFIG 0xC0002001
|
||||
#define MSR_GX_MSR_PADSEL 0xC0002011
|
||||
|
||||
/* Resource Sizes */
|
||||
|
||||
|
Reference in New Issue
Block a user