diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2011-04-23 22:27:59 +0200 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2011-05-29 19:51:54 +0200 |
commit | a78316c8315fc075e8253fd8678e6a7b5c8bf1d8 (patch) | |
tree | 59ac9237ae92de8e3b882e2d510c167a2affeeef /src/target/firmware/include | |
parent | 36c2f7f420fb2fc616d1255f44c3061c1a7bcaf2 (diff) |
fw/rffe: Add function to query RF wiring
Depending on the chipset and the HW, not all ports are connected
and we need to know what we can use when we have the choice ...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/target/firmware/include')
-rw-r--r-- | src/target/firmware/include/rffe.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/target/firmware/include/rffe.h b/src/target/firmware/include/rffe.h index a21d183f..c28c696f 100644 --- a/src/target/firmware/include/rffe.h +++ b/src/target/firmware/include/rffe.h @@ -11,6 +11,20 @@ void rffe_init(void); /* switch RF Frontend Mode */ void rffe_mode(enum gsm_band band, int tx); +/* query RF wiring */ +enum rffe_port +{ + PORT_LO = 0, /* Combined 850/900 port */ + PORT_HI = 1, /* Combined 1800/1900 port */ + PORT_GSM850 = 2, + PORT_GSM900 = 3, + PORT_DCS1800 = 4, + PORT_PCS1900 = 5, +}; + +uint32_t rffe_get_rx_ports(void); +uint32_t rffe_get_tx_ports(void); + /* get current gain of RF frontend (anything between antenna and baseband in dBm */ uint8_t rffe_get_gain(void); |