forked from Mirrors/opensbi
platform: andes: Change all occurrences of andes45 to andes
To make the framework suit all Andes CPUs, change all occurrences of andes45 to andes. In addition, we fix some coding style problems and remove an unused macro in andes.h. Signed-off-by: Ben Zong-You Xie <ben717@andestech.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:

committed by
Anup Patel

parent
f68b3aed9d
commit
2b93ce0954
@@ -3,21 +3,21 @@
|
||||
* Copyright (C) 2023 Renesas Electronics Corp.
|
||||
*/
|
||||
|
||||
#ifndef _ANDES45_PMA_H_
|
||||
#define _ANDES45_PMA_H_
|
||||
#ifndef _ANDES_PMA_H_
|
||||
#define _ANDES_PMA_H_
|
||||
|
||||
#include <sbi/sbi_types.h>
|
||||
|
||||
#define ANDES45_MAX_PMA_REGIONS 16
|
||||
#define ANDES_MAX_PMA_REGIONS 16
|
||||
|
||||
/* Naturally aligned power of 2 region */
|
||||
#define ANDES45_PMACFG_ETYP_NAPOT 3
|
||||
#define ANDES_PMACFG_ETYP_NAPOT 3
|
||||
|
||||
/* Memory, Non-cacheable, Bufferable */
|
||||
#define ANDES45_PMACFG_MTYP_MEM_NON_CACHE_BUF (3 << 2)
|
||||
#define ANDES_PMACFG_MTYP_MEM_NON_CACHE_BUF (3 << 2)
|
||||
|
||||
/**
|
||||
* struct andes45_pma_region - Describes PMA regions
|
||||
* struct andes_pma_region - Describes PMA regions
|
||||
*
|
||||
* @pa: Address to be configured in the PMA
|
||||
* @size: Size of the region
|
||||
@@ -32,7 +32,7 @@
|
||||
* be set in the DT node. Note Linux expects single node
|
||||
* with this property set.
|
||||
*/
|
||||
struct andes45_pma_region {
|
||||
struct andes_pma_region {
|
||||
unsigned long pa;
|
||||
unsigned long size;
|
||||
u8 flags:7;
|
||||
@@ -42,7 +42,7 @@ struct andes45_pma_region {
|
||||
bool dma_default;
|
||||
};
|
||||
|
||||
int andes45_pma_setup_regions(const struct andes45_pma_region *pma_regions,
|
||||
unsigned int pma_regions_count);
|
||||
int andes_pma_setup_regions(const struct andes_pma_region *pma_regions,
|
||||
unsigned int pma_regions_count);
|
||||
|
||||
#endif /* _ANDES45_PMA_H_ */
|
||||
#endif /* _ANDES_PMA_H_ */
|
||||
|
Reference in New Issue
Block a user