]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
Blackfin: bf533-ezkit: shuffle flash defines a little
authorMike Frysinger <vapier@gentoo.org>
Sun, 12 Oct 2008 00:30:28 +0000 (20:30 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 28 Jan 2009 18:26:13 +0000 (13:26 -0500)
Some of the flash defines weren't in the correct location and caused build
problems in some configurations, so let's move types and defines to better
local locations.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
board/bf533-ezkit/bf533-ezkit.c
board/bf533-ezkit/flash-defines.h
board/bf533-ezkit/flash.c

index 42c4b50555114bb7c67aee3ddfcd8242217c8802..69730828cfa5be4337c880284a49bffc482a5836 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * U-boot - ezkit533.c
+ * U-boot - main board file
  *
- * Copyright (c) 2005-2007 Analog Devices Inc.
+ * Copyright (c) 2005-2008 Analog Devices Inc.
  *
  * (C) Copyright 2000-2004
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
@@ -26,9 +26,8 @@
  */
 
 #include <common.h>
-#if defined(CONFIG_MISC_INIT_R)
 #include "psd4256.h"
-#endif
+#include "flash-defines.h"
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -58,7 +57,6 @@ phys_size_t initdram(int board_type)
        return CONFIG_SYS_MAX_RAM_SIZE;
 }
 
-#if defined(CONFIG_MISC_INIT_R)
 /* miscellaneous platform dependent initialisations */
 int misc_init_r(void)
 {
@@ -71,4 +69,3 @@ int misc_init_r(void)
 
        return 0;
 }
-#endif
index 1a4aa5f2f706de1a72eeeef38035a06a5629b973..eb0af947979ffb420a7ec5cd18b063133e072a44 100644 (file)
@@ -50,6 +50,7 @@
 #define FLASH_SIZE             0x220000
 #define FLASH_MAN_ST           2
 #define CONFIG_SYS_FLASH0_BASE         0x20000000
+#define CONFIG_SYS_FLASH1_BASE         0x20200000
 #define RESET_VAL              0xF0
 
 flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
@@ -68,9 +69,6 @@ int write_flash(long nOffset, int nValue);
 void get_sector_number(long lOffset, int *pnSector);
 int GetSectorProtectionStatus(flash_info_t * info, int nSector);
 int GetOffset(int nBlock);
-int AFP_NumSectors = 40;
-long AFP_SectorSize1 = 0x10000;
-int AFP_SectorSize2 = 0x4000;
 
 #define WRITESEQ1              0x0AAA
 #define WRITESEQ2              0x0554
index a861e16a3df40790d25009840bc239b9f3d888b6..539c00d52f465e641d51793a2e7466cbf36b1cb4 100644 (file)
 #include <asm/io.h>
 #include "flash-defines.h"
 
+int AFP_NumSectors = 40;
+long AFP_SectorSize1 = 0x10000;
+int AFP_SectorSize2 = 0x4000;
+
 void flash_reset(void)
 {
        reset_flash();