summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/board
diff options
context:
space:
mode:
authorSylvain Munaut2011-04-23 22:27:59 +0200
committerSylvain Munaut2011-05-29 19:51:54 +0200
commita78316c8315fc075e8253fd8678e6a7b5c8bf1d8 (patch)
tree59ac9237ae92de8e3b882e2d510c167a2affeeef /src/target/firmware/board
parentMerge commit '3710e462f85824cd9d84b3f95e6b2ea694119ff9' (diff)
downloadosmocom-a78316c8315fc075e8253fd8678e6a7b5c8bf1d8.tar.gz
osmocom-a78316c8315fc075e8253fd8678e6a7b5c8bf1d8.tar.xz
osmocom-a78316c8315fc075e8253fd8678e6a7b5c8bf1d8.zip
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/board')
-rw-r--r--src/target/firmware/board/compal/rffe_dualband.c12
-rw-r--r--src/target/firmware/board/gta0x/rffe_gta0x_triband.c12
-rw-r--r--src/target/firmware/board/pirelli_dpl10/rffe_dpl10_triband.c12
3 files changed, 36 insertions, 0 deletions
diff --git a/src/target/firmware/board/compal/rffe_dualband.c b/src/target/firmware/board/compal/rffe_dualband.c
index a0e0337..d2d517d 100644
--- a/src/target/firmware/board/compal/rffe_dualband.c
+++ b/src/target/firmware/board/compal/rffe_dualband.c
@@ -44,6 +44,18 @@ void rffe_mode(enum gsm_band band, int tx)
tsp_act_update(tspact);
}
+/* Returns RF wiring */
+uint32_t rffe_get_rx_ports(void)
+{
+ return (1 << PORT_LO) | (1 << PORT_DCS1800);
+}
+
+uint32_t rffe_get_tx_ports(void)
+{
+ return (1 << PORT_LO) | (1 << PORT_HI);
+}
+
+
#define MCU_SW_TRACE 0xfffef00e
#define ARM_CONF_REG 0xfffef006
diff --git a/src/target/firmware/board/gta0x/rffe_gta0x_triband.c b/src/target/firmware/board/gta0x/rffe_gta0x_triband.c
index 7a37988..63f1513 100644
--- a/src/target/firmware/board/gta0x/rffe_gta0x_triband.c
+++ b/src/target/firmware/board/gta0x/rffe_gta0x_triband.c
@@ -73,6 +73,18 @@ void rffe_mode(enum gsm_band band, int tx)
tsp_act_update(tspact);
}
+/* Returns RF wiring */
+uint32_t rffe_get_rx_ports(void)
+{
+ return (1 << PORT_LO) | (1 << PORT_DCS1800) | (1 << PORT_PCS1900);
+}
+
+uint32_t rffe_get_tx_ports(void)
+{
+ return (1 << PORT_LO) | (1 << PORT_HI);
+}
+
+
#define MCU_SW_TRACE 0xfffef00e
#define ARM_CONF_REG 0xfffef006
diff --git a/src/target/firmware/board/pirelli_dpl10/rffe_dpl10_triband.c b/src/target/firmware/board/pirelli_dpl10/rffe_dpl10_triband.c
index 8d24928..00f1089 100644
--- a/src/target/firmware/board/pirelli_dpl10/rffe_dpl10_triband.c
+++ b/src/target/firmware/board/pirelli_dpl10/rffe_dpl10_triband.c
@@ -72,6 +72,18 @@ void rffe_mode(enum gsm_band band, int tx)
tsp_act_update(tspact);
}
+/* Returns RF wiring */
+uint32_t rffe_get_rx_ports(void)
+{
+ return (1 << PORT_LO) | (1 << PORT_DCS1800) | (1 << PORT_PCS1900);
+}
+
+uint32_t rffe_get_tx_ports(void)
+{
+ return (1 << PORT_LO) | (1 << PORT_HI);
+}
+
+
#define MCU_SW_TRACE 0xfffef00e
#define ARM_CONF_REG 0xfffef006
#define ASIC_CONF_REG 0xfffef008