ARM: RX1950: Add suspend/resume support for RX1950
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
This commit is contained in:
parent
c4761b69f4
commit
0741b7d269
|
@ -60,10 +60,10 @@ static void s3c2410_pm_prepare(void)
|
||||||
__raw_writel(calc, phys_to_virt(H1940_SUSPEND_CHECKSUM));
|
__raw_writel(calc, phys_to_virt(H1940_SUSPEND_CHECKSUM));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* the RX3715 uses similar code and the same H1940 and the
|
/* RX3715 and RX1950 use similar to H1940 code and the
|
||||||
* same offsets for resume and checksum pointers */
|
* same offsets for resume and checksum pointers */
|
||||||
|
|
||||||
if (machine_is_rx3715()) {
|
if (machine_is_rx3715() || machine_is_rx1950()) {
|
||||||
void *base = phys_to_virt(H1940_SUSPEND_CHECK);
|
void *base = phys_to_virt(H1940_SUSPEND_CHECK);
|
||||||
unsigned long ptr;
|
unsigned long ptr;
|
||||||
unsigned long calc = 0;
|
unsigned long calc = 0;
|
||||||
|
|
|
@ -869,9 +869,10 @@ void __init reserve_node_zero(pg_data_t *pgdat)
|
||||||
if (machine_is_p720t())
|
if (machine_is_p720t())
|
||||||
res_size = 0x00014000;
|
res_size = 0x00014000;
|
||||||
|
|
||||||
/* H1940 and RX3715 need to reserve this for suspend */
|
/* H1940, RX3715 and RX1950 need to reserve this for suspend */
|
||||||
|
|
||||||
if (machine_is_h1940() || machine_is_rx3715()) {
|
if (machine_is_h1940() || machine_is_rx3715()
|
||||||
|
|| machine_is_rx1950()) {
|
||||||
reserve_bootmem_node(pgdat, 0x30003000, 0x1000,
|
reserve_bootmem_node(pgdat, 0x30003000, 0x1000,
|
||||||
BOOTMEM_DEFAULT);
|
BOOTMEM_DEFAULT);
|
||||||
reserve_bootmem_node(pgdat, 0x30081000, 0x1000,
|
reserve_bootmem_node(pgdat, 0x30081000, 0x1000,
|
||||||
|
|
Loading…
Reference in New Issue