diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-01-11 11:04:26 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-11 19:29:34 +0000 |
commit | 0478fa3a828e8e93e66e607ebc8ae9a10ee0a028 (patch) | |
tree | 3a4b3583ff6f79d13080acfb863878f33ea9af8a /zephyr | |
parent | 2cf1a917c124869b13b3180626621ffa18e840b3 (diff) | |
download | chrome-ec-0478fa3a828e8e93e66e607ebc8ae9a10ee0a028.tar.gz |
zephyr: copy the posix-ec project to platform/ec
Previous git history can be found here:
https://chromium.googlesource.com/chromiumos/platform/zephyr-chrome/+log/ddb16e068c67361c638903a4266bdfb45b4960d2/projects/experimental/posix-ec
BUG=b:177003034
BRANCH=none
TEST=CQ passes
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I809af16ad13fde9838593d3bbe073873dc89b1d6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2622553
Reviewed-by: Yuval Peress <peress@chromium.org>
Diffstat (limited to 'zephyr')
-rw-r--r-- | zephyr/projects/posix-ec/CMakeLists.txt | 10 | ||||
-rw-r--r-- | zephyr/projects/posix-ec/prj.conf | 18 | ||||
-rw-r--r-- | zephyr/projects/posix-ec/zmake.yaml | 5 |
3 files changed, 33 insertions, 0 deletions
diff --git a/zephyr/projects/posix-ec/CMakeLists.txt b/zephyr/projects/posix-ec/CMakeLists.txt new file mode 100644 index 0000000000..c4ac80228d --- /dev/null +++ b/zephyr/projects/posix-ec/CMakeLists.txt @@ -0,0 +1,10 @@ +# 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. +# SPDX-License-Identifier: Apache-2.0 + +cmake_minimum_required(VERSION 3.13.1) +set(BOARD native_posix) + +find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(posix-ec) diff --git a/zephyr/projects/posix-ec/prj.conf b/zephyr/projects/posix-ec/prj.conf new file mode 100644 index 0000000000..e79730789d --- /dev/null +++ b/zephyr/projects/posix-ec/prj.conf @@ -0,0 +1,18 @@ +CONFIG_CROS_EC=y +CONFIG_PLATFORM_EC=y + +# Disable shimmed code. Can enabled selectively later +CONFIG_SHIMMED_TASKS=n +CONFIG_PLATFORM_EC_KEYBOARD=n +CONFIG_PLATFORM_EC_HOSTCMD=n +CONFIG_PLATFORM_EC_I2C=n + +# Define necessary program memory locations. These are meaning less though +CONFIG_CROS_EC_PROGRAM_MEMORY_BASE=0x10090000 +CONFIG_CROS_EC_RAM_BASE=0x200c0000 +CONFIG_CROS_EC_DATA_RAM_SIZE=0x00010000 +CONFIG_CROS_EC_RAM_SIZE=0x0000f800 +CONFIG_CROS_EC_RO_MEM_OFF=0x0 +CONFIG_CROS_EC_RO_SIZE=0xb000 +CONFIG_CROS_EC_RW_MEM_OFF=0xb000 +CONFIG_CROS_EC_RW_SIZE=0x75000 diff --git a/zephyr/projects/posix-ec/zmake.yaml b/zephyr/projects/posix-ec/zmake.yaml new file mode 100644 index 0000000000..a71e599058 --- /dev/null +++ b/zephyr/projects/posix-ec/zmake.yaml @@ -0,0 +1,5 @@ +board: native_posix +supported-zephyr-versions: + - v2.4 +output-type: elf +toolchain: llvm |