From: <z7...@us...> - 2007-03-28 18:29:59
|
Revision: 942 http://svn.sourceforge.net/hackndev/?rev=942&view=rev Author: z72ka Date: 2007-03-28 11:29:58 -0700 (Wed, 28 Mar 2007) Log Message: ----------- palmtx: modified high level of battery to 4,1V and added some utility macros for GPIOs Modified Paths: -------------- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-init.h Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h =================================================================== --- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h 2007-03-28 17:34:13 UTC (rev 941) +++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h 2007-03-28 18:29:58 UTC (rev 942) @@ -6,7 +6,7 @@ * Based on palmld-gpio.h by Alex Osborne * * Authors: Cristiano P. <cristianop AT users DOT sourceforge DOT net> - * + * Jan Herman <2h...@se...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -79,4 +79,37 @@ #define IRQ_GPIO_PALMTX_GPIO_RESET IRQ_GPIO(GPIO_NR_PALMTX_GPIO_RESET) + +/* Utility macros */ + +#define GET_PALMTX_GPIO(gpio) \ + (GPLR(GPIO_NR_PALMTX_ ## gpio) & GPIO_bit(GPIO_NR_PALMTX_ ## gpio)) + +#define SET_PALMTX_GPIO(gpio, setp) \ + do { \ + if (setp) \ + GPSR(GPIO_NR_PALMTX_ ## gpio) = GPIO_bit(GPIO_NR_PALMTX_ ## gpio); \ + else \ + GPCR(GPIO_NR_PALMTX_ ## gpio) = GPIO_bit(GPIO_NR_PALMTX_ ## gpio); \ + } while (0) + +#define SET_PALMTX_GPIO_N(gpio, setp) \ + do { \ + if (setp) \ + GPCR(GPIO_NR_PALMTX_ ## gpio) = GPIO_bit(GPIO_NR_PALMTX_ ## gpio); \ + else \ + GPSR(GPIO_NR_PALMTX_ ## gpio) = GPIO_bit(GPIO_NR_PALMTX_ ## gpio); \ + } while (0) + + +#define GET_GPIO(gpio) (GPLR(gpio) & GPIO_bit(gpio)) + +#define SET_GPIO(gpio, setp) \ + do { \ + if (setp) \ + GPSR(gpio) = GPIO_bit(gpio); \ + else \ + GPCR(gpio) = GPIO_bit(gpio); \ + } while (0) + #endif Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-init.h =================================================================== --- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-init.h 2007-03-28 17:34:13 UTC (rev 941) +++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-init.h 2007-03-28 18:29:58 UTC (rev 942) @@ -53,7 +53,7 @@ // BATTERY -#define PALMTX_BAT_MAX_VOLTAGE 4000 // 3.99v current voltage at max charge as from Filez +#define PALMTX_BAT_MAX_VOLTAGE 4100 // 3.99v current voltage at max charge as from Filez #define PALMTX_BAT_MIN_VOLTAGE 3600 // 3.60v critical voltage as from FileZ #define PALMTX_BAT_MAX_CURRENT 0 // unknokn #define PALMTX_BAT_MIN_CURRENT 0 // unknown This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <z7...@us...> - 2007-05-01 18:16:14
|
Revision: 967 http://svn.sourceforge.net/hackndev/?rev=967&view=rev Author: z72ka Date: 2007-05-01 11:16:08 -0700 (Tue, 01 May 2007) Log Message: ----------- palmz72, palmtx: Added bluetooth GPIOs Modified Paths: -------------- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-gpio.h Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h =================================================================== --- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h 2007-05-01 18:13:50 UTC (rev 966) +++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmtx-gpio.h 2007-05-01 18:16:08 UTC (rev 967) @@ -69,6 +69,26 @@ #define GPIO_NR_PALMTX_BL_POWER 84 #define GPIO_NR_PALMTX_LCD_POWER 96 +/* Bluetooth */ + +#define GPIO_NR_PALMTX_BT_RXD 42 +#define GPIO_NR_PALMTX_BT_TXD 43 +#define GPIO_NR_PALMTX_BT_CTS 44 +#define GPIO_NR_PALMTX_BT_RTS 45 +#define GPIO_NR_PALMTX_BT_RESET 83 +#define GPIO_NR_PALMTX_BT_POWER 17 + +#define GPIO_NR_PALMTX_BT_RXD_MD (GPIO_NR_PALMTX_BT_RXD | GPIO_ALT_FN_1_IN) +#define GPIO_NR_PALMTX_BT_TXD_MD (GPIO_NR_PALMTX_BT_TXD | GPIO_ALT_FN_2_OUT) +#define GPIO_NR_PALMTX_BT_UART_CTS_MD (GPIO_NR_PALMTX_BT_CTS | GPIO_ALT_FN_1_IN) +#define GPIO_NR_PALMTX_BT_UART_RTS_MD (GPIO_NR_PALMTX_BT_RTS | GPIO_ALT_FN_2_OUT) + +/* WiFi */ + +#define GPIO_NR_PALMTX_WIFI_POWER 94 +#define GPIO_NR_PALMTX_WIFI_RESET 108 +#define GPIO_NR_PALMTX_PCMCIA_READY 116 + /* INTERRUPTS */ #define IRQ_GPIO_PALMTX_SD_DETECT_N IRQ_GPIO(GPIO_NR_PALMTX_SD_DETECT_N) @@ -77,9 +97,6 @@ #define IRQ_GPIO_PALMTX_USB_DETECT IRQ_GPIO(GPIO_NR_PALMTX_USB_DETECT) -#define IRQ_GPIO_PALMTX_GPIO_RESET IRQ_GPIO(GPIO_NR_PALMTX_GPIO_RESET) - - /* Utility macros */ #define GET_PALMTX_GPIO(gpio) \ Modified: linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-gpio.h =================================================================== --- linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-gpio.h 2007-05-01 18:13:50 UTC (rev 966) +++ linux4palm/linux/trunk/include/asm-arm/arch-pxa/palmz72-gpio.h 2007-05-01 18:16:08 UTC (rev 967) @@ -49,7 +49,21 @@ #define GPIO_NR_PALMZ72_ICP_RXD_MD (GPIO_NR_PALMZ72_ICP_RXD | GPIO_ALT_FN_1_IN) #define GPIO_NR_PALMZ72_ICP_TXD_MD (GPIO_NR_PALMZ72_ICP_TXD | GPIO_ALT_FN_2_OUT) +/* Bluetooth */ +#define GPIO_NR_PALMZ72_BT_RXD 42 +#define GPIO_NR_PALMZ72_BT_TXD 43 +#define GPIO_NR_PALMZ72_BT_CTS 44 +#define GPIO_NR_PALMZ72_BT_RTS 45 +#define GPIO_NR_PALMZ72_BT_RESET 83 +#define GPIO_NR_PALMZ72_BT_POWER 17 + +#define GPIO_NR_PALMZ72_BT_RXD_MD (GPIO_NR_PALMZ72_BT_RXD | GPIO_ALT_FN_1_IN) +#define GPIO_NR_PALMZ72_BT_TXD_MD (GPIO_NR_PALMZ72_BT_TXD | GPIO_ALT_FN_2_OUT) +#define GPIO_NR_PALMZ72_BT_UART_CTS_MD (GPIO_NR_PALMZ72_BT_CTS | GPIO_ALT_FN_1_IN) +#define GPIO_NR_PALMZ72_BT_UART_RTS_MD (GPIO_NR_PALMZ72_BT_RTS | GPIO_ALT_FN_2_OUT) + + /* Wolfson WM9712 */ #define GPIO_NR_PALMZ72_WM9712_IRQ 27 @@ -116,4 +130,3 @@ #endif /* _PALMZ72_GPIO_H_ */ - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |