blob: 2c38cffa8a0930048777cb6ee6a837777113c0e5 [file] [log] [blame]
Aleksandar Gerasimovski3b24bbd2021-06-08 14:16:28 +00001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2020 Hitachi ABB Power Grids
4 */
5
6#ifndef __CONFIG_PG_WCOM_EXPU1_H
7#define __CONFIG_PG_WCOM_EXPU1_H
8
9#define WCOM_EXPU1
Aleksandar Gerasimovski3b24bbd2021-06-08 14:16:28 +000010
11/* CLIPS FPGA Definitions */
Tom Rini6a5dccc2022-11-16 13:10:41 -050012#define CFG_SYS_CSPR3_EXT (0x00)
13#define CFG_SYS_CSPR3 (CSPR_PHYS_ADDR(CONFIG_SYS_CLIPS_BASE) | \
Aleksandar Gerasimovski3b24bbd2021-06-08 14:16:28 +000014 CSPR_PORT_SIZE_8 | \
15 CSPR_MSEL_GPCM | \
16 CSPR_V)
Tom Rini6a5dccc2022-11-16 13:10:41 -050017#define CFG_SYS_AMASK3 IFC_AMASK(64 * 1024)
18#define CFG_SYS_CSOR3 (CSOR_GPCM_ADM_SHIFT(0x4) | \
Aleksandar Gerasimovski3b24bbd2021-06-08 14:16:28 +000019 CSOR_GPCM_TRHZ_40)
Tom Rini6a5dccc2022-11-16 13:10:41 -050020#define CFG_SYS_CS3_FTIM0 (FTIM0_GPCM_TACSE(0x6) | \
Aleksandar Gerasimovski3b24bbd2021-06-08 14:16:28 +000021 FTIM0_GPCM_TEADC(0x7) | \
22 FTIM0_GPCM_TEAHC(0x2))
Tom Rini6a5dccc2022-11-16 13:10:41 -050023#define CFG_SYS_CS3_FTIM1 (FTIM1_GPCM_TACO(0x2) | \
Aleksandar Gerasimovski3b24bbd2021-06-08 14:16:28 +000024 FTIM1_GPCM_TRAD(0x12))
Tom Rini6a5dccc2022-11-16 13:10:41 -050025#define CFG_SYS_CS3_FTIM2 (FTIM2_GPCM_TCS(0x3) | \
Aleksandar Gerasimovski3b24bbd2021-06-08 14:16:28 +000026 FTIM2_GPCM_TCH(0x1) | \
27 FTIM2_GPCM_TWP(0x12))
Tom Rini6a5dccc2022-11-16 13:10:41 -050028#define CFG_SYS_CS3_FTIM3 0x04000000
Aleksandar Gerasimovski3b24bbd2021-06-08 14:16:28 +000029
30/* PRST */
31#define WCOM_CLIPS_RST 0
32#define WCOM_QSFP_RST 1
33#define WCOM_PHY_RST 2
34#define WCOM_TMG_RST 3
35#define KM_DBG_ETH_RST 15
36
37/* QRIO GPIOs used for deblocking */
38#define KM_I2C_DEBLOCK_PORT QRIO_GPIO_A
39#define KM_I2C_DEBLOCK_SCL 20
40#define KM_I2C_DEBLOCK_SDA 21
41
42/* ZL30343 on SPI */
43#define WCOM_ZL30343_CFG_ADDR 0xe8070000
44#define WCOM_ZL30343_SPI_BUS 0
45#define WCOM_ZL30343_CS 0
46
47#include "km/pg-wcom-ls102xa.h"
48
49#endif /* __CONFIG_PG_WCOM_EXPU1_H */