blob: 7fb6125b1432982ebe29dfaf9eb4c090a868a461 [file] [log] [blame]
Svyatoslav Ryhel4c5fe372023-06-30 10:29:06 +03001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * (C) Copyright 2010-2013
4 * NVIDIA Corporation <www.nvidia.com>
5 *
6 * (C) Copyright 2021
7 * Svyatoslav Ryhel <clamor95@gmail.com>
8 */
9
Svyatoslav Ryhel4c5fe372023-06-30 10:29:06 +030010#include <dm.h>
Svyatoslav Ryhel4c5fe372023-06-30 10:29:06 +030011#include <fdt_support.h>
Svyatoslav Ryhel4c5fe372023-06-30 10:29:06 +030012#include <asm/arch/pinmux.h>
Svyatoslav Ryhel4c5fe372023-06-30 10:29:06 +030013
Svyatoslav Ryhel8c8fb852023-08-26 18:35:35 +030014#include "pinmux-config-endeavoru.h"
Svyatoslav Ryhel4c5fe372023-06-30 10:29:06 +030015
16/*
17 * Routine: pinmux_init
18 * Description: Do individual peripheral pinmux configs
19 */
20void pinmux_init(void)
21{
22 pinmux_config_pingrp_table(endeavoru_pinmux_common,
23 ARRAY_SIZE(endeavoru_pinmux_common));
24}
Svyatoslav Ryhel4c5fe372023-06-30 10:29:06 +030025
26#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
27int ft_board_setup(void *blob, struct bd_info *bd)
28{
29 /* Remove TrustZone nodes */
30 fdt_del_node_and_alias(blob, "/firmware");
31 fdt_del_node_and_alias(blob, "/reserved-memory/trustzone@bfe00000");
32
33 return 0;
34}
35#endif