Commit e0320b746a784cb31dc0faa882e4b4bf16d0be4f

Authored by Vikas Manocha
Committed by Tom Rini
1 parent 0a836ceb01

stv0991: use fdt for serial port platform data

This patch ignores the serial port static platform data at compilation time
in case of device tree control.

Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

board/st/stv0991/stv0991.c
... ... @@ -21,6 +21,7 @@
21 21 struct gpio_regs *const gpioa_regs =
22 22 (struct gpio_regs *) GPIOA_BASE_ADDR;
23 23  
  24 +#ifndef CONFIG_OF_CONTROL
24 25 static const struct pl01x_serial_platdata serial_platdata = {
25 26 .base = 0x80406000,
26 27 .type = TYPE_PL011,
... ... @@ -31,6 +32,7 @@
31 32 .name = "serial_pl01x",
32 33 .platdata = &serial_platdata,
33 34 };
  35 +#endif
34 36  
35 37 #ifdef CONFIG_SHOW_BOOT_PROGRESS
36 38 void show_boot_progress(int progress)