| /******************************************************************************** |
| * Marvell GPL License Option |
| * |
| * If you received this File from Marvell, you may opt to use, redistribute and/or |
| * modify this File in accordance with the terms and conditions of the General |
| * Public License Version 2, June 1991 (the "GPL License"), a copy of which is |
| * available along with the File in the license.txt file or by writing to the Free |
| * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 or |
| * on the worldwide web at http://www.gnu.org/licenses/gpl.txt. |
| * |
| * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE IMPLIED |
| * WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY |
| * DISCLAIMED. The GPL License provides additional details about this warranty |
| * disclaimer. |
| ******************************************************************************/ |
| |
| #ifndef _BLOCK0_H_ |
| #define _BLOCK0_H_ |
| |
| typedef struct _bootparam_t_ { |
| unsigned int magic; |
| |
| unsigned int page_size : 8; |
| unsigned int address_cycle : 8; |
| unsigned int block_size : 16; |
| |
| unsigned int ecc_en : 8; |
| unsigned int bch_en : 8; |
| unsigned int spare_en : 8; |
| unsigned int reserve : 8; |
| } bootparam_t; |
| |
| #define DDR2 2 |
| #define DDR3 3 |
| #define DDR_DUAL_CHANNEL 2 |
| #define DDR_SINGLE_CHANNEL 1 |
| |
| typedef struct _block0_t_ { |
| union{ |
| bootparam_t bootparam[33]; |
| char pad[2048]; |
| } ; |
| |
| unsigned int ndtr0cs0; |
| unsigned int ndtr1cs0; |
| unsigned int ndredel; |
| unsigned int ddr_CSL; |
| unsigned int ddr_timing1; |
| unsigned int ddr_timing2; |
| unsigned int ddr_timing3; |
| unsigned int first_burn_flag; |
| unsigned char ddr_type : 4; |
| unsigned char ddr_channel : 4; |
| unsigned char cpu_type[2]; |
| } block0_t; |
| |
| #endif |