]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/evb64260/intel_flash.c
board: gdsys: Enable scrambling on DP501
[karo-tx-uboot.git] / board / evb64260 / intel_flash.c
index ed6a2a029221e01b4b7e4ae36bda05b206e1f2a6..9acc3a00106e889d1e0f5c5504f6ccd2aab3b3e7 100644 (file)
@@ -2,24 +2,7 @@
  * (C) Copyright 2000
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
- * 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+
  * Hacked for the Hymod board by Murray.Jensen@cmst.csiro.au, 20-Oct-00
  */
 
@@ -157,7 +140,7 @@ write_word_intel(bank_addr_t addr, bank_word_t value)
        /* data polling for D7 */
        start = get_timer (0);
        do {
-               if (get_timer(start) > CFG_FLASH_WRITE_TOUT) {
+               if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) {
                        retval = 1;
                        goto done;
                }
@@ -234,7 +217,7 @@ flash_erase_intel(flash_info_t *info, int s_first, int s_last)
                        do {
                                now = get_timer(start);
 
-                               if (now - estart > CFG_FLASH_ERASE_TOUT) {
+                               if (now - estart > CONFIG_SYS_FLASH_ERASE_TOUT) {
                                        printf ("Timeout (sect %d)\n", sect);
                                        haderr = 1;
                                        break;