mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
treewide: Clean up DECLARE_GLOBAL_DATA_PTR usage
Remove DECLARE_GLOBAL_DATA_PTR from files where gd is not used, and drop the unnecessary inclusion of asm/global_data.h. Headers should be included directly by the files that need them, rather than indirectly via global_data.h. Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> #STMicroelectronics boards and STM32MP1 ram test driver Tested-by: Anshul Dalal <anshuld@ti.com> #TI boards Acked-by: Yao Zi <me@ziyao.cc> #TH1520 Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
@@ -10,9 +10,6 @@
|
|||||||
#include <irq_func.h>
|
#include <irq_func.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/cache.h>
|
#include <asm/cache.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
static int cleanup_before_linux(void)
|
static int cleanup_before_linux(void)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
#include <command.h>
|
#include <command.h>
|
||||||
#include <asm/system.h>
|
#include <asm/system.h>
|
||||||
#include <asm/cache.h>
|
#include <asm/cache.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/sections.h>
|
#include <asm/sections.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/arch/nexell.h>
|
#include <asm/arch/nexell.h>
|
||||||
@@ -15,8 +14,6 @@
|
|||||||
#include <asm/arch/tieoff.h>
|
#include <asm/arch/tieoff.h>
|
||||||
#include <cpu_func.h>
|
#include <cpu_func.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#ifndef CONFIG_ARCH_CPU_INIT
|
#ifndef CONFIG_ARCH_CPU_INIT
|
||||||
#error must be define the macro "CONFIG_ARCH_CPU_INIT"
|
#error must be define the macro "CONFIG_ARCH_CPU_INIT"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -9,9 +9,6 @@
|
|||||||
#include <linux/err.h>
|
#include <linux/err.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/arch/scu_ast2600.h>
|
#include <asm/arch/scu_ast2600.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
void board_init_f(ulong dummy)
|
void board_init_f(ulong dummy)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,12 +3,9 @@
|
|||||||
* Copyright 2018 NXP
|
* Copyright 2018 NXP
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <linux/errno.h>
|
#include <linux/errno.h>
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
u32 mxc_get_clock(enum mxc_clock clk)
|
u32 mxc_get_clock(enum mxc_clock clk)
|
||||||
{
|
{
|
||||||
switch (clk) {
|
switch (clk) {
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <firmware/imx/sci/sci.h>
|
#include <firmware/imx/sci/sci.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <dm/ofnode.h>
|
#include <dm/ofnode.h>
|
||||||
#include <fdt_support.h>
|
#include <fdt_support.h>
|
||||||
#include <linux/libfdt.h>
|
#include <linux/libfdt.h>
|
||||||
@@ -14,8 +13,6 @@
|
|||||||
#include <cpu.h>
|
#include <cpu.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
static bool check_owned_resource(sc_rsrc_t rsrc_id)
|
static bool check_owned_resource(sc_rsrc_t rsrc_id)
|
||||||
{
|
{
|
||||||
bool owned;
|
bool owned;
|
||||||
|
|||||||
@@ -4,13 +4,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/arch/iomux.h>
|
#include <asm/arch/iomux.h>
|
||||||
#include <firmware/imx/sci/sci.h>
|
#include <firmware/imx/sci/sci.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* configures a single pad in the iomuxer
|
* configures a single pad in the iomuxer
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/imx-regs.h>
|
#include <asm/arch/imx-regs.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <div64.h>
|
#include <div64.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -16,8 +15,6 @@
|
|||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <phy.h>
|
#include <phy.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
static struct anamix_pll *ana_pll = (struct anamix_pll *)ANATOP_BASE_ADDR;
|
static struct anamix_pll *ana_pll = (struct anamix_pll *)ANATOP_BASE_ADDR;
|
||||||
|
|
||||||
static u32 get_root_clk(enum clk_root_index clock_id);
|
static u32 get_root_clk(enum clk_root_index clock_id);
|
||||||
|
|||||||
@@ -10,12 +10,9 @@
|
|||||||
#include <asm/arch/cgc.h>
|
#include <asm/arch/cgc.h>
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <hang.h>
|
#include <hang.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
static struct cgc1_regs *cgc1_regs = (struct cgc1_regs *)0x292C0000UL;
|
static struct cgc1_regs *cgc1_regs = (struct cgc1_regs *)0x292C0000UL;
|
||||||
static struct cgc2_regs *cgc2_regs = (struct cgc2_regs *)0x2da60000UL;
|
static struct cgc2_regs *cgc2_regs = (struct cgc2_regs *)0x2da60000UL;
|
||||||
|
|
||||||
|
|||||||
@@ -12,11 +12,8 @@
|
|||||||
#include <asm/arch/pcc.h>
|
#include <asm/arch/pcc.h>
|
||||||
#include <asm/arch/cgc.h>
|
#include <asm/arch/cgc.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define PLL_USB_EN_USB_CLKS_MASK (0x01 << 6)
|
#define PLL_USB_EN_USB_CLKS_MASK (0x01 << 6)
|
||||||
#define PLL_USB_PWR_MASK (0x01 << 12)
|
#define PLL_USB_PWR_MASK (0x01 << 12)
|
||||||
#define PLL_USB_ENABLE_MASK (0x01 << 13)
|
#define PLL_USB_ENABLE_MASK (0x01 << 13)
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
#include <asm/arch/imx-regs.h>
|
#include <asm/arch/imx-regs.h>
|
||||||
#include <asm/arch/ccm_regs.h>
|
#include <asm/arch/ccm_regs.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <div64.h>
|
#include <div64.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -19,8 +18,6 @@
|
|||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <phy.h>
|
#include <phy.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
static struct anatop_reg *ana_regs = (struct anatop_reg *)ANATOP_BASE_ADDR;
|
static struct anatop_reg *ana_regs = (struct anatop_reg *)ANATOP_BASE_ADDR;
|
||||||
|
|
||||||
static struct imx_intpll_rate_table imx9_intpll_tbl[] = {
|
static struct imx_intpll_rate_table imx9_intpll_tbl[] = {
|
||||||
|
|||||||
@@ -11,11 +11,8 @@
|
|||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/imx-regs.h>
|
#include <asm/arch/imx-regs.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <linux/iopoll.h>
|
#include <linux/iopoll.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
static struct ccm_reg *ccm_reg = (struct ccm_reg *)CCM_BASE_ADDR;
|
static struct ccm_reg *ccm_reg = (struct ccm_reg *)CCM_BASE_ADDR;
|
||||||
|
|
||||||
static enum ccm_clk_src clk_root_mux[][4] = {
|
static enum ccm_clk_src clk_root_mux[][4] = {
|
||||||
|
|||||||
@@ -6,14 +6,11 @@
|
|||||||
#include <lmb.h>
|
#include <lmb.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <linux/errno.h>
|
#include <linux/errno.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/mach-imx/regs-common.h>
|
#include <asm/mach-imx/regs-common.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
/* 1 second delay should be plenty of time for block reset. */
|
/* 1 second delay should be plenty of time for block reset. */
|
||||||
#define RESET_MAX_TIMEOUT 1000000
|
#define RESET_MAX_TIMEOUT 1000000
|
||||||
|
|
||||||
|
|||||||
@@ -7,13 +7,10 @@
|
|||||||
#include <image.h>
|
#include <image.h>
|
||||||
#include <imx_container.h>
|
#include <imx_container.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <linux/libfdt.h>
|
#include <linux/libfdt.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
/* Caller need ensure the offset and size to align with page size */
|
/* Caller need ensure the offset and size to align with page size */
|
||||||
ulong spl_romapi_raw_seekable_read(u32 offset, u32 size, void *buf)
|
ulong spl_romapi_raw_seekable_read(u32 offset, u32 size, void *buf)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,13 +10,10 @@
|
|||||||
#include <asm/arch/eth.h>
|
#include <asm/arch/eth.h>
|
||||||
#include <asm/arch/axg.h>
|
#include <asm/arch/axg.h>
|
||||||
#include <asm/arch/mem.h>
|
#include <asm/arch/mem.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/armv8/mmu.h>
|
#include <asm/armv8/mmu.h>
|
||||||
#include <linux/sizes.h>
|
#include <linux/sizes.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int meson_get_boot_device(void)
|
int meson_get_boot_device(void)
|
||||||
{
|
{
|
||||||
return readl(AXG_AO_SEC_GP_CFG0) & AXG_AO_BOOT_DEVICE;
|
return readl(AXG_AO_SEC_GP_CFG0) & AXG_AO_BOOT_DEVICE;
|
||||||
|
|||||||
@@ -12,13 +12,10 @@
|
|||||||
#include <asm/arch/g12a.h>
|
#include <asm/arch/g12a.h>
|
||||||
#include <asm/arch/mem.h>
|
#include <asm/arch/mem.h>
|
||||||
#include <asm/arch/meson-vpu.h>
|
#include <asm/arch/meson-vpu.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/armv8/mmu.h>
|
#include <asm/armv8/mmu.h>
|
||||||
#include <linux/sizes.h>
|
#include <linux/sizes.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int meson_get_boot_device(void)
|
int meson_get_boot_device(void)
|
||||||
{
|
{
|
||||||
return readl(G12A_AO_SEC_GP_CFG0) & G12A_AO_BOOT_DEVICE;
|
return readl(G12A_AO_SEC_GP_CFG0) & G12A_AO_BOOT_DEVICE;
|
||||||
|
|||||||
@@ -11,14 +11,11 @@
|
|||||||
#include <asm/arch/gx.h>
|
#include <asm/arch/gx.h>
|
||||||
#include <asm/arch/mem.h>
|
#include <asm/arch/mem.h>
|
||||||
#include <asm/arch/meson-vpu.h>
|
#include <asm/arch/meson-vpu.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/armv8/mmu.h>
|
#include <asm/armv8/mmu.h>
|
||||||
#include <linux/printk.h>
|
#include <linux/printk.h>
|
||||||
#include <linux/sizes.h>
|
#include <linux/sizes.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int meson_get_boot_device(void)
|
int meson_get_boot_device(void)
|
||||||
{
|
{
|
||||||
return readl(GX_AO_SEC_GP_CFG0) & GX_AO_BOOT_DEVICE;
|
return readl(GX_AO_SEC_GP_CFG0) & GX_AO_BOOT_DEVICE;
|
||||||
|
|||||||
@@ -10,12 +10,9 @@
|
|||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <asm/arch/clock_manager.h>
|
#include <asm/arch/clock_manager.h>
|
||||||
#include <asm/arch/system_manager.h>
|
#include <asm/arch/system_manager.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <dt-bindings/clock/agilex-clock.h>
|
#include <dt-bindings/clock/agilex-clock.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
static ulong cm_get_rate_dm(u32 id)
|
static ulong cm_get_rate_dm(u32 id)
|
||||||
{
|
{
|
||||||
struct udevice *dev;
|
struct udevice *dev;
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <vsprintf.h>
|
#include <vsprintf.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/string.h>
|
#include <linux/string.h>
|
||||||
@@ -23,8 +22,6 @@
|
|||||||
#include <asm/arch/system_manager.h>
|
#include <asm/arch/system_manager.h>
|
||||||
#include <dt-bindings/clock/agilex5-clock.h>
|
#include <dt-bindings/clock/agilex5-clock.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
static ulong cm_get_rate_dm(u32 id)
|
static ulong cm_get_rate_dm(u32 id)
|
||||||
{
|
{
|
||||||
struct udevice *dev;
|
struct udevice *dev;
|
||||||
|
|||||||
@@ -6,15 +6,12 @@
|
|||||||
|
|
||||||
#include <asm/arch/clock_manager.h>
|
#include <asm/arch/clock_manager.h>
|
||||||
#include <asm/arch/system_manager.h>
|
#include <asm/arch/system_manager.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <clk.h>
|
#include <clk.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <dt-bindings/clock/n5x-clock.h>
|
#include <dt-bindings/clock/n5x-clock.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
static ulong cm_get_rate_dm(u32 id)
|
static ulong cm_get_rate_dm(u32 id)
|
||||||
{
|
{
|
||||||
struct udevice *dev;
|
struct udevice *dev;
|
||||||
|
|||||||
@@ -7,14 +7,11 @@
|
|||||||
#include <compiler.h>
|
#include <compiler.h>
|
||||||
#include <dm/device.h>
|
#include <dm/device.h>
|
||||||
#include <linux/errno.h>
|
#include <linux/errno.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/arch/clock_manager.h>
|
#include <asm/arch/clock_manager.h>
|
||||||
#include <asm/arch/handoff_soc64.h>
|
#include <asm/arch/handoff_soc64.h>
|
||||||
#include <asm/arch/system_manager.h>
|
#include <asm/arch/system_manager.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* function to write the bypass register which requires a poll of the
|
* function to write the bypass register which requires a poll of the
|
||||||
* busy bit
|
* busy bit
|
||||||
|
|||||||
@@ -8,15 +8,12 @@
|
|||||||
#include <asm/arch/mailbox_s10.h>
|
#include <asm/arch/mailbox_s10.h>
|
||||||
#include <asm/arch/smc_api.h>
|
#include <asm/arch/smc_api.h>
|
||||||
#include <asm/arch/system_manager.h>
|
#include <asm/arch/system_manager.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/secure.h>
|
#include <asm/secure.h>
|
||||||
#include <asm/system.h>
|
#include <asm/system.h>
|
||||||
#include <hang.h>
|
#include <hang.h>
|
||||||
#include <wait_bit.h>
|
#include <wait_bit.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define MBOX_READL(reg) \
|
#define MBOX_READL(reg) \
|
||||||
readl(SOCFPGA_MAILBOX_ADDRESS + (reg))
|
readl(SOCFPGA_MAILBOX_ADDRESS + (reg))
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <cpu_func.h>
|
#include <cpu_func.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -28,8 +27,6 @@
|
|||||||
|
|
||||||
#include <dt-bindings/reset/altr,rst-mgr.h>
|
#include <dt-bindings/reset/altr,rst-mgr.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
static struct pl310_regs *const pl310 =
|
static struct pl310_regs *const pl310 =
|
||||||
(struct pl310_regs *)CFG_SYS_PL310_BASE;
|
(struct pl310_regs *)CFG_SYS_PL310_BASE;
|
||||||
static struct nic301_registers *nic301_regs =
|
static struct nic301_registers *nic301_regs =
|
||||||
|
|||||||
@@ -17,11 +17,8 @@
|
|||||||
#include <asm/arch/system_manager.h>
|
#include <asm/arch/system_manager.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/system.h>
|
#include <asm/system.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <mach/clock_manager.h>
|
#include <mach/clock_manager.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
/* Agilex5 Sub Device Jtag ID List */
|
/* Agilex5 Sub Device Jtag ID List */
|
||||||
#define A3690_JTAG_ID 0x036090DD
|
#define A3690_JTAG_ID 0x036090DD
|
||||||
#define A3694_JTAG_ID 0x436090DD
|
#define A3694_JTAG_ID 0x436090DD
|
||||||
|
|||||||
@@ -5,9 +5,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/armv8/mmu.h>
|
#include <asm/armv8/mmu.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#if IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX5)
|
#if IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX5)
|
||||||
static struct mm_region socfpga_agilex5_mem_map[] = {
|
static struct mm_region socfpga_agilex5_mem_map[] = {
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <hang.h>
|
#include <hang.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/secure.h>
|
#include <asm/secure.h>
|
||||||
#include <asm/arch/reset_manager.h>
|
#include <asm/arch/reset_manager.h>
|
||||||
@@ -20,8 +19,6 @@
|
|||||||
#include <linux/intel-smc.h>
|
#include <linux/intel-smc.h>
|
||||||
#include <wait_bit.h>
|
#include <wait_bit.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define TIMEOUT_300MS 300
|
#define TIMEOUT_300MS 300
|
||||||
|
|
||||||
/* F2S manager registers */
|
/* F2S manager registers */
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/utils.h>
|
#include <asm/utils.h>
|
||||||
#include <hang.h>
|
#include <hang.h>
|
||||||
@@ -22,8 +21,6 @@
|
|||||||
#include <wdt.h>
|
#include <wdt.h>
|
||||||
#include <dm/uclass.h>
|
#include <dm/uclass.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
u32 reset_flag(u32 flag)
|
u32 reset_flag(u32 flag)
|
||||||
{
|
{
|
||||||
/* Check rstmgr.stat for warm reset status */
|
/* Check rstmgr.stat for warm reset status */
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <hang.h>
|
#include <hang.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
@@ -19,8 +18,6 @@
|
|||||||
#include <wdt.h>
|
#include <wdt.h>
|
||||||
#include <dm/uclass.h>
|
#include <dm/uclass.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
u32 reset_flag(u32 flag)
|
u32 reset_flag(u32 flag)
|
||||||
{
|
{
|
||||||
/* Check rstmgr.stat for warm reset status */
|
/* Check rstmgr.stat for warm reset status */
|
||||||
|
|||||||
@@ -15,14 +15,11 @@
|
|||||||
#include <asm/arch/misc.h>
|
#include <asm/arch/misc.h>
|
||||||
#include <asm/arch/reset_manager.h>
|
#include <asm/arch/reset_manager.h>
|
||||||
#include <asm/arch/system_manager.h>
|
#include <asm/arch/system_manager.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/u-boot.h>
|
#include <asm/u-boot.h>
|
||||||
#include <asm/utils.h>
|
#include <asm/utils.h>
|
||||||
#include <dm/uclass.h>
|
#include <dm/uclass.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
void board_init_f(ulong dummy)
|
void board_init_f(ulong dummy)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
#include <hang.h>
|
#include <hang.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/utils.h>
|
#include <asm/utils.h>
|
||||||
#include <image.h>
|
#include <image.h>
|
||||||
@@ -25,8 +24,6 @@
|
|||||||
#include <dm/uclass.h>
|
#include <dm/uclass.h>
|
||||||
#include <linux/bitops.h>
|
#include <linux/bitops.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
u32 spl_boot_device(void)
|
u32 spl_boot_device(void)
|
||||||
{
|
{
|
||||||
const u32 bsel = readl(socfpga_get_sysmgr_addr() +
|
const u32 bsel = readl(socfpga_get_sysmgr_addr() +
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
#include <asm/arch/misc.h>
|
#include <asm/arch/misc.h>
|
||||||
#include <asm/arch/reset_manager.h>
|
#include <asm/arch/reset_manager.h>
|
||||||
#include <asm/arch/system_manager.h>
|
#include <asm/arch/system_manager.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/utils.h>
|
#include <asm/utils.h>
|
||||||
#include <dm/uclass.h>
|
#include <dm/uclass.h>
|
||||||
@@ -20,8 +19,6 @@
|
|||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
#include <watchdog.h>
|
#include <watchdog.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
void board_init_f(ulong dummy)
|
void board_init_f(ulong dummy)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
#include <hang.h>
|
#include <hang.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/utils.h>
|
#include <asm/utils.h>
|
||||||
#include <debug_uart.h>
|
#include <debug_uart.h>
|
||||||
@@ -22,8 +21,6 @@
|
|||||||
#include <watchdog.h>
|
#include <watchdog.h>
|
||||||
#include <dm/uclass.h>
|
#include <dm/uclass.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
void board_init_f(ulong dummy)
|
void board_init_f(ulong dummy)
|
||||||
{
|
{
|
||||||
const struct cm_config *cm_default_cfg = cm_get_default_config();
|
const struct cm_config *cm_default_cfg = cm_get_default_config();
|
||||||
|
|||||||
@@ -6,12 +6,9 @@
|
|||||||
|
|
||||||
#include <asm/arch/handoff_soc64.h>
|
#include <asm/arch/handoff_soc64.h>
|
||||||
#include <asm/arch/system_manager.h>
|
#include <asm/arch/system_manager.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <linux/bitfield.h>
|
#include <linux/bitfield.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#if IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX5)
|
#if IS_ENABLED(CONFIG_TARGET_SOCFPGA_AGILEX5)
|
||||||
/*
|
/*
|
||||||
* Setting RESET_PULSE_OVERRIDE bit for successful reset staggering pulse
|
* Setting RESET_PULSE_OVERRIDE bit for successful reset staggering pulse
|
||||||
|
|||||||
@@ -17,12 +17,9 @@
|
|||||||
#include <image.h>
|
#include <image.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/cache.h>
|
#include <asm/cache.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <u-boot/zlib.h>
|
#include <u-boot/zlib.h>
|
||||||
#include <asm/byteorder.h>
|
#include <asm/byteorder.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
static void boot_jump_linux(struct bootm_headers *images, int flag)
|
static void boot_jump_linux(struct bootm_headers *images, int flag)
|
||||||
{
|
{
|
||||||
void (*thekernel)(char *cmdline, ulong rd, ulong dt);
|
void (*thekernel)(char *cmdline, ulong rd, ulong dt);
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
* Based on QSDK
|
* Based on QSDK
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/addrspace.h>
|
#include <asm/addrspace.h>
|
||||||
#include <asm/types.h>
|
#include <asm/types.h>
|
||||||
@@ -182,8 +181,6 @@
|
|||||||
DDR_CTL_CONFIG_MISC_SRC1_SRAM_SYNC_SET(0x1) | \
|
DDR_CTL_CONFIG_MISC_SRC1_SRAM_SYNC_SET(0x1) | \
|
||||||
DDR_CTL_CONFIG_MISC_SRC2_SRAM_SYNC_SET(0x1)
|
DDR_CTL_CONFIG_MISC_SRC2_SRAM_SYNC_SET(0x1)
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
void qca956x_ddr_init(void)
|
void qca956x_ddr_init(void)
|
||||||
{
|
{
|
||||||
u32 ddr_config, ddr_config2, ddr_config3, mod_val, \
|
u32 ddr_config, ddr_config2, ddr_config3, mod_val, \
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <linux/bitops.h>
|
#include <linux/bitops.h>
|
||||||
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
@@ -14,8 +13,6 @@
|
|||||||
#include <mach/tlb.h>
|
#include <mach/tlb.h>
|
||||||
#include <mach/ddr.h>
|
#include <mach/ddr.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#if CFG_SYS_SDRAM_SIZE <= SZ_64M
|
#if CFG_SYS_SDRAM_SIZE <= SZ_64M
|
||||||
#define MSCC_RAM_TLB_SIZE SZ_64M
|
#define MSCC_RAM_TLB_SIZE SZ_64M
|
||||||
#define MSCC_ATTRIB2 MMU_REGIO_INVAL
|
#define MSCC_ATTRIB2 MMU_REGIO_INVAL
|
||||||
|
|||||||
@@ -7,13 +7,10 @@
|
|||||||
|
|
||||||
#include <asm/addrspace.h>
|
#include <asm/addrspace.h>
|
||||||
#include <asm/cacheops.h>
|
#include <asm/cacheops.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <linux/bitops.h>
|
#include <linux/bitops.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
#include <mach/mc.h>
|
#include <mach/mc.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define COARSE_MIN_START 6
|
#define COARSE_MIN_START 6
|
||||||
#define FINE_MIN_START 15
|
#define FINE_MIN_START 15
|
||||||
#define COARSE_MAX_START 7
|
#define COARSE_MAX_START 7
|
||||||
|
|||||||
@@ -52,8 +52,6 @@
|
|||||||
#include <mach/cvmx-helper-pki.h>
|
#include <mach/cvmx-helper-pki.h>
|
||||||
#include <mach/cvmx-helper-pko.h>
|
#include <mach/cvmx-helper-pko.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define CVMX_PKO_NQ_PER_PORT_MAX 32
|
#define CVMX_PKO_NQ_PER_PORT_MAX 32
|
||||||
|
|
||||||
static cvmx_pko_return_value_t cvmx_pko2_config_port(short ipd_port,
|
static cvmx_pko_return_value_t cvmx_pko2_config_port(short ipd_port,
|
||||||
|
|||||||
@@ -10,9 +10,6 @@
|
|||||||
#include <image.h>
|
#include <image.h>
|
||||||
#include <irq_func.h>
|
#include <irq_func.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define NIOS_MAGIC 0x534f494e /* enable command line and initrd passing */
|
#define NIOS_MAGIC 0x534f494e /* enable command line and initrd passing */
|
||||||
|
|
||||||
|
|||||||
@@ -8,11 +8,8 @@
|
|||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/system.h>
|
#include <asm/system.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#if CONFIG_IS_ENABLED(RAM_SUPPORT)
|
#if CONFIG_IS_ENABLED(RAM_SUPPORT)
|
||||||
struct legacy_img_hdr *spl_get_load_buffer(ssize_t offset, size_t size)
|
struct legacy_img_hdr *spl_get_load_buffer(ssize_t offset, size_t size)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,11 +5,8 @@
|
|||||||
|
|
||||||
#include <fdtdec.h>
|
#include <fdtdec.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <linux/sizes.h>
|
#include <linux/sizes.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int dram_init(void)
|
int dram_init(void)
|
||||||
{
|
{
|
||||||
return fdtdec_setup_mem_size_base();
|
return fdtdec_setup_mem_size_base();
|
||||||
|
|||||||
@@ -5,11 +5,8 @@
|
|||||||
|
|
||||||
#include <fdtdec.h>
|
#include <fdtdec.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <linux/sizes.h>
|
#include <linux/sizes.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int dram_init(void)
|
int dram_init(void)
|
||||||
{
|
{
|
||||||
return fdtdec_setup_mem_size_base();
|
return fdtdec_setup_mem_size_base();
|
||||||
|
|||||||
@@ -3,13 +3,10 @@
|
|||||||
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
|
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <fdtdec.h>
|
#include <fdtdec.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <linux/sizes.h>
|
#include <linux/sizes.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int dram_init(void)
|
int dram_init(void)
|
||||||
{
|
{
|
||||||
return fdtdec_setup_mem_size_base();
|
return fdtdec_setup_mem_size_base();
|
||||||
|
|||||||
@@ -10,8 +10,6 @@
|
|||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define TH1520_SUBSYS_CLK (void __iomem *)(0xffff011000 + 0x220)
|
#define TH1520_SUBSYS_CLK (void __iomem *)(0xffff011000 + 0x220)
|
||||||
#define TH1520_SUBSYS_CLK_VO_EN BIT(2)
|
#define TH1520_SUBSYS_CLK_VO_EN BIT(2)
|
||||||
#define TH1520_SUBSYS_CLK_VI_EN BIT(1)
|
#define TH1520_SUBSYS_CLK_VI_EN BIT(1)
|
||||||
|
|||||||
@@ -13,11 +13,8 @@
|
|||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <image.h>
|
#include <image.h>
|
||||||
#include <asm/byteorder.h>
|
#include <asm/byteorder.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/zimage.h>
|
#include <asm/zimage.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#ifdef CONFIG_SH_SDRAM_OFFSET
|
#ifdef CONFIG_SH_SDRAM_OFFSET
|
||||||
#define GET_INITRD_START(initrd, linux) (initrd - linux + CONFIG_SH_SDRAM_OFFSET)
|
#define GET_INITRD_START(initrd, linux) (initrd - linux + CONFIG_SH_SDRAM_OFFSET)
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
#include <asm/cpu.h>
|
#include <asm/cpu.h>
|
||||||
#include <asm/cpu_common.h>
|
#include <asm/cpu_common.h>
|
||||||
#include <asm/cpu_x86.h>
|
#include <asm/cpu_x86.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/msr.h>
|
#include <asm/msr.h>
|
||||||
#include <asm/msr-index.h>
|
#include <asm/msr-index.h>
|
||||||
#include <asm/mtrr.h>
|
#include <asm/mtrr.h>
|
||||||
@@ -23,8 +22,6 @@
|
|||||||
#include <asm/turbo.h>
|
#include <asm/turbo.h>
|
||||||
#include <asm/arch/model_206ax.h>
|
#include <asm/arch/model_206ax.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
static void enable_vmx(void)
|
static void enable_vmx(void)
|
||||||
{
|
{
|
||||||
struct cpuid_result regs;
|
struct cpuid_result regs;
|
||||||
|
|||||||
@@ -5,13 +5,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <linux/errno.h>
|
#include <linux/errno.h>
|
||||||
#include <asm/mtrr.h>
|
#include <asm/mtrr.h>
|
||||||
#include <asm/u-boot-x86.h>
|
#include <asm/u-boot-x86.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int init_cache_f_r(void)
|
int init_cache_f_r(void)
|
||||||
{
|
{
|
||||||
bool do_mtrr = CONFIG_IS_ENABLED(X86_32BIT_INIT) ||
|
bool do_mtrr = CONFIG_IS_ENABLED(X86_32BIT_INIT) ||
|
||||||
|
|||||||
@@ -30,7 +30,6 @@
|
|||||||
#include <asm/bootm.h>
|
#include <asm/bootm.h>
|
||||||
#include <asm/bootparam.h>
|
#include <asm/bootparam.h>
|
||||||
#include <asm/efi.h>
|
#include <asm/efi.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#ifdef CONFIG_SYS_COREBOOT
|
#ifdef CONFIG_SYS_COREBOOT
|
||||||
#include <asm/arch/timestamp.h>
|
#include <asm/arch/timestamp.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -38,8 +37,6 @@
|
|||||||
#include <linux/ctype.h>
|
#include <linux/ctype.h>
|
||||||
#include <linux/libfdt.h>
|
#include <linux/libfdt.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Memory lay-out:
|
* Memory lay-out:
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -5,12 +5,9 @@
|
|||||||
|
|
||||||
#include <clock_legacy.h>
|
#include <clock_legacy.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <linux/stringify.h>
|
#include <linux/stringify.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#if XCHAL_HAVE_CCOUNT
|
#if XCHAL_HAVE_CCOUNT
|
||||||
static ulong get_ccount(void)
|
static ulong get_ccount(void)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/arch/mem.h>
|
#include <asm/arch/mem.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/gpio.h>
|
#include <asm/gpio.h>
|
||||||
#include <asm/emif.h>
|
#include <asm/emif.h>
|
||||||
@@ -30,8 +29,6 @@
|
|||||||
/* -- defines for used GPIO Hardware -- */
|
/* -- defines for used GPIO Hardware -- */
|
||||||
#define PER_RESET (2 * 32 + 0)
|
#define PER_RESET (2 * 32 + 0)
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#if defined(CONFIG_XPL_BUILD)
|
#if defined(CONFIG_XPL_BUILD)
|
||||||
static const struct ddr_data ddr3_data = {
|
static const struct ddr_data ddr3_data = {
|
||||||
.datardsratio0 = MT41K256M16HA125E_RD_DQS,
|
.datardsratio0 = MT41K256M16HA125E_RD_DQS,
|
||||||
|
|||||||
@@ -13,12 +13,9 @@
|
|||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <fdtdec.h>
|
#include <fdtdec.h>
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include "bur_common.h"
|
#include "bur_common.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------*/
|
/* --------------------------------------------------------------------------*/
|
||||||
|
|
||||||
int ft_board_setup(void *blob, struct bd_info *bd)
|
int ft_board_setup(void *blob, struct bd_info *bd)
|
||||||
|
|||||||
@@ -5,13 +5,10 @@
|
|||||||
* https://spdx.org/licenses
|
* https://spdx.org/licenses
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/ptrace.h>
|
#include <asm/ptrace.h>
|
||||||
#include <asm/system.h>
|
#include <asm/system.h>
|
||||||
#include <asm/arch/smc.h>
|
#include <asm/arch/smc.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
ssize_t smc_dram_size(unsigned int node)
|
ssize_t smc_dram_size(unsigned int node)
|
||||||
{
|
{
|
||||||
struct pt_regs regs;
|
struct pt_regs regs;
|
||||||
|
|||||||
@@ -5,15 +5,12 @@
|
|||||||
* https://spdx.org/licenses
|
* https://spdx.org/licenses
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/psci.h>
|
#include <asm/psci.h>
|
||||||
#include <asm/ptrace.h>
|
#include <asm/ptrace.h>
|
||||||
#include <asm/system.h>
|
#include <asm/system.h>
|
||||||
#include <asm/arch/smc.h>
|
#include <asm/arch/smc.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
ssize_t smc_dram_size(unsigned int node)
|
ssize_t smc_dram_size(unsigned int node)
|
||||||
{
|
{
|
||||||
struct pt_regs regs;
|
struct pt_regs regs;
|
||||||
|
|||||||
@@ -26,8 +26,6 @@
|
|||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <power/pmic.h>
|
#include <power/pmic.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#ifdef CONFIG_NAND_MXS
|
#ifdef CONFIG_NAND_MXS
|
||||||
static void setup_gpmi_nand(void)
|
static void setup_gpmi_nand(void)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -29,8 +29,6 @@
|
|||||||
#include <power/pmic.h>
|
#include <power/pmic.h>
|
||||||
#include <power/pca9450.h>
|
#include <power/pca9450.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SPL_BOOTROM_SUPPORT
|
#ifdef CONFIG_SPL_BOOTROM_SUPPORT
|
||||||
|
|||||||
@@ -16,8 +16,6 @@
|
|||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
/* #include <power-domain.h> */
|
/* #include <power-domain.h> */
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define UART_PAD_CTRL ((SC_PAD_CONFIG_OUT_IN << PADRING_CONFIG_SHIFT) | \
|
#define UART_PAD_CTRL ((SC_PAD_CONFIG_OUT_IN << PADRING_CONFIG_SHIFT) | \
|
||||||
(SC_PAD_ISO_OFF << PADRING_LPCONFIG_SHIFT) | \
|
(SC_PAD_ISO_OFF << PADRING_LPCONFIG_SHIFT) | \
|
||||||
(SC_PAD_28FDSOI_DSE_DV_HIGH << PADRING_DSE_SHIFT) | \
|
(SC_PAD_28FDSOI_DSE_DV_HIGH << PADRING_DSE_SHIFT) | \
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <linux/libfdt.h>
|
#include <linux/libfdt.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
@@ -19,8 +18,6 @@
|
|||||||
#include <asm/arch/iomux.h>
|
#include <asm/arch/iomux.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define UART_PAD_CTRL ((SC_PAD_CONFIG_OUT_IN << PADRING_CONFIG_SHIFT) | \
|
#define UART_PAD_CTRL ((SC_PAD_CONFIG_OUT_IN << PADRING_CONFIG_SHIFT) | \
|
||||||
(SC_PAD_ISO_OFF << PADRING_LPCONFIG_SHIFT) | \
|
(SC_PAD_ISO_OFF << PADRING_LPCONFIG_SHIFT) | \
|
||||||
(SC_PAD_28FDSOI_DSE_DV_HIGH << PADRING_DSE_SHIFT) | \
|
(SC_PAD_28FDSOI_DSE_DV_HIGH << PADRING_DSE_SHIFT) | \
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/csr.h>
|
#include <asm/csr.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/sbi.h>
|
#include <asm/sbi.h>
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <cpu_func.h>
|
#include <cpu_func.h>
|
||||||
@@ -19,8 +18,6 @@
|
|||||||
#include <net.h>
|
#include <net.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int dram_init(void)
|
int dram_init(void)
|
||||||
{
|
{
|
||||||
return fdtdec_setup_mem_size_base();
|
return fdtdec_setup_mem_size_base();
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <net.h>
|
#include <net.h>
|
||||||
#include <netdev.h>
|
#include <netdev.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <linux/compiler.h>
|
#include <linux/compiler.h>
|
||||||
#include <linux/sizes.h>
|
#include <linux/sizes.h>
|
||||||
@@ -24,8 +23,6 @@
|
|||||||
#include <virtio.h>
|
#include <virtio.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
static const struct pl01x_serial_plat serial_plat = {
|
static const struct pl01x_serial_plat serial_plat = {
|
||||||
.base = V2M_UART0,
|
.base = V2M_UART0,
|
||||||
.type = TYPE_PL011,
|
.type = TYPE_PL011,
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/mach-imx/iomux-v3.h>
|
#include <asm/mach-imx/iomux-v3.h>
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
@@ -23,8 +22,6 @@
|
|||||||
#include <power/pmic.h>
|
#include <power/pmic.h>
|
||||||
#include <power/bd71837.h>
|
#include <power/bd71837.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
||||||
{
|
{
|
||||||
switch (boot_dev_spl) {
|
switch (boot_dev_spl) {
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/arch/ddr.h>
|
#include <asm/arch/ddr.h>
|
||||||
#include <asm/arch/imx8mn_pins.h>
|
#include <asm/arch/imx8mn_pins.h>
|
||||||
@@ -32,8 +31,6 @@
|
|||||||
#include <dm/uclass-internal.h>
|
#include <dm/uclass-internal.h>
|
||||||
#include <dm/device-internal.h>
|
#include <dm/device-internal.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
||||||
{
|
{
|
||||||
return BOOT_DEVICE_BOOTROM;
|
return BOOT_DEVICE_BOOTROM;
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/imx8mp_pins.h>
|
#include <asm/arch/imx8mp_pins.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
@@ -22,8 +21,6 @@
|
|||||||
#include <dm/uclass.h>
|
#include <dm/uclass.h>
|
||||||
#include <dm/device.h>
|
#include <dm/device.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
||||||
{
|
{
|
||||||
return BOOT_DEVICE_BOOTROM;
|
return BOOT_DEVICE_BOOTROM;
|
||||||
|
|||||||
@@ -13,8 +13,6 @@
|
|||||||
#include <fdt_support.h>
|
#include <fdt_support.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
struct efi_fw_image fw_images[] = {
|
struct efi_fw_image fw_images[] = {
|
||||||
{
|
{
|
||||||
.image_type_id = BEAGLEBONEAI64_TIBOOT3_IMAGE_GUID,
|
.image_type_id = BEAGLEBONEAI64_TIBOOT3_IMAGE_GUID,
|
||||||
|
|||||||
@@ -14,8 +14,6 @@
|
|||||||
|
|
||||||
#include <asm/arch/hardware.h>
|
#include <asm/arch/hardware.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
struct efi_fw_image fw_images[] = {
|
struct efi_fw_image fw_images[] = {
|
||||||
{
|
{
|
||||||
.image_type_id = BEAGLEPLAY_TIBOOT3_IMAGE_GUID,
|
.image_type_id = BEAGLEPLAY_TIBOOT3_IMAGE_GUID,
|
||||||
|
|||||||
@@ -9,12 +9,9 @@
|
|||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <ram.h>
|
#include <ram.h>
|
||||||
#include <serial.h>
|
#include <serial.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/armv7m.h>
|
#include <asm/armv7m.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int dram_init(void)
|
int dram_init(void)
|
||||||
{
|
{
|
||||||
return fdtdec_setup_mem_size_base();
|
return fdtdec_setup_mem_size_base();
|
||||||
|
|||||||
@@ -7,14 +7,11 @@
|
|||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <miiphy.h>
|
#include <miiphy.h>
|
||||||
#include <netdev.h>
|
#include <netdev.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
|
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
static int setup_fec(void)
|
static int setup_fec(void)
|
||||||
{
|
{
|
||||||
struct iomuxc_gpr_base_regs *gpr =
|
struct iomuxc_gpr_base_regs *gpr =
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/mach-imx/iomux-v3.h>
|
#include <asm/mach-imx/iomux-v3.h>
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
@@ -28,8 +27,6 @@
|
|||||||
#include <power/pmic.h>
|
#include <power/pmic.h>
|
||||||
#include <power/pca9450.h>
|
#include <power/pca9450.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
||||||
{
|
{
|
||||||
switch (boot_dev_spl) {
|
switch (boot_dev_spl) {
|
||||||
|
|||||||
@@ -32,8 +32,6 @@
|
|||||||
|
|
||||||
#include "ddr/ddr.h"
|
#include "ddr/ddr.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
||||||
{
|
{
|
||||||
switch (boot_dev_spl) {
|
switch (boot_dev_spl) {
|
||||||
|
|||||||
@@ -7,9 +7,6 @@
|
|||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <smbios.h>
|
#include <smbios.h>
|
||||||
#include <asm/cb_sysinfo.h>
|
#include <asm/cb_sysinfo.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int board_early_init_r(void)
|
int board_early_init_r(void)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -26,8 +26,6 @@
|
|||||||
|
|
||||||
#include "../common/common.h"
|
#include "../common/common.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define ADDR_CPLD_R_RESET ((unsigned short __iomem *)CONFIG_CPLD_BASE)
|
#define ADDR_CPLD_R_RESET ((unsigned short __iomem *)CONFIG_CPLD_BASE)
|
||||||
#define ADDR_CPLD_R_ETAT ((unsigned short __iomem *)(CONFIG_CPLD_BASE + 2))
|
#define ADDR_CPLD_R_ETAT ((unsigned short __iomem *)(CONFIG_CPLD_BASE + 2))
|
||||||
#define ADDR_CPLD_R_TYPE ((unsigned char __iomem *)(CONFIG_CPLD_BASE + 3))
|
#define ADDR_CPLD_R_TYPE ((unsigned char __iomem *)(CONFIG_CPLD_BASE + 3))
|
||||||
|
|||||||
@@ -14,8 +14,6 @@
|
|||||||
|
|
||||||
#include "../common/common.h"
|
#include "../common/common.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int board_late_init(void)
|
int board_late_init(void)
|
||||||
{
|
{
|
||||||
struct udevice *dev;
|
struct udevice *dev;
|
||||||
|
|||||||
@@ -27,8 +27,6 @@
|
|||||||
|
|
||||||
#include "../common/common.h"
|
#include "../common/common.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int data_modul_imx_edm_sbc_board_power_init(void)
|
int data_modul_imx_edm_sbc_board_power_init(void)
|
||||||
{
|
{
|
||||||
struct udevice *dev;
|
struct udevice *dev;
|
||||||
|
|||||||
@@ -17,8 +17,6 @@
|
|||||||
|
|
||||||
#include "../common/common.h"
|
#include "../common/common.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
static void dmo_setup_second_mac_address(void)
|
static void dmo_setup_second_mac_address(void)
|
||||||
{
|
{
|
||||||
u8 enetaddr[6];
|
u8 enetaddr[6];
|
||||||
|
|||||||
@@ -28,8 +28,6 @@
|
|||||||
|
|
||||||
#include "../common/common.h"
|
#include "../common/common.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int data_modul_imx_edm_sbc_board_power_init(void)
|
int data_modul_imx_edm_sbc_board_power_init(void)
|
||||||
{
|
{
|
||||||
struct udevice *dev;
|
struct udevice *dev;
|
||||||
|
|||||||
@@ -8,8 +8,6 @@
|
|||||||
|
|
||||||
#include "lpddr4_timing.h"
|
#include "lpddr4_timing.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
u8 dh_get_memcfg(void)
|
u8 dh_get_memcfg(void)
|
||||||
{
|
{
|
||||||
struct gpio_desc gpio[4];
|
struct gpio_desc gpio[4];
|
||||||
|
|||||||
@@ -20,8 +20,6 @@
|
|||||||
#include "../common/dh_common.h"
|
#include "../common/dh_common.h"
|
||||||
#include "../common/dh_imx.h"
|
#include "../common/dh_imx.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int mach_cpu_init(void)
|
int mach_cpu_init(void)
|
||||||
{
|
{
|
||||||
icache_enable();
|
icache_enable();
|
||||||
|
|||||||
@@ -29,8 +29,6 @@
|
|||||||
|
|
||||||
#include "lpddr4_timing.h"
|
#include "lpddr4_timing.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define UART_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_FSEL1)
|
#define UART_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_FSEL1)
|
||||||
#define WDOG_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_ODE | PAD_CTL_PUE | PAD_CTL_PE)
|
#define WDOG_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_ODE | PAD_CTL_PUE | PAD_CTL_PE)
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
#include <asm/arch/ddr.h>
|
#include <asm/arch/ddr.h>
|
||||||
#include <asm/arch/imx8mp_pins.h>
|
#include <asm/arch/imx8mp_pins.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/mach-imx/boot_mode.h>
|
#include <asm/mach-imx/boot_mode.h>
|
||||||
#include <asm/sections.h>
|
#include <asm/sections.h>
|
||||||
#include <dm/device.h>
|
#include <dm/device.h>
|
||||||
@@ -20,8 +19,6 @@
|
|||||||
#include <power/pmic.h>
|
#include <power/pmic.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
||||||
{
|
{
|
||||||
return BOOT_DEVICE_BOOTROM;
|
return BOOT_DEVICE_BOOTROM;
|
||||||
|
|||||||
@@ -15,8 +15,6 @@
|
|||||||
#include <virtio_types.h>
|
#include <virtio_types.h>
|
||||||
#include <virtio.h>
|
#include <virtio.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#if IS_ENABLED(CONFIG_MTD_NOR_FLASH)
|
#if IS_ENABLED(CONFIG_MTD_NOR_FLASH)
|
||||||
int is_flash_available(void)
|
int is_flash_available(void)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,8 +19,6 @@
|
|||||||
#include <asm/mach-imx/gpio.h>
|
#include <asm/mach-imx/gpio.h>
|
||||||
#include <asm/mach-imx/iomux-v3.h>
|
#include <asm/mach-imx/iomux-v3.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#if IS_ENABLED(CONFIG_FEC_MXC)
|
#if IS_ENABLED(CONFIG_FEC_MXC)
|
||||||
|
|
||||||
#define FEC_RST_PAD IMX_GPIO_NR(3, 7)
|
#define FEC_RST_PAD IMX_GPIO_NR(3, 7)
|
||||||
|
|||||||
@@ -17,8 +17,6 @@
|
|||||||
#include <asm/arch/ddr.h>
|
#include <asm/arch/ddr.h>
|
||||||
#include <asm/sections.h>
|
#include <asm/sections.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
||||||
{
|
{
|
||||||
switch (boot_dev_spl) {
|
switch (boot_dev_spl) {
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
#include <miiphy.h>
|
#include <miiphy.h>
|
||||||
#include <netdev.h>
|
#include <netdev.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/mach-imx/iomux-v3.h>
|
#include <asm/mach-imx/iomux-v3.h>
|
||||||
#include <asm-generic/gpio.h>
|
#include <asm-generic/gpio.h>
|
||||||
#include <asm/arch/imx8mp_pins.h>
|
#include <asm/arch/imx8mp_pins.h>
|
||||||
@@ -22,8 +21,6 @@
|
|||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/mach-imx/gpio.h>
|
#include <asm/mach-imx/gpio.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
static void setup_fec(void)
|
static void setup_fec(void)
|
||||||
{
|
{
|
||||||
struct iomuxc_gpr_base_regs *gpr =
|
struct iomuxc_gpr_base_regs *gpr =
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/imx8mp_pins.h>
|
#include <asm/arch/imx8mp_pins.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
@@ -24,8 +23,6 @@
|
|||||||
#include <power/pmic.h>
|
#include <power/pmic.h>
|
||||||
#include <power/pca9450.h>
|
#include <power/pca9450.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
||||||
{
|
{
|
||||||
return BOOT_DEVICE_BOOTROM;
|
return BOOT_DEVICE_BOOTROM;
|
||||||
|
|||||||
@@ -17,13 +17,10 @@
|
|||||||
#include <sysinfo.h>
|
#include <sysinfo.h>
|
||||||
#include <tpm-v1.h>
|
#include <tpm-v1.h>
|
||||||
#include <video_osd.h>
|
#include <video_osd.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
|
|
||||||
#include "../common/ihs_mdio.h"
|
#include "../common/ihs_mdio.h"
|
||||||
#include "../../../drivers/sysinfo/gazerbeam.h"
|
#include "../../../drivers/sysinfo/gazerbeam.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
struct ihs_mdio_info ihs_mdio_info[] = {
|
struct ihs_mdio_info ihs_mdio_info[] = {
|
||||||
{ .fpga = NULL, .name = "ihs0", .base = 0x58 },
|
{ .fpga = NULL, .name = "ihs0", .base = 0x58 },
|
||||||
{ .fpga = NULL, .name = "ihs1", .base = 0x58 },
|
{ .fpga = NULL, .name = "ihs1", .base = 0x58 },
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <miiphy.h>
|
#include <miiphy.h>
|
||||||
#include <netdev.h>
|
#include <netdev.h>
|
||||||
@@ -21,8 +20,6 @@
|
|||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define UART_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_FSEL1)
|
#define UART_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_FSEL1)
|
||||||
|
|
||||||
#define WDOG_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_HYS | PAD_CTL_PUE)
|
#define WDOG_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_HYS | PAD_CTL_PUE)
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <net.h>
|
#include <net.h>
|
||||||
#include <scsi.h>
|
#include <scsi.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
|
|
||||||
#include <linux/sizes.h>
|
#include <linux/sizes.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
@@ -37,8 +36,6 @@
|
|||||||
#define HB_SCU_A9_PWR_DORMANT 2
|
#define HB_SCU_A9_PWR_DORMANT 2
|
||||||
#define HB_SCU_A9_PWR_OFF 3
|
#define HB_SCU_A9_PWR_OFF 3
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
void cphy_disable_overrides(void);
|
void cphy_disable_overrides(void);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
#include <asm/arch/imx-regs.h>
|
#include <asm/arch/imx-regs.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/mach-imx/boot_mode.h>
|
#include <asm/mach-imx/boot_mode.h>
|
||||||
#include <dm/uclass.h>
|
#include <dm/uclass.h>
|
||||||
@@ -22,8 +21,6 @@
|
|||||||
|
|
||||||
#include "../common/hw-uid.h"
|
#include "../common/hw-uid.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#if IS_ENABLED(CONFIG_KONTRON_HW_UID)
|
#if IS_ENABLED(CONFIG_KONTRON_HW_UID)
|
||||||
struct uid_otp_loc uid_otp_locations[] = {
|
struct uid_otp_loc uid_otp_locations[] = {
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/imx-regs.h>
|
#include <asm/arch/imx-regs.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/mach-imx/boot_mode.h>
|
#include <asm/mach-imx/boot_mode.h>
|
||||||
#include <dm/uclass.h>
|
#include <dm/uclass.h>
|
||||||
@@ -23,8 +22,6 @@
|
|||||||
|
|
||||||
#include "../common/hw-uid.h"
|
#include "../common/hw-uid.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int board_early_init_f(void)
|
int board_early_init_f(void)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -15,8 +15,6 @@
|
|||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define UART_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_FSEL1)
|
#define UART_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_FSEL1)
|
||||||
#define WDOG_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_HYS | PAD_CTL_PUE)
|
#define WDOG_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_HYS | PAD_CTL_PUE)
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <miiphy.h>
|
#include <miiphy.h>
|
||||||
#include <netdev.h>
|
#include <netdev.h>
|
||||||
@@ -26,8 +25,6 @@
|
|||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <power/pmic.h>
|
#include <power/pmic.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define WDOG_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_HYS | PAD_CTL_PUE)
|
#define WDOG_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_HYS | PAD_CTL_PUE)
|
||||||
|
|
||||||
static iomux_v3_cfg_t const wdog_pads[] = {
|
static iomux_v3_cfg_t const wdog_pads[] = {
|
||||||
|
|||||||
@@ -18,8 +18,6 @@
|
|||||||
#include <asm-generic/gpio.h>
|
#include <asm-generic/gpio.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
static void setup_fec(void)
|
static void setup_fec(void)
|
||||||
{
|
{
|
||||||
struct iomuxc_gpr_base_regs *gpr =
|
struct iomuxc_gpr_base_regs *gpr =
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <mmc.h>
|
#include <mmc.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/ddr.h>
|
#include <asm/arch/ddr.h>
|
||||||
@@ -33,8 +32,6 @@
|
|||||||
#include <power/pmic.h>
|
#include <power/pmic.h>
|
||||||
#include <power/rn5t567_pmic.h>
|
#include <power/rn5t567_pmic.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
||||||
{
|
{
|
||||||
return BOOT_DEVICE_BOOTROM;
|
return BOOT_DEVICE_BOOTROM;
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/mach-imx/iomux-v3.h>
|
#include <asm/mach-imx/iomux-v3.h>
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
@@ -28,8 +27,6 @@
|
|||||||
#include <power/pmic.h>
|
#include <power/pmic.h>
|
||||||
#include <power/pca9450.h>
|
#include <power/pca9450.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
||||||
{
|
{
|
||||||
switch (boot_dev_spl) {
|
switch (boot_dev_spl) {
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <linux/libfdt.h>
|
#include <linux/libfdt.h>
|
||||||
#include <fdt_support.h>
|
#include <fdt_support.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
@@ -18,8 +17,6 @@
|
|||||||
#include <asm/arch/iomux.h>
|
#include <asm/arch/iomux.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define UART_PAD_CTRL ((SC_PAD_CONFIG_OUT_IN << PADRING_CONFIG_SHIFT) | \
|
#define UART_PAD_CTRL ((SC_PAD_CONFIG_OUT_IN << PADRING_CONFIG_SHIFT) | \
|
||||||
(SC_PAD_ISO_OFF << PADRING_LPCONFIG_SHIFT) | \
|
(SC_PAD_ISO_OFF << PADRING_LPCONFIG_SHIFT) | \
|
||||||
(SC_PAD_28FDSOI_DSE_DV_HIGH << PADRING_DSE_SHIFT) | \
|
(SC_PAD_28FDSOI_DSE_DV_HIGH << PADRING_DSE_SHIFT) | \
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <linux/libfdt.h>
|
#include <linux/libfdt.h>
|
||||||
#include <fsl_esdhc_imx.h>
|
#include <fsl_esdhc_imx.h>
|
||||||
@@ -21,8 +20,6 @@
|
|||||||
#include <asm/arch/iomux.h>
|
#include <asm/arch/iomux.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define GPIO_PAD_CTRL ((SC_PAD_CONFIG_NORMAL << PADRING_CONFIG_SHIFT) | \
|
#define GPIO_PAD_CTRL ((SC_PAD_CONFIG_NORMAL << PADRING_CONFIG_SHIFT) | \
|
||||||
(SC_PAD_ISO_OFF << PADRING_LPCONFIG_SHIFT) | \
|
(SC_PAD_ISO_OFF << PADRING_LPCONFIG_SHIFT) | \
|
||||||
(SC_PAD_28FDSOI_DSE_DV_HIGH << PADRING_DSE_SHIFT) | \
|
(SC_PAD_28FDSOI_DSE_DV_HIGH << PADRING_DSE_SHIFT) | \
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
#include <asm/arch/ddr.h>
|
#include <asm/arch/ddr.h>
|
||||||
#include <asm/arch/imx8mp_pins.h>
|
#include <asm/arch/imx8mp_pins.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/mach-imx/boot_mode.h>
|
#include <asm/mach-imx/boot_mode.h>
|
||||||
#include <asm/mach-imx/gpio.h>
|
#include <asm/mach-imx/gpio.h>
|
||||||
#include <asm/mach-imx/mxc_i2c.h>
|
#include <asm/mach-imx/mxc_i2c.h>
|
||||||
@@ -24,8 +23,6 @@
|
|||||||
#include "../common/imx8m_som_detection.h"
|
#include "../common/imx8m_som_detection.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define EEPROM_ADDR 0x51
|
#define EEPROM_ADDR 0x51
|
||||||
|
|
||||||
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
int spl_board_boot_device(enum boot_device boot_dev_spl)
|
||||||
|
|||||||
@@ -5,14 +5,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/mach-imx/boot_mode.h>
|
#include <asm/mach-imx/boot_mode.h>
|
||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <miiphy.h>
|
#include <miiphy.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
static int setup_fec(void)
|
static int setup_fec(void)
|
||||||
{
|
{
|
||||||
struct iomuxc_gpr_base_regs *gpr =
|
struct iomuxc_gpr_base_regs *gpr =
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
#include <asm/arch/ddr.h>
|
#include <asm/arch/ddr.h>
|
||||||
#include <asm/arch/imx8mm_pins.h>
|
#include <asm/arch/imx8mm_pins.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/mach-imx/boot_mode.h>
|
#include <asm/mach-imx/boot_mode.h>
|
||||||
#include <asm/mach-imx/iomux-v3.h>
|
#include <asm/mach-imx/iomux-v3.h>
|
||||||
#include <asm/sections.h>
|
#include <asm/sections.h>
|
||||||
@@ -19,8 +18,6 @@
|
|||||||
|
|
||||||
#include "../common/imx8m_som_detection.h"
|
#include "../common/imx8m_som_detection.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define EEPROM_ADDR 0x51
|
#define EEPROM_ADDR 0x51
|
||||||
#define EEPROM_ADDR_FALLBACK 0x59
|
#define EEPROM_ADDR_FALLBACK 0x59
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/mach-imx/boot_mode.h>
|
#include <asm/mach-imx/boot_mode.h>
|
||||||
#include <env.h>
|
#include <env.h>
|
||||||
@@ -17,8 +16,6 @@
|
|||||||
|
|
||||||
#include "../common/imx8m_som_detection.h"
|
#include "../common/imx8m_som_detection.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define EEPROM_ADDR 0x51
|
#define EEPROM_ADDR 0x51
|
||||||
#define EEPROM_ADDR_FALLBACK 0x59
|
#define EEPROM_ADDR_FALLBACK 0x59
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
#include <asm/arch/ddr.h>
|
#include <asm/arch/ddr.h>
|
||||||
#include <asm/arch/imx8mp_pins.h>
|
#include <asm/arch/imx8mp_pins.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/mach-imx/boot_mode.h>
|
#include <asm/mach-imx/boot_mode.h>
|
||||||
#include <asm/mach-imx/gpio.h>
|
#include <asm/mach-imx/gpio.h>
|
||||||
#include <asm/mach-imx/mxc_i2c.h>
|
#include <asm/mach-imx/mxc_i2c.h>
|
||||||
@@ -23,8 +22,6 @@
|
|||||||
#include "lpddr4_timing.h"
|
#include "lpddr4_timing.h"
|
||||||
#include "../common/imx8m_som_detection.h"
|
#include "../common/imx8m_som_detection.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define EEPROM_ADDR 0x51
|
#define EEPROM_ADDR 0x51
|
||||||
#define EEPROM_ADDR_FALLBACK 0x59
|
#define EEPROM_ADDR_FALLBACK 0x59
|
||||||
|
|
||||||
|
|||||||
@@ -7,15 +7,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/global_data.h>
|
|
||||||
#include <asm/mach-imx/boot_mode.h>
|
#include <asm/mach-imx/boot_mode.h>
|
||||||
#include <env.h>
|
#include <env.h>
|
||||||
#include <fdt_support.h>
|
#include <fdt_support.h>
|
||||||
|
|
||||||
#include "../common/imx93_som_detection.h"
|
#include "../common/imx93_som_detection.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
#define EEPROM_ADDR 0x50
|
#define EEPROM_ADDR 0x50
|
||||||
|
|
||||||
int board_init(void)
|
int board_init(void)
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user