x86: Add mrccache support for a 'variable' cache
Add support for a second cache type, for Apollo Lake. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
		
							parent
							
								
									515e8174f5
								
							
						
					
					
						commit
						0a0b09b47b
					
				|  | @ -30,6 +30,7 @@ struct mrc_region { | ||||||
| /* Types of MRC data */ | /* Types of MRC data */ | ||||||
| enum mrc_type_t { | enum mrc_type_t { | ||||||
| 	MRC_TYPE_NORMAL, | 	MRC_TYPE_NORMAL, | ||||||
|  | 	MRC_TYPE_VAR, | ||||||
| 
 | 
 | ||||||
| 	MRC_TYPE_COUNT, | 	MRC_TYPE_COUNT, | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | @ -241,7 +241,8 @@ int mrccache_get_region(enum mrc_type_t type, struct udevice **devp, | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	/* Find the place where we put the MRC cache */ | 	/* Find the place where we put the MRC cache */ | ||||||
| 	mrc_node = dev_read_subnode(dev, "rw-mrc-cache"); | 	mrc_node = dev_read_subnode(dev, type == MRC_TYPE_NORMAL ? | ||||||
|  | 				    "rw-mrc-cache" : "rw-var-mrc-cache"); | ||||||
| 	if (!ofnode_valid(mrc_node)) | 	if (!ofnode_valid(mrc_node)) | ||||||
| 		return log_msg_ret("Cannot find node", -EPERM); | 		return log_msg_ret("Cannot find node", -EPERM); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue