File tree Expand file tree Collapse file tree
drivers/video/fbdev/starfive Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,31 +35,6 @@ config SOC_STARFIVE_VIC7100
3535menu "StarFive VIC7100 SoC Debug Option"
3636 depends on SOC_STARFIVE_VIC7100
3737
38- config FPGA_GMAC_FLUSH_DDR
39- bool "VIC7100 SOC GMAC description and packet buffer flush"
40- depends on SOC_STARFIVE_VIC7100
41- depends on STMMAC_ETH
42- default y if SOC_STARFIVE_VIC7100
43- help
44- enable VIC7100 GMAC description and packet buffer flush
45-
46- config MMC_DW_FLUSH_DDR
47- bool "VIC7100 SOC DW MMC buffer flush"
48- depends on SOC_STARFIVE_VIC7100
49- depends on MMC_DW
50- default y if SOC_STARFIVE_VIC7100
51- help
52- enable VIC7100 DW MMC description and data buffer flush
53-
54- config USB_CDNS3_HOST_FLUSH_DMA
55- bool "Cadence USB3 host controller flush dma memery"
56- depends on USB
57- depends on USB_CDNS3
58- depends on SOC_STARFIVE_VIC7100
59- default y if SOC_STARFIVE_VIC7100
60- help
61- enable VIC7100 DW USB CDNS3 driver data buffer flush
62-
6338config SOC_STARFIVE_VIC7100_I2C_GPIO
6439 bool "VIC7100 SOC I2C GPIO init"
6540 depends on I2C_DESIGNWARE_CORE
Original file line number Diff line number Diff line change 2828#include "starfive_fb.h"
2929#include "starfive_display_dev.h"
3030
31- #ifdef _ALIGN_UP
32- #undef _ALIGN_UP
33- #define _ALIGN_UP (addr , size ) (((addr)+((size)-1))&(~((typeof(addr))(size)-1)))
34- #endif
35-
3631#define DSI_CMD_LEN (hdr ) (sizeof(*hdr) + (hdr)->dlen)
3732
3833static int sf_displayer_reset (struct sf_fb_data * fbi )
@@ -613,7 +608,7 @@ static int of_parse_wr_cmd(struct device_node *np,
613608 return - EINVAL ;
614609 }
615610 dev_cmds -> n_pack = cnt ;
616- dev_cmds -> cmds = kzalloc (_ALIGN_UP (alloc_bytes , 4 ), GFP_KERNEL );
611+ dev_cmds -> cmds = kzalloc (round_up (alloc_bytes , 4 ), GFP_KERNEL );
617612
618613 if (IS_ERR_OR_NULL (dev_cmds -> cmds ))
619614 return - ENOMEM ;
You can’t perform that action at this time.
0 commit comments