diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2005-01-09 05:29:43 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2005-01-09 05:29:43 +0000 |
commit | 98fde70f705d3599b468cb52b70d1bc1e639ad57 (patch) | |
tree | 20e322a352ff2001360fad1c1be850f98b4e8285 /sys/arch | |
parent | 0d967ca6e58ec8e7f947bed660e974db64d4c7b9 (diff) |
fix pincount, improve readabilty.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm/xscale/pxa2x0reg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/arm/xscale/pxa2x0reg.h b/sys/arch/arm/xscale/pxa2x0reg.h index 2e3f09373ea..2340e03e9a4 100644 --- a/sys/arch/arm/xscale/pxa2x0reg.h +++ b/sys/arch/arm/xscale/pxa2x0reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pxa2x0reg.h,v 1.5 2005/01/05 00:46:28 dlg Exp $ */ +/* $OpenBSD: pxa2x0reg.h,v 1.6 2005/01/09 05:29:42 drahn Exp $ */ /* $NetBSD: pxa2x0reg.h,v 1.4 2003/06/11 20:43:01 scw Exp $ */ /* @@ -318,7 +318,7 @@ struct pxa2x0_dma_desc { #define GPIO_GEDR3 0x148 /* edge detect PXA270 [120:96] */ #define GPIO_REG(r, pin) ((r) + \ - ((pin > 95) ? GPIO_GPLR3 : (((pin) / 32) * 4))) + ((pin > 95) ? GPIO_GPLR3 : (((pin) / 32) * 4))) #define GPIO_BANK(pin) ((pin) / 32) #define GPIO_BIT(pin) (1u << ((pin) & 0x1f)) #define GPIO_FN_REG(pin) (GPIO_GAFR0_L + (((pin) / 16) * 4)) @@ -343,7 +343,7 @@ struct pxa2x0_dma_desc { #define GPIO_IS_GPIO_IN(n) (((n) & (GPIO_FN_MASK|GPIO_OUT)) == GPIO_IN) #define GPIO_IS_GPIO_OUT(n) (((n) & (GPIO_FN_MASK|GPIO_OUT)) == GPIO_OUT) -#define GPIO_NPINS 120 +#define GPIO_NPINS 121 /* * memory controller |