Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1734730
| From | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] nvmem: sunxi-sid: add support for A64/H5's SID controller |
| Date | 2017-09-19 10:30 +0200 |
| Message-ID | <urm4N-1KA-1@gated-at.bofh.it> (permalink) |
| References | <ur6t4-88P-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Mon, Sep 18, 2017 at 11:42:04PM +0800, Icenowy Zheng wrote:
> Allwinner A64/H5 SoCs come with a SID controller like the one in H3, but
> without the silicon bug that makes the initial value at 0x200 wrong, so
> the value at 0x200 can be directly read.
>
> Add support for this kind of SID controller.
>
> Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
> ---
> Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt | 1 +
> drivers/nvmem/sunxi_sid.c | 6 ++++++
> 2 files changed, 7 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt b/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt
> index ef06d061913c..6ea0836939ee 100644
> --- a/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt
> +++ b/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt
> @@ -5,6 +5,7 @@ Required properties:
> "allwinner,sun4i-a10-sid"
> "allwinner,sun7i-a20-sid"
> "allwinner,sun8i-h3-sid"
> + "allwinner,sun50i-a64-sid"
>
> - reg: Should contain registers location and length
>
> diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c
> index 0d6648be93b8..3c9fd4fb9207 100644
> --- a/drivers/nvmem/sunxi_sid.c
> +++ b/drivers/nvmem/sunxi_sid.c
> @@ -199,10 +199,16 @@ static const struct sunxi_sid_cfg sun8i_h3_cfg = {
> .need_register_readout = true,
> };
>
> +static const struct sunxi_sid_cfg sun50i_a64_cfg = {
> + .value_offset = 0x200,
> + .size = 0x100,
> +};
> +
How did you get those values?
Also, it's reported that the SID can only be accessed in secure mode,
did you test it?
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] nvmem: sunxi-sid: add support for A64/H5's SID controller Icenowy Zheng <icenowy@aosc.io> - 2017-09-18 17:50 +0200
Re: [PATCH] nvmem: sunxi-sid: add support for A64/H5's SID controller Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-09-19 10:30 +0200
Re: [linux-sunxi] Re: [PATCH] nvmem: sunxi-sid: add support for A64/H5's SID controller Icenowy Zheng <icenowy@aosc.io> - 2017-09-19 11:00 +0200
Re: [linux-sunxi] Re: [PATCH] nvmem: sunxi-sid: add support for A64/H5's SID controller Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-09-19 14:00 +0200
Re: [linux-sunxi] Re: [PATCH] nvmem: sunxi-sid: add support for A64/H5's SID controller icenowy@aosc.io - 2017-09-19 14:20 +0200
Re: [PATCH] nvmem: sunxi-sid: add support for A64/H5's SID controller Rob Herring <robh@kernel.org> - 2017-09-22 01:20 +0200
csiph-web