[U-Boot] [PATCH 5/7] sysreset: add support for rockchip rk3328 soc
Simon Glass
sjg at chromium.org
Tue Feb 21 18:06:59 UTC 2017
On 17 February 2017 at 01:07, Kever Yang <kever.yang at rock-chips.com> wrote:
> Add rk3328 sysreset driver.
>
> Signed-off-by: William Zhang <william.zhang at rock-chips.com>
> Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
> ---
>
> drivers/sysreset/Makefile | 1 +
> drivers/sysreset/sysreset_rk3328.c | 45 ++++++++++++++++++++++++++++++++++++++
> 2 files changed, 46 insertions(+)
> create mode 100644 drivers/sysreset/sysreset_rk3328.c
Acked-by: Simon Glass <sjg at chromium.org>
Nit below.
>
> diff --git a/drivers/sysreset/Makefile b/drivers/sysreset/Makefile
> index 37638a8..12cfa79 100644
> --- a/drivers/sysreset/Makefile
> +++ b/drivers/sysreset/Makefile
> @@ -10,6 +10,7 @@ ifndef CONFIG_SPL_BUILD
> obj-$(CONFIG_ROCKCHIP_RK3036) += sysreset_rk3036.o
> endif
> obj-$(CONFIG_ROCKCHIP_RK3288) += sysreset_rk3288.o
> +obj-$(CONFIG_ROCKCHIP_RK3328) += sysreset_rk3328.o
> obj-$(CONFIG_ROCKCHIP_RK3399) += sysreset_rk3399.o
> obj-$(CONFIG_SANDBOX) += sysreset_sandbox.o
> obj-$(CONFIG_ARCH_SNAPDRAGON) += sysreset_snapdragon.o
> diff --git a/drivers/sysreset/sysreset_rk3328.c b/drivers/sysreset/sysreset_rk3328.c
> new file mode 100644
> index 0000000..7b22342
> --- /dev/null
> +++ b/drivers/sysreset/sysreset_rk3328.c
> @@ -0,0 +1,45 @@
> +/*
> + * (C) Copyright 2016 Rockchip Electronics Co., Ltd
> + *
> + * SPDX-License-Identifier: GPL-2.0
> + */
> +
> +#include <common.h>
> +#include <asm/arch/clock.h>
> +#include <asm/arch/cru_rk3328.h>
> +#include <asm/arch/hardware.h>
> +#include <asm/io.h>
> +#include <dm.h>
> +#include <errno.h>
> +#include <linux/err.h>
> +#include <sysreset.h>
Please fix header file order.
More information about the U-Boot
mailing list