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
42ffc5f7
Unverified
Commit
42ffc5f7
authored
Jun 04, 2019
by
Icenowy Zheng
Committed by
GitHub
Jun 04, 2019
Browse files
Merge pull request #118 from Icenowy/spl-sematic-versioning
FEL: introduce semantic versioning for SPL header
parents
7fe60242
8fa2f24d
Changes
1
Show whitespace changes
Inline
Side-by-side
fel.c
View file @
42ffc5f7
...
...
@@ -947,8 +947,13 @@ void aw_fel_process_spl_and_uboot(feldev_handle *dev, const char *filename)
* the result is "true".
*/
#define SPL_SIGNATURE "SPL"
/* marks "sunxi" header */
#define SPL_MIN_VERSION 1
/* minimum required version */
#define SPL_MAX_VERSION 2
/* maximum supported version */
#define SPL_MAJOR_BITS 3
#define SPL_MINOR_BITS 5
#define SPL_VERSION(maj, min) \
((((maj) & ((1U << SPL_MAJOR_BITS) - 1)) << SPL_MINOR_BITS) | \
((min) & ((1U << SPL_MINOR_BITS) - 1)))
#define SPL_MIN_VERSION SPL_VERSION(0, 1)
#define SPL_MAX_VERSION SPL_VERSION(0, 31)
bool
have_sunxi_spl
(
feldev_handle
*
dev
,
uint32_t
spl_addr
)
{
uint8_t
spl_signature
[
4
];
...
...
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