summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2020-09-17 09:53:57 -0400
committerTom Rini <[email protected]>2020-09-17 09:53:57 -0400
commit9de3126e80cdac7ee15b6671065a952184533dda (patch)
tree202c407e31e0f7d60c508cdaadb4b2e6af764aae
parentb01ba776c9ae138732d85a543878d8456e0b4b30 (diff)
parentc6963fb88ffb60e42137dc60100ee1a7c6f91beb (diff)
Merge branch '2020-09-16-assorted-fixes'
- Assorted bug fixes
-rw-r--r--MAINTAINERS4
-rw-r--r--doc/board/emulation/qemu-arm.rst10
-rw-r--r--include/phy.h2
-rw-r--r--lib/fdtdec.c4
4 files changed, 16 insertions, 4 deletions
diff --git a/MAINTAINERS b/MAINTAINERS
index 101f4e185df..7e46470c709 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -619,7 +619,7 @@ F: drivers/mtd/jedec_flash.c
CLOCK
M: Lukasz Majewski <[email protected]>
S: Maintained
-T: git git://git.denx.de/u-boot-dfu.git
+T: git https://gitlab.denx.de/u-boot/custodians/u-boot-clk.git
F: drivers/clk/
F: drivers/clk/imx/
@@ -983,6 +983,8 @@ F: include/spmi/
SQUASHFS
M: Joao Marcos Costa <[email protected]>
+R: Thomas Petazzoni <[email protected]>
+R: Miquel Raynal <[email protected]>
S: Maintained
F: fs/squashfs/
F: include/sqfs.h
diff --git a/doc/board/emulation/qemu-arm.rst b/doc/board/emulation/qemu-arm.rst
index ca751d4af4a..8d7fda10f15 100644
--- a/doc/board/emulation/qemu-arm.rst
+++ b/doc/board/emulation/qemu-arm.rst
@@ -80,3 +80,13 @@ can be enabled with the following command line parameters:
-drive if=none,file=disk.img,id=mydisk -device nvme,drive=mydisk,serial=foo
These have been tested in QEMU 2.9.0 but should work in at least 2.5.0 as well.
+
+Debug UART
+----------
+
+The debug UART on the ARM virt board uses these settings::
+
+ CONFIG_DEBUG_UART=y
+ CONFIG_DEBUG_UART_PL010=y
+ CONFIG_DEBUG_UART_BASE=0x9000000
+ CONFIG_DEBUG_UART_CLOCK=0
diff --git a/include/phy.h b/include/phy.h
index 1dbbf651113..cbdb10d6fce 100644
--- a/include/phy.h
+++ b/include/phy.h
@@ -205,7 +205,7 @@ static inline int phy_write(struct phy_device *phydev, int devad, int regnum,
{
struct mii_dev *bus = phydev->bus;
- if (!bus || !bus->read) {
+ if (!bus || !bus->write) {
debug("%s: No bus configured\n", __func__);
return -1;
}
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index d3b22ec3238..5f41f58a63c 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -1101,7 +1101,7 @@ int fdtdec_setup_memory_banksize(void)
if (ret < 0) {
reg = 0;
mem = get_next_memory_node(mem);
- if (ofnode_valid(mem))
+ if (!ofnode_valid(mem))
break;
ret = ofnode_read_resource(mem, reg++, &res);
@@ -1146,7 +1146,7 @@ int fdtdec_setup_mem_size_base_lowest(void)
if (ret < 0) {
reg = 0;
mem = get_next_memory_node(mem);
- if (ofnode_valid(mem))
+ if (!ofnode_valid(mem))
break;
ret = ofnode_read_resource(mem, reg++, &res);