summaryrefslogtreecommitdiff
path: root/board/atmel/atstk1000/flash.c
diff options
context:
space:
mode:
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2008-04-29 12:53:05 +0200
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2008-05-27 15:27:29 +0200
commit781eb9a1e4af4bd34c138e6126ec5cc6dd4b5440 (patch)
treec1f48ea5a6ac83fb8372839e45c4c1c7018185e4 /board/atmel/atstk1000/flash.c
parentcdd42c0c7a5205fc380912d83229069a71ea3abf (diff)
downloadu-boot-imx-781eb9a1e4af4bd34c138e6126ec5cc6dd4b5440.zip
u-boot-imx-781eb9a1e4af4bd34c138e6126ec5cc6dd4b5440.tar.gz
u-boot-imx-781eb9a1e4af4bd34c138e6126ec5cc6dd4b5440.tar.bz2
avr32: Get rid of the .flashprog section
The .flashprog section was only needed back when we were running directly from flash, and it's even more useless on NGW100 since it uses the CFI flash driver which never used this workaround in the first place. Remove it on STK1000 as well, and get rid of all the associated code and annotations. Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'board/atmel/atstk1000/flash.c')
-rw-r--r--board/atmel/atstk1000/flash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/atmel/atstk1000/flash.c b/board/atmel/atstk1000/flash.c
index 4047825..12537f3 100644
--- a/board/atmel/atstk1000/flash.c
+++ b/board/atmel/atstk1000/flash.c
@@ -30,7 +30,7 @@ DECLARE_GLOBAL_DATA_PTR;
flash_info_t flash_info[1];
-static void __flashprog flash_identify(uint16_t *flash, flash_info_t *info)
+static void flash_identify(uint16_t *flash, flash_info_t *info)
{
unsigned long flags;
@@ -76,7 +76,7 @@ void flash_print_info(flash_info_t *info)
info->size >> 10, info->sector_count);
}
-int __flashprog flash_erase(flash_info_t *info, int s_first, int s_last)
+int flash_erase(flash_info_t *info, int s_first, int s_last)
{
unsigned long flags;
unsigned long start_time;
@@ -154,7 +154,7 @@ int __flashprog flash_erase(flash_info_t *info, int s_first, int s_last)
return ERR_OK;
}
-int __flashprog write_buff(flash_info_t *info, uchar *src,
+int write_buff(flash_info_t *info, uchar *src,
ulong addr, ulong count)
{
unsigned long flags;