2020-01-30 20:34:59 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2020 Cortina Access Inc.
|
|
|
|
*
|
2021-01-14 21:34:13 +00:00
|
|
|
* Configuration for Cortina-Access Presidio board
|
2020-01-30 20:34:59 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __PRESIDIO_ASIC_H
|
|
|
|
#define __PRESIDIO_ASIC_H
|
|
|
|
|
|
|
|
/* Generic Timer Definitions */
|
2022-04-13 09:47:21 +00:00
|
|
|
#define CONFIG_SYS_TIMER_RATE 25000000
|
2020-01-30 20:34:59 +00:00
|
|
|
#define CONFIG_SYS_TIMER_COUNTER 0xf4321008
|
|
|
|
|
|
|
|
/* note: arch/arm/cpu/armv8/start.S which references GICD_BASE/GICC_BASE
|
|
|
|
* does not yet support DT. Thus define it here.
|
|
|
|
*/
|
|
|
|
#define GICD_BASE 0xf7011000
|
|
|
|
#define GICC_BASE 0xf7012000
|
|
|
|
|
|
|
|
#define CONFIG_SYS_TIMER_BASE 0xf4321000
|
|
|
|
|
|
|
|
/* Use external clock source */
|
|
|
|
#define PRESIDIO_APB_CLK 125000000
|
|
|
|
#define CORTINA_PER_IO_FREQ PRESIDIO_APB_CLK
|
|
|
|
|
|
|
|
/* Cortina Serial Configuration */
|
|
|
|
#define CORTINA_UART_CLOCK (PRESIDIO_APB_CLK)
|
|
|
|
#define CORTINA_SERIAL_PORTS {(void *)CONFIG_SYS_SERIAL0, \
|
|
|
|
(void *)CONFIG_SYS_SERIAL1}
|
|
|
|
|
|
|
|
#define CONFIG_SYS_SERIAL0 PER_UART0_CFG
|
|
|
|
#define CONFIG_SYS_SERIAL1 PER_UART1_CFG
|
|
|
|
|
|
|
|
/* SDRAM Bank #1 */
|
|
|
|
#define DDR_BASE 0x00000000
|
|
|
|
#define PHYS_SDRAM_1 DDR_BASE
|
|
|
|
#define PHYS_SDRAM_1_SIZE 0x80000000 /* 2GB */
|
2022-11-16 18:10:37 +00:00
|
|
|
#define CFG_SYS_SDRAM_BASE PHYS_SDRAM_1
|
2020-01-30 20:34:59 +00:00
|
|
|
|
|
|
|
/* Console I/O Buffer Size */
|
|
|
|
|
2021-01-14 21:34:13 +00:00
|
|
|
#define KSEG1_ATU_XLAT(x) (x)
|
|
|
|
|
|
|
|
/* HW REG ADDR */
|
|
|
|
#define NI_READ_POLL_COUNT 1000
|
|
|
|
#define CA_NI_MDIO_REG_BASE 0xF4338
|
|
|
|
#define NI_HV_GLB_MAC_ADDR_CFG0_OFFSET 0x010
|
|
|
|
#define NI_HV_GLB_MAC_ADDR_CFG1_OFFSET 0x014
|
|
|
|
#define NI_HV_PT_BASE 0x400
|
|
|
|
#define NI_HV_XRAM_BASE 0x820
|
|
|
|
#define GLOBAL_BLOCK_RESET_OFFSET 0x04
|
|
|
|
#define GLOBAL_GLOBAL_CONFIG_OFFSET 0x20
|
|
|
|
#define GLOBAL_IO_DRIVE_CONTROL_OFFSET 0x4c
|
|
|
|
|
2020-01-30 20:34:59 +00:00
|
|
|
/* max command args */
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS "silent=y\0"
|
|
|
|
|
2020-12-11 21:46:13 +00:00
|
|
|
/* nand driver parameters */
|
|
|
|
#ifdef CONFIG_TARGET_PRESIDIO_ASIC
|
2022-11-12 22:36:51 +00:00
|
|
|
#define CFG_SYS_NAND_BASE CONFIG_SYS_FLASH_BASE
|
|
|
|
#define CFG_SYS_NAND_BASE_LIST { CFG_SYS_NAND_BASE }
|
2020-12-11 21:46:13 +00:00
|
|
|
#endif
|
|
|
|
|
2020-01-30 20:34:59 +00:00
|
|
|
#endif /* __PRESIDIO_ASIC_H */
|