X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fs3c2440_nand.c;h=dc64ad6d2bfd3a8cc4c2189120a7ef7d77f51521;hp=4e3234f8a430d627688e90ec2a6a9655a1308a7e;hb=e66f9aaba94e232f87c725f2fce98cfb3f92679f;hpb=3d6bcf07921753141a3905ee5619724573460cb3 diff --git a/src/flash/s3c2440_nand.c b/src/flash/s3c2440_nand.c index 4e3234f8a4..dc64ad6d2b 100644 --- a/src/flash/s3c2440_nand.c +++ b/src/flash/s3c2440_nand.c @@ -1,14 +1,26 @@ -/* src/flash/s3c2440_nand.c - * +/*************************************************************************** + * Copyright (C) 2007, 2008 by Ben Dooks * + * ben@fluff.org * + * * + * 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. * + ***************************************************************************/ + +/* * S3C2440 OpenOCD NAND Flash controller support. * - * Copyright 2007,2008 Ben Dooks - * - * 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. - * * Many thanks to Simtec Electronics for sponsoring this work. */ @@ -73,7 +85,6 @@ int s3c2440_init(struct nand_device_s *device) { s3c24xx_nand_controller_t *s3c24xx_info = device->controller_priv; target_t *target = s3c24xx_info->target; - u32 version; target_write_u32(target, S3C2410_NFCONF, S3C2440_NFCONF_TACLS(3) |