forked from analogdevicesinc/linux
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
11 changed files
with
879 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
drivers/memory/emif-asm-offsets.s: drivers/memory/emif-asm-offsets.c | ||
$(call if_changed_dep,cc_s_c) | ||
|
||
include/generated/ti-emif-asm-offsets.h: drivers/memory/emif-asm-offsets.s FORCE | ||
$(call filechk,offsets,__TI_EMIF_ASM_OFFSETS_H__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
/* | ||
* TI AM33XX EMIF PM Assembly Offsets | ||
* | ||
* Copyright (C) 2016-2017 Texas Instruments Inc. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License as | ||
* published by the Free Software Foundation version 2. | ||
* | ||
* This program is distributed "as is" WITHOUT ANY WARRANTY of any | ||
* kind, whether express or implied; without even the implied warranty | ||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
*/ | ||
#include <linux/ti-emif-sram.h> | ||
|
||
int main(void) | ||
{ | ||
DEFINE(EMIF_SDCFG_VAL_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_sdcfg_val)); | ||
DEFINE(EMIF_TIMING1_VAL_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_timing1_val)); | ||
DEFINE(EMIF_TIMING2_VAL_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_timing2_val)); | ||
DEFINE(EMIF_TIMING3_VAL_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_timing3_val)); | ||
DEFINE(EMIF_REF_CTRL_VAL_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_ref_ctrl_val)); | ||
DEFINE(EMIF_ZQCFG_VAL_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_zqcfg_val)); | ||
DEFINE(EMIF_PMCR_VAL_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_pmcr_val)); | ||
DEFINE(EMIF_PMCR_SHDW_VAL_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_pmcr_shdw_val)); | ||
DEFINE(EMIF_RD_WR_LEVEL_RAMP_CTRL_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_rd_wr_level_ramp_ctrl)); | ||
DEFINE(EMIF_RD_WR_EXEC_THRESH_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_rd_wr_exec_thresh)); | ||
DEFINE(EMIF_COS_CONFIG_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_cos_config)); | ||
DEFINE(EMIF_PRIORITY_TO_COS_MAPPING_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_priority_to_cos_mapping)); | ||
DEFINE(EMIF_CONNECT_ID_SERV_1_MAP_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_connect_id_serv_1_map)); | ||
DEFINE(EMIF_CONNECT_ID_SERV_2_MAP_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_connect_id_serv_2_map)); | ||
DEFINE(EMIF_OCP_CONFIG_VAL_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_ocp_config_val)); | ||
DEFINE(EMIF_LPDDR2_NVM_TIM_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_lpddr2_nvm_tim)); | ||
DEFINE(EMIF_LPDDR2_NVM_TIM_SHDW_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_lpddr2_nvm_tim_shdw)); | ||
DEFINE(EMIF_DLL_CALIB_CTRL_VAL_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_dll_calib_ctrl_val)); | ||
DEFINE(EMIF_DLL_CALIB_CTRL_VAL_SHDW_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_dll_calib_ctrl_val_shdw)); | ||
DEFINE(EMIF_DDR_PHY_CTLR_1_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_ddr_phy_ctlr_1)); | ||
DEFINE(EMIF_EXT_PHY_CTRL_VALS_OFFSET, | ||
offsetof(struct emif_regs_amx3, emif_ext_phy_ctrl_vals)); | ||
DEFINE(EMIF_REGS_AMX3_SIZE, sizeof(struct emif_regs_amx3)); | ||
|
||
BLANK(); | ||
|
||
DEFINE(EMIF_PM_BASE_ADDR_VIRT_OFFSET, | ||
offsetof(struct ti_emif_pm_data, ti_emif_base_addr_virt)); | ||
DEFINE(EMIF_PM_BASE_ADDR_PHYS_OFFSET, | ||
offsetof(struct ti_emif_pm_data, ti_emif_base_addr_phys)); | ||
DEFINE(EMIF_PM_CONFIG_OFFSET, | ||
offsetof(struct ti_emif_pm_data, ti_emif_sram_config)); | ||
DEFINE(EMIF_PM_REGS_VIRT_OFFSET, | ||
offsetof(struct ti_emif_pm_data, regs_virt)); | ||
DEFINE(EMIF_PM_REGS_PHYS_OFFSET, | ||
offsetof(struct ti_emif_pm_data, regs_phys)); | ||
DEFINE(EMIF_PM_DATA_SIZE, sizeof(struct ti_emif_pm_data)); | ||
|
||
BLANK(); | ||
|
||
DEFINE(EMIF_PM_SAVE_CONTEXT_OFFSET, | ||
offsetof(struct ti_emif_pm_functions, save_context)); | ||
DEFINE(EMIF_PM_RESTORE_CONTEXT_OFFSET, | ||
offsetof(struct ti_emif_pm_functions, restore_context)); | ||
DEFINE(EMIF_PM_ENTER_SR_OFFSET, | ||
offsetof(struct ti_emif_pm_functions, enter_sr)); | ||
DEFINE(EMIF_PM_EXIT_SR_OFFSET, | ||
offsetof(struct ti_emif_pm_functions, exit_sr)); | ||
DEFINE(EMIF_PM_ABORT_SR_OFFSET, | ||
offsetof(struct ti_emif_pm_functions, abort_sr)); | ||
DEFINE(EMIF_PM_FUNCTIONS_SIZE, sizeof(struct ti_emif_pm_functions)); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.