mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-15 03:36:59 +02:00
This follows the example of RISC-V where <asm/global_data.h> includes <asm/u-boot.h> directly as "gd" includes a reference to bd_info already and so the first must include the second anyhow. We then remove <asm/u-boot.h> from all of the places which include references to "gd" an so have <asm/global_data.h> already. Signed-off-by: Tom Rini <trini@konsulko.com>
22 lines
384 B
C
22 lines
384 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) Copyright 2007, Tensilica Inc.
|
|
*/
|
|
|
|
#ifndef _XTENSA_GBL_DATA_H
|
|
#define _XTENSA_GBL_DATA_H
|
|
|
|
#include <asm/u-boot.h>
|
|
|
|
/* Architecture-specific global data */
|
|
|
|
struct arch_global_data {
|
|
unsigned long cpu_clk;
|
|
};
|
|
|
|
#include <asm-generic/global_data.h>
|
|
|
|
#define DECLARE_GLOBAL_DATA_PTR extern gd_t *gd
|
|
|
|
#endif /* _XTENSA_GBL_DATA_H */
|