1*dd1033e4SGregory CLEMENT /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
2*dd1033e4SGregory CLEMENT /*
3*dd1033e4SGregory CLEMENT  * Microsemi Ocelot Switch driver
4*dd1033e4SGregory CLEMENT  *
5*dd1033e4SGregory CLEMENT  * Copyright (c) 2018 Microsemi Corporation
6*dd1033e4SGregory CLEMENT  */
7*dd1033e4SGregory CLEMENT 
8*dd1033e4SGregory CLEMENT #ifndef _MSCC_OCELOT_H_
9*dd1033e4SGregory CLEMENT #define _MSCC_OCELOT_H_
10*dd1033e4SGregory CLEMENT 
11*dd1033e4SGregory CLEMENT #include <linux/bitops.h>
12*dd1033e4SGregory CLEMENT #include <dm.h>
13*dd1033e4SGregory CLEMENT 
14*dd1033e4SGregory CLEMENT /*
15*dd1033e4SGregory CLEMENT  * Target offset base(s)
16*dd1033e4SGregory CLEMENT  */
17*dd1033e4SGregory CLEMENT #define MSCC_IO_ORIGIN1_OFFSET 0x70000000
18*dd1033e4SGregory CLEMENT #define MSCC_IO_ORIGIN1_SIZE   0x00200000
19*dd1033e4SGregory CLEMENT #define MSCC_IO_ORIGIN2_OFFSET 0x71000000
20*dd1033e4SGregory CLEMENT #define MSCC_IO_ORIGIN2_SIZE   0x01000000
21*dd1033e4SGregory CLEMENT #define BASE_CFG        ((void __iomem *)0x70000000)
22*dd1033e4SGregory CLEMENT #define BASE_DEVCPU_GCB ((void __iomem *)0x71070000)
23*dd1033e4SGregory CLEMENT 
24*dd1033e4SGregory CLEMENT #endif
25