From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Thu, 10 Oct 2013 18:57:08 +0200 Subject: [U-Boot] [PATCH 2/3] lcd: add DataImage SCF0403x LCD panel support In-Reply-To: <1381329965-7775-3-git-send-email-nikita@compulab.co.il> References: <1381329965-7775-1-git-send-email-nikita@compulab.co.il> <1381329965-7775-3-git-send-email-nikita@compulab.co.il> Message-ID: <20131010185708.2d3bd9b4@crub> 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, 9 Oct 2013 17:46:04 +0300 Nikita Kiryanov wrote: ... > diff --git a/drivers/video/scf0403_lcd.c b/drivers/video/scf0403_lcd.c > new file mode 100644 > index 0000000..1d1c3ff > --- /dev/null > +++ b/drivers/video/scf0403_lcd.c > @@ -0,0 +1,298 @@ > +/* > + * scf0403.c -- support for DataImage SCF0403 LCD > + * > + * Copyright (c) 2013 Adapted from Linux driver: > + * Copyright (c) 2012 Anders Electronics plc. All Rights Reserved. > + * Copyright (c) 2012 CompuLab, Ltd > + * Dmitry Lifshitz > + * Ilya Ledvich > + * Inspired by Alberto Panizzo & > + * Marek Vasut work in l4f00242t03.c > + * > + * U-Boot port: Nikita Kiryanov > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. please use "SPDX-License-Identifier: GPL-2.0" here. See Licenses/README for more info. ... > + for (i = 0; i < priv->seq_size; i++) { > + if (scf0403_spi_transfer(priv->spi, &priv->init_seq[i].cmd) < 0) > + printf("SPI transfer failed\n"); using puts() for not formatted strings is preferred, please check in other places, too. > +++ b/include/scf0403_lcd.h > @@ -0,0 +1,22 @@ ... > + * You should have received a copy of the GNU General Public License > + * along with this program; if not, write to the Free Software > + * Foundation, Inc. also please use SPDX license identifier here, too. Thanks, Anatolij