mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
Board configuration interfaces are now defined in board_config.h, not in every board.h file. Tidied /alphabetized CONFIG defines. No functional changes, just rearranging code. BUG=chrome-os-partner:18343 BRANCH=none TEST=build all targets Change-Id: I6196591784f8fa9ce6dfccd31891b679fb200063 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/47419
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
/* 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 */
|