blob: 04ed332a07d1609d47594608ddd5177a168d4dd1 [file] [log] [blame]
Shawn Nematbakhsh9547f8d2013-11-08 17:23:26 -08001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2013 Google Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Shawn Nematbakhsh9547f8d2013-11-08 17:23:26 -080014 */
15
16#ifndef ONBOARD_H
17#define ONBOARD_H
18
19#include "irqroute.h"
20
Shawn Nematbakhsh0dadb762014-05-16 15:40:21 -070021/* PCH wake signal from EC. */
22#define BOARD_PCH_WAKE_GPIO ACPI_ENABLE_WAKE_SUS_GPIO(0)
23
Shawn Nematbakhsh9547f8d2013-11-08 17:23:26 -080024#define BOARD_TRACKPAD_NAME "trackpad"
25#define BOARD_TRACKPAD_IRQ GPIO_S0_DED_IRQ(TPAD_IRQ_OFFSET)
Shawn Nematbakhsh51d787a2014-01-16 17:52:21 -080026#define BOARD_TRACKPAD_WAKE_GPIO ACPI_ENABLE_WAKE_SUS_GPIO(1)
Aaron Durbinafaaa3a2013-11-13 14:31:16 -060027#define BOARD_TRACKPAD_I2C_BUS 0
28#define BOARD_TRACKPAD_I2C_ADDR 0x4b
Shawn Nematbakhsh9547f8d2013-11-08 17:23:26 -080029
30#define BOARD_TOUCHSCREEN_NAME "touchscreen"
31#define BOARD_TOUCHSCREEN_IRQ GPIO_S0_DED_IRQ(TOUCH_IRQ_OFFSET)
Shawn Nematbakhsh51d787a2014-01-16 17:52:21 -080032#define BOARD_TOUCHSCREEN_WAKE_GPIO ACPI_ENABLE_WAKE_SUS_GPIO(2)
Aaron Durbinafaaa3a2013-11-13 14:31:16 -060033#define BOARD_TOUCHSCREEN_I2C_BUS 5
Shawn Nematbakhsh9547f8d2013-11-08 17:23:26 -080034#define BOARD_TOUCHSCREEN_I2C_ADDR 0x4a /* TODO(shawnn): Check this */
35
Aaron Durbin21565ca2013-11-20 15:21:40 -060036#define BOARD_I8042_IRQ GPIO_S0_DED_IRQ(I8042_IRQ_OFFSET)
Duncan Laurie469b5202014-01-13 16:37:51 -080037#define BOARD_CODEC_IRQ GPIO_S5_DED_IRQ(CODEC_IRQ_OFFSET)
38#define BOARD_ALS_IRQ GPIO_S0_DED_IRQ(ALS_IRQ_OFFSET)
Aaron Durbin21565ca2013-11-20 15:21:40 -060039
Shawn Nematbakhsh9547f8d2013-11-08 17:23:26 -080040#endif