mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 02:56:49 +07:00
5692fceebe
The sleep33xx and sleep43xx files should not depend on a header file
generated in drivers/memory. Remove this dependency and instead allow
both drivers/memory and arch/arm/mach-omap2 to generate all macros
needed in headers local to their own paths.
This fixes an issue where the build fail will when using O= to set a
split object directory and arch/arm/mach-omap2 is built before
drivers/memory with the following error:
.../drivers/memory/emif-asm-offsets.c:1:0: fatal error: can't open
drivers/memory/emif-asm-offsets.s for writing: No such file or directory
compilation terminated.
Fixes: 41d9d44d72
("ARM: OMAP2+: pm33xx-core: Add platform code needed for PM")
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
35 lines
1002 B
C
35 lines
1002 B
C
// 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>
|
|
#include <linux/ti-emif-sram.h>
|
|
|
|
int main(void)
|
|
{
|
|
ti_emif_asm_offsets();
|
|
|
|
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));
|
|
DEFINE(AMX3_PM_RO_SRAM_DATA_SIZE,
|
|
sizeof(struct am33xx_pm_ro_sram_data));
|
|
|
|
return 0;
|
|
}
|