Commit 951a730a authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'blackfin-for-linus' of...

Merge tag 'blackfin-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/realmz6/blackfin-linux

Pull blackfin updates from Steven Miao.

* tag 'blackfin-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/realmz6/blackfin-linux:
  blackfin: Ignore generated uImages
  blackfin: Add STMMAC platform data to enable dwmac1000 driver on BF60x.
  bf609: adv7343: add S-Video and Component output support
  bf609: add adv7343 video encoder support
  clock: add stmmac clock for ethernet driver
  blackfin: scb: Add SCB1 to SCB9 config options and data.
  blackfin: scb: Add system crossbar init code.
parents 0898d2aa 08b67faa
/*
* arch/blackfin/mach-common/scb-init.c - reprogram system cross bar priority
*
* Copyright 2012 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#define SCB_SLOT_OFFSET 24
#define SCB_MI_MAX_SLOT 32
struct scb_mi_prio {
unsigned long scb_mi_arbr;
unsigned long scb_mi_arbw;
unsigned char scb_mi_slots;
unsigned char scb_mi_prio[SCB_MI_MAX_SLOT];
};
extern struct scb_mi_prio scb_data[];
extern void init_scb(void);
......@@ -35,6 +35,9 @@
#ifdef CONFIG_BF60x
#include <mach/pm.h>
#endif
#ifdef CONFIG_SCB_PRIORITY
#include <asm/scb.h>
#endif
u16 _bfin_swrst;
EXPORT_SYMBOL(_bfin_swrst);
......@@ -1101,6 +1104,9 @@ void __init setup_arch(char **cmdline_p)
#endif
init_exception_vectors();
bfin_cache_init(); /* Initialize caches for the boot CPU */
#ifdef CONFIG_SCB_PRIORITY
init_scb();
#endif
}
static int __init topology_init(void)
......
This diff is collapsed.
......@@ -4,3 +4,4 @@
obj-y := dma.o clock.o ints-priority.o
obj-$(CONFIG_PM) += pm.o dpm.o
obj-$(CONFIG_SCB_PRIORITY) += scb.o
......@@ -104,6 +104,7 @@ static struct platform_device bfin_rotary_device = {
#if defined(CONFIG_STMMAC_ETH) || defined(CONFIG_STMMAC_ETH_MODULE)
#include <linux/stmmac.h>
#include <linux/phy.h>
static unsigned short pins[] = P_RMII0;
......@@ -111,11 +112,26 @@ static struct stmmac_mdio_bus_data phy_private_data = {
.phy_mask = 1,
};
static struct stmmac_dma_cfg eth_dma_cfg = {
.pbl = 2,
};
int stmmac_ptp_clk_init(struct platform_device *pdev)
{
bfin_write32(PADS0_EMAC_PTP_CLKSEL, 0);
return 0;
}
static struct plat_stmmacenet_data eth_private_data = {
.has_gmac = 1,
.bus_id = 0,
.enh_desc = 1,
.phy_addr = 1,
.mdio_bus_data = &phy_private_data,
.dma_cfg = &eth_dma_cfg,
.force_thresh_dma_mode = 1,
.interface = PHY_INTERFACE_MODE_RMII,
.init = stmmac_ptp_clk_init,
};
static struct platform_device bfin_eth_device = {
......@@ -1107,6 +1123,81 @@ static struct bfin_display_config bfin_display_data = {
};
#endif
#if IS_ENABLED(CONFIG_VIDEO_ADV7343)
#include <media/adv7343.h>
static struct v4l2_output adv7343_outputs[] = {
{
.index = 0,
.name = "Composite",
.type = V4L2_OUTPUT_TYPE_ANALOG,
.std = V4L2_STD_ALL,
.capabilities = V4L2_OUT_CAP_STD,
},
{
.index = 1,
.name = "S-Video",
.type = V4L2_OUTPUT_TYPE_ANALOG,
.std = V4L2_STD_ALL,
.capabilities = V4L2_OUT_CAP_STD,
},
{
.index = 2,
.name = "Component",
.type = V4L2_OUTPUT_TYPE_ANALOG,
.std = V4L2_STD_ALL,
.capabilities = V4L2_OUT_CAP_STD,
},
};
static struct disp_route adv7343_routes[] = {
{
.output = ADV7343_COMPOSITE_ID,
},
{
.output = ADV7343_SVIDEO_ID,
},
{
.output = ADV7343_COMPONENT_ID,
},
};
static struct adv7343_platform_data adv7343_data = {
.mode_config = {
.sleep_mode = false,
.pll_control = false,
.dac_1 = true,
.dac_2 = true,
.dac_3 = true,
.dac_4 = true,
.dac_5 = true,
.dac_6 = true,
},
.sd_config = {
.sd_dac_out1 = false,
.sd_dac_out2 = false,
},
};
static struct bfin_display_config bfin_display_data = {
.card_name = "BF609",
.outputs = adv7343_outputs,
.num_outputs = ARRAY_SIZE(adv7343_outputs),
.routes = adv7343_routes,
.i2c_adapter_id = 0,
.board_info = {
.type = "adv7343",
.addr = 0x2b,
.platform_data = (void *)&adv7343_data,
},
.ppi_info = &ppi_info_disp,
.ppi_control = (PACK_EN | DLEN_8 | EPPI_CTL_FS1LO_FS2LO
| EPPI_CTL_POLC3 | EPPI_CTL_BLANKGEN | EPPI_CTL_SYNC2
| EPPI_CTL_NON656 | EPPI_CTL_DIR),
};
#endif
static struct platform_device bfin_display_device = {
.name = "bfin_display",
.dev = {
......
......@@ -220,6 +220,12 @@ unsigned long sys_clk_get_rate(struct clk *clk)
}
}
unsigned long dummy_get_rate(struct clk *clk)
{
clk->parent->rate = clk_get_rate(clk->parent);
return clk->parent->rate;
}
unsigned long sys_clk_round_rate(struct clk *clk, unsigned long rate)
{
unsigned long max_rate;
......@@ -283,6 +289,10 @@ static struct clk_ops sys_clk_ops = {
.round_rate = sys_clk_round_rate,
};
static struct clk_ops dummy_clk_ops = {
.get_rate = dummy_get_rate,
};
static struct clk sys_clkin = {
.name = "SYS_CLKIN",
.rate = CONFIG_CLKIN_HZ,
......@@ -364,6 +374,12 @@ static struct clk oclk = {
.parent = &pll_clk,
};
static struct clk ethclk = {
.name = "stmmaceth",
.parent = &sclk0,
.ops = &dummy_clk_ops,
};
static struct clk_lookup bf609_clks[] = {
CLK(sys_clkin, NULL, "SYS_CLKIN"),
CLK(pll_clk, NULL, "PLLCLK"),
......@@ -375,6 +391,7 @@ static struct clk_lookup bf609_clks[] = {
CLK(sclk1, NULL, "SCLK1"),
CLK(dclk, NULL, "DCLK"),
CLK(oclk, NULL, "OCLK"),
CLK(ethclk, NULL, "stmmaceth"),
};
int __init clk_init(void)
......
......@@ -839,6 +839,16 @@
#define PORTG_LOCK 0xFFC03344 /* PORTG Port x GPIO Lock Register */
#define PORTG_REVID 0xFFC0337C /* PORTG Port x GPIO Revision ID */
/* ==================================================
Pads Controller Registers
================================================== */
/* =========================
PADS0
========================= */
#define PADS0_EMAC_PTP_CLKSEL 0xFFC03404 /* PADS0 Clock Selection for EMAC and PTP */
#define PADS0_TWI_VSEL 0xFFC03408 /* PADS0 TWI Voltage Selection */
#define PADS0_PORTS_HYST 0xFFC03440 /* PADS0 Hysteresis Enable Register */
/* =========================
PINT Registers
......
/*
* arch/blackfin/mach-common/scb-init.c - reprogram system cross bar priority
*
* Copyright 2012 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#include <asm/blackfin.h>
#include <asm/scb.h>
struct scb_mi_prio scb_data[] = {
#ifdef CONFIG_SCB0_MI0
{ REG_SCB0_ARBR0, REG_SCB0_ARBW0, 32, {
CONFIG_SCB0_MI0_SLOT0,
CONFIG_SCB0_MI0_SLOT1,
CONFIG_SCB0_MI0_SLOT2,
CONFIG_SCB0_MI0_SLOT3,
CONFIG_SCB0_MI0_SLOT4,
CONFIG_SCB0_MI0_SLOT5,
CONFIG_SCB0_MI0_SLOT6,
CONFIG_SCB0_MI0_SLOT7,
CONFIG_SCB0_MI0_SLOT8,
CONFIG_SCB0_MI0_SLOT9,
CONFIG_SCB0_MI0_SLOT10,
CONFIG_SCB0_MI0_SLOT11,
CONFIG_SCB0_MI0_SLOT12,
CONFIG_SCB0_MI0_SLOT13,
CONFIG_SCB0_MI0_SLOT14,
CONFIG_SCB0_MI0_SLOT15,
CONFIG_SCB0_MI0_SLOT16,
CONFIG_SCB0_MI0_SLOT17,
CONFIG_SCB0_MI0_SLOT18,
CONFIG_SCB0_MI0_SLOT19,
CONFIG_SCB0_MI0_SLOT20,
CONFIG_SCB0_MI0_SLOT21,
CONFIG_SCB0_MI0_SLOT22,
CONFIG_SCB0_MI0_SLOT23,
CONFIG_SCB0_MI0_SLOT24,
CONFIG_SCB0_MI0_SLOT25,
CONFIG_SCB0_MI0_SLOT26,
CONFIG_SCB0_MI0_SLOT27,
CONFIG_SCB0_MI0_SLOT28,
CONFIG_SCB0_MI0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_MI0_SLOT5,
CONFIG_SCB9_MI0_SLOT6,
CONFIG_SCB9_MI0_SLOT7,
CONFIG_SCB9_MI0_SLOT8,
CONFIG_SCB9_MI0_SLOT9
},
},
#endif
{ 0, }
};
......@@ -10,6 +10,7 @@ obj-$(CONFIG_PM) += pm.o
ifneq ($(CONFIG_BF60x),y)
obj-$(CONFIG_PM) += dpmc_modes.o
endif
obj-$(CONFIG_SCB_PRIORITY) += scb-init.o
obj-$(CONFIG_CPU_VOLTAGE) += dpmc.o
obj-$(CONFIG_SMP) += smp.o
obj-$(CONFIG_BFIN_KERNEL_CLOCK) += clocks-init.o
/*
* arch/blackfin/mach-common/scb-init.c - reprogram system cross bar priority
*
* Copyright 2012 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <asm/scb.h>
__attribute__((l1_text))
inline void scb_mi_write(unsigned long scb_mi_arbw, unsigned int slots,
unsigned char *scb_mi_prio)
{
unsigned int i;
for (i = 0; i < slots; ++i)