]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - tools/ublimage.h
arm: bcmcygnus: Enable Ethernet support
[karo-tx-uboot.git] / tools / ublimage.h
index c9266890cede13c7d591aacf70dc3ac7d8329d6d..32cc5822cab36a07cd9c2eef669d847c77e28946 100644 (file)
@@ -6,34 +6,12 @@
  * (C) Copyright 2009
  * Stefano Babic, DENX Software Engineering, sbabic@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+
  */
 
 #ifndef _UBLIMAGE_H_
 #define _UBLIMAGE_H_
 
-#include <config.h>
-
-#if !defined(CONFIG_SYS_UBL_BLOCK)
-#define CONFIG_SYS_UBL_BLOCK 512
-#endif
-
 enum ublimage_cmd {
        CMD_INVALID,
        CMD_BOOT_MODE,
@@ -71,6 +49,9 @@ enum ublimage_fld_types {
 /* Define max UBL image size */
 #define UBL_IMAGE_SIZE              (0x00003800u)
 
+/* one NAND block */
+#define UBL_BLOCK_SIZE 2048
+
 /* from sprufg5a.pdf Table 109 */
 struct ubl_header {
        uint32_t        magic;  /* Magic Number, see UBL_* defines */
@@ -97,7 +78,7 @@ struct ubl_header {
                                 * Magic Number indicates fast EMIF boot).
                                 */
        /* to fit in one nand block */
-       unsigned char   res[CONFIG_SYS_UBL_BLOCK - 8 * 4];
+       unsigned char   res[UBL_BLOCK_SIZE - 8 * 4];
 };
 
 #endif /* _UBLIMAGE_H_ */