Files
kernel_common_drivers/drivers/pci/controller/main.h
T
Yu Tu 6a27313b4c pcie: s6 pcie bringup [1/1]
PD#SWPL-172979

Problem:
need support pcie on s6

Solution:
s6 pcie silicon bringup

Verify:
s6_s905x5_bl208

Change-Id: Id806003e2c49b3af7406de2f79cd565729069cd3
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-07-05 10:44:46 +08:00

64 lines
1.0 KiB
C

/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
#ifndef __PCIE_MAIN_H_
#define __PCIE_MAIN_H_
#if IS_ENABLED(CONFIG_AMLOGIC_PCIE_V2_HOST)
int aml_pcie_rc_v2_init(void);
void aml_pcie_rc_v2_exit(void);
#else
static inline int aml_pcie_rc_v2_init(void)
{
return 0;
}
static inline void aml_pcie_rc_v2_exit(void)
{
}
#endif
#if IS_ENABLED(CONFIG_AMLOGIC_PCIE_V3_HOST)
int aml_pcie_rc_v3_init(void);
void aml_pcie_rc_v3_exit(void);
#else
static inline int aml_pcie_rc_v3_init(void)
{
return 0;
}
static inline void aml_pcie_rc_v3_exit(void)
{
}
#endif
#if IS_ENABLED(CONFIG_AMLOGIC_PCIE_V3_EP)
int aml_pcie_ep_v3_init(void);
void aml_pcie_ep_v3_exit(void);
int aml_pcie_ep_test_init(void);
void aml_pcie_ep_test_exit(void);
#else
static inline int aml_pcie_ep_v3_init(void)
{
return 0;
}
static inline void aml_pcie_ep_v3_exit(void)
{
}
static inline int aml_pcie_ep_test_init(void)
{
return 0;
}
static inline void aml_pcie_ep_test_exit(void)
{
}
#endif
#endif /*__PCIE_MAIN_H_*/