The fsl-dspi is a SPI core that is found on Freescale Layerscape SoCs. This
series adds support for it. It uses regmap to access registers and it's
connected in big-endian, so we need some regmap patches to support such
maps.
Sascha Hauer (5):
regmap-mmio: Add missing pieces for 64bit support
The Cypress cy15b104q and cy15v104q are 4Mbit serial SPI F-RAM devices.
Add support for them to the spi-nor driver.
Signed-off-by: Sascha Hauer
---
drivers/mtd/spi-nor/spi-nor.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
i
This adds __spi_validate() to validate spi messages. This function is a
stripped down version from the Kernel. The motivation for adding this
was to fill in xfer->bits_per_word from spi->bits_per_word so that a
spi bus driver can use the former.
Signed-off-by: Sascha Hauer
---
drivers/spi/spi.c
Add support for parsing the big-endian device tree property.
Signed-off-by: Sascha Hauer
---
drivers/base/regmap/internal.h| 4 ++
drivers/base/regmap/regmap-mmio.c | 98 +--
drivers/base/regmap/regmap.c | 44 ++
include/regmap.h
The 64bit accessor functions are present, but unused. Hook them up when
needed.
Signed-off-by: Sascha Hauer
---
drivers/base/regmap/regmap-mmio.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/base/regmap/regmap-mmio.c
b/drivers/base/regmap/regmap-mmio.c
index f8d2cda843..ef6
The fsl-dspi is found on Freescale Vybrid, Coldfire and Layerscape SoCs.
This adds the driver based on the Linux driver as of v5.5. Coldfire
support has been dropped as it's rather obsolete. Vybrid support has
been dropped because it needs the DMA engine support we do not have in
barebox. What's le
On Mon, Mar 23, 2020 at 11:31:26AM +0100, Ahmad Fatoum wrote:
> Hi,
>
> On 3/23/20 11:21 AM, Clément Leger wrote:
> >> AFAIK the device_type = "memory" property was mandatory in the early
> >> days as well, there shouldn't be any /memory nodes without this
> >> property. Given that, is the add-leg
On Tue, Mar 24, 2020 at 05:21:16PM +0100, Yegor Yefremov wrote:
> On Tue, Mar 24, 2020 at 8:35 AM Sascha Hauer wrote:
> >
> > On Mon, Mar 23, 2020 at 01:22:33PM +0100, Yegor Yefremov wrote:
> > > Hi Sascha,
> > >
> > > On Mon, Mar 23, 2020 at 9:30 AM Sascha Hauer
> > > wrote:
> > > >
> > > > Hi
For controllers which do everything relevant during probe time
make the init hook optional.
Signed-off-by: Sascha Hauer
---
drivers/usb/core/usb.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index 32b19135a5..06087d2
This is an adoption of U-Boot commit bbc6f06c0031249bf1983b875e54cb7549bafe60:
| commit bbc6f06c0031249bf1983b875e54cb7549bafe60
| Author: Bin Meng
| Date: Wed Jul 19 21:51:13 2017 +0800
|
| usb: hub: Support 'set hub depth' request for USB 3.0 hubs
|
| USB 3.0 hub uses a hub depth valu
The weird hack about "bad shielded USB devices" goes back to the initial
U-Boot git commmit. Let's be bold and remove it 18 years later.
Signed-off-by: Sascha Hauer
---
drivers/usb/core/hub.c | 12
1 file changed, 12 deletions(-)
diff --git a/drivers/usb/core/hub.c b/drivers/usb/co
This factors out a usb_setup_descriptor() function with the goal to
make the code better comparable to the corresponding U-Boot code.
This also incorporates this U-Boot commit:
| commit 2b338ef41127351089254b748de5cefd95c3e800
| Author: Hans de Goede
| Date: Tue May 5 23:56:04 2015 +0200
|
|
Adoption of U-Boot commit 5624dfd5aa91c244519ec60b40b4a42b4d9a43ca:
| commit 5624dfd5aa91c244519ec60b40b4a42b4d9a43ca
| Author: Bin Meng
| Date: Wed Jul 19 21:51:16 2017 +0800
|
| usb: hub: Parse and save TT details from device descriptor
|
| A high speed hub has a special responsibilit
Give the USB messages some context by using dev_* functions rather than
printf()/debug().
Signed-off-by: Sascha Hauer
---
drivers/usb/core/usb.c | 50 +-
1 file changed, 25 insertions(+), 25 deletions(-)
diff --git a/drivers/usb/core/usb.c b/drivers/usb/c
U-Boot has this since 3ed9eb93c2 ("usb: Don't reset the USB hub a 2nd
time"), so do the same for barebox.
Signed-off-by: Sascha Hauer
---
drivers/usb/core/hub.c | 4 ++--
drivers/usb/core/hub.h | 7 ---
drivers/usb/core/usb.c | 11 ---
3 files changed, 2 insertions(+), 20 deletions
"tmp" is only used to store the size of the descriptor. The name is not
very meaningful and "tmp" is not even used everywhere it could be used.
Just replace by using sizeof() directly where needed.
Signed-off-by: Sascha Hauer
---
drivers/usb/core/usb.c | 8 +++-
1 file changed, 3 insertions(
This series adds support for USB3 devices. The XHCI driver we currently
have in barebox only supports USB2 devices or USB3 devices behind a USB2
cable or hub. We replace the XHCI driver with the one from U-Boot, this
series contains the missing pieces to the USB layer to make that work.
Also conta
dev->devnum is set once in usb_alloc_new_device(), set to 0 again later
in usb_new_device() and then set back to the original value. This seems
unnecessary, just set devnum once right before calling usb_set_address()
on the device.
Signed-off-by: Sascha Hauer
---
drivers/usb/core/usb.c | 14
Allocate an individual rx buffer per device in the size we need it
instead of using one global buffer for all devices.
Signed-off-by: Sascha Hauer
---
drivers/net/usb/usbnet.c | 15 ++-
include/usb/usbnet.h | 1 +
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/d
When after a timeout no connection came up then we have not only bail
out, but also remove the device from the scanning list. Otherwise it
can happen that the list never becomes empty and we probe forever.
Signed-off-by: Sascha Hauer
---
drivers/usb/core/hub.c | 9 +++--
1 file changed, 3 in
Signed-off-by: Sascha Hauer
---
drivers/net/usb/usbnet.c | 11 ++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index 83e2c7a9e2..9ddbc50c0a 100644
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -158,13
Adoption of U-Boot commit:
| 1commit 74ffc7cbb1d2d1f218b1bd67d1bd3cc1cba8aa79
| Author: Bin Meng
| Date: Wed Jul 19 21:51:12 2017 +0800
|
| usb: hub: Translate USB 3.0 hub port status into old version
|
| USB 3.0 hub port status field has different bit positions from 2.0
| hubs. Sin
Some of the messages print the port they belong to, others don't. Print
the port consistently in all debugging messages. Also remove some stray
'\' in the messages.
Signed-off-by: Sascha Hauer
---
drivers/usb/core/hub.c | 59 ++
1 file changed, 31 insertio
portstatus/portchange have just been read in usb_scan_port(), there
shouldn't be any need to read them again in
usb_hub_port_connect_change().
Signed-off-by: Sascha Hauer
---
drivers/usb/core/hub.c | 18 +++---
1 file changed, 3 insertions(+), 15 deletions(-)
diff --git a/drivers/us
This adds the xhci driver from U-Boot-2020.04-rc2. The usual things
like adjusting to the barebox driver model and using dev_* instead of
printf/puts/debug messages are made.
The previously existing PCI support is not present in this driver
currently. XHCI PCI support was not enabled in any defcon
in usb_new_device() set the device name as early as possible to let
dev_* functions print a meaningful name.
Signed-off-by: Sascha Hauer
---
drivers/usb/core/usb.c | 17 -
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.
It's cleaner to have a tx buffer per device and not one for all.
Signed-off-by: Sascha Hauer
---
drivers/net/usb/usbnet.c | 20 +---
include/usb/usbnet.h | 1 +
2 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.
usb_scan_port() never returns anything else but 0, so let it return
void.
Signed-off-by: Sascha Hauer
---
drivers/usb/core/hub.c | 25 +
1 file changed, 9 insertions(+), 16 deletions(-)
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 4c2e568066..cc0c4c
This adds support for the Asix AX88179 USB3.0 ethernet converter chip.
The driver is based on the kernel driver with influence from the U-Boot
driver.
Signed-off-by: Sascha Hauer
---
drivers/net/usb/Kconfig| 11 +
drivers/net/usb/Makefile | 1 +
drivers/net/usb/ax88179_178a.c |
driver_info shouldn't be changed, make it const.
Signed-off-by: Sascha Hauer
---
include/usb/usb.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/usb/usb.h b/include/usb/usb.h
index 95dedfd5b7..a9c34cdde4 100644
--- a/include/usb/usb.h
+++ b/include/usb/usb.h
@@ -382
This is an adoption of U-Boot commit 0834bb2fb0 ("usb: Do not power-cycle
usb devices on init")
Signed-off-by: Sascha Hauer
---
drivers/usb/core/hub.c | 11 ---
1 file changed, 11 deletions(-)
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 59354895df..6d664e80bb 1006
This adds the missing bits and pieces to add super speed support to the
USB stack. It is based on the corresponding U-Boot code.
Signed-off-by: Sascha Hauer
---
drivers/usb/core/hub.c | 50 --
drivers/usb/core/usb.c | 25 -
include/usb/
Hi Sascha,
> + undev->rx_buf = dma_alloc(undev->rx_urb_size);
Looks like this buffer is never free, same for tx_buf.
Best regards,
Jules
___
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
On Wed, Mar 25, 2020 at 10:58 AM Sascha Hauer wrote:
>
> On Tue, Mar 24, 2020 at 05:21:16PM +0100, Yegor Yefremov wrote:
> > On Tue, Mar 24, 2020 at 8:35 AM Sascha Hauer wrote:
> > >
> > > On Mon, Mar 23, 2020 at 01:22:33PM +0100, Yegor Yefremov wrote:
> > > > Hi Sascha,
> > > >
> > > > On Mon, M
On Wed, Mar 25, 2020 at 4:35 PM Yegor Yefremov
wrote:
>
> On Wed, Mar 25, 2020 at 10:58 AM Sascha Hauer wrote:
> >
> > On Tue, Mar 24, 2020 at 05:21:16PM +0100, Yegor Yefremov wrote:
> > > On Tue, Mar 24, 2020 at 8:35 AM Sascha Hauer
> > > wrote:
> > > >
> > > > On Mon, Mar 23, 2020 at 01:22:33
Currently, barebox can only parse one memory node. This means that
all other memory nodes (with device_type == "memory") will be ignored
while parsing memory.
This patchset add a function of_probe_memory which will call
of_add_memory for each found memory node. Additionally, of_add_memory
has been
Currently, of_add_memory can't be called multiple times because it will
always create memory banks by restarting at value 0. This means that, when
adding a second memory bank by calling again of_add_memory, it will be
named ram0 and overwrite the previous one. Fix that by using a static
variable to
Currently, barebox only parse one memory node which is either the
"/memory" node or the first node with device_type == "memory".
However, the use of multiple memory nodes with device_type = "memory"
property is allowed by the device tree specification and already
correctly parsed by Linux kernel.
I
How should one compile the target tools like bareboxenv-target etc. I
get the following error:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -C debian/build
make: Entering directory
'/home/user/MyProjects/oss/bootloaders/barebox-upstream/debian/build'
make[3]: 'include/generated/mach-types.h'
Hi Jules,
On Tue, Mar 24, 2020 at 04:46:46PM +0100, Jules Maselbas wrote:
> When downloading a firmware into a big flash partition the erase
> operation can take a long time to be complete from few seconds to
> minutes in extreme cases. During the erase the DFU gadget does not
> respond to any USB
On Tue, Mar 24, 2020 at 04:46:47PM +0100, Jules Maselbas wrote:
> Global variables must be reset to their default value before a new
> dfu_bind is done. Otherwise things wont work and are likely to cause
> a system crash due to a use after free: the global dfu_files was still
> pointing deallocated
On Wed, Mar 25, 2020 at 03:30:02PM +0900, Masahiro Yamada wrote:
> [ Linux comit 1634f2bfdb846ed0a8b73131a9dff7c420fb3fe1 ]
>
> The only the difference between clean-files and clean-dirs is the -r
> option passed to the 'rm' command.
>
> You can always pass -r, and then remove the clean-dirs synt
On Wed, Mar 25, 2020 at 03:30:19PM +0900, Masahiro Yamada wrote:
> [ Linux commit 54b8ae66ae1a3454a7645d159a482c31cd89ab33 ]
>
> I introduced a new variable, target-stem, which can be used also from
> explicit rules.
>
> Signed-off-by: Masahiro Yamada
> ---
> scripts/Makefile.host| 14 +
On Wed, Mar 25, 2020 at 03:34:18PM +0900, Masahiro Yamada wrote:
> The previous sync was Linux 5.3-rc3. This updates Kconfig to Linux 5.5.
>
> Signed-off-by: Masahiro Yamada
> ---
> scripts/kconfig/Makefile| 10 +++---
> scripts/kconfig/conf.c | 13 -
> scripts/k
Hi Jules,
On Wed, Mar 25, 2020 at 03:18:00PM +0100, Jules Maselbas wrote:
> Hi Sascha,
>
> > + undev->rx_buf = dma_alloc(undev->rx_urb_size);
> Looks like this buffer is never free, same for tx_buf.
Right, thanks for noting. Fixed.
Regards
Sascha
--
Pengutronix e.K.
Hi Yegor,
On Wed, Mar 25, 2020 at 11:13:03PM +0100, Yegor Yefremov wrote:
> How should one compile the target tools like bareboxenv-target etc. I
> get the following error:
>
> ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -C debian/build
> make: Entering directory
> '/home/user/MyProjects/os
46 matches
Mail list logo