aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini2019-02-28 14:22:03 -0500
committerTom Rini2019-02-28 14:22:03 -0500
commit7869e647a60ae706457bb601a3c2ea51e9fdd413 (patch)
tree2e77dd316e2c5899f780ac6cf037117420d7febd
parent783e66816d101f970b185083377846059d4d577d (diff)
parent438dcabb75d6b9b0e7f887befb753d1863f14deb (diff)
Merge branch '2019-02-29-master-imports'
- Assorted BSP fixes - Kbuild fix
-rw-r--r--.gitignore1
-rw-r--r--arch/arm/lib/cache-pl310.c2
-rw-r--r--board/eets/pdu001/mux.c2
-rw-r--r--common/spl/spl.c2
-rw-r--r--doc/device-tree-bindings/memory-controllers/k3-am654-ddrss.txt (renamed from doc/device-tree-bindings/ram/k3-am654-ddrss.txt)0
-rw-r--r--doc/device-tree-bindings/memory-controllers/st,stm32-fmc.txt (renamed from doc/device-tree-bindings/ram/st,stm32-fmc.txt)0
-rw-r--r--doc/device-tree-bindings/memory-controllers/st,stm32mp1-ddr.txt (renamed from doc/device-tree-bindings/ram/st,stm32mp1-ddr.txt)0
-rw-r--r--drivers/spi/omap3_spi.c2
-rw-r--r--dts/Makefile1
-rw-r--r--fs/fat/fat_write.c6
-rw-r--r--scripts/Makefile.lib3
11 files changed, 12 insertions, 7 deletions
diff --git a/.gitignore b/.gitignore
index 8d18d6f49bc..3df3139d236 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,7 @@
*.bin
*.cfgout
*.dtb
+*.dtbo
*.dtb.S
*.elf
*.exe
diff --git a/arch/arm/lib/cache-pl310.c b/arch/arm/lib/cache-pl310.c
index 1296ba6efda..bbaaaa4157a 100644
--- a/arch/arm/lib/cache-pl310.c
+++ b/arch/arm/lib/cache-pl310.c
@@ -33,7 +33,7 @@ static void pl310_background_op_all_ways(u32 *op_reg)
/* Invalidate all ways */
writel(way_mask, op_reg);
/* Wait for all ways to be invalidated */
- while (readl(op_reg) && way_mask)
+ while (readl(op_reg) & way_mask)
;
pl310_cache_sync();
}
diff --git a/board/eets/pdu001/mux.c b/board/eets/pdu001/mux.c
index f1d38e9b74d..f0f9e262ebd 100644
--- a/board/eets/pdu001/mux.c
+++ b/board/eets/pdu001/mux.c
@@ -8,11 +8,11 @@
*/
#include <common.h>
+#include <i2c.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/hardware.h>
#include <asm/arch/mux.h>
#include <asm/io.h>
-#include <i2c.h>
#include "board.h"
static struct module_pin_mux uart0_pin_mux[] = {
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 2e2af1b28ee..88d4b8a9bf1 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -728,6 +728,8 @@ ulong spl_relocate_stack_gd(void)
#if defined(CONFIG_SPL_SYS_MALLOC_SIMPLE) && CONFIG_VAL(SYS_MALLOC_F_LEN)
if (CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN) {
+ debug("SPL malloc() before relocation used 0x%lx bytes (%ld KB)\n",
+ gd->malloc_ptr, gd->malloc_ptr / 1024);
ptr -= CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN;
gd->malloc_base = ptr;
gd->malloc_limit = CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN;
diff --git a/doc/device-tree-bindings/ram/k3-am654-ddrss.txt b/doc/device-tree-bindings/memory-controllers/k3-am654-ddrss.txt
index 4ed731c5242..4ed731c5242 100644
--- a/doc/device-tree-bindings/ram/k3-am654-ddrss.txt
+++ b/doc/device-tree-bindings/memory-controllers/k3-am654-ddrss.txt
diff --git a/doc/device-tree-bindings/ram/st,stm32-fmc.txt b/doc/device-tree-bindings/memory-controllers/st,stm32-fmc.txt
index 99f76d515fb..99f76d515fb 100644
--- a/doc/device-tree-bindings/ram/st,stm32-fmc.txt
+++ b/doc/device-tree-bindings/memory-controllers/st,stm32-fmc.txt
diff --git a/doc/device-tree-bindings/ram/st,stm32mp1-ddr.txt b/doc/device-tree-bindings/memory-controllers/st,stm32mp1-ddr.txt
index 3028636c451..3028636c451 100644
--- a/doc/device-tree-bindings/ram/st,stm32mp1-ddr.txt
+++ b/doc/device-tree-bindings/memory-controllers/st,stm32mp1-ddr.txt
diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c
index c7fcf050a58..ff4c700645c 100644
--- a/drivers/spi/omap3_spi.c
+++ b/drivers/spi/omap3_spi.c
@@ -415,7 +415,7 @@ static void _omap3_spi_set_wordlen(struct omap3_spi_priv *priv)
unsigned int confr;
/* McSPI individual channel configuration */
- confr = readl(&priv->regs->channel[priv->wordlen].chconf);
+ confr = readl(&priv->regs->channel[priv->cs].chconf);
/* wordlength */
confr &= ~OMAP3_MCSPI_CHCONF_WL_MASK;
diff --git a/dts/Makefile b/dts/Makefile
index a7a604303cc..4970223b3d2 100644
--- a/dts/Makefile
+++ b/dts/Makefile
@@ -40,6 +40,7 @@ endif
echo >&2; \
/bin/false)
+PHONY += arch-dtbs
arch-dtbs:
$(Q)$(MAKE) $(build)=$(ARCH_PATH) dtbs
diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c
index 3272412ca9f..852f874e581 100644
--- a/fs/fat/fat_write.c
+++ b/fs/fat/fat_write.c
@@ -696,11 +696,11 @@ static int
set_contents(fsdata *mydata, dir_entry *dentptr, loff_t pos, __u8 *buffer,
loff_t maxsize, loff_t *gotsize)
{
- loff_t filesize;
unsigned int bytesperclust = mydata->clust_size * mydata->sect_size;
__u32 curclust = START(dentptr);
__u32 endclust = 0, newclust = 0;
- loff_t cur_pos, offset, actsize, wsize;
+ u64 cur_pos, filesize;
+ loff_t offset, actsize, wsize;
*gotsize = 0;
filesize = pos + maxsize;
@@ -828,7 +828,7 @@ set_contents(fsdata *mydata, dir_entry *dentptr, loff_t pos, __u8 *buffer,
curclust = endclust;
filesize -= cur_pos;
- assert(!(cur_pos % bytesperclust));
+ assert(!do_div(cur_pos, bytesperclust));
set_clusters:
/* allocate and write */
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 704d644f6fa..ec5c41ec561 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -301,7 +301,8 @@ cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \
$(DTC) -O dtb -o $@ -b 0 \
-i $(dir $<) $(DTC_FLAGS) \
-d $(depfile).dtc.tmp $(dtc-tmp) ; \
- cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)
+ cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile) ; \
+ sed -i "s:$(pre-tmp):$(<):" $(depfile)
$(obj)/%.dtb: $(src)/%.dts FORCE
$(call if_changed_dep,dtc)