diff options
author | Olof Johansson <olof@lixom.net> | 2018-01-05 08:12:57 +0100 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2018-01-05 08:12:57 +0100 |
commit | 11077e9bf7fef8b1081221b482260a6bfa2b6d5f (patch) | |
tree | 9867459628434bb88338cdade7fb58ee2ec3a378 /drivers/memory/emif.h | |
parent | Merge tag 'omap-for-v4.16/ti-sysc-signed' of git://git.kernel.org/pub/scm/lin... (diff) | |
parent | soc: ti: fix max dup length for kstrndup (diff) | |
download | linux-11077e9bf7fef8b1081221b482260a6bfa2b6d5f.tar.xz linux-11077e9bf7fef8b1081221b482260a6bfa2b6d5f.zip |
Merge tag 'keystone_driver_soc_for_4.16' of git://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux-keystone into next/drivers
SOC: Keystone Soc driver updates for 4.16
- TI EMIF-SRAM driver
- TI SCI print format fix
- Navigator strndup lenth fix
* tag 'keystone_driver_soc_for_4.16' of git://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux-keystone:
soc: ti: fix max dup length for kstrndup
firmware: ti_sci: Use %zu for size_t print format
memory: ti-emif-sram: remove unused variable
memory: ti-emif-sram: introduce relocatable suspend/resume handlers
Documentation: dt: Update ti,emif bindings
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/memory/emif.h')
-rw-r--r-- | drivers/memory/emif.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/memory/emif.h b/drivers/memory/emif.h index bfe08bae961a..9e9f8037955d 100644 --- a/drivers/memory/emif.h +++ b/drivers/memory/emif.h @@ -555,6 +555,9 @@ #define READ_LATENCY_SHDW_SHIFT 0 #define READ_LATENCY_SHDW_MASK (0x1f << 0) +#define EMIF_SRAM_AM33_REG_LAYOUT 0x00000000 +#define EMIF_SRAM_AM43_REG_LAYOUT 0x00000001 + #ifndef __ASSEMBLY__ /* * Structure containing shadow of important registers in EMIF @@ -585,5 +588,19 @@ struct emif_regs { u32 ext_phy_ctrl_3_shdw; u32 ext_phy_ctrl_4_shdw; }; + +struct ti_emif_pm_functions; + +extern unsigned int ti_emif_sram; +extern unsigned int ti_emif_sram_sz; +extern struct ti_emif_pm_data ti_emif_pm_sram_data; +extern struct emif_regs_amx3 ti_emif_regs_amx3; + +void ti_emif_save_context(void); +void ti_emif_restore_context(void); +void ti_emif_enter_sr(void); +void ti_emif_exit_sr(void); +void ti_emif_abort_sr(void); + #endif /* __ASSEMBLY__ */ #endif /* __EMIF_H */ |