Module Name: src Committed By: reinoud Date: Fri May 9 19:47:09 UTC 2014
Modified Files: src/sys/arch/arm/samsung: exynos_reg.h Log Message: Add GPIO register definitions Also add the frequency for the USB system; its also used for various other clocksources To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/samsung/exynos_reg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/samsung/exynos_reg.h diff -u src/sys/arch/arm/samsung/exynos_reg.h:1.3 src/sys/arch/arm/samsung/exynos_reg.h:1.4 --- src/sys/arch/arm/samsung/exynos_reg.h:1.3 Sat Apr 19 16:43:08 2014 +++ src/sys/arch/arm/samsung/exynos_reg.h Fri May 9 19:47:09 2014 @@ -107,7 +107,7 @@ /* standard frequency settings */ #define EXYNOS_ACLK_REF_FREQ (200*1000*1000) /* 200 Mhz */ #define EXYNOS_UART_FREQ (109*1000*1000) /* should be EXYNOS_ACLK_REF_FREQ! */ - +#define EXYNOS_USB_FREQ (24*1000*1000) /* 24 Mhz */ /* Watchdog register definitions */ #define EXYNOS_WDT_WTCON 0x0000 @@ -127,4 +127,24 @@ #define EXYNOS_WDT_WTCLRINT 0x000C +/* GPIO register definitions */ +#define EXYNOS_GPIO_GRP_SIZE 0x20 +#define EXYNOS_GPIO_CON 0x00 +#define EXYNOS_GPIO_DAT 0x04 +#define EXYNOS_GPIO_PUD 0x08 +#define EXYNOS_GPIO_DRV 0x0C +#define EXYNOS_GPIO_CONPWD 0x10 +#define EXYNOS_GPIO_PUDPWD 0x14 +/* rest of space is not used */ + +#define EXYNOS_GPIO_FUNC_INPUT 0x0 +#define EXYNOS_GPIO_FUNC_OUTPUT 0x1 +/* intermediate values are devices, defintions dependent on pin */ +#define EXYNOS_GPIO_FUNC_EXTINT 0xF + +#define EXYNOS_GPIO_PIN_FLOAT 0 +#define EXYNOS_GPIO_PIN_PULL_DOWN 1 +#define EXYNOS_GPIO_PIN_PULL_UP 3 + + #endif /* _ARM_SAMSUNG_EXYNOS_REG_H_ */