kernel: add DT binding support to AVM EVA parser
It allows selecting split-firmware parser directly by specifying image-format in the device-tree. Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
		 David Bauer
					David Bauer
				
			
				
					committed by
					
						 John Crispin
						John Crispin
					
				
			
			
				
	
			
			
			 John Crispin
						John Crispin
					
				
			
						parent
						
							26dcaf58ee
						
					
				
				
					commit
					68e59b61c6
				
			| @@ -79,9 +79,15 @@ static int mtdsplit_parse_eva(struct mtd_info *master, | |||||||
| 	return EVA_NR_PARTS; | 	return EVA_NR_PARTS; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | static const struct of_device_id mtdsplit_eva_of_match_table[] = { | ||||||
|  | 	{ .compatible = "avm,eva-firmware" }, | ||||||
|  | 	{}, | ||||||
|  | }; | ||||||
|  |  | ||||||
| static struct mtd_part_parser mtdsplit_eva_parser = { | static struct mtd_part_parser mtdsplit_eva_parser = { | ||||||
| 	.owner = THIS_MODULE, | 	.owner = THIS_MODULE, | ||||||
| 	.name = "eva-fw", | 	.name = "eva-fw", | ||||||
|  | 	.of_match_table = mtdsplit_eva_of_match_table, | ||||||
| 	.parse_fn = mtdsplit_parse_eva, | 	.parse_fn = mtdsplit_parse_eva, | ||||||
| 	.type = MTD_PARSER_TYPE_FIRMWARE, | 	.type = MTD_PARSER_TYPE_FIRMWARE, | ||||||
| }; | }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user