Files
OpenCellular/board/hadoken/board.h
Bill Richardson fd88db3e9a g: CONFIG_FLASH should be optional
The application may need to read/write/erase the flash memory,
but we not want console users to do so. This CL adds
CONFIG_FLASH_PHYSICAL, which allows the higher-level CONFIG_FLASH
to be undefined while still providing the chip-specific
flash_physical_* accessor functions.

There aren't many board.h files that needed changes, since
CONFIG_FLASH_PHYSICAL is enabled by default, just like CONFIG_FLASH.

BUG=chrome-os-partner:57408
BRANCH=none
TEST=make buildall; try on Gru with and without CR50_DEV=1

See that it still boots, updates, wipes, restores, etc. without
linking common/flash.o in the production image; and that the
flash commands are still there in the dev build.

Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Change-Id: I7eb1bbcb414b1c70ee427c4fcb5cea899dbb9e93
Reviewed-on: https://chromium-review.googlesource.com/391188
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
2016-10-02 15:19:21 -07:00

41 lines
995 B
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.
*/
/* Hadoken board configuration */
#ifndef __CROS_EC_BOARD_H
#define __CROS_EC_BOARD_H
#ifndef __ASSEMBLER__
#undef CONFIG_FLASH /* 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 */