2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2014-02-07 07:07:36 +00:00
|
|
|
/*
|
|
|
|
* common.c
|
|
|
|
*
|
|
|
|
* common board functions for B&R boards
|
|
|
|
*
|
2015-05-28 13:41:12 +00:00
|
|
|
* Copyright (C) 2013 Hannes Schmelzer <oe5hpm@oevsv.at>
|
2014-02-07 07:07:36 +00:00
|
|
|
* Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com
|
|
|
|
*
|
|
|
|
*/
|
2020-05-10 17:40:05 +00:00
|
|
|
#include <log.h>
|
2015-02-03 12:22:26 +00:00
|
|
|
#include <version.h>
|
2014-02-07 07:07:36 +00:00
|
|
|
#include <common.h>
|
2019-08-01 15:46:46 +00:00
|
|
|
#include <env.h>
|
2019-04-10 12:13:11 +00:00
|
|
|
#include <fdtdec.h>
|
2014-02-07 07:07:36 +00:00
|
|
|
#include <i2c.h>
|
2015-02-03 12:22:26 +00:00
|
|
|
#include <lcd.h>
|
2020-05-10 17:40:11 +00:00
|
|
|
#include <linux/delay.h>
|
2014-02-07 07:07:36 +00:00
|
|
|
#include "bur_common.h"
|
|
|
|
|
2015-02-03 12:22:26 +00:00
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
|
2014-02-07 07:07:36 +00:00
|
|
|
/* --------------------------------------------------------------------------*/
|
2015-02-03 12:22:26 +00:00
|
|
|
#if defined(CONFIG_LCD) && defined(CONFIG_AM335X_LCD) && \
|
2020-02-22 13:05:49 +00:00
|
|
|
!defined(CONFIG_DM_VIDEO) && !defined(CONFIG_SPL_BUILD)
|
2019-04-10 12:13:11 +00:00
|
|
|
#include <asm/arch/hardware.h>
|
|
|
|
#include <asm/arch/cpu.h>
|
|
|
|
#include <asm/gpio.h>
|
|
|
|
#include <power/tps65217.h>
|
|
|
|
#include "../../../drivers/video/am335x-fb.h"
|
|
|
|
|
2015-04-24 12:49:37 +00:00
|
|
|
void lcdbacklight(int on)
|
|
|
|
{
|
2017-08-03 18:22:13 +00:00
|
|
|
unsigned int driver = env_get_ulong("ds1_bright_drv", 16, 0UL);
|
|
|
|
unsigned int bright = env_get_ulong("ds1_bright_def", 10, 50);
|
|
|
|
unsigned int pwmfrq = env_get_ulong("ds1_pwmfreq", 10, ~0UL);
|
2015-04-24 12:49:37 +00:00
|
|
|
unsigned int tmp;
|
2015-06-11 10:25:43 +00:00
|
|
|
struct gptimer *timerhw;
|
2015-04-24 12:49:37 +00:00
|
|
|
|
|
|
|
if (on)
|
|
|
|
bright = bright != ~0UL ? bright : 50;
|
|
|
|
else
|
|
|
|
bright = 0;
|
|
|
|
|
2015-06-11 10:25:43 +00:00
|
|
|
switch (driver) {
|
|
|
|
case 2:
|
|
|
|
timerhw = (struct gptimer *)DM_TIMER5_BASE;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
timerhw = (struct gptimer *)DM_TIMER6_BASE;
|
|
|
|
}
|
|
|
|
|
2015-04-24 12:49:37 +00:00
|
|
|
switch (driver) {
|
|
|
|
case 0: /* PMIC LED-Driver */
|
|
|
|
/* brightness level */
|
|
|
|
tps65217_reg_write(TPS65217_PROT_LEVEL_NONE,
|
|
|
|
TPS65217_WLEDCTRL2, bright, 0xFF);
|
|
|
|
/* current sink */
|
|
|
|
tps65217_reg_write(TPS65217_PROT_LEVEL_NONE,
|
|
|
|
TPS65217_WLEDCTRL1,
|
|
|
|
bright != 0 ? 0x0A : 0x02,
|
|
|
|
0xFF);
|
|
|
|
break;
|
2015-06-11 10:25:43 +00:00
|
|
|
case 1:
|
|
|
|
case 2: /* PWM using timer */
|
2015-04-24 12:49:37 +00:00
|
|
|
if (pwmfrq != ~0UL) {
|
|
|
|
timerhw->tiocp_cfg = TCFG_RESET;
|
|
|
|
udelay(10);
|
|
|
|
while (timerhw->tiocp_cfg & TCFG_RESET)
|
|
|
|
;
|
|
|
|
tmp = ~0UL-(V_OSCK/pwmfrq); /* bottom value */
|
|
|
|
timerhw->tldr = tmp;
|
|
|
|
timerhw->tcrr = tmp;
|
|
|
|
tmp = tmp + ((V_OSCK/pwmfrq)/100) * bright;
|
|
|
|
timerhw->tmar = tmp;
|
|
|
|
timerhw->tclr = (TCLR_PT | (2 << TCLR_TRG_SHIFT) |
|
|
|
|
TCLR_CE | TCLR_AR | TCLR_ST);
|
|
|
|
} else {
|
|
|
|
puts("invalid pwmfrq in env/dtb! skip PWM-setup.\n");
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
puts("no suitable backlightdriver in env/dtb!\n");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-03 12:22:26 +00:00
|
|
|
int load_lcdtiming(struct am335x_lcdpanel *panel)
|
|
|
|
{
|
|
|
|
struct am335x_lcdpanel pnltmp;
|
2018-07-06 13:41:18 +00:00
|
|
|
|
2017-08-03 18:22:13 +00:00
|
|
|
pnltmp.hactive = env_get_ulong("ds1_hactive", 10, ~0UL);
|
|
|
|
pnltmp.vactive = env_get_ulong("ds1_vactive", 10, ~0UL);
|
|
|
|
pnltmp.bpp = env_get_ulong("ds1_bpp", 10, ~0UL);
|
|
|
|
pnltmp.hfp = env_get_ulong("ds1_hfp", 10, ~0UL);
|
|
|
|
pnltmp.hbp = env_get_ulong("ds1_hbp", 10, ~0UL);
|
|
|
|
pnltmp.hsw = env_get_ulong("ds1_hsw", 10, ~0UL);
|
|
|
|
pnltmp.vfp = env_get_ulong("ds1_vfp", 10, ~0UL);
|
|
|
|
pnltmp.vbp = env_get_ulong("ds1_vbp", 10, ~0UL);
|
|
|
|
pnltmp.vsw = env_get_ulong("ds1_vsw", 10, ~0UL);
|
2018-01-09 18:01:35 +00:00
|
|
|
pnltmp.pxl_clk = env_get_ulong("ds1_pxlclk", 10, ~0UL);
|
2017-08-03 18:22:13 +00:00
|
|
|
pnltmp.pol = env_get_ulong("ds1_pol", 16, ~0UL);
|
|
|
|
pnltmp.pup_delay = env_get_ulong("ds1_pupdelay", 10, ~0UL);
|
|
|
|
pnltmp.pon_delay = env_get_ulong("ds1_tondelay", 10, ~0UL);
|
|
|
|
panel_info.vl_rot = env_get_ulong("ds1_rotation", 10, 0);
|
2018-07-06 13:41:18 +00:00
|
|
|
|
2015-02-03 12:22:26 +00:00
|
|
|
if (
|
|
|
|
~0UL == (pnltmp.hactive) ||
|
|
|
|
~0UL == (pnltmp.vactive) ||
|
|
|
|
~0UL == (pnltmp.bpp) ||
|
|
|
|
~0UL == (pnltmp.hfp) ||
|
|
|
|
~0UL == (pnltmp.hbp) ||
|
|
|
|
~0UL == (pnltmp.hsw) ||
|
|
|
|
~0UL == (pnltmp.vfp) ||
|
|
|
|
~0UL == (pnltmp.vbp) ||
|
|
|
|
~0UL == (pnltmp.vsw) ||
|
2018-01-09 18:01:35 +00:00
|
|
|
~0UL == (pnltmp.pxl_clk) ||
|
2015-02-03 12:22:26 +00:00
|
|
|
~0UL == (pnltmp.pol) ||
|
|
|
|
~0UL == (pnltmp.pup_delay) ||
|
|
|
|
~0UL == (pnltmp.pon_delay)
|
|
|
|
) {
|
|
|
|
puts("lcd-settings in env/dtb incomplete!\n");
|
|
|
|
printf("display-timings:\n"
|
|
|
|
"================\n"
|
|
|
|
"hactive: %d\n"
|
|
|
|
"vactive: %d\n"
|
|
|
|
"bpp : %d\n"
|
|
|
|
"hfp : %d\n"
|
|
|
|
"hbp : %d\n"
|
|
|
|
"hsw : %d\n"
|
|
|
|
"vfp : %d\n"
|
|
|
|
"vbp : %d\n"
|
|
|
|
"vsw : %d\n"
|
|
|
|
"pxlclk : %d\n"
|
|
|
|
"pol : 0x%08x\n"
|
|
|
|
"pondly : %d\n",
|
|
|
|
pnltmp.hactive, pnltmp.vactive, pnltmp.bpp,
|
|
|
|
pnltmp.hfp, pnltmp.hbp, pnltmp.hsw,
|
|
|
|
pnltmp.vfp, pnltmp.vbp, pnltmp.vsw,
|
2018-01-09 18:01:35 +00:00
|
|
|
pnltmp.pxl_clk, pnltmp.pol, pnltmp.pon_delay);
|
2015-02-03 12:22:26 +00:00
|
|
|
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
debug("lcd-settings in env complete, taking over.\n");
|
|
|
|
memcpy((void *)panel,
|
|
|
|
(void *)&pnltmp,
|
|
|
|
sizeof(struct am335x_lcdpanel));
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void br_summaryscreen_printenv(char *prefix,
|
|
|
|
char *name, char *altname,
|
|
|
|
char *suffix)
|
|
|
|
{
|
2017-08-03 18:22:12 +00:00
|
|
|
char *envval = env_get(name);
|
2015-02-03 12:22:26 +00:00
|
|
|
if (0 != envval) {
|
|
|
|
lcd_printf("%s %s %s", prefix, envval, suffix);
|
|
|
|
} else if (0 != altname) {
|
2017-08-03 18:22:12 +00:00
|
|
|
envval = env_get(altname);
|
2015-02-03 12:22:26 +00:00
|
|
|
if (0 != envval)
|
|
|
|
lcd_printf("%s %s %s", prefix, envval, suffix);
|
|
|
|
} else {
|
|
|
|
lcd_printf("\n");
|
|
|
|
}
|
|
|
|
}
|
2018-07-06 13:41:18 +00:00
|
|
|
|
2015-02-03 12:22:26 +00:00
|
|
|
void br_summaryscreen(void)
|
|
|
|
{
|
|
|
|
br_summaryscreen_printenv(" - B&R -", "br_orderno", 0, "-\n");
|
|
|
|
br_summaryscreen_printenv(" Serial/Rev :", "br_serial", 0, "\n");
|
2018-07-06 13:41:22 +00:00
|
|
|
br_summaryscreen_printenv(" MAC1 :", "br_mac1", "ethaddr", "\n");
|
|
|
|
br_summaryscreen_printenv(" MAC2 :", "br_mac2", 0, "\n");
|
2015-02-03 12:22:26 +00:00
|
|
|
lcd_puts(" Bootloader : " PLAIN_VERSION "\n");
|
|
|
|
lcd_puts("\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
void lcdpower(int on)
|
|
|
|
{
|
|
|
|
u32 pin, swval, i;
|
2019-02-06 12:25:59 +00:00
|
|
|
char buf[16] = { 0 };
|
2018-07-06 13:41:18 +00:00
|
|
|
|
2017-08-03 18:22:13 +00:00
|
|
|
pin = env_get_ulong("ds1_pwr", 16, ~0UL);
|
2018-07-06 13:41:18 +00:00
|
|
|
|
2015-02-03 12:22:26 +00:00
|
|
|
if (pin == ~0UL) {
|
|
|
|
puts("no pwrpin in dtb/env, cannot powerup display!\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (i = 0; i < 3; i++) {
|
|
|
|
if (pin != 0) {
|
2019-02-06 12:25:59 +00:00
|
|
|
snprintf(buf, sizeof(buf), "ds1_pwr#%d", i);
|
|
|
|
if (gpio_request(pin & 0x7F, buf) != 0) {
|
|
|
|
printf("%s: not able to request gpio %s",
|
|
|
|
__func__, buf);
|
|
|
|
continue;
|
|
|
|
}
|
2015-02-03 12:22:26 +00:00
|
|
|
swval = pin & 0x80 ? 0 : 1;
|
|
|
|
if (on)
|
|
|
|
gpio_direction_output(pin & 0x7F, swval);
|
|
|
|
else
|
|
|
|
gpio_direction_output(pin & 0x7F, !swval);
|
|
|
|
|
|
|
|
debug("switched pin %d to %d\n", pin & 0x7F, swval);
|
|
|
|
}
|
|
|
|
pin >>= 8;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
vidinfo_t panel_info = {
|
|
|
|
.vl_col = 1366, /*
|
|
|
|
* give full resolution for allocating enough
|
|
|
|
* memory
|
|
|
|
*/
|
|
|
|
.vl_row = 768,
|
|
|
|
.vl_bpix = 5,
|
|
|
|
.priv = 0
|
|
|
|
};
|
|
|
|
|
|
|
|
void lcd_ctrl_init(void *lcdbase)
|
|
|
|
{
|
|
|
|
struct am335x_lcdpanel lcd_panel;
|
2018-07-06 13:41:18 +00:00
|
|
|
|
2015-02-03 12:22:26 +00:00
|
|
|
memset(&lcd_panel, 0, sizeof(struct am335x_lcdpanel));
|
|
|
|
if (load_lcdtiming(&lcd_panel) != 0)
|
|
|
|
return;
|
|
|
|
|
|
|
|
lcd_panel.panel_power_ctrl = &lcdpower;
|
|
|
|
|
|
|
|
if (0 != am335xfb_init(&lcd_panel))
|
|
|
|
printf("ERROR: failed to initialize video!");
|
|
|
|
/*
|
|
|
|
* modifiy panel info to 'real' resolution, to operate correct with
|
|
|
|
* lcd-framework.
|
|
|
|
*/
|
|
|
|
panel_info.vl_col = lcd_panel.hactive;
|
|
|
|
panel_info.vl_row = lcd_panel.vactive;
|
|
|
|
|
|
|
|
lcd_set_flush_dcache(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void lcd_enable(void)
|
|
|
|
{
|
|
|
|
br_summaryscreen();
|
2015-04-24 12:49:37 +00:00
|
|
|
lcdbacklight(1);
|
2015-02-03 12:22:26 +00:00
|
|
|
}
|
|
|
|
#endif /* CONFIG_LCD */
|
|
|
|
|
2020-06-26 06:13:33 +00:00
|
|
|
int ft_board_setup(void *blob, struct bd_info *bd)
|
2018-07-06 13:41:20 +00:00
|
|
|
{
|
|
|
|
int nodeoffset;
|
|
|
|
|
|
|
|
nodeoffset = fdt_path_offset(blob, "/factory-settings");
|
|
|
|
if (nodeoffset < 0) {
|
2018-07-06 13:41:25 +00:00
|
|
|
printf("%s: cannot find /factory-settings, trying /fset\n",
|
|
|
|
__func__);
|
|
|
|
nodeoffset = fdt_path_offset(blob, "/fset");
|
|
|
|
if (nodeoffset < 0) {
|
|
|
|
printf("%s: cannot find /fset.\n", __func__);
|
|
|
|
return 0;
|
|
|
|
}
|
2018-07-06 13:41:20 +00:00
|
|
|
}
|
2018-07-06 13:41:25 +00:00
|
|
|
|
2018-07-06 13:41:20 +00:00
|
|
|
if (fdt_setprop(blob, nodeoffset, "bl-version",
|
|
|
|
PLAIN_VERSION, strlen(PLAIN_VERSION)) != 0) {
|
2018-07-06 13:41:25 +00:00
|
|
|
printf("%s: no 'bl-version' prop in fdt!\n", __func__);
|
|
|
|
return 0;
|
2018-07-06 13:41:20 +00:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-04-10 12:13:13 +00:00
|
|
|
int brdefaultip_setup(int bus, int chip)
|
|
|
|
{
|
|
|
|
int rc;
|
|
|
|
struct udevice *i2cdev;
|
|
|
|
u8 u8buf = 0;
|
|
|
|
char defip[256] = { 0 };
|
|
|
|
|
|
|
|
rc = i2c_get_chip_for_busnum(bus, chip, 2, &i2cdev);
|
|
|
|
if (rc != 0) {
|
|
|
|
printf("WARN: cannot probe baseboard EEPROM!\n");
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
rc = dm_i2c_read(i2cdev, 0, &u8buf, 1);
|
|
|
|
if (rc != 0) {
|
|
|
|
printf("WARN: cannot read baseboard EEPROM!\n");
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (u8buf != 0xFF)
|
|
|
|
snprintf(defip, sizeof(defip),
|
|
|
|
"if test -r ${ipaddr}; then; else setenv ipaddr 192.168.60.%d; setenv serverip 192.168.60.254; setenv gatewayip 192.168.60.254; setenv netmask 255.255.255.0; fi;",
|
|
|
|
u8buf);
|
|
|
|
else
|
|
|
|
strncpy(defip,
|
|
|
|
"if test -r ${ipaddr}; then; else setenv ipaddr 192.168.60.1; setenv serverip 192.168.60.254; setenv gatewayip 192.168.60.254; setenv netmask 255.255.255.0; fi;",
|
|
|
|
sizeof(defip));
|
|
|
|
|
|
|
|
env_set("brdefaultip", defip);
|
|
|
|
env_set_hex("board_id", u8buf);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-04-10 12:13:12 +00:00
|
|
|
int overwrite_console(void)
|
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2019-04-10 12:13:11 +00:00
|
|
|
#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_AM33XX)
|
|
|
|
#include <asm/arch/hardware.h>
|
|
|
|
#include <asm/arch/omap.h>
|
|
|
|
#include <asm/arch/clock.h>
|
|
|
|
#include <asm/arch/sys_proto.h>
|
|
|
|
#include <power/tps65217.h>
|
2018-07-06 13:41:28 +00:00
|
|
|
|
|
|
|
static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE;
|
|
|
|
|
2019-01-31 08:24:45 +00:00
|
|
|
void pmicsetup(u32 mpupll, unsigned int bus)
|
2014-02-07 07:07:36 +00:00
|
|
|
{
|
|
|
|
int mpu_vdd;
|
|
|
|
int usb_cur_lim;
|
|
|
|
|
2019-01-31 08:24:45 +00:00
|
|
|
if (power_tps65217_init(bus)) {
|
|
|
|
printf("WARN: cannot setup PMIC 0x24 @ bus #%d, not found!.\n",
|
|
|
|
bus);
|
2014-02-07 07:07:36 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Get the frequency which is defined by device fuses */
|
|
|
|
dpll_mpu_opp100.m = am335x_get_efuse_mpu_max_freq(cdev);
|
|
|
|
printf("detected max. frequency: %d - ", dpll_mpu_opp100.m);
|
|
|
|
|
|
|
|
if (0 != mpupll) {
|
2018-07-06 13:41:23 +00:00
|
|
|
dpll_mpu_opp100.m = mpupll;
|
2014-02-07 07:07:36 +00:00
|
|
|
printf("retuning MPU-PLL to: %d MHz.\n", dpll_mpu_opp100.m);
|
|
|
|
} else {
|
|
|
|
puts("ok.\n");
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
* Increase USB current limit to 1300mA or 1800mA and set
|
|
|
|
* the MPU voltage controller as needed.
|
|
|
|
*/
|
|
|
|
if (dpll_mpu_opp100.m == MPUPLL_M_1000) {
|
|
|
|
usb_cur_lim = TPS65217_USB_INPUT_CUR_LIMIT_1800MA;
|
|
|
|
mpu_vdd = TPS65217_DCDC_VOLT_SEL_1325MV;
|
|
|
|
} else {
|
|
|
|
usb_cur_lim = TPS65217_USB_INPUT_CUR_LIMIT_1300MA;
|
|
|
|
mpu_vdd = TPS65217_DCDC_VOLT_SEL_1275MV;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (tps65217_reg_write(TPS65217_PROT_LEVEL_NONE, TPS65217_POWER_PATH,
|
|
|
|
usb_cur_lim, TPS65217_USB_INPUT_CUR_LIMIT_MASK))
|
|
|
|
puts("tps65217_reg_write failure\n");
|
|
|
|
|
|
|
|
/* Set DCDC3 (CORE) voltage to 1.125V */
|
|
|
|
if (tps65217_voltage_update(TPS65217_DEFDCDC3,
|
|
|
|
TPS65217_DCDC_VOLT_SEL_1125MV)) {
|
|
|
|
puts("tps65217_voltage_update failure\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Set CORE Frequencies to OPP100 */
|
|
|
|
do_setup_dpll(&dpll_core_regs, &dpll_core_opp100);
|
|
|
|
|
|
|
|
/* Set DCDC2 (MPU) voltage */
|
|
|
|
if (tps65217_voltage_update(TPS65217_DEFDCDC2, mpu_vdd)) {
|
|
|
|
puts("tps65217_voltage_update failure\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Set LDO3 to 1.8V */
|
|
|
|
if (tps65217_reg_write(TPS65217_PROT_LEVEL_2,
|
|
|
|
TPS65217_DEFLS1,
|
|
|
|
TPS65217_LDO_VOLTAGE_OUT_1_8,
|
|
|
|
TPS65217_LDO_MASK))
|
|
|
|
puts("tps65217_reg_write failure\n");
|
|
|
|
/* Set LDO4 to 3.3V */
|
|
|
|
if (tps65217_reg_write(TPS65217_PROT_LEVEL_2,
|
|
|
|
TPS65217_DEFLS2,
|
|
|
|
TPS65217_LDO_VOLTAGE_OUT_3_3,
|
|
|
|
TPS65217_LDO_MASK))
|
|
|
|
puts("tps65217_reg_write failure\n");
|
|
|
|
|
|
|
|
/* Set MPU Frequency to what we detected now that voltages are set */
|
|
|
|
do_setup_dpll(&dpll_mpu_regs, &dpll_mpu_opp100);
|
2015-02-03 12:22:26 +00:00
|
|
|
/* Set PWR_EN bit in Status Register */
|
|
|
|
tps65217_reg_write(TPS65217_PROT_LEVEL_NONE,
|
|
|
|
TPS65217_STATUS, TPS65217_PWR_OFF, TPS65217_PWR_OFF);
|
2014-02-07 07:07:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void set_uart_mux_conf(void)
|
|
|
|
{
|
|
|
|
enable_uart0_pin_mux();
|
|
|
|
}
|
|
|
|
|
|
|
|
void set_mux_conf_regs(void)
|
|
|
|
{
|
|
|
|
enable_board_pin_mux();
|
|
|
|
}
|
|
|
|
|
2019-04-10 12:13:11 +00:00
|
|
|
#endif /* CONFIG_SPL_BUILD && CONFIG_AM33XX */
|