Enrico Leto | 2e74050 | 2024-01-24 15:43:53 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Board definitions for draco products |
| 4 | * |
| 5 | * (C) Copyright 2013 Siemens Schweiz AG |
| 6 | * (C) Heiko Schocher, DENX Software Engineering, hs@denx.de. |
| 7 | * |
| 8 | * Based on: |
| 9 | * TI AM335x boards information header |
| 10 | * u-boot:/board/ti/am335x/board.h |
| 11 | * |
| 12 | * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ |
| 13 | */ |
| 14 | |
| 15 | #ifndef _BOARD_AM335X_H_ |
| 16 | #define _BOARD_AM335X_H_ |
| 17 | |
| 18 | #include "eeprom.h" |
| 19 | |
| 20 | /* Common functions with product specific implementation */ |
| 21 | void spl_draco_board_init(void); |
| 22 | void draco_init_ddr(void); |
| 23 | int draco_read_eeprom(void); |
| 24 | |
| 25 | #ifdef CONFIG_SPL_BUILD |
| 26 | /* Mux for init: uart?, i2c0 to read the main EEPROM */ |
| 27 | void enable_uart0_pin_mux(void); |
| 28 | void enable_uart1_pin_mux(void); |
| 29 | void enable_uart2_pin_mux(void); |
| 30 | void enable_uart3_pin_mux(void); |
| 31 | void enable_uart4_pin_mux(void); |
| 32 | void enable_uart5_pin_mux(void); |
| 33 | void enable_i2c0_pin_mux(void); |
| 34 | |
| 35 | /* Main mux function to enable other pinmux required on the board */ |
| 36 | void enable_board_pin_mux(void); |
| 37 | #endif /* CONFIG_SPL_BUILD */ |
| 38 | |
| 39 | #endif /* _BOARD_AM335X_H_ */ |