summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-rockchip/rockchip.c
blob: c185b0cc2b65afd914a91a6447bba5f0c8e90983 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: GPL-2.0-only
#include <common.h>
#include <init.h>
#include <mach/rockchip.h>

static int rockchip_init(void)
{
	if (of_machine_is_compatible("rockchip,rk3188"))
		return rk3188_init();
	if (of_machine_is_compatible("rockchip,rk3288"))
		return rk3288_init();
	if (of_machine_is_compatible("rockchip,rk3568"))
		return rk3568_init();

	pr_err("Unknown rockchip SoC\n");
	return -ENODEV;
}
postcore_initcall(rockchip_init);