main.c (8647f7f0b9080bc2d2f6e02524782f2f02f159bc) | main.c (a82dfd33d1237f6c0fb8a7077022189d1fc7ec98) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2/* Copyright(c) 2018-2019 Realtek Corporation 3 */ 4 5#include <linux/devcoredump.h> 6 7#include "main.h" 8#include "regd.h" --- 1769 unchanged lines hidden (view full) --- 1778 struct rtw_hal *hal = &rtwdev->hal; 1779 struct rtw_efuse *efuse = &rtwdev->efuse; 1780 1781 switch (rtw_hci_type(rtwdev)) { 1782 case RTW_HCI_TYPE_PCIE: 1783 rtwdev->hci.rpwm_addr = 0x03d9; 1784 rtwdev->hci.cpwm_addr = 0x03da; 1785 break; | 1// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2/* Copyright(c) 2018-2019 Realtek Corporation 3 */ 4 5#include <linux/devcoredump.h> 6 7#include "main.h" 8#include "regd.h" --- 1769 unchanged lines hidden (view full) --- 1778 struct rtw_hal *hal = &rtwdev->hal; 1779 struct rtw_efuse *efuse = &rtwdev->efuse; 1780 1781 switch (rtw_hci_type(rtwdev)) { 1782 case RTW_HCI_TYPE_PCIE: 1783 rtwdev->hci.rpwm_addr = 0x03d9; 1784 rtwdev->hci.cpwm_addr = 0x03da; 1785 break; |
1786 case RTW_HCI_TYPE_USB: 1787 rtwdev->hci.rpwm_addr = 0xfe58; 1788 rtwdev->hci.cpwm_addr = 0xfe57; 1789 break; |
|
1786 default: 1787 rtw_err(rtwdev, "unsupported hci type\n"); 1788 return -EINVAL; 1789 } 1790 1791 hal->chip_version = rtw_read32(rtwdev, REG_SYS_CFG1); 1792 hal->cut_version = BIT_GET_CHIP_VER(hal->chip_version); 1793 hal->mp_chip = (hal->chip_version & BIT_RTL_ID) ? 0 : 1; --- 449 unchanged lines hidden --- | 1790 default: 1791 rtw_err(rtwdev, "unsupported hci type\n"); 1792 return -EINVAL; 1793 } 1794 1795 hal->chip_version = rtw_read32(rtwdev, REG_SYS_CFG1); 1796 hal->cut_version = BIT_GET_CHIP_VER(hal->chip_version); 1797 hal->mp_chip = (hal->chip_version & BIT_RTL_ID) ? 0 : 1; --- 449 unchanged lines hidden --- |