Simon Glass
1f7559ec38
nios2: Use generic global_data
...
Move nios2 over to use generic global_data.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Thomas Chou <thomas@wytron.com.tw>
12 years ago
Simon Glass
ee22c1a214
nds32: Use generic global_data
...
Move nds32 over to use generic global_data.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
9572202026
mips: Use generic global_data
...
Move mips over to use generic global_data.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
eef5415036
microblaze: Use generic global_data
...
Move microblaze over to use generic global_data.
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Michal Simek <monstr@monstr.eu>
12 years ago
Simon Glass
e56b250735
m68k: Use generic global_data
...
Move m68k over to use generic global_data.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
06b507b85c
blackfin: Use generic global_data
...
Move blackfin over to use generic global_data.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
47a9789f25
avr32: Use generic global_data
...
Move avr32 over to use generic global_data.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
baa1e53683
arm: Use generic global_data
...
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
c8fcd0f279
Only use fb_base if we have a display
...
The ideal of having a frame buffer when there isn't a display is not
that useful. Change the bdinfo command to expect this only when we
have an lcd or video display.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
50b1fa3996
Add generic global_data
...
Add a generic global_data structure which all archs will eventually
use.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
8ee666a76f
sandbox: Move ram_buf to arch_global_data
...
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
3d0f8c8f80
avr32: Move cpu_hz to arch_global_data
...
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
1c865d5897
avr32: Move stack_end to arch_global_data
...
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
035cbe99cd
mips: Move per_clk and dev_clk to arch_global_data
...
Move these field into arch_global_data and tidy up. The other
CONFIG_JZSOC fields are used by various architectures, so just remove
the #ifdef bracketing for these.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
7e2592fd5a
m68k: Move CONFIG_EXTRA_CLOCK to arch_global_data
...
Move inp_clk, vco_clk and flb_clk into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
fa25c6f0cc
sparc: Drop kbd_status and reset_status from global_data
...
These fields is not used on sparc, so punt them.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
e9adeca3fc
ppc: arm: Move sdhc_clk into arch_global_data
...
This is used by both powerpc and arm, but I think it still qualifies as
architecture-specific.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
225ca83dfe
ppc: Move kbd_status to arch_global_data
...
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
a0d3c820c4
ppc: Move wdt_last to arch_global_data
...
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
923a662f2f
ppc: Move fpga_state to arch_global_data
...
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
7273ccec61
ppc: Remove console_addr from global data
...
This does not appear to be used, so punt it.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
7e15d6dbf3
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>
12 years ago
Simon Glass
3a1dc8f125
arm: Move uart_clk to arch_global_data
...
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
6bb9ba7260
ppc: Move dp_alloc_base, dp_alloc_top to arch_global_data
...
Move these fields into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
43e60814b3
ppc: Move arbiter fields to arch_global_data
...
Move arbiter_event_attributes and arbiter_event_address into
arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
3c4c308c00
ppc: Move reset_status to arch_global_data
...
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
1c356135fa
ppc: Move mpc8220 clocks to arch_global_data
...
Move these fields into arch_global_data and tidy up. The bExtUart field
does not appear to be used, so punt it.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
fefb098b18
ppc: Move mpc512x clocks to arch_global_data
...
Move ips_clk and csb_clk into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
b28774966c
ppc: Move mpc5xxx clocks to arch_global_data
...
Move ipb_clk and pci_clk into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
7c80c6c51a
ppc: Move used_tlb_cams to arch_global_data
...
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
8670dbc953
ppc: Move used_laws to arch_global_data
...
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
45bae2e3cf
ppc: Move CONFIG_QE to arch_global_data
...
Move the quantative easing fields into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
609e6ec3f6
ppc: m68k: Move i2c1_clk, i2c2_clk to arch_global_data
...
Move these fields into arch_global_data and tidy up. This is needed for
both ppc and m68k since they share the i2c driver.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
67ac13b1b9
ppc: Move lbc_clk and cpu to arch_global_data
...
Move these fields into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
[trini: Update for bsc9132qds.c, b4860qds.c]
Signed-off-by: Tom Rini <trini@ti.com>
12 years ago
Simon Glass
c6731fe22a
ppc: Move mpc83xx clock fields to arch_global_data
...
Move al mpc83xx fields into arch_global_data and tidy up. Also indent
the nested #ifdef for clarity.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
748cd0591a
ppc: Move clock fields to arch_global_data
...
Move vco_out, cpm_clk, scc_clk, brg_clk into arch_global_data and tidy
up. Leave pci_clk on its own since this should really depend only on
CONFIG_PCI and not any particular chip type.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
9fb23624a6
ppc: Remove extra pci_clk fields from global_data
...
PPC has several of these fields, selected by chip type, although only one
is ever compiled in.
Instead, use a single field. It would be nice if this could be selected
by CONFIG_PCI, but some chips (e.g. mpc5xxx) use pci_clk even when
CONFIG_PCI is not enabled.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
1206c18403
ppc: Move brg_clk to arch_global_data
...
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
6cb49c13f6
x86: Remove reset_status, relocoff from global_data
...
These fields are not used on x86, so punt them.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
5a35e6c48e
x86: Move gd_addr into arch_global_data
...
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
[trini: Add arch/x86/cpu/cpu.c changes after Graeme's comments]
Signed-off-by: Tom Rini <trini@ti.com>
12 years ago
Simon Glass
0cecc3b679
x86: Set up the global data pointer in C instead of asm
...
We currently assume that the global data pointer is at the start of
struct global_data. We want to remove this restriction, and it is
easiest to do this in C.
Remove the asm code and add equivalent code in C.
This idea was proposed by Graeme Russ here:
http://patchwork.ozlabs.org/patch/199741/
Signed-off-by: Simon Glass <sjg@chromium.org>
[trini: Apply Graeme Russ' comments
http://patchwork.ozlabs.org/patch/206305/ here, re-order]
Signed-off-by: Tom Rini <trini@ti.com>
12 years ago
Simon Glass
df4aa625a2
x86: Remove gdt_addr from arch_global_data
...
Remove this unused field.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
34fd5d253d
arm: Move tlb_addr and tlb_size to arch_global_data
...
Move these fields into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
[trini: Address tlb_size in this patch as well]
Signed-off-by: Tom Rini <trini@ti.com>
12 years ago
Simon Glass
37434783bb
nds32: Drop tlb_addr from global data
...
This field doesn't appear to be used for anything important, so drop it.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
b4d51db86b
ixp: Move timestamp to arch_global_data
...
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
5f70714c2f
arm: Move timer_reset_value to arch_global_data
...
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
582601da2f
arm: Move lastinc to arch_global_data
...
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
66ee692347
arm: Move tbl to arch_global_data
...
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
8ff43b03e9
arm: Move tbu to arch_global_data
...
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago
Simon Glass
b339051c0d
arm: Move timer_rate_hz into arch_global_data
...
Move this field into arch_global_data and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
12 years ago