From 1fb81c9c7b95df5f8ca2b81e267898d4269719f6 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Wed, 24 Apr 2013 14:56:05 -0700 Subject: Move LPC constants of out board.c and into chipset where they belong These should be specific to the lm4's lpc.c, not the board. BUG=chrome-os-partner:18343 TEST=build all, run link BRANCH=none Change-Id: Ie02bbd3cf90f09035d302f5dcaad4d33f4ef9e7c Signed-off-by: Bill Richardson Reviewed-on: https://gerrit.chromium.org/gerrit/49101 --- chip/lm4/lpc.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'chip/lm4/lpc.c') diff --git a/chip/lm4/lpc.c b/chip/lm4/lpc.c index f3cbe41d12..5c5aad05c1 100644 --- a/chip/lm4/lpc.c +++ b/chip/lm4/lpc.c @@ -22,6 +22,33 @@ #include "uart.h" #include "util.h" +/* LPC channels */ +#define LPC_CH_ACPI 0 /* ACPI commands */ +#define LPC_CH_PORT80 1 /* Port 80 debug output */ +#define LPC_CH_CMD_DATA 2 /* Data for host commands (args/params/response) */ +#define LPC_CH_KEYBOARD 3 /* 8042 keyboard emulation */ +#define LPC_CH_CMD 4 /* Host commands */ +#define LPC_CH_MEMMAP 5 /* Memory-mapped data */ +#define LPC_CH_COMX 7 /* UART emulation */ +/* LPC pool offsets */ +#define LPC_POOL_OFFS_ACPI 0 /* ACPI commands - 0=in, 1=out */ +#define LPC_POOL_OFFS_PORT80 4 /* Port 80 - 4=in, 5=out */ +#define LPC_POOL_OFFS_COMX 8 /* UART emulation range - 8-15 */ +#define LPC_POOL_OFFS_KEYBOARD 16 /* Keyboard - 16=in, 17=out */ +#define LPC_POOL_OFFS_CMD 20 /* Host commands - 20=in, 21=out */ +#define LPC_POOL_OFFS_CMD_DATA 512 /* Data range for host commands - 512-767 */ +#define LPC_POOL_OFFS_MEMMAP 768 /* Memory-mapped data - 768-1023 */ +/* LPC pool data pointers */ +#define LPC_POOL_ACPI (LM4_LPC_LPCPOOL + LPC_POOL_OFFS_ACPI) +#define LPC_POOL_PORT80 (LM4_LPC_LPCPOOL + LPC_POOL_OFFS_PORT80) +#define LPC_POOL_COMX (LM4_LPC_LPCPOOL + LPC_POOL_OFFS_COMX) +#define LPC_POOL_KEYBOARD (LM4_LPC_LPCPOOL + LPC_POOL_OFFS_KEYBOARD) +#define LPC_POOL_CMD (LM4_LPC_LPCPOOL + LPC_POOL_OFFS_CMD) +#define LPC_POOL_CMD_DATA (LM4_LPC_LPCPOOL + LPC_POOL_OFFS_CMD_DATA) +#define LPC_POOL_MEMMAP (LM4_LPC_LPCPOOL + LPC_POOL_OFFS_MEMMAP) +/* LPC COMx I/O address (in x86 I/O address space) */ +#define LPC_COMX_ADDR 0x3f8 /* COM1 */ + /* Console output macros */ #define CPUTS(outstr) cputs(CC_LPC, outstr) #define CPRINTF(format, args...) cprintf(CC_LPC, format, ## args) -- cgit v1.2.1