Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/rockchip Remove unused defines
details: https://anonhg.NetBSD.org/src/rev/277a6fe0d2fd
branches: trunk
changeset: 319961:277a6fe0d2fd
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Jun 16 23:13:29 2018 +0000
description:
Remove unused defines
diffstat:
sys/arch/arm/rockchip/rk_iomux.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diffs (30 lines):
diff -r 44e2eceef5bc -r 277a6fe0d2fd sys/arch/arm/rockchip/rk_iomux.c
--- a/sys/arch/arm/rockchip/rk_iomux.c Sat Jun 16 21:28:07 2018 +0000
+++ b/sys/arch/arm/rockchip/rk_iomux.c Sat Jun 16 23:13:29 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rk_iomux.c,v 1.1 2018/06/16 00:19:04 jmcneill Exp $ */
+/* $NetBSD: rk_iomux.c,v 1.2 2018/06/16 23:13:29 jmcneill Exp $ */
/*-
* Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rk_iomux.c,v 1.1 2018/06/16 00:19:04 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rk_iomux.c,v 1.2 2018/06/16 23:13:29 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -40,11 +40,6 @@
#include <dev/fdt/fdtvar.h>
-#define GRF_GPIO_IOMUX_REG(_bank, _idx) (0x0000 + (_bank) * 0x10 + ((_idx) >> 3) * 4)
-#define GRF_GPIO_IOMUX_SEL(_idx) (0x3 << (((_idx) & 7) * 2))
-#define GRF_GPIO_IOMUX_SEL_MASK 0x3
-#define GRF_GPIO_IOMUX_WRITE_EN(_idx) (0x3 << (((_idx) & 7) * 2 + 16))
-
#define GRF_GPIO_P_REG(_bank, _idx) (0x0100 + (_bank) * 0x10 + ((_idx) >> 3) * 4)
#define GRF_GPIO_P_CTL(_idx) (0x3 << (((_idx) & 7) * 2))
#define GRF_GPIO_P_CTL_Z 0
Home |
Main Index |
Thread Index |
Old Index