mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-11 07:13:21 +09:00
![Kever Yang](/assets/img/avatar_default.png)
syscon id table need a dummy member as NULL ending, or else system will panic while try to match a compatible in this table as a list. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22 lines
436 B
C
22 lines
436 B
C
/*
|
|
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <asm/arch/clock.h>
|
|
#include <dm.h>
|
|
#include <syscon.h>
|
|
|
|
static const struct udevice_id rk3328_syscon_ids[] = {
|
|
{ .compatible = "rockchip,rk3328-grf", .data = ROCKCHIP_SYSCON_GRF },
|
|
{ }
|
|
};
|
|
|
|
U_BOOT_DRIVER(syscon_rk3328) = {
|
|
.name = "rk3328_syscon",
|
|
.id = UCLASS_SYSCON,
|
|
.of_match = rk3328_syscon_ids,
|
|
};
|