[U-Boot-Users] [PATCH] Fix compilation error for TASREG

From: TsiChung Liew Tsi-Chung.Liew@freescale.com
TASREG is ColdFire platform, the include ppc4xx.h in board/esd/common/flash.c causes conflict.
Signed-off-by: TsiChung Liew Tsi-Chung.Liew@freescale.com --- board/esd/common/flash.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/board/esd/common/flash.c b/board/esd/common/flash.c index dca10be..bda361e 100644 --- a/board/esd/common/flash.c +++ b/board/esd/common/flash.c @@ -22,7 +22,9 @@ */
#include <common.h> +#ifdef __PPC__ #include <ppc4xx.h> +#endif #include <asm/processor.h>
flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */

In message 1217551986-6342-1-git-send-email-Tsi-Chung.Liew@freescale.com you wrote:
From: TsiChung Liew Tsi-Chung.Liew@freescale.com
TASREG is ColdFire platform, the include ppc4xx.h in board/esd/common/flash.c causes conflict.
Signed-off-by: TsiChung Liew Tsi-Chung.Liew@freescale.com
board/esd/common/flash.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
Matthias, is there any reason to stick at all with that old custom flash driver?
May I please ask you to convert your boards to using the CFI driver for the next U-Boot version, and dump this old driver?
Best regards,
Wolfgang Denk
participants (2)
-
Tsi-Chung Liew
-
Wolfgang Denk