1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * TI AM33XX and AM43XX PM Assembly Offsets 4 * 5 * Copyright (C) 2017-2018 Texas Instruments Inc. 6 */ 7 8 #include <linux/kbuild.h> 9 #include <linux/platform_data/pm33xx.h> 10 11 int main(void) 12 { 13 DEFINE(AMX3_PM_WFI_FLAGS_OFFSET, 14 offsetof(struct am33xx_pm_sram_data, wfi_flags)); 15 DEFINE(AMX3_PM_L2_AUX_CTRL_VAL_OFFSET, 16 offsetof(struct am33xx_pm_sram_data, l2_aux_ctrl_val)); 17 DEFINE(AMX3_PM_L2_PREFETCH_CTRL_VAL_OFFSET, 18 offsetof(struct am33xx_pm_sram_data, l2_prefetch_ctrl_val)); 19 DEFINE(AMX3_PM_SRAM_DATA_SIZE, sizeof(struct am33xx_pm_sram_data)); 20 21 BLANK(); 22 23 DEFINE(AMX3_PM_RO_SRAM_DATA_VIRT_OFFSET, 24 offsetof(struct am33xx_pm_ro_sram_data, amx3_pm_sram_data_virt)); 25 DEFINE(AMX3_PM_RO_SRAM_DATA_PHYS_OFFSET, 26 offsetof(struct am33xx_pm_ro_sram_data, amx3_pm_sram_data_phys)); 27 DEFINE(AMX3_PM_RO_SRAM_DATA_SIZE, 28 sizeof(struct am33xx_pm_ro_sram_data)); 29 30 return 0; 31 } 32