| .. | .. |
|---|
| 22 | 22 | #include <linux/mtd/physmap.h> |
|---|
| 23 | 23 | #include <linux/platform_device.h> |
|---|
| 24 | 24 | #include <linux/platform_data/txx9/ndfmc.h> |
|---|
| 25 | | -#include <asm/bootinfo.h> |
|---|
| 26 | 25 | #include <asm/reboot.h> |
|---|
| 27 | 26 | #include <asm/traps.h> |
|---|
| 28 | 27 | #include <asm/txx9irq.h> |
|---|
| .. | .. |
|---|
| 93 | 92 | static struct resource tx4939_sdram_resource[4]; |
|---|
| 94 | 93 | static struct resource tx4939_sram_resource; |
|---|
| 95 | 94 | #define TX4939_SRAM_SIZE 0x800 |
|---|
| 96 | | - |
|---|
| 97 | | -void __init tx4939_add_memory_regions(void) |
|---|
| 98 | | -{ |
|---|
| 99 | | - int i; |
|---|
| 100 | | - unsigned long start, size; |
|---|
| 101 | | - u64 win; |
|---|
| 102 | | - |
|---|
| 103 | | - for (i = 0; i < 4; i++) { |
|---|
| 104 | | - if (!((__u32)____raw_readq(&tx4939_ddrcptr->winen) & (1 << i))) |
|---|
| 105 | | - continue; |
|---|
| 106 | | - win = ____raw_readq(&tx4939_ddrcptr->win[i]); |
|---|
| 107 | | - start = (unsigned long)(win >> 48); |
|---|
| 108 | | - size = (((unsigned long)(win >> 32) & 0xffff) + 1) - start; |
|---|
| 109 | | - add_memory_region(start << 20, size << 20, BOOT_MEM_RAM); |
|---|
| 110 | | - } |
|---|
| 111 | | -} |
|---|
| 112 | 95 | |
|---|
| 113 | 96 | void __init tx4939_setup(void) |
|---|
| 114 | 97 | { |
|---|