mirror of
https://xff.cz/git/u-boot/
synced 2025-09-29 22:41:17 +02:00
ppc: Move mirror_hack to arch_global_data
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -119,6 +119,9 @@ struct arch_global_data {
|
|||||||
#if defined(CONFIG_4xx)
|
#if defined(CONFIG_4xx)
|
||||||
u32 uart_clk;
|
u32 uart_clk;
|
||||||
#endif /* CONFIG_4xx */
|
#endif /* CONFIG_4xx */
|
||||||
|
#if defined(CONFIG_SYS_GT_6426x)
|
||||||
|
unsigned int mirror_hack[16];
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -148,9 +151,6 @@ typedef struct global_data {
|
|||||||
#ifdef CONFIG_PRE_CONSOLE_BUFFER
|
#ifdef CONFIG_PRE_CONSOLE_BUFFER
|
||||||
unsigned long precon_buf_idx; /* Pre-Console buffer index */
|
unsigned long precon_buf_idx; /* Pre-Console buffer index */
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_SYS_GT_6426x)
|
|
||||||
unsigned int mirror_hack[16];
|
|
||||||
#endif
|
|
||||||
#if defined(CONFIG_A3000) || \
|
#if defined(CONFIG_A3000) || \
|
||||||
defined(CONFIG_HIDDEN_DRAGON) || \
|
defined(CONFIG_HIDDEN_DRAGON) || \
|
||||||
defined(CONFIG_MUSENKI) || \
|
defined(CONFIG_MUSENKI) || \
|
||||||
|
@@ -88,7 +88,7 @@ static void galsdma_enable_rx(void);
|
|||||||
|
|
||||||
|
|
||||||
/* GT64240A errata: cant read MPSC/BRG registers... so make mirrors in ram for read/modify write */
|
/* GT64240A errata: cant read MPSC/BRG registers... so make mirrors in ram for read/modify write */
|
||||||
#define MIRROR_HACK ((struct _tag_mirror_hack *)&(gd->mirror_hack[0]))
|
#define MIRROR_HACK ((struct _tag_mirror_hack *)&(gd->arch.mirror_hack[0]))
|
||||||
|
|
||||||
#define GT_REG_WRITE_MIRROR_G(a,d) {MIRROR_HACK->a ## _M = d; GT_REG_WRITE(a,d);}
|
#define GT_REG_WRITE_MIRROR_G(a,d) {MIRROR_HACK->a ## _M = d; GT_REG_WRITE(a,d);}
|
||||||
#define GTREGREAD_MIRROR_G(a) (MIRROR_HACK->a ## _M)
|
#define GTREGREAD_MIRROR_G(a) (MIRROR_HACK->a ## _M)
|
||||||
|
Reference in New Issue
Block a user