aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/global_data.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-06 21:41:41 -0700
committerBin Meng <bmeng.cn@gmail.com>2019-12-15 11:44:08 +0800
commit8d72d5bf08488ff28a8ed27389dae8a169c39190 (patch)
tree4dc6096e0d8b7b330eba11cbb9849b562503a30e /arch/x86/include/asm/global_data.h
parent457df2337fc90431dc60b9b256ac1fdb8809f4cf (diff)
downloadu-boot-8d72d5bf08488ff28a8ed27389dae8a169c39190.zip
u-boot-8d72d5bf08488ff28a8ed27389dae8a169c39190.tar.gz
u-boot-8d72d5bf08488ff28a8ed27389dae8a169c39190.tar.bz2
i2c: designware: Avoid using static data
Drivers are not allowed to use static data since they may be used in SPL where BSS is not available. It is possible that driver model may provide support for numbering devices in the future. But for now, move this to global_data. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/include/asm/global_data.h')
-rw-r--r--arch/x86/include/asm/global_data.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/global_data.h b/arch/x86/include/asm/global_data.h
index 7f3ada0..0e7b946 100644
--- a/arch/x86/include/asm/global_data.h
+++ b/arch/x86/include/asm/global_data.h
@@ -96,6 +96,7 @@ struct arch_global_data {
ulong table; /* Table pointer from previous loader */
int turbo_state; /* Current turbo state */
struct irq_routing_table *pirq_routing_table;
+ int dw_i2c_num_cards; /* Used by designware i2c driver */
#ifdef CONFIG_SEABIOS
u32 high_table_ptr;
u32 high_table_limit;