Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
8d48810f
Commit
8d48810f
authored
Feb 26, 2020
by
Sandrine Bailleux
Committed by
TrustedFirmware Code Review
Feb 26, 2020
Browse files
Merge "uniphier: prepare uniphier_soc_info() for next SoC" into integration
parents
8b29a0f6
dd53cfe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
plat/socionext/uniphier/uniphier_soc_info.c
View file @
8d48810f
...
...
@@ -4,18 +4,25 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <common/bl_common.h>
#include <lib/mmio.h>
#include "uniphier.h"
#define UNIPHIER_REVISION 0x5f800000
#define UNIPHIER_REVISION 0x5f800000UL
#define UNIPHIER_REVISION_NEW 0x1f800000UL
static
unsigned
int
uniphier_get_revision_field
(
unsigned
int
mask
,
unsigned
int
shift
)
{
uint
32
_t
re
vision
=
mmio_read_32
(
UNIPHIER_REVISION
)
;
uint
ptr
_t
re
g
;
return
(
revision
>>
shift
)
&
mask
;
if
(
BL_CODE_BASE
>=
0x80000000UL
)
reg
=
UNIPHIER_REVISION
;
else
reg
=
UNIPHIER_REVISION_NEW
;
return
(
mmio_read_32
(
reg
)
>>
shift
)
&
mask
;
}
unsigned
int
uniphier_get_soc_type
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment