Merge branch 'work/imx-dcd-size' into next
This commit is contained in:
commit
bbcb301fc2
|
@ -49,7 +49,6 @@
|
|||
#include <mach/devices-imx25.h>
|
||||
#include <asm/barebox-arm-head.h>
|
||||
|
||||
extern unsigned long _stext;
|
||||
extern void exception_vectors(void);
|
||||
|
||||
void __naked __flash_header_start go(void)
|
||||
|
@ -84,9 +83,7 @@ struct imx_flash_header __flash_header_section flash_header = {
|
|||
.dcd_block_len = sizeof(dcd_entry),
|
||||
};
|
||||
|
||||
extern unsigned long __bss_start;
|
||||
|
||||
unsigned long __image_len_section barebox_len = 0x40000;
|
||||
unsigned long __image_len_section barebox_len = DCD_BAREBOX_SIZE;
|
||||
|
||||
static struct fec_platform_data fec_info = {
|
||||
.xcv_type = RMII,
|
||||
|
|
|
@ -42,4 +42,4 @@ struct imx_flash_header __flash_header_section flash_header = {
|
|||
.dcd_block_len = sizeof(dcd_entry),
|
||||
};
|
||||
|
||||
unsigned long __image_len_section barebox_len = 0x40000;
|
||||
unsigned long __image_len_section barebox_len = DCD_BAREBOX_SIZE;
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
#include <mach/imx-flash-header.h>
|
||||
#include <asm/barebox-arm-head.h>
|
||||
|
||||
extern unsigned long _stext;
|
||||
|
||||
void __naked __flash_header_start go(void)
|
||||
{
|
||||
barebox_arm_head();
|
||||
|
@ -82,4 +80,4 @@ struct imx_flash_header __flash_header_section flash_header = {
|
|||
.dcd_block_len = sizeof (dcd_entry),
|
||||
};
|
||||
|
||||
unsigned long __image_len_section barebox_len = 0x40000;
|
||||
unsigned long __image_len_section barebox_len = DCD_BAREBOX_SIZE;
|
||||
|
|
|
@ -45,7 +45,6 @@
|
|||
#include <mach/devices-imx25.h>
|
||||
#include <asm/barebox-arm-head.h>
|
||||
|
||||
extern unsigned long _stext;
|
||||
extern void exception_vectors(void);
|
||||
|
||||
void __naked __flash_header_start go(void)
|
||||
|
@ -107,9 +106,7 @@ struct imx_flash_header __flash_header_section flash_header = {
|
|||
.dcd_block_len = sizeof(dcd_entry),
|
||||
};
|
||||
|
||||
extern unsigned long __bss_start;
|
||||
|
||||
unsigned long __image_len_section barebox_len = 0x40000;
|
||||
unsigned long __image_len_section barebox_len = DCD_BAREBOX_SIZE;
|
||||
|
||||
static struct fec_platform_data fec_info = {
|
||||
.xcv_type = RMII,
|
||||
|
|
|
@ -70,5 +70,5 @@ struct imx_flash_header __flash_header_section flash_header = {
|
|||
.dcd_block_len = sizeof(dcd_entry),
|
||||
};
|
||||
|
||||
unsigned long __image_len_section barebox_len = 0x40000;
|
||||
unsigned long __image_len_section barebox_len = DCD_BAREBOX_SIZE;
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
#include <mach/imx-flash-header.h>
|
||||
#include <asm/barebox-arm-head.h>
|
||||
|
||||
extern unsigned long _stext;
|
||||
|
||||
void __naked __flash_header_start go(void)
|
||||
{
|
||||
barebox_arm_head();
|
||||
|
@ -82,5 +80,5 @@ struct imx_flash_header __flash_header_section flash_header = {
|
|||
.dcd_block_len = sizeof (dcd_entry),
|
||||
};
|
||||
|
||||
unsigned long __image_len_section barebox_len = 0x40000;
|
||||
unsigned long __image_len_section barebox_len = DCD_BAREBOX_SIZE;
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ struct imx_flash_header_v2 __flash_header_section flash_header = {
|
|||
.self = APP_DEST + 0x400,
|
||||
|
||||
.boot_data.start = APP_DEST,
|
||||
.boot_data.size = 0x40000,
|
||||
.boot_data.size = DCD_BAREBOX_SIZE,
|
||||
|
||||
.dcd.header.tag = DCD_HEADER_TAG,
|
||||
.dcd.header.length = cpu_to_be16(sizeof(struct imx_dcd) + sizeof(dcd_entry)),
|
||||
|
|
|
@ -90,7 +90,7 @@ struct imx_flash_header_v2 __flash_header_section flash_header = {
|
|||
.self = APP_DEST + 0x400,
|
||||
|
||||
.boot_data.start = APP_DEST,
|
||||
.boot_data.size = 0x40000,
|
||||
.boot_data.size = DCD_BAREBOX_SIZE,
|
||||
|
||||
.dcd.header.tag = DCD_HEADER_TAG,
|
||||
.dcd.header.length = cpu_to_be16(sizeof(struct imx_dcd) + sizeof(dcd_entry)),
|
||||
|
|
|
@ -97,7 +97,7 @@ struct imx_flash_header_v2 __flash_header_section flash_header = {
|
|||
.self = APP_DEST + 0x400,
|
||||
|
||||
.boot_data.start = APP_DEST,
|
||||
.boot_data.size = 0x40000,
|
||||
.boot_data.size = DCD_BAREBOX_SIZE,
|
||||
|
||||
.dcd.header.tag = DCD_HEADER_TAG,
|
||||
.dcd.header.length = cpu_to_be16(sizeof(struct imx_dcd) + sizeof(dcd_entry)),
|
||||
|
|
|
@ -105,5 +105,5 @@ SECTIONS
|
|||
.bss : { *(.bss*) }
|
||||
__bss_stop = .;
|
||||
_end = .;
|
||||
_barebox_image_size = __bss_start - _text;
|
||||
_barebox_image_size = __bss_start - TEXT_BASE;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef __MACH_FLASH_HEADER_H
|
||||
#define __MACH_FLASH_HEADER_H
|
||||
|
||||
#include <asm-generic/sections.h>
|
||||
|
||||
#define __flash_header_start __section(.flash_header_start)
|
||||
|
||||
#if defined(CONFIG_ARCH_IMX_INTERNAL_BOOT_NOR)
|
||||
|
@ -87,6 +89,14 @@ struct imx_flash_header {
|
|||
#define DCD_COMMAND_WRITE_TAG 0xcc
|
||||
#define DCD_COMMAND_WRITE_PARAM 0x04
|
||||
|
||||
/*
|
||||
* At least on i.MX5 the ROM copies only full blocks. Unfortunately
|
||||
* it does not round up to the next full block, we have to do it
|
||||
* ourselves. Use 4095 which should be enough for the largest NAND
|
||||
* pages.
|
||||
*/
|
||||
#define DCD_BAREBOX_SIZE (barebox_image_size + 4095)
|
||||
|
||||
struct imx_ivt_header {
|
||||
uint8_t tag;
|
||||
__be16 length;
|
||||
|
|
Loading…
Reference in New Issue