aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-02-13 09:45:17 +0100
committerlaforge <laforge@osmocom.org>2021-02-15 10:57:58 +0000
commit3215344300c5a8aa8fa1dcb7955125ced8bf6dbd (patch)
tree7f9d3c524c536de5d9da6a0ae58b6e49ae4fb025
parent6b93f0f366da5091db791df7c6bf7170a1438ec4 (diff)
add support for sysmoBTS 1003 aka "1002 with GPS and PoE"
There's a minor derivative version of sysmoBTS 1002 which has built-in GPS and PoE. We call it 1003 in the EEPROM. Let's treat it identical to 1002 in the existing code base. Related: SYS#5327 Change-Id: Ia558587d36a75a1db1951d25b471b3f2e78ef4c9
-rw-r--r--src/osmo-bts-sysmo/l1_if.c3
-rw-r--r--src/osmo-bts-sysmo/misc/sysmobts_eeprom.h1
-rw-r--r--src/osmo-bts-sysmo/misc/sysmobts_par.c2
3 files changed, 5 insertions, 1 deletions
diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c
index 2e4765d9..07f36db5 100644
--- a/src/osmo-bts-sysmo/l1_if.c
+++ b/src/osmo-bts-sysmo/l1_if.c
@@ -1860,7 +1860,8 @@ static void fill_trx_power_params(struct gsm_bts_trx *trx,
LOGP(DL1C, LOGL_NOTICE, "Assuming 1002 for sysmoBTS "
"Model number %u\n", fl1h->hw_info.model_nr);
/* fall-through */
- case 1002:
+ case 1002: /* sysmoBTS 1002 */
+ case 1003: /* sysmoBTS 1002 with GPS and PoE */
set_power_param(&trx->power_params, 23, 0);
}
}
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_eeprom.h b/src/osmo-bts-sysmo/misc/sysmobts_eeprom.h
index b7a27fb7..9c2b839a 100644
--- a/src/osmo-bts-sysmo/misc/sysmobts_eeprom.h
+++ b/src/osmo-bts-sysmo/misc/sysmobts_eeprom.h
@@ -32,6 +32,7 @@ struct sysmobts_eeprom { /* offset */
enum sysmobts_model_number {
MODEL_SYSMOBTS_1002 = 1002,
+ MODEL_SYSMOBTS_1003 = 1003,
MODEL_SYSMOBTS_1020 = 1020,
MODEL_SYSMOBTS_2050 = 2050,
};
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_par.c b/src/osmo-bts-sysmo/misc/sysmobts_par.c
index de81fff5..f1fe8f2d 100644
--- a/src/osmo-bts-sysmo/misc/sysmobts_par.c
+++ b/src/osmo-bts-sysmo/misc/sysmobts_par.c
@@ -341,6 +341,8 @@ char *sysmobts_model(int bts_type, int trx_num)
case 0xffff:
case 1002:
return "sysmoBTS 1002";
+ case 1003:
+ return "sysmoBTS 1002+GPS+PoE";
case 2050:
switch(trx_num) {
case 0: