Skip to content

Commit

Permalink
Add support for Cheshire (CVA6), refactor Ariane
Browse files Browse the repository at this point in the history
Added support for Cheshire (CVA6). Refactored Ariane and Cheshire to use
a shared mach definition since they both implement the CVA6 core and have
common code.

Signed-off-by: Matt Rossouw <matthew.rossouw@unsw.edu.au>
  • Loading branch information
omeh-a committed Feb 4, 2025
1 parent f98dad1 commit 4784dbc
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libplatsupport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ config_choice(
set(LibPlatSupportMach "")
if(KernelPlatformRpi3 OR KernelPlatformRpi4)
set(LibPlatSupportMach "bcm")
elseif(KernelPlatformCheshire OR KernelPlatformAriane)
set(LibPlatSupportMach "cva6")
elseif(NOT ${KernelArmMach} STREQUAL "")
# falling back to kernel settings is done to keep legacy compatibility
set(LibPlatSupportMach "${KernelArmMach}")
Expand Down
19 changes: 19 additions & 0 deletions libplatsupport/plat_include/cheshire/platsupport/plat/serial.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright 2019, Data61, CSIRO (ABN 41 687 119 230)
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#pragma once
#include <autoconf.h>

enum chardev_id {
PS_SERIAL0,
/* defaults */
PS_SERIAL_DEFAULT = PS_SERIAL0
};

#define PS_SERIAL_DEFAULT 0

#define DEFAULT_SERIAL_PADDR NULL
#define DEFAULT_SERIAL_INTERRUPT 0
File renamed without changes.
File renamed without changes.

0 comments on commit 4784dbc

Please sign in to comment.