mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-05-23 14:21:32 +01:00
platform: generic: Tenstorrent Atlantis support
Add the Tenstorrent Atlantis as a generic-platform. This initial support enables the single_fw_region option, and verifies and prints HART PMA CSR configuration. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260424062520.238403-1-npiggin@gmail.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
committed by
Anup Patel
parent
1932ee3f0a
commit
6767861c48
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: (c) 2025-2026 Tenstorrent USA, Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#ifndef __TENSTORRENT_ASCALON_H__
|
||||
#define __TENSTORRENT_ASCALON_H__
|
||||
|
||||
void tt_ascalon_discover_pmas_from_boot_hart(void);
|
||||
void tt_ascalon_verify_pmas_nonboot_hart(void);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: (c) 2025-2026 Tenstorrent USA, Inc.
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#ifndef __TENSTORRENT_PMA_H__
|
||||
#define __TENSTORRENT_PMA_H__
|
||||
|
||||
/* Max number of PMAs for devices (CPU, IOMMU) for Tenstorrent platforms. */
|
||||
#define TT_MAX_PMAS 32
|
||||
|
||||
u64 tt_pma_get(unsigned int n);
|
||||
void tt_pma_set(unsigned int n, u64 pma);
|
||||
bool tt_pma_validate(unsigned int i, u64 pma);
|
||||
void tt_pma_print(unsigned int i, u64 pma);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user