2018-02-23 23:43:56 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
/*
|
|
|
|
* TI AM33XX and AM43XX PM Assembly Offsets
|
|
|
|
*
|
|
|
|
* Copyright (C) 2017-2018 Texas Instruments Inc.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/kbuild.h>
|
|
|
|
#include <linux/platform_data/pm33xx.h>
|
2018-04-12 05:15:43 +08:00
|
|
|
#include <linux/ti-emif-sram.h>
|
2018-02-23 23:43:56 +08:00
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
2018-04-12 05:15:43 +08:00
|
|
|
ti_emif_asm_offsets();
|
|
|
|
|
2018-02-23 23:43:56 +08:00
|
|
|
DEFINE(AMX3_PM_WFI_FLAGS_OFFSET,
|
|
|
|
offsetof(struct am33xx_pm_sram_data, wfi_flags));
|
|
|
|
DEFINE(AMX3_PM_L2_AUX_CTRL_VAL_OFFSET,
|
|
|
|
offsetof(struct am33xx_pm_sram_data, l2_aux_ctrl_val));
|
|
|
|
DEFINE(AMX3_PM_L2_PREFETCH_CTRL_VAL_OFFSET,
|
|
|
|
offsetof(struct am33xx_pm_sram_data, l2_prefetch_ctrl_val));
|
|
|
|
DEFINE(AMX3_PM_SRAM_DATA_SIZE, sizeof(struct am33xx_pm_sram_data));
|
|
|
|
|
|
|
|
BLANK();
|
|
|
|
|
|
|
|
DEFINE(AMX3_PM_RO_SRAM_DATA_VIRT_OFFSET,
|
|
|
|
offsetof(struct am33xx_pm_ro_sram_data, amx3_pm_sram_data_virt));
|
|
|
|
DEFINE(AMX3_PM_RO_SRAM_DATA_PHYS_OFFSET,
|
|
|
|
offsetof(struct am33xx_pm_ro_sram_data, amx3_pm_sram_data_phys));
|
2018-07-09 15:33:17 +08:00
|
|
|
DEFINE(AMX3_PM_RTC_BASE_VIRT_OFFSET,
|
|
|
|
offsetof(struct am33xx_pm_ro_sram_data, rtc_base_virt));
|
2018-02-23 23:43:56 +08:00
|
|
|
DEFINE(AMX3_PM_RO_SRAM_DATA_SIZE,
|
|
|
|
sizeof(struct am33xx_pm_ro_sram_data));
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|