15 #include <linux/device.h>
23 #include <mach/hardware.h>
44 v = ((v & 0x7fffffffffffffffULL) * 2235) >> 5;
49 static struct resource puv3_usb_resources[] = {
68 #ifdef CONFIG_USB_INVENTRA_DMA
79 .config = puv3_usb_config,
82 static struct resource puv3_mmc_resources[] = {
95 static struct resource puv3_unigfx_resources[] = {
103 static struct resource puv3_rtc_resources[] = {
121 static struct resource puv3_pwm_resources[] = {
129 static struct resource puv3_uart0_resources[] = {
142 static struct resource puv3_uart1_resources[] = {
155 static struct resource puv3_umal_resources[] = {
168 #ifdef CONFIG_PUV3_PM
170 #define SAVE(x) sleep_save[SLEEP_SAVE_##x] = x
171 #define RESTORE(x) x = sleep_save[SLEEP_SAVE_##x]
179 SLEEP_SAVE_PM_PLLDDRCFG,
184 static void puv3_cpu_pm_save(
unsigned long *
sleep_save)
189 static void puv3_cpu_pm_restore(
unsigned long *
sleep_save)
194 static int puv3_cpu_pm_prepare(
void)
212 puv3_cpu_pm_prepare();
223 static void puv3_cpu_pm_finish(
void)
231 .valid = puv3_cpu_pm_valid,
232 .save = puv3_cpu_pm_save,
233 .restore = puv3_cpu_pm_restore,
234 .enter = puv3_cpu_pm_enter,
235 .prepare = puv3_cpu_pm_prepare,
236 .finish = puv3_cpu_pm_finish,
239 static void __init puv3_init_pm(
void)
244 static inline void puv3_init_pm(
void) {}
260 platform_device_register_simple(
"PKUnity-v3-RTC", -1,
261 puv3_rtc_resources,
ARRAY_SIZE(puv3_rtc_resources));
262 platform_device_register_simple(
"PKUnity-v3-UMAL", -1,
263 puv3_umal_resources,
ARRAY_SIZE(puv3_umal_resources));
264 platform_device_register_simple(
"PKUnity-v3-MMC", -1,
265 puv3_mmc_resources,
ARRAY_SIZE(puv3_mmc_resources));
266 platform_device_register_simple(
"PKUnity-v3-UNIGFX", -1,
267 puv3_unigfx_resources,
ARRAY_SIZE(puv3_unigfx_resources));
268 platform_device_register_simple(
"PKUnity-v3-PWM", -1,
269 puv3_pwm_resources,
ARRAY_SIZE(puv3_pwm_resources));
270 platform_device_register_simple(
"PKUnity-v3-UART", 0,
271 puv3_uart0_resources,
ARRAY_SIZE(puv3_uart0_resources));
272 platform_device_register_simple(
"PKUnity-v3-UART", 1,
273 puv3_uart1_resources,
ARRAY_SIZE(puv3_uart1_resources));
274 platform_device_register_simple(
"PKUnity-v3-AC97", -1,
NULL, 0);
275 platform_device_register_resndata(&
platform_bus,
"musb_hdrc", -1,
276 puv3_usb_resources,
ARRAY_SIZE(puv3_usb_resources),
277 &puv3_usb_plat,
sizeof(puv3_usb_plat));