pm.c (4e73e0eb633f8a1b5cbf20e7f42c6dbfec1d1ca7) | pm.c (b319ff80852e823c3a18778c839151784990f80b) |
---|---|
1/* 2 * arch/arm/mach-at91/pm.c 3 * AT91 Power Management 4 * 5 * Copyright (C) 2005 David Brownell 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 187 unchanged lines hidden (view full) --- 196 scsr = at91_sys_read(AT91_PMC_SCSR); 197 198 /* USB must not be using PLLB */ 199 if (cpu_is_at91rm9200()) { 200 if ((scsr & (AT91RM9200_PMC_UHP | AT91RM9200_PMC_UDP)) != 0) { 201 pr_err("AT91: PM - Suspend-to-RAM with USB still active\n"); 202 return 0; 203 } | 1/* 2 * arch/arm/mach-at91/pm.c 3 * AT91 Power Management 4 * 5 * Copyright (C) 2005 David Brownell 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 187 unchanged lines hidden (view full) --- 196 scsr = at91_sys_read(AT91_PMC_SCSR); 197 198 /* USB must not be using PLLB */ 199 if (cpu_is_at91rm9200()) { 200 if ((scsr & (AT91RM9200_PMC_UHP | AT91RM9200_PMC_UDP)) != 0) { 201 pr_err("AT91: PM - Suspend-to-RAM with USB still active\n"); 202 return 0; 203 } |
204 } else if (cpu_is_at91sam9260() || cpu_is_at91sam9261() || cpu_is_at91sam9263() || cpu_is_at91sam9g20()) { | 204 } else if (cpu_is_at91sam9260() || cpu_is_at91sam9261() || cpu_is_at91sam9263() 205 || cpu_is_at91sam9g20() || cpu_is_at91sam9g10()) { |
205 if ((scsr & (AT91SAM926x_PMC_UHP | AT91SAM926x_PMC_UDP)) != 0) { 206 pr_err("AT91: PM - Suspend-to-RAM with USB still active\n"); 207 return 0; 208 } 209 } else if (cpu_is_at91cap9()) { 210 if ((scsr & AT91CAP9_PMC_UHP) != 0) { 211 pr_err("AT91: PM - Suspend-to-RAM with USB still active\n"); 212 return 0; --- 163 unchanged lines hidden --- | 206 if ((scsr & (AT91SAM926x_PMC_UHP | AT91SAM926x_PMC_UDP)) != 0) { 207 pr_err("AT91: PM - Suspend-to-RAM with USB still active\n"); 208 return 0; 209 } 210 } else if (cpu_is_at91cap9()) { 211 if ((scsr & AT91CAP9_PMC_UHP) != 0) { 212 pr_err("AT91: PM - Suspend-to-RAM with USB still active\n"); 213 return 0; --- 163 unchanged lines hidden --- |