Files
kernel_common_drivers/drivers/power/main.h
T
Jianxin Pan 11155146ab zapper: remove unused code of media module. [1/1]
PD#SWPL-116862

Problem:
media module memory optimization.

Solution:
disable the unused code for zapper.
reduce vmalloc used size from 17324k to 12556k.

Verify:
t215.

Test:
play video normally.

Change-Id: Iaa4c95c6641d76f80a11493c5c84f624cdac6424
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
2023-04-27 21:24:07 -07:00

52 lines
896 B
C

/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef _DOMAIN_MAIN_H__
#define _DOMAIN_MAIN_H__
#if IS_ENABLED(CONFIG_AMLOGIC_POWER)
int sec_power_domain_init(void);
void sec_power_domain_exit(void);
#else
static inline int sec_power_domain_init(void)
{
return 0;
}
static inline void sec_power_domain_exit(void)
{
}
#endif
#if IS_ENABLED(CONFIG_AMLOGIC_POWER_EE)
int power_ee_domain_init(void);
void power_ee_domain_exit(void);
#else
static inline int power_ee_domain_init(void)
{
return 0;
}
static inline void power_ee_domain_exit(void)
{
}
#endif
#if IS_ENABLED(CONFIG_AMLOGIC_BATTERY_PMIC6B)
int meson_pmic6b_bat_init(void);
void meson_pmic6b_bat_exit(void);
#else
static inline int meson_pmic6b_bat_init(void)
{
return 0;
}
static inline void meson_pmic6b_bat_exit(void)
{
}
#endif
#endif /* _DOMAIN_MAIN_H__ */