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