diff options
Diffstat (limited to 'arch/avr32/boards/atstk1000/setup.c')
-rw-r--r-- | arch/avr32/boards/atstk1000/setup.c | 30 |
1 files changed, 0 insertions, 30 deletions
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 | } | ||