diff options
Diffstat (limited to 'board/hadoken')
-rw-r--r-- | board/hadoken/board.c | 12 | ||||
-rw-r--r-- | board/hadoken/board.h | 40 | ||||
-rw-r--r-- | board/hadoken/build.mk | 16 | ||||
-rw-r--r-- | board/hadoken/ec.tasklist | 13 | ||||
-rw-r--r-- | board/hadoken/gpio.inc | 59 |
5 files changed, 0 insertions, 140 deletions
diff --git a/board/hadoken/board.c b/board/hadoken/board.c deleted file mode 100644 index d9c8ed322f..0000000000 --- a/board/hadoken/board.c +++ /dev/null @@ -1,12 +0,0 @@ -/* 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. - */ -#include "gpio.h" -#include "registers.h" -#include "util.h" - - -/* To define the gpio_list[] instance. */ -#include "gpio_list.h" - diff --git a/board/hadoken/board.h b/board/hadoken/board.h deleted file mode 100644 index ef4b45640d..0000000000 --- a/board/hadoken/board.h +++ /dev/null @@ -1,40 +0,0 @@ -/* 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. - */ - -/* Hadoken board configuration */ - -#ifndef __CROS_EC_BOARD_H -#define __CROS_EC_BOARD_H - -#ifndef __ASSEMBLER__ - -#undef CONFIG_FLASH_CROS /* TODO: implement me */ -#undef CONFIG_FLASH_PHYSICAL /* TODO: implement me */ -#undef CONFIG_FMAP /* TODO: implement me */ -#undef CONFIG_WATCHDOG -#undef CONFIG_LID_SWITCH - -/* - * nRF51 board specific configuration. - */ -#define NRF51_UART_TX_PIN 24 -#define NRF51_UART_RX_PIN 28 - -#define BATTERY_VOLTAGE_MAX 4425 /* mV */ -#define BATTERY_VOLTAGE_NORMAL 3800 /* mV */ -#define BATTERY_VOLTAGE_MIN 3000 /* mV */ - -#define CONFIG_BLUETOOTH_LE -#define CONFIG_BLUETOOTH_LE_STACK -#define CONFIG_BLUETOOTH_LE_RADIO_TEST -#define CONFIG_BLUETOOTH_LL_DEBUG -#define CONFIG_BLUETOOTH_HCI_DEBUG - -#include "gpio_signal.h" - -#endif /* !__ASSEMBLER__ */ - -#endif /* __CROS_EC_BOARD_H */ - diff --git a/board/hadoken/build.mk b/board/hadoken/build.mk deleted file mode 100644 index b2fee56f23..0000000000 --- a/board/hadoken/build.mk +++ /dev/null @@ -1,16 +0,0 @@ -# -*- makefile -*- -# 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. -# -# Board specific files build - -# the IC is Nordic nRF51822 -CHIP:=nrf51 -CHIP_FAMILY:=nrf51x22 -CHIP_VARIANT:=nrf51822 - -# Hadoken does not support scratchpad -test-list-y= - -board-y=board.o diff --git a/board/hadoken/ec.tasklist b/board/hadoken/ec.tasklist deleted file mode 100644 index 0bb461ecb8..0000000000 --- a/board/hadoken/ec.tasklist +++ /dev/null @@ -1,13 +0,0 @@ -/* 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. - */ - -/** - * 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, TASK_STACK_SIZE) \ - TASK_ALWAYS(BLE_LL, bluetooth_ll_task, NULL, TASK_STACK_SIZE) - diff --git a/board/hadoken/gpio.inc b/board/hadoken/gpio.inc deleted file mode 100644 index ac4127992c..0000000000 --- a/board/hadoken/gpio.inc +++ /dev/null @@ -1,59 +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. */ - -#define GPIO_KB_INPUT (GPIO_INPUT | GPIO_PULL_UP | GPIO_INT_BOTH) -#define GPIO_KB_OUTPUT GPIO_ODR_HIGH - -/* Keyboard inputs */ -/* - * TODO(yjlou): call keyboard_raw_gpio_interrupt() in chip/nrf51/keyboard_raw.c - */ -GPIO(KB_IN00, PIN(0, 6), GPIO_KB_INPUT) -GPIO(KB_IN01, PIN(0, 23), GPIO_KB_INPUT) -GPIO(KB_IN02, PIN(0, 1), GPIO_KB_INPUT) -GPIO(KB_IN03, PIN(0, 4), GPIO_KB_INPUT) -GPIO(KB_IN04, PIN(0, 0), GPIO_KB_INPUT) -GPIO(KB_IN05, PIN(0, 29), GPIO_KB_INPUT) -GPIO(KB_IN06, PIN(0, 22), GPIO_KB_INPUT) -GPIO(KB_IN07, PIN(0, 25), GPIO_KB_INPUT) - -/* Other inputs */ -GPIO(LID_PRESENT_L, PIN(0, 30), GPIO_INPUT) /* Hall sensor */ - -/* Useful for test software */ -GPIO(IND_CHRG_DISABLE, PIN(0, 20), GPIO_INPUT) - -/* Outputs */ -GPIO(KB_OUT00, PIN(0, 2), GPIO_KB_OUTPUT) -GPIO(KB_OUT01, PIN(0, 10), GPIO_KB_OUTPUT) -GPIO(KB_OUT02, PIN(0, 7), GPIO_KB_OUTPUT) -GPIO(KB_OUT03, PIN(0, 5), GPIO_KB_OUTPUT) -GPIO(KB_OUT04, PIN(0, 3), GPIO_KB_OUTPUT) -GPIO(KB_OUT05, PIN(0, 9), GPIO_KB_OUTPUT) -GPIO(KB_OUT06, PIN(0, 8), GPIO_KB_OUTPUT) -GPIO(KB_OUT07, PIN(0, 27), GPIO_KB_OUTPUT) -GPIO(KB_OUT08, PIN(0, 18), GPIO_KB_OUTPUT) -GPIO(KB_OUT09, PIN(0, 16), GPIO_KB_OUTPUT) -GPIO(KB_OUT10, PIN(0, 12), GPIO_KB_OUTPUT) -GPIO(KB_OUT11, PIN(0, 15), GPIO_KB_OUTPUT) -GPIO(KB_OUT12, PIN(0, 11), GPIO_KB_OUTPUT) - -/* SPI */ -GPIO(MCU_SPI_MOSI, PIN(0, 13), GPIO_OUTPUT) -GPIO(MCU_SPI_MISO, PIN(0, 14), GPIO_INPUT) -GPIO(MCU_SPI_SCLK, PIN(0, 17), GPIO_OUTPUT) -GPIO(MCU_SPI_CS_L, PIN(0, 19), GPIO_OUT_HIGH) - -/* VBATT_SENSE */ -GPIO(VBATT_SENSE, PIN(0, 26), GPIO_ANALOG) -GPIO(VBATT_SENSE_EN, PIN(0, 21), GPIO_OUT_LOW) - -/* Unimplemented */ -UNIMPLEMENTED(ENTERING_RW) |