diff options
author | Mikael Larsson <mikael.xt.larsson@stericsson.com> | 2010-09-16 13:31:13 +0200 |
---|---|---|
committer | Michael BRANDT <michael.brandt@stericsson.com> | 2010-09-28 18:20:52 +0200 |
commit | a528a25f4c1956b67d121c99ab3aadbfa0cdf93b (patch) | |
tree | eb6d40bf54c49d3b4e6dd3068e72a61c0e5dcb46 /board/st/u8500/itp.h | |
parent | 76f64ab36b85b33abfc9a53eff21e87fc63c8794 (diff) |
ITP loading
This adds functionality to load and execute ITP in an early stage just after eMMC init.
eMMC init was moved to mmc_host.c since it fits better there and is needed in
order to access ITP before loading env.
Flag for functionality is CONFIG_ITP_LOAD.
This functionailty depends on CONFIG_TOC_PARTITION
ST-Ericsson ID: ER273744
Change-Id: Ia80f0bf2d67055045c95e47473b9ba2275bbdb83
Signed-off-by: Mikael LARSSON <mikael.xt.larsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/5130
Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
Reviewed-by: Ulf HANSSON <ulf.hansson@stericsson.com>
Diffstat (limited to 'board/st/u8500/itp.h')
-rw-r--r-- | board/st/u8500/itp.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/board/st/u8500/itp.h b/board/st/u8500/itp.h new file mode 100644 index 000000000..74dc6b65b --- /dev/null +++ b/board/st/u8500/itp.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) ST-Ericsson SA 2010 + * + * Author: Mikael Larsson <mikael.xt.larsson@stericsson.com> for ST-Ericsson. + * + * License terms: GNU General Public License (GPL), version 2. + */ +#ifndef __ITP_H__ +#define __ITP_H__ + +#include <part.h> + +/* These values are reserved and should not be removed or changed */ +#define ITP_LOAD_KERNEL 0x01 +#define ITP_LOAD_MODEM 0x02 +#define ITP_LOAD_ITP 0x04 + +#define ITP_TOC_ITP_NAME "ITP" + +#define ITP_CSPSA_KEY 0 + +int itp_load_itp(block_dev_desc_t *block_dev); + +#endif /* __ITP_H__ */ |