History

gpio: omap: Save and restore sysconfig

As we are using cpu_pm to save and restore context, we must also save and restore the GPIO sysconfig register. This is needed because we are not calling PM runtime functions at all with cpu_pm. We need to save the sysconfig on idle as it's value can get reconfigured by PM runtime and can be different from the init time value. Device specific flags like "ti,no-idle-on-init" can affect the init value.

Tony Lindgren committed 5 years ago

Commit ddd8d941 parent 23cf00d2 files · +12 −0Browse files

Showing the changes to include/linux/platform_data (1 of 2 files). Show all

Unified · Split

include/linux/platform_data/gpio-omap.h+3−0
@@ -85,6 +85,7 @@ · 84 unmodified lines
8585 * omap2+ specific GPIO registers
8686 */
8787 #define OMAP24XX_GPIO_REVISION 0x0000
88+#define OMAP24XX_GPIO_SYSCONFIG 0x0010
8889 #define OMAP24XX_GPIO_IRQSTATUS1 0x0018
8990 #define OMAP24XX_GPIO_IRQSTATUS2 0x0028
9091 #define OMAP24XX_GPIO_IRQENABLE2 0x002c
@@ -108,6 +109,7 @@ · 17 unmodified lines
108109 #define OMAP24XX_GPIO_SETDATAOUT 0x0094
109110
110111 #define OMAP4_GPIO_REVISION 0x0000
112+#define OMAP4_GPIO_SYSCONFIG 0x0010
111113 #define OMAP4_GPIO_EOI 0x0020
112114 #define OMAP4_GPIO_IRQSTATUSRAW0 0x0024
113115 #define OMAP4_GPIO_IRQSTATUSRAW1 0x0028
@@ -148,6 +150,7 @@ · 34 unmodified lines
148150 #ifndef __ASSEMBLER__
149151 struct omap_gpio_reg_offs {
150152 u16 revision;
153+ u16 sysconfig;
151154 u16 direction;
152155 u16 datain;
153156 u16 dataout;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t