| 1 | /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */ |
|---|---|
| 2 | /* Copyright 2024 NXP |
| 3 | */ |
| 4 | #ifndef __NETC_GLOBAL_H |
| 5 | #define __NETC_GLOBAL_H |
| 6 | |
| 7 | #include <linux/io.h> |
| 8 | |
| 9 | static inline u32 netc_read(void __iomem *reg) |
| 10 | { |
| 11 | return ioread32(reg); |
| 12 | } |
| 13 | |
| 14 | static inline void netc_write(void __iomem *reg, u32 val) |
| 15 | { |
| 16 | iowrite32(val, reg); |
| 17 | } |
| 18 | |
| 19 | #endif |
| 20 |
