[PATCH 2/3] ddr: imx: fix indention of debug message

2023-05-23 Thread Marc Kleine-Budde
Fixes: 2ccc6a0946d7 ("ddr: imx: Cleanup debug messages") Signed-off-by: Marc Kleine-Budde --- drivers/ddr/imx8m/ddr_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ddr/imx8m/ddr_init.c b/drivers/ddr/imx8m/ddr_init.c index 164536800615..944cc3873e0c 10

[PATCH 3/3] I2C: i.MX: fix guard macro comment

2023-05-23 Thread Marc Kleine-Budde
Cc: Ahmad Fatoum Fixes: dbbe6037f5ca ("pbl: generalize fsl i2c_early API into pbl_i2c") Signed-off-by: Marc Kleine-Budde --- include/pbl/i2c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pbl/i2c.h b/include/pbl/i2c.h index 32e456d46b6d..ea2ae447a39f 10

[PATCH 1/3] ARM: i.MX8MM: InnoComm: fix base address for I2C1

2023-05-23 Thread Marc Kleine-Budde
Replace i.MX8MQ with i.MX8MM define. Cc: Ahmad Fatoum Fixes: e190e932b918 ("ARM: i.MX8MM: add InnoComm WB15 support") Signed-off-by: Marc Kleine-Budde --- arch/arm/boards/innocomm-imx8mm-wb15/lowlevel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/

[PATCH 0/3] non-critical fixes

2023-05-23 Thread Marc Kleine-Budde
Hello, here are some non critical fixes on top of v2023.05.0. regards, Marc

[PATCH] ARM: dts: InnoComm: fix node address of environment partitions

2023-06-02 Thread Marc Kleine-Budde
Fixes: e190e932b918 ("ARM: i.MX8MM: add InnoComm WB15 support") Cc: Ahmad Fatoum Signed-off-by: Marc Kleine-Budde --- arch/arm/dts/imx8mm-innocomm-wb15-evk.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/imx8mm-innocomm-wb15-evk.dts b/ar

[PATCH 1/3] i2c: add for PBL use

2023-06-06 Thread Marc Kleine-Budde
Add a small helper to read a single page of EEPROM data. Signed-off-by: Marc Kleine-Budde --- include/pbl/eeprom.h | 34 ++ 1 file changed, 34 insertions(+) diff --git a/include/pbl/eeprom.h b/include/pbl/eeprom.h new file mode 100644 index

[PATCH 0/3] ARM: i.MX8MM: add Phytec i.MX8 SoM support

2023-06-06 Thread Marc Kleine-Budde
-Budde --- Marc Kleine-Budde (3): i2c: add for PBL use common: board: phytec: import SoM detection for imx8m based SoM from u-boot ARM: i.MX8MM: add Phytec i.MX8 SoM support arch/arm/boards/Makefile |1 + arch/arm/boards/phytec-som-imx8mm/Makefile

[PATCH 2/3] common: board: phytec: import SoM detection for imx8m based SoM from u-boot

2023-06-06 Thread Marc Kleine-Budde
This patch imports and cleans up the SoM detection for imx8n based SoM from u-boot. Signed-off-by: Marc Kleine-Budde --- common/boards/Kconfig | 7 + common/boards/Makefile| 1 + common/boards/phytec/Makefile | 4

[PATCH 3/3] ARM: i.MX8MM: add Phytec i.MX8 SoM support

2023-06-06 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde --- arch/arm/boards/Makefile |1 + arch/arm/boards/phytec-som-imx8mm/Makefile |4 + arch/arm/boards/phytec-som-imx8mm/board.c | 40 + .../flash-header-imx8mm-phyboard-polis-rdk.imxcfg |7 + arch/arm/boards

Re: [PATCH 1/3] i2c: add for PBL use

2023-06-06 Thread Marc Kleine-Budde
On 06.06.2023 13:21:48, Sascha Hauer wrote: > On Tue, Jun 06, 2023 at 12:50:02PM +0200, Marc Kleine-Budde wrote: > > Add a small helper to read a single page of EEPROM data. > > > > Signed-off-by: Marc Kleine-Budde > > --- > > include/pbl/eeprom.h | 34

Re: [PATCH 2/3] common: board: phytec: import SoM detection for imx8m based SoM from u-boot

2023-06-06 Thread Marc Kleine-Budde
On 06.06.2023 14:51:05, Ahmad Fatoum wrote: > On 06.06.23 12:50, Marc Kleine-Budde wrote: > > This patch imports and cleans up the SoM detection for imx8n based SoM > > from u-boot. > > > > Signed-off-by: Marc Kleine-Budde > > --- > > common/boards/Kc

[PATCH v2 1/3] i2c: add for PBL use

2023-06-06 Thread Marc Kleine-Budde
Add a small helper to read a single page of EEPROM data. Signed-off-by: Marc Kleine-Budde --- include/pbl/eeprom.h | 34 ++ 1 file changed, 34 insertions(+) diff --git a/include/pbl/eeprom.h b/include/pbl/eeprom.h new file mode 100644 index

[PATCH v2 0/3] ARM: i.MX8MM: add Phytec i.MX8 SoM support

2023-06-06 Thread Marc Kleine-Budde
pad - move include/phytec-som-* to include/boards/phytec - Link to v1: https://lore.barebox.org/20230606-phytec-som-imx8mm-v1-0-b9c2bf70b...@pengutronix.de --- Marc Kleine-Budde (3): i2c: add for PBL use common: board: phytec: import SoM detection for imx8m based SoM from u-boot

[PATCH v2 2/3] common: board: phytec: import SoM detection for imx8m based SoM from u-boot

2023-06-06 Thread Marc Kleine-Budde
This patch imports and cleans up the SoM detection for imx8m based SoM from u-boot. Signed-off-by: Marc Kleine-Budde --- common/boards/Kconfig | 7 + common/boards/Makefile | 1 + common/boards/phytec/Makefile

[PATCH v2 3/3] ARM: i.MX8MM: add Phytec i.MX8 SoM support

2023-06-06 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde --- arch/arm/boards/Makefile |1 + arch/arm/boards/phytec-som-imx8mm/Makefile |4 + arch/arm/boards/phytec-som-imx8mm/board.c | 40 + .../flash-header-imx8mm-phyboard-polis-rdk.imxcfg |7 + arch/arm/boards

[PATCH v4 2/3] common: board: phytec: import SoM detection for imx8m based SoM from u-boot

2023-08-09 Thread Marc Kleine-Budde
This patch imports and cleans up the SoM detection for imx8m based SoM from u-boot. Signed-off-by: Marc Kleine-Budde --- common/boards/Kconfig | 7 + common/boards/Makefile | 1 + common/boards/phytec/Makefile

[PATCH v4 0/3] ARM: i.MX8MM: add Phytec i.MX8 SoM support

2023-08-09 Thread Marc Kleine-Budde
ec-som-imx8mm-v1-0-b9c2bf70b...@pengutronix.de --- Marc Kleine-Budde (3): i2c: add for PBL use common: board: phytec: import SoM detection for imx8m based SoM from u-boot ARM: i.MX8MM: add Phytec i.MX8MM SoM support arch/arm/boards/Makefile |1 + arch/arm

[PATCH v4 1/3] i2c: add for PBL use

2023-08-09 Thread Marc Kleine-Budde
Add a small helper to read a single page of EEPROM data. Signed-off-by: Marc Kleine-Budde --- include/pbl/eeprom.h | 34 ++ 1 file changed, 34 insertions(+) diff --git a/include/pbl/eeprom.h b/include/pbl/eeprom.h new file mode 100644 index

[PATCH v4 3/3] ARM: i.MX8MM: add Phytec i.MX8MM SoM support

2023-08-09 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde --- arch/arm/boards/Makefile |1 + arch/arm/boards/phytec-som-imx8mm/Makefile |4 + arch/arm/boards/phytec-som-imx8mm/board.c | 40 + .../flash-header-imx8mm-phyboard-polis-rdk.imxcfg |7 + arch/arm/boards

[PATCH] habv4: habv4_get_status(): do not print HAB error event in case of known RNG self test failure

2021-07-16 Thread Marc Kleine-Budde
vent if it is the known RNG self-test failure. Fixes: 655e085e3a22 ("crypto: caam - Always do rng selftest") Reported-by: Roland Hieber Signed-off-by: Marc Kleine-Budde --- drivers/hab/habv4.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/hab/habv4.c b

[PATCH] scripts/rsatoc: fix printing of error message, if environment variable doen't contain a path

2020-07-29 Thread Marc Kleine-Budde
Fixes: 128ad3cbe043 ("scripts: Add rsatoc tool") Signed-off-by: Marc Kleine-Budde --- scripts/rsatoc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/rsatoc.c b/scripts/rsatoc.c index 647380214092..9410f33a654f 100644 --- a/scripts/rsatoc.c +++

Re: [PATCH 6/7] scripts/imx-image: relicense to allow distribution of binary linked with OpenSSL

2020-09-16 Thread Marc Kleine-Budde
ively a license change and so needs confirmation by all > copyright holders. > > Cc: Ahmad Fatoum > Cc: Alexander Kurz > Cc: Andrey Smirnov > Cc: Bastian Krause > Cc: Eric Bénard > Cc: Lucas Stach > Cc: Marcin Niestroj > Cc: Marc Kleine-Budde Acked-by: Marc Kleine-

Re: [PATCH 5/7] scripts/rsatoc: relicense to allow distribution of binary linked with OpenSSL

2020-09-16 Thread Marc Kleine-Budde
ively a license change and so needs confirmation by all > copyright holders. > > Cc: Sascha Hauer > Signed-off-by: Uwe Kleine-König Acked-by: Marc Kleine-Budde > --- > scripts/rsatoc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/s

Re: [PATCH] arch: arm: mach-imx: document field return in CSF template

2022-02-25 Thread Marc Kleine-Budde
index in key store (0, 2...4) */ > hab Verification index = 0 > -- > 2.30.2 > > Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmun

Re: [PATCH] arch: arm: mach-imx: document field return in CSF template

2022-02-25 Thread Marc Kleine-Budde
On 25.02.2022 11:46:04, Bastian Krause wrote: > On 2/25/22 11:25, Marc Kleine-Budde wrote: > > On 25.02.2022 11:03:44, Bastian Krause wrote: > > > Activating the field return configuration returns a locked-down board > > > (nearly) to its open state. In order to burn

[PATCH] 2048: port to barebox

2014-04-08 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde --- common/2048/2048.c| 357 ++ common/2048/LICENSE | 21 +++ common/2048/Makefile | 1 + common/2048/README.md | 32 + common/Makefile | 1 + 5 files changed, 412 insertions(+) create mode

Re: RFC: barebox-x86 as a coreboot payload

2014-04-08 Thread Marc Kleine-Budde
t;> promotion. >> >> Please see http://www.coreboot.org/Payloads >> >> -- > > Amused: http://www.coreboot.org/File:Coreboot_libpayload_tint.png > This is a really missing feature in barebox :) What about 2048? Marc -- Pengutronix e.K. | Marc Kle

Re: [PATCH V2] usb/gadget: fix poller NPE in early polling

2012-01-19 Thread Marc Kleine-Budde
usb_gadget_poll(); > -} > -static struct poller_struct poller = { > - .func = pxa27x_udc_poller > -}; > - > static int __init pxa27x_udc_init(void) > { > register_driver(&udc_driver); > - poller_register(&poller); > return 0; > } >

[PATCH 2/6] show_progress: fix progress bar for files > 32 MiB

2012-01-24 Thread Marc Kleine-Budde
The next limit with the current code will probably 2GiB. Signed-off-by: Marc Kleine-Budde --- lib/show_progress.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/show_progress.c b/lib/show_progress.c index 333f498..39808d2 100644 --- a/lib/show_progress.c

[PATCH 0/6] update mx35_3ds suppoprt

2012-01-24 Thread Marc Kleine-Budde
Hey, this patch series updates mx35_3ds support in barebox. In my current project the rootfs is bigger than 32 MiB, so that it cannot be flashed with tftp with the current blocksize of 512 bytes. So flash via nfs is added to the update script. Marc __

[PATCH 6/6] ARM: mx3/mx35_3ds: add (optinal) support for flexcan0

2012-01-24 Thread Marc Kleine-Budde
eiver itself is activated by the CAN_PWDN signal, too. Signed-off-by: Marc Kleine-Budde --- arch/arm/boards/freescale-mx35-3-stack/3stack.c |7 +++ arch/arm/mach-imx/Kconfig |4 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/arm/board

[PATCH 1/6] net/nfs: increase timeout to 15 seconds

2012-01-24 Thread Marc Kleine-Budde
e NFS timeout to 15 to work around the problem. Signed-off-by: Marc Kleine-Budde --- net/nfs.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/nfs.c b/net/nfs.c index 0a4b787..f6cbc7c 100644 --- a/net/nfs.c +++ b/net/nfs.c @@ -124,7 +124,7 @@ struct rpc_t {

[PATCH 5/6] ARM: mx3/mx35_3ds: increase kernel partition size to 4 MiB

2012-01-24 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde --- arch/arm/boards/freescale-mx35-3-stack/env/config |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boards/freescale-mx35-3-stack/env/config b/arch/arm/boards/freescale-mx35-3-stack/env/config index fa45812..9f37348 100644

[PATCH 3/6] defaultenv: update: add nfs support

2012-01-24 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde --- defaultenv/bin/_update | 11 --- defaultenv/bin/_update_help | 10 +- defaultenv/bin/update |2 +- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/defaultenv/bin/_update b/defaultenv/bin/_update index

[PATCH 4/6] ARM: mx3/mx35_3ds: add missing nand device

2012-01-24 Thread Marc Kleine-Budde
Otherwise the kernel would not register the nand partitions. Signed-off-by: Marc Kleine-Budde --- arch/arm/boards/freescale-mx35-3-stack/env/config |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/boards/freescale-mx35-3-stack/env/config b/arch/arm/boards

mx35-3stack 124MiByte RAM

2012-01-27 Thread Marc Kleine-Budde
uot;, IMX_SDRAM_CS0, 124 * 1024 * 1024, ^^^ What happened to the upper 4 MiByte? > +IORESOURCE_MEM_WRITEABLE); > + armlinux_add_dram(sdram_dev); > imx35_add_fb(&ipu_fb_data); >

Re: mx35-3stack 124MiByte RAM

2012-01-27 Thread Marc Kleine-Budde
On 01/27/2012 01:38 PM, Sascha Hauer wrote: > On Fri, Jan 27, 2012 at 01:35:29PM +0100, Marc Kleine-Budde wrote: >>> >>> - register_device(&sdram_dev); >>> + sdram_dev = add_mem_device("

Re: flash image through CAN

2012-02-08 Thread Marc Kleine-Budde
ossible. Not yet, but we can port the CAN stack to barebox. However, if you have the space, I suggest to boot into a minimal Linux-System to run the update there. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions| Phone: +49-231-2826-924

Re: Antwort: Re: flash image through CAN

2012-02-09 Thread Marc Kleine-Budde
y we have all components (Kernel, CAN-Stack, minimal Userspace). regards, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions| Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917- | Amtsgericht Hildesh

[PATCH] common: memory: fix off-by-one in tlsf_create

2012-04-24 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde --- common/memory.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/memory.c b/common/memory.c index faff33b..3b4a5ef 100644 --- a/common/memory.c +++ b/common/memory.c @@ -58,7 +58,7 @@ void mem_malloc_init(void *start, void *end

[PATCH 3/6] nios: add dma_alloc, dma_free and asm/dma.h

2012-06-19 Thread Marc Kleine-Budde
Some drivers call dma_inv_range() on buffers, on arm these buffers must be cache line aligned. This patch add dma_alloc, dma_free to existing dma-mapping.h. On nios the mem is aligned to DCACHE_LINE_SIZE. Signed-off-by: Marc Kleine-Budde --- arch/nios2/include/asm/dma-mapping.h | 10

[PATCH 2/6] ARM mmu: introduce dma_alloc, dma_free

2012-06-19 Thread Marc Kleine-Budde
dma_alloc() allocates memory aligned to cache lines. We have to use cache line aligned buffers if a driver calls dma_inv_range on the buffer. Add dma_free() for documentation reasons, too. Signed-off-by: Marc Kleine-Budde --- arch/arm/include/asm/dma.h |8 arch/arm/include/asm

[PATCH 6/6] USB gadget: Fix dma memory allocations

2012-06-19 Thread Marc Kleine-Budde
dma_inv_range can corrupt other memory around the buffer. Signed-off-by: Sascha Hauer [mkl: use dma_alloc] Signed-off-by: Marc Kleine-Budde --- drivers/usb/gadget/composite.c |5 +++-- drivers/usb/gadget/dfu.c |5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a

[PATCH 4/6] blackfin, mips, openrisc, ppc, sandbox, x86: add transparent dma_alloc, dma_free inlines

2012-06-19 Thread Marc Kleine-Budde
: Marc Kleine-Budde --- arch/blackfin/include/asm/dma.h | 21 + arch/mips/include/asm/dma.h | 21 + arch/openrisc/include/asm/dma.h | 21 + arch/ppc/include/asm/dma.h | 21 + arch/sandbox/include/asm

[PATCH 5/6] USB gadget fsl: request cacheline aligned buffer

2012-06-19 Thread Marc Kleine-Budde
dma_alloc] Signed-off-by: Marc Kleine-Budde --- drivers/usb/gadget/fsl_udc.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/fsl_udc.c b/drivers/usb/gadget/fsl_udc.c index 5b64ec2..2765b41 100644 --- a/drivers/usb/gadget/fsl_udc.c +++ b/drivers/usb/gadget

[PATCH 1/6] ARM mmu: don't use CONFIG_MMU to disable mmu code, there are static inline versions

2012-06-19 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde --- arch/arm/cpu/mmu.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/arch/arm/cpu/mmu.c b/arch/arm/cpu/mmu.c index c19f931..55b07a4 100644 --- a/arch/arm/cpu/mmu.c +++ b/arch/arm/cpu/mmu.c @@ -299,11 +299,9 @@ void

[PATCH 0/6] fix dma memory allocations, add dma_alloc/dma_free

2012-06-19 Thread Marc Kleine-Budde
Hello, on ARM using dfu mode we've seen problems with dma memory allocations. Some drivers use dma_inv_range on allocated buffers, which corrupts memory around the buffer, it it's not aligned to cache lines. This series introduces: dma_alloc() and dma_free() that allocate memory aligned to cache l

Re: [PATCH 0/6] fix dma memory allocations, add dma_alloc/dma_free

2012-06-19 Thread Marc Kleine-Budde
On 06/19/2012 02:36 PM, Marc Kleine-Budde wrote: > on ARM using dfu mode we've seen problems with dma memory allocations. > Some drivers use dma_inv_range on allocated buffers, which corrupts memory > around the buffer, it it's not aligned to cache lines. This series > intro

[PATCH v2 3/6] nios: add dma_alloc, asm/dma.h

2012-06-20 Thread Marc Kleine-Budde
This patch add dma_alloc to existing dma-mapping.h. On nios the mem is aligned to D_ACHE_LINE_SIZE. Signed-off-by: Marc Kleine-Budde --- arch/nios2/include/asm/dma-mapping.h | 10 ++ arch/nios2/include/asm/dma.h |8 2 files changed, 18 insertions(+) create mode

[PATCH v2 1/6] ARM mmu: don't use CONFIG_MMU to disable mmu code, there are static inline versions

2012-06-20 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde --- arch/arm/cpu/mmu.c |4 1 file changed, 4 deletions(-) diff --git a/arch/arm/cpu/mmu.c b/arch/arm/cpu/mmu.c index c19f931..55b07a4 100644 --- a/arch/arm/cpu/mmu.c +++ b/arch/arm/cpu/mmu.c @@ -299,11 +299,9 @@ void *dma_alloc_coherent(size_t size

[PATCH v2 0/6] fix dma memory allocations, add dma_alloc/dma_free

2012-06-20 Thread Marc Kleine-Budde
on ARM using dfu mode we've seen problems with dma memory allocations. Some drivers use dma_inv_range on allocated buffers, which corrupts memory around the buffer, it it's not aligned to cache lines. This series introduces: dma_alloc() and dma_free() that allocate memory aligned to cache lines. Th

[PATCH v2 5/6] USB gadget fsl: request cacheline aligned buffer

2012-06-20 Thread Marc Kleine-Budde
dma_alloc] Signed-off-by: Marc Kleine-Budde --- drivers/usb/gadget/fsl_udc.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/fsl_udc.c b/drivers/usb/gadget/fsl_udc.c index 5b64ec2..627e417 100644 --- a/drivers/usb/gadget/fsl_udc.c +++ b/drivers/usb/gadget

[PATCH v2 2/6] blackfin, mips, openrisc, ppc, sandbox, x86: add generic dma_alloc, dma_free inlines

2012-06-20 Thread Marc Kleine-Budde
ee On all other archs the generic versions, which translate into xmalloc and free are used. Signed-off-by: Marc Kleine-Budde --- arch/blackfin/include/asm/dma.h | 13 + arch/mips/include/asm/dma.h | 13 + arch/openrisc/include/asm/dma.h | 13 + arch/p

[PATCH v2 4/6] ARM mmu: add dma_alloc

2012-06-20 Thread Marc Kleine-Budde
dma_alloc() allocates memory aligned to cache lines. We have to use cache line aligned buffers if a driver calls dma_inv_range on the buffer. Signed-off-by: Marc Kleine-Budde --- arch/arm/include/asm/dma.h |8 arch/arm/include/asm/mmu.h | 13 +++-- 2 files changed, 19

[PATCH v2 6/6] USB gadget: Fix dma memory allocations

2012-06-20 Thread Marc Kleine-Budde
dma_inv_range can corrupt other memory around the buffer. Signed-off-by: Sascha Hauer [mkl: use dma_alloc] Signed-off-by: Marc Kleine-Budde --- drivers/usb/gadget/composite.c |5 +++-- drivers/usb/gadget/dfu.c |5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a

Re: [PATCH 1/2] Enable a way to provide the reason for "being here"

2012-06-20 Thread Marc Kleine-Budde
CLUDE_RESET_SOURCE_H > +# define __INCLUDE_RESET_SOURCE_H > + > +/* possible parameters to set_reset_source() */ > +#define RESET_UKWN 0 > +#define RESET_POR 1 /* Power On Reset */ > +#define RESET_RST 2 /* generic ReST */ > +#define RESET_WDG 3 /* watchdog */ > +#define RESET

Re: [PATCH 2/2] Add two architectures which can detect the reset source

2012-06-20 Thread Marc Kleine-Budde
} That "writel(S3C2440_GSTATUS2_WDRST...)" is the same in each line, isn't it? What about this: if (reg & S3C2440_GSTATUS2_PWRST) set_reset_source(RESET_POR); else if (...) else if (..) else return 0; writel(S3C2440_

Re: [PATCH 2/2] Add two architectures which can detect the reset source

2012-06-20 Thread Marc Kleine-Budde
On 06/20/2012 05:05 PM, Juergen Beisert wrote: > Marc Kleine-Budde wrote: >> [...] >>> +static int s3c_detect_reset_source(void) >>> +{ >>> + u32 reg = readl(S3C_GPIO_BASE + S3C2440_GSTATUS2); >>> + >>> + if (reg & S3C2440_GS

[PATCH] mtd nand: mxs: add missing include for mxs_reset_block

2012-06-21 Thread Marc Kleine-Budde
This patch fixes this warning: drivers/mtd/nand/nand_mxs.c: In function 'mxs_nand_scan_bbt': drivers/mtd/nand/nand_mxs.c:1043:2: warning: implicit declaration of function 'mxs_reset_block' [-Wimplicit-function-declaration] Signed-off-by: Marc Kleine-Budde --- ...applied to

Re: [PATCH 1/2] habv4: correct habv4 rom vector table

2024-01-12 Thread Marc Kleine-Budde
tained from the imx code signing tool (imx-cst). > > Signed-off-by: Stefan Kerkmann What's the size of a size_t on imx6? We don't want to break the 32 bit platforms. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux |

[PATCH 0/3] habv4/ocotp: style fixes

2024-02-12 Thread Marc Kleine-Budde
Hello, while rebasing an internal branch, I found some style fixes for the habv4 and ocotp driver. regards, Marc

[PATCH 1/3] habv4: convert comments to common coding style

2024-02-12 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde --- drivers/hab/habv4.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/hab/habv4.c b/drivers/hab/habv4.c index c60a658b89af..6440ef7f5196 100644 --- a/drivers/hab/habv4.c +++ b/drivers/hab/habv4.c @@ -147,9 +147,11

[PATCH 3/3] nvmem: ocotp: mark data as const

2024-02-12 Thread Marc Kleine-Budde
Mark values obtained from "priv->data->ctrl" as const. Signed-off-by: Marc Kleine-Budde --- drivers/nvmem/ocotp.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/nvmem/ocotp.c b/drivers/nvmem/ocotp.c index 16d2a6be9fce..c28

[PATCH 2/3] nvmem: ocotp: use tab for indention only

2024-02-12 Thread Marc Kleine-Budde
Replace space+tabs by tabs only for indention. Fixes: 1c2d1d4e5985 ("ARM: i.MX8MP: enhance support for ocotp driver") Signed-off-by: Marc Kleine-Budde --- drivers/nvmem/ocotp.c | 50 ++- 1 file changed, 26 insertions(+), 24 deletions(-) di

Re: [PATCH 1/2] HABv4: remove useless error message

2019-12-02 Thread Marc Kleine-Budde
message for more details: 29abc10d44c2 habv4: add High Assurance Boot v4 Albeit giving an incorrect error message, it showed that there were warnings events on the new mx6 silicon revisions that were not handled before 81e2b508e785. Marc -- Pengutronix e.K. | Marc Kleine-Bud

Re: [PATCH 1/2] HABv4: remove useless error message

2019-12-02 Thread Marc Kleine-Budde
On 12/2/19 2:33 PM, Roland Hieber wrote: > On Mon, Dec 02, 2019 at 02:24:54PM +0100, Marc Kleine-Budde wrote: >> On 12/2/19 2:07 PM, Roland Hieber wrote: >>> On Mon, Dec 02, 2019 at 11:24:48AM +0100, Juergen Borleis wrote: >>>> This change removes the stupid e

Re: [PATCH 1/2] HABv4: remove useless error message

2019-12-03 Thread Marc Kleine-Budde
On 12/2/19 3:30 PM, Juergen Borleis wrote: > Am Montag, den 02.12.2019, 14:24 +0100 schrieb Marc Kleine-Budde: >> On 12/2/19 2:07 PM, Roland Hieber wrote: >>> On Mon, Dec 02, 2019 at 11:24:48AM +0100, Juergen Borleis wrote: >>>> This change removes the stupid e

Re: [PATCH 1/2] HABv4: remove useless error message

2019-12-03 Thread Marc Kleine-Budde
k reason for stopping */ > + /* Check if we've handled every event */ > len = sizeof(data); > - index = 0; > - if (rvt->report_event(HAB_STATUS_ANY, index, NULL, &len) == > HAB_STATUS_SUCCESS) > - pr_err("ERROR: Recompile with larger e

Re: [PATCH 1/3] watchdog: Select CONFIG_PARAMETER

2020-01-23 Thread Marc Kleine-Budde
NULL >>> instead of returning ERR_PTR(-ENOSYS). >> >> initially I came to the same result. But previous commits to param.h went in >> the opposite direction: >> >>> 03b59bdb64 ("paramter: The dev_add_param_*() return ERR_PTR(), change >>> no-ops&q

Re: [PATCH 1/3] at91: add boot mode detection support

2013-02-05 Thread Marc Kleine-Budde
| 57 ++ what about making this a common bootmode helper, which can be used on other platforms too? Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions| Phone: +49-231-2826-924 | Vertretung West/Dortmund |

Re: [PATCH 5/6] common: add mem_test routine

2013-02-07 Thread Marc Kleine-Budde
gt; + start[offset] = anti_pattern; > + } > + > + show_progress(offset); > + > + printf("\nFilling ram with inverted pattern and compare it...\n"); > + > + /* > + * Check each location for the inverted pattern and zero it. > +

Re: [PATCH 6/6] commands: add new memtest command

2013-02-07 Thread Marc Kleine-Budde
start, end, bank->size, > + bank->res->name); > + > + err = mem_test(start, end, bus_only); > + if (err == -EINTR) { > + printf("Test interrupted

Re: [PATCH 1/1] commands/ubi.c: Add support for VID header offset in ubiattach

2013-02-12 Thread Marc Kleine-Budde
enerated by ptxdist. Why don't you configure ptxdist to generate an image with the correct VID header offset? Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions| Phone: +49-231-2826-924 | Vertretung West/Dortmund | F

Re: [PATCH 1/1] commands/ubi.c: Add support for VID header offset in ubiattach

2013-02-13 Thread Marc Kleine-Budde
On 02/12/2013 11:52 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 23:49 Tue 12 Feb , Marc Kleine-Budde wrote: >> On 02/11/2013 04:14 PM, Xavier Douville wrote: >>> Hi >>> >>> Sascha Hauer wrote: >>>> I don't know exactly, but I suspect

Re: [PATCH] bareboxenv: Return proper exit code on failure.

2013-02-26 Thread Marc Kleine-Budde
gt; filename); > - envfs_save(filename, dirname); > + > + err = envfs_save(filename, dirname); > + > + if(verbose && err) dito > + printf("saving env failed: %d\n", err); > } > - exit(0); > +

[PATCH 2/2] driver/serial: add driver for the mxs application uart

2013-02-26 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde --- drivers/serial/Makefile |1 + drivers/serial/serial_auart.c | 257 + 2 files changed, 258 insertions(+) create mode 100644 drivers/serial/serial_auart.c diff --git a/drivers/serial/Makefile b/drivers/serial

[PATCH 0/2] add mxs application uart driver

2013-02-26 Thread Marc Kleine-Budde
Hello, this series adds support for the mxs application uart driver. Lifted from TQS's u-boot patches. regards, Marc ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH 1/2] driver/serial: Kconfig: explicitly state that existing mxs driver is for the debug uart

2013-02-26 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde --- drivers/serial/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index a8be9cd..b23d17e 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -21,7 +21,7 @@ config

[PATCH 1/2] driver/serial: Kconfig: explicitly state that existing mxs driver is for the debug uart

2013-02-28 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde --- drivers/serial/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index a8be9cd..b23d17e 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -21,7 +21,7 @@ config

[PATCH 2/2] driver/serial: add driver for the mxs application uart

2013-02-28 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde --- drivers/serial/Kconfig|4 + drivers/serial/Makefile |1 + drivers/serial/serial_auart.c | 238 + 3 files changed, 243 insertions(+) create mode 100644 drivers/serial/serial_auart.c diff --git a

[PATCH v2 0/2] add mxs application uart driver

2013-02-28 Thread Marc Kleine-Budde
Hello, this series adds support for the mxs application uart driver. Lifted from TQS's u-boot patches. regards, Marc changes since v1: - fix comments (auart_serial_getc(), auart_serial_setbaudrate()) - use auart_serial_setbaudrate Both suggested by Sascha.

[PATCH 1/2] driver/serial: auart: fix flush

2013-03-14 Thread Marc Kleine-Budde
Actually wait until fifo is empty. Signed-off-by: Marc Kleine-Budde --- drivers/serial/serial_auart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/serial_auart.c b/drivers/serial/serial_auart.c index fa2e04f..1aebb07 100644 --- a/drivers/serial

[PATCH 2/2] driver/serial: stm-serial: fix flush

2013-03-14 Thread Marc Kleine-Budde
Wait until fifo is empty, not until fifo is not full. Signed-off-by: Marc Kleine-Budde --- drivers/serial/stm-serial.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/serial/stm-serial.c b/drivers/serial/stm-serial.c index 3968892..e1276bd 100644 --- a/drivers

[PATCH 1/2] serial: fix flush in auart and stm driver

2013-03-14 Thread Marc Kleine-Budde
Hello, this series fixes problems in the auart and stm serial driver. regards, Marc ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH 00/10] make bootsource an arch independent framework

2013-03-14 Thread Marc Kleine-Budde
Hello, this series first cleans up the i.mx specific bootsource code. Then the arch independent code is moved into a seperate file, creating an arch independent framework. The last patch adds bootsource detection for the i.mx28. regards, Marc ___ bar

[PATCH 02/10] ARM i.MX bootsource: convert all imx*_boot_save_loc functions to void

2013-03-14 Thread Marc Kleine-Budde
This function gives all functions a common, i.e. void, return value. Signed-off-by: Marc Kleine-Budde --- arch/arm/mach-imx/boot.c | 18 ++ arch/arm/mach-imx/include/mach/generic.h | 8 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a

[PATCH 03/10] ARM i.MX bootsource: imx_25_35_boot_save_loc: remove leftover do-nothing code

2013-03-14 Thread Marc Kleine-Budde
This patch removes some code leftover from: a029e32 ARM i.MX: rework bootsource setting which is now a no-op. Signed-off-by: Marc Kleine-Budde --- arch/arm/mach-imx/boot.c | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/arm/mach-imx/boot.c b/arch/arm/mach-imx/boot.c index

[PATCH 01/10] ARM i.MX bootsource: convert enums from enum imx_bootsource to uppercase

2013-03-14 Thread Marc Kleine-Budde
Enums are in the same way as defines, so write them in uppercase. Signed-off-by: Marc Kleine-Budde --- arch/arm/boards/efika-mx-smartbook/board.c | 2 +- arch/arm/boards/karo-tx53/board.c | 4 +- arch/arm/boards/pcm038/pcm038.c| 2 +- arch/arm/mach-imx/boot.c

[PATCH 08/10] bootsource: add support for bootsource instance information

2013-03-14 Thread Marc Kleine-Budde
Add a C interface to set and get the bootsource instance: int bootsource_get_instance(void); void bootsource_set_instance(int instance); Also export the shell variable "barebox_loc_instance". Signed-off-by: Marc Kleine-Budde --- common/bootsource.c | 20 +++

[PATCH 04/10] ARM i.MX bootsource: rename imx_27_boot_save_loc -> imx27_boot_save_loc

2013-03-14 Thread Marc Kleine-Budde
This patch renames imx_27_boot_save_loc() to imx27_boot_save_loc(), so that all imx*_boot_save_loc() functions follow the same nameing sheme. Signed-off-by: Marc Kleine-Budde --- arch/arm/mach-imx/boot.c | 2 +- arch/arm/mach-imx/imx27.c| 2 +- arch/arm/mach-imx

[PATCH 07/10] bootsource: use initcall to export bootsource location to environment

2013-03-14 Thread Marc Kleine-Budde
This way the bootsource is exported to the environment, even if unknown. Signed-off-by: Marc Kleine-Budde --- common/bootsource.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/common/bootsource.c b/common/bootsource.c index 2aa0ffa..ebe4407 100644 --- a/common

[PATCH 05/10] ARM i.MX bootsource: add separate function for mx25 and mx35

2013-03-14 Thread Marc Kleine-Budde
This patch creates a seperate function for mx25 and mx35 to save it's bootsource. Signed-off-by: Marc Kleine-Budde --- arch/arm/mach-imx/boot.c | 22 +- arch/arm/mach-imx/imx25.c| 6 +- arch/arm/mach-imx/imx35.c

[PATCH 09/10] bootsource: add definition for usb and eeprom

2013-03-14 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde --- common/bootsource.c | 2 ++ include/bootsource.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/common/bootsource.c b/common/bootsource.c index fae554d..599bcd2 100644 --- a/common/bootsource.c +++ b/common/bootsource.c @@ -31,6 +31,8 @@ static const

[PATCH 10/10] ARM: mxs: add bootsource detection

2013-03-14 Thread Marc Kleine-Budde
For now only the v1.2 i.MX28 silicon is supported. The actual information is read from a magic address within the internal SRAM. Signed-off-by: Marc Kleine-Budde --- arch/arm/mach-mxs/imx.c | 99 +++ arch/arm/mach-mxs/include/mach/revision.h | 24

[PATCH 06/10] bootsource: create arch independent bootsource framework

2013-03-14 Thread Marc Kleine-Budde
This patch seperates the imx independent from the arch independent code. The following functions and enums are renamed: - imx_bootsource() -> bootsource_get() - imx_set_bootsource() -> bootsource_set() - enum imx_bootsource -> enum bootsource Signed-off-by: Marc Kleine-Budde ---

Re: [PATCH 4/5] bootsource: add support for bootsource instance information

2013-04-03 Thread Marc Kleine-Budde
On 04/03/2013 08:52 AM, Sascha Hauer wrote: > From: Marc Kleine-Budde > > Add a C interface to set and get the bootsource instance: > > int bootsource_get_instance(void); > void bootsource_set_instance(int instance); > > Also export the shell variab

[PATCH v2 3/7] bootsource: use initcall to export bootsource location to environment

2013-04-03 Thread Marc Kleine-Budde
This way the bootsource is exported to the environment, even if unknown. Signed-off-by: Marc Kleine-Budde Signed-off-by: Sascha Hauer --- common/bootsource.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/common/bootsource.c b/common/bootsource.c index 6f9ae54

[PATCH v2 5/7] bootsource: add definition for i2c-eeprom, spi-nor, spi-eeprom and usb

2013-04-03 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde --- common/bootsource.c | 4 include/bootsource.h | 4 2 files changed, 8 insertions(+) diff --git a/common/bootsource.c b/common/bootsource.c index 7367215..7f3d51f 100644 --- a/common/bootsource.c +++ b/common/bootsource.c @@ -27,10 +27,14 @@ static

[PATCH v2 4/7] bootsource: add support for bootsource instance information

2013-04-03 Thread Marc Kleine-Budde
Add a C interface to set and get the bootsource instance: int bootsource_get_instance(void); void bootsource_set_instance(int instance); Also export the shell variable "bootsource_instance". Signed-off-by: Marc Kleine-Budde Signed-off-by: Sascha Hauer --- common/bootsour

[PATCH v2 1/7] ARM: i.MX: rename barebox_loc to bootsource

2013-04-03 Thread Marc Kleine-Budde
stage loader. Signed-off-by: Sascha Hauer Signed-off-by: Marc Kleine-Budde --- arch/arm/boards/efika-mx-smartbook/env/init/bootsource | 2 +- arch/arm/mach-imx/boot.c | 8 arch/arm/mach-imx/imx51.c | 2 +- 3 files changed, 6

  1   2   3   4   >