brya: add skeletal board and baseboard build
this adds a minimal build for a new board called brya. brya will be the basis for a family of boards, so this also introduces a new baseboard called brya. the primary goal is to introduce a build target to enable iterative development of this board. BRANCH=none BUG=b:173575131 TEST=make BOARD=brya, make buildall, verified ec.bin is generated Change-Id: I27a64594b84c69ee43ee91227c47391a801dee44 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2546802 Reviewed-by: Keith Short <keithshort@chromium.org>
This commit is contained in:
parent
82a761da1b
commit
c6002497c6
|
@ -0,0 +1,11 @@
|
|||
/* Copyright 2020 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.
|
||||
*/
|
||||
|
||||
/* Brya baseboard configuration */
|
||||
|
||||
#ifndef __CROS_EC_BASEBOARD_H
|
||||
#define __CROS_EC_BASEBOARD_H
|
||||
|
||||
#endif /* __CROS_EC_BASEBOARD_H */
|
|
@ -0,0 +1,7 @@
|
|||
# -*- makefile -*-
|
||||
# Copyright 2020 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.
|
||||
#
|
||||
# Brya baseboard specific files build
|
||||
#
|
|
@ -0,0 +1,12 @@
|
|||
/* Copyright 2020 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 "registers.h"
|
||||
|
||||
static void fake_gpio_interrupt(enum gpio_signal signal)
|
||||
{
|
||||
}
|
||||
|
||||
#include "gpio_list.h"
|
|
@ -0,0 +1,32 @@
|
|||
/* Copyright 2020 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.
|
||||
*/
|
||||
|
||||
/* Brya board configuration */
|
||||
|
||||
#ifndef __CROS_EC_BOARD_H
|
||||
#define __CROS_EC_BOARD_H
|
||||
|
||||
/* Baseboard features */
|
||||
#include "baseboard.h"
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
#include "gpio_signal.h" /* must precede gpio.h */
|
||||
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
/*
|
||||
* Disable features enabled by default.
|
||||
*/
|
||||
#undef CONFIG_ADC
|
||||
#undef CONFIG_LID_SWITCH
|
||||
#undef CONFIG_HIBERNATE
|
||||
#undef CONFIG_SPI_FLASH
|
||||
#undef CONFIG_SWITCH
|
||||
|
||||
#define GPIO_WP_L GPIO_FAKE_IRQ_00
|
||||
#define GPIO_ENTERING_RW GPIO_FAKE_OUT_01
|
||||
|
||||
#endif /* __CROS_EC_BOARD_H */
|
|
@ -0,0 +1,14 @@
|
|||
# -*- makefile -*-
|
||||
# Copyright 2020 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.
|
||||
#
|
||||
# Brya board specific files build
|
||||
#
|
||||
|
||||
CHIP:=npcx
|
||||
CHIP_FAMILY:=npcx9
|
||||
CHIP_VARIANT:=npcx9m3f
|
||||
BASEBOARD:=brya
|
||||
|
||||
board-y=board.o
|
|
@ -0,0 +1,13 @@
|
|||
/* Copyright 2020 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(HOSTCMD, host_command_task, NULL, LARGER_TASK_STACK_SIZE) \
|
||||
TASK_ALWAYS(CONSOLE, console_task, NULL, VENTI_TASK_STACK_SIZE)
|
|
@ -0,0 +1,15 @@
|
|||
/* -*- mode:c -*-
|
||||
*
|
||||
* Copyright 2020 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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* we need at least one GPIO definition because much of the code does not
|
||||
* handle the case of no GPIOs.
|
||||
*/
|
||||
|
||||
GPIO_INT(FAKE_IRQ_00, PIN(3, 4), GPIO_INT_BOTH, fake_gpio_interrupt)
|
||||
|
||||
GPIO(FAKE_OUT_01, PIN(5, 6), GPIO_OUTPUT)
|
Loading…
Reference in New Issue