mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-11 18:35:28 +00:00
mec1322_evb: Remove board
This board is no longer in use. BUG=None TEST=`make buildall -j` BRANCH=None Change-Id: Ie0d03e0a817ba101c01909f95955d51f8dfae03c Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/314920 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
4421d75c24
commit
af3172cd7e
@@ -1 +0,0 @@
|
||||
../../Makefile
|
||||
@@ -1,59 +0,0 @@
|
||||
/* 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.
|
||||
*/
|
||||
/* MEC1322 eval board-specific configuration */
|
||||
|
||||
#include "adc.h"
|
||||
#include "adc_chip.h"
|
||||
#include "fan.h"
|
||||
#include "gpio.h"
|
||||
#include "i2c.h"
|
||||
#include "registers.h"
|
||||
#include "spi.h"
|
||||
#include "util.h"
|
||||
|
||||
#define GPIO_KB_INPUT GPIO_INPUT
|
||||
#define GPIO_KB_OUTPUT (GPIO_ODR_HIGH | GPIO_PULL_UP)
|
||||
|
||||
#include "gpio_list.h"
|
||||
|
||||
/* ADC channels */
|
||||
const struct adc_t adc_channels[] = {
|
||||
[ADC_CH_1] = {"ADC1", 1, 1, 0, MEC1322_ADC_CH(1)},
|
||||
[ADC_CH_2] = {"ADC2", 1, 1, 0, MEC1322_ADC_CH(2)},
|
||||
[ADC_CH_3] = {"ADC3", 1, 1, 0, MEC1322_ADC_CH(3)},
|
||||
[ADC_CH_4] = {"ADC4", 1, 1, 0, MEC1322_ADC_CH(4)},
|
||||
};
|
||||
BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT);
|
||||
|
||||
/* Physical fans. These are logically separate from pwm_channels. */
|
||||
const struct fan_t fans[] = {
|
||||
{.flags = FAN_USE_RPM_MODE,
|
||||
.rpm_min = 1500,
|
||||
.rpm_start = 1500,
|
||||
.rpm_max = 8000,
|
||||
.ch = 0,
|
||||
.pgood_gpio = -1,
|
||||
.enable_gpio = -1,
|
||||
},
|
||||
};
|
||||
BUILD_ASSERT(ARRAY_SIZE(fans) == CONFIG_FANS);
|
||||
|
||||
/* I2C ports */
|
||||
const struct i2c_port_t i2c_ports[] = {
|
||||
{"port0", MEC1322_I2C0_0, 100},
|
||||
};
|
||||
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
|
||||
|
||||
/* SPI master ports */
|
||||
const struct spi_device_t spi_devices[] = {
|
||||
{ CONFIG_SPI_FLASH_PORT, 0, GPIO_SHD_CS0},
|
||||
};
|
||||
const unsigned int spi_devices_used = ARRAY_SIZE(spi_devices);
|
||||
|
||||
const enum gpio_signal hibernate_wake_pins[] = {
|
||||
GPIO_S1,
|
||||
};
|
||||
|
||||
const int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins);
|
||||
@@ -1,44 +0,0 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
/* MEC1322 eval board configuration */
|
||||
|
||||
#ifndef __CROS_EC_BOARD_H
|
||||
#define __CROS_EC_BOARD_H
|
||||
|
||||
/* Optional features */
|
||||
#define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands */
|
||||
#define CONFIG_WATCHDOG_HELP
|
||||
#define CONFIG_FANS 1
|
||||
#define CONFIG_ADC
|
||||
#define CONFIG_FLASH_SIZE 0x00800000
|
||||
#define CONFIG_I2C
|
||||
#define CONFIG_I2C_MASTER
|
||||
#define CONFIG_SPI_FLASH_W25Q64
|
||||
#define CONFIG_SPI_FLASH_PORT 0
|
||||
|
||||
/* Modules we want to exclude */
|
||||
#undef CONFIG_EEPROM
|
||||
#undef CONFIG_PSTORE
|
||||
#undef CONFIG_LID_SWITCH
|
||||
#undef CONFIG_PECI
|
||||
#undef CONFIG_SWITCH
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
enum adc_channel {
|
||||
ADC_CH_1 = 0,
|
||||
ADC_CH_2,
|
||||
ADC_CH_3,
|
||||
ADC_CH_4,
|
||||
|
||||
ADC_CH_COUNT
|
||||
};
|
||||
|
||||
#include "gpio_signal.h"
|
||||
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif /* __CROS_EC_BOARD_H */
|
||||
@@ -1,12 +0,0 @@
|
||||
# -*- makefile -*-
|
||||
# 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.
|
||||
#
|
||||
# Board specific files build
|
||||
#
|
||||
|
||||
# the IC is SMSC MEC1322
|
||||
CHIP:=mec1322
|
||||
|
||||
board-y=board.o
|
||||
@@ -1,22 +0,0 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* List of enabled tasks in the priority order
|
||||
*
|
||||
* The first one has the lowest priority.
|
||||
*
|
||||
* For each task, use the macro TASK_ALWAYS(n, r, d, s) for base tasks and
|
||||
* TASK_NOTEST(n, r, d, s) for tasks that can be excluded in test binaries,
|
||||
* where :
|
||||
* 'n' in the name of the task
|
||||
* 'r' in the main routine of the task
|
||||
* 'd' in an opaque parameter passed to the routine at startup
|
||||
* 's' is the stack size in bytes; must be a multiple of 8
|
||||
*/
|
||||
#define CONFIG_TASK_LIST \
|
||||
TASK_ALWAYS(HOOKS, hook_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK_ALWAYS(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK_ALWAYS(CONSOLE, console_task, NULL, TASK_STACK_SIZE)
|
||||
@@ -1,45 +0,0 @@
|
||||
/* -*- mode:c -*-
|
||||
*
|
||||
* Copyright (c) 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.
|
||||
*/
|
||||
|
||||
GPIO(LED1, PIN(154), GPIO_ODR_LOW)
|
||||
GPIO(LED2, PIN(155), GPIO_ODR_HIGH)
|
||||
GPIO(LED3, PIN(156), GPIO_ODR_LOW)
|
||||
GPIO(PCH_SMI_L, PIN(44), GPIO_ODR_HIGH) /* SMI output */
|
||||
GPIO(PCH_WAKE_L, PIN(200), GPIO_ODR_HIGH) /* PCH wake pin */
|
||||
|
||||
/* Switch S1 */
|
||||
GPIO(S1, PIN(63), GPIO_INT_FALLING | GPIO_PULL_UP)
|
||||
|
||||
/* Shared SPI CS */
|
||||
GPIO(SHD_CS0, PIN(150), GPIO_ODR_HIGH)
|
||||
|
||||
/*
|
||||
* Signals which aren't implemented on MEC1322 eval board but we'll
|
||||
* emulate anyway, to make it more convenient to debug other code.
|
||||
*/
|
||||
UNIMPLEMENTED(RECOVERY_L) /* Recovery signal from DOWN button */
|
||||
UNIMPLEMENTED(WP_L) /* Write protect input */
|
||||
UNIMPLEMENTED(ENTERING_RW) /* EC entering RW code */
|
||||
|
||||
ALTERNATE(PIN_MASK(16, 0x24), 1, MODULE_UART, 0) /* UART0 */
|
||||
ALTERNATE(PIN_MASK(3, (1 << 4)), 3, MODULE_PWM_FAN, 0)
|
||||
ALTERNATE(PIN_MASK(14, (1 << 0)), 3, MODULE_PWM_FAN, 0)
|
||||
/*
|
||||
* I2C0: External pull-up resistors on EVB are too weak. Let's
|
||||
* also enable internal pull-up here.
|
||||
*/
|
||||
ALTERNATE(PIN_MASK(1, 0x60), 2, MODULE_I2C, GPIO_PULL_UP)
|
||||
ALTERNATE(PIN_MASK(0, 0xfe), 3, MODULE_KEYBOARD_SCAN, GPIO_KB_OUTPUT)
|
||||
ALTERNATE(PIN_MASK(1, 0x03), 3, MODULE_KEYBOARD_SCAN, GPIO_KB_OUTPUT)
|
||||
ALTERNATE(PIN_MASK(3, 0x04), 3, MODULE_KEYBOARD_SCAN, GPIO_KB_INPUT)
|
||||
ALTERNATE(PIN_MASK(4, 0x0d), 3, MODULE_KEYBOARD_SCAN, GPIO_KB_INPUT)
|
||||
ALTERNATE(PIN_MASK(10, 0xd8), 3, MODULE_KEYBOARD_SCAN, GPIO_KB_OUTPUT)
|
||||
ALTERNATE(PIN_MASK(12, 0x60), 2, MODULE_KEYBOARD_SCAN, GPIO_KB_INPUT)
|
||||
ALTERNATE(PIN_MASK(14, 0x14), 3, MODULE_KEYBOARD_SCAN, GPIO_KB_INPUT)
|
||||
ALTERNATE(PIN_MASK(2, 0x20), 2, MODULE_LPC, 0)
|
||||
ALTERNATE(PIN_MASK(12, 0x14), 1, MODULE_SPI, 0)
|
||||
ALTERNATE(PIN_MASK(6, 0x10), 1, MODULE_SPI, 0)
|
||||
@@ -1,17 +0,0 @@
|
||||
/* -*- mode:c -*-
|
||||
*
|
||||
* Copyright (c) 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.
|
||||
*
|
||||
* Minimal set of GPIOs needed for LFW loader
|
||||
*/
|
||||
|
||||
GPIO(PVT_CS0, PIN(146), GPIO_ODR_HIGH) /* SPI PVT Chip select */
|
||||
GPIO(SHD_CS0, PIN(150), GPIO_ODR_HIGH)
|
||||
|
||||
/* Alternate functions GPIO definition */
|
||||
ALTERNATE(PIN_MASK(16, 0x24), 1, MODULE_UART, 0) /* UART0 */
|
||||
ALTERNATE(PIN_MASK(5, 0x10), 1, MODULE_SPI, 0)
|
||||
ALTERNATE(PIN_MASK(16, 0x10), 1, MODULE_SPI, 0)
|
||||
ALTERNATE(PIN_MASK(15, 0x08), 1, MODULE_SPI, 0) /* 153: CLK */
|
||||
Reference in New Issue
Block a user