Shawn Nematbakhsh | 9547f8d | 2013-11-08 17:23:26 -0800 | [diff] [blame] | 1 | /* |
| 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 Nematbakhsh | 9547f8d | 2013-11-08 17:23:26 -0800 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #ifndef ONBOARD_H |
| 17 | #define ONBOARD_H |
| 18 | |
| 19 | #include "irqroute.h" |
| 20 | |
Shawn Nematbakhsh | 0dadb76 | 2014-05-16 15:40:21 -0700 | [diff] [blame] | 21 | /* PCH wake signal from EC. */ |
| 22 | #define BOARD_PCH_WAKE_GPIO ACPI_ENABLE_WAKE_SUS_GPIO(0) |
| 23 | |
Shawn Nematbakhsh | 9547f8d | 2013-11-08 17:23:26 -0800 | [diff] [blame] | 24 | #define BOARD_TRACKPAD_NAME "trackpad" |
| 25 | #define BOARD_TRACKPAD_IRQ GPIO_S0_DED_IRQ(TPAD_IRQ_OFFSET) |
Shawn Nematbakhsh | 51d787a | 2014-01-16 17:52:21 -0800 | [diff] [blame] | 26 | #define BOARD_TRACKPAD_WAKE_GPIO ACPI_ENABLE_WAKE_SUS_GPIO(1) |
Aaron Durbin | afaaa3a | 2013-11-13 14:31:16 -0600 | [diff] [blame] | 27 | #define BOARD_TRACKPAD_I2C_BUS 0 |
| 28 | #define BOARD_TRACKPAD_I2C_ADDR 0x4b |
Shawn Nematbakhsh | 9547f8d | 2013-11-08 17:23:26 -0800 | [diff] [blame] | 29 | |
| 30 | #define BOARD_TOUCHSCREEN_NAME "touchscreen" |
| 31 | #define BOARD_TOUCHSCREEN_IRQ GPIO_S0_DED_IRQ(TOUCH_IRQ_OFFSET) |
Shawn Nematbakhsh | 51d787a | 2014-01-16 17:52:21 -0800 | [diff] [blame] | 32 | #define BOARD_TOUCHSCREEN_WAKE_GPIO ACPI_ENABLE_WAKE_SUS_GPIO(2) |
Aaron Durbin | afaaa3a | 2013-11-13 14:31:16 -0600 | [diff] [blame] | 33 | #define BOARD_TOUCHSCREEN_I2C_BUS 5 |
Shawn Nematbakhsh | 9547f8d | 2013-11-08 17:23:26 -0800 | [diff] [blame] | 34 | #define BOARD_TOUCHSCREEN_I2C_ADDR 0x4a /* TODO(shawnn): Check this */ |
| 35 | |
Aaron Durbin | 21565ca | 2013-11-20 15:21:40 -0600 | [diff] [blame] | 36 | #define BOARD_I8042_IRQ GPIO_S0_DED_IRQ(I8042_IRQ_OFFSET) |
Duncan Laurie | 469b520 | 2014-01-13 16:37:51 -0800 | [diff] [blame] | 37 | #define BOARD_CODEC_IRQ GPIO_S5_DED_IRQ(CODEC_IRQ_OFFSET) |
| 38 | #define BOARD_ALS_IRQ GPIO_S0_DED_IRQ(ALS_IRQ_OFFSET) |
Aaron Durbin | 21565ca | 2013-11-20 15:21:40 -0600 | [diff] [blame] | 39 | |
Shawn Nematbakhsh | 9547f8d | 2013-11-08 17:23:26 -0800 | [diff] [blame] | 40 | #endif |