mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-25 12:33:41 +00:00
2fac7a8294
Many B&R boards are equipped with an I2C-EEPROM where various information can be stored. Today there is only a single byte for 'board_id' used. We write this 'board_id' into environment for later use during boot. If the value != 0xFF, meaning the byte is programmed, we modify the "brdefaultip" environment variable for setting an IP-Address based on board_id. Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
26 lines
653 B
C
26 lines
653 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* bur_comon.h
|
|
*
|
|
* common board information header for B&R boards
|
|
*
|
|
* Copyright (C) 2013 Hannes Schmelzer <oe5hpm@oevsv.at>
|
|
* Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com
|
|
*/
|
|
|
|
#ifndef _BUR_COMMON_H_
|
|
#define _BUR_COMMON_H_
|
|
|
|
#include <../../../drivers/video/am335x-fb.h>
|
|
|
|
int load_lcdtiming(struct am335x_lcdpanel *panel);
|
|
void br_summaryscreen(void);
|
|
void pmicsetup(u32 mpupll, unsigned int bus);
|
|
void enable_uart0_pin_mux(void);
|
|
void enable_i2c_pin_mux(void);
|
|
void enable_board_pin_mux(void);
|
|
int board_eth_init(bd_t *bis);
|
|
|
|
int brdefaultip_setup(int bus, int chip);
|
|
|
|
#endif
|