[U-Boot] [PATCH v3 1/2] rk3399: add basic soc driver

Simon Glass sjg at chromium.org
Thu Aug 4 06:20:56 CEST 2016


On 31 July 2016 at 21:34, Kever Yang <kever.yang at rock-chips.com> wrote:
> This patch add driver for:
> - clock driver including set_rate for cpu, mmc, vop, I2C.
> - sysreset driver
> - grf syscon driver
>
> Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
> Acked-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v3:
> - use EINVAL instead of -1 for return value.
>
> Changes in v2:
> - include '_SHIFT_' in '_MASK' MACRO
> - fix comment style
> - use DIV_ROUND_UP instead of div_round_up
> - use uclass_get_device_by_driver in rockchip_get_cru
> - implement ofdata_to_platdata for priv->cru init
>
>  arch/arm/include/asm/arch-rockchip/cru_rk3399.h |  93 +++
>  arch/arm/mach-rockchip/rk3399/Makefile          |   2 +
>  arch/arm/mach-rockchip/rk3399/reset_rk3399.c    |  45 ++
>  arch/arm/mach-rockchip/rk3399/syscon_rk3399.c   |  20 +
>  drivers/clk/Makefile                            |   1 +
>  drivers/clk/clk_rk3399.c                        | 817 ++++++++++++++++++++++++
>  6 files changed, 978 insertions(+)
>  create mode 100644 arch/arm/include/asm/arch-rockchip/cru_rk3399.h
>  create mode 100644 arch/arm/mach-rockchip/rk3399/reset_rk3399.c
>  create mode 100644 arch/arm/mach-rockchip/rk3399/syscon_rk3399.c
>  create mode 100644 drivers/clk/clk_rk3399.c

Applied to u-boot-rockchip, thanks!


More information about the U-Boot mailing list