clksrc-dbx500-prcmu.c (9095bf25ea08135a5b74875dd0e3eeaddc4218a0) clksrc-dbx500-prcmu.c (1727339590fdb5a1ded881b540cd32121278d414)
1/*
2 * Copyright (C) ST-Ericsson SA 2011
3 *
4 * License Terms: GNU General Public License v2
5 * Author: Mattias Wallin <mattias.wallin@stericsson.com> for ST-Ericsson
6 * Author: Sundar Iyer for ST-Ericsson
7 * sched_clock implementation is based on:
8 * plat-nomadik/timer.c Linus Walleij <linus.walleij@stericsson.com>

--- 72 unchanged lines hidden (view full) ---

81 writel(TIMER_DOWNCOUNT_VAL,
82 clksrc_dbx500_timer_base + PRCMU_TIMER_REF);
83 }
84#ifdef CONFIG_CLKSRC_DBX500_PRCMU_SCHED_CLOCK
85 sched_clock_register(dbx500_prcmu_sched_clock_read, 32, RATE_32K);
86#endif
87 return clocksource_register_hz(&clocksource_dbx500_prcmu, RATE_32K);
88}
1/*
2 * Copyright (C) ST-Ericsson SA 2011
3 *
4 * License Terms: GNU General Public License v2
5 * Author: Mattias Wallin <mattias.wallin@stericsson.com> for ST-Ericsson
6 * Author: Sundar Iyer for ST-Ericsson
7 * sched_clock implementation is based on:
8 * plat-nomadik/timer.c Linus Walleij <linus.walleij@stericsson.com>

--- 72 unchanged lines hidden (view full) ---

81 writel(TIMER_DOWNCOUNT_VAL,
82 clksrc_dbx500_timer_base + PRCMU_TIMER_REF);
83 }
84#ifdef CONFIG_CLKSRC_DBX500_PRCMU_SCHED_CLOCK
85 sched_clock_register(dbx500_prcmu_sched_clock_read, 32, RATE_32K);
86#endif
87 return clocksource_register_hz(&clocksource_dbx500_prcmu, RATE_32K);
88}
89CLOCKSOURCE_OF_DECLARE(dbx500_prcmu, "stericsson,db8500-prcmu-timer-4",
89TIMER_OF_DECLARE(dbx500_prcmu, "stericsson,db8500-prcmu-timer-4",
90 clksrc_dbx500_prcmu_init);
90 clksrc_dbx500_prcmu_init);