aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/pending-4.14/419-mtd-redboot-add-of_match_table-with-DT-binding.patch
blob: fbf9a0553cc59882fe551a4320c1fbe15b65f183 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
Subject: [PATCH] mtd: redboot: add of_match_table with DT binding
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This allows parsing RedBoot compatible partitions for properly described
flash device in DT.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---

--- a/drivers/mtd/redboot.c
+++ b/drivers/mtd/redboot.c
@@ -289,9 +289,16 @@ static int parse_redboot_partitions(stru
 	return ret;
 }
 
+static const struct of_device_id redboot_parser_of_match_table[] = {
+	{ .compatible = "ecoscentric,redboot-fis-partitions" },
+	{},
+};
+MODULE_DEVICE_TABLE(of, redboot_parser_of_match_table);
+
 static struct mtd_part_parser redboot_parser = {
 	.parse_fn = parse_redboot_partitions,
 	.name = "RedBoot",
+	.of_match_table = redboot_parser_of_match_table,
 };
 module_mtd_part_parser(redboot_parser);
 
ful, open-source SSH client for Android Copyright (C) 2007-2008 Kenny Root, Jeffrey Sharkey This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. --> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#ff000000" > <TextView android:id="@android:id/empty" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="No hosts currently connected" android:textAppearance="?android:attr/textAppearanceMedium" android:gravity="center" /> <ViewFlipper android:id="@+id/console_flip" android:layout_width="fill_parent" android:layout_height="fill_parent" /> <RelativeLayout android:id="@+id/console_password_group" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:padding="5dip" android:background="#80000000" android:visibility="gone" > <TextView android:id="@+id/console_password_hint" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_width="fill_parent" android:visibility="gone" /> <EditText android:id="@+id/console_password" android:layout_width="fill_parent" android:layout_height="wrap_content" android:password="true" android:singleLine="true" android:layout_below="@+id/console_password_hint" /> </RelativeLayout> <RelativeLayout android:id="@+id/console_boolean_group" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:padding="5dip" android:background="#88000000" android:fadingEdge="horizontal" android:fadingEdgeLength="25dip" android:visibility="gone" > <TextView android:id="@+id/console_prompt" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_width="fill_parent" /> <Button android:id="@+id/console_prompt_no" android:text="No" android:paddingTop="5dip" android:paddingBottom="10dip" android:paddingLeft="40dip" android:paddingRight="40dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_below="@+id/console_prompt" android:clickable="false" /> <Button android:id="@+id/console_prompt_yes" android:text="Yes" android:paddingTop="5dip" android:paddingBottom="10dip" android:paddingLeft="40dip" android:paddingRight="40dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toLeftOf="@+id/console_prompt_no" android:layout_below="@+id/console_prompt" /> </RelativeLayout> </RelativeLayout>