diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-27 12:14:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-27 12:14:46 -0400 |
commit | 32f15dc5e6252f03aa2e04a2b140827a8297f21f (patch) | |
tree | 2898e6fd94c9e2f668dd76fb1b0290b84c6314e6 /arch/avr32/boards/atstk1000 | |
parent | 07db59bd6b0f279c31044cba6787344f63be87ea (diff) | |
parent | 8224ca195874525533665bbcd23b6da1e575aa4d (diff) |
Merge branch 'for-linus' of git://www.atmel.no/~hskinnemoen/linux/kernel/avr32
* 'for-linus' of git://www.atmel.no/~hskinnemoen/linux/kernel/avr32: (21 commits)
[AVR32] Fix compile error with gcc 4.1
avr32: remove unneeded cast in atomic.h
AVR32: Remove useless config option "GENERIC_BUST_SPINLOCK".
[AVR32] Optimize the TLB miss handler
[AVR32] Board code for ATNGW100
[AVR32] Use memcpy/memset in memcpy_{from,to}_io and memset_io
[AVR32] Get rid of board_setup_fbmem()
[AVR32] Reserve framebuffer memory in early_parse_fbmem()
[AVR32] Simplify early handling of memory regions
[AVR32] Move setup_bootmem() from mm/init.c to kernel/setup.c
[AVR32] Make I/O access macros work with external devices
[AVR32] Fix NMI handler
[AVR32] Clean up exception handling code
[AVR32] Clean up cpu identification and add features bitmap
[AVR32] Clean up asm/sysreg.h
[AVR32] Don't enable clocks with no users
[AVR32] Put cpu in sleep 0 when idle.
[AVR32] Change system timer from count-compare to Timer/Counter 0
[AVR32] Add mach-specific Kconfig
[AVR32] Add nwait and tdf parameters to SMC configuration
...
Diffstat (limited to 'arch/avr32/boards/atstk1000')
-rw-r--r-- | arch/avr32/boards/atstk1000/atstk1002.c | 4 | ||||
-rw-r--r-- | arch/avr32/boards/atstk1000/setup.c | 30 |
2 files changed, 3 insertions, 31 deletions
diff --git a/arch/avr32/boards/atstk1000/atstk1002.c b/arch/avr32/boards/atstk1000/atstk1002.c index 5974768a59e5..abe6ca203fa7 100644 --- a/arch/avr32/boards/atstk1000/atstk1002.c +++ b/arch/avr32/boards/atstk1000/atstk1002.c | |||
@@ -33,7 +33,7 @@ struct eth_addr { | |||
33 | static struct eth_addr __initdata hw_addr[2]; | 33 | static struct eth_addr __initdata hw_addr[2]; |
34 | 34 | ||
35 | static struct eth_platform_data __initdata eth_data[2]; | 35 | static struct eth_platform_data __initdata eth_data[2]; |
36 | extern struct lcdc_platform_data atstk1000_fb0_data; | 36 | static struct lcdc_platform_data atstk1000_fb0_data; |
37 | 37 | ||
38 | static struct spi_board_info spi0_board_info[] __initdata = { | 38 | static struct spi_board_info spi0_board_info[] __initdata = { |
39 | { | 39 | { |
@@ -148,6 +148,8 @@ static int __init atstk1002_init(void) | |||
148 | set_hw_addr(at32_add_device_eth(0, ð_data[0])); | 148 | set_hw_addr(at32_add_device_eth(0, ð_data[0])); |
149 | 149 | ||
150 | at32_add_device_spi(0, spi0_board_info, ARRAY_SIZE(spi0_board_info)); | 150 | at32_add_device_spi(0, spi0_board_info, ARRAY_SIZE(spi0_board_info)); |
151 | atstk1000_fb0_data.fbmem_start = fbmem_start; | ||
152 | atstk1000_fb0_data.fbmem_size = fbmem_size; | ||
151 | at32_add_device_lcdc(0, &atstk1000_fb0_data); | 153 | at32_add_device_lcdc(0, &atstk1000_fb0_data); |
152 | 154 | ||
153 | return 0; | 155 | return 0; |
diff --git a/arch/avr32/boards/atstk1000/setup.c b/arch/avr32/boards/atstk1000/setup.c index 272c011802a7..2bc4b88d7edb 100644 --- a/arch/avr32/boards/atstk1000/setup.c +++ b/arch/avr32/boards/atstk1000/setup.c | |||
@@ -18,33 +18,3 @@ | |||
18 | 18 | ||
19 | /* Initialized by bootloader-specific startup code. */ | 19 | /* Initialized by bootloader-specific startup code. */ |
20 | struct tag *bootloader_tags __initdata; | 20 | struct tag *bootloader_tags __initdata; |
21 | |||
22 | struct lcdc_platform_data __initdata atstk1000_fb0_data; | ||
23 | |||
24 | void __init board_setup_fbmem(unsigned long fbmem_start, | ||
25 | unsigned long fbmem_size) | ||
26 | { | ||
27 | if (!fbmem_size) | ||
28 | return; | ||
29 | |||
30 | if (!fbmem_start) { | ||
31 | void *fbmem; | ||
32 | |||
33 | fbmem = alloc_bootmem_low_pages(fbmem_size); | ||
34 | fbmem_start = __pa(fbmem); | ||
35 | } else { | ||
36 | pg_data_t *pgdat; | ||
37 | |||
38 | for_each_online_pgdat(pgdat) { | ||
39 | if (fbmem_start >= pgdat->bdata->node_boot_start | ||
40 | && fbmem_start <= pgdat->bdata->node_low_pfn) | ||
41 | reserve_bootmem_node(pgdat, fbmem_start, | ||
42 | fbmem_size); | ||
43 | } | ||
44 | } | ||
45 | |||
46 | printk("%luKiB framebuffer memory at address 0x%08lx\n", | ||
47 | fbmem_size >> 10, fbmem_start); | ||
48 | atstk1000_fb0_data.fbmem_start = fbmem_start; | ||
49 | atstk1000_fb0_data.fbmem_size = fbmem_size; | ||
50 | } | ||