[linux-sunxi] Re: [PATCH v3 3/4] mfd: axp20x: Add a cell for the usb power_supply part of the axp20x PMICs

2015-07-07 Thread Lee Jones
On Fri, 26 Jun 2015, Hans de Goede wrote: Add a cell for the usb power_supply part of the axp20x PMICs. Note that this cell is only for the usb power_supply part and not the ac-power / battery-charger / rtc-backup-bat-charger bits. Depending on the board each of those must be enabled /

[linux-sunxi] Re: [PATCH v3 2/4] mfd: axp20x: Add missing registers, and mark more registers volatile

2015-07-07 Thread Lee Jones
On Fri, 26 Jun 2015, Hans de Goede wrote: From: Bruno Prémont bonb...@linux-vserver.org Add an extra set of registers which is necessary tu support the PMICs battery charger function, and mark registers which contain status bits, gpio status, and adc readings as volatile. Cc: Bruno

Re: [linux-sunxi] [PATCH] sunxi-tools: [RFC] extend fel utility to handle SPL + U-Boot binary

2015-07-07 Thread Hans de Goede
Hi, On 06-07-15 16:28, Ian Campbell wrote: On Mon, 2015-07-06 at 14:11 +0200, Hans de Goede wrote: Hi, On 06-07-15 09:02, Bernhard Nortmann wrote: Hello Hans! Am 05.07.2015 11:54, schrieb Hans de Goede: This seems like a good idea to me, am I reading both the --help and the code correctly

Re: [linux-sunxi] [PATCH] sunxi-tools: [RFC] extend fel utility to handle SPL + U-Boot binary

2015-07-07 Thread Bernhard Nortmann
Am 07.07.2015 11:19, schrieb Hans de Goede: We could agree upon a special magic signature between the fel tool and the sunxi u-boot code which means that u-boot should patch its boot_cmd in the env to load a script from DRAM (at a fixed offset). We could always do the boot_cmd patching when in

Re: [linux-sunxi] [PATCH] sunxi-tools: [RFC] extend fel utility to handle SPL + U-Boot binary

2015-07-07 Thread Ian Campbell
On Tue, 2015-07-07 at 11:19 +0200, Hans de Goede wrote: Hi, On 06-07-15 16:28, Ian Campbell wrote: On Mon, 2015-07-06 at 14:11 +0200, Hans de Goede wrote: Hi, On 06-07-15 09:02, Bernhard Nortmann wrote: Hello Hans! Am 05.07.2015 11:54, schrieb Hans de Goede: This seems like a

Re: [linux-sunxi] Re: [PATCH v3 3/4] mfd: axp20x: Add a cell for the usb power_supply part of the axp20x PMICs

2015-07-07 Thread Hans de Goede
Hi, On 07-07-15 09:01, Lee Jones wrote: On Fri, 26 Jun 2015, Hans de Goede wrote: Add a cell for the usb power_supply part of the axp20x PMICs. Note that this cell is only for the usb power_supply part and not the ac-power / battery-charger / rtc-backup-bat-charger bits. Depending on the

Re: [linux-sunxi] [PATCH] sunxi-tools: [RFC] extend fel utility to handle SPL + U-Boot binary

2015-07-07 Thread Hans de Goede
Hi Bernhard, On 07-07-15 11:26, Bernhard Nortmann wrote: Am 06.07.2015 16:28, schrieb Ian Campbell: On Mon, 2015-07-06 at 14:11 +0200, Hans de Goede wrote: Ah right, I guess that makes sense, but if this is not going to be a fire and forget command, and people still need to run more fel

Re: [linux-sunxi] [PATCH] sunxi-tools: [RFC] extend fel utility to handle SPL + U-Boot binary

2015-07-07 Thread Bernhard Nortmann
Am 06.07.2015 16:28, schrieb Ian Campbell: On Mon, 2015-07-06 at 14:11 +0200, Hans de Goede wrote: Ah right, I guess that makes sense, but if this is not going to be a fire and forget command, and people still need to run more fel commands after it then I'm wondering it this is worth the

Re: [linux-sunxi] [PATCH] sunxi-tools: [RFC] extend fel utility to handle SPL + U-Boot binary

2015-07-07 Thread Hans de Goede
Hi, On 07-07-15 11:39, Bernhard Nortmann wrote: Am 07.07.2015 11:19, schrieb Hans de Goede: We could agree upon a special magic signature between the fel tool and the sunxi u-boot code which means that u-boot should patch its boot_cmd in the env to load a script from DRAM (at a fixed offset).

[linux-sunxi] Re: [PATCH v10 4/5] crypto: Add Allwinner Security System crypto accelerator

2015-07-07 Thread Maxime Ripard
Hi Corentin, On Mon, Jul 06, 2015 at 09:10:47PM +0200, LABBE Corentin wrote: Add support for the Security System included in Allwinner SoC A20. The Security System is a hardware cryptographic accelerator that support: - MD5 and SHA1 hash algorithms - AES block cipher in CBC/ECB mode with

[linux-sunxi] Re: [PATCH v10 4/5] crypto: Add Allwinner Security System crypto accelerator

2015-07-07 Thread Herbert Xu
On Mon, Jul 06, 2015 at 09:10:47PM +0200, LABBE Corentin wrote: +int sun4i_hash_init(struct ahash_request *areq) +{ + const char *hash_type; + struct sun4i_req_ctx *op = ahash_request_ctx(areq); + struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); + struct ahash_alg *alg