mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-29 14:23:44 +09:00
![Hannes Petermaier](/assets/img/avatar_default.png)
At this time I2C and responsible pin-mux is setup during PMIC initialziation within common.c, this is possible because today PMIC is always connected on I2C0. In Future this will be changed, PMIC isn't anymore connected to bus0 in call cases. So we do following: - rename enable_i2c_pin_mux0 to enable_i2c_pin_mux to be generic for enabling pin-mux on different or more busses. - move the call to i2c_pin_mux and i2c_init from common.c to the specific board.c Signed-off-by: Hannes Petermaier <hannes.petermaier@br-automation.com> Signed-off-by: Hannes Petermaier <oe5hpm@oevsv.at>
27 lines
641 B
C
27 lines
641 B
C
/*
|
|
* bur_comon.h
|
|
*
|
|
* common board information header for B&R boards
|
|
*
|
|
* Copyright (C) 2013 Hannes Petermaier <oe5hpm@oevsv.at>
|
|
* Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#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 blink(u32 blinks, u32 intervall, u32 pin);
|
|
void pmicsetup(u32 mpupll);
|
|
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);
|
|
|
|
#endif
|