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
613e4bae
Unverified
Commit
613e4bae
authored
Sep 14, 2020
by
Chen-Yu Tsai
Committed by
GitHub
Sep 14, 2020
Browse files
Merge pull request #138 from anistor/a10-spiflash-support
Add support for reading A10 SPI flash
parents
c714fb06
27674891
Changes
1
Hide whitespace changes
Inline
Side-by-side
fel-spiflash.c
View file @
613e4bae
...
@@ -160,6 +160,7 @@ static bool spi0_init(feldev_handle *dev)
...
@@ -160,6 +160,7 @@ static bool spi0_init(feldev_handle *dev)
gpio_set_cfgpin
(
dev
,
PC
,
2
,
SUNXI_GPC_SPI0
);
gpio_set_cfgpin
(
dev
,
PC
,
2
,
SUNXI_GPC_SPI0
);
gpio_set_cfgpin
(
dev
,
PC
,
3
,
SUNXI_GPC_SPI0
);
gpio_set_cfgpin
(
dev
,
PC
,
3
,
SUNXI_GPC_SPI0
);
break
;
break
;
case
0x1623
:
/* Allwinner A10 */
case
0x1651
:
/* Allwinner A20 */
case
0x1651
:
/* Allwinner A20 */
gpio_set_cfgpin
(
dev
,
PC
,
0
,
SUNXI_GPC_SPI0
);
gpio_set_cfgpin
(
dev
,
PC
,
0
,
SUNXI_GPC_SPI0
);
gpio_set_cfgpin
(
dev
,
PC
,
1
,
SUNXI_GPC_SPI0
);
gpio_set_cfgpin
(
dev
,
PC
,
1
,
SUNXI_GPC_SPI0
);
...
...
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