xtensa: implement jump_label support
[linux/fpc-iii.git] / arch / arm / mach-omap2 / pm-asm-offsets.c
blobd8ae8a85b14bdc4087ddafbc08894765242cbee5
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * TI AM33XX and AM43XX PM Assembly Offsets
5 * Copyright (C) 2017-2018 Texas Instruments Inc.
6 */
8 #include <linux/kbuild.h>
9 #include <linux/platform_data/pm33xx.h>
10 #include <linux/ti-emif-sram.h>
12 int main(void)
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));
24 BLANK();
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));
35 return 0;