mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
75d44dfe97
PD#SWPL-188391 Problem: sc2 pcie bringup kernel6.12 Solution: sc2 pcie bringup kernel6.12 Verify: sc2_ah212 Change-Id: Ie220eb341e98bf27f51b7311afa0c06eaa9b00ee Signed-off-by: Yu Tu <yu.tu@amlogic.com>
34 lines
725 B
C
34 lines
725 B
C
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
//#define DEBUG
|
|
#include <linux/module.h>
|
|
#include <linux/amlogic/module_merge.h>
|
|
#include "main.h"
|
|
|
|
static int __init pcie_main_init(void)
|
|
{
|
|
pr_debug("### %s() start\n", __func__);
|
|
call_sub_init(aml_pcie_rc_v2_init);
|
|
call_sub_init(aml_pcie_rc_v3_init);
|
|
call_sub_init(aml_pcie_ep_v3_init);
|
|
call_sub_init(aml_pcie_ep_test_init);
|
|
pr_debug("### %s() end\n", __func__);
|
|
return 0;
|
|
}
|
|
|
|
static void __exit pcie_main_exit(void)
|
|
{
|
|
aml_pcie_rc_v2_exit();
|
|
aml_pcie_rc_v3_exit();
|
|
aml_pcie_ep_v3_exit();
|
|
aml_pcie_ep_test_exit();
|
|
}
|
|
|
|
module_init(pcie_main_init);
|
|
module_exit(pcie_main_exit);
|
|
|
|
MODULE_LICENSE("GPL v2");
|