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