mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-03 09:59:44 +00:00
5d0607c58c
There is a bunch of duplication in the System Bus Controller init code. Roughly, there are two types in the SBC mode: Adress/Data Multiplex Mode and Save Pins Mode. Consolidate per-SoC functions into the two, plus per-SoC optional init code. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
17 lines
323 B
C
17 lines
323 B
C
/*
|
|
* Copyright (C) 2011-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <linux/io.h>
|
|
|
|
#include "../init.h"
|
|
#include "../sg-regs.h"
|
|
|
|
int uniphier_sld3_sbc_init(const struct uniphier_board_data *bd)
|
|
{
|
|
sg_set_pinsel(99, 1, 4, 4); /* GPIO26 -> EA24 */
|
|
|
|
return 0;
|
|
}
|