Files
android/drivers/misc/mediatek/connectivity/fmradio/plat/inc/plat.h
T
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
Squashed backup commit (no shallow-clone history issues) of
xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream
commit 9eece662e) plus all fixes applied to get everpal_defconfig building
clean against a modern (GCC 15.2.0) toolchain -- see the previous commit
message on the lineage-23.2 branch (also in this repo history is not
available here since this is a squashed snapshot; full incremental history
lives in the local DL380 checkout and the upstream GitHub remote).

Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
2026-09-12 13:36:46 +00:00

98 lines
2.4 KiB
C

/*
* Copyright (C) 2019 MediaTek Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See http://www.gnu.org/licenses/gpl-2.0.html for more details.
*/
#ifndef FM_PLAT_H
#define FM_PLAT_H
#include <linux/mm.h>
#include <linux/platform_device.h>
#include <linux/ioport.h>
#include <linux/interrupt.h>
#include "fm_typedef.h"
#include "fm_dbg.h"
#include "fm_err.h"
#include "fm_stdlib.h"
#include "fm_link.h"
#include "fm_utils.h"
#include "fm_rds.h"
#include "fm_ext_api.h"
#include "fm_reg_utils.h"
#include "fm_main.h"
#if CFG_FM_CONNAC2
#include "conninfra.h"
#else /* CFG_FM_CONNAC2 */
#include "osal_typedef.h"
#include "stp_exp.h"
#include "wmt_exp.h"
enum {
SYS_SPI_WF1 = 0x00,
SYS_SPI_WF = 0x01,
SYS_SPI_BT = 0x02,
SYS_SPI_FM = 0x03,
SYS_SPI_GPS = 0x04,
SYS_SPI_TOP = 0x05,
SYS_SPI_WF2 = 0x06,
SYS_SPI_WF3 = 0x07,
SYS_SPI_MAX
};
#endif /* CFG_FM_CONNAC2 */
enum {
FM_SYS_SPI_OK = 0,
FM_SYS_SPI_BUSY,
FM_SYS_SPI_ERR
};
enum {
FM_CONNAC_LEGACY = 0,
FM_CONNAC_1_0,
FM_CONNAC_1_2,
FM_CONNAC_1_5,
FM_CONNAC_2_0,
FM_CONNAC_2_1,
FM_CONNAC_UNKNOWN
};
extern signed int fm_rds_parser(
struct rds_rx_t *rds_raw, signed int rds_size);
extern signed int mt6631_fm_low_ops_register(
struct fm_callback *cb, struct fm_basic_interface *bi);
extern signed int mt6631_fm_low_ops_unregister(
struct fm_basic_interface *bi);
extern signed int mt6631_fm_rds_ops_register(
struct fm_basic_interface *bi, struct fm_rds_interface *ri);
extern signed int mt6631_fm_rds_ops_unregister(
struct fm_rds_interface *ri);
extern signed int mt6635_fm_low_ops_register(
struct fm_callback *cb, struct fm_basic_interface *bi);
extern signed int mt6635_fm_low_ops_unregister(
struct fm_basic_interface *bi);
extern signed int mt6635_fm_rds_ops_register(
struct fm_basic_interface *bi, struct fm_rds_interface *ri);
extern signed int mt6635_fm_rds_ops_unregister(
struct fm_rds_interface *ri);
extern signed int connac2x_fm_low_ops_register(
struct fm_callback *cb, struct fm_basic_interface *bi);
extern signed int connac2x_fm_low_ops_unregister(
struct fm_basic_interface *bi);
#endif /* FM_PLAT_H */