mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-07 16:11:43 +00:00
Initial support for the ITE IT8380 chip with the following peripherals : - 8250-like UART module. - HW timer (with a 128-us tick period). - GPIO with pins initialization and edge interrupt support. other functions are stubbed. - Clock : basic fixed frequency setup only. It also add the dev board configuration as a test vehicle. Signed-off-by: Alec Berg <alecaberg@chromium.org> Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=chrome-os-partner:23575 TEST=make BOARD=it8380dev on IT8380 dev board, use the EC serial console, use gettime from console. Change-Id: Id4bf37d1beb21d1a4bee404c9a0bc500025fe787 Reviewed-on: https://chromium-review.googlesource.com/175481 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Alec Berg <alecaberg@chromium.org> Tested-by: Alec Berg <alecaberg@chromium.org>
48 lines
812 B
C
48 lines
812 B
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.
|
|
*/
|
|
|
|
/* IT8380 development board configuration */
|
|
|
|
#ifndef __BOARD_H
|
|
#define __BOARD_H
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
/* stubbed features */
|
|
#undef CONFIG_LID_SWITCH
|
|
|
|
enum gpio_signal {
|
|
GPIO_H_LED0,
|
|
GPIO_H_LED1,
|
|
GPIO_H_LED2,
|
|
GPIO_H_LED3,
|
|
GPIO_H_LED4,
|
|
GPIO_H_LED5,
|
|
GPIO_H_LED6,
|
|
GPIO_L_LED0,
|
|
GPIO_L_LED1,
|
|
GPIO_L_LED2,
|
|
GPIO_L_LED3,
|
|
GPIO_L_LED4,
|
|
GPIO_L_LED5,
|
|
GPIO_L_LED6,
|
|
GPIO_BUSY_LED,
|
|
GPIO_GOOD_LED,
|
|
GPIO_FAIL_LED,
|
|
GPIO_SW1,
|
|
GPIO_SW2,
|
|
GPIO_SW3,
|
|
GPIO_SW4,
|
|
GPIO_START_SW,
|
|
/* Unimplemented GPIOs */
|
|
GPIO_ENTERING_RW,
|
|
|
|
/* Number of GPIOs; not an actual GPIO */
|
|
GPIO_COUNT
|
|
};
|
|
|
|
#endif /* !__ASSEMBLER__ */
|
|
#endif /* __BOARD_H */
|