[U-Boot] U-Boot SPL on OMAP3 and peripheral boot and LG Optimus Black P970 (sniper) support

2014-10-27 Thread Paul Kocialkowski
Greetings, as this is my first post to the list, I'll quickly introduce myself. I'm Paul Kocialkowski, lead developer of Replicant: a fully free version of Android running on several mobile devices. I'm very interested in embedded devices that can run with fully free software, hence my interest

[U-Boot] [PATCH] twl4030: TWL4030 VMMC2 3.2V enable on MMC init

2014-10-28 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- drivers/power/twl4030.c |6 ++ include/twl4030.h |2 ++ 2 files changed, 8 insertions(+) diff --git a/drivers/power/twl4030.c b/drivers/power/twl4030.c index 3e50310..e578ae6 100644 --- a/drivers/power/twl4030.c +++ b

[U-Boot] [PATCH] twl4030: More voltages on VAUX2 and VAUX3

2014-10-28 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- include/twl4030.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/include/twl4030.h b/include/twl4030.h index 18795a6..f33cd1e 100644 --- a/include/twl4030.h +++ b/include/twl4030.h @@ -390,6 +390,8 @@ /* Voltage Selection in PM

Re: [U-Boot] [PATCH] twl4030: TWL4030 VMMC2 3.2V enable on MMC init

2014-10-28 Thread Paul Kocialkowski
Receiver Module */ -- Paul Kocialkowski, Replicant developer Replicant is a fully free Android distribution Website:http://www.replicant.us/ Wiki/Tracker: http://redmine.replicant.us/ signature.asc Description: This is a digitally signed message part

[U-Boot] [PATCH v2] twl4030: VMMC2 3.2V enable on MMC init

2014-10-28 Thread Paul Kocialkowski
This enables the VMMC2 LDO, which powers the MMC2 device. When the device starts from MMC2, this has already been enabled by the BootROM, but when starting from peripheral boot (USB, UART), it is not the case. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- drivers/power/twl4030.c |6

[U-Boot] [PATCH] omap_hsmmc: Allow for board-specific MMC power init

2014-10-28 Thread Paul Kocialkowski
Some devices may use non-standard combinations of regulators to power MMC: this allows these devices to provide a board-specific MMC power init function to set everything up in their own way. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- arch/arm/include/asm/omap_mmc.h |4

[U-Boot] [PATCH] power: LP8720 regulator support

2014-10-28 Thread Paul Kocialkowski
This adds support for the LP8720 i2c regulator, as found in e.g. the LG Optimus Black (P970), codename sniper. This code supports setting up and enabling one of the 5 LDOs that the IC provides. Other more advanced features are unsupported. Signed-off-by: Paul Kocialkowski cont...@paulk.fr

Re: [U-Boot] [PATCH] omap_hsmmc: Allow for board-specific MMC power init

2014-10-28 Thread Paul Kocialkowski
Le mardi 28 octobre 2014 à 20:02 +0200, Igor Grinberg a écrit : Hi Paul, On 10/28/14 19:25, Paul Kocialkowski wrote: Some devices may use non-standard combinations of regulators to power MMC: this allows these devices to provide a board-specific MMC power init function to set

[U-Boot] [PATCH v2 1/2] mmc: Board-specific MMC power initializations

2014-11-01 Thread Paul Kocialkowski
Some devices may use non-standard combinations of regulators to power MMC: this allows these devices to provide a board-specific MMC power init function to set everything up in their own way. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- drivers/mmc/mmc.c | 8 include/mmc.h

[U-Boot] [PATCH v2 2/2] omap_hsmmc: Board-specific TWL4030 MMC power initializations

2014-11-01 Thread Paul Kocialkowski
-by: Paul Kocialkowski cont...@paulk.fr --- board/comelit/dig297/dig297.c | 9 + board/compulab/cm_t35/cm_t35.c | 11 +++ board/corscience/tricorder/tricorder.c | 11 +++ board/isee/igep00x0/igep00x0.c | 11 +++ board/logicpd/omap3som

[U-Boot] [PATCH v3 0/2] mmc: Board-specific MMC power initializations

2014-11-01 Thread Paul Kocialkowski
Changelog: v3: Changes to make v2 apply on master v2: Implement board_mmc_power_init instead of define ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v3 2/2] omap_hsmmc: Board-specific TWL4030 MMC power initializations

2014-11-01 Thread Paul Kocialkowski
-by: Paul Kocialkowski cont...@paulk.fr --- board/comelit/dig297/dig297.c | 9 + board/compulab/cm_t35/cm_t35.c | 11 +++ board/corscience/tricorder/tricorder.c | 11 +++ board/isee/igep00x0/igep00x0.c | 11 +++ board/logicpd/omap3som

[U-Boot] [PATCH v3 1/2] mmc: Board-specific MMC power initializations

2014-11-01 Thread Paul Kocialkowski
Some devices may use non-standard combinations of regulators to power MMC: this allows these devices to provide a board-specific MMC power init function to set everything up in their own way. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- drivers/mmc/mmc.c | 8 include/mmc.h

Re: [U-Boot] [PATCH] power: LP8720 regulator support

2014-11-01 Thread Paul Kocialkowski
Le mardi 28 octobre 2014 à 18:32 +0100, Paul Kocialkowski a écrit : This adds support for the LP8720 i2c regulator, as found in e.g. the LG Optimus Black (P970), codename sniper. This code supports setting up and enabling one of the 5 LDOs that the IC provides. Other more advanced features

Re: [U-Boot] [PATCH v3 1/2] mmc: Board-specific MMC power initializations

2014-11-02 Thread Paul Kocialkowski
Hi Igor, On 11/01/14 12:52, Paul Kocialkowski wrote: Some devices may use non-standard combinations of regulators to power MMC: this allows these devices to provide a board-specific MMC power init function to set everything up in their own way. Signed-off-by: Paul Kocialkowski cont

Re: [U-Boot] [PATCH v3 2/2] omap_hsmmc: Board-specific TWL4030 MMC power initializations

2014-11-02 Thread Paul Kocialkowski
Hi Igor, thanks for the review. On 11/01/14 12:52, Paul Kocialkowski wrote: Boards using the TWL4030 regulator may not all use the LDOs the same way (e.g. MMC2 power can be controlled by another LDO than VMMC2). This delegates TWL4030 MMC power initializations to board-specific

Re: [U-Boot] [PATCH v2 1/2] mmc: Board-specific MMC power initializations

2014-11-05 Thread Paul Kocialkowski
+0100, Paul Kocialkowski wrote: Some devices may use non-standard combinations of regulators to power MMC: this allows these devices to provide a board-specific MMC power init function to set everything up in their own way. Signed-off-by: Paul Kocialkowski cont

Re: [U-Boot] [PATCH v2 2/2] omap_hsmmc: Board-specific TWL4030 MMC power initializations

2014-11-05 Thread Paul Kocialkowski
! -- Paul Kocialkowski, Replicant developer Replicant is a fully free Android distribution Website: http://www.replicant.us/ Redmine: http://redmine.replicant.us/ signature.asc Description: This is a digitally signed message part ___ U-Boot mailing list U

Re: [U-Boot] [PATCH] power: LP8720 regulator support

2014-11-05 Thread Paul Kocialkowski
Le mardi 04 novembre 2014 à 18:46 +0100, Przemyslaw Marczak a écrit : Hello, On 11/04/2014 04:58 PM, Tom Rini wrote: On Sat, Nov 01, 2014 at 12:01:37PM +0100, Paul Kocialkowski wrote: Le mardi 28 octobre 2014 à 18:32 +0100, Paul Kocialkowski a écrit : This adds support for the LP8720 i2c

[U-Boot] [PATCH v4 0/3] mmc: Board-specific MMC power initializations

2014-11-08 Thread Paul Kocialkowski
Changelog: v4: * Switch board_mmc_power_init to void since there is no return value check * Add dev_index to twl4030_power_mmc_init, common ramp-up delay * twl4030_power_mmc_init call with the relevant dev_index on boards * No check against CONFIG_TWL4030_POWER (an obvious linker error is better

[U-Boot] [PATCH v4 2/3] twl4030: device-index-specific MMC power initializations, common ramp-up delay

2014-11-08 Thread Paul Kocialkowski
Not every device has multiple MMC slots available, so it makes sense to enable only the required LDOs for the available slots. Generic code in omap_hsmmc will enable both VMMC1 and VMMC2, in doubt. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- drivers/mmc/omap_hsmmc.c | 4 ++-- drivers

[U-Boot] [PATCH v4 1/3] mmc: Board-specific MMC power initializations

2014-11-08 Thread Paul Kocialkowski
Some devices may use non-standard combinations of regulators to power MMC: this allows these devices to provide a board-specific MMC power init function to set everything up in their own way. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- drivers/mmc/mmc.c | 7 +++ include/mmc.h

[U-Boot] [PATCH v4 3/3] omap_hsmmc: Board-specific TWL4030 MMC power initializations

2014-11-08 Thread Paul Kocialkowski
-by: Paul Kocialkowski cont...@paulk.fr --- board/comelit/dig297/dig297.c | 5 + board/compulab/cm_t35/cm_t35.c | 7 +++ board/corscience/tricorder/tricorder.c | 7 +++ board/isee/igep00x0/igep00x0.c | 7 +++ board/logicpd/omap3som/omap3logic.c| 7

Re: [U-Boot] [PATCH v4 3/3] omap_hsmmc: Board-specific TWL4030 MMC power initializations

2014-11-08 Thread Paul Kocialkowski
Le samedi 08 novembre 2014 à 20:55 +0100, Paul Kocialkowski a écrit : Boards using the TWL4030 regulator may not all use the LDOs the same way (e.g. MMC2 power can be controlled by another LDO than VMMC2). This delegates TWL4030 MMC power initializations to board-specific functions, that may

[U-Boot] [PATCH 2/2] spl: MMC U-Boot image load from raw partition

2014-11-08 Thread Paul Kocialkowski
Raw images of U-Boot can be stored inside MMC partitions, so it makes sense to read the partition table, looking for a partition number instead of using a fixed sector address. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- README |4 common/spl/spl_mmc.c | 26

[U-Boot] [PATCH 1/2] MMC SD fs boot partition config coding style and proper description

2014-11-08 Thread Paul Kocialkowski
CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION ought to be called CONFIG_SYS_MMCSD_FS_BOOT_PARTITION to keep it consistent with other config options such as: CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR. In addition, it is not related to raw mode booting but to fs mode instead. Signed-off-by: Paul Kocialkowski

[U-Boot] [PATCH 0/2] spl: MMC U-Boot image load from raw partition

2014-11-08 Thread Paul Kocialkowski
This is a first attempt at adding support for U-Boot image load from raw partitions. It does not support OS boot as I cannot test it on my current setup. This is going to be useful for the Optimus Black port (please do not consider this as dead code because no board is using it right now, there

Re: [U-Boot] [PATCH 0/2] spl: MMC U-Boot image load from raw partition

2014-11-08 Thread Paul Kocialkowski
Le samedi 08 novembre 2014 à 23:19 +0100, Albert ARIBAUD a écrit : Hello Paul, On Sat, 8 Nov 2014 23:14:54 +0100, Paul Kocialkowski cont...@paulk.fr wrote: This is a first attempt at adding support for U-Boot image load from raw partitions. It does not support OS boot as I cannot test

Re: [U-Boot] [PATCH v4 3/3] omap_hsmmc: Board-specific TWL4030 MMC power initializations

2014-11-11 Thread Paul Kocialkowski
Le lundi 10 novembre 2014 à 13:46 -0500, Tom Rini a écrit : On Sat, Nov 08, 2014 at 10:29:24PM +0100, Paul Kocialkowski wrote: Le samedi 08 novembre 2014 à 20:55 +0100, Paul Kocialkowski a écrit : Boards using the TWL4030 regulator may not all use the LDOs the same way (e.g. MMC2 power

Re: [U-Boot] [PATCH v4 3/3] omap_hsmmc: Board-specific TWL4030 MMC power initializations

2014-11-11 Thread Paul Kocialkowski
Le mardi 11 novembre 2014 à 07:33 -0500, Tom Rini a écrit : On Tue, Nov 11, 2014 at 12:57:45PM +0100, Paul Kocialkowski wrote: Le lundi 10 novembre 2014 à 13:46 -0500, Tom Rini a écrit : On Sat, Nov 08, 2014 at 10:29:24PM +0100, Paul Kocialkowski wrote: Le samedi 08 novembre 2014 à 20:55

Re: [U-Boot] [PATCH 0/2] spl: MMC U-Boot image load from raw partition

2014-11-13 Thread Paul Kocialkowski
Le jeudi 13 novembre 2014 à 12:16 +0100, Albert ARIBAUD a écrit : Hello Tom, On Mon, 10 Nov 2014 13:46:09 -0500, Tom Rini tr...@ti.com wrote: On Sat, Nov 08, 2014 at 11:19:23PM +0100, Albert ARIBAUD wrote: Hello Paul, On Sat, 8 Nov 2014 23:14:54 +0100, Paul Kocialkowski cont

[U-Boot] Fastboot and MUSB driver on OMAP3

2014-12-13 Thread Paul Kocialkowski
device? -- Paul Kocialkowski, Replicant developer Replicant is a fully free Android distribution running on several devices, a free software mobile operating system putting the emphasis on freedom and privacy/security. Website: http://www.replicant.us/ Blog: http://blog.replicant.us/ Wiki

Re: [U-Boot] Fastboot and MUSB driver on OMAP3

2014-12-15 Thread Paul Kocialkowski
peripheral usb0004 tx rx == Power=f0, DevCtl=99, int_usb=0x4 generic_interrupt: 8 0 0 -- Paul Kocialkowski, Replicant developer Replicant is a fully free Android distribution running on several devices, a free software mobile operating system putting the emphasis on freedom and privacy/security

Re: [U-Boot] Fastboot and MUSB driver on OMAP3

2014-12-24 Thread Paul Kocialkowski
season! -- Paul Kocialkowski, Replicant developer Replicant is a fully free Android distribution running on several devices, a free software mobile operating system putting the emphasis on freedom and privacy/security. Website: http://www.replicant.us/ Blog: http://blog.replicant.us/ Wiki

[U-Boot] [PATCH] sunxi: Ampe A76 support

2015-02-02 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- board/sunxi/MAINTAINERS| 5 + configs/Ampe_A76_defconfig | 15 +++ 2 files changed, 20 insertions(+) create mode 100644 configs/Ampe_A76_defconfig diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS index

Re: [U-Boot] [PATCH] usb: musb-new: omap2430: Reset the MUSB controller early

2015-01-19 Thread Paul Kocialkowski
Le dimanche 18 janvier 2015 à 23:51 +0100, Marek Vasut a écrit : On Sunday, January 18, 2015 at 05:44:45 PM, Paul Kocialkowski wrote: When booting from USB peripheral boot, the bootrom will not properly deinit the MUSB controller, which doesn't clearly indicate an USB disconnection

[U-Boot] [PATCH v2] usb: musb-new: omap2430: Reset the MUSB controller early

2015-01-19 Thread Paul Kocialkowski
in a failure during set address, caused by the lack of proper disconnection notification. Resetting the controller early in U-Boot notifies the host of the disconnection and doesn't hurt other use cases. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- drivers/usb/musb-new/omap2430.c | 16

Re: [U-Boot] Fastboot and MUSB driver on OMAP3

2015-01-15 Thread Paul Kocialkowski
that the bootrom is taking and U-Boot is missing. I have looked at muxing and clocks, everything seems to be fine, so I'm starting to run out of ideas. Any suggestion or help appreciated! -- Paul Kocialkowski, Replicant developer Replicant is a fully free Android distribution running on several devices

Re: [U-Boot] Fastboot and MUSB driver on OMAP3

2015-01-18 Thread Paul Kocialkowski
initialization (which is the case when booting from USB, but not when booting with no USB cable attached). Of course, I will be submitting code for this along with the rest of the patches for LG Optimus Black (P970) codename sniper support when things are ready. -- Paul Kocialkowski, Replicant

[U-Boot] [PATCH] usb: musb-new: omap2430: Reset the MUSB controller early

2015-01-18 Thread Paul Kocialkowski
in a failure during set address, caused by the lack of proper disconnection notification. Resetting the controller early in U-Boot notifies the host of the disconnection and doesn't hurt other use cases. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- drivers/usb/musb-new/omap2430.c | 17

[U-Boot] [PATCH] sunxi: TZX-Q8-713B7 support

2015-01-27 Thread Paul Kocialkowski
This patch adds support for the TZX-Q8-713B7 tablet as described at: http://linux-sunxi.org/TZX-Q8-713B7 All the things that are expected to work are going just fine, even host USB OTG with the MUSB driver worked with both storage and a USB keyboard. The DRAM configuration was not directly

[U-Boot] [PATCH] sunxi: TZX-Q8-713B7 support

2015-01-27 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- board/sunxi/Kconfig| 4 board/sunxi/MAINTAINERS| 5 + board/sunxi/Makefile | 1 + configs/TZX-Q8-713B7_defconfig | 15 +++ 4 files changed, 25 insertions(+) create mode 100644 configs/TZX

Re: [U-Boot] [PATCH] sunxi: TZX-Q8-713B7 support

2015-01-28 Thread Paul Kocialkowski
F:configs/Mele_M5_defconfig + +TZX-Q8-713B7 BOARD +M: Paul Kocialkowski cont...@paulk.fr +S: Maintained +F: configs/TZX-Q8-713B7_defconfig diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile index 71edb83..b14a8b2 100644 --- a/board/sunxi/Makefile +++ b/board/sunxi

Re: [U-Boot] [PATCH] fastboot: Proper download gadget unregister and clear when cable is missing

2015-03-22 Thread Paul Kocialkowski
Hi, Le dimanche 15 mars 2015 à 19:12 +0100, Marek Vasut a écrit : On Sunday, March 15, 2015 at 06:28:35 PM, Paul Kocialkowski wrote: Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- common/cmd_fastboot.c | 2 ++ 1 file changed, 2 insertions(+) +CC Lukasz and Steve

Re: [U-Boot] [PATCH v2] sunxi: Serial number support, obtained from SID bits and passed through ATAG

2015-03-22 Thread Paul Kocialkowski
Le dimanche 22 mars 2015 à 12:36 +0100, Hans de Goede a écrit : Hi, On 22-03-15 12:31, Paul Kocialkowski wrote: Le dimanche 22 mars 2015 à 12:27 +0100, Hans de Goede a écrit : Hi, On 22-03-15 11:42, Paul Kocialkowski wrote: Signed-off-by: Paul Kocialkowski cont...@paulk.fr Thanks

[U-Boot] [PATCH v3] sunxi: Serial number support, obtained from SID bits and passed through ATAG

2015-03-22 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- board/sunxi/board.c| 50 +- include/configs/sunxi-common.h | 1 + 2 files changed, 41 insertions(+), 10 deletions(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index e1891d1

Re: [U-Boot] [PATCH] fastboot: Proper download gadget unregister and clear when cable is missing

2015-03-22 Thread Paul Kocialkowski
Le dimanche 22 mars 2015 à 13:24 +0100, Marek Vasut a écrit : On Sunday, March 22, 2015 at 01:05:14 PM, Paul Kocialkowski wrote: Hi, Le dimanche 15 mars 2015 à 19:12 +0100, Marek Vasut a écrit : On Sunday, March 15, 2015 at 06:28:35 PM, Paul Kocialkowski wrote: Signed-off-by: Paul

Re: [U-Boot] [PATCH 2/4] sunxi: Avoid any assumption between musb gadget and host but fallback to host

2015-03-22 Thread Paul Kocialkowski
Le samedi 21 mars 2015 à 14:14 +0100, Hans de Goede a écrit : Hi, On 15-03-15 18:27, Paul Kocialkowski wrote: musb might be used in gadget mode on sunxi, so we don't want to assume anything related to host mode, especially USB keyboard support. However, in case gadget mode

[U-Boot] [PATCH v2] sunxi: Serial number support, obtained from SID bits and passed through ATAG

2015-03-22 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- board/sunxi/board.c| 51 +- include/configs/sunxi-common.h | 1 + 2 files changed, 41 insertions(+), 11 deletions(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index e1891d1

[U-Boot] [PATCH v2 5/7] sunxi: common VBUS detection logic in usbc

2015-03-22 Thread Paul Kocialkowski
making musb support independent from a hardcoded USB controller index (0). Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- arch/arm/cpu/armv7/sunxi/usbc.c| 47 +++--- arch/arm/include/asm/arch-sunxi/usbc.h | 1 + board/sunxi/Kconfig

[U-Boot] [PATCH v2 6/7] sunxi: USB download gadget cable detection

2015-03-22 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- board/sunxi/board.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index e1891d1..becdc8b 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -241,6 +241,13 @@ static struct

[U-Boot] [PATCH v2 7/7] sunxi: Ainol AW1 support

2015-03-22 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- board/sunxi/MAINTAINERS | 5 + configs/Ainol_AW1_defconfig | 16 2 files changed, 21 insertions(+) create mode 100644 configs/Ainol_AW1_defconfig diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS index

[U-Boot] [PATCH v2 2/7] power: axp221: Virtual VBUS detect and enable GPIOs to replace separate logic

2015-03-22 Thread Paul Kocialkowski
This converts the VBUS detection and enable logic to GPIO instead of separate axp functions and checks that have to be used aside usual GPIO functions. Signed-off-by: Hans de Goede hdego...@redhat.com Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- arch/arm/include/asm/arch-sunxi/gpio.h

[U-Boot] [PATCH v2 4/7] power: axp209: VBUS detection support

2015-03-22 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- drivers/power/axp209.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/power/axp209.c b/drivers/power/axp209.c index 4565398..e1cbba9 100644 --- a/drivers/power/axp209.c +++ b/drivers/power/axp209.c

[U-Boot] [PATCH 2/2] power: axp209: Registers definitions in header

2015-03-22 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- drivers/power/axp209.c | 38 -- include/axp209.h | 38 ++ 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/drivers/power/axp209.c b/drivers/power

[U-Boot] [PATCH 1/2] power: axp152: Registers definitions in header

2015-03-22 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- drivers/power/axp152.c | 11 --- include/axp152.h | 12 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/drivers/power/axp152.c b/drivers/power/axp152.c index 27c2c4c..740a3b4 100644 --- a/drivers

[U-Boot] [PATCH 0/3] sunxi: Yones Toptech BD1078 support

2015-03-22 Thread Paul Kocialkowski
This series goes on top of my previous series that concludes with Ainol AW1 support. Also, if you're interested by the idea of using sunxi_name_to_gpio_bank, this could be extended for UART as well, where *many* different pin mux setups are possible. We are just lucky that hardware designers

[U-Boot] [PATCH 3/3] sunxi: Yones Toptech BD1078 support

2015-03-22 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- board/sunxi/MAINTAINERS| 5 + configs/Yones_Toptech_BD1078_defconfig | 21 + 2 files changed, 26 insertions(+) create mode 100644 configs/Yones_Toptech_BD1078_defconfig diff --git a/board/sunxi

[U-Boot] [PATCH 1/3] sunxi: GPIO pin mux hardware-feature-specific function index defines

2015-03-22 Thread Paul Kocialkowski
-by: Paul Kocialkowski cont...@paulk.fr --- arch/arm/cpu/armv7/sunxi/board.c | 29 +--- arch/arm/cpu/armv7/sunxi/rsb.c | 8 ++--- arch/arm/include/asm/arch-sunxi/gpio.h | 60 +++--- board/sunxi/board.c| 12 +++ board/sunxi

[U-Boot] [PATCH 2/3] sunxi: Complete mmc pin mux for each supported platform, configured with Kconfig

2015-03-22 Thread Paul Kocialkowski
and CONFIG_MMC_SUNXI_SLOT_EXTRA is enabled. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- arch/arm/include/asm/arch-sunxi/gpio.h | 13 +++- board/sunxi/Kconfig| 19 + board/sunxi/board.c| 131 +++-- drivers/gpio/sunxi_gpio.c

[U-Boot] [PATCH v2 3/7] sunxi: usb: Drop AXP-sepcific VBUS detection and drive logic

2015-03-22 Thread Paul Kocialkowski
VBUS detection and enable is now be used with virtual AXP GPIOs, so all the USB code has to use GPIO in every case and let sunxi_gpio do the heavy lifting. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- arch/arm/cpu/armv7/sunxi/usbc.c | 17 --- configs/Ippo_q8h_v1_2_defconfig

[U-Boot] [PATCH v2 1/7] sunxi: gpio: Indentation fix

2015-03-22 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- arch/arm/include/asm/arch-sunxi/gpio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/arch-sunxi/gpio.h b/arch/arm/include/asm/arch-sunxi/gpio.h index f2c247d..a66e45c 100644 --- a/arch/arm

Re: [U-Boot] [PATCH v2] sunxi: Serial number support, obtained from SID bits and passed through ATAG

2015-03-22 Thread Paul Kocialkowski
Le dimanche 22 mars 2015 à 12:27 +0100, Hans de Goede a écrit : Hi, On 22-03-15 11:42, Paul Kocialkowski wrote: Signed-off-by: Paul Kocialkowski cont...@paulk.fr Thanks this version looks good, but I would like to have some more certainty wrt how to deal with serial numbers in devicetree

[U-Boot] [PATCH 3/4] sunxi: common VBUS detection logic in usbc

2015-03-15 Thread Paul Kocialkowski
making musb support independent from a hardcoded USB controller index (0). Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- arch/arm/cpu/armv7/sunxi/usbc.c| 66 +++--- arch/arm/include/asm/arch-sunxi/usbc.h | 1 + board/sunxi/Kconfig

[U-Boot] [PATCH 2/4] sunxi: Avoid any assumption between musb gadget and host but fallback to host

2015-03-15 Thread Paul Kocialkowski
musb might be used in gadget mode on sunxi, so we don't want to assume anything related to host mode, especially USB keyboard support. However, in case gadget mode is not explicitly used, fallback to host mode. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- board/sunxi/Kconfig

[U-Boot] [PATCH] fastboot: Proper download gadget unregister and clear when cable is missing

2015-03-15 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- common/cmd_fastboot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c index 346ab80..7956a5b 100644 --- a/common/cmd_fastboot.c +++ b/common/cmd_fastboot.c @@ -23,6 +23,8 @@ static int

[U-Boot] [PATCH 2/2] sunxi: Ainol AW1 support

2015-03-15 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- board/sunxi/MAINTAINERS | 5 + configs/Ainol_AW1_defconfig | 16 2 files changed, 21 insertions(+) create mode 100644 configs/Ainol_AW1_defconfig diff --git a/board/sunxi/MAINTAINERS b/board/sunxi/MAINTAINERS index

[U-Boot] [PATCH 1/2] power: axp209: VBUS detect

2015-03-15 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- drivers/power/axp209.c | 13 + include/axp209.h | 3 +++ 2 files changed, 16 insertions(+) diff --git a/drivers/power/axp209.c b/drivers/power/axp209.c index 4565398..11fe9d7 100644 --- a/drivers/power/axp209.c +++ b

[U-Boot] [PATCH 1/4] sunxi: musb: Return early on VBUS GPIO error instead of on a positive value

2015-03-15 Thread Paul Kocialkowski
This allows printing the error message when VBUS is detected, as it would with AXP VBUS detect. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- drivers/usb/musb-new/sunxi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb

[U-Boot] [PATCH 4/4] board: sunxi: USB download gadget cable detection

2015-03-15 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- board/sunxi/board.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index e1891d1..becdc8b 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -241,6 +241,13 @@ static struct

Re: [U-Boot] [PATCH 3/4] sunxi: common VBUS detection logic in usbc

2015-03-15 Thread Paul Kocialkowski
Le dimanche 15 mars 2015 à 19:19 +0100, Marek Vasut a écrit : On Sunday, March 15, 2015 at 06:27:46 PM, Paul Kocialkowski wrote: VBUS detection could be needed not only by the musb code (to prevent host mode), but also by e.g. gadget drivers to start only when a cable is connected

Re: [U-Boot] [PATCH V6 07/11] ARM: OMAP3: Get rid of omap3_gp_romcode_call and replace with omap_smc1

2015-03-11 Thread Paul Kocialkowski
be reused on omap3. I could start looking into that, even though again, I don't have many OMAP devices to test with. -- Paul Kocialkowski, Replicant developer Replicant is a fully free Android distribution running on several devices, a free software mobile operating system putting the emphasis

Re: [U-Boot] [PATCH V6 07/11] ARM: OMAP3: Get rid of omap3_gp_romcode_call and replace with omap_smc1

2015-03-11 Thread Paul Kocialkowski
Le mercredi 11 mars 2015 à 17:16 -0400, Tom Rini a écrit : On Wed, Mar 11, 2015 at 09:26:43PM +0100, Paul Kocialkowski wrote: Le mercredi 11 mars 2015 à 11:04 -0500, Nishanth Menon a écrit : On Wed, Mar 11, 2015 at 11:00 AM, Tom Rini tr...@konsulko.com wrote: On Wed, Mar 11, 2015 at 10

Re: [U-Boot] serial atag tag in devicetree ?

2015-03-26 Thread Paul Kocialkowski
Le jeudi 26 mars 2015 à 10:11 +0100, Paul Kocialkowski a écrit : Le jeudi 26 mars 2015 à 09:53 +0100, Hans de Goede a écrit : Hi, On 25-03-15 23:35, Paul Kocialkowski wrote: Le mardi 24 mars 2015 à 09:01 +0100, Hans de Goede a écrit : Hi, On 24-03-15 00:12, Rob Herring wrote

Re: [U-Boot] serial atag tag in devicetree ?

2015-03-26 Thread Paul Kocialkowski
Le jeudi 26 mars 2015 à 09:53 +0100, Hans de Goede a écrit : Hi, On 25-03-15 23:35, Paul Kocialkowski wrote: Le mardi 24 mars 2015 à 09:01 +0100, Hans de Goede a écrit : Hi, On 24-03-15 00:12, Rob Herring wrote: On Mon, Mar 23, 2015 at 6:30 AM, Hans de Goede hdego...@redhat.com

Re: [U-Boot] serial atag tag in devicetree ?

2015-03-25 Thread Paul Kocialkowski
this. -- Paul Kocialkowski, Replicant developer Replicant is a fully free Android distribution running on several devices, a free software mobile operating system putting the emphasis on freedom and privacy/security. Website: http://www.replicant.us/ Blog: http://blog.replicant.us/ Wiki/tracker/forums

[U-Boot] [PATCH v2] sunxi: Avoid any assumption between musb gadget and host but fallback to host

2015-03-28 Thread Paul Kocialkowski
(some devices also have no USB support at all). In case gadget mode is not explicitly enabled, this will fallback to host mode. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- board/sunxi/Kconfig| 7 --- configs/MSI_Primo73_defconfig | 1 - configs/MSI_Primo81_defconfig | 1

[U-Boot] [PATCH v4 1/2] sunxi: Serial number support, obtained from SID bits

2015-03-28 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- board/sunxi/board.c | 33 ++--- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 01b654e..79516bf 100644 --- a/board/sunxi/board.c +++ b/board/sunxi

Re: [U-Boot] [PATCH] usb: Early failure when the first descriptor read fails, one way or another

2015-03-28 Thread Paul Kocialkowski
Le samedi 28 mars 2015 à 18:26 +0100, Marek Vasut a écrit : On Saturday, March 28, 2015 at 06:23:58 PM, Paul Kocialkowski wrote: When using an USB1 device on a controller that only supports USB2 (e.g. EHCI), reading the first descriptor will fail (read 0 byte), so we can abort the process

[U-Boot] [PATCH v4 2/2] sunxi: Pass serial number through ATAG

2015-03-28 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- board/sunxi/board.c| 20 include/configs/sunxi-common.h | 1 + 2 files changed, 21 insertions(+) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 79516bf..d1b3c5e 100644 --- a/board/sunxi/board.c

[U-Boot] [PATCH] fdt: Pass the board serial number through devicetree

2015-03-28 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- common/fdt_support.c | 25 + common/image-fdt.c| 4 include/fdt_support.h | 1 + 3 files changed, 30 insertions(+) diff --git a/common/fdt_support.c b/common/fdt_support.c index 8266bca..a97b4f0 100644

[U-Boot] [PATCH 7/7] sunxi: A20-OLinuXino-Lime2 USB0 VBUS detect and enable pins

2015-03-29 Thread Paul Kocialkowski
This allows enabling MUSB (on the OTG port). Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- configs/A20-OLinuXino-Lime2_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/A20-OLinuXino-Lime2_defconfig b/configs/A20-OLinuXino-Lime2_defconfig index 1f4fa12..4fcff92

[U-Boot] [PATCH 5/7] sunxi: A20-OLinuXino-Lime2 mmc0 card-detect pin

2015-03-29 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- configs/A20-OLinuXino-Lime2_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/A20-OLinuXino-Lime2_defconfig b/configs/A20-OLinuXino-Lime2_defconfig index 8c76360..1f4fa12 100644 --- a/configs/A20-OLinuXino-Lime2_defconfig

[U-Boot] [PATCH 6/7] sunxi: Cubieboard2 mmc0 card-detect pin

2015-03-29 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- configs/Cubieboard2_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/Cubieboard2_defconfig b/configs/Cubieboard2_defconfig index 05b11a0..d866ad1 100644 --- a/configs/Cubieboard2_defconfig +++ b/configs

[U-Boot] [PATCH 1/7] sunxi: TZX-Q8-713B7 mmc0 card-detect pin

2015-03-29 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- configs/TZX-Q8-713B7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/TZX-Q8-713B7_defconfig b/configs/TZX-Q8-713B7_defconfig index 4ff4542..0953554 100644 --- a/configs/TZX-Q8-713B7_defconfig +++ b/configs/TZX-Q8

[U-Boot] [PATCH 4/7] sunxi: Yones Toptech BD1078 mmc0 and mmc1 card-detect pins

2015-03-29 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- configs/Yones_Toptech_BD1078_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/Yones_Toptech_BD1078_defconfig b/configs/Yones_Toptech_BD1078_defconfig index 99cc0a7..00ede67 100644 --- a/configs

Re: [U-Boot] [RESEND] [PATCH] fastboot: Proper download gadget unregister and clear when cable is missing

2015-03-30 Thread Paul Kocialkowski
Le lundi 30 mars 2015 à 10:06 +0200, Lukasz Majewski a écrit : Hi Paul, Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- common/cmd_fastboot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c index 346ab80..7956a5b 100644

Re: [U-Boot] [PATCH] usb: Early failure when the first descriptor read fails, one way or another

2015-03-30 Thread Paul Kocialkowski
Le lundi 30 mars 2015 à 01:47 +0200, Marek Vasut a écrit : On Saturday, March 28, 2015 at 06:31:42 PM, Paul Kocialkowski wrote: Le samedi 28 mars 2015 à 18:26 +0100, Marek Vasut a écrit : On Saturday, March 28, 2015 at 06:23:58 PM, Paul Kocialkowski wrote: When using an USB1 device

Re: [U-Boot] [PATCH v2 1/3] usb: usb_new_device return codes consistency

2015-03-30 Thread Paul Kocialkowski
Le lundi 30 mars 2015 à 10:06 +0200, Lukasz Majewski a écrit : Hi Paul, Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- common/usb.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/usb.c b/common/usb.c index 32e15cd..ea5b406 100644

Re: [U-Boot] [PATCH 1/4] sunxi: musb: Fix some lo speed devices not working with musb host

2015-03-30 Thread Paul Kocialkowski
Le vendredi 27 mars 2015 à 22:06 +0100, Hans de Goede a écrit : The usb0 / otg phy on sunxi boards has a bug where it wrongly detects a high speed squelch on usb reset deassert when a lo speed device is plugged in. The android kernel has a work around for this in the form of temporary

Re: [U-Boot] serial atag tag in devicetree ?

2015-03-27 Thread Paul Kocialkowski
Le jeudi 26 mars 2015 à 23:30 -0500, Rob Herring a écrit : On Thu, Mar 26, 2015 at 4:11 AM, Paul Kocialkowski cont...@paulk.fr wrote: Le jeudi 26 mars 2015 à 09:53 +0100, Hans de Goede a écrit : Hi, On 25-03-15 23:35, Paul Kocialkowski wrote: Le mardi 24 mars 2015 à 09:01 +0100, Hans

[U-Boot] [PATCH] usb: Early failure when the first descriptor read fails, one way or another

2015-03-28 Thread Paul Kocialkowski
When using an USB1 device on a controller that only supports USB2 (e.g. EHCI), reading the first descriptor will fail (read 0 byte), so we can abort the process at this point instead of failing later and wasting time. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- common/usb.c | 5

[U-Boot] [RESEND] [PATCH] fastboot: Proper download gadget unregister and clear when cable is missing

2015-03-28 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- common/cmd_fastboot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c index 346ab80..7956a5b 100644 --- a/common/cmd_fastboot.c +++ b/common/cmd_fastboot.c @@ -23,6 +23,8 @@ static int

Re: [U-Boot] [PATCH v2] sunxi: Avoid any assumption between musb gadget and host but fallback to host

2015-03-29 Thread Paul Kocialkowski
Le dimanche 29 mars 2015 à 13:18 +0200, Hans de Goede a écrit : Hi, On 28-03-15 18:26, Paul Kocialkowski wrote: musb might be used in gadget mode on sunxi, so we don't want to assume anything related to host mode, especially USB keyboard support. Thus, there is no reason to keep

[U-Boot] [PATCH v2 2/3] usb: Check usb_new_device for failure

2015-03-29 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- common/usb.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/common/usb.c b/common/usb.c index ea5b406..67e2350 100644 --- a/common/usb.c +++ b/common/usb.c @@ -95,18 +95,24 @@ int usb_init(void

[U-Boot] [PATCH v2 3/3] usb: Early failure when the first descriptor read fails or is invalid

2015-03-29 Thread Paul Kocialkowski
This may happen when using an USB1 device on a controller that only supports USB2 (e.g. EHCI). Reading the first descriptor will fail (read 0 byte), so we can abort the process at this point instead of failing later and wasting time. Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- common

[U-Boot] [PATCH v2 1/3] usb: usb_new_device return codes consistency

2015-03-29 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- common/usb.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/usb.c b/common/usb.c index 32e15cd..ea5b406 100644 --- a/common/usb.c +++ b/common/usb.c @@ -915,7 +915,7 @@ int usb_new_device(struct usb_device

Re: [U-Boot] [PATCH] usb: Early failure when the first descriptor read fails, one way or another

2015-03-29 Thread Paul Kocialkowski
just don't think it's a necessity. Nervermind this, I have sent out a v2 addressing you concern. Thanks! + return 1; } dev-devnum = addr; -- Paul Kocialkowski, Replicant developer Replicant is a fully free Android distribution running on several devices, a free

[U-Boot] [PATCH 3/7] sunxi: Ainol AW1 mmc0 card-detect pin

2015-03-29 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- configs/Ainol_AW1_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/Ainol_AW1_defconfig b/configs/Ainol_AW1_defconfig index 5cb8fc1..e5c2e21 100644 --- a/configs/Ainol_AW1_defconfig +++ b/configs/Ainol_AW1_defconfig @@ -6,6

[U-Boot] [PATCH 2/7] sunxi: Ampe A76 mmc0 card-detect pin

2015-03-29 Thread Paul Kocialkowski
Signed-off-by: Paul Kocialkowski cont...@paulk.fr --- configs/Ampe_A76_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/Ampe_A76_defconfig b/configs/Ampe_A76_defconfig index af8aefa..af7638d 100644 --- a/configs/Ampe_A76_defconfig +++ b/configs

  1   2   3   4   5   6   >