[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140609112311.GA22176@pengutronix.de>
Date: Mon, 9 Jun 2014 13:23:11 +0200
From: Philipp Zabel <pza@...gutronix.de>
To: Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>
Cc: Antoine Ténart
<antoine.tenart@...e-electrons.com>, p.zabel@...gutronix.de,
alexandre.belloni@...e-electrons.com,
thomas.petazzoni@...e-electrons.com, zmxu@...vell.com,
jszhang@...vell.com, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/9] reset: add the Berlin reset controller driver
Hi Sebastian,
On Mon, Jun 09, 2014 at 12:32:50PM +0200, Sebastian Hesselbarth wrote:
> I currently have no way to look it up myself, but is reset API providing
> a way to deal with phandle+specifier with more than one parameter?
You could provide a custom rcdev->of_xlate callback and encode
multiple phandle args into the reset line "index".
static int of_reset_xlate(struct reset_controller_dev *rcdev,
const struct of_phandle_args *reset_spec)
{
return reset_spec->args[0] * 32 + reset_spec->args[1];
}
> Chip-ctrl has a bunch of other reset bits spread over the regset, having
> the offset encoded in the specifier would save us some SoC specific
> boiler plate, i.e.
>
> reset = <&chip 0x104 14>;
That should be possible.
regards
Philipp
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists