Skip to content

Commit

Permalink
MIPS: malta: Use img-ascii-lcd driver for LCD display
Browse files Browse the repository at this point in the history
Remove the Malta display platform code in favour of probing the
img-ascii-lcd driver via device tree. This reduces the amount of
platform code & the img-ascii-lcd driver offers us advantages in terms
of code sharing with other boards & functionality such as changing the
displayed message via sysfs. Defconfigs are untouched because the driver
already defaults y on when CONFIG_MIPS_MALTA=y.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/21182/
Cc: linux-mips@linux-mips.org
  • Loading branch information
paulburton committed Nov 21, 2018
1 parent 3cd6408 commit 0b00374
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 64 deletions.
5 changes: 5 additions & 0 deletions arch/mips/boot/dts/mti/malta.dts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@
reg = <0x1f000000 0x1000>;
native-endian;

lcd@410 {
compatible = "mti,malta-lcd";
offset = <0x410>;
};

reboot {
compatible = "syscon-reboot";
regmap = <&fpga_regs>;
Expand Down
1 change: 0 additions & 1 deletion arch/mips/mti-malta/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# Copyright (C) 2008 Wind River Systems, Inc.
# written by Ralf Baechle <ralf@linux-mips.org>
#
obj-y += malta-display.o
obj-y += malta-dt.o
obj-y += malta-dtshim.o
obj-y += malta-init.o
Expand Down
56 changes: 0 additions & 56 deletions arch/mips/mti-malta/malta-display.c

This file was deleted.

3 changes: 0 additions & 3 deletions arch/mips/mti-malta/malta-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ phys_addr_t mips_cpc_default_phys_base(void)

void __init prom_init(void)
{
mips_display_message("LINUX");

/*
* early setup of _pcictrl_bonito so that we can determine
* the system controller on a CORE_EMUL board
Expand Down Expand Up @@ -277,7 +275,6 @@ void __init prom_init(void)

default:
/* Unknown system controller */
mips_display_message("SC Error");
while (1); /* We die here... */
}
board_nmi_handler_setup = mips_nmi_setup;
Expand Down
2 changes: 0 additions & 2 deletions arch/mips/mti-malta/malta-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ const char *get_system_type(void)
return "MIPS Malta";
}

const char display_string[] = " LINUX ON MALTA ";

#ifdef CONFIG_BLK_DEV_FD
static void __init fd_activate(void)
{
Expand Down
2 changes: 0 additions & 2 deletions arch/mips/mti-malta/malta-time.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,6 @@ void __init plat_time_init(void)
printk("CPU frequency %d.%02d MHz\n", freq/1000000,
(freq%1000000)*100/1000000);

mips_scroll_message();

#ifdef CONFIG_I8253
/* Only Malta has a PIT. */
setup_pit_timer();
Expand Down

0 comments on commit 0b00374

Please sign in to comment.