mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-19 03:08:31 +00:00
ce4e9ff4d2
The comment /* deassert reset */ is wrong. It asserts the reset. It no longer needs to stay in SPL. The NAND controller reset is handled in the driver. So, this assert can be moved to the board_init() of U-Boot proper. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
23 lines
487 B
C
23 lines
487 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2011-2014 Panasonic Corporation
|
|
* Copyright (C) 2015-2017 Socionext Inc.
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <spl.h>
|
|
#include <linux/io.h>
|
|
|
|
#include "../init.h"
|
|
#include "../sc-regs.h"
|
|
|
|
void uniphier_ld4_early_clk_init(void)
|
|
{
|
|
u32 tmp;
|
|
|
|
/* provide clocks */
|
|
tmp = readl(sc_base + SC_CLKCTRL);
|
|
tmp |= SC_CLKCTRL_CEN_SBC | SC_CLKCTRL_CEN_PERI;
|
|
writel(tmp, sc_base + SC_CLKCTRL);
|
|
readl(sc_base + SC_CLKCTRL); /* dummy read */
|
|
}
|