summaryrefslogtreecommitdiff
path: root/board/cobra5272/flash.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-07-22 10:52:36 -0600
committerTom Rini <trini@konsulko.com>2024-07-22 10:52:36 -0600
commit9b186f68afbf0d08bc5108108c8748b4b0511aee (patch)
treedb3b1b90bd7b7738613d1edd00ffec3b6d990d8a /board/cobra5272/flash.c
parentb614f3b58fed4589098cd691be7bfb719dc4b35a (diff)
parentba3f26efe0a0657d59f9bb9245cc72dc79ce814c (diff)
Merge patch series "board: BuS: Remove duplicate newlines"
Drop all duplicate newlines from the board directory files.
Diffstat (limited to 'board/cobra5272/flash.c')
-rw-r--r--board/cobra5272/flash.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/board/cobra5272/flash.c b/board/cobra5272/flash.c
index 157b71da85e..616842e62f4 100644
--- a/board/cobra5272/flash.c
+++ b/board/cobra5272/flash.c
@@ -61,7 +61,6 @@ Done:
return;
}
-
unsigned long flash_init(void)
{
int i, j;
@@ -112,7 +111,6 @@ unsigned long flash_init(void)
return size;
}
-
#define CMD_READ_ARRAY 0x00F0
#define CMD_UNLOCK1 0x00AA
#define CMD_UNLOCK2 0x0055
@@ -133,7 +131,6 @@ unsigned long flash_init(void)
#define ERR 2
#define TMO 4
-
int flash_erase(flash_info_t *info, int s_first, int s_last)
{
ulong result;
@@ -267,7 +264,6 @@ static int write_word(flash_info_t *info, ulong dest, ulong data)
if ((result & data) != data)
return ERR_NOT_ERASED;
-
/*
* Disable interrupts which might cause a timeout
* here. Remember that our exception vectors are
@@ -317,7 +313,6 @@ static int write_word(flash_info_t *info, ulong dest, ulong data)
return rc;
}
-
int write_buff(flash_info_t *info, uchar *src, ulong addr, ulong cnt)
{
ulong wp, data;