Skip to content

How to add two extra green LEDs (NIC, POWER) to this modules? #2

@ataa

Description

@ataa

TerraMaster source listed 2 extra LEDs, how can I add them to your modules?

In their published source, there are 12 LEDs to control instead of 10:

gpbcon[0]  =  (volatile unsigned long *)ioremap(0xfed0d1b8, 16);    //GPIO14 	   
	gpbcon[1]  =  (volatile unsigned long *)ioremap(0xfed0d028, 16);    //GPIO24
	gpbcon[2]  =  (volatile unsigned long *)ioremap(0xfed0d0b8, 16);    //GPIO18
	gpbcon[3]  =  (volatile unsigned long *)ioremap(0xfed0d0d8, 16);    //GPIO23    
	
	gpbcon[4]  =  (volatile unsigned long *)ioremap(0xfed0d088, 16);    //GPIO17
	gpbcon[5]  =  (volatile unsigned long *)ioremap(0xfed0d0a8, 16);    //GPIO22
	gpbcon[6]  =  (volatile unsigned long *)ioremap(0xfed0d048, 16);    //GPIO16
	
	gpbcon[7]  =  (volatile unsigned long *)ioremap(0xfed0d068, 16);    //GPIO21 
	gpbcon[8]  =  (volatile unsigned long *)ioremap(0xfed0d018, 16);    //GPIO15
	gpbcon[9]  =  (volatile unsigned long *)ioremap(0xfed0d038, 16);    //GPIO20
	gpbcon[10] =  (volatile unsigned long *)ioremap(0xfed0d058, 16);    //GPIO25
	gpbcon[11] =  (volatile unsigned long *)ioremap(0xfed0d098, 16);    //GPIO26

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions