X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fblock%2Fftide020.c;h=1f6995ec2e18a6698e96442ebfd042426cd6b78d;hb=d47c961695dd60ed7e54dc61c16ef3f3173fe3ea;hp=2eef3e939aaf44408f512f82d68ecc26a5de1753;hpb=4bed7265f2ce2e986ab11f0c9382a5ac2899d630;p=u-boot diff --git a/drivers/block/ftide020.c b/drivers/block/ftide020.c index 2eef3e939a..1f6995ec2e 100644 --- a/drivers/block/ftide020.c +++ b/drivers/block/ftide020.c @@ -6,24 +6,7 @@ * Macpaul Lin * Kuo-Wei Chou * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * 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., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA - * + * SPDX-License-Identifier: GPL-2.0+ */ /* ftide020.c - ide support functions for the FTIDE020_S controller */ @@ -54,8 +37,6 @@ #define WRITE_CMD(x) outl((x), &ftide020->cmd_fifo) /* 0x04 */ #define READ_STATUS() inl(&ftide020->cmd_fifo) /* 0x04 */ -#define mdelay(n) ({unsigned long msec = (n); while (msec--) udelay(1000); }) - void ftide_set_device(int cx8, int dev) { static struct ftide020_s *ftide020 = (struct ftide020_s *) FTIDE_BASE; @@ -83,7 +64,7 @@ void ide_write_register(int dev, unsigned int port, unsigned char val) IDE_REG_DA_WRITE(port) | val); } -void ide_write_data(int dev, ulong *sect_buf, int words) +void ide_write_data(int dev, const ulong *sect_buf, int words) { static struct ftide020_s *ftide020 = (struct ftide020_s *) FTIDE_BASE; @@ -318,10 +299,9 @@ int ide_preinit(void) /* auto-detect IDE controller */ if (ftide_controller_probe()) { - printf("Faraday %s driver version %s\n", FTIDE_IP_NAME, - FTIDE_DRIVER_VERSION); + printf("FTIDE020_S\n"); } else { - printf("Faraday ATA controller not found.\n"); + printf("FTIDE020_S ATA controller not found.\n"); return API_ENODEV; }