mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 12:08:19 +00:00 
			
		
		
		
	At this point, the remaining places where we have a symbol that is defined as CONFIG_... are in fairly odd locations. While as much dead code has been removed as possible, some of these locations are simply less obvious at first. In other cases, this code is used, but was defined in such a way as to have been missed by earlier checks. Perform a rename of all such remaining symbols to be CFG_... rather than CONFIG_... Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			109 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			109 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0 */
 | |
| /*
 | |
|  * Copyright (C) 2011 The ChromiumOS Authors.  All rights reserved.
 | |
|  */
 | |
| 
 | |
| #ifdef CONFIG_CHROMEOS
 | |
| 
 | |
| #define CFG_VBOOT_VBNV_OFFSET 0x26
 | |
| 
 | |
| #include <asm/acpi/vbnv_layout.h>
 | |
| 
 | |
| /* GPIO package generated at run time. */
 | |
| External (OIPG)
 | |
| 
 | |
| Device (CRHW)
 | |
| {
 | |
| 	Name(_HID, EISAID("GGL0001"))
 | |
| 
 | |
| 	Method(_STA, 0, Serialized)
 | |
| 	{
 | |
| 		Return (0xb)
 | |
| 	}
 | |
| 
 | |
| 	Method(CHSW, 0, Serialized)
 | |
| 	{
 | |
| 		Name (WSHC, Package() { VBT3 })
 | |
| 		Return (WSHC)
 | |
| 	}
 | |
| 
 | |
| 	Method(FWID, 0, Serialized)
 | |
| 	{
 | |
| 		Name (DIW1, "")
 | |
| 		ToString(VBT5, 63, DIW1)
 | |
| 		Name (DIWF, Package() { DIW1 })
 | |
| 		Return(DIWF)
 | |
| 	}
 | |
| 
 | |
| 	Method(FRID, 0, Serialized)
 | |
| 	{
 | |
| 		Name (DIR1, "")
 | |
| 		ToString(VBT6, 63, DIR1)
 | |
| 		Name (DIRF, Package() { DIR1 })
 | |
| 		Return (DIRF)
 | |
| 	}
 | |
| 
 | |
| 	Method(HWID, 0, Serialized)
 | |
| 	{
 | |
| 		Name (DIW0, "")
 | |
| 		ToString(VBT4, 255, DIW0)
 | |
| 		Name (DIWH, Package() { DIW0 })
 | |
| 		Return (DIWH)
 | |
| 	}
 | |
| 
 | |
| 	Method(BINF, 0, Serialized)
 | |
| 	{
 | |
| 		Name (FNIB, Package() { VBT0, VBT1, VBT2, VBT7, VBT8 })
 | |
| 		Return (FNIB)
 | |
| 	}
 | |
| 
 | |
| 	Method(GPIO, 0, Serialized)
 | |
| 	{
 | |
| 		Return (OIPG)
 | |
| 
 | |
| 	}
 | |
| 
 | |
| 	Method(VBNV, 0, Serialized)
 | |
| 	{
 | |
| 		Name(VNBV, Package() {
 | |
| 			// See src/vendorcode/google/chromeos/Kconfig
 | |
| 			// for the definition of these:
 | |
| 			CFG_VBOOT_VBNV_OFFSET,
 | |
| 			VBOOT_VBNV_BLOCK_SIZE
 | |
| 		})
 | |
| 		Return(VNBV)
 | |
| 	}
 | |
| 
 | |
| 	Method(VDAT, 0, Serialized)
 | |
| 	{
 | |
| 		Name(TAD0,"")
 | |
| 		ToBuffer(CHVD, TAD0)
 | |
| 		Name (TADV, Package() { TAD0 })
 | |
| 		Return (TADV)
 | |
| 	}
 | |
| 
 | |
| 	Method(FMAP, 0, Serialized)
 | |
| 	{
 | |
| 		Name(PAMF, Package() { VBT9 })
 | |
| 		Return(PAMF)
 | |
| 	}
 | |
| 
 | |
| 	Method(MECK, 0, Serialized)
 | |
| 	{
 | |
| 		Name(HASH, Package() { MEHH })
 | |
| 		Return(HASH)
 | |
| 	}
 | |
| 
 | |
| 	Method(MLST, 0, Serialized)
 | |
| 	{
 | |
| 		Name(TSLM, Package() { "CHSW", "FWID", "HWID", "FRID", "BINF",
 | |
| 			   "GPIO", "VBNV", "VDAT", "FMAP", "MECK"
 | |
| 		})
 | |
| 		Return (TSLM)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| #include "ramoops.asl"
 | |
| 
 | |
| #endif
 |