mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 07:31:15 +00:00
board: ti: am65x: Set fdtfile from C code instead of findfdt script
We now can provide a map and have the standard fdtfile variable set from code itself. This allows for bootstd to "just work". While at this, replace findfdt in environment with a warning as it is no longer needed. Reviewed-by: Jonathan Humphreys <j-humphreys@ti.com> Reviewed-by: Roger Quadros <rogerq@kernel.org> Signed-off-by: Nishanth Menon <nm@ti.com>
This commit is contained in:
parent
f2c1205f88
commit
6e20016924
2 changed files with 2 additions and 3 deletions
|
@ -5,9 +5,6 @@
|
||||||
#include <env/ti/k3_rproc.env>
|
#include <env/ti/k3_rproc.env>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
findfdt=
|
|
||||||
setenv name_fdt ti/k3-am654-base-board.dtb;
|
|
||||||
setenv fdtfile ${name_fdt}
|
|
||||||
name_kern=Image
|
name_kern=Image
|
||||||
console=ttyS2,115200n8
|
console=ttyS2,115200n8
|
||||||
args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000
|
args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#include <linux/printk.h>
|
#include <linux/printk.h>
|
||||||
|
|
||||||
#include "../common/board_detect.h"
|
#include "../common/board_detect.h"
|
||||||
|
#include "../common/fdt_ops.h"
|
||||||
|
|
||||||
#define board_is_am65x_base_board() board_ti_is("AM6-COMPROCEVM")
|
#define board_is_am65x_base_board() board_ti_is("AM6-COMPROCEVM")
|
||||||
|
|
||||||
|
@ -141,6 +142,7 @@ static void setup_board_eeprom_env(void)
|
||||||
|
|
||||||
invalid_eeprom:
|
invalid_eeprom:
|
||||||
set_board_info_env_am6(name);
|
set_board_info_env_am6(name);
|
||||||
|
ti_set_fdt_env(NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int init_daughtercard_det_gpio(char *gpio_name, struct gpio_desc *desc)
|
static int init_daughtercard_det_gpio(char *gpio_name, struct gpio_desc *desc)
|
||||||
|
|
Loading…
Reference in a new issue