From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Brodkin Date: Fri, 23 Feb 2018 18:08:46 +0000 Subject: [U-Boot] [RFC] ns16550: Add support for AUX regs usage on some ARC SoCs In-Reply-To: References: <20180221122605.8128-1-abrodkin@synopsys.com> <1519316626.19466.15.camel@synopsys.com> Message-ID: <1519409325.4047.6.camel@synopsys.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, On Thu, 2018-02-22 at 10:29 -0700, Simon Glass wrote: > Hi Alexey, > > On 22 February 2018 at 09:23, Alexey Brodkin > wrote: > > Hi Simon, > > > > On Thu, 2018-02-22 at 09:17 -0700, Simon Glass wrote: > > > Hi, > > > > > > On 21 February 2018 at 05:26, Alexey Brodkin > > > wrote: [snip] > > > > --- > > > > drivers/serial/ns16550.c | 11 +++++++++-- > > > > 1 file changed, 9 insertions(+), 2 deletions(-) > > > > > > I think a separate driver might be better, unless we want to make the > > > read/write interface go through regmap or similar? > > > > But in case of ARC's AUX regs portmap won't help because those AUX regs are > > couldn't be mapped - that a completely different address space and we may > > only access them via dedicated instructions (LR vs LD and SR vs ST). > > Well... > > 1. With a separate driver, you can do whatever you want :-) I know it > introduces code duplication though... > > 2. With regmap you can add your own regmap driver, and again do > whatever you want. I can help with that if it sounds attractive That sounds definitely interesting! Are there any pointers on how that usually done? -Alexey