diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/board_config.h | 35 | ||||
-rw-r--r-- | include/x86_power.h | 6 |
2 files changed, 40 insertions, 1 deletions
diff --git a/include/board_config.h b/include/board_config.h new file mode 100644 index 0000000000..0a97b8a181 --- /dev/null +++ b/include/board_config.h @@ -0,0 +1,35 @@ +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef __CROS_EC_BOARD_CONFIG_H +#define __CROS_EC_BOARD_CONFIG_H + +#include "common.h" + +#ifdef CONFIG_BOARD_PRE_INIT +/** + * Configure board before any inits are called. + * + * Note that this is in general a hacky place to do configuration. Most config + * is actually chip-specific or module-specific and not board-specific, so + * putting it here hides dependencies between module inits and board init. + * Think very hard before putting code here. + */ +void board_config_pre_init(void); +#endif + +#ifdef CONFIG_BOARD_POST_GPIO_INIT +/** + * Configure board after GPIOs are initialized. + * + * Note that this is in general a hacky place to do configuration. Most config + * is actually chip-specific or module-specific and not board-specific, so + * putting it here hides dependencies between module inits and board init. + * Think very hard before putting code here. + */ +void board_config_post_gpio_init(void); +#endif + +#endif /* __CROS_EC_BOARD_CONFIG_H */ diff --git a/include/x86_power.h b/include/x86_power.h index 48744b0786..5693ea3d77 100644 --- a/include/x86_power.h +++ b/include/x86_power.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -10,9 +10,13 @@ #include "gpio.h" +#ifdef CONFIG_CHIPSET_X86 /** * Interrupt handler for x86 chipset GPIOs. */ void x86_power_interrupt(enum gpio_signal signal); +#else +#define x86_power_interrupt NULL +#endif #endif /* __CROS_EC_X86_POWER_H */ |