1 // SPDX-License-Identifier: GPL-2.0
3 * TI AM33XX and AM43XX PM Assembly Offsets
5 * Copyright (C) 2017-2018 Texas Instruments Inc.
8 #include <linux/kbuild.h>
9 #include <linux/platform_data/pm33xx.h>
10 #include <linux/ti-emif-sram.h>
14 ti_emif_asm_offsets();
16 DEFINE(AMX3_PM_WFI_FLAGS_OFFSET
,
17 offsetof(struct am33xx_pm_sram_data
, wfi_flags
));
18 DEFINE(AMX3_PM_L2_AUX_CTRL_VAL_OFFSET
,
19 offsetof(struct am33xx_pm_sram_data
, l2_aux_ctrl_val
));
20 DEFINE(AMX3_PM_L2_PREFETCH_CTRL_VAL_OFFSET
,
21 offsetof(struct am33xx_pm_sram_data
, l2_prefetch_ctrl_val
));
22 DEFINE(AMX3_PM_SRAM_DATA_SIZE
, sizeof(struct am33xx_pm_sram_data
));
26 DEFINE(AMX3_PM_RO_SRAM_DATA_VIRT_OFFSET
,
27 offsetof(struct am33xx_pm_ro_sram_data
, amx3_pm_sram_data_virt
));
28 DEFINE(AMX3_PM_RO_SRAM_DATA_PHYS_OFFSET
,
29 offsetof(struct am33xx_pm_ro_sram_data
, amx3_pm_sram_data_phys
));
30 DEFINE(AMX3_PM_RTC_BASE_VIRT_OFFSET
,
31 offsetof(struct am33xx_pm_ro_sram_data
, rtc_base_virt
));
32 DEFINE(AMX3_PM_RO_SRAM_DATA_SIZE
,
33 sizeof(struct am33xx_pm_ro_sram_data
));