Skip to content

Commit

Permalink
ARM: kirkwood: use devicetree for rtc-mv
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Acked-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Jason Cooper committed Mar 16, 2012
1 parent ea983ed commit e871b87
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/kirkwood.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,11 @@
/* set clock-frequency in board dts */
status = "disabled";
};

rtc@10300 {
compatible = "mrvl,kirkwood-rtc", "mrvl,orion-rtc";
reg = <0x10300 0x20>;
interrupts = <53>;
};
};
};
1 change: 0 additions & 1 deletion arch/arm/mach-kirkwood/board-dt.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ static void __init kirkwood_dt_init(void)
#endif

/* internal devices that every board has */
kirkwood_rtc_init();
kirkwood_wdt_init();
kirkwood_xor0_init();
kirkwood_xor1_init();
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-kirkwood/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ void __init kirkwood_nand_init_rnb(struct mtd_partition *parts, int nr_parts,
/*****************************************************************************
* SoC RTC
****************************************************************************/
void __init kirkwood_rtc_init(void)
static void __init kirkwood_rtc_init(void)
{
orion_rtc_init(RTC_PHYS_BASE, IRQ_KIRKWOOD_RTC);
}
Expand Down
1 change: 0 additions & 1 deletion arch/arm/mach-kirkwood/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ static inline void dreamplug_init(void) {};
/* early init functions not converted to fdt yet */
char *kirkwood_id(void);
void kirkwood_l2_init(void);
void kirkwood_rtc_init(void);
void kirkwood_wdt_init(void);
void kirkwood_xor0_init(void);
void kirkwood_xor1_init(void);
Expand Down

0 comments on commit e871b87

Please sign in to comment.