| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * OMAP WakeupGen Source file |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 10 | 11 | * |
|---|
| 11 | 12 | * Copyright (C) 2011 Texas Instruments, Inc. |
|---|
| 12 | 13 | * Santosh Shilimkar <santosh.shilimkar@ti.com> |
|---|
| 13 | | - * |
|---|
| 14 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 15 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 16 | | - * published by the Free Software Foundation. |
|---|
| 17 | 14 | */ |
|---|
| 18 | 15 | |
|---|
| 19 | 16 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 436 | 433 | { |
|---|
| 437 | 434 | switch (cmd) { |
|---|
| 438 | 435 | case CPU_CLUSTER_PM_ENTER: |
|---|
| 439 | | - if (omap_type() == OMAP2_DEVICE_TYPE_GP) |
|---|
| 436 | + if (omap_type() == OMAP2_DEVICE_TYPE_GP || soc_is_am43xx()) |
|---|
| 440 | 437 | irq_save_context(); |
|---|
| 441 | 438 | else |
|---|
| 442 | 439 | irq_save_secure_context(); |
|---|
| 443 | 440 | break; |
|---|
| 444 | 441 | case CPU_CLUSTER_PM_EXIT: |
|---|
| 445 | | - if (omap_type() == OMAP2_DEVICE_TYPE_GP) |
|---|
| 442 | + if (omap_type() == OMAP2_DEVICE_TYPE_GP || soc_is_am43xx()) |
|---|
| 446 | 443 | irq_restore_context(); |
|---|
| 447 | 444 | break; |
|---|
| 448 | 445 | } |
|---|