Skip to content

Commit faff3fc

Browse files
committed
Merge tag 'at91-5.2-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux into arm/late
AT91 SoC for 5.2 - PM changes for SAM9X60 * tag 'at91-5.2-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux: ARM: at91: pm: do not disable/enable PLLA for ULP modes ARM: at91: pm: disable RC oscillator in ULP0 ARM: at91: pm: add ULP1 support for SAM9X60 ARM: at91: pm: add support for per SoC wakeup source configuration ARM: at91: pm: keep at91_pm_backup_init() only for SAMA5D2 SoCs ARM: at91: pm: initial PM support for SAM9X60 dt-bindings: arm: atmel: add binding for SAM9X60 SoC ARM: at91: pm: introduce at91_soc_pm structure Signed-off-by: Olof Johansson <[email protected]>
2 parents e40b069 + 2725d70 commit faff3fc

File tree

6 files changed

+232
-94
lines changed

6 files changed

+232
-94
lines changed

Documentation/devicetree/bindings/arm/atmel-at91.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ compatible: must be one of:
2525
o "atmel,at91sam9n12"
2626
o "atmel,at91sam9rl"
2727
o "atmel,at91sam9xe"
28+
o "microchip,sam9x60"
2829
* "atmel,sama5" for SoCs using a Cortex-A5, shall be extended with the specific
2930
SoC family:
3031
o "atmel,sama5d2" shall be extended with the specific SoC compatible:

arch/arm/mach-at91/at91sam9.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,21 @@ DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM9")
3232
.init_machine = at91sam9_init,
3333
.dt_compat = at91_dt_board_compat,
3434
MACHINE_END
35+
36+
static void __init sam9x60_init(void)
37+
{
38+
of_platform_default_populate(NULL, NULL, NULL);
39+
40+
sam9x60_pm_init();
41+
}
42+
43+
static const char *const sam9x60_dt_board_compat[] __initconst = {
44+
"microchip,sam9x60",
45+
NULL
46+
};
47+
48+
DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60")
49+
/* Maintainer: Microchip */
50+
.init_machine = sam9x60_init,
51+
.dt_compat = sam9x60_dt_board_compat,
52+
MACHINE_END

arch/arm/mach-at91/generic.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414
#ifdef CONFIG_PM
1515
extern void __init at91rm9200_pm_init(void);
1616
extern void __init at91sam9_pm_init(void);
17+
extern void __init sam9x60_pm_init(void);
1718
extern void __init sama5_pm_init(void);
1819
extern void __init sama5d2_pm_init(void);
1920
#else
2021
static inline void __init at91rm9200_pm_init(void) { }
2122
static inline void __init at91sam9_pm_init(void) { }
23+
static inline void __init sam9x60_pm_init(void) { }
2224
static inline void __init sama5_pm_init(void) { }
2325
static inline void __init sama5d2_pm_init(void) { }
2426
#endif

0 commit comments

Comments
 (0)