| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright 2017 Texas Instruments, Inc. |
|---|
| 3 | | - * |
|---|
| 4 | | - * This software is licensed under the terms of the GNU General Public |
|---|
| 5 | | - * License version 2, as published by the Free Software Foundation, and |
|---|
| 6 | | - * may be copied, distributed, and modified under those terms. |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 9 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 10 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 11 | | - * GNU General Public License for more details. |
|---|
| 12 | 4 | */ |
|---|
| 13 | 5 | #ifndef __DT_BINDINGS_CLK_DM814_H |
|---|
| 14 | 6 | #define __DT_BINDINGS_CLK_DM814_H |
|---|
| .. | .. |
|---|
| 42 | 34 | #define DM814_MMC2_CLKCTRL DM814_CLKCTRL_INDEX(0x220) |
|---|
| 43 | 35 | #define DM814_MMC3_CLKCTRL DM814_CLKCTRL_INDEX(0x224) |
|---|
| 44 | 36 | |
|---|
| 37 | +/* alwon_ethernet clocks */ |
|---|
| 38 | +#define DM814_ETHERNET_CLKCTRL_OFFSET 0x1d4 |
|---|
| 39 | +#define DM814_ETHERNET_CLKCTRL_INDEX(offset) ((offset) - DM814_ETHERNET_CLKCTRL_OFFSET) |
|---|
| 40 | +#define DM814_ETHERNET_CPGMAC0_CLKCTRL DM814_ETHERNET_CLKCTRL_INDEX(0x1d4) |
|---|
| 41 | + |
|---|
| 45 | 42 | #endif |
|---|