diff options
Diffstat (limited to 'board/it83xx_evb')
-rw-r--r-- | board/it83xx_evb/board.c | 79 | ||||
-rw-r--r-- | board/it83xx_evb/board.h | 41 | ||||
-rw-r--r-- | board/it83xx_evb/build.mk | 14 | ||||
-rw-r--r-- | board/it83xx_evb/ec.tasklist | 14 | ||||
-rw-r--r-- | board/it83xx_evb/gpio.inc | 76 |
5 files changed, 0 insertions, 224 deletions
diff --git a/board/it83xx_evb/board.c b/board/it83xx_evb/board.c deleted file mode 100644 index a18b8b3b70..0000000000 --- a/board/it83xx_evb/board.c +++ /dev/null @@ -1,79 +0,0 @@ -/* Copyright 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. - */ -/* IT83xx development board configuration */ - -#include "adc_chip.h" -#include "pwm.h" -#include "pwm_chip.h" - -/* - * PWM channels. Must be in the exactly same order as in enum pwm_channel. - * There total three 16 bits clock prescaler registers for all pwm channels, - * so use the same frequency and prescaler register setting is required if - * number of pwm channel greater than three. - */ -const struct pwm_t pwm_channels[] = { - [PWM_CH_FAN] = { - .channel = PWM_HW_CH_DCR7, - .flags = 0, - .freq_hz = 30000, - .pcfsr_sel = PWM_PRESCALER_C4, - }, - [PWM_CH_WITH_DSLEEP_FLAG] = { - .channel = PWM_HW_CH_DCR0, - .flags = PWM_CONFIG_DSLEEP, - .freq_hz = 100, - .pcfsr_sel = PWM_PRESCALER_C6, - }, -}; -BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT); - -/* ADC channels. Must be in the exactly same order as in enum adc_channel. */ -const struct adc_t adc_channels[] = { - /* Convert to mV (3000mV/1024). */ - [ADC_VBUSSA] = { - .name = "ADC_VBUSSA", - .factor_mul = ADC_MAX_MVOLT, - .factor_div = ADC_READ_MAX + 1, - .shift = 0, - .channel = CHIP_ADC_CH0, /* GPI0, ADC0 */ - }, - [ADC_VBUSSB] = { - .name = "ADC_VBUSSB", - .factor_mul = ADC_MAX_MVOLT, - .factor_div = ADC_READ_MAX + 1, - .shift = 0, - .channel = CHIP_ADC_CH1, /* GPI1, ADC1 */ - }, - [ADC_EVB_CH_13] = { - .name = "ADC_EVB_CH_13", - .factor_mul = ADC_MAX_MVOLT, - .factor_div = ADC_READ_MAX + 1, - .shift = 0, - .channel = CHIP_ADC_CH13, /* GPL0, ADC13 */ - }, - [ADC_EVB_CH_14] = { - .name = "ADC_EVB_CH_14", - .factor_mul = ADC_MAX_MVOLT, - .factor_div = ADC_READ_MAX + 1, - .shift = 0, - .channel = CHIP_ADC_CH14, /* GPL1, ADC14 */ - }, - [ADC_EVB_CH_15] = { - .name = "ADC_EVB_CH_15", - .factor_mul = ADC_MAX_MVOLT, - .factor_div = ADC_READ_MAX + 1, - .shift = 0, - .channel = CHIP_ADC_CH15, /* GPL2, ADC15 */ - }, - [ADC_EVB_CH_16] = { - .name = "ADC_EVB_CH_16", - .factor_mul = ADC_MAX_MVOLT, - .factor_div = ADC_READ_MAX + 1, - .shift = 0, - .channel = CHIP_ADC_CH16, /* GPL3, ADC16 */ - }, -}; -BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); diff --git a/board/it83xx_evb/board.h b/board/it83xx_evb/board.h deleted file mode 100644 index 754474174c..0000000000 --- a/board/it83xx_evb/board.h +++ /dev/null @@ -1,41 +0,0 @@ -/* Copyright 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. - */ - -/* IT83xx development board configuration */ - -#ifndef __CROS_EC_BOARD_H -#define __CROS_EC_BOARD_H - -/* Select Baseboard features */ -#include "baseboard.h" - -/* Optional features */ -#define CONFIG_DAC - -#ifndef __ASSEMBLER__ - -#include "gpio_signal.h" -#include "registers.h" - -enum pwm_channel { - PWM_CH_FAN, - PWM_CH_WITH_DSLEEP_FLAG, - /* Number of PWM channels */ - PWM_CH_COUNT -}; - -enum adc_channel { - ADC_VBUSSA, - ADC_VBUSSB, - ADC_EVB_CH_13, - ADC_EVB_CH_14, - ADC_EVB_CH_15, - ADC_EVB_CH_16, - /* Number of ADC channels */ - ADC_CH_COUNT -}; - -#endif /* !__ASSEMBLER__ */ -#endif /* __CROS_EC_BOARD_H */ diff --git a/board/it83xx_evb/build.mk b/board/it83xx_evb/build.mk deleted file mode 100644 index e4c8c01b89..0000000000 --- a/board/it83xx_evb/build.mk +++ /dev/null @@ -1,14 +0,0 @@ -# -*- makefile -*- -# Copyright 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. -# -# Board specific files build - -# the IC is ITE IT8390/IT8320 -CHIP:=it83xx -CHIP_FAMILY:=it8320 -CHIP_VARIANT:=it8320dx -BASEBOARD:=ite_evb - -board-y=board.o diff --git a/board/it83xx_evb/ec.tasklist b/board/it83xx_evb/ec.tasklist deleted file mode 100644 index 3ca78d55db..0000000000 --- a/board/it83xx_evb/ec.tasklist +++ /dev/null @@ -1,14 +0,0 @@ -/* Copyright 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. - */ - -/** - * See CONFIG_TASK_LIST in config.h for details. - */ -#define CONFIG_TASK_LIST \ - TASK_ALWAYS(HOOKS, hook_task, NULL, LARGER_TASK_STACK_SIZE) \ - TASK_ALWAYS(CONSOLE, console_task, NULL, LARGER_TASK_STACK_SIZE) \ - TASK_ALWAYS(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \ - TASK_NOTEST(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \ - TASK_NOTEST(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) diff --git a/board/it83xx_evb/gpio.inc b/board/it83xx_evb/gpio.inc deleted file mode 100644 index 52df89e5cb..0000000000 --- a/board/it83xx_evb/gpio.inc +++ /dev/null @@ -1,76 +0,0 @@ -/* -*- mode:c -*- - * - * Copyright 2014 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. - */ - -/* Declare symbolic names for all the GPIOs that we care about. - * Note: Those with interrupt handlers must be declared first. */ - -GPIO_INT(POWER_BUTTON_L, PIN(E, 4), GPIO_INT_BOTH | GPIO_PULL_UP, power_button_interrupt) -#ifndef CONFIG_HOSTCMD_ESPI -GPIO_INT(PCH_PLTRST_L, PIN(E, 3), GPIO_INT_BOTH | GPIO_PULL_UP, lpcrst_interrupt) -#endif -GPIO_INT(LID_OPEN, PIN(E, 2), GPIO_INT_BOTH | GPIO_PULL_DOWN, lid_interrupt) -GPIO_INT(WP_L, PIN(E, 1), GPIO_INT_BOTH, switch_interrupt) /* Write protect input */ -#ifdef CONFIG_LOW_POWER_IDLE -GPIO_INT(UART1_RX, PIN(B, 0), GPIO_INT_FALLING, uart_deepsleep_interrupt) /* UART1 RX input */ -#endif - -GPIO(PCH_SMI_L, PIN(D, 3), GPIO_OUT_HIGH) -GPIO(PCH_SCI_L, PIN(D, 4), GPIO_OUT_HIGH) -GPIO(GATE_A20_H, PIN(B, 5), GPIO_OUT_HIGH) -GPIO(SYS_RESET_L, PIN(B, 6), GPIO_OUT_HIGH) -GPIO(LPC_CLKRUN_L, PIN(H, 0), GPIO_OUT_LOW) -GPIO(PCH_WAKE_L, PIN(B, 7), GPIO_ODR_HIGH) /* Wake signal from EC to PCH */ - -GPIO(I2C_A_SCL, PIN(B, 3), GPIO_INPUT) -GPIO(I2C_A_SDA, PIN(B, 4), GPIO_INPUT) -GPIO(I2C_B_SCL, PIN(C, 1), GPIO_INPUT) -GPIO(I2C_B_SDA, PIN(C, 2), GPIO_INPUT) -#ifdef CONFIG_IT83XX_SMCLK2_ON_GPC7 -GPIO(I2C_C_SCL, PIN(C, 7), GPIO_INPUT) -#else -GPIO(I2C_C_SCL, PIN(F, 6), GPIO_INPUT) -#endif -GPIO(I2C_C_SDA, PIN(F, 7), GPIO_INPUT) - -GPIO(I2C_E_SCL, PIN(E, 0), GPIO_INPUT) -GPIO(I2C_E_SDA, PIN(E, 7), GPIO_INPUT) - -#ifdef CONFIG_UART_HOST -GPIO(UART2_SIN1, PIN(H, 1), GPIO_INPUT) -GPIO(UART2_SOUT1, PIN(H, 2), GPIO_INPUT) -#endif - -/* KSO/KSI pins can be used as GPIO input. */ -GPIO(BOARD_VERSION1, PIN(KSO_H, 5), GPIO_INPUT) -GPIO(BOARD_VERSION2, PIN(KSO_H, 6), GPIO_INPUT) -GPIO(BOARD_VERSION3, PIN(KSO_H, 7), GPIO_INPUT) - -/* Unimplemented signals which we need to emulate for now */ -UNIMPLEMENTED(ENTERING_RW) - -ALTERNATE(PIN_MASK(B, 0x03), 1, MODULE_UART, GPIO_PULL_UP) /* UART1 */ -#ifdef CONFIG_UART_HOST -ALTERNATE(PIN_MASK(H, 0x06), 1, MODULE_UART, 0) /* UART2 */ -#endif -ALTERNATE(PIN_MASK(A, 0x40), 3, MODULE_SPI_CONTROLLER, 0) /* SSCK of SPI */ -ALTERNATE(PIN_MASK(C, 0x28), 3, MODULE_SPI_CONTROLLER, 0) /* SMOSI/SMISO of SPI */ -ALTERNATE(PIN_MASK(G, 0x01), 3, MODULE_SPI_CONTROLLER, 0) /* SSCE1# of SPI */ -ALTERNATE(PIN_MASK(G, 0x04), 3, MODULE_SPI_CONTROLLER, 0) /* SSCE0# of SPI */ -ALTERNATE(PIN_MASK(A, 0x80), 1, MODULE_PWM, 0) /* PWM7 for FAN1 */ -ALTERNATE(PIN_MASK(D, 0x40), 3, MODULE_PWM, 0) /* TACH0A for FAN1 */ -ALTERNATE(PIN_MASK(B, 0x18), 1, MODULE_I2C, 0) /* I2C A SCL/SDA */ -#ifdef CONFIG_IT83XX_SMCLK2_ON_GPC7 -ALTERNATE(PIN_MASK(C, 0x86), 1, MODULE_I2C, 0) /* I2C B SCL/SDA, C SCL */ -ALTERNATE(PIN_MASK(F, 0x80), 1, MODULE_I2C, 0) /* I2C C SDA */ -#else -ALTERNATE(PIN_MASK(C, 0x06), 1, MODULE_I2C, 0) /* I2C B SCL/SDA */ -ALTERNATE(PIN_MASK(F, 0xC0), 1, MODULE_I2C, 0) /* I2C C SCL/SDA */ -#endif -ALTERNATE(PIN_MASK(E, 0x81), 1, MODULE_I2C, 0) /* I2C E SCL/SDA E0/E7 */ -ALTERNATE(PIN_MASK(I, 0x03), 1, MODULE_ADC, 0) /* ADC CH0, CH1 */ -ALTERNATE(PIN_MASK(L, 0x0F), 1, MODULE_ADC, 0) /* ADC CH13-CH16 */ -ALTERNATE(PIN_MASK(J, 0x3C), 1, MODULE_DAC, 0) /* DAC CH2.3.4.5 */ |