blob: 55168c2fb8fd3611051985a0eaea3c63466208a1 [file] [log] [blame]
Holger Brunck468ba8d2020-02-19 19:55:14 +01001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
Holger Brunck5d57dfa2020-10-08 12:27:22 +02003 * Copyright (C) 2017-2020 Hitachi Power Grids
Holger Brunck468ba8d2020-02-19 19:55:14 +01004 *
5 */
6#ifndef __CONFIG_SOCFPGA_SECU1_H__
7#define __CONFIG_SOCFPGA_SECU1_H__
8
9#include <asm/arch/base_addr_ac5.h>
Holger Brunck468ba8d2020-02-19 19:55:14 +010010
Holger Brunck468ba8d2020-02-19 19:55:14 +010011/* Eternal oscillator */
Tom Rini65cc0e22022-11-16 13:10:41 -050012#define CFG_SYS_TIMER_RATE 40000000
Holger Brunck468ba8d2020-02-19 19:55:14 +010013
14/* Memory configurations */
15#define PHYS_SDRAM_1_SIZE 0x20000000 /* 512MiB on SECU1 */
16
17/*
18 * We use bootcounter in i2c nvram of the RTC (0x68)
19 * The offset fopr the bootcounter is 0x9e, which are
20 * the last two bytes of the 128 bytes large NVRAM in the
21 * RTC which begin at address 0x20
22 */
Tom Rini65cc0e22022-11-16 13:10:41 -050023#define CFG_SYS_I2C_RTC_ADDR 0x68
Holger Brunck468ba8d2020-02-19 19:55:14 +010024
Holger Brunck468ba8d2020-02-19 19:55:14 +010025/* The rest of the configuration is shared */
26#include <configs/socfpga_common.h>
27
Holger Brunck468ba8d2020-02-19 19:55:14 +010028#endif /* __CONFIG_SOCFPGA_SECU1_H__ */