-
Notifications
You must be signed in to change notification settings - Fork 6
/
mikrobus_core.c
executable file
·728 lines (599 loc) · 19.4 KB
/
mikrobus_core.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
#define pr_fmt(fmt) "mikrobus: " fmt
#include <linux/err.h>
#include <linux/errno.h>
#include <linux/idr.h>
#include <linux/init.h>
#include <linux/jump_label.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/gpio/consumer.h>
#include <linux/mutex.h>
#include <linux/device.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/i2c.h>
#include <linux/gpio.h>
#include <linux/gpio/machine.h>
#include <linux/nvmem-consumer.h>
#include <linux/nvmem-provider.h>
#include <linux/interrupt.h>
#include <linux/spi/spi.h>
#include <linux/serdev.h>
#include <linux/property.h>
#include <linux/slab.h>
#include "mikrobus_core.h"
#include "mikrobus_manifest.h"
#define ATMEL_24C32_I2C_ADDR 0x57
static DEFINE_IDR(mikrobus_port_idr);
static struct class_compat* mikrobus_port_compat_class;
static bool is_registered;
static ssize_t
add_port_store(struct bus_type* bt, const char* buf, size_t count)
{
struct mikrobus_port_config* cfg;
if (count < sizeof(*cfg)) {
pr_err("new_port:Incorrect CFG data received: %s \n", buf);
return -EINVAL;
}
mikrobus_register_port_config((void*)buf);
return count;
}
BUS_ATTR_WO(add_port);
static ssize_t
del_port_store(struct bus_type* bt, const char* buf, size_t count)
{
int id;
char end;
int res;
res = sscanf(buf, "%d%c", &id, &end);
if (res < 1) {
pr_err("delete_port: Can't parse Mikrobus Port ID\n");
return -EINVAL;
}
if (!idr_find(&mikrobus_port_idr, id)) {
pr_err("attempting to delete unregistered port [%d]\n", id);
return -EINVAL;
}
mikrobus_del_port(idr_find(&mikrobus_port_idr, id));
return count;
}
BUS_ATTR_WO(del_port);
static struct attribute* mikrobus_attrs[] = {
&bus_attr_add_port.attr,
&bus_attr_del_port.attr,
NULL
};
ATTRIBUTE_GROUPS(mikrobus);
struct bus_type mikrobus_bus_type = {
.name = "mikrobus",
.bus_groups = mikrobus_groups,
};
EXPORT_SYMBOL_GPL(mikrobus_bus_type);
static int mikrobus_port_scan_eeprom(struct mikrobus_port* port)
{
char header[12];
struct click_board_info* click;
int manifest_size;
int retval;
char* buf;
nvmem_device_read(port->eeprom, 0, 12, header);
manifest_size = mikrobus_manifest_header_validate(header, 12);
if (manifest_size > 0) {
buf = kzalloc(manifest_size, GFP_KERNEL);
nvmem_device_read(port->eeprom, 0, manifest_size, buf);
click = kzalloc(sizeof(*click), GFP_KERNEL);
if (!click) {
return -ENOMEM;
}
INIT_LIST_HEAD(&click->manifest_descs);
INIT_LIST_HEAD(&click->devices);
retval = mikrobus_manifest_parse(click, (void*)buf, manifest_size);
if (!retval) {
pr_err("failed to parse manifest, size: %d", manifest_size);
return -EINVAL;
}
retval = mikrobus_register_click(port, click);
if (retval) {
pr_err("failed to register click: %s", click->name);
return -EINVAL;
}
kfree(buf);
}
else {
pr_err("inavlide manifest port %d", port->id);
return -EINVAL;
}
return 0;
}
static ssize_t
name_show(struct device* dev, struct device_attribute* attr, char* buf)
{
return sprintf(buf, "%s\n", to_mikrobus_port(dev)->name);
}
static DEVICE_ATTR_RO(name);
static ssize_t
new_device_store(struct device* dev, struct device_attribute* attr,
const char* buf, size_t count)
{
struct mikrobus_port* port = to_mikrobus_port(dev);
struct click_board_info* click;
int retval;
if (port->click == NULL) {
click = kzalloc(sizeof(*click), GFP_KERNEL);
if (!click) {
return -EINVAL;
}
INIT_LIST_HEAD(&click->manifest_descs);
INIT_LIST_HEAD(&click->devices);
}
else {
pr_err("port %d already has click registered", port->id);
return -EINVAL;
}
retval = mikrobus_manifest_parse(click, (void*)buf, count);
if (!retval) {
pr_err("failed to parse manifest");
return -EINVAL;
}
retval = mikrobus_register_click(port, click);
if (retval) {
pr_err("failed to register click: %s", click->name);
return -EINVAL;
}
return count;
}
static DEVICE_ATTR_WO(new_device);
static ssize_t
rescan_store(struct device* dev, struct device_attribute* attr,
const char* buf, size_t count)
{
struct mikrobus_port* port = to_mikrobus_port(dev);
int id;
char end;
int res;
int retval;
res = sscanf(buf, "%d%c", &id, &end);
if (res < 1) {
pr_err("rescan: Can't parse trigger\n");
return -EINVAL;
}
if (port->click != NULL) {
pr_err("port %d already has click registered", port->id);
return -EINVAL;
}
retval = mikrobus_port_scan_eeprom(port);
if (retval) {
pr_err("port %d click register from manifest failed", port->id);
return -EINVAL;
}
return count;
}
static DEVICE_ATTR_WO(rescan);
static ssize_t
delete_device_store(struct device* dev, struct device_attribute* attr,
const char* buf, size_t count)
{
int id;
char end;
int res;
struct mikrobus_port* port = to_mikrobus_port(dev);
res = sscanf(buf, "%d%c", &id, &end);
if (res < 1) {
pr_err("delete_click: Can't parse Click ID\n");
return -EINVAL;
}
if (port->click == NULL) {
pr_err("delete_click: port does not have any clicks registered\n");
return -EINVAL;
}
mikrobus_unregister_click(port, port->click);
return count;
}
static DEVICE_ATTR_IGNORE_LOCKDEP(delete_device, S_IWUSR, NULL,
delete_device_store);
static struct attribute* mikrobus_port_attrs[] = {
&dev_attr_new_device.attr,
&dev_attr_rescan.attr,
&dev_attr_delete_device.attr,
&dev_attr_name.attr,
NULL
};
ATTRIBUTE_GROUPS(mikrobus_port);
static void mikrobus_dev_release(struct device* dev)
{
struct mikrobus_port* port = to_mikrobus_port(dev);
idr_remove(&mikrobus_port_idr, port->id);
kfree(port);
}
struct device_type mikrobus_port_type = {
.groups = mikrobus_port_groups,
.release = mikrobus_dev_release,
};
EXPORT_SYMBOL_GPL(mikrobus_port_type);
static int mikrobus_get_irq(struct mikrobus_port* port, int irqno, int irq_type)
{
int irq;
switch (irqno) {
case MIKROBUS_GPIO_INT:
irq = gpiod_to_irq(port->int_gpio);
break;
case MIKROBUS_GPIO_RST:
irq = gpiod_to_irq(port->rst_gpio);
break;
case MIKROBUS_GPIO_PWM:
irq = gpiod_to_irq(port->pwm_gpio);
break;
default:
return -EINVAL;
}
if (irq < 0) {
pr_err("Could not get irq for irq type: %d", irqno);
return -EINVAL;
}
irq_set_irq_type(irq, irq_type);
return irq;
}
static int mikrobus_setup_gpio(struct gpio_desc* gpio, int gpio_state)
{
int retval;
if (gpio_state == MIKROBUS_GPIO_UNUSED)
return 0;
switch (gpio_state) {
case MIKROBUS_GPIO_INPUT:
retval = gpiod_direction_input(gpio);
break;
case MIKROBUS_GPIO_OUTPUT_HIGH:
retval = gpiod_direction_output(gpio, 1);
gpiod_set_value_cansleep(gpio, 1);
break;
case MIKROBUS_GPIO_OUTPUT_LOW:
retval = gpiod_direction_output(gpio, 0);
gpiod_set_value_cansleep(gpio, 0);
break;
default:
return -EINVAL;
}
return retval;
}
static void mikrobus_spi_device_delete(struct spi_master* master, unsigned int cs)
{
struct device* dev;
char str[32];
snprintf(str, sizeof(str), "%s.%u", dev_name(&master->dev), cs);
dev = bus_find_device_by_name(&spi_bus_type, NULL, str);
if (dev != NULL) {
spi_unregister_device(to_spi_device(dev));
put_device(dev);
}
}
static char* mikrobus_get_gpio_chip_name(struct mikrobus_port* port, int gpio)
{
char* name;
struct gpio_chip* gpiochip;
switch (gpio) {
case MIKROBUS_GPIO_INT:
gpiochip = gpiod_to_chip(port->int_gpio);
name = kmemdup(gpiochip->label, 40, GFP_KERNEL);
break;
case MIKROBUS_GPIO_RST:
gpiochip = gpiod_to_chip(port->rst_gpio);
name = kmemdup(gpiochip->label, 40, GFP_KERNEL);
break;
case MIKROBUS_GPIO_PWM:
gpiochip = gpiod_to_chip(port->pwm_gpio);
name = kmemdup(gpiochip->label, 40, GFP_KERNEL);
break;
}
return name;
}
static int mikrobus_get_gpio_hwnum(struct mikrobus_port* port, int gpio)
{
int hwnum;
struct gpio_chip* gpiochip;
switch (gpio) {
case MIKROBUS_GPIO_INT:
gpiochip = gpiod_to_chip(port->int_gpio);
hwnum = desc_to_gpio(port->int_gpio) - gpiochip->base;
break;
case MIKROBUS_GPIO_RST:
gpiochip = gpiod_to_chip(port->rst_gpio);
hwnum = desc_to_gpio(port->rst_gpio) - gpiochip->base;
break;
case MIKROBUS_GPIO_PWM:
gpiochip = gpiod_to_chip(port->pwm_gpio);
hwnum = desc_to_gpio(port->pwm_gpio) - gpiochip->base;
break;
}
return hwnum;
}
static void release_mikrobus_device(struct click_device_info* dev)
{
list_del(&dev->links);
kfree(dev);
}
static void release_click_devices(struct click_board_info* info)
{
struct click_device_info* dev;
struct click_device_info* next;
list_for_each_entry_safe(dev, next, &info->devices, links)
release_mikrobus_device(dev);
}
static int mikrobus_register_device(struct mikrobus_port* port, struct click_device_info* dev, char* click_name)
{
struct i2c_board_info* i2c;
struct spi_board_info* spi;
struct gpiod_lookup_table* lookup;
char devname[40];
char sys_link_name[40];
int i;
int retval;
pr_info(" registering device : %s \n", dev->drv_name);
snprintf(sys_link_name, sizeof(sys_link_name), "%s-%s", click_name, dev->drv_name);
if (dev->gpio_lookup != NULL) {
lookup = dev->gpio_lookup;
if (dev->protocol == MIKROBUS_PROTOCOL_SPI) {
snprintf(devname, sizeof(devname), "%s.%u", dev_name(&port->spi_mstr->dev), dev->reg);
lookup->dev_id = kmemdup(devname, 40, GFP_KERNEL);
;
}
else if (dev->protocol == MIKROBUS_PROTOCOL_I2C)
lookup->dev_id = dev->drv_name;
pr_info(" adding lookup table : %s \n", lookup->dev_id);
for (i = 0; i < dev->num_gpio_resources; i++) {
lookup->table[i].chip_label = mikrobus_get_gpio_chip_name(port, lookup->table[i].chip_hwnum);
lookup->table[i].chip_hwnum = mikrobus_get_gpio_hwnum(port, lookup->table[i].chip_hwnum);
lookup->table[i].flags = GPIO_ACTIVE_HIGH;
}
gpiod_add_lookup_table(lookup);
}
switch (dev->protocol) {
case MIKROBUS_PROTOCOL_SPI:
spi = kzalloc(sizeof(*spi), GFP_KERNEL);
if (!spi) {
return -ENOMEM;
}
strncpy(spi->modalias, dev->drv_name, sizeof(spi->modalias) - 1);
if (dev->irq)
spi->irq = mikrobus_get_irq(port, dev->irq, dev->irq_type);
if (dev->properties)
spi->properties = dev->properties;
spi->chip_select = dev->reg;
spi->max_speed_hz = dev->max_speed_hz;
spi->mode = dev->mode;
mikrobus_spi_device_delete(port->spi_mstr, dev->reg);
dev->dev_client = (void*)spi_new_device(port->spi_mstr, spi);
retval = sysfs_create_link(&port->dev.kobj, &((struct spi_device*)dev->dev_client)->dev.kobj, sys_link_name);
break;
case MIKROBUS_PROTOCOL_I2C:
i2c = kzalloc(sizeof(*i2c), GFP_KERNEL);
if (!i2c) {
return -ENOMEM;
}
strncpy(i2c->type, dev->drv_name, sizeof(i2c->type) - 1);
if (dev->irq)
i2c->irq = mikrobus_get_irq(port, dev->irq, dev->irq_type);
if (dev->properties)
i2c->properties = dev->properties;
i2c->addr = dev->reg;
dev->dev_client = (void*)i2c_new_device(port->i2c_adap, i2c);
retval = sysfs_create_link(&port->dev.kobj, &((struct i2c_client*)dev->dev_client)->dev.kobj, sys_link_name);
break;
case MIKROBUS_PROTOCOL_UART:
pr_info("SERDEV Devices Support Not Yet Added");
break;
default:
return -EINVAL;
}
return 0;
}
static void mikrobus_unregister_device(struct mikrobus_port* port, struct click_device_info* dev, char* click_name)
{
char sys_link_name[40];
snprintf(sys_link_name, sizeof(sys_link_name), "%s-%s", click_name, dev->drv_name);
pr_info(" removing device : %s \n", dev->drv_name);
if (dev->gpio_lookup != NULL) {
gpiod_remove_lookup_table(dev->gpio_lookup);
kfree(dev->gpio_lookup);
}
if (dev->properties != NULL) {
kfree(dev->properties);
}
sysfs_remove_link(&port->dev.kobj, sys_link_name);
switch (dev->protocol) {
case MIKROBUS_PROTOCOL_SPI:
spi_unregister_device((struct spi_device*)dev->dev_client);
break;
case MIKROBUS_PROTOCOL_I2C:
i2c_unregister_device((struct i2c_client*)dev->dev_client);
break;
case MIKROBUS_PROTOCOL_UART:
pr_err("SERDEV Devices Support Not Yet Added");
break;
}
}
int mikrobus_register_click(struct mikrobus_port* port, struct click_board_info* board)
{
struct click_device_info* devinfo;
struct click_device_info* next;
int retval;
if (WARN_ON(list_empty(&board->devices)))
return false;
retval = mikrobus_setup_gpio(port->pwm_gpio, board->pwm_gpio_state);
if (retval) {
pr_err("mikrobus_setup_gpio : can't setup pwm gpio state: (%d)\n", retval);
return retval;
}
retval = mikrobus_setup_gpio(port->int_gpio, board->int_gpio_state);
if (retval) {
pr_err("mikrobus_setup_gpio : can't setup int gpio state: (%d)\n", retval);
return retval;
}
retval = mikrobus_setup_gpio(port->rst_gpio, board->rst_gpio_state);
if (retval) {
pr_err("mikrobus_setup_gpio : can't setup rst gpio state: (%d)\n", retval);
return retval;
}
list_for_each_entry_safe(devinfo, next, &board->devices, links)
mikrobus_register_device(port, devinfo, board->name);
port->click = board;
return 0;
}
EXPORT_SYMBOL_GPL(mikrobus_register_click);
void mikrobus_unregister_click(struct mikrobus_port* port, struct click_board_info* board)
{
struct click_device_info* devinfo;
struct click_device_info* next;
if (WARN_ON(list_empty(&board->devices)))
return;
port->click = NULL;
list_for_each_entry_safe(devinfo, next, &board->devices, links)
mikrobus_unregister_device(port, devinfo, board->name);
release_click_devices(board);
kfree(board);
port->click = NULL;
}
EXPORT_SYMBOL_GPL(mikrobus_unregister_click);
int mikrobus_register_port_config(struct mikrobus_port_config* cfg)
{
struct mikrobus_port* port;
int retval;
if (WARN_ON(!is_registered))
return -EAGAIN;
port = kzalloc(sizeof(*port), GFP_KERNEL);
if (!port) {
return -ENOMEM;
}
port->pwm_gpio = gpio_to_desc(cfg->pwm_gpio_nr);
port->int_gpio = gpio_to_desc(cfg->int_gpio_nr);
port->rst_gpio = gpio_to_desc(cfg->rst_gpio_nr);
port->spi_mstr = spi_busnum_to_master(cfg->spi_master_nr);
port->i2c_adap = i2c_get_adapter(cfg->i2c_adap_nr);
retval = mikrobus_register_port(port);
if (retval) {
pr_err("port : can't register port from config (%d)\n", retval);
return retval;
}
return retval;
}
EXPORT_SYMBOL_GPL(mikrobus_register_port_config);
static struct i2c_board_info mikrobus_eeprom_info = {
I2C_BOARD_INFO("24c32", ATMEL_24C32_I2C_ADDR),
};
static int mikrobus_port_probe_eeprom(struct mikrobus_port* port)
{
struct i2c_client* eeprom_client;
struct nvmem_device* eeprom;
char dev_name[40];
eeprom_client = i2c_new_device(port->i2c_adap, &mikrobus_eeprom_info);
if (!IS_ERR(eeprom_client)) {
pr_info(" mikrobus port %d default eeprom is probed at %02x\n",
port->id, eeprom_client->addr);
snprintf(dev_name, sizeof(dev_name), "%d-%04x0", port->i2c_adap->nr, eeprom_client->addr);
eeprom = nvmem_device_get(&eeprom_client->dev, dev_name);
if (IS_ERR(eeprom)) {
pr_err(" mikrobus port %d eeprom nvmem device probe failed\n",
port->id);
i2c_unregister_device(eeprom_client);
port->eeprom = NULL;
return 0;
}
}
else {
pr_info(" mikrobus port %d default eeprom probe failed\n", port->id);
return 0;
}
port->eeprom = eeprom;
port->eeprom_client = eeprom_client;
return 0;
}
int mikrobus_register_port(struct mikrobus_port* port)
{
int retval;
int id;
if (WARN_ON(!is_registered))
return -EAGAIN;
id = idr_alloc(&mikrobus_port_idr, port, 0, 0, GFP_KERNEL);
if (id < 0)
return id;
port->id = id;
port->dev.bus = &mikrobus_bus_type;
port->dev.type = &mikrobus_port_type;
strncpy(port->name, "mikrobus-port", sizeof(port->name) - 1);
dev_set_name(&port->dev, "mikrobus-%d", port->id);
pr_info(" registering port mikrobus-%d \n ", port->id);
retval = device_register(&port->dev);
if (retval) {
pr_err("port '%d': can't register device (%d)\n", port->id, retval);
put_device(&port->dev);
return retval;
}
retval = class_compat_create_link(mikrobus_port_compat_class, &port->dev, port->dev.parent);
if (retval)
dev_warn(&port->dev, "Failed to create compatibility class link\n");
if (!port->eeprom) {
pr_info("mikrobus port %d eeprom empty probing default eeprom \n", port->id);
retval = mikrobus_port_probe_eeprom(port);
}
if (port->eeprom) {
retval = mikrobus_port_scan_eeprom(port);
if (retval)
dev_warn(&port->dev, "Failed to register click from manifest\n");
}
return retval;
}
EXPORT_SYMBOL_GPL(mikrobus_register_port);
void mikrobus_del_port(struct mikrobus_port* port)
{
struct mikrobus_port* found;
found = idr_find(&mikrobus_port_idr, port->id);
if (found != port) {
pr_err("attempting to delete unregistered port [%s]\n", port->name);
return;
}
if (port->click != NULL) {
pr_err("attempting to delete port with registered clicks, port [%s]\n", port->name);
return;
}
if (port->eeprom) {
nvmem_device_put(port->eeprom);
i2c_unregister_device(port->eeprom_client);
}
class_compat_remove_link(mikrobus_port_compat_class, &port->dev, port->dev.parent);
device_unregister(&port->dev);
idr_remove(&mikrobus_port_idr, port->id);
memset(&port->dev, 0, sizeof(port->dev));
}
EXPORT_SYMBOL_GPL(mikrobus_del_port);
static int __init mikrobus_init(void)
{
int retval;
retval = bus_register(&mikrobus_bus_type);
if (retval) {
pr_err("bus_register failed (%d)\n", retval);
return retval;
}
mikrobus_port_compat_class = class_compat_register("mikrobus-port");
if (!mikrobus_port_compat_class) {
pr_err("class_compat register failed (%d)\n", retval);
retval = -ENOMEM;
goto class_err;
}
is_registered = true;
return 0;
class_err:
bus_unregister(&mikrobus_bus_type);
idr_destroy(&mikrobus_port_idr);
is_registered = false;
return retval;
}
subsys_initcall(mikrobus_init);
static void __exit mikrobus_exit(void)
{
bus_unregister(&mikrobus_bus_type);
class_compat_unregister(mikrobus_port_compat_class);
idr_destroy(&mikrobus_port_idr);
}
module_exit(mikrobus_exit);
MODULE_AUTHOR("Vaishnav M A <mavaishnav007@gmail.com>");
MODULE_DESCRIPTION("mikroBUS main module");
MODULE_LICENSE("GPL");