From mboxrd@z Thu Jan 1 00:00:00 1970 From: Derald D. Woods Date: Wed, 24 Feb 2016 16:47:57 -0600 Subject: [U-Boot] [PATCH] dm: ns16550: Add support for reg-offset property In-Reply-To: <56CD9351.20802@xilinx.com> References: <70bfc564698cfd32c932a382a98321be169ccd87.1455635867.git.michal.simek@xilinx.com> <56CABB54.8070901@xilinx.com> <56CD9351.20802@xilinx.com> Message-ID: <20160224224757.GA2651@exodus> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Feb 24, 2016 at 12:26:09PM +0100, Michal Simek wrote: > On 24.2.2016 11:56, Adam Ford wrote: > > On Tue, Feb 23, 2016 at 12:38 AM, Simon Glass wrote: > >> Hi Michal, > >> > >> On 22 February 2016 at 00:40, Michal Simek wrote: > >>> On 19.2.2016 21:55, Simon Glass wrote: > >>>> Hi Michal, > >>>> > >>>> On 16 February 2016 at 08:17, Michal Simek wrote: > >>>>> reg-offset is the part of standard 8250 binding in the kernel. > >>>>> It is shifting start of address space by reg-offset. > >>>>> On Xilinx platform this offset is typically 0x1000. > >>>>> > >>>>> Signed-off-by: Michal Simek > >>>>> --- > >>>>> > >>>>> drivers/serial/ns16550.c | 6 ++++-- > >>>>> include/ns16550.h | 1 + > >>>>> 2 files changed, 5 insertions(+), 2 deletions(-) > >>>> > >>>> Reviewed-by: Simon Glass > >>>> > >>>> Do you support the debug UART feature on your boards? > >>> > >>> yes. I do support it but there you can put just address plus offset and > >>> there is no reason to add one more option to Kconfig. > >>> But let me know if you think that this is incorrect flow. > >> > > > > This patch seems to break my OMAP3 board. Does anyone know if I need > > to set a certain offset for OMAP3 to make this work (and where is the > > right place for it) ? > > Are you using DT init? Check your DT description if there is reg-offset > property. I expect if your board worked before and you remove this > property it will start to work again. > Would it be appropriate to initialize 'plat->reg_offset' to zero for the non-OF_CONTROL cases? Derald D. Woods > Thanks, > Michal > > > _______________________________________________ > U-Boot mailing list > U-Boot at lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot