Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
e5c88986
Commit
e5c88986
authored
Sep 18, 2020
by
Thierry Reding
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-5.10/soc' into for-5.10/firmware
parents
9123e3a7
52e6d399
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
drivers/soc/tegra/fuse/fuse-tegra.c
drivers/soc/tegra/fuse/fuse-tegra.c
+1
-1
drivers/soc/tegra/fuse/tegra-apbmisc.c
drivers/soc/tegra/fuse/tegra-apbmisc.c
+24
-0
include/soc/tegra/fuse.h
include/soc/tegra/fuse.h
+2
-0
No files found.
drivers/soc/tegra/fuse/fuse-tegra.c
View file @
e5c88986
...
...
@@ -336,7 +336,7 @@ static ssize_t platform_show(struct device *dev, struct device_attribute *attr,
* platform type is silicon and all other non-zero values indicate
* the type of simulation platform is being used.
*/
return
sprintf
(
buf
,
"%d
\n
"
,
(
tegra_read_chipid
()
>>
20
)
&
0xf
);
return
sprintf
(
buf
,
"%d
\n
"
,
tegra_get_platform
()
);
}
static
DEVICE_ATTR_RO
(
platform
);
...
...
drivers/soc/tegra/fuse/tegra-apbmisc.c
View file @
e5c88986
...
...
@@ -47,6 +47,30 @@ u8 tegra_get_minor_rev(void)
return
(
tegra_read_chipid
()
>>
16
)
&
0xf
;
}
u8
tegra_get_platform
(
void
)
{
return
(
tegra_read_chipid
()
>>
20
)
&
0xf
;
}
bool
tegra_is_silicon
(
void
)
{
switch
(
tegra_get_chip_id
())
{
case
TEGRA194
:
if
(
tegra_get_platform
()
==
0
)
return
true
;
return
false
;
}
/*
* Chips prior to Tegra194 have a different way of determining whether
* they are silicon or not. Since we never supported simulation on the
* older Tegra chips, don't bother extracting the information and just
* report that we're running on silicon.
*/
return
true
;
}
u32
tegra_read_straps
(
void
)
{
WARN
(
!
chipid
,
"Tegra ABP MISC not yet available
\n
"
);
...
...
include/soc/tegra/fuse.h
View file @
e5c88986
...
...
@@ -23,6 +23,8 @@
u32
tegra_read_chipid
(
void
);
u8
tegra_get_chip_id
(
void
);
u8
tegra_get_platform
(
void
);
bool
tegra_is_silicon
(
void
);
enum
tegra_revision
{
TEGRA_REVISION_UNKNOWN
=
0
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment