xref: /linux/drivers/gpu/drm/ast/ast_2600.c (revision f67fb980e19d86664da8d04c6e10f7c2b35de404)
1*f67fb980SThomas Zimmermann // SPDX-License-Identifier: MIT
2*f67fb980SThomas Zimmermann /*
3*f67fb980SThomas Zimmermann  * Copyright 2012 Red Hat Inc.
4*f67fb980SThomas Zimmermann  *
5*f67fb980SThomas Zimmermann  * Permission is hereby granted, free of charge, to any person obtaining a
6*f67fb980SThomas Zimmermann  * copy of this software and associated documentation files (the
7*f67fb980SThomas Zimmermann  * "Software"), to deal in the Software without restriction, including
8*f67fb980SThomas Zimmermann  * without limitation the rights to use, copy, modify, merge, publish,
9*f67fb980SThomas Zimmermann  * distribute, sub license, and/or sell copies of the Software, and to
10*f67fb980SThomas Zimmermann  * permit persons to whom the Software is furnished to do so, subject to
11*f67fb980SThomas Zimmermann  * the following conditions:
12*f67fb980SThomas Zimmermann  *
13*f67fb980SThomas Zimmermann  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14*f67fb980SThomas Zimmermann  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15*f67fb980SThomas Zimmermann  * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
16*f67fb980SThomas Zimmermann  * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
17*f67fb980SThomas Zimmermann  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
18*f67fb980SThomas Zimmermann  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
19*f67fb980SThomas Zimmermann  * USE OR OTHER DEALINGS IN THE SOFTWARE.
20*f67fb980SThomas Zimmermann  *
21*f67fb980SThomas Zimmermann  * The above copyright notice and this permission notice (including the
22*f67fb980SThomas Zimmermann  * next paragraph) shall be included in all copies or substantial portions
23*f67fb980SThomas Zimmermann  * of the Software.
24*f67fb980SThomas Zimmermann  */
25*f67fb980SThomas Zimmermann /*
26*f67fb980SThomas Zimmermann  * Authors: Dave Airlie <airlied@redhat.com>
27*f67fb980SThomas Zimmermann  */
28*f67fb980SThomas Zimmermann 
29*f67fb980SThomas Zimmermann #include "ast_drv.h"
30*f67fb980SThomas Zimmermann 
31*f67fb980SThomas Zimmermann /*
32*f67fb980SThomas Zimmermann  * POST
33*f67fb980SThomas Zimmermann  */
34*f67fb980SThomas Zimmermann 
35*f67fb980SThomas Zimmermann int ast_2600_post(struct ast_device *ast)
36*f67fb980SThomas Zimmermann {
37*f67fb980SThomas Zimmermann 	if (ast->tx_chip == AST_TX_ASTDP)
38*f67fb980SThomas Zimmermann 		return ast_dp_launch(ast);
39*f67fb980SThomas Zimmermann 
40*f67fb980SThomas Zimmermann 	return 0;
41*f67fb980SThomas Zimmermann }
42