Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
2783524e
Unverified
Commit
2783524e
authored
Sep 29, 2020
by
Chen-Yu Tsai
Committed by
GitHub
Sep 29, 2020
Browse files
Merge pull request #141 from Icenowy/eon-flash
fel: SPI: add Eon support
parents
ef858821
bf02fd31
Changes
1
Show whitespace changes
Inline
Side-by-side
fel-spiflash.c
View file @
2783524e
...
@@ -49,6 +49,11 @@ spi_flash_info_t spi_flash_info[] = {
...
@@ -49,6 +49,11 @@ spi_flash_info_t spi_flash_info[] = {
.
small_erase_cmd
=
0x20
,
.
small_erase_size
=
4
*
1024
,
.
small_erase_cmd
=
0x20
,
.
small_erase_size
=
4
*
1024
,
.
program_cmd
=
0x02
,
.
program_size
=
256
,
.
program_cmd
=
0x02
,
.
program_size
=
256
,
.
text_description
=
"Macronix MX25Lxxxx"
},
.
text_description
=
"Macronix MX25Lxxxx"
},
{
.
id
=
0x1C70
,
.
write_enable_cmd
=
0x6
,
.
large_erase_cmd
=
0xD8
,
.
large_erase_size
=
64
*
1024
,
.
small_erase_cmd
=
0x20
,
.
small_erase_size
=
4
*
1024
,
.
program_cmd
=
0x02
,
.
program_size
=
256
,
.
text_description
=
"Eon EN25QHxx"
},
};
};
spi_flash_info_t
default_spi_flash_info
=
{
spi_flash_info_t
default_spi_flash_info
=
{
...
@@ -472,6 +477,9 @@ void aw_fel_spiflash_info(feldev_handle *dev)
...
@@ -472,6 +477,9 @@ void aw_fel_spiflash_info(feldev_handle *dev)
case
0xC2
:
case
0xC2
:
manufacturer
=
"Macronix"
;
manufacturer
=
"Macronix"
;
break
;
break
;
case
0x1C
:
manufacturer
=
"Eon"
;
break
;
default:
default:
manufacturer
=
"Unknown"
;
manufacturer
=
"Unknown"
;
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment