summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/board
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2011-04-23 22:27:59 +0200
committerSylvain Munaut <tnt@246tNt.com>2011-05-29 19:51:54 +0200
commita78316c8315fc075e8253fd8678e6a7b5c8bf1d8 (patch)
tree59ac9237ae92de8e3b882e2d510c167a2affeeef /src/target/firmware/board
parent36c2f7f420fb2fc616d1255f44c3061c1a7bcaf2 (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/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 a0e03379..d2d517dc 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 7a379884..63f15137 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 8d249288..00f10892 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