Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion conf/99-n5550.rules

This file was deleted.

20 changes: 16 additions & 4 deletions conf/modprobe_n5550.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
install n5550_board /sbin/modprobe i2c_i801; /sbin/modprobe --ignore-install n5550_board
install libahci /sbin/modprobe --ignore-install libahci; /sbin/modprobe n5550_ahci_leds
install it87 /sbin/modprobe --ignore-install it87 fix_pwm_polarity=1; echo 1 > /sys/devices/platform/it87.656/pwm3_enable; echo 255 > /sys/devices/platform/it87.656/pwm3
remove it87 echo 0 > /sys/devices/platform/it87.656/pwm3_enable; /sbin/modprobe -r --ignore-remove it87
softdep libahci post: n5550_ahci_leds
# without the second dependency, it is a race condition
# where n5550_ahci_leds sometimes loses out
softdep ahci pre: n5550_ahci_leds
#
options n5550_board ich_gpio_base=195
# For the newer kernels ^^^^^^^^^^^^^^---- this parameter
# should be changed to 451;
# to find out:
# # dmesg | grep gpio_ich
# [ 17.017262] gpio_ich: GPIO from 451 to 511 on gpio_ich
# first integer is the GPIO base ---^^^^^ you are looking for

install it87 /sbin/modprobe --ignore-install it87 fix_pwm_polarity=1; echo 1 > \
/sys/devices/platform/it87.656/pwm3_enable; echo 255 > /sys/devices/platform/it87.656/pwm3
remove it87 echo 0 > /sys/devices/platform/it87.656/pwm3_enable; /sbin/modprobe -r --ignore-remove it87
1 change: 0 additions & 1 deletion conf/n5550.modules
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

modprobe -b coretemp >/dev/null 2>&1
modprobe -b it87 >/dev/null 2>&1
modprobe -b n5550_board >/dev/null 2>&1
#modprobe -b ledtrig_timer >/dev/null 2>&1

exit 0
3 changes: 0 additions & 3 deletions dracut/install

This file was deleted.

1 change: 1 addition & 0 deletions modules/n5550_ahci_leds.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ static int __init n5550_ahci_leds_init(void)
for (i = 0; i < 5; ++i) {
led_trigger_register(&n5550_ahci_led_triggers[i]);
}
pr_info("leds_n5550_ahci: Successfully installed LED hook\n");

done:
mutex_unlock(&module_mutex);
Expand Down
3 changes: 3 additions & 0 deletions modules/n5550_board.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,9 @@ static void __exit n5550_board_exit(void)
module_init(n5550_board_init);
module_exit(n5550_board_exit);

MODULE_SOFTDEP("pre: i2c_i801");
MODULE_ALIAS("dmi:bvnPhoenixTechnologiesLtd*:bvrCDV_T??X64:*:pnMilsteadPlatform:*:rnGraniteWell:rvrFABA:*:ct9:*");

MODULE_AUTHOR("Ian Pilcher <arequipeno@gmail.com>");
MODULE_DESCRIPTION("Thecus N5550 GPIO and LED support");
MODULE_LICENSE("GPL v2");