mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-13 23:02:59 +00:00
6717e15447
<common.h> pulls in a lot of bloat. <common.h> is unneeded in most of places. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Simon Glass <sjg@chromium.org>
26 lines
505 B
C
26 lines
505 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2016-2017 Socionext Inc.
|
|
*/
|
|
|
|
#include <spl.h>
|
|
#include <linux/io.h>
|
|
|
|
#include "../init.h"
|
|
#include "sbc-regs.h"
|
|
|
|
void uniphier_ld11_sbc_init(void)
|
|
{
|
|
if (!uniphier_sbc_is_enabled())
|
|
return;
|
|
|
|
uniphier_sbc_init_savepin();
|
|
|
|
/* necessary for ROM boot ?? */
|
|
/* system bus output enable */
|
|
writel(0x17, PC0CTRL);
|
|
|
|
/* pins for NAND and System Bus are multiplexed */
|
|
if (spl_boot_device() != BOOT_DEVICE_NAND)
|
|
uniphier_pin_init("system-bus");
|
|
}
|