Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
1100a4f1
Commit
1100a4f1
authored
11 years ago
by
Jon Medhurst
Committed by
Sandrine Bailleux
11 years ago
Browse files
Options
Download
Email Patches
Plain Diff
juno: Update GIC addresses
Signed-off-by:
Jon Medhurst
<
tixy@linaro.org
>
parent
f5a885ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plat/juno/plat_gic.c
+4
-9
plat/juno/plat_gic.c
plat/juno/platform.h
+6
-14
plat/juno/platform.h
with
10 additions
and
23 deletions
+10
-23
plat/juno/plat_gic.c
View file @
1100a4f1
...
...
@@ -59,7 +59,7 @@ void gicv3_cpuif_setup(void)
* GICR_WAKER is NOT banked per CPU, compute the correct base address
* per CPU.
*/
base
=
gicv3_get_rdist
(
BASE_
GICR_BASE
,
read_mpidr
());
base
=
gicv3_get_rdist
(
GICR_BASE
,
read_mpidr
());
if
(
base
==
(
uintptr_t
)
NULL
)
{
/* No re-distributor base address. This interface cannot be
* configured.
...
...
@@ -123,7 +123,7 @@ void gicv3_cpuif_deactivate(void)
* GICR_WAKER is NOT banked per CPU, compute the correct base address
* per CPU.
*/
base
=
gicv3_get_rdist
(
BASE_
GICR_BASE
,
read_mpidr
());
base
=
gicv3_get_rdist
(
GICR_BASE
,
read_mpidr
());
if
(
base
==
(
uintptr_t
)
NULL
)
{
/* No re-distributor base address. This interface cannot be
* configured.
...
...
@@ -272,11 +272,6 @@ void gic_distif_setup(unsigned int gicd_base)
void
gic_setup
(
void
)
{
unsigned
int
gicd_base
,
gicc_base
;
gicd_base
=
platform_get_cfgvar
(
CONFIG_GICD_ADDR
);
gicc_base
=
platform_get_cfgvar
(
CONFIG_GICC_ADDR
);
gic_cpuif_setup
(
gicc_base
);
gic_distif_setup
(
gicd_base
);
gic_cpuif_setup
(
GICC_BASE
);
gic_distif_setup
(
GICD_BASE
);
}
This diff is collapsed.
Click to expand it.
plat/juno/platform.h
View file @
1100a4f1
...
...
@@ -171,20 +171,12 @@
/*******************************************************************************
* GIC-400 & interrupt handling related constants
******************************************************************************/
/* VE compatible GIC memory map */
#define VE_GICD_BASE 0x2c001000
#define VE_GICC_BASE 0x2c002000
#define VE_GICH_BASE 0x2c004000
#define VE_GICV_BASE 0x2c006000
/* Base FVP compatible GIC memory map */
#define BASE_GICD_BASE 0x2f000000
#define BASE_GICR_BASE 0x2f100000
#define BASE_GICC_BASE 0x2c000000
#define BASE_GICH_BASE 0x2c010000
#define BASE_GICV_BASE 0x2c02f000
#define IRQ_TZ_WDOG 56
#define GICD_BASE 0x2c010000
#define GICC_BASE 0x2c02f000
#define GICH_BASE 0x2c04f000
#define GICV_BASE 0x2c06f000
#define IRQ_TZ_WDOG 86
#define IRQ_SEC_PHY_TIMER 29
#define IRQ_SEC_SGI_0 8
#define IRQ_SEC_SGI_1 9
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help