musb_dsps.c (1d57de306e1f3e73c607811a974f6662162e5df6) musb_dsps.c (5b7839836109a802b144a05cfbd4f57e6564d8e5)
1/*
2 * Texas Instruments DSPS platforms "glue layer"
3 *
4 * Copyright (C) 2012, by Texas Instruments
5 *
6 * Based on the am35x "glue layer" code.
7 *
8 * This file is part of the Inventra Controller Driver for Linux.

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

769
770static const struct of_device_id musb_dsps_of_match[] = {
771 { .compatible = "ti,musb-am33xx",
772 .data = (void *) &am33xx_driver_data, },
773 { },
774};
775MODULE_DEVICE_TABLE(of, musb_dsps_of_match);
776
1/*
2 * Texas Instruments DSPS platforms "glue layer"
3 *
4 * Copyright (C) 2012, by Texas Instruments
5 *
6 * Based on the am35x "glue layer" code.
7 *
8 * This file is part of the Inventra Controller Driver for Linux.

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

769
770static const struct of_device_id musb_dsps_of_match[] = {
771 { .compatible = "ti,musb-am33xx",
772 .data = (void *) &am33xx_driver_data, },
773 { },
774};
775MODULE_DEVICE_TABLE(of, musb_dsps_of_match);
776
777#ifdef CONFIG_PM
777#ifdef CONFIG_PM_SLEEP
778static int dsps_suspend(struct device *dev)
779{
780 struct dsps_glue *glue = dev_get_drvdata(dev);
781 const struct dsps_musb_wrapper *wrp = glue->wrp;
782 struct musb *musb = platform_get_drvdata(glue->musb);
783 void __iomem *mbase = musb->ctrl_base;
784
785 glue->context.control = dsps_readl(mbase, wrp->control);

--- 47 unchanged lines hidden ---
778static int dsps_suspend(struct device *dev)
779{
780 struct dsps_glue *glue = dev_get_drvdata(dev);
781 const struct dsps_musb_wrapper *wrp = glue->wrp;
782 struct musb *musb = platform_get_drvdata(glue->musb);
783 void __iomem *mbase = musb->ctrl_base;
784
785 glue->context.control = dsps_readl(mbase, wrp->control);

--- 47 unchanged lines hidden ---