Skip to content

Commit

Permalink
plat-aspeed: ast2700: use gic_init_v3()
Browse files Browse the repository at this point in the history
Use gic_init_v3() with the GICR base address.

Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
  • Loading branch information
ChiaweiW committed Dec 1, 2023
1 parent 0f50ba5 commit 4240d9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/arch/arm/plat-aspeed/platform_ast2700.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@

register_phys_mem(MEM_AREA_IO_SEC, UART_BASE, SMALL_PAGE_SIZE);
register_phys_mem(MEM_AREA_IO_SEC, GICD_BASE, GIC_DIST_REG_SIZE);
register_phys_mem(MEM_AREA_IO_SEC, GICR_BASE, GICR_SIZE);

register_ddr(CFG_DRAM_BASE, CFG_DRAM_SIZE);

static struct serial8250_uart_data console_data;

void boot_primary_init_intc(void)
{
gic_init(0, GICD_BASE);
gic_init_v3(0, GICD_BASE, GICR_BASE);
}

void boot_secondary_init_intc(void)
Expand Down
1 change: 1 addition & 0 deletions core/arch/arm/plat-aspeed/platform_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#elif defined(PLATFORM_FLAVOR_ast2700)
#define GICD_BASE 0x12200000
#define GICR_BASE 0x12280000
#define GICR_SIZE 0x100000

#define UART_BASE 0x14c33000
#define UART12_BASE (UART_BASE + 0xb00)
Expand Down

0 comments on commit 4240d9f

Please sign in to comment.