.. | .. |
---|
26 | 26 | #include <linux/kernel.h> |
---|
27 | 27 | #include <linux/errno.h> |
---|
28 | 28 | |
---|
29 | | -#include <sound/aess.h> |
---|
30 | | - |
---|
31 | 29 | #include "omap_hwmod.h" |
---|
32 | 30 | #include "common.h" |
---|
33 | 31 | |
---|
.. | .. |
---|
39 | 37 | #define OMAP_RTC_KICK1_VALUE 0x95A4F1E0 |
---|
40 | 38 | #define OMAP_RTC_STATUS_BUSY BIT(0) |
---|
41 | 39 | #define OMAP_RTC_MAX_READY_TIME 50 |
---|
42 | | - |
---|
43 | | -/** |
---|
44 | | - * omap_hwmod_aess_preprogram - enable AESS internal autogating |
---|
45 | | - * @oh: struct omap_hwmod * |
---|
46 | | - * |
---|
47 | | - * The AESS will not IdleAck to the PRCM until its internal autogating |
---|
48 | | - * is enabled. Since internal autogating is disabled by default after |
---|
49 | | - * AESS reset, we must enable autogating after the hwmod code resets |
---|
50 | | - * the AESS. Returns 0. |
---|
51 | | - */ |
---|
52 | | -int omap_hwmod_aess_preprogram(struct omap_hwmod *oh) |
---|
53 | | -{ |
---|
54 | | - void __iomem *va; |
---|
55 | | - |
---|
56 | | - va = omap_hwmod_get_mpu_rt_va(oh); |
---|
57 | | - if (!va) |
---|
58 | | - return -EINVAL; |
---|
59 | | - |
---|
60 | | - aess_enable_autogating(va); |
---|
61 | | - |
---|
62 | | - return 0; |
---|
63 | | -} |
---|
64 | 40 | |
---|
65 | 41 | /** |
---|
66 | 42 | * omap_rtc_wait_not_busy - Wait for the RTC BUSY flag |
---|