mirror of git://git.sysmocom.de/ofono
ublox: add TOBY L4 models
This commit is contained in:
parent
8a62ee79a9
commit
83834419e5
|
@ -60,6 +60,23 @@ const struct ublox_model ublox_models[] = {
|
|||
.name = "TOBY-L280",
|
||||
.flags = UBLOX_F_TOBY_L2|UBLOX_F_HAVE_USBCONF,
|
||||
},
|
||||
/* TOBY L4 series */
|
||||
{
|
||||
.name = "TOBY-L4006",
|
||||
.flags = UBLOX_F_TOBY_L4,
|
||||
},
|
||||
{
|
||||
.name = "TOBY-L4106",
|
||||
.flags = UBLOX_F_TOBY_L4,
|
||||
},
|
||||
{
|
||||
.name = "TOBY-L4206",
|
||||
.flags = UBLOX_F_TOBY_L4,
|
||||
},
|
||||
{
|
||||
.name = "TOBY-L4906",
|
||||
.flags = UBLOX_F_TOBY_L4,
|
||||
},
|
||||
{ /* sentinel */ },
|
||||
};
|
||||
|
||||
|
@ -90,6 +107,11 @@ int ublox_is_toby_l2(const struct ublox_model *model)
|
|||
return model->flags & UBLOX_F_TOBY_L2;
|
||||
}
|
||||
|
||||
int ublox_is_toby_l4(const struct ublox_model *model)
|
||||
{
|
||||
return model->flags & UBLOX_F_TOBY_L4;
|
||||
}
|
||||
|
||||
static int ubloxmodem_init(void)
|
||||
{
|
||||
ublox_gprs_context_init();
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
enum ublox_flags {
|
||||
UBLOX_F_TOBY_L2 = (1 << 0),
|
||||
UBLOX_F_TOBY_L4 = (1 << 1),
|
||||
UBLOX_F_HAVE_USBCONF = (1 << 2),
|
||||
};
|
||||
|
||||
|
@ -37,6 +38,7 @@ const struct ublox_model *ublox_model_from_name(const char *name);
|
|||
const struct ublox_model *ublox_model_from_id(int id);
|
||||
int ublox_model_to_id(const struct ublox_model *model);
|
||||
int ublox_is_toby_l2(const struct ublox_model *model);
|
||||
int ublox_is_toby_l4(const struct ublox_model *model);
|
||||
|
||||
extern void ublox_gprs_context_init(void);
|
||||
extern void ublox_gprs_context_exit(void);
|
||||
|
|
Loading…
Reference in New Issue