| 1 |
/* |
| 2 |
* Copyright (c) 2018-2024, Arm Limited and Contributors. All rights reserved. |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: BSD-3-Clause |
| 5 |
*/ |
| 6 |
|
| 7 |
#include <plat/common/platform.h> |
| 8 |
|
| 9 |
#include <nrd_plat.h> |
| 10 |
#include <nrd_variant.h> |
| 11 |
|
| 12 |
unsigned int plat_arm_nrd_get_platform_id(void) |
| 13 |
{ |
| 14 |
return mmio_read_32(SSC_VERSION) & SSC_VERSION_PART_NUM_MASK; |
| 15 |
} |
| 16 |
|
| 17 |
unsigned int plat_arm_nrd_get_config_id(void) |
| 18 |
{ |
| 19 |
return (mmio_read_32(SSC_VERSION) >> SSC_VERSION_CONFIG_SHIFT) |
| 20 |
& SSC_VERSION_CONFIG_MASK; |
| 21 |
} |
| 22 |
|
| 23 |
unsigned int plat_arm_nrd_get_multi_chip_mode(void) |
| 24 |
{ |
| 25 |
return 0; |
| 26 |
} |
| 27 |
|
| 28 |
void bl31_platform_setup(void) |
| 29 |
{ |
| 30 |
nrd_bl31_common_platform_setup(); |
| 31 |
} |