The common.c file content can be safely moved to spl.c file after
performing the DM/DTS conversion for the U-Boot proper.
It contains the non DM/DTS setup code, which now is only used by SPL.
Signed-off-by: Lukasz Majewski
---
board/liebherr/display5/Makefile | 4 +-
board/liebherr/display5
This commit ports from Linux kernel - tag: v5.1 - the device tree
description for display5 board.
Signed-off-by: Lukasz Majewski
---
arch/arm/dts/imx6q-display5.dts | 352
1 file changed, 352 insertions(+)
diff --git a/arch/arm/dts/imx6q-display5.dts b
Porting more DTS code from Linux kernel for display5 board required
increase of pre-relocation malloc pool size in U-Boot proper.
The early malloc memory is necessary for handling parsing and setup of
e.g. serial port device (and all its ancestors in DT tree).
Signed-off-by: Lukasz Majewski
Add missing parenthesis to the GPIO_TO_PORT macro.
Signed-off-by: Lukasz Majewski
---
drivers/gpio/mxc_gpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c
index 8bd30c75b2..64ab7a303f 100644
--- a/drivers/gpio/mxc_gpio.c
lied on top of u-boot/master branch
SHA1: 6d277fb0ed145f82dd50cc6e99d2fa553a588c3b
Lukasz Majewski (11):
cosmetic: display5: Remove not needed comments
cosmetic: Update comment in cmd/eeprom.c
ARM: display5: Fix CS check after moving some SPI related CONFIGs to
Kconfig
gpio: Add missing parenthesis to the GPIO_
This commit just corrects spelling of 'accessed' word in the EEPROM
comment.
Signed-off-by: Lukasz Majewski
---
cmd/eeprom.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/eeprom.c b/cmd/eeprom.c
index 7b1f81477f..19953df082 100644
--- a/cmd/eeprom.c
+++ b/cmd/eeprom.c
Some comments are not needed anymore after Kconfig automated conversion.
Signed-off-by: Lukasz Majewski
---
include/configs/display5.h | 5 -
1 file changed, 5 deletions(-)
diff --git a/include/configs/display5.h b/include/configs/display5.h
index 5e982b8d27..5dbe5b8528 100644
int "Maximum size of SPL image"
> depends on SPL
> + default 69632 if ARCH_MX6
> default 0
> help
> Specifies the maximum length of the U-Boot SPL image.
Reviewed-by: Lukasz Majewski
Best regards,
Lukasz Majewski
--
DENX Software E
Hi Marek,
> On 6/6/19 10:16 AM, Lukasz Majewski wrote:
> > On Thu, 6 Jun 2019 10:08:04 +0200
> > Marek Vasut wrote:
> >
> >> On 6/6/19 10:00 AM, Lukasz Majewski wrote:
> >>> On Thu, 6 Jun 2019 09:26:04 +0200
> >>> Marek Vasut wrote
On Thu, 6 Jun 2019 10:23:06 +0200
Marek Vasut wrote:
> On 6/6/19 10:16 AM, Lukasz Majewski wrote:
> > On Thu, 6 Jun 2019 10:08:04 +0200
> > Marek Vasut wrote:
> >
> >> On 6/6/19 10:00 AM, Lukasz Majewski wrote:
> >>> On Thu, 6 Jun 20
On Thu, 6 Jun 2019 10:08:04 +0200
Marek Vasut wrote:
> On 6/6/19 10:00 AM, Lukasz Majewski wrote:
> > On Thu, 6 Jun 2019 09:26:04 +0200
> > Marek Vasut wrote:
> >
> >> On 6/6/19 9:09 AM, Lukasz Majewski wrote:
> >>> On Wed, 5 Jun 2019 1
On Thu, 6 Jun 2019 09:26:04 +0200
Marek Vasut wrote:
> On 6/6/19 9:09 AM, Lukasz Majewski wrote:
> > On Wed, 5 Jun 2019 18:24:11 +0200
> > Lukasz Majewski wrote:
> >
> >> Hi Marek,
> >>
> >>> On Sun, 12 May 2019 23:34:52 +0
On Wed, 5 Jun 2019 18:24:11 +0200
Lukasz Majewski wrote:
> Hi Marek,
>
> > On Sun, 12 May 2019 23:34:52 +0200
> > Marek Vasut wrote:
> >
> > > Use CONFIG_IS_ENABLED(WDT) to permit use of WDT in SPL without DM,
> > > while the full U-Boot can use
adictory
> > with my opinions in the secure boot thread going on currently on
> > the Linaro Boot Architecture list). Yes, it would and IMHO is
> > better when we use free and open software to solve our problems
> > (and an aside to the RISC-V folks as this is yet another
e *watchdog_dev;
> > #endif
> > } gd_t;
> > diff --git a/include/wdt.h b/include/wdt.h
> > index aa77d3e9b4..5bcff24ab3 100644
> > --- a/include/wdt.h
> > +++ b/include/wdt.h
> > @@ -106,7 +106,7 @@ struct wdt_ops {
> > int (*expire_now)(struct udev
t; > select SYS_FSL_SEC_COMPAT_4
> > select SYS_FSL_SEC_LE
> > @@ -818,6 +824,8 @@ config ARCH_MX5
> > bool "Freescale MX5"
> > select BOARD_EARLY_INIT_F
> > select CPU_V7A
> > + select PINCTRL if DM
> > + select
Hi Sjoerd,
> On Wed, 2019-06-05 at 11:40 +0200, Lukasz Majewski wrote:
> > Hi Fabio, Sjoerd
> >
> > > On Tue, Jun 4, 2019 at 5:41 PM Sjoerd Simons
> > > wrote:
> > >
> > > > Small steps right; Ooi what imx_usb_loader
> > > &
o ./imx_usb SPL
>
> and then
>
> sudo ./imx_usb u-boot-dtb.img
>
> I suggest you to try U-Boot 2019.01 on a mx6sabreauto first.
>
Tested-by: Lukasz Majewski
Test HW: i.MX6Q Display5 factory setup.
However, one thing puzzles me - the VID / PID used.When I run uuu
(mfgto
need to find a way to insert IVT in
> the FIT image.
>
> Tested with UUU and it worked, so this is progress :-)
>
> Tested-by: Fabio Estevam
>
> Thanks
> _______
> U-Boot mailing list
> U-Boot@lists.denx.de
> https://lists.denx.de/listi
} gd_t;
> diff --git a/include/wdt.h b/include/wdt.h
> index aa77d3e9b4..5bcff24ab3 100644
> --- a/include/wdt.h
> +++ b/include/wdt.h
> @@ -106,7 +106,7 @@ struct wdt_ops {
> int (*expire_now)(struct udevice *dev, ulong flags);
> };
>
> -#if defined(CONFIG
= imx_wdt_start,
> + .reset = imx_wdt_reset,
> + .expire_now = imx_wdt_expire_now,
> +};
> +
> +static const struct udevice_id imx_wdt_ids[] = {
> + { .compatible = "fsl,imx21-wdt" },
> + {}
> +};
> +
> +U_BOOT_DR
ice tree
description (OF_CONTROL). In such case the aforementioned
U_BOOT_DEVICE(mxc_serial) definition is used.
Other boards/SoCs have this flag set unconditionally for serial driver.
Signed-off-by: Lukasz Majewski
---
drivers/serial/serial_mxc.c | 2 --
1 file changed, 2 deletions(-)
diff --
| 20 ++-
> include/fdt_support.h | 24
> include/remoteproc.h | 146 +--
> test/dm/remoteproc.c | 122
> test/dm/test-fdt.c| 12 ++ 20 files changed, 743
> insertions(+), 42
On Tue, 4 Jun 2019 07:59:44 +
Chuanhua Han wrote:
> > -Original Message-
> > From: Lukasz Majewski
> > Sent: 2019年6月4日 15:56
> > To: Chuanhua Han
> > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li
> > Subject: Re: [EXT] Re: [U-B
On Tue, 4 Jun 2019 06:48:59 +
Chuanhua Han wrote:
> > -Original Message-
> > From: Lukasz Majewski
> > Sent: 2019年6月4日 14:46
> > To: Chuanhua Han
> > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li
> > Subject: Re: [EXT] Re: [U-B
On Tue, 4 Jun 2019 02:20:49 +
Chuanhua Han wrote:
> > -Original Message-
> > From: Lukasz Majewski
> > Sent: 2019年6月4日 6:08
> > To: Chuanhua Han
> > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li
> > Subject: [EXT] Re: [U-Boot] [PATCH 1/2] d
te */
Aren't those two above flags describe exactly what you need? They send
address for each read/written byte. (or do you need to send more than a
single byte)?
> DM_I2C_CHIP_RD_NO_I2C_SETUP_OFFSET = 1 << 3,
> /* No i2c_setup_offset*/ };
>
> struct udevice;
Bes
Hi Sjoerd,
> From: Frieder Schrempf
>
> Add support for loading u-boot FIT images over the USB SPD protocol in
> the SPL
>
> [Small fixes to build]
> Signed-off-by: Sjoerd Simons
Reviewed-by: Lukasz Majewski
> ---
>
> common/spl/spl_sdp.c | 11 ++
o
>
> common/spl/spl_sdp.c | 11 +++--
> configs/mx6sabreauto_defconfig | 8 +--
> drivers/usb/gadget/f_sdp.c | 41
> +++++- include/sdp.h |
> 4 +++- 4 files changed, 53 insertions(+), 11 deletions(-)
>
Best regards,
Lukasz Majew
/11] clk: Port Linux common clock
> > framework [CCF] to U-boot (tag: 5.0-rc3)
> >
> > Hi Lukasz,
> >
> > On Tue, 21 May 2019 at 08:48, Lukasz Majewski
> > wrote:
> > >
> > > Hi Simon,
> > >
> > > > Hi Lukasz
defconfig | 2 +-
> drivers/mmc/Kconfig | 10 +-
> drivers/mmc/Makefile | 1 +
> drivers/mmc/fsl_esdhc.c | 586
> +- drivers/mmc/{fsl_esdhc.c => fsl_esdhc_imx.c} |
>
@ -1654,7 +1567,6 @@ static const struct udevice_id fsl_esdhc_ids[]
> = { { .compatible = "fsl,imx6q-usdhc", },
> { .compatible = "fsl,imx7d-usdhc", .data =
> (ulong)_imx7d_data,}, { .compatible = "fsl,imx7ulp-usdhc", },
> - { .compatible = "
- { .compatible = "fsl,imx53-esdhc", },
> - { .compatible = "fsl,imx6ul-usdhc", },
> - { .compatible = "fsl,imx6sx-usdhc", },
> - { .compatible = "fsl,imx6sl-usdhc", },
> - { .compatible = "fsl,imx6q-usdhc", },
> -
On Tue, 21 May 2019 08:52:23 +
"Y.b. Lu" wrote:
> Converted to use fsl_esdhc_imx for i.MX platforms.
>
> Signed-off-by: Yangbo Lu
> ---
> Changes for v2:
> - Rebased.
> Changes for v3:
> - Rebased.
> ---
> arch/arm/cpu/arm1136/mx35/generic.c | 10 +-
>
ne int fsl_esdhc_mmc_init(bd_t *bis) { return -ENOSYS; }
> static inline void fdt_fixup_esdhc(void *blob, bd_t *bd) {}
> -#endif /* CONFIG_FSL_ESDHC */
> +#endif /* CONFIG_FSL_ESDHC_IMX */
> void __noreturn mmc_boot(void);
> void mmc_spl_load_image(uint32_t offs, unsigned int siz
On Tue, 21 May 2019 08:51:42 +
"Y.b. Lu" wrote:
> Moved CONFIG_FSL_ESDHC from header files to defconfig files.
>
> Signed-off-by: Yangbo Lu
> ---
> Changes for v2:
> - Rebased.
> Changes for v3:
> - Rebased.
Reviewed-by:
| 2 +-
> drivers/mmc/Kconfig | 6 +
> drivers/mmc/Makefile | 1 +
> drivers/mmc/fsl_esdhc.c | 609
> +- drivers/mmc/{fsl_esdhc.c => fsl_esdhc_imx.c} |
> 101 +-- include/confi
Hi Tom,
> On Sun, May 26, 2019 at 01:46:53PM +0200, Lukasz Majewski wrote:
> > Hi Tom,
> >
> > > On Sun, May 26, 2019 at 10:22:00AM +0200, Lukasz Majewski wrote:
> > > > Dear Marek, Tom,
> > > >
> > > > > On 5/26/19 1:23 AM
Hi Tom,
> On Sun, May 26, 2019 at 10:22:00AM +0200, Lukasz Majewski wrote:
> > Dear Marek, Tom,
> >
> > > On 5/26/19 1:23 AM, Tom Rini wrote:
> > > > On Sun, May 26, 2019 at 01:20:34AM +0200, Marek Vasut wrote:
> > > >> On 5/26/19 1:
a couple of wandboards, those
> are no as well.
>
> But I do not want to see useful functionality removed from SPL only to
> make space for useless DM/DT bloat. Temporarily band-aiding this real
> problem by removing functionality is a no-go, no matter how you slice
> it. The real fix
t PINCTRL if DM
> + select PINCTRL_IMX6 if DM
> select SYS_FSL_HAS_SEC if SECURE_BOOT
> select SYS_FSL_SEC_COMPAT_4
> select SYS_FSL_SEC_LE
> @@ -818,6 +824,8 @@ config ARCH_MX5
> bool "Freescale MX5"
> select BOARD_EARLY_INIT_F
> select
action */
> + temp = readb(base + (I2CR << reg_shift));
> + temp |= I2CR_MSTA;
> + writeb(temp, base + (I2CR << reg_shift));
> +
> + ret = wait_for_sr_state(i2c_bus,
> ST_BUS_BUSY);
>
scite_dart6ul_defconfig | 2 +-
> > configs/vf610twr_defconfig| 2 +-
> > configs/vf610twr_nand_defconfig | 2 +-
> > configs/vining_2000_defconfig | 2 +-
> > configs/wandboard_defconfig
Hi Heiko,
> Hello Chuanhua Han,
>
> Am 22.05.2019 um 14:45 schrieb Chuanhua Han:
> >
> >
> >> -Original Message-----
> >> From: Lukasz Majewski
> >> Sent: 2019年5月22日 19:32
> >> To: Chuanhua Han
> >> Cc: h...@denx.de
On Wed, 22 May 2019 09:31:35 +
Chuanhua Han wrote:
> > -Original Message-
> > From: Lukasz Majewski
> > Sent: 2019年5月22日 16:41
> > To: Chuanhua Han
> > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li ;
> > s...@chromium.org; Stefano Babic
&g
Hi Chuanhua,
> > -Original Message-
> > From: Lukasz Majewski
> > Sent: 2019年5月22日 15:16
> > To: Chuanhua Han
> > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li ;
> > s...@chromium.org
> > Subject: [EXT] Re: [PATCH] i2c: pcf2127: fix bug tha
ly generating a container image is simpler,
> because we already have SPL been wrapped into container format.
>
I just wanted to understand the issue and help to get the simplest
possible solution.
> Thanks,
> Peng.
>
> >
> > >
> > > So in vendor tree, uboot/atf/opte
127_rtc_ids[]
> = { U_BOOT_DRIVER(rtc_pcf2127) = {
> .name = "rtc-pcf2127",
> .id = UCLASS_RTC,
> + .probe = pcf2127_probe,
> .of_match = pcf2127_rtc_ids,
> .ops= _rtc_ops,
> };
> diff --git a/include/i2c.h b/include/i2c.h
&g
. I do not know how Linux kernel
> itself authenticate others.
>
> Thanks,
> Peng.
>
> >
> > >
> > > Thanks,
> > > Peng.
> > > >
> > > > >
> > > > > >
> > > > > > > For authen
Hi Peng,
> Hi Lukasz,
>
> > -Original Message-
> > From: Lukasz Majewski [mailto:lu...@denx.de]
> > Sent: 2019年5月21日 16:33
> > To: Peng Fan
> > Cc: Marek Vasut ; Marek Vasut
> > ; Simon Glass ;
> > u-boot@lists.denx.de; Tien Fong Chee ;
0
> > > CONFIG_FASTBOOT_BUF_SIZE=0x1000
> > >
> > > SPL: 68608 (67 kB)
> > > Result: boots correctly
> > >
> > > I will send a v2 removing CONFIG_SPL_DM.
> >
> > So what is the real direction moving to use SPL driver, no
This commit enabled support for fitImage on mccmon6 when we
switch to DT/DTS (including falcon mode).
Signed-off-by: Lukasz Majewski
---
board/liebherr/mccmon6/spl.c | 7 ++
configs/mccmon6_nor_defconfig | 8 +-
configs/mccmon6_sd_defconfig | 6 -
include/configs/mccmon6.h
The mccmon6 has been used a "mixed" approach between SPL and
U-Boot proper sources.
This commit decoupes SPL and u-boot proper, which allows clear
distinction between those two code bases and facilitates
conversion to DM/DTS on this particular board.
Signed-off-by: Lukasz Majewski
-
After this change the SPL size has been reduced from 38K to 34K.
Signed-off-by: Lukasz Majewski
---
configs/mccmon6_nor_defconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/configs/mccmon6_nor_defconfig b/configs/mccmon6_nor_defconfig
index 62e957c0cf..ffb1025a13 100644
-by: Lukasz Majewski
---
common/spl/spl_nor.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c
index 969e319de0..de58c43101 100644
--- a/common/spl/spl_nor.c
+++ b/common/spl/spl_nor.c
@@ -48,6 +48,11 @@ static int spl_nor_load_image(struct
This commit converts mccmon6's u-boot proper (in a single commit to avoid
build breaks) to use solely DM/DTS.
The DTS description of the mccmon6 has been ported from Linux kernel
(v4.20, SHA1: 8fe28cb58bcb235034b64cbbb7550a8a43fd88be)
Signed-off-by: Lukasz Majewski
---
arch/arm/dts/Makefile
0582/
http://patchwork.ozlabs.org/patch/1100584/
http://patchwork.ozlabs.org/patch/1100583/
On top of above patches this series shall be applied.
Lukasz Majewski (5):
ARM: imx: Covnert mccmon6 to use DM/DTS in the u-boot proper
ARM: imx: Decouple mccmon6's SPL and u-boot proper code
spl: no
Hi Simon,
> Hi Lukasz,
>
> On Sun, 19 May 2019 at 15:03, Lukasz Majewski wrote:
> >
> > Hi Simon,
> >
> > > Hi Lukasz,
> > >
> > > On Sat, 18 May 2019 at 15:28, Lukasz Majewski
> > > wrote:
> > > >
> > > &g
Hi Marek,
> On 5/21/19 10:32 AM, Lukasz Majewski wrote:
> > Hi Peng,
> >
> >>> Subject: Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX
> >>> container format file
> >>>
> >>> On 5/21/19 4:55 AM, Peng Fan wrote:
> >
| 1 +
> test/dm/nop.c | 73 +
> 47 files changed, 421 insertions(+), 253 deletions(-) create mode
> 100644 arch/arm/dts/keystone-k2l-evm-u-boot.dtsi delete mode 100644
> drivers/usb/host/xhci-zynqmp.c rename {drivers/usb/host =&g
On Tue, 21 May 2019 11:13:52 +0200
Eugeniu Rosca wrote:
> Hi Lukasz,
>
> On Tue, May 21, 2019 at 10:02:34AM +0100, Alex Kiernan wrote:
> > On Tue, May 21, 2019 at 9:37 AM Lukasz Majewski
> > wrote:
> > >
> > > Hi Alex,
> > >
>
pport setting default values for u-boot (as there
is now separate library used for it). Moreover there is OE/Yocto's
recipe 'u-boot-fw-utils' which can be easily used and installed.
> but this looks like something that might well give me a better
> interface.
>
Best regards,
Lukasz
bits if it cannot call the bootrom anymore ?
>
> sc_seco_authenticate on i.MX8 will always be available. It is
> exported by a runtime firmware running on a Cortex-M core inside
> i.MX8. The API will do authentication, its accepts container format
> image as input an
: RE: [PATCH] Revert "mmc: fsl_esdhc: fix sd/mmc ddr
> > > > > mode clock setting issue"
> > > > >
> > > > > > Subject: Re: [PATCH] Revert "mmc: fsl_esdhc: fix sd/mmc ddr
> > > > > > mode clock setting i
uot;
> > >
> > > > Subject: Re: [PATCH] Revert "mmc: fsl_esdhc: fix sd/mmc ddr mode
> > > > clock setting issue"
> > > >
> > > > On Wed, 8 May 2019 13:59:14 +
> > > > Peng Fan wrote:
> > > >
> &g
Hi Simon,
> Hi Lukasz,
>
> On Sat, 18 May 2019 at 15:28, Lukasz Majewski wrote:
> >
> > Hi Simon,
> >
> > This is not the newest patch set version of CCF (v3 vs. v4), but the
> > comments/issues apply.
> >
> > > Hi Lukasz,
> > >
&
Hi Simon,
> Hi Lukasz,
>
> On Sat, 18 May 2019 at 14:49, Lukasz Majewski wrote:
> >
> > Hi Simon,
> >
> > > kHi Lukasz,
> > >
> > > On Thu, 16 May 2019 at 16:11, Lukasz Majewski
> > > wrote:
> > > >
> > &
Hi Simon,
This is not the newest patch set version of CCF (v3 vs. v4), but the
comments/issues apply.
> Hi Lukasz,
>
> On Thu, 25 Apr 2019 at 04:30, Lukasz Majewski wrote:
> >
> > This patch series brings the files from Linux kernel to provide
> > clocks support
On Sat, 18 May 2019 10:08:36 -0600
Simon Glass wrote:
> On Thu, 16 May 2019 at 16:11, Lukasz Majewski wrote:
> >
> > This commit adds the clk_get_parent() function, which is responsible
> > for getting the parent's struct clock pointer.
> >
> > U-boo
Hi Simon,
> kHi Lukasz,
>
> On Thu, 16 May 2019 at 16:11, Lukasz Majewski wrote:
> >
> > This patch series brings the files from Linux kernel to provide
> > clocks support as it is used on the Linux kernel with common clock
> > framework [CCF] setup.
>
Hi Simon,
> Hi Lukasz,
>
> On Thu, 16 May 2019 at 16:11, Lukasz Majewski wrote:
> >
> > This commit adds the clk_get_parent_rate() function, which is
> > responsible for getting the rate of parent clock.
> > Unfortunately, u-boot's DM support for getting pa
Hi Simon,
> Hi Lukasz,
>
> On Thu, 16 May 2019 at 16:11, Lukasz Majewski wrote:
> >
> > This commit adds the clk_get_by_id() function, which is responsible
> > for getting the udevice with matching clk->id. Such approach allows
> > re-usage of inherit DM
On Fri, 17 May 2019 07:31:38 -0500
Adam Ford wrote:
> On Thu, May 16, 2019 at 9:48 PM Bin Meng wrote:
> >
> > Hi Lukasz,
> >
> > On Fri, May 17, 2019 at 6:16 AM Lukasz Majewski
> > wrote:
> > >
> > > This commit brings the files from Linux k
.
>
> > I have no idea, then. My board is REV C4, chip 1.5
>
> Mine is rev C2 with i.MX6Q rev1.2
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
;
> +}
> +#else
> +static int spl_initr_dm(void)
> +{
> + return 0;
> +}
> +#endif
> +
> void board_init_r(gd_t *dummy1, ulong dummy2)
> {
> u32 spl_boot_list[] = {
> @@ -577,6 +630,8 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
>
> debu
Hi Marek,
> On 5/17/19 12:10 AM, Lukasz Majewski wrote:
> > This commit extends the struct clk to provide information regarding
> > the clock rate.
> > As a result the clock tree traversal is performed at most once, and
> > further reads are using the cached value.
>
ook for UCLASS_CLK related udevices.
Signed-off-by: Lukasz Majewski
---
Changes in v4: None
Changes in v3:
- Replace -ENODEV with -ENOENT
- Use **clkp instead of **c
drivers/clk/clk-uclass.c | 22 ++
include/clk.h| 11 +++
2 files changed, 33 insertions(+)
d
clk.
Signed-off-by: Lukasz Majewski
---
Changes in v4: None
Changes in v3:
- New patch
arch/sandbox/include/asm/clk.h | 8
drivers/clk/clk_sandbox_test.c | 23 +++
test/dm/clk.c | 3 ++-
3 files changed, 33 insertions(+), 1 deletion(-)
diff --
this change struct clk is accessible from udevice and udevice from
struct clk.
Signed-off-by: Lukasz Majewski
---
Changes in v4:
- None
Changes in v3: None
drivers/clk/clk_fixed_rate.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk
t;set" part of the clock
management.
Signed-off-by: Lukasz Majewski
---
Changes in v4:
- Port some more Linux code to facilitate imx8 code porting (most notably
flags)
- Explicitly use container_of() based macro to provide struct clk in various
places (e.g. gate2, mux, etc)
Following p
This commit extends the struct clk to provide information regarding the
clock rate.
As a result the clock tree traversal is performed at most once, and further
reads are using the cached value.
Signed-off-by: Lukasz Majewski
---
Changes in v4:
- None
Changes in v3: None
include/clk.h | 2
ing the pointer
to proper struct clk.
It uses internally clk_get_parent() method also tested by this test.
Signed-off-by: Lukasz Majewski
---
Changes in v4: None
Changes in v3:
- New patch
arch/sandbox/include/asm/clk.h | 8
drivers/clk/clk_sandbox_test.c | 26 ++
test
this problem - the clk_get_parent_rate() function has been
introduced to clk-uclass.c.
Signed-off-by: Lukasz Majewski
---
Changes in v4: None
Changes in v3:
- The rate information is now cached into struct clk field
- The clk_get_parent() is used to get pointer to the parent struct clk
drivers/clk/clk
clk of parent the
pdev->driver_data field is read.
Signed-off-by: Lukasz Majewski
---
Changes in v4: None
Changes in v3:
- New patch
drivers/clk/clk-uclass.c | 15 +++
include/clk.h| 9 +
2 files changed, 24 insertions(+)
diff --git a/drivers/clk/clk-uclass.
-by: Lukasz Majewski
---
Changes in v4:
- New patch
Changes in v3: None
drivers/clk/clk-uclass.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c
index 6f054396e3..3dcfae85c4 100644
--- a/drivers/clk/clk-uclass.c
+++ b/drivers
This check requires the struct clk passed to .get_rate() to be always
cleared out as any clock with valid ID causes -EINVAL return value.
The return code of fixed clocks shall always be returned.
Signed-off-by: Lukasz Majewski
---
Changes in v4:
- None
Changes in v3: None
drivers/clk
There is no UCLASS_CLOCK uclass defined. Instead we do use the UCLASS_CLK.
Signed-off-by: Lukasz Majewski
Reviewed-by: Simon Glass
---
Changes in v4:
- None
Changes in v3: None
include/clk.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/clk.h b/include/clk.h
This commit extends the struct clk to provide information regarding the
flags related to this devices.
Those flags are clk device agnostic and indicate generic features
(like e.g. CLK_GET_RATE_NOCACHE - the need to always recalculate the rate).
Signed-off-by: Lukasz Majewski
---
Changes in v4
- The clk_get_parent() is used to get pointer to the parent struct clk
- Replace -ENODEV with -ENOENT
- Use **clkp instead of **c
- New patch
- New patch
Lukasz Majewski (13):
clk: doc: Add documentation entry for Common Clock Framework [CCF]
(i.MX)
dm: Fix documentation entry
This patch describes the design decisions considerations and taken approach
for porting in a separate documentation entry.
Signed-off-by: Lukasz Majewski
---
Changes in v4:
- New patch
Changes in v3: None
doc/imx/clk/ccf.txt | 83 +
1 file
x6q) has support for DM/DTS in both SPL and u-boot
proper.
The issue with this port is that it uses Common Clock Framework from
Linux and would need SPL's OF_PLATDATA support in eMMC and uart drivers
to reduce SPL size.
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH,
This commit updates the doc/README.falcon regarding Falcon boot on
NOR flash memories.
This code is used by MCCMON6 board - so for more details please refer to
configs/mccmon6_nor_defconfig.
Signed-off-by: Lukasz Majewski
---
Changes in v2:
- Fix the description
- Update the comit message
This option will provide the offset in the parallel NOR flash memory to,
which the falcon boot data is stored.
Signed-off-by: Lukasz Majewski
---
Changes in v2: None
cmd/Kconfig | 8
1 file changed, 8 insertions(+)
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 4dec190a38..b4b10cce00
The CMD_SPL_NAND_OFS description was a bit misleading, has
been updated.
Signed-off-by: Lukasz Majewski
---
Changes in v2: None
cmd/Kconfig | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 7bc275f135..4dec190a38 100644
--- a/cmd/Kconfig
This commit makes the CMD_SPL_NAND_OFS only visible when we use NAND
memory.
Before this change it was present when only CMD_SPL was enabled (and
would stay when board with other falcon boot medium is used).
Signed-off-by: Lukasz Majewski
---
Changes in v2: None
cmd/Kconfig | 1 +
1 file
This commit updates the doc/README.falcon regarding Falcon boot on
NOR flash memories.
Signed-off-by: Lukasz Majewski
---
doc/README.falcon | 3 +++
1 file changed, 3 insertions(+)
diff --git a/doc/README.falcon b/doc/README.falcon
index 9a7f0bc235..204f4b12b6 100644
--- a/doc/README.falcon
This option will provide the offset in the parallel NOR flash memory to,
which the falcon boot data is stored.
Signed-off-by: Lukasz Majewski
---
cmd/Kconfig | 8
1 file changed, 8 insertions(+)
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 4dec190a38..b4b10cce00 100644
--- a/cmd
This commit makes the CMD_SPL_NAND_OFS only visible when we use NAND
memory.
Before this change it was present when only CMD_SPL was enabled (and
would stay when board with other falcon boot medium is used).
Signed-off-by: Lukasz Majewski
---
cmd/Kconfig | 1 +
1 file changed, 1 insertion
The CMD_SPL_NAND_OFS description was a bit misleading, has
been updated.
Signed-off-by: Lukasz Majewski
---
cmd/Kconfig | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 7bc275f135..4dec190a38 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
] clk: fixed_rate: export
> > > > clk_fixed_rate
> > > >
> > > > On Wed, 8 May 2019 07:45:39 +
> > > > Peng Fan wrote:
> > > >
> > > > > > -Original Message-
> > > > > > From: Lukasz Majewski [ma
801 - 900 of 4008 matches
Mail list logo