mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 02:15:45 +01:00 
			
		
		
		
	kirkwood: ib62x0: Invert SATA activity LEDs
The hardware design of the IB-NAS62x0 causes the SATA activity LEDs to be on when idle by default. Reverse the polarity of the activity LEDs in early init. Signed-off-by: Simon Baatz <gmbnomis@gmail.com> Cc: Luka Perkov <uboot@lukaperkov.net> Cc: Prafulla Wadaskar <prafulla@marvell.com> Acked-by: Luka Perkov <uboot@lukaperkov.net>
This commit is contained in:
		
				
					committed by
					
						 Prafulla Wadaskar
						Prafulla Wadaskar
					
				
			
			
				
	
			
			
			
						parent
						
							3a5b9fe649
						
					
				
				
					commit
					a0452346c4
				
			| @@ -23,6 +23,7 @@ | |||||||
|  |  | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <miiphy.h> | #include <miiphy.h> | ||||||
|  | #include <asm/io.h> | ||||||
| #include <asm/arch/cpu.h> | #include <asm/arch/cpu.h> | ||||||
| #include <asm/arch/kirkwood.h> | #include <asm/arch/kirkwood.h> | ||||||
| #include <asm/arch/mpp.h> | #include <asm/arch/mpp.h> | ||||||
| @@ -41,6 +42,8 @@ int board_early_init_f(void) | |||||||
| 			IB62x0_OE_VAL_HIGH, | 			IB62x0_OE_VAL_HIGH, | ||||||
| 			IB62x0_OE_LOW, IB62x0_OE_HIGH); | 			IB62x0_OE_LOW, IB62x0_OE_HIGH); | ||||||
|  |  | ||||||
|  | 	/* Set SATA activity LEDs to default off */ | ||||||
|  | 	writel(MVSATAHC_LED_POLARITY_CTRL, MVSATAHC_LED_CONF_REG); | ||||||
| 	/* Multi-Purpose Pins Functionality configuration */ | 	/* Multi-Purpose Pins Functionality configuration */ | ||||||
| 	u32 kwmpp_config[] = { | 	u32 kwmpp_config[] = { | ||||||
| 		MPP0_NF_IO2, | 		MPP0_NF_IO2, | ||||||
|   | |||||||
| @@ -37,4 +37,8 @@ | |||||||
| #define MV88E1116_RGMII_TXTM_CTRL	(1 << 4) | #define MV88E1116_RGMII_TXTM_CTRL	(1 << 4) | ||||||
| #define MV88E1116_RGMII_RXTM_CTRL	(1 << 5) | #define MV88E1116_RGMII_RXTM_CTRL	(1 << 5) | ||||||
|  |  | ||||||
|  | /* SATAHC related */ | ||||||
|  | #define MVSATAHC_LED_CONF_REG       (MV_SATA_BASE + 0x2C) | ||||||
|  | #define MVSATAHC_LED_POLARITY_CTRL  (1 << 3) | ||||||
|  |  | ||||||
| #endif /* __IB62x0_H */ | #endif /* __IB62x0_H */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user