soc/amd: Remove blank lines before '}' and after '{'
Change-Id: I0203e77dd23fa026cd252abbda50f1e9f6892721 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81457 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <ericllai@google.com>
This commit is contained in:
		@@ -131,7 +131,6 @@ static void ivrs_add_device_or_bridge(struct device *parent, struct device *dev,
 | 
				
			|||||||
	} else if ((header_type == PCI_HEADER_TYPE_NORMAL) && !is_pcie) {
 | 
						} else if ((header_type == PCI_HEADER_TYPE_NORMAL) && !is_pcie) {
 | 
				
			||||||
		/* Device is legacy PCI or PCI-X */
 | 
							/* Device is legacy PCI or PCI-X */
 | 
				
			||||||
		add_ivhd_dev_entry(parent, dev, current, IVHD_DEV_8_BYTE_ALIAS_SELECT, 0x0);
 | 
							add_ivhd_dev_entry(parent, dev, current, IVHD_DEV_8_BYTE_ALIAS_SELECT, 0x0);
 | 
				
			||||||
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -316,7 +315,6 @@ static unsigned long acpi_fill_ivrs(acpi_ivrs_t *ivrs, unsigned long current)
 | 
				
			|||||||
	ivhd = &ivrs->ivhd;
 | 
						ivhd = &ivrs->ivhd;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	while ((dev = dev_find_path(dev, DEVICE_PATH_DOMAIN)) != NULL) {
 | 
						while ((dev = dev_find_path(dev, DEVICE_PATH_DOMAIN)) != NULL) {
 | 
				
			||||||
 | 
					 | 
				
			||||||
		nb_dev = pcidev_path_behind(dev->downstream, PCI_DEVFN(0, 0));
 | 
							nb_dev = pcidev_path_behind(dev->downstream, PCI_DEVFN(0, 0));
 | 
				
			||||||
		iommu_dev = pcidev_path_behind(dev->downstream, PCI_DEVFN(0, 2));
 | 
							iommu_dev = pcidev_path_behind(dev->downstream, PCI_DEVFN(0, 2));
 | 
				
			||||||
		if (!nb_dev) {
 | 
							if (!nb_dev) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -317,7 +317,6 @@ static int espi_get_unused_mmio_window(void)
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return -1;
 | 
						return -1;
 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static size_t espi_get_mmio_window_size(int idx)
 | 
					static size_t espi_get_mmio_window_size(int idx)
 | 
				
			||||||
@@ -824,7 +823,6 @@ static enum cb_err espi_wait_channel_ready(uint16_t slave_reg_addr)
 | 
				
			|||||||
	printk(BIOS_ERR, "Channel is not ready after %d usec (slave addr: 0x%x)\n",
 | 
						printk(BIOS_ERR, "Channel is not ready after %d usec (slave addr: 0x%x)\n",
 | 
				
			||||||
	       ESPI_CH_READY_TIMEOUT_US, slave_reg_addr);
 | 
						       ESPI_CH_READY_TIMEOUT_US, slave_reg_addr);
 | 
				
			||||||
	return CB_ERR;
 | 
						return CB_ERR;
 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void espi_enable_ctrlr_channel(uint32_t channel_en)
 | 
					static void espi_enable_ctrlr_channel(uint32_t channel_en)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -23,7 +23,6 @@
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
static uint16_t ddr_speed_mhz_to_reported_mts(uint16_t ddr_type, uint16_t speed)
 | 
					static uint16_t ddr_speed_mhz_to_reported_mts(uint16_t ddr_type, uint16_t speed)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					 | 
				
			||||||
	if (CONFIG(USE_DDR4) && ddr_type == MEMORY_TYPE_DDR4)
 | 
						if (CONFIG(USE_DDR4) && ddr_type == MEMORY_TYPE_DDR4)
 | 
				
			||||||
		return ddr4_speed_mhz_to_reported_mts(speed);
 | 
							return ddr4_speed_mhz_to_reported_mts(speed);
 | 
				
			||||||
	else if (CONFIG(USE_LPDDR4) && ddr_type == MEMORY_TYPE_LPDDR4)
 | 
						else if (CONFIG(USE_LPDDR4) && ddr_type == MEMORY_TYPE_LPDDR4)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -387,7 +387,6 @@ static AGESA_STATUS ramstage_dispatch(AMD_CONFIG_PARAMS *StdHeader)
 | 
				
			|||||||
	default:
 | 
						default:
 | 
				
			||||||
		return AGESA_UNSUPPORTED;
 | 
							return AGESA_UNSUPPORTED;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
AGESA_STATUS agesa_execute_state(AGESA_STRUCT_NAME func)
 | 
					AGESA_STATUS agesa_execute_state(AGESA_STRUCT_NAME func)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -236,7 +236,6 @@ AGESA_STATUS agesa_AllocateBuffer(uint32_t Func, uintptr_t Data,
 | 
				
			|||||||
					 * betterfit than the previous nodes
 | 
										 * betterfit than the previous nodes
 | 
				
			||||||
					 */
 | 
										 */
 | 
				
			||||||
					if (BestFitNodeSize > FreedNodeSize) {
 | 
										if (BestFitNodeSize > FreedNodeSize) {
 | 
				
			||||||
 | 
					 | 
				
			||||||
						BestFitNodeOffset =
 | 
											BestFitNodeOffset =
 | 
				
			||||||
							FreedNodeOffset;
 | 
												FreedNodeOffset;
 | 
				
			||||||
						BestFitPrevNodeOffset =
 | 
											BestFitPrevNodeOffset =
 | 
				
			||||||
@@ -308,7 +307,6 @@ AGESA_STATUS agesa_AllocateBuffer(uint32_t Func, uintptr_t Data,
 | 
				
			|||||||
AGESA_STATUS agesa_DeallocateBuffer(uint32_t Func, uintptr_t Data,
 | 
					AGESA_STATUS agesa_DeallocateBuffer(uint32_t Func, uintptr_t Data,
 | 
				
			||||||
							void *ConfigPtr)
 | 
												void *ConfigPtr)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					 | 
				
			||||||
	uint8_t             *BiosHeapBaseAddr;
 | 
						uint8_t             *BiosHeapBaseAddr;
 | 
				
			||||||
	uint32_t            AllocNodeOffset;
 | 
						uint32_t            AllocNodeOffset;
 | 
				
			||||||
	uint32_t            PrevNodeOffset;
 | 
						uint32_t            PrevNodeOffset;
 | 
				
			||||||
@@ -436,5 +434,4 @@ AGESA_STATUS agesa_LocateBuffer(uint32_t Func, uintptr_t Data, void *ConfigPtr)
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return Status;
 | 
						return Status;
 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,5 +30,4 @@ void fch_pre_init(void)
 | 
				
			|||||||
/* After console init */
 | 
					/* After console init */
 | 
				
			||||||
void fch_early_init(void)
 | 
					void fch_early_init(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -183,7 +183,6 @@ uint32_t svc_modexp(struct mod_exp_params *mod_exp_param)
 | 
				
			|||||||
	};
 | 
						};
 | 
				
			||||||
	SVC_CALL2(SVC_VERSTAGE_CMD, CMD_MODEXP, (void *)¶m, retval);
 | 
						SVC_CALL2(SVC_VERSTAGE_CMD, CMD_MODEXP, (void *)¶m, retval);
 | 
				
			||||||
	return retval;
 | 
						return retval;
 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
uint32_t svc_ccp_dma(uint32_t spi_rom_offset, void *dest, uint32_t size)
 | 
					uint32_t svc_ccp_dma(uint32_t spi_rom_offset, void *dest, uint32_t size)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -19,7 +19,6 @@ static void fsp_assign_vbios_upds(FSP_S_CONFIG *scfg)
 | 
				
			|||||||
		scfg->vbios_buffer = 0;
 | 
							scfg->vbios_buffer = 0;
 | 
				
			||||||
		printk(BIOS_SPEW, "%s: using VBIOS cache; skipping GOP driver.\n", __func__);
 | 
							printk(BIOS_SPEW, "%s: using VBIOS cache; skipping GOP driver.\n", __func__);
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	printk(BIOS_SPEW, "%s: not using VBIOS cache; running GOP driver.\n", __func__);
 | 
						printk(BIOS_SPEW, "%s: not using VBIOS cache; running GOP driver.\n", __func__);
 | 
				
			||||||
	scfg->vbios_buffer = CONFIG(RUN_FSP_GOP) ? PCI_VGA_RAM_IMAGE_START : 0;
 | 
						scfg->vbios_buffer = CONFIG(RUN_FSP_GOP) ? PCI_VGA_RAM_IMAGE_START : 0;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -191,7 +191,6 @@ uint32_t svc_modexp(struct mod_exp_params *mod_exp_param)
 | 
				
			|||||||
	};
 | 
						};
 | 
				
			||||||
	SVC_CALL2(SVC_VERSTAGE_CMD, CMD_MODEXP, (void *)¶m, retval);
 | 
						SVC_CALL2(SVC_VERSTAGE_CMD, CMD_MODEXP, (void *)¶m, retval);
 | 
				
			||||||
	return retval;
 | 
						return retval;
 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
uint32_t svc_ccp_dma(uint32_t spi_rom_offset, void *dest, uint32_t size)
 | 
					uint32_t svc_ccp_dma(uint32_t spi_rom_offset, void *dest, uint32_t size)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -181,7 +181,6 @@ uint32_t svc_modexp(struct mod_exp_params *mod_exp_param)
 | 
				
			|||||||
	};
 | 
						};
 | 
				
			||||||
	SVC_CALL2(SVC_VERSTAGE_CMD, CMD_MODEXP, (void *)¶m, retval);
 | 
						SVC_CALL2(SVC_VERSTAGE_CMD, CMD_MODEXP, (void *)¶m, retval);
 | 
				
			||||||
	return retval;
 | 
						return retval;
 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
uint32_t svc_ccp_dma(uint32_t spi_rom_offset, void *dest, uint32_t size)
 | 
					uint32_t svc_ccp_dma(uint32_t spi_rom_offset, void *dest, uint32_t size)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -372,7 +372,6 @@ static unsigned long gen_crat_tlb_entry(struct acpi_crat_header *crat, unsigned
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	new_entries = 0;
 | 
						new_entries = 0;
 | 
				
			||||||
	for (thread = 0; thread < total_num_threads; thread++) {
 | 
						for (thread = 0; thread < total_num_threads; thread++) {
 | 
				
			||||||
 | 
					 | 
				
			||||||
		/* L1 data TLB */
 | 
							/* L1 data TLB */
 | 
				
			||||||
		if (thread % num_threads_sharing0 == 0) {
 | 
							if (thread % num_threads_sharing0 == 0) {
 | 
				
			||||||
			current = add_crat_tlb_entry(&tlb_affinity, current);
 | 
								current = add_crat_tlb_entry(&tlb_affinity, current);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user