soc/sifive: Drop unneeded empty lines

Change-Id: I20008c71d5b573d72a09068626523e10faa2d632
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44602
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Elyes HAOUAS 2020-08-19 21:47:58 +02:00 committed by Patrick Georgi
parent c94b38ec13
commit cbcce2415b
5 changed files with 0 additions and 18 deletions

View File

@ -177,7 +177,6 @@ static void init_gemgxlclk(void)
write32(&prci->gemgxlpllcfg1, cfg1); write32(&prci->gemgxlpllcfg1, cfg1);
} }
#define FU540_UART_DEVICES 2 #define FU540_UART_DEVICES 2
#define FU540_UART_REG_DIV 0x18 #define FU540_UART_REG_DIV 0x18
#define FU540_UART_DIV_VAL 4 #define FU540_UART_DIV_VAL 4
@ -185,7 +184,6 @@ static void init_gemgxlclk(void)
#define FU540_SPI_DIV 0x00 #define FU540_SPI_DIV 0x00
#define FU540_SPI_DIV_VAL 4 #define FU540_SPI_DIV_VAL 4
static void update_peripheral_clock_dividers(void) static void update_peripheral_clock_dividers(void)
{ {
write32((uint32_t *)(FU540_QSPI0 + FU540_SPI_DIV), FU540_SPI_DIV_VAL); write32((uint32_t *)(FU540_QSPI0 + FU540_SPI_DIV), FU540_SPI_DIV_VAL);

View File

@ -140,7 +140,6 @@ DENALI_PHY_1190_DATA, DENALI_PHY_1191_DATA, DENALI_PHY_1192_DATA, DENALI_PHY_119
DENALI_PHY_1200_DATA, DENALI_PHY_1201_DATA, DENALI_PHY_1202_DATA, DENALI_PHY_1203_DATA, DENALI_PHY_1204_DATA, DENALI_PHY_1205_DATA, DENALI_PHY_1206_DATA, DENALI_PHY_1207_DATA, DENALI_PHY_1208_DATA, DENALI_PHY_1209_DATA, DENALI_PHY_1200_DATA, DENALI_PHY_1201_DATA, DENALI_PHY_1202_DATA, DENALI_PHY_1203_DATA, DENALI_PHY_1204_DATA, DENALI_PHY_1205_DATA, DENALI_PHY_1206_DATA, DENALI_PHY_1207_DATA, DENALI_PHY_1208_DATA, DENALI_PHY_1209_DATA,
DENALI_PHY_1210_DATA, DENALI_PHY_1211_DATA, DENALI_PHY_1212_DATA, DENALI_PHY_1213_DATA, DENALI_PHY_1214_DATA}; DENALI_PHY_1210_DATA, DENALI_PHY_1211_DATA, DENALI_PHY_1212_DATA, DENALI_PHY_1213_DATA, DENALI_PHY_1214_DATA};
uint32_t DENALI_CTL_DATA[265] = { uint32_t DENALI_CTL_DATA[265] = {
DENALI_CTL_00_DATA, DENALI_CTL_01_DATA, DENALI_CTL_02_DATA, DENALI_CTL_03_DATA, DENALI_CTL_04_DATA, DENALI_CTL_05_DATA, DENALI_CTL_06_DATA, DENALI_CTL_07_DATA, DENALI_CTL_08_DATA, DENALI_CTL_09_DATA, DENALI_CTL_00_DATA, DENALI_CTL_01_DATA, DENALI_CTL_02_DATA, DENALI_CTL_03_DATA, DENALI_CTL_04_DATA, DENALI_CTL_05_DATA, DENALI_CTL_06_DATA, DENALI_CTL_07_DATA, DENALI_CTL_08_DATA, DENALI_CTL_09_DATA,
DENALI_CTL_10_DATA, DENALI_CTL_11_DATA, DENALI_CTL_12_DATA, DENALI_CTL_13_DATA, DENALI_CTL_14_DATA, DENALI_CTL_15_DATA, DENALI_CTL_16_DATA, DENALI_CTL_17_DATA, DENALI_CTL_18_DATA, DENALI_CTL_19_DATA, DENALI_CTL_10_DATA, DENALI_CTL_11_DATA, DENALI_CTL_12_DATA, DENALI_CTL_13_DATA, DENALI_CTL_14_DATA, DENALI_CTL_15_DATA, DENALI_CTL_16_DATA, DENALI_CTL_17_DATA, DENALI_CTL_18_DATA, DENALI_CTL_19_DATA,

View File

@ -13,7 +13,6 @@ static struct spi_ctrl *spictrls[] = {
(struct spi_ctrl *)FU540_QSPI2 (struct spi_ctrl *)FU540_QSPI2
}; };
/** /**
* Wait until SPI is ready for transmission and transmit byte. * Wait until SPI is ready for transmission and transmit byte.
*/ */
@ -35,7 +34,6 @@ static void spi_tx(volatile struct spi_ctrl *spictrl, uint8_t in)
#endif #endif
} }
/** /**
* Wait until SPI receive queue has data and read byte. * Wait until SPI receive queue has data and read byte.
*/ */

View File

@ -22,7 +22,6 @@ typedef union {
} spi_reg_sckmode; } spi_reg_sckmode;
_ASSERT_SIZEOF(spi_reg_sckmode, 4); _ASSERT_SIZEOF(spi_reg_sckmode, 4);
typedef union { typedef union {
struct { struct {
uint32_t mode : 2; uint32_t mode : 2;
@ -32,7 +31,6 @@ typedef union {
} spi_reg_csmode; } spi_reg_csmode;
_ASSERT_SIZEOF(spi_reg_csmode, 4); _ASSERT_SIZEOF(spi_reg_csmode, 4);
typedef union { typedef union {
struct { struct {
uint32_t cssck : 8; uint32_t cssck : 8;
@ -44,7 +42,6 @@ typedef union {
} spi_reg_delay0; } spi_reg_delay0;
_ASSERT_SIZEOF(spi_reg_delay0, 4); _ASSERT_SIZEOF(spi_reg_delay0, 4);
typedef union { typedef union {
struct { struct {
uint32_t intercs : 8; uint32_t intercs : 8;
@ -56,7 +53,6 @@ typedef union {
} spi_reg_delay1; } spi_reg_delay1;
_ASSERT_SIZEOF(spi_reg_delay1, 4); _ASSERT_SIZEOF(spi_reg_delay1, 4);
typedef union { typedef union {
struct { struct {
uint32_t proto : 2; uint32_t proto : 2;
@ -70,7 +66,6 @@ typedef union {
} spi_reg_fmt; } spi_reg_fmt;
_ASSERT_SIZEOF(spi_reg_fmt, 4); _ASSERT_SIZEOF(spi_reg_fmt, 4);
typedef union { typedef union {
struct { struct {
uint32_t data : 8; uint32_t data : 8;
@ -81,7 +76,6 @@ typedef union {
} spi_reg_txdata; } spi_reg_txdata;
_ASSERT_SIZEOF(spi_reg_txdata, 4); _ASSERT_SIZEOF(spi_reg_txdata, 4);
typedef union { typedef union {
struct { struct {
uint32_t data : 8; uint32_t data : 8;
@ -92,7 +86,6 @@ typedef union {
} spi_reg_rxdata; } spi_reg_rxdata;
_ASSERT_SIZEOF(spi_reg_rxdata, 4); _ASSERT_SIZEOF(spi_reg_rxdata, 4);
typedef union { typedef union {
struct { struct {
uint32_t txmark : 3; uint32_t txmark : 3;
@ -102,7 +95,6 @@ typedef union {
} spi_reg_txmark; } spi_reg_txmark;
_ASSERT_SIZEOF(spi_reg_txmark, 4); _ASSERT_SIZEOF(spi_reg_txmark, 4);
typedef union { typedef union {
struct { struct {
uint32_t rxmark : 3; uint32_t rxmark : 3;
@ -112,7 +104,6 @@ typedef union {
} spi_reg_rxmark; } spi_reg_rxmark;
_ASSERT_SIZEOF(spi_reg_rxmark, 4); _ASSERT_SIZEOF(spi_reg_rxmark, 4);
typedef union { typedef union {
struct { struct {
uint32_t en : 1; uint32_t en : 1;
@ -122,7 +113,6 @@ typedef union {
} spi_reg_fctrl; } spi_reg_fctrl;
_ASSERT_SIZEOF(spi_reg_fctrl, 4); _ASSERT_SIZEOF(spi_reg_fctrl, 4);
typedef union { typedef union {
struct { struct {
uint32_t cmd_en : 1; uint32_t cmd_en : 1;
@ -139,7 +129,6 @@ typedef union {
} spi_reg_ffmt; } spi_reg_ffmt;
_ASSERT_SIZEOF(spi_reg_ffmt, 4); _ASSERT_SIZEOF(spi_reg_ffmt, 4);
typedef union { typedef union {
struct { struct {
uint32_t txwm : 1; uint32_t txwm : 1;
@ -154,7 +143,6 @@ _ASSERT_SIZEOF(spi_reg_ip, 4);
#undef _ASSERT_SIZEOF #undef _ASSERT_SIZEOF
/** /**
* SPI control register memory map. * SPI control register memory map.
* *

View File

@ -47,7 +47,6 @@ static inline void phy_reset(volatile uint32_t *ddrphyreg, const uint32_t *physe
} }
} }
static inline void ux00ddr_writeregmap(size_t ahbregaddr, const uint32_t *ctlsettings, const uint32_t *physettings) { static inline void ux00ddr_writeregmap(size_t ahbregaddr, const uint32_t *ctlsettings, const uint32_t *physettings) {
volatile uint32_t *ddrctlreg = (volatile uint32_t *) ahbregaddr; volatile uint32_t *ddrctlreg = (volatile uint32_t *) ahbregaddr;
volatile uint32_t *ddrphyreg = ((volatile uint32_t *) ahbregaddr) + (0x2000 / sizeof(uint32_t)); volatile uint32_t *ddrphyreg = ((volatile uint32_t *) ahbregaddr) + (0x2000 / sizeof(uint32_t));