[U-Boot] Please assign custodian for: u-boot-pmic / maintainers for: Samsung boards

2016-11-30 Thread Przemyslaw Marczak
erested to take the PMIC tree as one of your working sub-tree? Tom, if Simon accept this proposition, then can you please remove the PMIC tree from the git server? Thank you all for cooperation! Best regards, -- Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.

Re: [U-Boot] [PATCH v2] power: regulator: Add support for gpio regulators

2016-10-06 Thread Przemyslaw Marczak
ill assign it to you in patchwork, since you have already done the review. Best regards, -- Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marc...@samsung.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.d

Re: [U-Boot] [PATCH] power: regulator: Add support for gpio regulators

2016-09-15 Thread Przemyslaw Marczak
On 09/15/2016 12:34 PM, Keerthy wrote: On Thursday 15 September 2016 03:04 PM, Przemyslaw Marczak wrote: Hello Keerthy, On 09/15/2016 10:25 AM, Keerthy wrote: Add support for gpio regulators. As of now this driver caters to gpio regulators with one gpio. Supports setting voltage values to

Re: [U-Boot] [PATCH] power: regulator: Add limits checking while setting voltage and current

2016-09-15 Thread Przemyslaw Marczak
uct udevice *dev, int uV, int flag); - int (*set_current)(struct udevice *dev, int uA, int flag); and also new flag to the present defined: - REGULATOR_FLAG_FORCE = 1 << 2 This requires more work, but will provide the functionality in a proper way. Best regards, -- Przemyslaw Marczak

Re: [U-Boot] [PATCH] power: regulator: Add support for gpio regulators

2016-09-15 Thread Przemyslaw Marczak
data, + .platdata_auto_alloc_size = sizeof(struct gpio_regulator_platdata), +}; diff --git a/include/power/regulator.h b/include/power/regulator.h index 8ae6b14..5d327e6 100644 --- a/include/power/regulator.h +++ b/include/power/regulator.h @@ -108,6 +108,7 @@ enum regulator_type {

Re: [U-Boot] [PATCH v3 3/5] regulator: fixed: honour optionality of enable gpio

2016-09-15 Thread Przemyslaw Marczak
ut -EPERM? We could assume, that such operation is not permitted for this device. Best regards, -- Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marc...@samsung.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 1/5] power: regulator: Add ctrl_reg and volt_reg fields for pmic

2016-09-14 Thread Przemyslaw Marczak
Hello Keerthy, On 09/14/2016 10:24 AM, Keerthy wrote: Hi Marczak, On Wednesday 14 September 2016 01:33 PM, Przemyslaw Marczak wrote: Hello Keerthy, On 09/14/2016 06:28 AM, Keerthy wrote: The ctrl reg contains bit fields to enable and disable regulators, and volt_reg has the bit fields to

Re: [U-Boot] [PATCH 1/5] power: regulator: Add ctrl_reg and volt_reg fields for pmic

2016-09-14 Thread Przemyslaw Marczak
ze100.c:567 To store some device internal data, you can use: .platdata_auto_alloc_size -> with access by dev_get_platdata() .priv_auto_alloc_size -> with access by dev_get_priv() Best regards, -- Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electron

Re: [U-Boot] [PATCH] fdt: Do not report bad cell count when #size-cells = <0>

2016-04-14 Thread Przemyslaw Marczak
good until you don't use dev_get_addr() function to get it - because it's a different address space - non-MMIO. I didn't saw your GPIO driver, but I can assume, that you should use fdtdec_get_int() to get the GPIO register addres instead of dev_get_addr(). Please look at functi

Re: [U-Boot] [PATCH] odroid: Update README with correct firmware link and XU4 support

2016-04-07 Thread Przemyslaw Marczak
hank you for correcting this. Acked-by: Przemyslaw Marczak Best regards, -- Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marc...@samsung.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] Mainline u-boot installation on Odroid-UX4

2016-04-07 Thread Przemyslaw Marczak
Hello Shawn, On 04/07/2016 03:59 PM, Shawn Guo wrote: On Thu, Apr 07, 2016 at 12:20:06PM +0200, Przemyslaw Marczak wrote: There were two variants of boot chain with U-Boot for XU3/XU4, which differs in U-Boot size - originally U-Boot was 328K, but for the mainline we assume 1MB of size. So

Re: [U-Boot] Mainline u-boot installation on Odroid-UX4

2016-04-07 Thread Przemyslaw Marczak
_fuse/hardkernel_1mb_uboot In sd_fuse.1M.sh, you can see, that for U-Boot area we have: 2111-63 == 2048blk == 1MB. And of course change the U-Boot to mainline. Best regards, -- Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marc...@samsung.com

Re: [U-Boot] [PATCH] fdt: __of_translate_address(): check parent's 'ranges' before translate

2016-02-02 Thread Przemyslaw Marczak
Hello, On 01/29/2016 07:23 PM, Simon Glass wrote: Hi Przymyslaw, On 15 January 2016 at 09:35, Stephen Warren wrote: On 01/15/2016 03:41 AM, Przemyslaw Marczak wrote: Hello Simon, On 01/14/2016 06:17 PM, Simon Glass wrote: Hi Przemyslaw, Stephen, On 13 January 2016 at 04:10, Przemyslaw

Re: [U-Boot] [PATCH 2/2] Remove the cmd_ prefix from command files

2016-01-18 Thread Przemyslaw Marczak
o cmd/unzip.c diff --git a/cmd/cmd_usb.c b/cmd/usb.c similarity index 100% rename from cmd/cmd_usb.c rename to cmd/usb.c diff --git a/cmd/cmd_usb_mass_storage.c b/cmd/usb_mass_storage.c similarity index 100% rename from cmd/cmd_usb_mass_storage.c rename to cmd/usb_mass_storage.c diff --git a/cmd/cmd

Re: [U-Boot] [PATCH 1/2] Move all command code into its own directory

2016-01-18 Thread Przemyslaw Marczak
Hello Simon, On 01/18/2016 04:53 AM, Simon Glass wrote: There are a lot of unrelated files in common, including all of the commands. Moving them into their own directory makes them easier to find and is more logical. Some commands include non-command code, such as cmd_scsi.c. This should be sor

Re: [U-Boot] [PATCH] drivers/power/regulator/max77686.c: Don't use switch() on bools

2016-01-18 Thread Przemyslaw Marczak
Hello Tom, On 01/17/2016 03:44 AM, Tom Rini wrote: With gcc-5.3 we get a warning for using switch() on a bool type. Rewrite these sections as if/else and update the one section that was using 1/0 instead of true/false. Cc: Simon Glass Cc: Przemyslaw Marczak Signed-off-by: Tom Rini

Re: [U-Boot] [PATCH] fdt: __of_translate_address(): check parent's 'ranges' before translate

2016-01-15 Thread Przemyslaw Marczak
Hello Simon, On 01/14/2016 06:17 PM, Simon Glass wrote: Hi Przemyslaw, Stephen, On 13 January 2016 at 04:10, Przemyslaw Marczak wrote: Hello Stephen, On 01/12/2016 05:43 PM, Stephen Warren wrote: On 01/12/2016 03:25 AM, Przemyslaw Marczak wrote: Hello Stephen, On 01/11/2016 05:47 PM

Re: [U-Boot] [PATCH] fdt: __of_translate_address(): check parent's 'ranges' before translate

2016-01-13 Thread Przemyslaw Marczak
Hello Stephen, On 01/12/2016 05:43 PM, Stephen Warren wrote: On 01/12/2016 03:25 AM, Przemyslaw Marczak wrote: Hello Stephen, On 01/11/2016 05:47 PM, Stephen Warren wrote: On 01/11/2016 04:21 AM, Przemyslaw Marczak wrote: Hello Stephen, On 01/07/2016 07:25 PM, Stephen Warren wrote: On 01

[U-Boot] [PATCH 1/2] dts:exynos:update pinctrl size-cells and fix child regs

2016-01-12 Thread Przemyslaw Marczak
This change is required to avoid warnings about invalid size-cells defined in device-tree pinctrl nodes for Exynos. Tested on: - Odroid U3 - Odroid XU3 Signed-off-by: Przemyslaw Marczak Cc: Stefan Roese Cc: Tom Rini Cc: Simon Glass Cc: Stephen Warren Cc: Stephen Warren --- arch/arm/dts

[U-Boot] [PATCH 0/2] Revert changes to __of_translate_address()

2016-01-12 Thread Przemyslaw Marczak
slate_address() as a backend of dev_get_addr(), shouldn't be used for translating a non-MMIO addresses. Updating some device tree files with '#size-cells = 1' and by extending the 'reg' property by address length - fixes the problem. This applies on u-boot-dm/master: c5a7

[U-Boot] [PATCH 2/2] Revert "fdt: fix address cell count checking in fdt_translate_address()"

2016-01-12 Thread Przemyslaw Marczak
. Signed-off-by: Przemyslaw Marczak Cc: Stefan Roese Cc: Tom Rini Cc: Simon Glass Cc: Stephen Warren Cc: Stephen Warren --- common/fdt_support.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index a539389..66464db 100644

Re: [U-Boot] [PATCH] fdt: fix address cell count checking in fdt_translate_address()

2016-01-12 Thread Przemyslaw Marczak
Hello Simon, On 01/12/2016 02:59 PM, Simon Glass wrote: Hi Przemyslaw, On 12 January 2016 at 03:49, Przemyslaw Marczak wrote: Hello Simon, On 01/11/2016 05:59 PM, Simon Glass wrote: Hi Przemyslaw, On 8 January 2016 at 05:01, Przemyslaw Marczak wrote: Hello Simon, On 01/07/2016 08

Re: [U-Boot] [PATCH] fdt: __of_translate_address(): check parent's 'ranges' before translate

2016-01-12 Thread Przemyslaw Marczak
Hello Simon, On 01/12/2016 02:57 PM, Simon Glass wrote: Hi Przemyslaw, On 12 January 2016 at 03:25, Przemyslaw Marczak wrote: Hello Stephen, On 01/11/2016 05:47 PM, Stephen Warren wrote: On 01/11/2016 04:21 AM, Przemyslaw Marczak wrote: Hello Stephen, On 01/07/2016 07:25 PM, Stephen

Re: [U-Boot] [PATCH] fdt: fix address cell count checking in fdt_translate_address()

2016-01-12 Thread Przemyslaw Marczak
Hello Simon, On 01/11/2016 05:59 PM, Simon Glass wrote: Hi Przemyslaw, On 8 January 2016 at 05:01, Przemyslaw Marczak wrote: Hello Simon, On 01/07/2016 08:24 PM, Simon Glass wrote: +Stephen On 4 January 2016 at 17:59, Simon Glass wrote: Hi Przemyslaw, On 5 November 2015 at 23:47

Re: [U-Boot] [PATCH] fdt: __of_translate_address(): check parent's 'ranges' before translate

2016-01-12 Thread Przemyslaw Marczak
Hello Stephen, On 01/11/2016 05:47 PM, Stephen Warren wrote: On 01/11/2016 04:21 AM, Przemyslaw Marczak wrote: Hello Stephen, On 01/07/2016 07:25 PM, Stephen Warren wrote: On 01/07/2016 04:40 AM, Przemyslaw Marczak wrote: The present implementation of __of_translate_address() taken from the

Re: [U-Boot] [PATCH] fdt: __of_translate_address(): check parent's 'ranges' before translate

2016-01-11 Thread Przemyslaw Marczak
Hello Stephen, On 01/07/2016 07:25 PM, Stephen Warren wrote: On 01/07/2016 04:40 AM, Przemyslaw Marczak wrote: The present implementation of __of_translate_address() taken from the Linux, is designed for translate bus/child address mappings by using 'ranges' property - and it doesn&#

Re: [U-Boot] [PATCH] fdt: fix address cell count checking in fdt_translate_address()

2016-01-08 Thread Przemyslaw Marczak
Hello Simon, On 01/07/2016 08:24 PM, Simon Glass wrote: +Stephen On 4 January 2016 at 17:59, Simon Glass wrote: Hi Przemyslaw, On 5 November 2015 at 23:47, Stefan Roese wrote: On 06.11.2015 04:16, Simon Glass wrote: Hi, On 3 November 2015 at 02:57, Przemyslaw Marczak wrote: Hello

Re: [U-Boot] [PATCH] fdt: Allow fdt_translate_address() to work with buses

2016-01-07 Thread Przemyslaw Marczak
Hello, On 01/05/2016 06:26 PM, Stephen Warren wrote: On 01/05/2016 08:47 AM, Przemyslaw Marczak wrote: Hello, On 01/05/2016 02:00 AM, Simon Glass wrote: Hi Stephen, On 4 January 2016 at 13:15, Stephen Warren wrote: On 01/03/2016 04:04 PM, Simon Glass wrote: It is common for I2C and SPI

Re: [U-Boot] [PATCH] fdt: Allow fdt_translate_address() to work with buses

2016-01-05 Thread Przemyslaw Marczak
ault. So this approach doesn't seem (in effect) any better than Przemyslaw's newer series, below. Przemyslaw Marczak sent three patches to resolve this for exynos boards: https://patchwork.ozlabs.org/patch/557008/ https://patchwork.ozlabs.org/patch/557010/ https://patchwork.ozlabs.or

Re: [U-Boot] [PATCH 0/3] dm: add dev_get_reg() for getting device node's reg

2016-01-05 Thread Przemyslaw Marczak
Hello, On 01/04/2016 09:06 PM, Stephen Warren wrote: On 12/29/2015 01:47 AM, Przemyslaw Marczak wrote: Hello Stephen, On 12/16/2015 08:07 PM, Stephen Warren wrote: On 12/16/2015 11:53 AM, Stephen Warren wrote: On 12/15/2015 09:32 AM, Przemyslaw Marczak wrote: commit: dm: core: Enable

Re: [U-Boot] [PATCH 0/3] dm: add dev_get_reg() for getting device node's reg

2016-01-05 Thread Przemyslaw Marczak
Hello, On 01/04/2016 09:02 PM, Stephen Warren wrote: On 12/29/2015 01:47 AM, Przemyslaw Marczak wrote: Hello Stephen, On 12/16/2015 07:53 PM, Stephen Warren wrote: On 12/15/2015 09:32 AM, Przemyslaw Marczak wrote: commit: dm: core: Enable optional use of fdt_translate_address() enables

Re: [U-Boot] [PATCH] fdt: Allow fdt_translate_address() to work with buses

2016-01-04 Thread Przemyslaw Marczak
gpv2: gpv2 { reg = <0x060>; }; gpv4: gpv4 { reg = <0xc0>; }; }; This is clearly valid so it looks like the conversion to use fdt_translate_address() in dev_get_addr() is not currently a good m

Re: [U-Boot] [PATCH 0/3] dm: add dev_get_reg() for getting device node's reg

2015-12-29 Thread Przemyslaw Marczak
Hello Stephen, On 12/16/2015 08:07 PM, Stephen Warren wrote: On 12/16/2015 11:53 AM, Stephen Warren wrote: On 12/15/2015 09:32 AM, Przemyslaw Marczak wrote: commit: dm: core: Enable optional use of fdt_translate_address() enables device's bus/child address translation method, dependi

Re: [U-Boot] [PATCH 0/3] dm: add dev_get_reg() for getting device node's reg

2015-12-29 Thread Przemyslaw Marczak
Hello Stephen, On 12/16/2015 07:53 PM, Stephen Warren wrote: On 12/15/2015 09:32 AM, Przemyslaw Marczak wrote: commit: dm: core: Enable optional use of fdt_translate_address() enables device's bus/child address translation method, depending on bus 'ranges' property and inclu

[U-Boot] [PATCH 2/3] gpio: s5p: use dev_get_reg() instead of dev_get_addr()

2015-12-15 Thread Przemyslaw Marczak
this issue. Signed-off-by: Przemyslaw Marczak Cc: Joe Hershberger Cc: Stephen Warren Cc: Minkyu Kang Cc: Simon Glass --- drivers/gpio/s5p_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/s5p_gpio.c b/drivers/gpio/s5p_gpio.c index 0f22b23..383c6ce 10064

[U-Boot] [PATCH 0/3] dm: add dev_get_reg() for getting device node's reg

2015-12-15 Thread Przemyslaw Marczak
the 'reg' value in the same way as previously dev_get_addr(). This fixes s5p gpio driver and booting issue on few Exynos based boards: - Trats2 - Odroid U3/X2 As an example of use, this patch set also modifies i2c uclass driver by using the new function for getting chip address. Przemys

[U-Boot] [PATCH 3/3] dm: i2c: get chip address with dev_get_reg()

2015-12-15 Thread Przemyslaw Marczak
This commit cleanups the I2C uclass driver by: - simplify i2c_child_post_bind() method - cleanups i2c_chip_ofdata_to_platdata(), by calling dev_get_reg() for getting chip address Signed-off-by: Przemyslaw Marczak Cc: Masahiro Yamada Cc: Joe Hershberger Cc: Simon Glass Cc: Heiko Schocher Cc

[U-Boot] [PATCH 1/3] dm: core: extend API by new function: dev_get_reg()

2015-12-15 Thread Przemyslaw Marczak
function dev_get_reg(), which makes it possible to get the 'reg' property's value for that use case. Signed-off-by: Przemyslaw Marczak Cc: Masahiro Yamada Cc: Simon Glass Cc: Marek Vasut Cc: Stefan Roese --- drivers/core/device.c | 17 + include/dm/device.h |

Re: [U-Boot] Samsung I2C driver

2015-12-11 Thread Przemyslaw Marczak
Hi, On 12/11/2015 04:04 AM, Simon Glass wrote: +David, who is the vcma9 maintainer. Hi Przemyslaw, On 7 December 2015 at 07:00, Przemyslaw Marczak wrote: Hello Simon, On 12/07/2015 02:07 PM, Simon Glass wrote: Hi Przemyslaw, At present this driver has a few implementations and supports

Re: [U-Boot] Odroid U3 not able to boot using latest u-boot.

2015-12-11 Thread Przemyslaw Marczak
apply this patch locally, I will send another solution for this issue, since at present it may be unsafe for some cases on other platforms. Best regards, -- Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marc...@samsung.com _

Re: [U-Boot] Samsung I2C driver

2015-12-07 Thread Przemyslaw Marczak
t; layer can be enabled for those boards and everything should work as previous, right? I can help you with the testing for Trats/Trats2/OdroidU3 if you want move it on your own. I could take care of this, but no sooner than in the new year. Best regards, -- Przemyslaw Marczak Samsung R&D Insti

Re: [U-Boot] [PATCH] arm: imx6: novena, gw_ventana: Fix use of pfuze100 bit definitions

2015-11-30 Thread Przemyslaw Marczak
On 11/30/2015 11:00 AM, Stefano Babic wrote: On 30/11/2015 10:53, Przemyslaw Marczak wrote: Hello Stefano, On 11/26/2015 02:08 PM, Marek Vasut wrote: The following patch changed the PFUZE100 swbst register bit definitions and broke PMIC configuration on multiple boards, at least on the

Re: [U-Boot] [PATCH] arm: imx6: novena, gw_ventana: Fix use of pfuze100 bit definitions

2015-11-30 Thread Przemyslaw Marczak
: Peng Fan Date: Fri Aug 7 16:43:45 2015 +0800 power: regulator: add pfuze100 support Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Przemyslaw Marczak Cc: Stefano Babic Cc: Tim Harvey Cc: Vagrant Cascadian --- board/gateworks/gw_ventana/common.c | 2 +- board

Re: [U-Boot] [PATCH] arm: imx6: novena, gw_ventana: Fix use of pfuze100 bit definitions

2015-11-26 Thread Przemyslaw Marczak
: Peng Fan Date: Fri Aug 7 16:43:45 2015 +0800 power: regulator: add pfuze100 support Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Przemyslaw Marczak Cc: Stefano Babic Cc: Tim Harvey Cc: Vagrant Cascadian --- board/gateworks/gw_ventana/common.c | 2 +- board/kosagi

Re: [U-Boot] [PATCH] pmic: Fix pfuze100 bit definitions

2015-11-26 Thread Przemyslaw Marczak
Hello Marek, On 11/26/2015 04:39 PM, Marek Vasut wrote: On Thursday, November 26, 2015 at 03:35:26 PM, Przemyslaw Marczak wrote: Hello Marek, Hi, On 11/26/2015 02:08 PM, Marek Vasut wrote: On Thursday, November 26, 2015 at 01:21:36 PM, Przemyslaw Marczak wrote: Hello Marek, Hi, On 11

Re: [U-Boot] [PATCH] pmic: Fix pfuze100 bit definitions

2015-11-26 Thread Przemyslaw Marczak
Hello Marek, On 11/26/2015 02:08 PM, Marek Vasut wrote: On Thursday, November 26, 2015 at 01:21:36 PM, Przemyslaw Marczak wrote: Hello Marek, Hi, On 11/26/2015 12:15 AM, Marek Vasut wrote: The following patch changed the PFUZE100 swbst register bit definitions and broke PMIC configuration

Re: [U-Boot] [PATCH] pmic: Fix pfuze100 bit definitions

2015-11-26 Thread Przemyslaw Marczak
broken only the two boards, you mentioned. commit 8fa46350a4c7dca7710362f6c871098557b934ad Author: Peng Fan Date: Fri Aug 7 16:43:45 2015 +0800 power: regulator: add pfuze100 support Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Przemyslaw Marczak Cc: Tim Harvey Cc

Re: [U-Boot] [PATCH] arm: mx6: Reduce SPL malloc pool size

2015-11-25 Thread Przemyslaw Marczak
On 11/25/2015 01:16 PM, Marek Vasut wrote: On Wednesday, November 25, 2015 at 01:00:41 PM, Przemyslaw Marczak wrote: Hello Marek, On 11/25/2015 11:56 AM, Marek Vasut wrote: On Wednesday, November 25, 2015 at 11:40:36 AM, Przemyslaw Marczak wrote: Hello Tim, Marek On 11/20/2015 10:40 PM, Tim

Re: [U-Boot] [PATCH] arm: mx6: Reduce SPL malloc pool size

2015-11-25 Thread Przemyslaw Marczak
Hello Marek, On 11/25/2015 11:56 AM, Marek Vasut wrote: On Wednesday, November 25, 2015 at 11:40:36 AM, Przemyslaw Marczak wrote: Hello Tim, Marek On 11/20/2015 10:40 PM, Tim Harvey wrote: On Fri, Nov 20, 2015 at 12:43 PM, Marek Vasut wrote: Using 50 MiB malloc pool in SPL is nonsense

Re: [U-Boot] [PATCH] arm: mx6: Reduce SPL malloc pool size

2015-11-25 Thread Przemyslaw Marczak
s the size of malloc pool but it's not cleared - so needs check if malloc() calls should be changed to calloc(). Best regards, -- Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marc...@samsung.com ___ U-Boot maili

Re: [U-Boot] [U-Boot, v2, 4/5] gpt: part: Definition and declaration of GPT verification functions

2015-11-25 Thread Przemyslaw Marczak
Hi Tom, On 11/24/2015 07:56 PM, Tom Rini wrote: On Tue, Nov 24, 2015 at 10:56:41AM +0100, Przemyslaw Marczak wrote: Hello Tom, On 11/23/2015 11:44 PM, Tom Rini wrote: On Fri, Nov 20, 2015 at 08:06:16AM +0100, Lukasz Majewski wrote: This commit provides definition and declaration of GPT

Re: [U-Boot] [U-Boot, v2, 4/5] gpt: part: Definition and declaration of GPT verification functions

2015-11-24 Thread Przemyslaw Marczak
of GPT's header and PTEs. The latter examines each partition entry and compare attributes such as: name, start offset and size with ones provided at '$partitions' env variable. Signed-off-by: Lukasz Majewski Reviewed-by: Tom Rini Reviewed-by: Przemyslaw Marczak Applied to u-boot

[U-Boot] [PATCH] dfu: fix possible memory leak in dfu_init_env_entities()

2015-11-23 Thread Przemyslaw Marczak
: Przemyslaw Marczak Cc: Lukasz Majewski --- drivers/dfu/dfu.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index 8f5915e..420631a 100644 --- a/drivers/dfu/dfu.c +++ b/drivers/dfu/dfu.c @@ -66,13 +66,11 @@ int dfu_init_env_entities(char

Re: [U-Boot] [PATCH v2 4/5] gpt: part: Definition and declaration of GPT verification functions

2015-11-20 Thread Przemyslaw Marczak
s read from medium + * + * @return - '0' on success, otherwise error + */ +int gpt_verify_partitions(block_dev_desc_t *dev_desc, + disk_partition_t *partitions, int parts, + gpt_header *gpt_head, gpt_entry **gpt_pte); #endif #endif /* _PART_H */ Reviewed-by: Przemyslaw Marczak Best regards, -- Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marc...@samsung.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2 5/5] gpt: command: Extend gpt command to support GPT table verification

2015-11-20 Thread Przemyslaw Marczak
t;) == 0)) { + ret = gpt_verify(blk_dev_desc, argv[4]); + printf("Verify GPT: "); } else { return CMD_RET_USAGE; } - return ret; + + if (ret) { + printf("error!\n"); +

Re: [U-Boot] [PATCH V3 10/14] Exynos54xx: dts: add ADC node

2015-11-06 Thread Przemyslaw Marczak
Hello Simon, On 11/06/2015 04:15 AM, Simon Glass wrote: Hi Przemyslaw, On 29 October 2015 at 07:58, Przemyslaw Marczak wrote: Hi Simon, On 10/28/2015 07:50 PM, Simon Glass wrote: On 27 October 2015 at 06:08, Przemyslaw Marczak wrote: This commit adds common ADC node, which is disabled

[U-Boot] [PATCH] sandbox: adc: Add missing header file

2015-11-04 Thread Przemyslaw Marczak
Commit: sandbox: add ADC driver adds the driver without its main header file. It causes build brake for sandbox_defonfig. This commit adds a missing header: - include/sandbox-adc.h Signed-off-by: Przemyslaw Marczak Cc: Minkyu Kang Cc: Simon Glass --- include/sandbox-adc.h | 31

Re: [U-Boot] please pull u-boot-samsung master

2015-11-04 Thread Przemyslaw Marczak
Hello Minkyu, On 11/04/2015 04:43 PM, Minkyu Kang wrote: Dear Przemyslaw Marczak, On 4 November 2015 at 18:37, Przemyslaw Marczak mailto:p.marc...@samsung.com>> wrote: Hello Minkyu, On 11/04/2015 03:05 AM, Minkyu Kang wrote: Dear Przemyslaw Marczak, 2015년 11월

[U-Boot] [PATCH] Add missing file: include/sandbox-adc.h

2015-11-04 Thread Przemyslaw Marczak
This should be squashed to commit: sandbox: add ADC driver This commit adds implementation of Sandbox ADC device emulation. The device provides: - single and multi-channel conversion - 4 channels with predefined conversion output data - 16-bit resolution Signed-off-by: Przemyslaw Marczak Cc

Re: [U-Boot] please pull u-boot-samsung master

2015-11-04 Thread Przemyslaw Marczak
Hello Minkyu, On 11/04/2015 03:05 AM, Minkyu Kang wrote: Dear Przemyslaw Marczak, 2015년 11월 4일 수요일, Tom Rini Dear Tom, > > The following changes since commit 0e067a65f57189703668826d9841fea477026bf6: > > x86: Select the ns16550 debug UART f

Re: [U-Boot] [PATCH] fdt: fix address cell count checking in fdt_translate_address()

2015-11-03 Thread Przemyslaw Marczak
Hello All, On 10/29/2015 06:15 PM, Simon Glass wrote: Hi Stefan, On 28 October 2015 at 08:37, Przemyslaw Marczak wrote: Commit: dm: core: Enable optional use of fdt_translate_address() Enables use of this function as default, but after this it's not possible to get dev address for the

Re: [U-Boot] [PATCH V3 10/14] Exynos54xx: dts: add ADC node

2015-10-29 Thread Przemyslaw Marczak
Hi Simon, On 10/28/2015 07:50 PM, Simon Glass wrote: On 27 October 2015 at 06:08, Przemyslaw Marczak wrote: This commit adds common ADC node, which is disabled as default. Signed-off-by: Przemyslaw Marczak Cc: Minkyu Kang Cc: Simon Glass --- Changes V2: - new commit Reviewed-by: Simon

Re: [U-Boot] [PATCH v3 4/4] exynos: more debug and cleanup in do_sdhci_init()

2015-10-28 Thread Przemyslaw Marczak
Hello Jaehoon, On 10/28/2015 03:36 PM, Jaehoon Chung wrote: Hi, Przemyslaw. On 10/28/2015 10:46 PM, Przemyslaw Marczak wrote: Hello Jaehoon, On 10/28/2015 01:30 PM, Jaehoon Chung wrote: Hi, Przemyslaw. On 10/28/2015 08:33 PM, Przemyslaw Marczak wrote: Hello Jaehoon, On 10/28/2015 07:33

[U-Boot] [PATCH 1/2] Exynos4412: pinmux: disable pull for MMC pins

2015-10-28 Thread Przemyslaw Marczak
id X2. Signed-off-by: Przemyslaw Marczak Cc: Guillaume GARDET Cc: Lukasz Majewski Cc: Jaehoon Chung Cc: Minkyu Kang Cc: Simon Glass --- arch/arm/mach-exynos/pinmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/pinmux.c b/arch/arm/mach-exynos/pinmux.c

[U-Boot] [PATCH 2/2] s5p sdhci: call pinmux for card's gpio pins before use them

2015-10-28 Thread Przemyslaw Marczak
The SD card detection depends on checking one pin state. But the pin was configured after card was detected, which is wrong. This commit fixes this, by moving call to pinmux before use the pin. Tested-on: Odroid U3 and Odroid X2. Signed-off-by: Przemyslaw Marczak Cc: Guillaume GARDET Cc

[U-Boot] [PATCH] fdt: fix address cell count checking in fdt_translate_address()

2015-10-28 Thread Przemyslaw Marczak
is greater than 0. This is possible from the specification point of view, but I'm not sure that it doesn't introduce a regression for other configs. Please test and share the results. Tested-on: Odroid U3, Odroid X2, Odroid XU3, Sandbox. Signed-off-by: Przemyslaw Marczak Cc: Masahir

Re: [U-Boot] [PATCH v3 4/4] exynos: more debug and cleanup in do_sdhci_init()

2015-10-28 Thread Przemyslaw Marczak
Hello Jaehoon, On 10/28/2015 01:30 PM, Jaehoon Chung wrote: Hi, Przemyslaw. On 10/28/2015 08:33 PM, Przemyslaw Marczak wrote: Hello Jaehoon, On 10/28/2015 07:33 AM, Jaehoon Chung wrote: Hi, All. On 10/05/2015 08:47 PM, Tobias Jakobi wrote: Add more debug printfs in do_sdhci_init() for

Re: [U-Boot] [PATCH v3 4/4] exynos: more debug and cleanup in do_sdhci_init()

2015-10-28 Thread Przemyslaw Marczak
Hello Jaehoon, On 10/28/2015 07:33 AM, Jaehoon Chung wrote: Hi, All. On 10/05/2015 08:47 PM, Tobias Jakobi wrote: Add more debug printfs in do_sdhci_init() for calls that can potentially fail. Acked-by: Przemyslaw Marczak Signed-off-by: Tobias Jakobi --- drivers/mmc/s5p_sdhci.c | 20

Re: [U-Boot] [PATCH V3 07/14] dm: adc: add simple ADC uclass implementation

2015-10-27 Thread Przemyslaw Marczak
Hello all, On 10/27/2015 01:08 PM, Przemyslaw Marczak wrote: This commit adds: - new uclass id: UCLASS_ADC - new uclass driver: drivers/adc/adc-uclass.c The new uclass's API allows for ADC operation on: * single-channel with channel selection by a number * multti-channel with channel sele

[U-Boot] [PATCH V3 05/14] dm: pmic: add s2mps11 PMIC I/O driver

2015-10-27 Thread Przemyslaw Marczak
Signed-off-by: Przemyslaw Marczak --- Changes V2: - remove "DM" prefix from config name - fix word mistake in binding description Changes V3: - correct return values for driver's read/write methods --- doc/device-tree-bindings/pmic/s2mps11.txt | 17 + drivers/pow

[U-Boot] [PATCH V3 08/14] dm: adc: add Exynos54xx compatible ADC driver

2015-10-27 Thread Przemyslaw Marczak
0KSPS - output the data as average of 8 time conversion ADC features: - sample rate: 600KSPS - resolution: 12-bit - channels: 10 (analog multiplexer) Signed-off-by: Przemyslaw Marczak Cc: Minkyu Kang Cc: Simon Glass --- Changes V2: - new commit - move previous adc driver from SoC directory to dr

[U-Boot] [PATCH V3 11/14] Odroid-XU3: dts: enable ADC, with request for pre-reloc bind

2015-10-27 Thread Przemyslaw Marczak
This ADC is required for Odroid's board revision detection. The pre-reloc request is enabled, since board detection will be done in one of early function call. Signed-off-by: Przemyslaw Marczak Cc: Minkyu Kang Cc: Simon Glass --- Changes V2: - new commit --- arch/arm/dts/exynos5422-odro

[U-Boot] [PATCH V3 14/14] sandbox: add ADC unit tests

2015-10-27 Thread Przemyslaw Marczak
annel shot - dm_test_adc_multi_channel_conversion() - multi channel start/data - dm_test_adc_multi_channel_shot()- multi channel single shot Signed-off-by: Przemyslaw Marczak Cc: Simon Glass --- Changes V3: - new commit --- include/power/sandbox_pmic.h | 4 ++ test/dm/Makefile | 1 + tes

[U-Boot] [PATCH V3 13/14] sandbox: add ADC driver

2015-10-27 Thread Przemyslaw Marczak
This commit adds implementation of Sandbox ADC device emulation. The device provides: - single and multi-channel conversion - 4 channels with predefined conversion output data - 16-bit resolution Signed-off-by: Przemyslaw Marczak Cc: Simon Glass --- Changes V3: - new commit --- arch/sandbox

[U-Boot] [PATCH V3 10/14] Exynos54xx: dts: add ADC node

2015-10-27 Thread Przemyslaw Marczak
This commit adds common ADC node, which is disabled as default. Signed-off-by: Przemyslaw Marczak Cc: Minkyu Kang Cc: Simon Glass --- Changes V2: - new commit --- arch/arm/dts/exynos54xx.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/exynos54xx.dtsi b/arch/arm

[U-Boot] [PATCH V3 06/14] dm: regulator: add function device_get_supply_regulator()

2015-10-27 Thread Przemyslaw Marczak
Some devices are supplied by configurable regulator's output. But there was no function for getting it. This commit adds function, that allows for getting the supply device by it's phandle. The returned regulator device can be used with regulator uclass's API. Signed-off-by: Prz

[U-Boot] [PATCH V3 07/14] dm: adc: add simple ADC uclass implementation

2015-10-27 Thread Przemyslaw Marczak
dle to Vdd regulator's node - vss-supply:phandle to Vss regulator's node And optional, checked only if the above corresponding, doesn't exist: - vdd-microvolts: positive reference Voltage [uV] - vss-microvolts: negative reference Voltage [uV] Signed-off-by: Prze

[U-Boot] [PATCH V3 09/14] Odroid-XU3: enable s2mps11 PMIC support

2015-10-27 Thread Przemyslaw Marczak
Signed-off-by: Przemyslaw Marczak Cc: Minkyu Kang Cc: Simon Glass --- Changes V2: - none Chabges V3: - fix merge conflict in configs/odroid-xu3_defconfig --- arch/arm/dts/exynos5422-odroidxu3.dts | 7 +++ configs/odroid-xu3_defconfig | 3 +++ 2 files changed, 10 insertions

[U-Boot] [PATCH V3 04/14] Exynos5422/5800: set cpu id to 0x5422

2015-10-27 Thread Przemyslaw Marczak
Signed-off-by: Przemyslaw Marczak Cc: Minkyu Kang Cc: Simon Glass --- Changes V2: - none --- arch/arm/mach-exynos/clock.c | 16 arch/arm/mach-exynos/clock_init_exynos5.c | 2 +- arch/arm/mach-exynos/common_setup.h | 4 ++-- arch/arm/mach-exynos/include/mach

[U-Boot] [PATCH V3 12/14] exynos5-dt-types: add board detection for Odroid XU3/XU3L/XU4.

2015-10-27 Thread Przemyslaw Marczak
rd_type() can check if the XU3 board is a "Lite" variant, by probing chip 0x40 on I2C0 (INA231 - exists only on non-lite). This is useful for setting fdt file name at misc_init_r(). Enabled configs: - CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG - CONFIG_ODROID_REV_AIN - CONFIG_REVISION_TAG -

[U-Boot] [PATCH V3 02/14] s5p: cpu_info: print "cpu-model" if exists in dts

2015-10-27 Thread Przemyslaw Marczak
-tree property for Exynos: - "cpu-model" - with cpu name string If defined, then the cpu id is not printed. Signed-off-by: Przemyslaw Marczak Cc: Minkyu Kang Cc: Simon Glass --- Changes V2: - new commit Changes V3 - add cpu-model binding info --- arch/arm/cpu/armv7/s5p-common/cpu_i

[U-Boot] [PATCH V3 03/14] Peach-Pi: dts: add cpu-model string

2015-10-27 Thread Przemyslaw Marczak
This platform is based on Exynos5800 but the cpu id is 0x5422. This doesn't fit the common Exynos SoC name convention, so now, the CPU name is defined by device tree string, to be printed properly. Signed-off-by: Przemyslaw Marczak Cc: Minkyu Kang Cc: Simon Glass --- Changes V2: - mov

[U-Boot] [PATCH V3 00/14] Add board detection for Odroid XU3 / XU3Lite / XU4

2015-10-27 Thread Przemyslaw Marczak
xu3-detect-patchset-v2 https://github.com/bobenstein/u-boot/tree/xu3-detect-patchset-v3 Przemyslaw Marczak (14): samsung: board/misc: check returned pointer for get_board_type() calls s5p: cpu_info: print "cpu-model" if exists in dts Peach-Pi: dts: add cpu-model string Exynos5422

[U-Boot] [PATCH V3 01/14] samsung: board/misc: check returned pointer for get_board_type() calls

2015-10-27 Thread Przemyslaw Marczak
The function get_board_type() is called in two places by common code, but the returned pointer was never check. This commit adds checking the returned pointer, before use it. Signed-off-by: Przemyslaw Marczak Cc: Minkyu Kang --- Changes V2: - new commit --- board/samsung/common/board.c | 4

Re: [U-Boot] [PATCH 0/7] Add board detection for Odroid XU3 / XU3Lite / XU4

2015-10-21 Thread Przemyslaw Marczak
Ethernet Device(s) found ODROID-XU3 # --- Best regards, -- Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marc...@samsung.com ___ U-Boot mailing list U-

Re: [U-Boot] [PATCH V2 00/11] Add board detection for Odroid XU3 / XU3Lite / XU4

2015-10-13 Thread Przemyslaw Marczak
Hello, On 10/03/2015 04:30 PM, Simon Glass wrote: Hi Przemyslaw, On 1 October 2015 at 12:07, Przemyslaw Marczak wrote: Hello, On 09/21/2015 02:26 PM, Przemyslaw Marczak wrote: This patchset adds: - CPU model in dts for Chromebook Peach Pi as Exynos5800 - set the cpu id of Exynos5422 to

Re: [U-Boot] [PATCH V2 11/11] exynos5-dt-types: add board detection for Odroid XU3/XU3L/XU4.

2015-10-13 Thread Przemyslaw Marczak
Hello Simon, On 10/03/2015 04:28 PM, Simon Glass wrote: Hi Przemyslaw, On 21 September 2015 at 13:26, Przemyslaw Marczak wrote: This commit adds additional file with implementation of board detection code for Odroid-XU3/XU4. The detection depends on compatible found in fdt: - "sa

Re: [U-Boot] [PATCH V2 07/11] dm: adc: add Exynos54xx compatible ADC driver

2015-10-13 Thread Przemyslaw Marczak
Hello Simon, On 10/03/2015 04:28 PM, Simon Glass wrote: Hi Przemyslaw, On 21 September 2015 at 13:26, Przemyslaw Marczak wrote: This commit adds driver for Exynos54xx ADC subsystem. The driver is implemented using driver model, amd provides ADC uclass's operations: - adc_init() - adc

Re: [U-Boot] [PATCH V2 05/11] dm: pmic: add s2mps11 PMIC I/O driver

2015-10-13 Thread Przemyslaw Marczak
Hi Simon, On 10/03/2015 04:28 PM, Simon Glass wrote: Hi Przemyslaw, On 21 September 2015 at 13:26, Przemyslaw Marczak wrote: This driver allows I/O operations on the Samsung S2MPS11 PMIC, which provides lots of LDO/BUCK outputs. To enable it, update defconfig with: - CONFIG_PMIC_S2MPS11 and

Re: [U-Boot] [PATCH V2 03/11] Peach-Pi: dts: add cpu-model string

2015-10-13 Thread Przemyslaw Marczak
Hello Simon, On 10/03/2015 04:28 PM, Simon Glass wrote: Hi Przemyslaw, On 21 September 2015 at 13:26, Przemyslaw Marczak wrote: This platform is based on Exynos5800 but the cpu id is 0x5422. This doesn't fit the common Exynos SoC name convention, so now, the CPU name is defined by d

Re: [U-Boot] [PATCH V2 06/11] dm: adc: add simple ADC uclass implementation

2015-10-13 Thread Przemyslaw Marczak
Hello Simon, On 10/03/2015 04:28 PM, Simon Glass wrote: Hi Przemyslaw, On 21 September 2015 at 13:26, Przemyslaw Marczak wrote: This commit adds: - new uclass id: UCLASS_ADC - new uclass driver: drivers/adc/adc-uclass.c The uclass's implementation is as simple as needed and pro

Re: [U-Boot] [PATCH V2 02/11] s5p: cpu_info: print "cpu-model" if exists in dts

2015-10-13 Thread Przemyslaw Marczak
Hello Simon, On 10/03/2015 04:27 PM, Simon Glass wrote: On 21 September 2015 at 13:26, Przemyslaw Marczak wrote: The CPU name for Exynos was concatenated with cpu id, but for new Exynos platforms, like Chromebook Peach Pi based on Exynos5800, the name of SoC variant does not include the real

Re: [U-Boot] [PATCH V3 0/2] *Enhance Odroid board

2015-10-13 Thread Przemyslaw Marczak
support. If no boot script are found, it boots as usual. Changes in V3: * Uses 'elif' version as requested by Przemyslaw Marczak Changes in V2: * Expand commit messages * Better code consistency Signed-off-by: Guillaume GARDET Cc: Przemyslaw Marczak Cc: Minkyu Kang --- Guillaume

Re: [U-Boot] [RFC] odroid DTB support

2015-10-13 Thread Przemyslaw Marczak
Hello, On 10/13/2015 11:33 AM, Guillaume Gardet wrote: Hi Przemyslaw, Tom, Le 13/10/2015 11:11, Przemyslaw Marczak a écrit : Hi Tom, Guillaume, On 10/13/2015 09:37 AM, Guillaume Gardet wrote: Le 12/10/2015 16:24, Tom Rini a écrit : On Mon, Oct 12, 2015 at 10:54:04AM +0200, Guillaume

Re: [U-Boot] [RFC] odroid DTB support

2015-10-13 Thread Przemyslaw Marczak
09/10/2015 14:23, Przemyslaw Marczak a écrit : Hello Guillaume, On 10/09/2015 02:11 PM, Guillaume Gardet wrote: Hi Przemyslaw, I would like to add DTB support for odroid board to be able to boot upstream kernel easily. I see 2 ways to do it: * Add CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG support to

Re: [U-Boot] [RFC] odroid DTB support

2015-10-12 Thread Przemyslaw Marczak
Hello, On 10/12/2015 10:54 AM, Guillaume Gardet wrote: Hi, Le 12/10/2015 01:45, Tom Rini a écrit : On Fri, Oct 09, 2015 at 02:35:24PM +0200, Guillaume Gardet wrote: Le 09/10/2015 14:23, Przemyslaw Marczak a écrit : Hello Guillaume, On 10/09/2015 02:11 PM, Guillaume Gardet wrote: Hi

Re: [U-Boot] [RFC] odroid DTB support

2015-10-09 Thread Przemyslaw Marczak
by your last patches? If, yes then it's not needed. Odroid supports mainline kernel booting. Just put kernel image and fdt file with it's proper (default) name to boot partition and wait for autoboot command to execute. This just work with defaults. Also you can use itb image, to have

Re: [U-Boot] [PATCH V2 2/2] odroid: Add boot script (boot.scr) support

2015-10-09 Thread Przemyslaw Marczak
Hello, On 10/09/2015 01:59 PM, Guillaume Gardet wrote: Le 09/10/2015 12:24, Przemyslaw Marczak a écrit : Hello Guillaume, On 10/05/2015 11:07 AM, Guillaume GARDET wrote: Add boot script (boot.scr) support. If no boot script are found, it boots as usual. Signed-off-by: Guillaume GARDET Cc

Re: [U-Boot] [PATCH V2 2/2] odroid: Add boot script (boot.scr) support

2015-10-09 Thread Przemyslaw Marczak
Hello Guillaume, On 10/05/2015 11:07 AM, Guillaume GARDET wrote: Add boot script (boot.scr) support. If no boot script are found, it boots as usual. Signed-off-by: Guillaume GARDET Cc: Przemyslaw Marczak Cc: Minkyu Kang --- include/configs/odroid.h | 9 + 1 file changed, 9

Re: [U-Boot] [PATCH V2 2/2] odroid: Add boot script (boot.scr) support

2015-10-09 Thread Przemyslaw Marczak
27;re right. I will move it some day as it is in XU3, but for now I have some other things to do, so I prefer accept this patch. It's only few lines. Signed-off-by: Guillaume GARDET Cc: Przemyslaw Marczak Cc: Minkyu Kang --- include/configs/odroid.h | 9 + 1 file changed, 9

  1   2   3   4   5   6   7   8   9   10   >