Hello Sam,
On 08/21/2018 09:46 PM, Sam Ravnborg wrote:
> But macb.txt or the general bindigns do not mention
> a mdio child.
> And the Linux macb_main.c do not support a "mdio" node either.
> So my best guess is that the "mdio" support in macb was accidently
> ported over from fec-imx when adding
From: Ahmad Fatoum
For use in PBL, import dbgu init code from:
https://github.com/linux4sam/at91bootstrap/blob/v3.8.12/driver/at91_usart.c
Signed-off-by: Ahmad Fatoum
---
arch/arm/mach-at91/include/mach/at91_dbgu.h | 57 -
1 file changed, 56 insertions(+), 1 deletion
binaries.
Signed-off-by: Ahmad Fatoum
---
arch/arm/boards/at91sam9m10g45ek/lowlevel.c | 2 +-
arch/arm/boards/at91sam9m10ihd/lowlevel.c | 2 +-
arch/arm/boards/at91sam9n12ek/lowlevel.c | 2 +-
arch/arm/boards/at91sam9x5ek/lowlevel.c | 2 +-
arch/arm/boards/pm9g45/lowlevel.c
The file was added along with the sama5d3 support, but never used,
so remove it.
Signed-off-by: Ahmad Fatoum
---
arch/arm/mach-at91/include/mach/sama5d3_matrix.h | 15 ---
1 file changed, 15 deletions(-)
delete mode 100644 arch/arm/mach-at91/include/mach/sama5d3_matrix.h
diff
This patch series imports the necessary infrastructure out of the
at91bootstrap project to support first stage usage on the SAMA5.
This is leveraged to implement first stage boot on the SAMA5D3 based
Microchip KSZ9477-EVB.
Ahmad Fatoum (11):
ARM: at91: clk: prune never-compiled h32mx code
For use by future at91 first stage bootloaders, this commit imports
https://github.com/linux4sam/at91bootstrap/blob/v3.8.12/driver/pmc.c
to do the low level clock initialization.
Signed-off-by: Ahmad Fatoum
---
arch/arm/mach-at91/Makefile | 1 +
.../include/mach
This imports
https://github.com/linux4sam/at91bootstrap/blob/v3.8.12/board/sama5d3_xplained/sama5d3_xplained.c
Signed-off-by: Ahmad Fatoum
---
.../boards/microchip-ksz9477-evb/lowlevel.c | 196 +-
arch/arm/mach-at91/include/mach/at91_pmc.h| 19 ++
arch/arm/mach-at91
This commit imports DDRAMC initialization routines for use in PBL from
https://github.com/linux4sam/at91bootstrap/blob/v3.8.12/driver/ddramc.c
Signed-off-by: Ahmad Fatoum
---
arch/arm/mach-at91/Makefile | 1 +
arch/arm/mach-at91/ddramc.c | 518
From: Ahmad Fatoum
We are limited to 64K in the first stage, but we still need MMC and FAT
support, so to make place, make the device tree support optional by
providing the sama5d3's board code for NAND/MMC as an alternative.
Signed-off-by: Ahmad Fatoum
---
.../arm/boards/microchip-ksz9477
Signed-off-by: Ahmad Fatoum
---
...chip_ksz9477_evb_first_stage_mmc_defconfig | 22 +++
1 file changed, 22 insertions(+)
create mode 100644
arch/arm/configs/microchip_ksz9477_evb_first_stage_mmc_defconfig
diff --git a/arch/arm/configs
For use by the incoming at91bootstrap DDRAMC initialization code,
this commit provides an early_udelay function usable in PBL imported from
https://github.com/linux4sam/at91bootstrap/blob/v3.8.12/driver/at91_pit.c
Signed-off-by: Ahmad Fatoum
---
arch/arm/mach-at91/Kconfig
Low level init code might want to disable the watchdog in PBL.
Provide a helper to do so.
Signed-off-by: Ahmad Fatoum
---
arch/arm/mach-at91/include/mach/at91_wdt.h | 16
1 file changed, 16 insertions(+)
diff --git a/arch/arm/mach-at91/include/mach/at91_wdt.h
b/arch/arm/mach
This code is conditionally compiled when CONFIG_HAVE_AT91_H32MX
is defined, which never happens as it neither has a prompt
nor does another option select it.
As no one seems to miss it till now, just remove it.
Signed-off-by: Ahmad Fatoum
---
arch/arm/mach-at91/Kconfig | 3 -
drivers/clk
On 17/1/19 09:11, Sascha Hauer wrote:
> On Wed, Jan 16, 2019 at 06:45:55PM +0100, Ahmad Fatoum wrote:
>> This commit imports DDRAMC initialization routines for use in PBL from
>> https://github.com/linux4sam/at91bootstrap/blob/v3.8.12/driver/ddramc.c
>>
>>
Hello Sam,
On 16/1/19 19:24, Sam Ravnborg wrote:
> Hi Ahmad.
>
> On Wed, Jan 16, 2019 at 06:45:51PM +0100, Ahmad Fatoum wrote:
>> Only at91sam9g45_reset.S and the header itself actually use
>> any of the macros defined within.
>>
>> Instead of adding missing defi
Hello,
On 17/1/19 09:25, Sascha Hauer wrote:
> On Wed, Jan 16, 2019 at 06:45:57PM +0100, Ahmad Fatoum wrote:
>> From: Ahmad Fatoum
>>
>> We are limited to 64K in the first stage, but we still need MMC and FAT
>> support, so to make place, make the device tree suppo
Hello Sam,
On 16/1/19 19:47, Sam Ravnborg wrote:
> Hi Ahmad.
>
> On Wed, Jan 16, 2019 at 06:45:48PM +0100, Ahmad Fatoum wrote:
>> This patch series imports the necessary infrastructure out of the
>> at91bootstrap project to support first stage usage on the SAMA5.
>
>
over
TFTP and verifying the hash is correct.
Signed-off-by: Ahmad Fatoum
---
drivers/net/fec_imx.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c
index d304b94c567b..642517de6e98 100644
--- a/drivers/net/fec_imx.c
+++ b
Linux has them in include/linux/time64.h and they are useful for
making (especially microsecond) use readable such as in read*_poll_timeout.
Signed-off-by: Ahmad Fatoum
---
include/linux/time.h | 6 ++
1 file changed, 6 insertions(+)
diff --git a/include/linux/time.h b/include/linux/time.h
Hello,
I didn't change read*_poll_timeout to take nanoseconds because it is copied
over from Linux.
On 14/12/18 16:23, Ahmad Fatoum wrote:
> read*_poll_timeout's final timeout parameter is in microseconds,
> but the supplied arguments in fec_imx.c were in nanoseconds,
> which m
Hello,
On 10/12/18 09:39, Sascha Hauer wrote:
>
> Still why do we need a device tree property when all we have to do is to
> not call of_partitions_register_fixup() for the boot partitions?
I figured current users might want to keep the current behavior, but ok,
I will send another patch that
Hello,
On 4/12/18 10:15, Ahmad Fatoum wrote:
> Cc: Lucas Stach
> Signed-off-by: Ahmad Fatoum
> ---
> arch/arm/include/asm/common.h | 6 ++
> 1 file changed, 6 insertions(+)
>
> diff --git a/arch/arm/include/asm/common.h b/arch/arm/include/asm/common.h
> index c3
From: Yao Yuan
Signed-off-by: Yuan Yao
Signed-off-by: Brian Norris
[Linux upstream commit: c887be71cc39]
Signed-off-by: Ahmad Fatoum
---
drivers/mtd/spi-nor/spi-nor.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index
upstream commit: a1d97ef96e38]
Signed-off-by: Ahmad Fatoum
---
drivers/mtd/spi-nor/spi-nor.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index d15a7954136e..48d5742d5b26 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi
Cc: Lucas Stach
Signed-off-by: Ahmad Fatoum
---
arch/arm/include/asm/common.h | 6 ++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/include/asm/common.h b/arch/arm/include/asm/common.h
index c32cdfe5ec2f..72ac988cc131 100644
--- a/arch/arm/include/asm/common.h
+++ b/arch/arm
len was int but is passed to read_file(..., size_t *size),
Fix this.
Signed-off-by: Ahmad Fatoum
---
lib/bootstrap/disk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bootstrap/disk.c b/lib/bootstrap/disk.c
index a55d5d77f4cf..fd016166e6e4 100644
--- a/lib/bootstrap
The described binding was implemented in commit 6e9a87b39
("mci: Allow to partition eMMC boot partitions").
Signed-off-by: Ahmad Fatoum
---
.../devicetree/bindings/mtd/partition.txt | 18 ++
1 file changed, 18 insertions(+)
diff --git a/Documentation/devicetre
Users can have reasons to inhibit barebox from fixing up partitions nodes
into the kernel device tree, like if it's a boot0-partitions node, which
doesn't have a kernel binding.
Allow users to specify a no-fixup property to indicate so.
Signed-off-by: Ahmad Fatoum
---
Documentation/devicetree
len isn't read afterward and of_get_property accepts NULL as third
argument, so do it.
Signed-off-by: Ahmad Fatoum
---
drivers/of/partition.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/of/partition.c b/drivers/of/partition.c
index aa6e601b7fe4
DEVFS_PARTITION_FROM_TABLE's only effect at the moment is to disable
device tree fixups. Rename it accordingly, so it looks less out-of-place
when using it in the next commit to implement the no-fixup property.
Signed-off-by: Ahmad Fatoum
---
common/partitions.c| 2 +-
drivers
Hello Sascha,
On 7/12/18 08:43, Sascha Hauer wrote:
> On Fri, Dec 07, 2018 at 07:34:37AM +0100, Ahmad Fatoum wrote:
>> Users can have reasons to inhibit barebox from fixing up partitions nodes
>> into the kernel device tree, like if it's a boot0-partitions node, which
>>
The bootN-partitions binding is barebox-specific, so it shouldn't
be fixed up into the kernel device tree.
Suggested-by: Sascha Hauer
Signed-off-by: Ahmad Fatoum
---
drivers/mci/mci-core.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/mci/mci-core.c b
ly failing with an error message whenever pblx-y
or pblx- has been defined.
Signed-off-by: Ahmad Fatoum
---
images/Makefile | 4
1 file changed, 4 insertions(+)
diff --git a/images/Makefile b/images/Makefile
index c4b2a483fbd1..c3ec498865da 100644
--- a/images/Makefile
+++ b/images/Makefile
Hello Kai,
On 4/2/19 3:22 PM, Kai Che wrote:
> Hi all,
>
> I'm trying to communicate with SPI in barebox on the MC iMX7 Sabre Board.
>
> I added the options in my barebox config:
>
> CONFIG_SPI=y
> CONFIG_CMD_SPI=y
How about CONFIG_DRIVER_SPI_IMX?
>
> But there is no SPI bus when I try to
Hello Sam,
On 2/4/19 19:38, Sam Ravnborg wrote:
> Hi Ahmad.
>
> On Mon, Apr 01, 2019 at 12:18:13PM +0200, Ahmad Fatoum wrote:
>> Low level init code might want to disable the watchdog in PBL.
>> Provide a helper to do so.
>>
>> Signed-off-by: Ahmad Fatoum
>
Hello Sam,
On 2/4/19 19:42, Sam Ravnborg wrote:
> Hi Ahmad.
>
> On Mon, Apr 01, 2019 at 12:18:14PM +0200, Ahmad Fatoum wrote:
>> For use by future at91 first stage bootloaders, this commit imports
>> https://github.com/linux4sam/at91bootstrap/blob/v3.8.12/driver/pmc.c
>&
Hi Sam,
On 2/4/19 19:25, Sam Ravnborg wrote:
> Hi Ahmad.
>
> On Mon, Apr 01, 2019 at 12:18:12PM +0200, Ahmad Fatoum wrote:
>> Instead of adding missing definitions to the existing at91sam9_ddrsdr.h
>> and adapting the incoming DDRAM initialization code from at91boots
t's what I could think of.
>
> Maybe my Chip Select Pin is broken.
>
> Kind Regards,
>
> Kai
>
>
> Von: barebox im Auftrag von Ahmad
> Fatoum
> Gesendet: Dienstag, 2. April 2019 15:47
> An: barebox@lists.infradead.org
> Betreff: Re: Issues with SPI on
Hello,
On 3/4/19 09:18, Sascha Hauer wrote:
> Indeed you can remove the #ifdefs, but wouldn't it look nicer just to
I assume you mean adding a base address parameter, but have the helper
sets the second argument? Ye, I can do that.
--
Pengutronix e.K. |
Hi,
On 2/4/19 21:18, Sam Ravnborg wrote:
> Hi Ahmad.
>
>>>
>>> If we introduced the following small helpers we could simplify the call
>>> sites
>>> to just use at91_get_ddram_size(AT91SAM9G45_BASE_DDRSDRC0) and similar.
>>>
>>> static inline u32 at91_get_ddram_size(void __force __iomem * addr)
On 1/4/19 22:12, Ahmad Fatoum wrote:
> The erratum already has a Linux workaround. On barebox, it can currently
> happen if there's an appropriate assigned-clock-parents property or the
> reparenting happens (i.e. CONFIG_DRIVER_VIDEO_IMX_IPUV3 is selected on a
> board with the aforem
Substitute the current #ifdefery in at91sam9_ddrsdr.h by
open-coding at91sam9n12_get_ddram_size wherever it was called.
Suggested-by: Sascha Hauer
Signed-off-by: Ahmad Fatoum
---
arch/arm/boards/at91sam9n12ek/lowlevel.c | 5 +++--
arch/arm/mach-at91/at91sam9n12_devices.c
Substitute the current #ifdefery in at91sam9_ddrsdr.h by
open-coding at91sam9g45_get_ddram_size wherever it was called.
Suggested-by: Sascha Hauer
Signed-off-by: Ahmad Fatoum
---
arch/arm/boards/at91sam9m10g45ek/lowlevel.c | 5 +++--
arch/arm/boards/at91sam9m10ihd/lowlevel.c | 5
Substitute the current #ifdefery in at91sam9_ddrsdr.h by
open-coding at91sam9x5_get_ddram_size wherever it was called.
Suggested-by: Sascha Hauer
Signed-off-by: Ahmad Fatoum
---
arch/arm/boards/at91sam9x5ek/lowlevel.c | 4 +++-
arch/arm/mach-at91/at91sam9x5_devices.c | 2
as well. Previously anything besides DBGU0
defaulted to DBGU1.
Fixes: 06a0773ee31 ("ARM: at91: add sama5d4 soc support #2")
Reviewed-by: Sam Ravnborg
Tested-by: Sam Ravnborg
[afa: moved base address defaults to common/Kconfig]
Signed-off-by: Ahmad Fatoum
---
arch/arm/mach-at
at91sama5_get_ddram_size call at91_get_ddram_size
with is_nb == true and remove the duplicate code.
Signed-off-by: Ahmad Fatoum
Reviewed-by: Sam Ravnborg
Tested-by: Sam Ravnborg
---
.../mach-at91/include/mach/at91sam9_ddrsdr.h | 27 ++-
1 file changed, 2 insertions(+), 25 deletions
From: Sam Ravnborg
The code that configure the stack uses sama5d3 constants.
Fix this to use the proper sama5d4 constants.
Boot tested on sama5d4_xplained.
Signed-off-by: Sam Ravnborg
---
arch/arm/boards/sama5d4_xplained/lowlevel.c | 2 +-
arch/arm/boards/sama5d4ek/lowlevel.c| 2 +-
as suggested
by Sascha in the review of the sama5d3 first stage patchset
- added patch 10 with a fix for a warning I ran into in the newly
ported clock drivers
Ahmad Fatoum (9):
ARM: at91: replace __raw_{readl,writel} of peripherals with
readl,writel
ARM: at91: debug_ll: make
loc+memcpy pair with xmemdup.
Zero-initialization of the buffer isn't necessary, because
memcpy spans the whole buffer.
Signed-off-by: Ahmad Fatoum
---
drivers/clk/at91/clk-main.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/clk/at91/clk-main.c b/drivers/clk/at91/
at91sama5_get_ddram_size the mpddrc base
address as argument and adjust call sites appropriately.
This change was not tested on a sama5d4.
Signed-off-by: Ahmad Fatoum
Reviewed-by: Sam Ravnborg
Tested-by: Sam Ravnborg
---
arch/arm/boards/sama5d3_xplained/lowlevel.c | 2 +-
arch/arm/boards/sama5d3xek
This imports the low level init code from at91bootstrap
https://github.com/linux4sam/at91bootstrap/blob/v3.8.12/board/sama5d3_xplained/sama5d3_xplained.c
Signed-off-by: Ahmad Fatoum
---
.../boards/microchip-ksz9477-evb/lowlevel.c | 208 +-
arch/arm/mach-at91/Kconfig
-by: Ahmad Fatoum
---
arch/arm/mach-at91/Kconfig | 2 +-
images/Makefile.at91 | 12 +---
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index 8e1bf0629ab7..60f427d7d483 100644
--- a/arch/arm/mach-at91/Kconfig
comprehension, the replacement is done in three steps:
Here the existing at91sam9_ddrsdr.h has its now duplicate (in function,
not name) macros removed and existing users are migrated to use the new
header.
Signed-off-by: Ahmad Fatoum
---
arch/arm/mach-at91/at91sam9g45_reset.S| 6 +-
.../mach
Signed-off-by: Ahmad Fatoum
---
.../boards/at91/microchip-ksz9477-evb.rst | 38 ++-
1 file changed, 36 insertions(+), 2 deletions(-)
diff --git a/Documentation/boards/at91/microchip-ksz9477-evb.rst
b/Documentation/boards/at91/microchip-ksz9477-evb.rst
index 4c4c4aecbfb3
This commit imports DDRAMC initialization routines for use in PBL from
https://github.com/linux4sam/at91bootstrap/blob/v3.8.12/driver/ddramc.c
Signed-off-by: Ahmad Fatoum
---
arch/arm/mach-at91/Makefile | 1 +
arch/arm/mach-at91/ddramc.c | 507
-bin.dts device tree
for first stage, which can be further stripped in future commits.
Signed-off-by: Ahmad Fatoum
---
LICENSES/other/X11| 28 +++
arch/arm/dts/Makefile | 4 ++-
.../at91-microchip-ksz9477-evb-boot-bin.dts | 13
For use by future at91 first stage bootloaders, this commit imports
https://github.com/linux4sam/at91bootstrap/blob/v3.8.12/driver/pmc.c
Signed-off-by: Ahmad Fatoum
---
arch/arm/mach-at91/Makefile | 1 +
arch/arm/mach-at91/at91_pmc_ll.c | 184
sama5d2 was added along with the update to the upstream
device tree bindings, but wasn't wired in anywhere.
To prepare for usage in future sama5d2 support, fix
compilation errors related to absence of locks and
unavailability of audio/i2s clock/pll handling.
Signed-off-by: Ahmad Fatoum
comprehension, the replacement is done in three steps:
This last step copies the memory size querying functions from at91sam9_ddrsdr.h
to at91_ddrsdrc.h, then deletes it and fixes all references.
Signed-off-by: Ahmad Fatoum
---
arch/arm/boards/at91sam9m10g45ek/lowlevel.c | 2 +-
arch/arm/boards
For use by the incoming at91bootstrap DDRAMC initialization code,
this commit provides an early_udelay function usable in PBL imported from
https://github.com/linux4sam/at91bootstrap/blob/v3.8.12/driver/at91_pit.c
Signed-off-by: Ahmad Fatoum
---
arch/arm/mach-at91/Makefile
Incoming sama5d3 bootstrap code has been ported from the at91bootstrap
project and is licensed under a 1-clause BSD license. To remove
boilerplate legal text there, place the license at a fixed location
and only note SPDX-License-Identifier and Copyright in the source files.
Signed-off-by: Ahmad
ee support in the
first stage was fixed, this commit could be reverted for full device
tree goodness.
The board code is a stripped down version of the sama5d3_xplained board's.
Signed-off-by: Ahmad Fatoum
---
.../arm/boards/microchip-ksz9477-evb/Makefile | 3 +
arch/arm/boards/microchip-ksz9477-evb/boa
From: Ahmad Fatoum
For use in PBL, import dbgu init code from:
https://github.com/linux4sam/at91bootstrap/blob/v3.8.12/driver/at91_usart.c
Signed-off-by: Ahmad Fatoum
---
arch/arm/mach-at91/include/mach/at91_dbgu.h | 57 -
1 file changed, 56 insertions(+), 1 deletion
This saves about 25K, which could be useful to fit
the incoming first stage board support into the SRAM's 64K.
Signed-off-by: Ahmad Fatoum
---
arch/arm/boards/microchip-ksz9477-evb/lowlevel.c | 4 ++--
arch/arm/mach-at91/Kconfig | 1 +
2 files changed, 3 insertions(+), 2
tree based first stage
- added documentation as suggested by Sam
- changed NAND partition layout in board code as suggested by Sascha
- stylistic fixes here and there
Ahmad Fatoum (15):
LICENSES: add BSD-1-Clause license
ARM: at91: import at91bootstrap's at91_ddrsdrc.h
ARM: at91:
Low level init code might want to disable the watchdog in PBL.
Provide a helper to do so.
Signed-off-by: Ahmad Fatoum
---
arch/arm/mach-at91/include/mach/at91_wdt.h | 16
1 file changed, 16 insertions(+)
diff --git a/arch/arm/mach-at91/include/mach/at91_wdt.h
b/arch/arm/mach
comprehension, the replacement is done in three steps:
Here the header is imported.
Signed-off-by: Ahmad Fatoum
---
.../arm/mach-at91/include/mach/at91_ddrsdrc.h | 288 ++
1 file changed, 288 insertions(+)
create mode 100644 arch/arm/mach-at91/include/mach/at91_ddrsdrc.h
diff --git
On 4/1/19 2:37 PM, Roland Hieber wrote:
> On Mon, Apr 01, 2019 at 12:18:21PM +0200, Ahmad Fatoum wrote:
>> This imports the low level init code from at91bootstrap
>> https://github.com/linux4sam/at91bootstrap/blob/v3.8.12/board/sama5d3_xplained/sama5d3_xplained.c
>>
>>
d from reset value: 0
This warning is safe to ignore.
Cc: Andrey Smirnov
Cc: Raphael Poggi
Cc: Sascha Hauer
Cc: Lucas Stach
Cc: Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Ahmad Fatoum
---
drivers/clk/imx/clk-imx6.c | 19 ---
1 file changed, 19 deletions(-)
diff --git a/
for the LDB DI
clock.
Signed-off-by: Philipp Zabel
Signed-off-by: Fabio Estevam
Signed-off-by: Shawn Guo
[afa: ported to barebox from Linux commit f13abeff2c]
[afa: moved call site to where it would've been moved in following commit]
Signed-off-by: Ahmad Fatoum
---
drivers/clk/imx/clk-imx6.c | 16
boot could be added to the
kernel or bootloader.
Signed-off-by: Philipp Zabel
Signed-off-by: Fabio Estevam
Signed-off-by: Shawn Guo
[afa: ported from Linux kernel commit 03d576f202]
[afa: added exception for i.MX6QP, see kernel commit f4a0a6c309]
Signed-off-by: Ahmad Fatoum
---
drivers/clk/imx
On 1/4/19 22:15, Ahmad Fatoum wrote:
Argh. This is RFC PATCH 6/6.. Missed the prefix.
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone
t;):
http://www.nxp.com/files/32bit/doc/eng_bulletin/EB821.pdf
Ahmad Fatoum (3):
clk: imx6: provide helper to check if video PLL post dividers work
clk: imx6: define an enum for ldb mux inputs
clk: imx6: remove quirky clk_set_parent(LDB_diN_sel, pll5_video_div)
Fabio Estevam (1):
clk: imx6: Fix p
283b0838]
[afa: maintained reparenting for imx6qp revision >1.0 as before]
Signed-off-by: Ahmad Fatoum
---
drivers/clk/imx/clk-imx6.c | 292 -
1 file changed, 284 insertions(+), 8 deletions(-)
diff --git a/drivers/clk/imx/clk-imx6.c b/drivers/clk/imx/cl
For better readability should this code be reviewed
in future, replace the hardcoded input numbers
with an enum.
This is just a cosmetic change and was verified
to not affect clk-imx6.o.
Signed-off-by: Ahmad Fatoum
---
drivers/clk/imx/clk-imx6.c | 41 +++---
1
))
== !((rev1.0 && (mx6q || mx6d)) || (rev1.0 && (mx6s || mx6qp || mx6dp)))
== (!(rev1.0 && (mx6q || mx6d)) && !(rev1.0 && (mx6s || mx6qp || mx6dp)))
== cpu_has_working_video_pll_post_div() && !(rev1.0 && (mx6s || mx6qp || mx6dp))
Signed-off-by:
cpy pair with xmemdup.
Zero-initialization of the buffer isn't necessary, because
memcpy spans the whole buffer.
Suggested-by: Sam Ravnborg
Signed-off-by: Ahmad Fatoum
---
drivers/clk/at91/clk-generated.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/clk/at91/
Hello Sam,
On 1/4/19 22:48, Sam Ravnborg wrote:
> Hi Ahmad.
>
> On Mon, Apr 01, 2019 at 11:31:06AM +0200, Ahmad Fatoum wrote:
>> compiling clk-main.c results in:
>>
>> warning: passing argument 1 of 'memcpy' discards 'const' qualifier from
>> pointer ta
Fix builds in various configs
> - Reworked Kconfig changes
> - Fix checkpatch warnings (mostly whitespace)
>
> v1:
> - Posted to mailing list as a WIP patch
>
> Sam
>
>
> Ahmad Fatoum (2):
> regmap: Implement syscon_regmap_lookup_by_comp
Hello Sascha,
On 20/2/19 08:55, Sascha Hauer wrote:
> On Tue, Feb 19, 2019 at 10:10:02PM +0100, Ahmad Fatoum wrote:
>> Hello Sam,
>>
>> On 19/2/19 21:42, Sam Ravnborg wrote:
>>> Hi Ahmad.
>>>
>>> On Tue, Feb 19, 2019 at 01:06:10PM +0100, Ahm
Hello Sam,
On 24/2/19 13:35, Sam Ravnborg wrote:
> Hi Ahmad.
>
> On Tue, Feb 19, 2019 at 01:06:12PM +0100, Ahmad Fatoum wrote:
>> Both at91_get_ddram_size and at91sama5_get_ddram_size are the
>> same if is_sdram == false and is_nb == true.
>>
>> is_sdram i
Hello,
On 22/2/19 14:33, Roland Hieber wrote:
> On Tue, Feb 19, 2019 at 06:21:36PM +0100, Ahmad Fatoum wrote:
>> Instead of adding missing definitions to the existing at91sam9_ddrsdr.h
>> and adapting the incoming DDRAM initialization code from at91bootstrap,
>> just rep
On 22/2/19 14:45, Roland Hieber wrote:
> Hi Ahmad,
>
> On Tue, Feb 19, 2019 at 06:21:48PM +0100, Ahmad Fatoum wrote:
>> This imports the low level init code from at91bootstrap
>> https://github.com/linux4sam/at91bootstrap/blob/v3.8.12/board/sama5d3_xplained/sama5d3_xpla
Hello,
On 26/2/19 10:10, Ahmad Fatoum wrote:
> Thanks for the review!
> Sascha, if the series is otherwise ok, could you apply Sam's patch followed
> by mine as suggested? Thanks.
>
While talking the series over with sha, I spotted a typo in debug_ll.h.
I will prepare a v2 and s
Hello Antony,
On 20/2/19 08:14, Antony Pavlov wrote:
> On Tue, 19 Feb 2019 15:16:47 +0100
> Ahmad Fatoum wrote:
>
>> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
>> index 4e17347a8481..48b39fbf962a 100755
>> --- a/scripts/checkpatch.pl
>
Hello,
On 19/2/19 13:10, Ahmad Fatoum wrote:
> For platforms such as the at91, the boot ROM imposes an upper limit
> on barebox file size. Prior to 5a1a5ed253 ("ARM: images: use piggydata"),
> BAREBOX_MAX_PBLX_SIZE seems to have been the way to go for limiting
> the siz
Hello Sam,
On 18/2/19 20:47, Sam Ravnborg wrote:
> Based on kernel 5.0-rc6 update at91 clk support
> to match the new PMC bindings.
>
> Manually added all changes done in the kernel from 4.9-rc3
> to 5.0-rc6.
> New drivers required was added as seperate commits.
>
> The kernel has a dt-compat
On 19/2/19 11:04, Sam Ravnborg wrote:
> Hi Ahmad.
>
> On Tue, Feb 19, 2019 at 08:52:39AM +0100, Ahmad Fatoum wrote:
>> As the sama5d3 based microchip-ksz9477-evb board still uses the old
>> bindings, the dt-compat.c code is ported as well. This can be removed
>> whe
As the sama5d3 based microchip-ksz9477-evb board still uses the old
bindings, the dt-compat.c code is ported as well. This can be removed
when all in-kernel at91 boards have been ported to the new bindings.
Signed-off-by: Ahmad Fatoum
---
drivers/clk/at91/Makefile| 2 +-
drivers/clk/at91
Implement syscon_regmap_lookup_by_compatible() to simplify porting kernel code.
Signed-off-by: Ahmad Fatoum
---
Forgot to send this one first. Should be applied prior to the fixed up commit.
drivers/mfd/syscon.c | 14 ++
include/mfd/syscon.h | 5 +
2 files changed, 19
Hello Patrick,
On 2/21/19 11:01 AM, Patrick Schneider wrote:
> Hi guys,
> I'm trying to find out if the following is possible:
> In a production environment, there is only the USB connection present, no
> console access to the device.
> The USB serial downloader mode starts and I am able to
at91sama5_get_ddram_size call at91_get_ddram_size
with is_nb == true and remove the duplicate code.
Signed-off-by: Ahmad Fatoum
---
.../mach-at91/include/mach/at91sam9_ddrsdr.h | 27 ++-
1 file changed, 2 insertions(+), 25 deletions(-)
diff --git a/arch/arm/mach-at91/include/mach
3ffa97f4 ("rename U-Boot-v2 project to barebox")
Signed-off-by: Ahmad Fatoum
---
COPYING | 300 +---
LICENSES/exceptions/.gitignore | 0
LICENSES/other/.gitignore | 0
LICENSES/preferred/BSD-3-Clause | 36
/{+$1/; s/-\]\{\+/+}{+/;' \
-e 's/(\{\+.*?\+\})\1/__ALL_IS_WELL__/' | grep '+}{+'
which filters out the common case of lines where a single
__raw_{readT,writeT} had its __raw_ prefix stripped without any
further changes.
Signed-off-by: Ahmad Fatoum
---
arch/arm/boards/at91rm9200ek
as well. Previously anything besides DBGU0
defaulted to DBGU1.
Fixes: 06a0773ee31 ("ARM: at91: add sama5d4 soc support #2")
Signed-off-by: Ahmad Fatoum
---
arch/arm/mach-at91/Kconfig | 23 +++---
arch/arm/mach-at91/include/mach/debug_ll.h | 12 +++--
at91sama5_get_ddram_size the mpddrc base
address as argument and adjust call sites appropriately.
This change was not tested on a sama5d4.
Signed-off-by: Ahmad Fatoum
---
arch/arm/boards/sama5d3_xplained/lowlevel.c | 2 +-
arch/arm/boards/sama5d3xek/lowlevel.c | 2 +-
arch/arm/boards
v4 as well.
Cheers
Ahmad
Ahmad Fatoum (4):
ARM: at91: replace __raw_{readl,writel} of peripherals with
readl,writel
ARM: at91: debug_ll: make UART base address configurable
ARM: at91: fix at91sama5_get_ddram_size for sama5d4
ARM: at91: remove duplicate get_ddram_size code
arch/arm/boards/at
On 19/2/19 13:10, Ahmad Fatoum wrote:
> 5a1a5ed253 ("ARM: images: use piggydata")
Should've added a Fixes: 5a1a5ed253 ("ARM: images: use piggydata") as well.
--
Pengutronix e.K. | |
Industrial Linux Solutions
Changes since v1:
- fixed grep pipeline in commit message
- removed u-boot jumptable exception as suggested by Sascha
- added follow-up commit with updated checkpatch.pl as suggested by Sam
- added empty exceptions/ and other/ directories
Ahmad Fatoum (2):
LICENSES: adopt Linux-like LICENSES
it can be used to update the scripts/dtc directory. To do so, run
the script while its directory is otherwise empty.
Signed-off-by: Ahmad Fatoum
---
scripts/dtc/update-dtc-source.sh | 23 +++
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/scripts/dtc/update
1 - 100 of 5927 matches
Mail list logo