mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-24 20:13:39 +00:00
4bc0104c97
This patch adds support for MediaTek MT7621 SoC. All files are dedicated for u-boot. The default build target is u-boot-mt7621.bin. The specification of this chip: https://www.mediatek.com/products/homenetworking/mt7621 Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
39 lines
694 B
C
39 lines
694 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2022 MediaTek Inc. All rights reserved.
|
|
*
|
|
* Author: Weijie Gao <weijie.gao@mediatek.com>
|
|
*/
|
|
|
|
#ifndef _MT7621_DRAM_H_
|
|
#define _MT7621_DRAM_H_
|
|
|
|
#define STAGE_LOAD_ADDR 0xBE108800
|
|
|
|
#ifndef __ASSEMBLY__
|
|
#include <linux/types.h>
|
|
|
|
#define DDR_PARAM_SIZE 24
|
|
|
|
struct stage_header {
|
|
u32 jump_insn[2];
|
|
u32 ep;
|
|
u32 stage_size;
|
|
u32 has_stage2;
|
|
u32 next_ep;
|
|
u32 next_size;
|
|
u32 next_offset;
|
|
u32 cpu_pll_cfg;
|
|
u32 ddr_pll_cfg;
|
|
u32 reserved2[6];
|
|
char build_tag[32];
|
|
u32 ddr3_act[DDR_PARAM_SIZE];
|
|
u32 padding1[2];
|
|
u32 ddr2_act[DDR_PARAM_SIZE];
|
|
u32 padding2[2];
|
|
u32 baudrate;
|
|
u32 padding3;
|
|
};
|
|
#endif
|
|
|
|
#endif /* _MT7621_DRAM_H_ */
|