Deniz-Eren / dev-can-linux

Porting of Linux CAN-bus drivers to QNX
GNU General Public License v2.0
4 stars 1 forks source link

Support module parameters (impacts only driver f81601) #65

Closed Deniz-Eren closed 1 month ago

Deniz-Eren commented 1 month ago

Currently only used by driver f81601.

See src/kernel/drivers/net/can/sja1000/f81601.c

static bool internal_clk = true;
module_param(internal_clk, bool, 0444);
MODULE_PARM_DESC(internal_clk, "Use internal clock, default true (24MHz)");

static unsigned int external_clk;
module_param(external_clk, uint, 0444);
MODULE_PARM_DESC(external_clk, "External clock when internal_clk disabled");

Therefore current fixed configuration of the f81601 driver is with internal clock enabled only - until this feature is implemented.

Implement module_param() and MODULE_PARM_DESC() currently stubs in src/kernel/include/linux/module.h