superio/aspeed/ast2400: rename SWAK to SWC to match the datasheet

The datasheet uses "SWC" as shortcut for "System Wake-up Controller",
thus rename it in the code.

Change-Id: I8b3a14946e37f805d1c4e3df343dfcd7f67f6dc8
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39095
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Frans Hendriks <fhendriks@eltan.com>
This commit is contained in:
Michael Niewöhner 2020-02-23 23:04:10 +01:00 committed by Patrick Georgi
parent 9318d6d625
commit e5c1aa69c7
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
#define AST2400_SUART1 0x2 /* Com1 */ #define AST2400_SUART1 0x2 /* Com1 */
#define AST2400_SUART2 0x3 /* Com2 */ #define AST2400_SUART2 0x3 /* Com2 */
#define AST2400_SWAK 0x4 /* System Wake-Up control */ #define AST2400_SWC 0x4 /* System Wake-Up Control */
#define AST2400_KBC 0x5 /* Keyboard controller */ #define AST2400_KBC 0x5 /* Keyboard controller */
#define AST2400_GPIO 0x7 /* GPIO */ #define AST2400_GPIO 0x7 /* GPIO */
#define AST2400_SUART3 0xB /* Com3 */ #define AST2400_SUART3 0xB /* Com3 */

View File

@ -75,7 +75,7 @@ static struct device_operations ops = {
static struct pnp_info pnp_dev_info[] = { static struct pnp_info pnp_dev_info[] = {
{ NULL, AST2400_SUART1, PNP_IO0 | PNP_IRQ0 | PNP_MSC0, 0xfff8, }, { NULL, AST2400_SUART1, PNP_IO0 | PNP_IRQ0 | PNP_MSC0, 0xfff8, },
{ NULL, AST2400_SUART2, PNP_IO0 | PNP_IRQ0 | PNP_MSC0, 0xfff8, }, { NULL, AST2400_SUART2, PNP_IO0 | PNP_IRQ0 | PNP_MSC0, 0xfff8, },
{ NULL, AST2400_SWAK, PNP_IO0 | PNP_IO1 | PNP_IO2 | PNP_IO3 { NULL, AST2400_SWC, PNP_IO0 | PNP_IO1 | PNP_IO2 | PNP_IO3
| PNP_IRQ0, 0xfff8, 0xfff8, 0xfff8, 0xfff8, }, | PNP_IRQ0, 0xfff8, 0xfff8, 0xfff8, 0xfff8, },
{ NULL, AST2400_KBC, PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1 { NULL, AST2400_KBC, PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1
| PNP_MSC0, 0xffff, 0xffff, }, | PNP_MSC0, 0xffff, 0xffff, },