Skip to content

Commit

Permalink
Merge git://git.denx.de/u-boot-dm
Browse files Browse the repository at this point in the history
  • Loading branch information
trini committed Jan 21, 2016
2 parents 45fe380 + 747440d commit 6905f4d
Show file tree
Hide file tree
Showing 122 changed files with 7,455 additions and 422 deletions.
6 changes: 6 additions & 0 deletions arch/arm/cpu/armv7/omap-common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
#

obj-y := reset.o
ifeq ($(CONFIG_TIMER),)
obj-y += timer.o
else
ifdef CONFIG_SPL_BUILD
obj-y += timer.o
endif
endif
obj-y += utils.o

ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ dtb-$(CONFIG_TARGET_BEAGLE_X15) += am57xx-beagle-x15.dtb
dtb-$(CONFIG_TARGET_STV0991) += stv0991.dtb

dtb-$(CONFIG_LS102XA) += ls1021a-qds.dtb \
ls1021a-twr.dtb
ls1021a-twr-duart.dtb ls1021a-twr-lpuart.dtb
dtb-$(CONFIG_FSL_LSCH3) += fsl-ls2080a-qds.dtb \
fsl-ls2080a-rdb.dtb
dtb-$(CONFIG_FSL_LSCH2) += fsl-ls1043a-qds.dtb \
Expand Down
1 change: 1 addition & 0 deletions arch/arm/dts/am335x-boneblack.dts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
compatible = "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
chosen {
stdout-path = &uart0;
tick-timer = &timer2;
};
};

Expand Down
1 change: 1 addition & 0 deletions arch/arm/dts/am335x-evm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

chosen {
stdout-path = &uart0;
tick-timer = &timer2;
};

cpus {
Expand Down
1 change: 1 addition & 0 deletions arch/arm/dts/am437x-gp-evm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

chosen {
stdout-path = &uart0;
tick-timer = &timer2;
};

vmmcsd_fixed: fixedregulator-sd {
Expand Down
1 change: 1 addition & 0 deletions arch/arm/dts/am437x-sk-evm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

chosen {
stdout-path = &uart0;
tick-timer = &timer2;
};

backlight {
Expand Down
1 change: 1 addition & 0 deletions arch/arm/dts/dra7-evm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

chosen {
stdout-path = &uart1;
tick-timer = &timer2;
};

memory {
Expand Down
1 change: 1 addition & 0 deletions arch/arm/dts/dra72-evm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

chosen {
stdout-path = &uart1;
tick-timer = &timer2;
};

memory {
Expand Down
16 changes: 16 additions & 0 deletions arch/arm/dts/ls1021a-twr-duart.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Freescale ls1021a TWR board device tree source
*
* Copyright 2013-2015 Freescale Semiconductor, Inc.
*
* SPDX-License-Identifier: GPL-2.0+
*/

/dts-v1/;
#include "ls1021a-twr.dtsi"

/ {
chosen {
stdout-path = &uart0;
};
};
16 changes: 16 additions & 0 deletions arch/arm/dts/ls1021a-twr-lpuart.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Freescale ls1021a TWR board device tree source
*
* Copyright 2013-2015 Freescale Semiconductor, Inc.
*
* SPDX-License-Identifier: GPL-2.0+
*/

/dts-v1/;
#include "ls1021a-twr.dtsi"

/ {
chosen {
stdout-path = &lpuart0;
};
};
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
/*
* Freescale ls1021a TWR board device tree source
* Freescale ls1021a TWR board common device tree source
*
* Copyright 2013-2015 Freescale Semiconductor, Inc.
*
* SPDX-License-Identifier: GPL-2.0+
*/

/dts-v1/;
#include "ls1021a.dtsi"

/ {
Expand All @@ -19,6 +18,10 @@
spi0 = &qspi;
spi1 = &dspi1;
};

chosen {
stdout-path = &uart0;
};
};

&qspi {
Expand Down
4 changes: 0 additions & 4 deletions arch/arm/dts/ls1021a.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@
compatible = "fsl,16550-FIFO64", "ns16550a";
reg = <0x21c0500 0x100>;
interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
clock-frequency = <0>;
fifo-size = <15>;
status = "disabled";
};
Expand All @@ -227,7 +226,6 @@
compatible = "fsl,16550-FIFO64", "ns16550a";
reg = <0x21c0600 0x100>;
interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
clock-frequency = <0>;
fifo-size = <15>;
status = "disabled";
};
Expand All @@ -236,7 +234,6 @@
compatible = "fsl,16550-FIFO64", "ns16550a";
reg = <0x21d0500 0x100>;
interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
clock-frequency = <0>;
fifo-size = <15>;
status = "disabled";
};
Expand All @@ -245,7 +242,6 @@
compatible = "fsl,16550-FIFO64", "ns16550a";
reg = <0x21d0600 0x100>;
interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
clock-frequency = <0>;
fifo-size = <15>;
status = "disabled";
};
Expand Down
1 change: 1 addition & 0 deletions arch/sandbox/dts/sandbox.dts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
};

lcd {
u-boot,dm-pre-reloc;
compatible = "sandbox,lcd-sdl";
xres = <1366>;
yres = <768>;
Expand Down
7 changes: 7 additions & 0 deletions arch/sandbox/dts/test.dts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@
vss-microvolts = <0>;
};

lcd {
u-boot,dm-pre-reloc;
compatible = "sandbox,lcd-sdl";
xres = <1366>;
yres = <768>;
};

leds {
compatible = "gpio-leds";

Expand Down
17 changes: 0 additions & 17 deletions board/sandbox/sandbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,6 @@ int dram_init(void)
return 0;
}

#ifdef CONFIG_BOARD_EARLY_INIT_F
int board_early_init_f(void)
{
#ifdef CONFIG_VIDEO_SANDBOX_SDL
int ret;

ret = sandbox_lcd_sdl_early_init();
if (ret) {
puts("Could not init sandbox LCD emulation\n");
return ret;
}
#endif

return 0;
}
#endif

#ifdef CONFIG_BOARD_LATE_INIT
int board_late_init(void)
{
Expand Down
2 changes: 2 additions & 0 deletions common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ obj-$(CONFIG_I2C_EDID) += edid.o
obj-$(CONFIG_KALLSYMS) += kallsyms.o
obj-y += splash.o
obj-$(CONFIG_SPLASH_SOURCE) += splash_source.o
ifndef CONFIG_DM_VIDEO
obj-$(CONFIG_LCD) += lcd.o lcd_console.o
endif
obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o
obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o
obj-$(CONFIG_LYNXKDI) += lynxkdi.o
Expand Down
71 changes: 47 additions & 24 deletions common/board_f.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include <spi.h>
#include <status_led.h>
#include <trace.h>
#include <video.h>
#include <watchdog.h>
#include <asm/errno.h>
#include <asm/io.h>
Expand Down Expand Up @@ -437,45 +438,63 @@ static int reserve_mmu(void)
}
#endif

#ifdef CONFIG_LCD
#ifdef CONFIG_DM_VIDEO
static int reserve_video(void)
{
ulong addr;
int ret;

addr = gd->relocaddr;
ret = video_reserve(&addr);
if (ret)
return ret;
gd->relocaddr = addr;

return 0;
}
#else

# ifdef CONFIG_LCD
static int reserve_lcd(void)
{
#ifdef CONFIG_FB_ADDR
# ifdef CONFIG_FB_ADDR
gd->fb_base = CONFIG_FB_ADDR;
#else
# else
/* reserve memory for LCD display (always full pages) */
gd->relocaddr = lcd_setmem(gd->relocaddr);
gd->fb_base = gd->relocaddr;
#endif /* CONFIG_FB_ADDR */
return 0;
}
#endif /* CONFIG_LCD */

static int reserve_trace(void)
{
#ifdef CONFIG_TRACE
gd->relocaddr -= CONFIG_TRACE_BUFFER_SIZE;
gd->trace_buff = map_sysmem(gd->relocaddr, CONFIG_TRACE_BUFFER_SIZE);
debug("Reserving %dk for trace data at: %08lx\n",
CONFIG_TRACE_BUFFER_SIZE >> 10, gd->relocaddr);
#endif
# endif /* CONFIG_FB_ADDR */

return 0;
}
# endif /* CONFIG_LCD */

#if defined(CONFIG_VIDEO) && (!defined(CONFIG_PPC) || defined(CONFIG_8xx)) && \
# if defined(CONFIG_VIDEO) && (!defined(CONFIG_PPC) || defined(CONFIG_8xx)) && \
!defined(CONFIG_ARM) && !defined(CONFIG_X86) && \
!defined(CONFIG_BLACKFIN) && !defined(CONFIG_M68K)
static int reserve_video(void)
static int reserve_legacy_video(void)
{
/* reserve memory for video display (always full pages) */
gd->relocaddr = video_setmem(gd->relocaddr);
gd->fb_base = gd->relocaddr;

return 0;
}
# endif
#endif /* !CONFIG_DM_VIDEO */

static int reserve_trace(void)
{
#ifdef CONFIG_TRACE
gd->relocaddr -= CONFIG_TRACE_BUFFER_SIZE;
gd->trace_buff = map_sysmem(gd->relocaddr, CONFIG_TRACE_BUFFER_SIZE);
debug("Reserving %dk for trace data at: %08lx\n",
CONFIG_TRACE_BUFFER_SIZE >> 10, gd->relocaddr);
#endif

return 0;
}

static int reserve_uboot(void)
{
/*
Expand Down Expand Up @@ -957,16 +976,20 @@ static init_fnc_t init_sequence_f[] = {
defined(CONFIG_ARM)
reserve_mmu,
#endif
#ifdef CONFIG_LCD
#ifdef CONFIG_DM_VIDEO
reserve_video,
#else
# ifdef CONFIG_LCD
reserve_lcd,
#endif
reserve_trace,
# endif
/* TODO: Why the dependency on CONFIG_8xx? */
#if defined(CONFIG_VIDEO) && (!defined(CONFIG_PPC) || defined(CONFIG_8xx)) && \
# if defined(CONFIG_VIDEO) && (!defined(CONFIG_PPC) || defined(CONFIG_8xx)) && \
!defined(CONFIG_ARM) && !defined(CONFIG_X86) && \
!defined(CONFIG_BLACKFIN) && !defined(CONFIG_M68K)
reserve_video,
#endif
reserve_legacy_video,
# endif
#endif /* CONFIG_DM_VIDEO */
reserve_trace,
#if !defined(CONFIG_BLACKFIN)
reserve_uboot,
#endif
Expand Down
Loading

0 comments on commit 6905f4d

Please sign in to comment.