Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1331830 > unrolled thread
| Started by | Matthias Brugger <matthias.bgg@gmail.com> |
|---|---|
| First post | 2016-02-11 12:30 +0100 |
| Last post | 2016-02-11 12:30 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH V5 10/11] soc: mediatek: PMIC wrap: add mt6323 slave support Matthias Brugger <matthias.bgg@gmail.com> - 2016-02-11 12:30 +0100
| From | Matthias Brugger <matthias.bgg@gmail.com> |
|---|---|
| Date | 2016-02-11 12:30 +0100 |
| Subject | Re: [PATCH V5 10/11] soc: mediatek: PMIC wrap: add mt6323 slave support |
| Message-ID | <r0XBE-7Z0-9@gated-at.bofh.it> |
On 07/02/16 11:42, John Crispin wrote:
> Add support for MT6323 slaves. This PMIC can be found on MT2701 and MT7623
> EVB. The only function that we need to touch is pwrap_init_cipher().
>
> Signed-off-by: John Crispin <blogic@openwrt.org>
> ---
> drivers/soc/mediatek/mtk-pmic-wrap.c | 47 ++++++++++++++++++++++++++++++++++
> 1 file changed, 47 insertions(+)
>
> diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c
> index 2628271..5fbdd5c 100644
> --- a/drivers/soc/mediatek/mtk-pmic-wrap.c
> +++ b/drivers/soc/mediatek/mtk-pmic-wrap.c
> @@ -91,6 +91,31 @@ enum dew_regs {
> PWRAP_DEW_CIPHER_RDY,
> PWRAP_DEW_CIPHER_MODE,
> PWRAP_DEW_CIPHER_SWRST,
> +
> + /* MT6323 only regs */
> + PWRAP_DEW_CRC_SWRST,
> + PWRAP_DEW_CIPHER_EN,
> + PWRAP_DEW_RDDMY_NO,
> + PWRAP_DEW_RDATA_DLY_SEL,
> +};
We just use PWRAP_DEW_CIPHER_EN, right?
I think it makes the code more readable if we just declare the registers
we actually need.
Thanks,
Matthias
Back to top | Article view | linux.kernel
csiph-web